diff --git a/frontend/dist/VERSION b/frontend/dist/VERSION index 5e6204d0..af2198f2 100644 --- a/frontend/dist/VERSION +++ b/frontend/dist/VERSION @@ -1 +1 @@ -0.9.218 +0.9.219 diff --git a/frontend/dist/assets/Card-BSUcfChC.js b/frontend/dist/assets/Card-Cq7dyTi6.js similarity index 96% rename from frontend/dist/assets/Card-BSUcfChC.js rename to frontend/dist/assets/Card-Cq7dyTi6.js index e4f07046..015f4ea8 100644 --- a/frontend/dist/assets/Card-BSUcfChC.js +++ b/frontend/dist/assets/Card-Cq7dyTi6.js @@ -1 +1 @@ -import{j as e,c as s}from"./vendor-react-BKIq8k5U.js";import{B as l}from"./index-_WuEOacy.js";function t({title:t,icon:r,badge:i,badgeColor:a="teal",subtitle:c,actions:n,iconColor:x="text-icon-card-title",largeTitle:d=!1,listHeader:m=!1,stackActionsOnMobile:o=!1}){return o&&n?e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",m?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 min-h-[32px]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[r&&e.jsx("span",{className:s("icon-md flex items-center justify-center",x),children:r}),e.jsx("span",{className:s(d?"type-subheading text-text-primary":"type-micro"),children:t}),i&&e.jsx(l,{color:a,children:i})]}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),c&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:c})]}):e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",m?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 min-h-[32px]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[r&&e.jsx("span",{className:s("icon-md flex items-center justify-center",x),children:r}),e.jsx("span",{className:s(d?"type-subheading text-text-primary":"type-micro"),children:t}),i&&e.jsx(l,{color:a,children:i})]}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),c&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:c})]})}function r({children:l,centered:t,className:r}){return e.jsx("div",{className:s("flex-1 min-h-0",t&&"flex items-center justify-center",r),children:l})}export{t as C,r as a}; +import{j as e,c as s}from"./vendor-react-BKIq8k5U.js";import{B as l}from"./index-CrU_Ps9k.js";function t({title:t,icon:r,badge:i,badgeColor:a="teal",subtitle:c,actions:n,iconColor:x="text-icon-card-title",largeTitle:d=!1,listHeader:m=!1,stackActionsOnMobile:o=!1}){return o&&n?e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",m?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 min-h-[32px]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[r&&e.jsx("span",{className:s("icon-md flex items-center justify-center",x),children:r}),e.jsx("span",{className:s(d?"type-subheading text-text-primary":"type-micro"),children:t}),i&&e.jsx(l,{color:a,children:i})]}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),c&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:c})]}):e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",m?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 min-h-[32px]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[r&&e.jsx("span",{className:s("icon-md flex items-center justify-center",x),children:r}),e.jsx("span",{className:s(d?"type-subheading text-text-primary":"type-micro"),children:t}),i&&e.jsx(l,{color:a,children:i})]}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),c&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:c})]})}function r({children:l,centered:t,className:r}){return e.jsx("div",{className:s("flex-1 min-h-0",t&&"flex items-center justify-center",r),children:l})}export{t as C,r as a}; diff --git a/frontend/dist/assets/CollisionExplorerModal-DgkiEMYI.js b/frontend/dist/assets/CollisionExplorerModal-Bgt7baHs.js similarity index 97% rename from frontend/dist/assets/CollisionExplorerModal-DgkiEMYI.js rename to frontend/dist/assets/CollisionExplorerModal-Bgt7baHs.js index b40d4822..a70f5baa 100644 --- a/frontend/dist/assets/CollisionExplorerModal-DgkiEMYI.js +++ b/frontend/dist/assets/CollisionExplorerModal-Bgt7baHs.js @@ -1 +1 @@ -import{r as e,j as s,c as t}from"./vendor-react-BKIq8k5U.js";import{u as a,M as i,B as o,S as n,L as r,a as l}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{c as d,j as c,ai as h,k as u,H as m,I as x,a9 as p,B as v}from"./index-_WuEOacy.js";import{T as g}from"./triangle-alert-aHb4szMy.js";import{M as b}from"./map-pin-yDOfK60-.js";import{C as f,a as j}from"./DataBox-ihLFk7Um.js";const y=d("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]),N=d("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]),w=d("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),k={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"};function M({node:a,isHovered:i,onHover:o}){const[n,r]=e.useState(!1),l=e.useCallback(e=>{var s,t;e.stopPropagation(),s=a.hash,(null==(t=navigator.clipboard)?void 0:t.writeText)&&navigator.clipboard.writeText(s).catch(()=>{}),r(!0),setTimeout(()=>r(!1),2e3)},[a.hash]),d=a.contactType.toLowerCase(),c=d.includes("room")||d.includes("server");let h=w,u="text-accent-primary";return c?(h=y,u="text-signal-fair"):"companion"===d||"client"===d?(h=N,u="text-text-muted"):a.isNeighbor&&(u="text-accent-success"),s.jsxs("div",{className:t("flex items-center gap-3 px-3 py-2.5 radius-inner transition-base cursor-pointer",i?"bg-accent-primary/10":"hover:bg-white/[0.03]"),onMouseEnter:()=>o(a.hash),onMouseLeave:()=>o(null),children:[s.jsx(h,{className:t("w-4 h-4 flex-shrink-0",u)}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:a.name}),a.isNeighbor&&s.jsx(v,{color:"green",compact:!0,children:"NBR"}),a.isRepeater&&s.jsx(v,{color:"zinc",compact:!0,children:"RPT"}),a.isHub&&s.jsx(v,{color:"purple",compact:!0,children:"HUB"})]}),s.jsxs("button",{onClick:l,className:t("mt-1 inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded","border transition-all cursor-pointer",n?"border-accent-success/50 bg-accent-success/10 text-accent-success":"border-border-subtle bg-bg-subtle/50 text-text-muted hover:border-border-strong"),title:`Copy: ${a.hash}`,children:[a.hash.slice(0,12),"…",n?s.jsx(f,{className:"w-2.5 h-2.5"}):s.jsx(j,{className:"w-2.5 h-2.5 opacity-50"})]})]})]})}function H({nodes:d,hoveredHash:c,onHover:h}){const u=a(),m=e.useRef(null),x=p(),[g,f]=e.useState(!1),j=e.useMemo(()=>d.filter(e=>null!=e.latitude&&null!=e.longitude&&(0!==e.latitude||0!==e.longitude)),[d]),y=e.useMemo(()=>{if(0===j.length)return null;let e=1/0,s=-1/0,t=1/0,a=-1/0;for(const i of j)e=Math.min(e,i.longitude),s=Math.max(s,i.longitude),t=Math.min(t,i.latitude),a=Math.max(a,i.latitude);if(a-t<.01){const e=(a+t)/2;t=e-.005,a=e+.005}if(s-e<.01){const t=(s+e)/2;e=t-.005,s=t+.005}return[[e,t],[s,a]]},[j]),N=e.useMemo(()=>y?{longitude:(y[0][0]+y[1][0])/2,latitude:(y[0][1]+y[1][1])/2}:{longitude:0,latitude:0},[y]),w=e.useMemo(()=>{if(j.length<2)return null;const e=[];for(let s=0;s{var e;const s=null==(e=m.current)?void 0:e.getMap();s&&y?(s.fitBounds(y,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:13,duration:0}),setTimeout(()=>f(!0),50)):f(!0)},[y]),H=x&&g;return 0===j.length?s.jsx("div",{className:"h-full flex items-center justify-center bg-bg-subtle/30 radius-inner",children:s.jsxs("div",{className:"text-center text-text-secondary p-4",children:[s.jsx(b,{className:"w-8 h-8 mx-auto mb-2 opacity-40"}),s.jsx("p",{className:"text-sm",children:"No location data available"})]})}):s.jsxs("div",{className:"h-full w-full relative radius-inner overflow-hidden bg-bg-elevated",children:[s.jsx("div",{className:t("absolute inset-0 flex items-center justify-center z-10","transition-opacity duration-200 pointer-events-none",H?"opacity-0":"opacity-100 bg-bg-elevated"),children:s.jsx("div",{className:"w-5 h-5 border-2 border-text-muted/30 border-t-text-muted rounded-full animate-spin"})}),s.jsx("div",{className:t("h-full w-full transition-opacity duration-200",H?"opacity-100":"opacity-0"),children:s.jsxs(i,{ref:m,initialViewState:{longitude:N.longitude,latitude:N.latitude,zoom:10},style:{height:"100%",width:"100%"},mapStyle:k,attributionControl:!1,onLoad:M,children:[s.jsx(o,{mode:u}),w&&s.jsx(n,{id:"collision-edges",type:"geojson",data:w,children:s.jsx(r,{id:"collision-edges-line",type:"line",paint:{"line-color":"#3B3F4A","line-width":2,"line-opacity":.8},layout:{"line-cap":"round","line-join":"round"}})}),j.map(e=>{const t=e.hash===c,a=e.hash.startsWith("0x")?e.hash.slice(2,4).toUpperCase():e.hash.slice(0,2).toUpperCase();return s.jsx(l,{longitude:e.longitude,latitude:e.latitude,anchor:"center",children:s.jsx("div",{className:"cursor-pointer transition-all duration-150",onMouseEnter:()=>h(e.hash),onMouseLeave:()=>h(null),style:{pointerEvents:"auto"},children:s.jsxs(v,{color:"amber",filled:!0,className:"font-mono text-[10px] shadow-lg",children:[a,t&&s.jsx("span",{className:"ml-1 opacity-75 font-sans",children:e.name})]})})},e.hash)})]})})]})}const C=e.memo(function({isOpen:t,prefix:a,candidateHashes:i,onClose:o}){const n=c(),r=h(),l=u(),[d,p]=e.useState(null),v=e.useMemo(()=>new Set(l.map(e=>e.hash)),[l]),b=(null==n?void 0:n.neighbors)??{},f=e.useMemo(()=>i.map(e=>{var s;const t=(e=>b[e]?b[e]:!e.startsWith("0x")&&b["0x"+e]?b["0x"+e]:e.startsWith("0x")&&b[e.slice(2)]?b[e.slice(2)]:void 0)(e);return{hash:e,name:(null==t?void 0:t.node_name)||(null==t?void 0:t.name)||`Unknown (${e.slice(0,8)}…)`,contactType:(null==t?void 0:t.contact_type)||"",isRepeater:(null==t?void 0:t.is_repeater)||"repeater"===(null==(s=null==t?void 0:t.contact_type)?void 0:s.toLowerCase())||!1,isNeighbor:v.has(e)||v.has("0x"+e)||v.has(e.replace(/^0x/,"")),isHub:r.has(e),latitude:null==t?void 0:t.latitude,longitude:null==t?void 0:t.longitude}}).sort((e,s)=>e.isNeighbor!==s.isNeighbor?e.isNeighbor?-1:1:e.isHub!==s.isHub?e.isHub?-1:1:e.name.localeCompare(s.name)),[i,b,v,r]),j=e.useMemo(()=>f.some(e=>null!=e.latitude&&null!=e.longitude&&(0!==e.latitude||0!==e.longitude)),[f]),y=e.useCallback(e=>{p(e)},[]),N=j?"4xl":"lg";return t?s.jsxs(m,{open:t,onClose:o,size:N,motionPlus:!0,className:j?"sm:h-[500px] sm:max-h-[600px]":"",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border-subtle",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 radius-inner bg-signal-fair/10",children:s.jsx(g,{className:"w-5 h-5 text-signal-fair"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-base font-semibold text-text-primary",children:["Prefix Collision: ",s.jsx("span",{className:"font-mono text-accent-primary",children:a})]}),s.jsxs("p",{className:"text-xs text-text-secondary",children:[f.length," nodes share this prefix"]})]})]}),s.jsx("button",{onClick:o,className:"p-2 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-subtle",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs(x,{className:"p-0 overflow-hidden flex-1 flex flex-col min-h-0",children:[s.jsxs("div",{className:"sm:hidden flex-1 overflow-y-auto",children:[j&&s.jsx("div",{className:"h-64 p-2 border-b border-border-subtle",children:s.jsx(H,{nodes:f,hoveredHash:d,onHover:y})}),s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})]}),j?s.jsxs("div",{className:"hidden sm:grid sm:grid-cols-[280px_minmax(400px,1fr)] flex-1 overflow-hidden sm:min-w-[700px]",children:[s.jsx("div",{className:"overflow-y-auto border-r border-border-subtle",children:s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})}),s.jsx("div",{className:"overflow-hidden p-2",children:s.jsx(H,{nodes:f,hoveredHash:d,onHover:y})})]}):s.jsx("div",{className:"hidden sm:block flex-1 overflow-y-auto",children:s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})})]})]}):null});export{C,N as M,w as S}; +import{r as e,j as s,c as t}from"./vendor-react-BKIq8k5U.js";import{u as a,M as i,B as o,S as n,L as r,a as l}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{c as d,j as c,ai as h,k as u,H as m,I as x,a9 as p,B as v}from"./index-CrU_Ps9k.js";import{T as g}from"./triangle-alert-DrmOKr32.js";import{M as b}from"./map-pin-BUNSWVCM.js";import{C as f,a as j}from"./DataBox-sJHphnZd.js";const y=d("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]),N=d("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]),w=d("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),k={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"};function M({node:a,isHovered:i,onHover:o}){const[n,r]=e.useState(!1),l=e.useCallback(e=>{var s,t;e.stopPropagation(),s=a.hash,(null==(t=navigator.clipboard)?void 0:t.writeText)&&navigator.clipboard.writeText(s).catch(()=>{}),r(!0),setTimeout(()=>r(!1),2e3)},[a.hash]),d=a.contactType.toLowerCase(),c=d.includes("room")||d.includes("server");let h=w,u="text-accent-primary";return c?(h=y,u="text-signal-fair"):"companion"===d||"client"===d?(h=N,u="text-text-muted"):a.isNeighbor&&(u="text-accent-success"),s.jsxs("div",{className:t("flex items-center gap-3 px-3 py-2.5 radius-inner transition-base cursor-pointer",i?"bg-accent-primary/10":"hover:bg-white/[0.03]"),onMouseEnter:()=>o(a.hash),onMouseLeave:()=>o(null),children:[s.jsx(h,{className:t("w-4 h-4 flex-shrink-0",u)}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:a.name}),a.isNeighbor&&s.jsx(v,{color:"green",compact:!0,children:"NBR"}),a.isRepeater&&s.jsx(v,{color:"zinc",compact:!0,children:"RPT"}),a.isHub&&s.jsx(v,{color:"purple",compact:!0,children:"HUB"})]}),s.jsxs("button",{onClick:l,className:t("mt-1 inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded","border transition-all cursor-pointer",n?"border-accent-success/50 bg-accent-success/10 text-accent-success":"border-border-subtle bg-bg-subtle/50 text-text-muted hover:border-border-strong"),title:`Copy: ${a.hash}`,children:[a.hash.slice(0,12),"…",n?s.jsx(f,{className:"w-2.5 h-2.5"}):s.jsx(j,{className:"w-2.5 h-2.5 opacity-50"})]})]})]})}function H({nodes:d,hoveredHash:c,onHover:h}){const u=a(),m=e.useRef(null),x=p(),[g,f]=e.useState(!1),j=e.useMemo(()=>d.filter(e=>null!=e.latitude&&null!=e.longitude&&(0!==e.latitude||0!==e.longitude)),[d]),y=e.useMemo(()=>{if(0===j.length)return null;let e=1/0,s=-1/0,t=1/0,a=-1/0;for(const i of j)e=Math.min(e,i.longitude),s=Math.max(s,i.longitude),t=Math.min(t,i.latitude),a=Math.max(a,i.latitude);if(a-t<.01){const e=(a+t)/2;t=e-.005,a=e+.005}if(s-e<.01){const t=(s+e)/2;e=t-.005,s=t+.005}return[[e,t],[s,a]]},[j]),N=e.useMemo(()=>y?{longitude:(y[0][0]+y[1][0])/2,latitude:(y[0][1]+y[1][1])/2}:{longitude:0,latitude:0},[y]),w=e.useMemo(()=>{if(j.length<2)return null;const e=[];for(let s=0;s{var e;const s=null==(e=m.current)?void 0:e.getMap();s&&y?(s.fitBounds(y,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:13,duration:0}),setTimeout(()=>f(!0),50)):f(!0)},[y]),H=x&&g;return 0===j.length?s.jsx("div",{className:"h-full flex items-center justify-center bg-bg-subtle/30 radius-inner",children:s.jsxs("div",{className:"text-center text-text-secondary p-4",children:[s.jsx(b,{className:"w-8 h-8 mx-auto mb-2 opacity-40"}),s.jsx("p",{className:"text-sm",children:"No location data available"})]})}):s.jsxs("div",{className:"h-full w-full relative radius-inner overflow-hidden bg-bg-elevated",children:[s.jsx("div",{className:t("absolute inset-0 flex items-center justify-center z-10","transition-opacity duration-200 pointer-events-none",H?"opacity-0":"opacity-100 bg-bg-elevated"),children:s.jsx("div",{className:"w-5 h-5 border-2 border-text-muted/30 border-t-text-muted rounded-full animate-spin"})}),s.jsx("div",{className:t("h-full w-full transition-opacity duration-200",H?"opacity-100":"opacity-0"),children:s.jsxs(i,{ref:m,initialViewState:{longitude:N.longitude,latitude:N.latitude,zoom:10},style:{height:"100%",width:"100%"},mapStyle:k,attributionControl:!1,onLoad:M,children:[s.jsx(o,{mode:u}),w&&s.jsx(n,{id:"collision-edges",type:"geojson",data:w,children:s.jsx(r,{id:"collision-edges-line",type:"line",paint:{"line-color":"#3B3F4A","line-width":2,"line-opacity":.8},layout:{"line-cap":"round","line-join":"round"}})}),j.map(e=>{const t=e.hash===c,a=e.hash.startsWith("0x")?e.hash.slice(2,4).toUpperCase():e.hash.slice(0,2).toUpperCase();return s.jsx(l,{longitude:e.longitude,latitude:e.latitude,anchor:"center",children:s.jsx("div",{className:"cursor-pointer transition-all duration-150",onMouseEnter:()=>h(e.hash),onMouseLeave:()=>h(null),style:{pointerEvents:"auto"},children:s.jsxs(v,{color:"amber",filled:!0,className:"font-mono text-[10px] shadow-lg",children:[a,t&&s.jsx("span",{className:"ml-1 opacity-75 font-sans",children:e.name})]})})},e.hash)})]})})]})}const C=e.memo(function({isOpen:t,prefix:a,candidateHashes:i,onClose:o}){const n=c(),r=h(),l=u(),[d,p]=e.useState(null),v=e.useMemo(()=>new Set(l.map(e=>e.hash)),[l]),b=(null==n?void 0:n.neighbors)??{},f=e.useMemo(()=>i.map(e=>{var s;const t=(e=>b[e]?b[e]:!e.startsWith("0x")&&b["0x"+e]?b["0x"+e]:e.startsWith("0x")&&b[e.slice(2)]?b[e.slice(2)]:void 0)(e);return{hash:e,name:(null==t?void 0:t.node_name)||(null==t?void 0:t.name)||`Unknown (${e.slice(0,8)}…)`,contactType:(null==t?void 0:t.contact_type)||"",isRepeater:(null==t?void 0:t.is_repeater)||"repeater"===(null==(s=null==t?void 0:t.contact_type)?void 0:s.toLowerCase())||!1,isNeighbor:v.has(e)||v.has("0x"+e)||v.has(e.replace(/^0x/,"")),isHub:r.has(e),latitude:null==t?void 0:t.latitude,longitude:null==t?void 0:t.longitude}}).sort((e,s)=>e.isNeighbor!==s.isNeighbor?e.isNeighbor?-1:1:e.isHub!==s.isHub?e.isHub?-1:1:e.name.localeCompare(s.name)),[i,b,v,r]),j=e.useMemo(()=>f.some(e=>null!=e.latitude&&null!=e.longitude&&(0!==e.latitude||0!==e.longitude)),[f]),y=e.useCallback(e=>{p(e)},[]),N=j?"4xl":"lg";return t?s.jsxs(m,{open:t,onClose:o,size:N,motionPlus:!0,className:j?"sm:h-[500px] sm:max-h-[600px]":"",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border-subtle",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 radius-inner bg-signal-fair/10",children:s.jsx(g,{className:"w-5 h-5 text-signal-fair"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-base font-semibold text-text-primary",children:["Prefix Collision: ",s.jsx("span",{className:"font-mono text-accent-primary",children:a})]}),s.jsxs("p",{className:"text-xs text-text-secondary",children:[f.length," nodes share this prefix"]})]})]}),s.jsx("button",{onClick:o,className:"p-2 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-subtle",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs(x,{className:"p-0 overflow-hidden flex-1 flex flex-col min-h-0",children:[s.jsxs("div",{className:"sm:hidden flex-1 overflow-y-auto",children:[j&&s.jsx("div",{className:"h-64 p-2 border-b border-border-subtle",children:s.jsx(H,{nodes:f,hoveredHash:d,onHover:y})}),s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})]}),j?s.jsxs("div",{className:"hidden sm:grid sm:grid-cols-[280px_minmax(400px,1fr)] flex-1 overflow-hidden sm:min-w-[700px]",children:[s.jsx("div",{className:"overflow-y-auto border-r border-border-subtle",children:s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})}),s.jsx("div",{className:"overflow-hidden p-2",children:s.jsx(H,{nodes:f,hoveredHash:d,onHover:y})})]}):s.jsx("div",{className:"hidden sm:block flex-1 overflow-y-auto",children:s.jsx("div",{className:"p-2",children:f.map(e=>s.jsx(M,{node:e,isHovered:d===e.hash,onHover:y},e.hash))})})]})]}):null});export{C,N as M,w as S}; diff --git a/frontend/dist/assets/Configuration-dmqkTiMy.js b/frontend/dist/assets/Configuration-DnJo15di.js similarity index 99% rename from frontend/dist/assets/Configuration-dmqkTiMy.js rename to frontend/dist/assets/Configuration-DnJo15di.js index 31022658..01a826da 100644 --- a/frontend/dist/assets/Configuration-dmqkTiMy.js +++ b/frontend/dist/assets/Configuration-DnJo15di.js @@ -1 +1 @@ -import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as a,c7 as r,c8 as n,c9 as l,ca as c,cb as i,Y as o,aw as d,cc as u,cd as m,ce as x,J as p,cf as h,R as b,bl as y}from"./index-_WuEOacy.js";import{T as g,P as f,C as j}from"./ConfirmModal-DDMJAre1.js";import{l as v}from"./font-loader-jlbdh9Fw.js";import{N}from"./NodeInformationCard-Cdt6BsTw.js";import{a as w,P as k,b as C,B as S}from"./PageLayout-C4LpOVqW.js";import{C as _}from"./Card-BSUcfChC.js";import{L as T}from"./loader-circle-E8BhCd6Y.js";import{C as F,a as E}from"./DataBox-ihLFk7Um.js";import{I as L}from"./info-Gfj05Fvi.js";import{R as M,C as P}from"./Grid-BkE6UU8f.js";import{C as R}from"./circle-check-COooBZCl.js";import{T as z}from"./triangle-alert-aHb4szMy.js";import{R as D}from"./refresh-cw-J1p21ufp.js";import{C as A}from"./chevron-right-DMrbDIps.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const I=a("antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]),O=a("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),q=a("folder-key",[["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2",key:"3hgo9p"}],["path",{d:"m22 14-4.5 4.5",key:"1ef6z8"}],["path",{d:"m21 15 1 1",key:"1ejcpy"}]]),K=a("folder-lock",[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]]),H=a("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),V=a("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),$=a("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Y=a("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),B=a("shield-x",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),U=a("triangle-dashed",[["path",{d:"M10.17 4.193a2 2 0 0 1 3.666.013",key:"pltmmw"}],["path",{d:"M14 21h2",key:"v4qezv"}],["path",{d:"m15.874 7.743 1 1.732",key:"10m0iw"}],["path",{d:"m18.849 12.952 1 1.732",key:"zadnam"}],["path",{d:"M21.824 18.18a2 2 0 0 1-1.835 2.824",key:"fvwuk4"}],["path",{d:"M4.024 21a2 2 0 0 1-1.839-2.839",key:"1e1kah"}],["path",{d:"m5.136 12.952-1 1.732",key:"1u4ldi"}],["path",{d:"M8 21h2",key:"i9zjee"}],["path",{d:"m8.102 7.743-1 1.732",key:"1zzo4u"}]]);async function J(e){return r("/api/update_web_config",{method:"POST",body:JSON.stringify(e)})}const X=e.memo(function(){const{theme:e}=n(),{colorScheme:s}=e,a=l.find(e=>e.colorScheme===s)??l[0],r=a.displaySize,c=`clamp(${.8*r}rem, ${.6*r}rem + 1.5vw, ${1.4*r}rem)`;return t.jsx("div",{className:"h-10 flex items-center justify-center",children:t.jsxs("span",{className:"font-medium transition-all duration-300 leading-none text-center",style:{fontFamily:a.displayFont,color:a.displayColor,fontSize:c,fontOpticalSizing:"auto",letterSpacing:"-0.03em"},children:["Theme: ",a.displayName]})})}),G=e.memo(function(){const{theme:a,setThemePreset:r,setBrightness:i}=n(),{colorScheme:o,brightness:d}=a,[u,m]=e.useState(!1),[x,p]=e.useState(!1),h=e.useRef(null),b=e.useRef(null),y=(l.find(e=>e.colorScheme===o)??l[0]).id,g=e.useCallback((e,t)=>{if(!b.current)return d;const s=(b.current.y-e)/(t?200:80)*100;return Math.round(Math.max(0,Math.min(100,b.current.brightness+s)))},[d]),f=e.useCallback(e=>{r(e),m(!0)},[r]),j=e.useCallback(e=>{i(e)},[i]),v=e.useCallback(e=>{const t=l.find(t=>t.id===e);t&&c(t.backgroundImage)},[]);return t.jsx("div",{className:"grid grid-cols-4 gap-[3%] w-full",children:l.map(e=>{const a=y===e.id,r=!e.backgroundImage,n=a&&!r&&(u||x);return t.jsxs("div",{ref:a?h:void 0,title:e.displayName,className:s("flex flex-col items-stretch rounded-sm transition-all duration-300 ease-out overflow-hidden",a?"ring-2 ring-accent-primary scale-105 "+(r?"cursor-pointer":"cursor-ns-resize"):"cursor-pointer"),onMouseEnter:()=>{a&&!r?m(!0):a||v(e.id)},onMouseLeave:()=>!x&&m(!1),onClick:()=>!a&&f(e.id),onTouchStart:e=>{if(!a||r)return;e.preventDefault();const t=e.touches[0];b.current={y:t.clientY,brightness:d},p(!0),m(!0);const s=e=>{e.preventDefault();const t=e.touches[0];j(g(t.clientY,!0))},n=()=>{document.removeEventListener("touchmove",s),document.removeEventListener("touchend",n),b.current=null,p(!1),setTimeout(()=>m(!1),1500)};document.addEventListener("touchmove",s,{passive:!1}),document.addEventListener("touchend",n)},onMouseDown:e=>{if(!a||r)return;e.preventDefault(),b.current={y:e.clientY,brightness:d},p(!0),m(!0);const t=e=>{j(g(e.clientY,!1))},s=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",s),b.current=null,p(!1)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",s)},children:[t.jsxs("div",{className:"glass-thumbnail w-full aspect-square sm:aspect-[4/3] lg:aspect-video relative !rounded-b-none",children:["kde breeze"===e.id?t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#242627]",style:{opacity:n?.4:1},children:t.jsx("span",{className:"text-[#58b99d] text-[1.5em] font-bold font-mono",children:">"})}):"ribbon"===e.id?t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#F5F5F5]",style:{opacity:n?.4:1},children:t.jsx("span",{className:"text-[#2D2D2D] text-[1.5em] font-bold font-mono",children:"R"})}):t.jsx("div",{className:"absolute bg-cover bg-center transition-opacity duration-200",style:{inset:0,backgroundImage:`url(${e.backgroundImage})`,opacity:n?.4:1,filter:"brightness(var(--thumbnail-brightness, 1.5))"}}),a&&t.jsxs("div",{className:s("absolute inset-0 transition-opacity duration-200",n?"opacity-100":"opacity-0"),children:[t.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-black/70 transition-all duration-100 ease-out",style:{height:100-d+"%"}}),t.jsx("div",{className:"absolute inset-x-[8%] h-0.5 bg-white rounded-full shadow-lg transition-all duration-100 ease-out",style:{top:100-d+"%"}}),t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:t.jsxs("span",{className:"text-[0.6em] font-mono font-bold text-white drop-shadow-lg",children:[d,"%"]})})]})]}),t.jsx("div",{className:"flex flex-col w-full",children:e.paletteColors.map((e,s)=>t.jsx("div",{className:"flex",children:e.map((e,s)=>t.jsx("div",{className:"flex-1 aspect-[2/1]",style:{backgroundColor:e}},s))},s))})]},e.id)})})}),W=e.memo(function({layout:s="horizontal"}){return e.useEffect(()=>{v()},[]),"logo-only"===s?t.jsx(X,{}):"thumbnails-only"===s?t.jsx(G,{}):t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx(X,{}),t.jsx(G,{})]})});function Q(){const{latitude:a,longitude:r,enabled:n,setLocation:l,enable:c,disable:d,clear:u}=i(),[m,x]=e.useState(!1),[p,h]=e.useState(""),[b,y]=e.useState(""),[f,j]=e.useState("idle"),[v,N]=e.useState(null),k=e.useRef(null),C=e.useRef(null),S=e.useRef(!0);e.useEffect(()=>(S.current=!0,()=>{S.current=!1,C.current&&clearTimeout(C.current)}),[]);const E=()=>{x(!1),N(null)};e.useEffect(()=>{if(!m)return;const e=e=>{"loading"!==f&&k.current&&!k.current.contains(e.target)&&E()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[m,f]);const M=null!==a&&null!==r;return t.jsx(w,{children:t.jsxs("div",{ref:k,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx(_,{icon:t.jsx(U,{}),title:"Stealth",largeTitle:!0}),t.jsxs("div",{className:"flex items-center gap-1",children:[M&&!m&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:()=>{n?d():c()},className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2 mr-2",n?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle"),title:n?"Disable stealth location":"Enable stealth location",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",n?"translate-x-5":"translate-x-0.5")})}),t.jsx("button",{onClick:()=>{u(),x(!1)},className:"p-2 rounded-lg transition-colors text-text-muted hover:text-accent-danger hover:bg-accent-danger/10",title:"Clear stealth location",children:t.jsx(g,{className:"w-4 h-4"})})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:E,disabled:"loading"===f,className:s("p-2 rounded-lg transition-colors","loading"===f?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:()=>{if("loading"===f)return;C.current&&clearTimeout(C.current);const e=((e,t)=>{const s=parseFloat(e),a=parseFloat(t);return isNaN(s)||isNaN(a)?"Please enter valid numbers":s<-90||s>90?"Latitude must be between -90 and 90":a<-180||a>180?"Longitude must be between -180 and 180":0===s&&0===a?"Coordinates (0, 0) are invalid":null})(p,b);if(e)return void N(e);j("loading"),N(null);const t=parseFloat(p),s=parseFloat(b);l(t,s),n||c(),j("success"),C.current=setTimeout(()=>{S.current&&(j("idle"),x(!1))},1e3)},disabled:"loading"===f,className:s("p-2 rounded-lg transition-colors","loading"===f?"text-accent-primary cursor-wait":"success"===f?"text-accent-success":"error"===f?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save",children:"loading"===f?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===f?t.jsx(F,{className:"w-4 h-4"}):"error"===f?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:()=>{h((null==a?void 0:a.toFixed(6))??""),y((null==r?void 0:r.toFixed(6))??""),N(null),x(!0)},className:"p-2 rounded-lg transition-colors text-text-muted hover:text-text-primary hover:bg-bg-subtle",title:M?"Edit stealth location":"Set stealth location",children:t.jsx($,{className:"w-4 h-4"})})]})]}),t.jsx("div",{className:"bg-accent-tertiary/5 rounded-xl p-3 mb-4",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(L,{className:"w-4 h-4 text-accent-tertiary flex-shrink-0 mt-0.5"}),t.jsxs("p",{className:"type-body-sm text-text-muted",children:[t.jsx("span",{className:"text-text-secondary",children:"Stealth mode"})," allows you to appear on the map and in topology analysis without broadcasting your location. Coordinates are stored locally in your browser only — ",t.jsx("span",{className:"text-accent-tertiary",children:"never sent to config.yaml or the mesh"}),"."]})]})}),v&&t.jsx("div",{className:"text-xs mb-3 px-2 py-1.5 rounded-md text-accent-danger bg-accent-danger/10",children:v}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:m?"Latitude (°)":"Latitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",m?"bg-white/5":"bg-white/[0.02]"),children:m?t.jsx("input",{type:"number",value:p,onChange:e=>h(e.target.value),step:"0.000001",min:"-90",max:"90",placeholder:"e.g. 34.052234",className:"w-full bg-transparent text-text-primary focus:outline-none type-data placeholder:text-text-muted/50"}):t.jsx("span",{className:s("type-data",M&&n?"text-text-primary":"text-text-muted"),children:M?a.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:m?"Longitude (°)":"Longitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",m?"bg-white/5":"bg-white/[0.02]"),children:m?t.jsx("input",{type:"number",value:b,onChange:e=>y(e.target.value),step:"0.000001",min:"-180",max:"180",placeholder:"e.g. -118.243685",className:"w-full bg-transparent text-text-primary focus:outline-none type-data placeholder:text-text-muted/50"}):t.jsx("span",{className:s("type-data",M&&n?"text-text-primary":"text-text-muted"),children:M?r.toFixed(6):"Not set"})})]})]}),M&&!m&&t.jsx("div",{className:"mt-3 pt-3 border-t border-border-subtle",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:s("w-2 h-2 rounded-full",n?"bg-accent-success":"bg-text-muted")}),t.jsx("span",{className:"type-body-sm text-text-muted",children:n?"Stealth location active — you appear on maps with these coordinates":"Stealth location disabled — coordinates saved but not in use"})]})})]})})}const Z=[{value:7.8,label:"7.8 kHz"},{value:10.4,label:"10.4 kHz"},{value:15.6,label:"15.6 kHz"},{value:20.8,label:"20.8 kHz"},{value:31.25,label:"31.25 kHz"},{value:41.7,label:"41.7 kHz"},{value:62.5,label:"62.5 kHz"},{value:125,label:"125 kHz"},{value:250,label:"250 kHz"},{value:500,label:"500 kHz"}],ee=[5,6,7,8,9,10,11,12],te=[{value:5,label:"4/5"},{value:6,label:"4/6"},{value:7,label:"4/7"},{value:8,label:"4/8"}],se="radioConfig",ae="repeaterSettings",re="operatingMode";function ne({node:e,level:a,expandedKeys:r,selectedKeyId:n,globalFloodPolicy:l,onSelect:c,onToggle:i}){const o=r.has(e.id),d=n===e.id,u=e.children&&e.children.length>0,m="allow"===l;return t.jsxs("div",{children:[t.jsxs("div",{className:s("flex items-center gap-2 h-[36px] px-3 rounded-full cursor-pointer transition-colors",d?"bg-accent-primary/15":"hover:bg-subtle-fill",m&&"opacity-50 cursor-not-allowed"),style:{marginLeft:16*a+"px"},onClick:()=>!m&&c(e.id),children:[u?t.jsx("button",{onClick:t=>{t.stopPropagation(),i(e.id)},className:"p-1 hover:bg-subtle-fill-hover rounded-full transition-colors",children:t.jsx(A,{className:s("w-3.5 h-3.5 text-text-muted transition-transform",o&&"rotate-90")})}):t.jsx("span",{className:"w-5"}),t.jsx(q,{className:"w-4 h-4 text-accent-primary flex-shrink-0"}),t.jsx("span",{className:"type-data text-text-primary flex-1 truncate",children:e.name}),t.jsx("span",{className:s("type-data-xs px-2 py-0.5 rounded-full","allow"===e.floodPolicy?"bg-accent-success/15 text-accent-success":"bg-accent-danger/15 text-accent-danger"),children:"allow"===e.floodPolicy?"Allow":"Deny"})]}),u&&o&&t.jsx("div",{children:e.children.map(e=>t.jsx(ne,{node:e,level:a+1,expandedKeys:r,selectedKeyId:n,globalFloodPolicy:l,onSelect:c,onToggle:i},e.id))})]})}function le(){var a,n,l,c,i,v;const{stats:A,setMode:q,clearModeMutation:U,setDutyCycleConfig:X,clearDutyCycleMutation:G,fetchStats:le,startMutation:ce,clearMutation:ie}=d(),oe=null==(a=null==A?void 0:A.config)?void 0:a.radio,de=null==(n=null==A?void 0:A.config)?void 0:n.repeater,ue=null==(l=null==A?void 0:A.config)?void 0:l.duty_cycle,me=(null==A?void 0:A.node_name)||(null==(c=null==A?void 0:A.config)?void 0:c.node_name)||"Unknown Node",xe=(null==de?void 0:de.mode)??"forward",pe=(null==ue?void 0:ue.enforcement_enabled)??!1,he=null==(i=null==A?void 0:A.config)?void 0:i.delays,[be,ye]=e.useState(!1),[ge,fe]=e.useState(""),[je,ve]=e.useState(62.5),[Ne,we]=e.useState(7),[ke,Ce]=e.useState(5),[Se,_e]=e.useState(""),[Te,Fe]=e.useState("idle"),[Ee,Le]=e.useState(null),Me=e.useRef(null),Pe=e.useRef(null),[Re,ze]=e.useState(!1),[De,Ae]=e.useState(""),[Ie,Oe]=e.useState(""),[qe,Ke]=e.useState(""),[He,Ve]=e.useState("idle"),$e=e.useRef(null),Ye=e.useRef(null),[Be,Ue]=e.useState(!1),[Je,Xe]=e.useState(""),[Ge,We]=e.useState(""),[Qe,Ze]=e.useState(""),[et,tt]=e.useState(""),[st,at]=e.useState("idle"),[rt,nt]=e.useState(null),lt=e.useRef(null),ct=e.useRef(null),[it,ot]=e.useState("idle"),[dt,ut]=e.useState("idle"),[mt,xt]=e.useState(null),[pt,ht]=e.useState(null),bt=e.useRef(!0),yt=e.useRef(null),gt=e.useRef(null),ft=e.useRef(null),jt=e.useRef(null),vt=e.useRef(!1),Nt=e.useRef(!1);e.useEffect(()=>(bt.current=!0,()=>{bt.current=!1,yt.current&&clearTimeout(yt.current),gt.current&&clearTimeout(gt.current),ft.current&&clearTimeout(ft.current),jt.current&&clearTimeout(jt.current),Tt.current&&clearTimeout(Tt.current),Ft.current&&clearTimeout(Ft.current),Pe.current&&clearTimeout(Pe.current),$e.current&&clearTimeout($e.current),ct.current&&clearTimeout(ct.current)}),[]),e.useEffect(()=>{const e=e=>{if(be||Be||Re)return e.preventDefault(),e.returnValue="You have unsaved changes. Are you sure you want to leave?",e.returnValue};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[be,Be,Re]);const wt=null==(v=null==A?void 0:A.config)?void 0:v.web,[kt,Ct]=e.useState("idle"),[St,_t]=e.useState(null),Tt=e.useRef(null),Ft=e.useRef(null),Et=e.useRef(!1),[Lt,Mt]=e.useState([]),[Pt,Rt]=e.useState(!1),[zt,Dt]=e.useState(null),[At,It]=e.useState(!1),[Ot,qt]=e.useState(""),[Kt,Ht]=e.useState(null),[Vt,$t]=e.useState(!1),[Yt,Bt]=e.useState(null),[Ut,Jt]=e.useState(!1),[Xt,Gt]=e.useState(!1),[Wt,Qt]=e.useState(!1),[Zt,es]=e.useState([]),[ts,ss]=e.useState(!1),[as,rs]=e.useState(null),[ns,ls]=e.useState("deny"),[cs,is]=e.useState(!1),[os,ds]=e.useState(null),[us,ms]=e.useState(new Set),[xs,ps]=e.useState(!1),[hs,bs]=e.useState(!1),[ys,gs]=e.useState(!1),[fs,js]=e.useState(null),[vs,Ns]=e.useState(null),[ws,ks]=e.useState(""),[Cs,Ss]=e.useState("deny"),[_s,Ts]=e.useState(!1),[Fs,Es]=e.useState(!0),[Ls,Ms]=e.useState(!1),[Ps,Rs]=e.useState(!0),[zs,Ds]=e.useState("idle"),[As,Is]=e.useState(!1),[Os,qs]=e.useState(!1),Ks=e.useRef(!1);e.useEffect(()=>{const e=be&&!Ks.current;Ks.current=be,oe&&e&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power)))},[oe,be]);const Hs=e.useMemo(()=>{if(!oe||!be)return!1;const e=oe.frequency/1e6,t=oe.bandwidth/1e3,s=parseFloat(ge)||0;return Math.abs(s-e)>1e-4||je!==t||Ne!==oe.spreading_factor||ke!==oe.coding_rate||parseInt(Se)!==oe.tx_power},[oe,be,ge,je,Ne,ke,Se]),Vs=e.useCallback(()=>{ye(!1),Le(null),oe&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power)))},[oe]);e.useEffect(()=>{if(!be)return;const e=e=>{"loading"!==Te&&Me.current&&!Me.current.contains(e.target)&&Vs()};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[be,Vs,Te]);const $s=e.useCallback(()=>{const e=null==he?void 0:he.tx_delay_factor;return e&&"object"==typeof e&&"parsedValue"in e?e.parsedValue??1:"number"==typeof e?e:1},[he]),Ys=e.useCallback(()=>{const e=null==he?void 0:he.direct_tx_delay_factor;return"number"==typeof e?e:.5},[he]),Bs=e.useCallback(()=>{const e=null==ue?void 0:ue.max_airtime_percent;return"number"==typeof e?e:e&&"object"==typeof e&&"parsedValue"in e?e.parsedValue??6:6},[ue]),Us=e.useCallback(()=>{Ae($s().toFixed(2)),Oe(Ys().toFixed(2)),Ke(Bs().toFixed(1)),ze(!0)},[$s,Ys,Bs]),Js=e.useCallback(()=>{ze(!1)},[]);e.useEffect(()=>{if(!Re)return;const e=e=>{"loading"!==He&&Ye.current&&!Ye.current.contains(e.target)&&Js()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[Re,Js,He]);const Xs=e.useCallback(()=>{var e,t,s;Xe(me),We((null==(e=null==de?void 0:de.latitude)?void 0:e.toString())||"0"),Ze((null==(t=null==de?void 0:de.longitude)?void 0:t.toString())||"0"),tt((null==(s=null==de?void 0:de.send_advert_interval_hours)?void 0:s.toString())||"0"),nt(null),Ue(!0)},[me,de]),Gs=e.useCallback(()=>{Ue(!1),nt(null)},[]);e.useEffect(()=>{if(!Be)return;const e=e=>{"loading"!==st&<.current&&!lt.current.contains(e.target)&&Gs()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[Be,Gs,st]);const Ws=async()=>{var e;if("loading"===kt)return;const t=(null==wt?void 0:wt.cors_enabled)??!1,s=!t,a=t;Tt.current&&clearTimeout(Tt.current),Ft.current&&clearTimeout(Ft.current),Et.current=!1,_t(s),Ct("loading"),Tt.current=setTimeout(()=>{Et.current||bt.current&&(_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3))},1e4);try{const t=await J({web:{cors_enabled:s}});if(Et.current=!0,Tt.current&&clearTimeout(Tt.current),!bt.current)return;t.success||(null==(e=t.data)?void 0:e.persisted)?(await le(),Ct("success"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3)):(_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3))}catch{if(Et.current=!0,Tt.current&&clearTimeout(Tt.current),!bt.current)return;_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3)}};e.useEffect(()=>{(async()=>{Rs(!0);try{const e=await async function(){return r("/api/check_pymc_console")}();e.success&&e.data?Ms(e.data.exists):Ms(!1);const t=null==wt?void 0:wt.web_path;Es(!t||""===t)}catch{Ms(!1)}finally{Rs(!1)}})()},[null==wt?void 0:wt.web_path]);const Qs=async e=>{var t;if("loading"!==zs){Ds("loading");try{const s=await J({web:{web_path:e?null:"/opt/pymc_console/web/html"}});if(!bt.current)return;s.success||(null==(t=s.data)?void 0:t.persisted)?(Es(e),Ds("success"),Is(!0),setTimeout(()=>{bt.current&&Ds("idle")},2e3)):(Ds("error"),setTimeout(()=>{bt.current&&Ds("idle")},2e3))}catch{if(!bt.current)return;Ds("error"),setTimeout(()=>{bt.current&&Ds("idle")},2e3)}}},Zs=e.useCallback(async()=>{Rt(!0),Dt(null);try{const e=await async function(){return r("/auth/tokens")}();Mt(e.tokens||[])}catch(e){Dt(e instanceof Error?e.message:"Failed to fetch tokens")}finally{Rt(!1)}},[]);e.useEffect(()=>{Zs()},[Zs]);const ea=async()=>{if(Ot.trim()){Jt(!0),Dt(null);try{const e=await async function(e){return r("/auth/tokens",{method:"POST",body:JSON.stringify({name:e})})}(Ot.trim());Ht(e.token||null),It(!1),$t(!0),qt(""),await Zs()}catch(e){Dt(e instanceof Error?e.message:"Failed to create token")}finally{Jt(!1)}}else Dt("Token name is required")},ta=e=>e?new Date(1e3*e).toLocaleString():"Never",sa=e.useCallback(e=>{const t=new Map,s=[];return e.forEach(e=>{const s={id:e.id,name:e.name,floodPolicy:e.flood_policy,transport_key:e.transport_key,last_used:e.last_used,parent_id:e.parent_id,children:[]};t.set(e.id,s)}),t.forEach(e=>{e.parent_id&&t.has(e.parent_id)?t.get(e.parent_id).children.push(e):s.push(e)}),s},[]),aa=e.useCallback(async()=>{ss(!0),rs(null);try{const e=await async function(){return r("/api/transport_keys")}();e.success&&e.data?es(sa(e.data)):rs(e.error||"Failed to load transport keys")}catch(e){rs(e instanceof Error?e.message:"Unknown error occurred")}finally{ss(!1)}},[sa]);e.useEffect(()=>{aa()},[aa]);const ra=e.useCallback((e,t)=>{for(const s of e){if(s.id===t)return s;if(s.children){const e=ra(s.children,t);if(e)return e}}return null},[]),na=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);return null==e?void 0:e.name},[os,Zt,ra]),la=e.useCallback(e=>{ms(t=>{const s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),ca=async e=>{is(!0),rs(null);try{const t=await async function(e){return r("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:e})})}("allow"===e);t.success?ls(e):rs(t.error||"Failed to update global flood policy")}catch(t){rs(t instanceof Error?t.message:"Failed to update global flood policy")}finally{is(!1)}},ia=async()=>{if(ws.trim()){Ts(!0),rs(null);try{const e=await async function(e){return r("/api/transport_keys",{method:"POST",body:JSON.stringify(e)})}({name:ws.trim(),flood_policy:Cs,parent_id:os??void 0});e.success?(await aa(),ps(!1),ks(""),Ss("deny")):rs(e.error||"Failed to add transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to add transport key")}finally{Ts(!1)}}else rs("Key name is required")},oa=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);e&&(js({...e}),bs(!0))},[os,Zt,ra]);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&(xs&&(ps(!1),ks(""),Ss("deny")),hs&&(bs(!1),js(null)),ys&&(gs(!1),Ns(null)),At&&(It(!1),qt("")),Vt&&($t(!1),Ht(null)))};if(xs||hs||ys||At||Vt)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[xs,hs,ys,At,Vt]);const da=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);e&&(Ns(e),gs(!0))},[os,Zt,ra]);return t.jsxs(k,{children:[t.jsx(C,{title:"Configuration",icon:t.jsx(u,{})}),t.jsxs(S,{children:[t.jsxs(M,{template:"standard",children:[t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:lt,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-2",children:[t.jsx(m,{className:"icon-md text-accent-primary"}),"Repeater Settings"]}),t.jsx("div",{className:"flex items-center gap-1",children:de&&(Be?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Gs,disabled:"loading"===st,className:s("p-2 radius-inner transition-base","loading"===st?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:async()=>{if("loading"!==st){ct.current&&clearTimeout(ct.current),ce(ae),at("loading"),nt(null);try{const e={};Je&&Je!==me&&(e.node_name=Je);const t=parseFloat(Ge);isNaN(t)||t===(null==de?void 0:de.latitude)||(e.latitude=t);const s=parseFloat(Qe);isNaN(s)||s===(null==de?void 0:de.longitude)||(e.longitude=s);const a=parseInt(et);if(isNaN(a)||a===(null==de?void 0:de.send_advert_interval_hours)||(e.flood_advert_interval_hours=a),0===Object.keys(e).length)return nt({success:!0,message:"No changes to save"}),at("idle"),void ie(ae);const r=await y(e);if(!bt.current)return void ie(ae);if(r.success&&r.data){const e=r.data.applied.join(", ");nt({success:!0,message:`Updated: ${e}`}),await le({force:!0}),at("success"),ct.current=setTimeout(()=>{bt.current&&(at("idle"),Ue(!1),nt(null),ie(ae))},1500)}else nt({success:!1,message:r.error||"Failed to save"}),at("error"),ie(ae),ct.current=setTimeout(()=>{bt.current&&at("idle")},2e3)}catch(e){if(!bt.current)return void ie(ae);nt({success:!1,message:String(e)}),at("error"),ie(ae),ct.current=setTimeout(()=>{bt.current&&at("idle")},2e3)}}},disabled:"loading"===st,className:s("p-2 radius-inner transition-base","loading"===st?"text-accent-primary cursor-wait":"success"===st?"text-accent-success":"error"===st?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save changes",children:"loading"===st?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===st?t.jsx(F,{className:"w-4 h-4"}):"error"===st?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:Xs,className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit repeater settings",children:t.jsx($,{className:"w-4 h-4"})}))})]}),rt&&t.jsx("div",{className:s("text-xs mb-3 px-2 py-1.5 rounded-md",rt.success?"text-accent-success bg-accent-success/10":"text-accent-danger bg-accent-danger/10"),children:rt.message}),de?t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{className:"col-span-2",children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Node Name"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"text",value:Je,onChange:e=>Xe(e.target.value),maxLength:50,className:"w-full bg-transparent text-text-primary focus:outline-none type-data",placeholder:"Enter node name"}):t.jsx("span",{className:"type-data text-text-primary",children:me})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Latitude (°)":"Latitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:Ge,onChange:e=>We(e.target.value),step:"0.000001",min:"-90",max:"90",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:0!==de.latitude?de.latitude.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Longitude (°)":"Longitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:Qe,onChange:e=>Ze(e.target.value),step:"0.000001",min:"-180",max:"180",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:0!==de.longitude?de.longitude.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Advert Interval (hours)":"Advert Interval"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:et,onChange:e=>tt(e.target.value),min:"0",max:"48",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:de.send_advert_interval_hours>0?`${de.send_advert_interval_hours}h`:"Disabled"})}),Be&&t.jsx("p",{className:"type-data-xs text-text-muted mt-1 ml-4",children:"0 = disabled, 3-48 hours"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Score-based TX"}),t.jsx("div",{className:"h-[38px] rounded-full px-4 flex items-center bg-subtle-fill",children:t.jsx("span",{className:"type-data text-text-primary",children:de.use_score_for_tx?"Enabled":"Disabled"})})]})]}):t.jsx("p",{className:"text-text-muted",children:"Loading repeater settings..."})]})})}),t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:Me,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-2",children:[t.jsx(I,{className:"icon-md text-accent-primary"}),"Radio Configuration"]}),t.jsx("div",{className:"flex items-center gap-1",children:oe&&(be?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Vs,disabled:"loading"===Te,className:s("p-2 radius-inner transition-base","loading"===Te?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:async()=>{if("loading"!==Te){Pe.current&&clearTimeout(Pe.current),ce(se),Fe("loading"),Le(null);try{const e={},t=parseFloat(ge),s=oe?oe.frequency/1e6:0;Math.abs(t-s)>1e-4&&(e.frequency_mhz=t);const a=oe?oe.bandwidth/1e3:0;je!==a&&(e.bandwidth_khz=je),Ne!==(null==oe?void 0:oe.spreading_factor)&&(e.spreading_factor=Ne),ke!==(null==oe?void 0:oe.coding_rate)&&(e.coding_rate=ke);const r=parseInt(Se);if(r!==(null==oe?void 0:oe.tx_power)&&(e.tx_power=r),0===Object.keys(e).length)return Le({success:!0,message:"No changes to save"}),Fe("idle"),void ie(se);const n=await y(e);if(!bt.current)return void ie(se);if(n.success&&n.data){const e=n.data.applied.join(", "),t=n.data.live_update?" (applied live)":" (restart required)";Le({success:!0,message:`Updated: ${e}${t}`}),await le({force:!0}),Fe("success"),Pe.current=setTimeout(()=>{bt.current&&(Fe("idle"),ye(!1),Le(null),ie(se))},1500)}else Le({success:!1,message:n.error||"Failed to save"}),Fe("error"),ie(se),Pe.current=setTimeout(()=>{bt.current&&Fe("idle")},2e3)}catch(e){if(!bt.current)return void ie(se);Le({success:!1,message:String(e)}),Fe("error"),ie(se),Pe.current=setTimeout(()=>{bt.current&&Fe("idle")},2e3)}}},disabled:"loading"===Te||!Hs,className:s("p-2 radius-inner transition-base","loading"===Te?"text-accent-primary cursor-wait":"success"===Te?"text-accent-success":"error"===Te?"text-accent-danger":Hs?"text-accent-success hover:bg-accent-success/10":"text-text-muted cursor-not-allowed"),title:Hs?"Save changes":"No changes to save",children:"loading"===Te?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===Te?t.jsx(F,{className:"w-4 h-4"}):"error"===Te?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:()=>{oe&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power))),Le(null),ye(!0)},className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit radio settings",children:t.jsx($,{className:"w-4 h-4"})}))})]}),Ee&&t.jsx("div",{className:s("text-xs mb-3 px-2 py-1.5 rounded-md",Ee.success?"text-accent-success bg-accent-success/10":"text-accent-danger bg-accent-danger/10"),children:Ee.message}),oe?t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:be?"Frequency (MHz)":"Frequency"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsx("input",{type:"number",value:ge,onChange:e=>fe(e.target.value),step:"0.001",min:"400",max:"930",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:x(oe.frequency)})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:be?"TX Power (dBm)":"TX Power"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsx("input",{type:"number",value:Se,onChange:e=>_e(e.target.value),min:"-9",max:"22",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsxs("span",{className:"type-data text-text-primary",children:[oe.tx_power," dBm"]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Bandwidth"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:je,onChange:e=>ve(parseFloat(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:Z.map(e=>t.jsx("option",{value:e.value,children:e.label},e.value))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsx("span",{className:"type-data text-text-primary",children:h(oe.bandwidth)})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Spreading Factor"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:Ne,onChange:e=>we(parseInt(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:ee.map(e=>t.jsxs("option",{value:e,children:["SF",e]},e))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:["SF",oe.spreading_factor]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Coding Rate"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:ke,onChange:e=>Ce(parseInt(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:te.map(e=>t.jsx("option",{value:e.value,children:e.label},e.value))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:["4/",oe.coding_rate]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Preamble"}),t.jsx("div",{className:"h-[38px] rounded-full px-4 flex items-center bg-subtle-fill",children:t.jsxs("span",{className:"type-data text-text-primary",children:[oe.preamble_length," symbols"]})})]})]}):t.jsx("p",{className:"text-text-muted",children:"Loading radio configuration..."})]})})})]}),t.jsxs(M,{template:"standard",children:[t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:Ye,children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-3",children:[t.jsx(b,{className:"icon-md text-icon-card-title"}),"Operating Mode"]}),t.jsx("div",{className:"flex items-center gap-1",children:Re?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"!==He){$e.current&&clearTimeout($e.current),ce(re),Ve("loading");try{const e=await y({tx_delay_factor:parseFloat(De),direct_tx_delay_factor:parseFloat(Ie)});if(await X({max_airtime_percent:parseFloat(qe),enforcement_enabled:pe}),!bt.current)return void ie(re);e.success&&e.data?(await le({force:!0}),Ve("success"),$e.current=setTimeout(()=>{bt.current&&(Ve("idle"),ze(!1),ie(re))},1500)):(Ve("error"),ie(re),$e.current=setTimeout(()=>{bt.current&&Ve("idle")},2e3))}catch{if(!bt.current)return void ie(re);Ve("error"),ie(re),$e.current=setTimeout(()=>{bt.current&&Ve("idle")},2e3)}}},disabled:"loading"===He,className:s("p-2 radius-inner transition-base","loading"===He?"text-accent-primary cursor-wait":"success"===He?"text-accent-success":"error"===He?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save",children:"loading"===He?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===He?t.jsx(F,{className:"w-4 h-4"}):"error"===He?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})}),t.jsx("button",{onClick:Js,className:"p-2 radius-inner transition-base text-text-muted hover:text-accent-danger hover:bg-accent-danger/10",title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:Us,className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit settings",children:t.jsx($,{className:"w-4 h-4"})})})]}),t.jsx("p",{className:"type-label text-text-muted mb-3",children:"Control how the repeater handles packets"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[t.jsxs("div",{className:"flex-1 space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Repeat"}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==mt?mt:"forward"===xe;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"===it)return;const t=!e,s="forward"===xe;yt.current&&clearTimeout(yt.current),gt.current&&clearTimeout(gt.current),vt.current=!1,xt(t),ot("loading"),yt.current=setTimeout(()=>{vt.current||bt.current&&(xt(s),ot("error"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null))},2e3))},1e4);try{if(await q(t?"forward":"monitor"),vt.current=!0,yt.current&&clearTimeout(yt.current),!bt.current)return;ot("success"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null),U())},2e3)}catch{if(vt.current=!0,yt.current&&clearTimeout(yt.current),!bt.current)return;xt(s),ot("error"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null))},2e3)}},disabled:"loading"===it,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===it&&"opacity-70"),"aria-label":"Toggle forward mode",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),t.jsx("span",{className:s("type-data text-sm w-7",e?"text-accent-success":"text-text-muted"),children:e?"On":"Off"}),"loading"===it&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===it&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===it&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Duty Cycle"}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==pt?pt:pe;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"===dt)return;const t=!e,s=pe;ft.current&&clearTimeout(ft.current),jt.current&&clearTimeout(jt.current),Nt.current=!1,ht(t),ut("loading"),ft.current=setTimeout(()=>{Nt.current||bt.current&&(ht(s),ut("error"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null))},2e3))},1e4);try{if(await X({max_airtime_percent:Bs(),enforcement_enabled:t}),Nt.current=!0,ft.current&&clearTimeout(ft.current),!bt.current)return;ut("success"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null),G())},2e3)}catch{if(Nt.current=!0,ft.current&&clearTimeout(ft.current),!bt.current)return;ht(s),ut("error"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null))},2e3)}},disabled:"loading"===dt,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===dt&&"opacity-70"),"aria-label":"Toggle duty cycle",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),t.jsx("span",{className:s("type-data text-sm w-7",e?"text-accent-success":"text-text-muted"),children:e?"On":"Off"}),"loading"===dt&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===dt&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===dt&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Max Airtime"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:qe,onChange:e=>Ke(e.target.value),step:"0.5",min:"0.1",max:"100",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"%"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[Bs().toFixed(1),"%"]})})]})]}),t.jsx("div",{className:"hidden sm:block w-px bg-border-subtle"}),t.jsxs("div",{className:"flex-1 pt-4 sm:pt-0 border-t sm:border-t-0 border-border-subtle",children:[t.jsx("label",{className:"type-label text-text-muted block mb-3",children:"TX Delays"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-label text-text-muted",children:"Flood"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:De,onChange:e=>Ae(e.target.value),step:"0.1",min:"0",max:"5",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"x"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[$s().toFixed(2),"x"]})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-label text-text-muted",children:"Direct"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:Ie,onChange:e=>Oe(e.target.value),step:"0.1",min:"0",max:"5",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"s"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[Ys().toFixed(2),"s"]})})]})]})]})]})]})})}),t.jsx(P,{span:12,md:6,children:t.jsxs(w,{children:[t.jsx(_,{icon:t.jsx(u,{}),title:"App Settings",largeTitle:!0}),t.jsx("p",{className:"type-body-sm text-text-muted mb-4",children:"Appearance and web server options."}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("span",{className:"type-body text-text-primary font-medium block",children:"Enable CORS"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Allow cross-origin API access"})]}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==St?St:(null==wt?void 0:wt.cors_enabled)??!1;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Ws,disabled:"loading"===kt,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===kt&&"opacity-70"),title:e?"Disable CORS":"Enable CORS",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),"loading"===kt&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===kt&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===kt&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsx("div",{children:t.jsx(W,{})})]})]})})]}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(K,{className:"icon-md text-accent-primary"}),"Regions / Transport Keys"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Manage regional key hierarchy for flood control"})]}),t.jsxs("div",{className:"flex gap-2 flex-wrap",children:[t.jsxs("button",{onClick:()=>ps(!0),disabled:"allow"===ns,className:s("flex items-center gap-1.5 h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium","allow"===ns?"bg-subtle-fill text-text-muted cursor-not-allowed":"bg-accent-success/10 hover:bg-accent-success/20 text-accent-success"),children:[t.jsx(f,{className:"w-3.5 h-3.5"}),"Add"]}),t.jsx("button",{onClick:oa,disabled:!os||"allow"===ns,className:s("h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium",os&&"allow"!==ns?"bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary":"bg-subtle-fill text-text-muted cursor-not-allowed"),children:"Edit"}),t.jsx("button",{onClick:da,disabled:!os||"allow"===ns,className:s("h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium",os&&"allow"!==ns?"bg-accent-danger/10 hover:bg-accent-danger/20 text-accent-danger":"bg-subtle-fill text-text-muted cursor-not-allowed"),children:"Delete"})]})]}),t.jsx("div",{className:"bg-subtle-fill radius-card p-4 mb-4",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:s("w-10 h-10 rounded-full flex items-center justify-center","allow"===ns?"bg-accent-success/20":"bg-accent-danger/20"),children:"allow"===ns?t.jsx(Y,{className:"w-5 h-5 text-accent-success"}):t.jsx(B,{className:"w-5 h-5 text-accent-danger"})}),t.jsxs("div",{children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:"Global Flood Policy"}),t.jsx("p",{className:"type-body-sm text-text-muted",children:"Master control for repeater flooding"})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("div",{className:"flex bg-subtle-fill rounded-full p-1",children:[t.jsx("button",{onClick:()=>ca("deny"),disabled:cs,className:s("px-4 py-1.5 rounded-full transition-colors type-body-sm font-medium","deny"===ns?"bg-accent-danger/20 text-accent-danger":"text-text-muted hover:text-text-secondary",cs&&"opacity-50"),children:"Deny"}),t.jsx("button",{onClick:()=>ca("allow"),disabled:cs,className:s("px-4 py-1.5 rounded-full transition-colors type-body-sm font-medium","allow"===ns?"bg-accent-success/20 text-accent-success":"text-text-muted hover:text-text-secondary",cs&&"opacity-50"),children:"Allow"})]}),cs&&t.jsx(T,{className:"w-4 h-4 animate-spin text-text-muted"})]})]})}),as&&t.jsx("div",{className:"type-body-sm mb-3 px-3 py-2 rounded-full text-accent-danger bg-accent-danger/10",children:as}),t.jsx("div",{className:"bg-subtle-fill radius-card p-4 min-h-[120px]",children:ts?t.jsxs("div",{className:"flex items-center justify-center py-6",children:[t.jsx(T,{className:"w-5 h-5 animate-spin text-accent-primary mr-2"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Loading transport keys..."})]}):0===Zt.length?t.jsxs("div",{className:"text-center py-6",children:[t.jsx("div",{className:"w-12 h-12 rounded-full bg-subtle-fill mx-auto mb-3 flex items-center justify-center",children:t.jsx(K,{className:"w-6 h-6 text-text-muted/50"})}),t.jsx("p",{className:"type-body text-text-muted",children:"No transport keys found"}),t.jsx("p",{className:"type-body-sm text-text-muted/70 mt-1",children:"Add your first transport key to get started"})]}):t.jsx("div",{className:"space-y-1",children:Zt.map(e=>t.jsx(ne,{node:e,level:0,expandedKeys:us,selectedKeyId:os,globalFloodPolicy:ns,onSelect:ds,onToggle:la},e.id))})})]})}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(H,{className:"icon-md text-accent-primary"}),"API Tokens"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Manage API tokens for machine-to-machine authentication"})]}),t.jsxs("button",{onClick:()=>It(!0),className:"flex items-center justify-center gap-2 h-[32px] px-4 bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary rounded-full transition-colors type-body-sm font-medium",children:[t.jsx(f,{className:"w-4 h-4"}),"Create Token"]})]}),t.jsx("div",{className:"bg-accent-tertiary/5 radius-card p-4 mb-4",children:t.jsxs("div",{className:"flex gap-3",children:[t.jsx("div",{className:"w-8 h-8 rounded-full bg-accent-tertiary/20 flex items-center justify-center flex-shrink-0",children:t.jsx(L,{className:"w-4 h-4 text-accent-tertiary"})}),t.jsxs("div",{className:"type-body-sm text-text-muted",children:[t.jsxs("p",{children:[t.jsx("span",{className:"text-text-secondary",children:"API tokens"})," are used for machine-to-machine authentication. Include the token in the ",t.jsx("code",{className:"type-code bg-accent-tertiary/20 px-1.5 py-0.5 rounded-full text-accent-tertiary",children:"X-API-Key"})," header when making API requests."]}),t.jsx("p",{className:"mt-1 text-text-muted/70",children:"Tokens are only shown once at creation. Store them securely."})]})]})}),zt&&t.jsx("div",{className:"type-body-sm mb-3 px-3 py-2 rounded-full text-accent-danger bg-accent-danger/10",children:zt}),Pt&&0===Lt.length?t.jsxs("div",{className:"flex items-center justify-center py-6",children:[t.jsx(T,{className:"w-5 h-5 animate-spin text-accent-primary mr-2"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Loading tokens..."})]}):Lt.length>0?t.jsx("div",{className:"space-y-2",children:Lt.map(e=>t.jsx("div",{className:"bg-subtle-fill hover:bg-subtle-fill-strong radius-card p-4 transition-base",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx("div",{className:"w-10 h-10 rounded-full bg-accent-primary/10 flex items-center justify-center flex-shrink-0",children:t.jsx(H,{className:"w-5 h-5 text-accent-primary"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("h3",{className:"type-body text-text-primary font-medium truncate",children:e.name}),t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-0.5",children:[t.jsxs("span",{className:"type-data-sm text-text-muted truncate",children:["Created: ",ta(e.created_at)]}),t.jsxs("span",{className:"type-data-sm text-text-muted truncate",children:["Last used: ",ta(e.last_used)]})]})]})]}),t.jsxs("button",{onClick:()=>Bt({id:e.id,name:e.name}),disabled:Xt,className:"h-[32px] px-4 bg-accent-danger/10 hover:bg-accent-danger/20 text-accent-danger rounded-full transition-colors disabled:opacity-50 type-body-sm font-medium flex items-center justify-center gap-1.5",children:[t.jsx(g,{className:"w-3.5 h-3.5"}),"Revoke"]})]})},e.id))}):t.jsxs("div",{className:"bg-subtle-fill radius-card p-6 text-center",children:[t.jsx("div",{className:"w-14 h-14 rounded-full bg-subtle-fill mx-auto mb-4 flex items-center justify-center",children:t.jsx(H,{className:"w-7 h-7 text-text-muted/50"})}),t.jsx("h3",{className:"type-body text-text-primary font-medium mb-1",children:"No API Tokens"}),t.jsx("p",{className:"type-body-sm text-text-muted mb-4",children:"Create a token to enable API access"}),t.jsx("button",{onClick:()=>It(!0),className:"h-[32px] px-4 bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary rounded-full transition-colors type-body-sm font-medium",children:"Create Your First Token"})]})]})}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(V,{className:"icon-md text-accent-primary"}),"Web Frontend"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Choose which web interface to use"})]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-3",children:[t.jsxs("label",{className:s("flex items-start gap-3 p-4 bg-subtle-fill radius-card border-2 cursor-pointer transition-base",Fs?"border-accent-primary bg-accent-primary/5":"border-transparent hover:border-accent-primary/30","loading"===zs&&"opacity-50 pointer-events-none"),children:[t.jsx("input",{type:"radio",name:"frontend",checked:Fs,onChange:()=>Qs(!0),disabled:"loading"===zs,className:"mt-1 h-4 w-4 text-accent-primary focus:ring-accent-primary focus:ring-offset-bg-elevated"}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"type-body text-text-primary font-medium",children:"Default Frontend"}),t.jsx("a",{href:"https://github.com/rightup/pyMC_Repeater",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"type-data-xs bg-accent-tertiary/15 text-accent-tertiary px-2.5 py-0.5 rounded-full font-medium hover:bg-accent-tertiary/25 transition-colors",children:"@RightUp"})]}),t.jsx("div",{className:"type-body-sm text-text-muted mt-1",children:"Built-in pyMC Repeater web interface"}),t.jsx("div",{className:"type-data-xs text-text-muted/60 mt-1 font-mono",children:"/opt/pymc_repeater/repeater/web/html"})]})]}),t.jsxs("label",{className:s("flex items-start gap-3 p-4 bg-subtle-fill radius-card border-2 cursor-pointer transition-base",Fs?"border-transparent hover:border-accent-primary/30":"border-accent-primary bg-accent-primary/5","loading"===zs&&"opacity-50 pointer-events-none"),children:[t.jsx("input",{type:"radio",name:"frontend",checked:!Fs,onChange:()=>Qs(!1),disabled:"loading"===zs,className:"mt-1 h-4 w-4 text-accent-primary focus:ring-accent-primary focus:ring-offset-bg-elevated"}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"type-body text-text-primary font-medium",children:"PyMC Console"}),t.jsx("span",{className:"type-data-xs bg-accent-secondary/15 text-accent-secondary px-2.5 py-0.5 rounded-full font-medium",children:"@Treehouse ⚡"})]}),t.jsx("div",{className:"type-body-sm text-text-muted mt-1",children:"Alternative web interface for pyMC Repeater"}),t.jsx("div",{className:"type-data-xs text-text-muted/60 mt-1 font-mono",children:"/opt/pymc_console/web/html"})]})]})]}),!Ps&&t.jsx("div",{className:s("bg-subtle-fill radius-card p-4",Ls?"border border-accent-success/20":"border border-accent-tertiary/20"),children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:s("w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0",Ls?"bg-accent-success/20":"bg-accent-tertiary/20"),children:Ls?t.jsx(R,{className:"w-4 h-4 text-accent-success"}):t.jsx(L,{className:"w-4 h-4 text-accent-tertiary"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:Ls?"PyMC Console has been detected":"PyMC Console Not Installed"}),Ls?t.jsxs("p",{className:"type-body-sm text-text-muted mt-1",children:["PyMC Console is installed at ",t.jsx("code",{className:"type-code bg-accent-success/10 px-1.5 py-0.5 rounded-full text-accent-success",children:"/opt/pymc_console/web/html"})]}):t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"type-body-sm text-text-muted mt-1 mb-3",children:["PyMC Console must be installed at ",t.jsx("code",{className:"type-code bg-accent-tertiary/10 px-1.5 py-0.5 rounded-full text-accent-tertiary",children:"/opt/pymc_console/web/html"})," before selecting this option."]}),t.jsxs("a",{href:"https://github.com/dmduran12/pymc_console-dist",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 h-[32px] px-4 bg-accent-tertiary/10 hover:bg-accent-tertiary/20 text-accent-tertiary rounded-full type-body-sm font-medium transition-colors",children:[t.jsx(O,{className:"w-4 h-4"}),"PyMC Console Install Instructions"]})]})]})]})}),As&&t.jsx("div",{className:"bg-subtle-fill radius-card p-4 border border-accent-secondary/30",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[t.jsx("div",{className:"w-8 h-8 rounded-full bg-accent-secondary/20 flex items-center justify-center flex-shrink-0",children:t.jsx(z,{className:"w-4 h-4 text-accent-secondary"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:"Service restart required"}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Web frontend changes will take effect after restarting the pymc-repeater service."})]})]}),t.jsx("button",{onClick:async()=>{if(!Os){qs(!0);try{await async function(){return r("/api/restart_service",{method:"POST",body:"{}"})}(),Is(!1),setTimeout(()=>{window.location.reload()},2e3)}catch{Is(!1),setTimeout(()=>{window.location.reload()},3e3)}}},disabled:Os,className:"h-[32px] px-4 bg-accent-secondary/10 hover:bg-accent-secondary/20 text-accent-secondary rounded-full transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 whitespace-nowrap type-body-sm font-medium",children:Os?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Restarting..."]}):t.jsxs(t.Fragment,{children:[t.jsx(D,{className:"w-4 h-4"}),"Restart Now"]})})]})})]})]})}),A&&t.jsx(M,{template:"auto",children:t.jsx(N,{nodeName:me,repeaterVersion:A.version,coreVersion:A.core_version,localHash:A.local_hash,publicKey:A.public_key})}),A&&(0===(null==de?void 0:de.latitude)||!(null==de?void 0:de.latitude))&&(0===(null==de?void 0:de.longitude)||!(null==de?void 0:de.longitude))&&t.jsx(M,{template:"auto",children:t.jsx(Q,{})})]}),At&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&It(!1),role:"dialog","aria-modal":"true","aria-labelledby":"create-token-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"create-token-modal-title",className:"type-subheading text-text-primary mb-4",children:"Create API Token"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Token Name"}),t.jsx("input",{type:"text",value:Ot,onChange:e=>qt(e.target.value),placeholder:"e.g., Production Server, CI/CD Pipeline",className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary placeholder-text-muted focus:outline-none ring-focus-inset transition-base",onKeyDown:e=>"Enter"===e.key&&ea(),autoFocus:!0}),t.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Give your token a descriptive name to identify its purpose"})]}),t.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{It(!1),qt(""),Dt(null)},disabled:Ut,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:ea,disabled:Ut||!Ot.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:Ut?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Creating..."]}):"Create Token"})]})]})]})}),Vt&&Kt&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&$t(!1),role:"dialog","aria-modal":"true","aria-labelledby":"show-token-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-lg w-full",children:[t.jsx("h3",{id:"show-token-modal-title",className:"type-subheading text-text-primary mb-4",children:"Token Created Successfully"}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"bg-accent-secondary/10 border border-accent-secondary/30 radius-inner p-3",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(z,{className:"w-4 h-4 text-accent-secondary flex-shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm text-text-secondary",children:[t.jsx("strong",{children:"Save this token now!"})," For security reasons, it will not be shown again."]})]})}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Your API Token"}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("input",{value:Kt,readOnly:!0,className:"flex-1 px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary font-mono text-sm"}),t.jsxs("button",{onClick:()=>{Kt&&(navigator.clipboard.writeText(Kt),Qt(!0),setTimeout(()=>Qt(!1),2e3))},className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base flex items-center gap-2",title:"Copy to clipboard",children:[Wt?t.jsx(F,{className:"w-4 h-4 text-accent-success"}):t.jsx(E,{className:"w-4 h-4"}),Wt?"Copied!":"Copy"]})]})]}),t.jsxs("div",{className:"bg-accent-tertiary/10 border border-accent-tertiary/30 radius-inner p-3",children:[t.jsx("p",{className:"text-sm text-text-secondary mb-2",children:t.jsx("strong",{children:"Usage Example:"})}),t.jsxs("code",{className:"block bg-accent-tertiary/20 px-3 py-2 rounded text-xs text-accent-tertiary font-mono overflow-x-auto",children:['curl -H "X-API-Key: ',Kt.slice(0,12),'..." ',window.location.origin,"/api/stats"]})]}),t.jsx("div",{className:"flex justify-end mt-6",children:t.jsx("button",{onClick:()=>{$t(!1),Ht(null)},className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base",children:"Done"})})]})]})}),t.jsx(j,{isOpen:!!Yt,title:"Revoke API Token",message:`Are you sure you want to revoke the token '${null==Yt?void 0:Yt.name}'? This action cannot be undone.`,confirmLabel:Xt?"Revoking...":"Revoke",cancelLabel:"Cancel",variant:"danger",onConfirm:async()=>{if(Yt){Gt(!0),Dt(null);try{await async function(e){return r(`/auth/tokens/${e}`,{method:"DELETE"})}(Yt.id),await Zs(),Bt(null)}catch(e){Dt(e instanceof Error?e.message:"Failed to revoke token")}finally{Gt(!1)}}},onCancel:()=>Bt(null)}),xs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&ps(!1),role:"dialog","aria-modal":"true","aria-labelledby":"add-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"add-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Add Transport Key"}),t.jsxs("div",{className:"space-y-4",children:[os&&t.jsxs("div",{className:"bg-accent-tertiary/10 border border-accent-tertiary/30 radius-inner p-3 text-sm text-text-secondary",children:["Adding as child of: ",t.jsx("strong",{className:"text-text-primary",children:na()})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Key Name"}),t.jsx("input",{type:"text",value:ws,onChange:e=>ks(e.target.value),placeholder:"e.g., Region Name, Group Key",className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary placeholder-text-muted focus:outline-none ring-focus-inset transition-base",onKeyDown:e=>"Enter"===e.key&&ia(),autoFocus:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Flood Policy"}),t.jsxs("div",{className:"flex bg-bg-subtle radius-inner border-control p-1",children:[t.jsx("button",{onClick:()=>Ss("deny"),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","deny"===Cs?"bg-accent-danger/20 text-accent-danger border border-accent-danger/50":"text-text-muted hover:text-text-secondary"),children:"DENY"}),t.jsx("button",{onClick:()=>Ss("allow"),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","allow"===Cs?"bg-accent-success/20 text-accent-success border border-accent-success/50":"text-text-muted hover:text-text-secondary"),children:"ALLOW"})]})]}),t.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{ps(!1),ks(""),Ss("deny")},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:ia,disabled:_s||!ws.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Adding..."]}):"Add Key"})]})]})]})}),hs&&fs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&bs(!1),role:"dialog","aria-modal":"true","aria-labelledby":"edit-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"edit-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Edit Transport Key"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Key Name"}),t.jsx("input",{type:"text",value:fs.name,onChange:e=>js({...fs,name:e.target.value}),className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary focus:outline-none ring-focus-inset transition-base",autoFocus:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Flood Policy"}),t.jsxs("div",{className:"flex bg-bg-subtle radius-inner border-control p-1",children:[t.jsx("button",{onClick:()=>js({...fs,floodPolicy:"deny"}),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","deny"===fs.floodPolicy?"bg-accent-danger/20 text-accent-danger border border-accent-danger/50":"text-text-muted hover:text-text-secondary"),children:"DENY"}),t.jsx("button",{onClick:()=>js({...fs,floodPolicy:"allow"}),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","allow"===fs.floodPolicy?"bg-accent-success/20 text-accent-success border border-accent-success/50":"text-text-muted hover:text-text-secondary"),children:"ALLOW"})]})]}),fs.transport_key&&t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Transport Key"}),t.jsx("code",{className:"block bg-bg-subtle px-3 py-2 radius-inner text-xs text-text-muted font-mono overflow-x-auto",children:fs.transport_key})]}),t.jsxs("div",{className:"flex justify-between gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{bs(!1),Ns(fs),gs(!0),js(null)},disabled:_s,className:"px-4 py-2 bg-accent-danger/20 hover:bg-accent-danger/30 text-accent-danger radius-inner border border-accent-danger/50 transition-base disabled:opacity-50",children:"Delete"}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx("button",{onClick:()=>{bs(!1),js(null)},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:async()=>{if(fs){Ts(!0),rs(null);try{const e=await async function(e,t){return r(`/api/transport_key/${e}`,{method:"PUT",body:JSON.stringify(t)})}(fs.id,{name:fs.name,flood_policy:fs.floodPolicy});e.success?(await aa(),bs(!1),js(null)):rs(e.error||"Failed to update transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to update transport key")}finally{Ts(!1)}}},disabled:_s||!fs.name.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Saving..."]}):"Save"})]})]})]})]})}),ys&&vs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&gs(!1),role:"dialog","aria-modal":"true","aria-labelledby":"delete-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"delete-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Delete Transport Key"}),t.jsxs("p",{className:"text-text-secondary mb-4",children:["Are you sure you want to delete ",t.jsxs("strong",{className:"text-text-primary",children:["'",vs.name,"'"]}),"?"]}),vs.children&&vs.children.length>0&&t.jsx("div",{className:"bg-accent-secondary/10 border border-accent-secondary/30 radius-inner p-3 mb-4",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(z,{className:"w-4 h-4 text-accent-secondary flex-shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm text-text-secondary",children:["This key has ",vs.children.length," child key(s). Deleting will also remove all children."]})]})}),t.jsxs("div",{className:"flex justify-end gap-3",children:[t.jsx("button",{onClick:()=>{gs(!1),Ns(null)},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover:bg-bg-elevated text-text-secondary rounded-lg border border-border-subtle transition-colors disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:async()=>{if(vs){Ts(!0),rs(null);try{const e=await async function(e){return r(`/api/transport_key/${e}`,{method:"DELETE"})}(vs.id);e.success?(await aa(),gs(!1),Ns(null),ds(null)):rs(e.error||"Failed to delete transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to delete transport key")}finally{Ts(!1)}}},disabled:_s,className:"px-4 py-2 bg-accent-danger/20 hover:bg-accent-danger/30 text-accent-danger radius-inner border border-accent-danger/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Deleting..."]}):"Delete"})]})]})})]})}export{le as default}; +import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as a,c7 as r,c8 as n,c9 as l,ca as c,cb as i,Y as o,aw as d,cc as u,cd as m,ce as x,J as p,cf as h,R as b,bl as y}from"./index-CrU_Ps9k.js";import{T as g,P as f,C as j}from"./ConfirmModal-CVFVRQC0.js";import{l as v}from"./font-loader-jlbdh9Fw.js";import{N}from"./NodeInformationCard-BjZ_sk1b.js";import{a as w,P as k,b as C,B as S}from"./PageLayout-BlXA3E6H.js";import{C as _}from"./Card-Cq7dyTi6.js";import{L as T}from"./loader-circle-D6Apotf0.js";import{C as F,a as E}from"./DataBox-sJHphnZd.js";import{I as L}from"./info-KKRXPMHC.js";import{R as M,C as P}from"./Grid-BkE6UU8f.js";import{C as R}from"./circle-check-DH0TJtTq.js";import{T as z}from"./triangle-alert-DrmOKr32.js";import{R as D}from"./refresh-cw-C1m-5omb.js";import{C as A}from"./chevron-right-DBUqxZL-.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const I=a("antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]),O=a("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),q=a("folder-key",[["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2",key:"3hgo9p"}],["path",{d:"m22 14-4.5 4.5",key:"1ef6z8"}],["path",{d:"m21 15 1 1",key:"1ejcpy"}]]),K=a("folder-lock",[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]]),H=a("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),V=a("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),$=a("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Y=a("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),B=a("shield-x",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),U=a("triangle-dashed",[["path",{d:"M10.17 4.193a2 2 0 0 1 3.666.013",key:"pltmmw"}],["path",{d:"M14 21h2",key:"v4qezv"}],["path",{d:"m15.874 7.743 1 1.732",key:"10m0iw"}],["path",{d:"m18.849 12.952 1 1.732",key:"zadnam"}],["path",{d:"M21.824 18.18a2 2 0 0 1-1.835 2.824",key:"fvwuk4"}],["path",{d:"M4.024 21a2 2 0 0 1-1.839-2.839",key:"1e1kah"}],["path",{d:"m5.136 12.952-1 1.732",key:"1u4ldi"}],["path",{d:"M8 21h2",key:"i9zjee"}],["path",{d:"m8.102 7.743-1 1.732",key:"1zzo4u"}]]);async function J(e){return r("/api/update_web_config",{method:"POST",body:JSON.stringify(e)})}const X=e.memo(function(){const{theme:e}=n(),{colorScheme:s}=e,a=l.find(e=>e.colorScheme===s)??l[0],r=a.displaySize,c=`clamp(${.8*r}rem, ${.6*r}rem + 1.5vw, ${1.4*r}rem)`;return t.jsx("div",{className:"h-10 flex items-center justify-center",children:t.jsxs("span",{className:"font-medium transition-all duration-300 leading-none text-center",style:{fontFamily:a.displayFont,color:a.displayColor,fontSize:c,fontOpticalSizing:"auto",letterSpacing:"-0.03em"},children:["Theme: ",a.displayName]})})}),G=e.memo(function(){const{theme:a,setThemePreset:r,setBrightness:i}=n(),{colorScheme:o,brightness:d}=a,[u,m]=e.useState(!1),[x,p]=e.useState(!1),h=e.useRef(null),b=e.useRef(null),y=(l.find(e=>e.colorScheme===o)??l[0]).id,g=e.useCallback((e,t)=>{if(!b.current)return d;const s=(b.current.y-e)/(t?200:80)*100;return Math.round(Math.max(0,Math.min(100,b.current.brightness+s)))},[d]),f=e.useCallback(e=>{r(e),m(!0)},[r]),j=e.useCallback(e=>{i(e)},[i]),v=e.useCallback(e=>{const t=l.find(t=>t.id===e);t&&c(t.backgroundImage)},[]);return t.jsx("div",{className:"grid grid-cols-4 gap-[3%] w-full",children:l.map(e=>{const a=y===e.id,r=!e.backgroundImage,n=a&&!r&&(u||x);return t.jsxs("div",{ref:a?h:void 0,title:e.displayName,className:s("flex flex-col items-stretch rounded-sm transition-all duration-300 ease-out overflow-hidden",a?"ring-2 ring-accent-primary scale-105 "+(r?"cursor-pointer":"cursor-ns-resize"):"cursor-pointer"),onMouseEnter:()=>{a&&!r?m(!0):a||v(e.id)},onMouseLeave:()=>!x&&m(!1),onClick:()=>!a&&f(e.id),onTouchStart:e=>{if(!a||r)return;e.preventDefault();const t=e.touches[0];b.current={y:t.clientY,brightness:d},p(!0),m(!0);const s=e=>{e.preventDefault();const t=e.touches[0];j(g(t.clientY,!0))},n=()=>{document.removeEventListener("touchmove",s),document.removeEventListener("touchend",n),b.current=null,p(!1),setTimeout(()=>m(!1),1500)};document.addEventListener("touchmove",s,{passive:!1}),document.addEventListener("touchend",n)},onMouseDown:e=>{if(!a||r)return;e.preventDefault(),b.current={y:e.clientY,brightness:d},p(!0),m(!0);const t=e=>{j(g(e.clientY,!1))},s=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",s),b.current=null,p(!1)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",s)},children:[t.jsxs("div",{className:"glass-thumbnail w-full aspect-square sm:aspect-[4/3] lg:aspect-video relative !rounded-b-none",children:["kde breeze"===e.id?t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#242627]",style:{opacity:n?.4:1},children:t.jsx("span",{className:"text-[#58b99d] text-[1.5em] font-bold font-mono",children:">"})}):"ribbon"===e.id?t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#F5F5F5]",style:{opacity:n?.4:1},children:t.jsx("span",{className:"text-[#2D2D2D] text-[1.5em] font-bold font-mono",children:"R"})}):t.jsx("div",{className:"absolute bg-cover bg-center transition-opacity duration-200",style:{inset:0,backgroundImage:`url(${e.backgroundImage})`,opacity:n?.4:1,filter:"brightness(var(--thumbnail-brightness, 1.5))"}}),a&&t.jsxs("div",{className:s("absolute inset-0 transition-opacity duration-200",n?"opacity-100":"opacity-0"),children:[t.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-black/70 transition-all duration-100 ease-out",style:{height:100-d+"%"}}),t.jsx("div",{className:"absolute inset-x-[8%] h-0.5 bg-white rounded-full shadow-lg transition-all duration-100 ease-out",style:{top:100-d+"%"}}),t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:t.jsxs("span",{className:"text-[0.6em] font-mono font-bold text-white drop-shadow-lg",children:[d,"%"]})})]})]}),t.jsx("div",{className:"flex flex-col w-full",children:e.paletteColors.map((e,s)=>t.jsx("div",{className:"flex",children:e.map((e,s)=>t.jsx("div",{className:"flex-1 aspect-[2/1]",style:{backgroundColor:e}},s))},s))})]},e.id)})})}),W=e.memo(function({layout:s="horizontal"}){return e.useEffect(()=>{v()},[]),"logo-only"===s?t.jsx(X,{}):"thumbnails-only"===s?t.jsx(G,{}):t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx(X,{}),t.jsx(G,{})]})});function Q(){const{latitude:a,longitude:r,enabled:n,setLocation:l,enable:c,disable:d,clear:u}=i(),[m,x]=e.useState(!1),[p,h]=e.useState(""),[b,y]=e.useState(""),[f,j]=e.useState("idle"),[v,N]=e.useState(null),k=e.useRef(null),C=e.useRef(null),S=e.useRef(!0);e.useEffect(()=>(S.current=!0,()=>{S.current=!1,C.current&&clearTimeout(C.current)}),[]);const E=()=>{x(!1),N(null)};e.useEffect(()=>{if(!m)return;const e=e=>{"loading"!==f&&k.current&&!k.current.contains(e.target)&&E()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[m,f]);const M=null!==a&&null!==r;return t.jsx(w,{children:t.jsxs("div",{ref:k,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx(_,{icon:t.jsx(U,{}),title:"Stealth",largeTitle:!0}),t.jsxs("div",{className:"flex items-center gap-1",children:[M&&!m&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:()=>{n?d():c()},className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2 mr-2",n?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle"),title:n?"Disable stealth location":"Enable stealth location",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",n?"translate-x-5":"translate-x-0.5")})}),t.jsx("button",{onClick:()=>{u(),x(!1)},className:"p-2 rounded-lg transition-colors text-text-muted hover:text-accent-danger hover:bg-accent-danger/10",title:"Clear stealth location",children:t.jsx(g,{className:"w-4 h-4"})})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:E,disabled:"loading"===f,className:s("p-2 rounded-lg transition-colors","loading"===f?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:()=>{if("loading"===f)return;C.current&&clearTimeout(C.current);const e=((e,t)=>{const s=parseFloat(e),a=parseFloat(t);return isNaN(s)||isNaN(a)?"Please enter valid numbers":s<-90||s>90?"Latitude must be between -90 and 90":a<-180||a>180?"Longitude must be between -180 and 180":0===s&&0===a?"Coordinates (0, 0) are invalid":null})(p,b);if(e)return void N(e);j("loading"),N(null);const t=parseFloat(p),s=parseFloat(b);l(t,s),n||c(),j("success"),C.current=setTimeout(()=>{S.current&&(j("idle"),x(!1))},1e3)},disabled:"loading"===f,className:s("p-2 rounded-lg transition-colors","loading"===f?"text-accent-primary cursor-wait":"success"===f?"text-accent-success":"error"===f?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save",children:"loading"===f?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===f?t.jsx(F,{className:"w-4 h-4"}):"error"===f?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:()=>{h((null==a?void 0:a.toFixed(6))??""),y((null==r?void 0:r.toFixed(6))??""),N(null),x(!0)},className:"p-2 rounded-lg transition-colors text-text-muted hover:text-text-primary hover:bg-bg-subtle",title:M?"Edit stealth location":"Set stealth location",children:t.jsx($,{className:"w-4 h-4"})})]})]}),t.jsx("div",{className:"bg-accent-tertiary/5 rounded-xl p-3 mb-4",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(L,{className:"w-4 h-4 text-accent-tertiary flex-shrink-0 mt-0.5"}),t.jsxs("p",{className:"type-body-sm text-text-muted",children:[t.jsx("span",{className:"text-text-secondary",children:"Stealth mode"})," allows you to appear on the map and in topology analysis without broadcasting your location. Coordinates are stored locally in your browser only — ",t.jsx("span",{className:"text-accent-tertiary",children:"never sent to config.yaml or the mesh"}),"."]})]})}),v&&t.jsx("div",{className:"text-xs mb-3 px-2 py-1.5 rounded-md text-accent-danger bg-accent-danger/10",children:v}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:m?"Latitude (°)":"Latitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",m?"bg-white/5":"bg-white/[0.02]"),children:m?t.jsx("input",{type:"number",value:p,onChange:e=>h(e.target.value),step:"0.000001",min:"-90",max:"90",placeholder:"e.g. 34.052234",className:"w-full bg-transparent text-text-primary focus:outline-none type-data placeholder:text-text-muted/50"}):t.jsx("span",{className:s("type-data",M&&n?"text-text-primary":"text-text-muted"),children:M?a.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:m?"Longitude (°)":"Longitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",m?"bg-white/5":"bg-white/[0.02]"),children:m?t.jsx("input",{type:"number",value:b,onChange:e=>y(e.target.value),step:"0.000001",min:"-180",max:"180",placeholder:"e.g. -118.243685",className:"w-full bg-transparent text-text-primary focus:outline-none type-data placeholder:text-text-muted/50"}):t.jsx("span",{className:s("type-data",M&&n?"text-text-primary":"text-text-muted"),children:M?r.toFixed(6):"Not set"})})]})]}),M&&!m&&t.jsx("div",{className:"mt-3 pt-3 border-t border-border-subtle",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:s("w-2 h-2 rounded-full",n?"bg-accent-success":"bg-text-muted")}),t.jsx("span",{className:"type-body-sm text-text-muted",children:n?"Stealth location active — you appear on maps with these coordinates":"Stealth location disabled — coordinates saved but not in use"})]})})]})})}const Z=[{value:7.8,label:"7.8 kHz"},{value:10.4,label:"10.4 kHz"},{value:15.6,label:"15.6 kHz"},{value:20.8,label:"20.8 kHz"},{value:31.25,label:"31.25 kHz"},{value:41.7,label:"41.7 kHz"},{value:62.5,label:"62.5 kHz"},{value:125,label:"125 kHz"},{value:250,label:"250 kHz"},{value:500,label:"500 kHz"}],ee=[5,6,7,8,9,10,11,12],te=[{value:5,label:"4/5"},{value:6,label:"4/6"},{value:7,label:"4/7"},{value:8,label:"4/8"}],se="radioConfig",ae="repeaterSettings",re="operatingMode";function ne({node:e,level:a,expandedKeys:r,selectedKeyId:n,globalFloodPolicy:l,onSelect:c,onToggle:i}){const o=r.has(e.id),d=n===e.id,u=e.children&&e.children.length>0,m="allow"===l;return t.jsxs("div",{children:[t.jsxs("div",{className:s("flex items-center gap-2 h-[36px] px-3 rounded-full cursor-pointer transition-colors",d?"bg-accent-primary/15":"hover:bg-subtle-fill",m&&"opacity-50 cursor-not-allowed"),style:{marginLeft:16*a+"px"},onClick:()=>!m&&c(e.id),children:[u?t.jsx("button",{onClick:t=>{t.stopPropagation(),i(e.id)},className:"p-1 hover:bg-subtle-fill-hover rounded-full transition-colors",children:t.jsx(A,{className:s("w-3.5 h-3.5 text-text-muted transition-transform",o&&"rotate-90")})}):t.jsx("span",{className:"w-5"}),t.jsx(q,{className:"w-4 h-4 text-accent-primary flex-shrink-0"}),t.jsx("span",{className:"type-data text-text-primary flex-1 truncate",children:e.name}),t.jsx("span",{className:s("type-data-xs px-2 py-0.5 rounded-full","allow"===e.floodPolicy?"bg-accent-success/15 text-accent-success":"bg-accent-danger/15 text-accent-danger"),children:"allow"===e.floodPolicy?"Allow":"Deny"})]}),u&&o&&t.jsx("div",{children:e.children.map(e=>t.jsx(ne,{node:e,level:a+1,expandedKeys:r,selectedKeyId:n,globalFloodPolicy:l,onSelect:c,onToggle:i},e.id))})]})}function le(){var a,n,l,c,i,v;const{stats:A,setMode:q,clearModeMutation:U,setDutyCycleConfig:X,clearDutyCycleMutation:G,fetchStats:le,startMutation:ce,clearMutation:ie}=d(),oe=null==(a=null==A?void 0:A.config)?void 0:a.radio,de=null==(n=null==A?void 0:A.config)?void 0:n.repeater,ue=null==(l=null==A?void 0:A.config)?void 0:l.duty_cycle,me=(null==A?void 0:A.node_name)||(null==(c=null==A?void 0:A.config)?void 0:c.node_name)||"Unknown Node",xe=(null==de?void 0:de.mode)??"forward",pe=(null==ue?void 0:ue.enforcement_enabled)??!1,he=null==(i=null==A?void 0:A.config)?void 0:i.delays,[be,ye]=e.useState(!1),[ge,fe]=e.useState(""),[je,ve]=e.useState(62.5),[Ne,we]=e.useState(7),[ke,Ce]=e.useState(5),[Se,_e]=e.useState(""),[Te,Fe]=e.useState("idle"),[Ee,Le]=e.useState(null),Me=e.useRef(null),Pe=e.useRef(null),[Re,ze]=e.useState(!1),[De,Ae]=e.useState(""),[Ie,Oe]=e.useState(""),[qe,Ke]=e.useState(""),[He,Ve]=e.useState("idle"),$e=e.useRef(null),Ye=e.useRef(null),[Be,Ue]=e.useState(!1),[Je,Xe]=e.useState(""),[Ge,We]=e.useState(""),[Qe,Ze]=e.useState(""),[et,tt]=e.useState(""),[st,at]=e.useState("idle"),[rt,nt]=e.useState(null),lt=e.useRef(null),ct=e.useRef(null),[it,ot]=e.useState("idle"),[dt,ut]=e.useState("idle"),[mt,xt]=e.useState(null),[pt,ht]=e.useState(null),bt=e.useRef(!0),yt=e.useRef(null),gt=e.useRef(null),ft=e.useRef(null),jt=e.useRef(null),vt=e.useRef(!1),Nt=e.useRef(!1);e.useEffect(()=>(bt.current=!0,()=>{bt.current=!1,yt.current&&clearTimeout(yt.current),gt.current&&clearTimeout(gt.current),ft.current&&clearTimeout(ft.current),jt.current&&clearTimeout(jt.current),Tt.current&&clearTimeout(Tt.current),Ft.current&&clearTimeout(Ft.current),Pe.current&&clearTimeout(Pe.current),$e.current&&clearTimeout($e.current),ct.current&&clearTimeout(ct.current)}),[]),e.useEffect(()=>{const e=e=>{if(be||Be||Re)return e.preventDefault(),e.returnValue="You have unsaved changes. Are you sure you want to leave?",e.returnValue};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[be,Be,Re]);const wt=null==(v=null==A?void 0:A.config)?void 0:v.web,[kt,Ct]=e.useState("idle"),[St,_t]=e.useState(null),Tt=e.useRef(null),Ft=e.useRef(null),Et=e.useRef(!1),[Lt,Mt]=e.useState([]),[Pt,Rt]=e.useState(!1),[zt,Dt]=e.useState(null),[At,It]=e.useState(!1),[Ot,qt]=e.useState(""),[Kt,Ht]=e.useState(null),[Vt,$t]=e.useState(!1),[Yt,Bt]=e.useState(null),[Ut,Jt]=e.useState(!1),[Xt,Gt]=e.useState(!1),[Wt,Qt]=e.useState(!1),[Zt,es]=e.useState([]),[ts,ss]=e.useState(!1),[as,rs]=e.useState(null),[ns,ls]=e.useState("deny"),[cs,is]=e.useState(!1),[os,ds]=e.useState(null),[us,ms]=e.useState(new Set),[xs,ps]=e.useState(!1),[hs,bs]=e.useState(!1),[ys,gs]=e.useState(!1),[fs,js]=e.useState(null),[vs,Ns]=e.useState(null),[ws,ks]=e.useState(""),[Cs,Ss]=e.useState("deny"),[_s,Ts]=e.useState(!1),[Fs,Es]=e.useState(!0),[Ls,Ms]=e.useState(!1),[Ps,Rs]=e.useState(!0),[zs,Ds]=e.useState("idle"),[As,Is]=e.useState(!1),[Os,qs]=e.useState(!1),Ks=e.useRef(!1);e.useEffect(()=>{const e=be&&!Ks.current;Ks.current=be,oe&&e&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power)))},[oe,be]);const Hs=e.useMemo(()=>{if(!oe||!be)return!1;const e=oe.frequency/1e6,t=oe.bandwidth/1e3,s=parseFloat(ge)||0;return Math.abs(s-e)>1e-4||je!==t||Ne!==oe.spreading_factor||ke!==oe.coding_rate||parseInt(Se)!==oe.tx_power},[oe,be,ge,je,Ne,ke,Se]),Vs=e.useCallback(()=>{ye(!1),Le(null),oe&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power)))},[oe]);e.useEffect(()=>{if(!be)return;const e=e=>{"loading"!==Te&&Me.current&&!Me.current.contains(e.target)&&Vs()};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[be,Vs,Te]);const $s=e.useCallback(()=>{const e=null==he?void 0:he.tx_delay_factor;return e&&"object"==typeof e&&"parsedValue"in e?e.parsedValue??1:"number"==typeof e?e:1},[he]),Ys=e.useCallback(()=>{const e=null==he?void 0:he.direct_tx_delay_factor;return"number"==typeof e?e:.5},[he]),Bs=e.useCallback(()=>{const e=null==ue?void 0:ue.max_airtime_percent;return"number"==typeof e?e:e&&"object"==typeof e&&"parsedValue"in e?e.parsedValue??6:6},[ue]),Us=e.useCallback(()=>{Ae($s().toFixed(2)),Oe(Ys().toFixed(2)),Ke(Bs().toFixed(1)),ze(!0)},[$s,Ys,Bs]),Js=e.useCallback(()=>{ze(!1)},[]);e.useEffect(()=>{if(!Re)return;const e=e=>{"loading"!==He&&Ye.current&&!Ye.current.contains(e.target)&&Js()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[Re,Js,He]);const Xs=e.useCallback(()=>{var e,t,s;Xe(me),We((null==(e=null==de?void 0:de.latitude)?void 0:e.toString())||"0"),Ze((null==(t=null==de?void 0:de.longitude)?void 0:t.toString())||"0"),tt((null==(s=null==de?void 0:de.send_advert_interval_hours)?void 0:s.toString())||"0"),nt(null),Ue(!0)},[me,de]),Gs=e.useCallback(()=>{Ue(!1),nt(null)},[]);e.useEffect(()=>{if(!Be)return;const e=e=>{"loading"!==st&<.current&&!lt.current.contains(e.target)&&Gs()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[Be,Gs,st]);const Ws=async()=>{var e;if("loading"===kt)return;const t=(null==wt?void 0:wt.cors_enabled)??!1,s=!t,a=t;Tt.current&&clearTimeout(Tt.current),Ft.current&&clearTimeout(Ft.current),Et.current=!1,_t(s),Ct("loading"),Tt.current=setTimeout(()=>{Et.current||bt.current&&(_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3))},1e4);try{const t=await J({web:{cors_enabled:s}});if(Et.current=!0,Tt.current&&clearTimeout(Tt.current),!bt.current)return;t.success||(null==(e=t.data)?void 0:e.persisted)?(await le(),Ct("success"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3)):(_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3))}catch{if(Et.current=!0,Tt.current&&clearTimeout(Tt.current),!bt.current)return;_t(a),Ct("error"),Ft.current=setTimeout(()=>{bt.current&&(Ct("idle"),_t(null))},2e3)}};e.useEffect(()=>{(async()=>{Rs(!0);try{const e=await async function(){return r("/api/check_pymc_console")}();e.success&&e.data?Ms(e.data.exists):Ms(!1);const t=null==wt?void 0:wt.web_path;Es(!t||""===t)}catch{Ms(!1)}finally{Rs(!1)}})()},[null==wt?void 0:wt.web_path]);const Qs=async e=>{var t;if("loading"!==zs){Ds("loading");try{const s=await J({web:{web_path:e?null:"/opt/pymc_console/web/html"}});if(!bt.current)return;s.success||(null==(t=s.data)?void 0:t.persisted)?(Es(e),Ds("success"),Is(!0),setTimeout(()=>{bt.current&&Ds("idle")},2e3)):(Ds("error"),setTimeout(()=>{bt.current&&Ds("idle")},2e3))}catch{if(!bt.current)return;Ds("error"),setTimeout(()=>{bt.current&&Ds("idle")},2e3)}}},Zs=e.useCallback(async()=>{Rt(!0),Dt(null);try{const e=await async function(){return r("/auth/tokens")}();Mt(e.tokens||[])}catch(e){Dt(e instanceof Error?e.message:"Failed to fetch tokens")}finally{Rt(!1)}},[]);e.useEffect(()=>{Zs()},[Zs]);const ea=async()=>{if(Ot.trim()){Jt(!0),Dt(null);try{const e=await async function(e){return r("/auth/tokens",{method:"POST",body:JSON.stringify({name:e})})}(Ot.trim());Ht(e.token||null),It(!1),$t(!0),qt(""),await Zs()}catch(e){Dt(e instanceof Error?e.message:"Failed to create token")}finally{Jt(!1)}}else Dt("Token name is required")},ta=e=>e?new Date(1e3*e).toLocaleString():"Never",sa=e.useCallback(e=>{const t=new Map,s=[];return e.forEach(e=>{const s={id:e.id,name:e.name,floodPolicy:e.flood_policy,transport_key:e.transport_key,last_used:e.last_used,parent_id:e.parent_id,children:[]};t.set(e.id,s)}),t.forEach(e=>{e.parent_id&&t.has(e.parent_id)?t.get(e.parent_id).children.push(e):s.push(e)}),s},[]),aa=e.useCallback(async()=>{ss(!0),rs(null);try{const e=await async function(){return r("/api/transport_keys")}();e.success&&e.data?es(sa(e.data)):rs(e.error||"Failed to load transport keys")}catch(e){rs(e instanceof Error?e.message:"Unknown error occurred")}finally{ss(!1)}},[sa]);e.useEffect(()=>{aa()},[aa]);const ra=e.useCallback((e,t)=>{for(const s of e){if(s.id===t)return s;if(s.children){const e=ra(s.children,t);if(e)return e}}return null},[]),na=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);return null==e?void 0:e.name},[os,Zt,ra]),la=e.useCallback(e=>{ms(t=>{const s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),ca=async e=>{is(!0),rs(null);try{const t=await async function(e){return r("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:e})})}("allow"===e);t.success?ls(e):rs(t.error||"Failed to update global flood policy")}catch(t){rs(t instanceof Error?t.message:"Failed to update global flood policy")}finally{is(!1)}},ia=async()=>{if(ws.trim()){Ts(!0),rs(null);try{const e=await async function(e){return r("/api/transport_keys",{method:"POST",body:JSON.stringify(e)})}({name:ws.trim(),flood_policy:Cs,parent_id:os??void 0});e.success?(await aa(),ps(!1),ks(""),Ss("deny")):rs(e.error||"Failed to add transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to add transport key")}finally{Ts(!1)}}else rs("Key name is required")},oa=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);e&&(js({...e}),bs(!0))},[os,Zt,ra]);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&(xs&&(ps(!1),ks(""),Ss("deny")),hs&&(bs(!1),js(null)),ys&&(gs(!1),Ns(null)),At&&(It(!1),qt("")),Vt&&($t(!1),Ht(null)))};if(xs||hs||ys||At||Vt)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[xs,hs,ys,At,Vt]);const da=e.useCallback(()=>{if(!os)return;const e=ra(Zt,os);e&&(Ns(e),gs(!0))},[os,Zt,ra]);return t.jsxs(k,{children:[t.jsx(C,{title:"Configuration",icon:t.jsx(u,{})}),t.jsxs(S,{children:[t.jsxs(M,{template:"standard",children:[t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:lt,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-2",children:[t.jsx(m,{className:"icon-md text-accent-primary"}),"Repeater Settings"]}),t.jsx("div",{className:"flex items-center gap-1",children:de&&(Be?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Gs,disabled:"loading"===st,className:s("p-2 radius-inner transition-base","loading"===st?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:async()=>{if("loading"!==st){ct.current&&clearTimeout(ct.current),ce(ae),at("loading"),nt(null);try{const e={};Je&&Je!==me&&(e.node_name=Je);const t=parseFloat(Ge);isNaN(t)||t===(null==de?void 0:de.latitude)||(e.latitude=t);const s=parseFloat(Qe);isNaN(s)||s===(null==de?void 0:de.longitude)||(e.longitude=s);const a=parseInt(et);if(isNaN(a)||a===(null==de?void 0:de.send_advert_interval_hours)||(e.flood_advert_interval_hours=a),0===Object.keys(e).length)return nt({success:!0,message:"No changes to save"}),at("idle"),void ie(ae);const r=await y(e);if(!bt.current)return void ie(ae);if(r.success&&r.data){const e=r.data.applied.join(", ");nt({success:!0,message:`Updated: ${e}`}),await le({force:!0}),at("success"),ct.current=setTimeout(()=>{bt.current&&(at("idle"),Ue(!1),nt(null),ie(ae))},1500)}else nt({success:!1,message:r.error||"Failed to save"}),at("error"),ie(ae),ct.current=setTimeout(()=>{bt.current&&at("idle")},2e3)}catch(e){if(!bt.current)return void ie(ae);nt({success:!1,message:String(e)}),at("error"),ie(ae),ct.current=setTimeout(()=>{bt.current&&at("idle")},2e3)}}},disabled:"loading"===st,className:s("p-2 radius-inner transition-base","loading"===st?"text-accent-primary cursor-wait":"success"===st?"text-accent-success":"error"===st?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save changes",children:"loading"===st?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===st?t.jsx(F,{className:"w-4 h-4"}):"error"===st?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:Xs,className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit repeater settings",children:t.jsx($,{className:"w-4 h-4"})}))})]}),rt&&t.jsx("div",{className:s("text-xs mb-3 px-2 py-1.5 rounded-md",rt.success?"text-accent-success bg-accent-success/10":"text-accent-danger bg-accent-danger/10"),children:rt.message}),de?t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{className:"col-span-2",children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Node Name"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"text",value:Je,onChange:e=>Xe(e.target.value),maxLength:50,className:"w-full bg-transparent text-text-primary focus:outline-none type-data",placeholder:"Enter node name"}):t.jsx("span",{className:"type-data text-text-primary",children:me})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Latitude (°)":"Latitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:Ge,onChange:e=>We(e.target.value),step:"0.000001",min:"-90",max:"90",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:0!==de.latitude?de.latitude.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Longitude (°)":"Longitude"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:Qe,onChange:e=>Ze(e.target.value),step:"0.000001",min:"-180",max:"180",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:0!==de.longitude?de.longitude.toFixed(6):"Not set"})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:Be?"Advert Interval (hours)":"Advert Interval"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",Be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Be?t.jsx("input",{type:"number",value:et,onChange:e=>tt(e.target.value),min:"0",max:"48",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:de.send_advert_interval_hours>0?`${de.send_advert_interval_hours}h`:"Disabled"})}),Be&&t.jsx("p",{className:"type-data-xs text-text-muted mt-1 ml-4",children:"0 = disabled, 3-48 hours"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Score-based TX"}),t.jsx("div",{className:"h-[38px] rounded-full px-4 flex items-center bg-subtle-fill",children:t.jsx("span",{className:"type-data text-text-primary",children:de.use_score_for_tx?"Enabled":"Disabled"})})]})]}):t.jsx("p",{className:"text-text-muted",children:"Loading repeater settings..."})]})})}),t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:Me,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-2",children:[t.jsx(I,{className:"icon-md text-accent-primary"}),"Radio Configuration"]}),t.jsx("div",{className:"flex items-center gap-1",children:oe&&(be?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Vs,disabled:"loading"===Te,className:s("p-2 radius-inner transition-base","loading"===Te?"text-text-muted cursor-not-allowed":"text-text-muted hover:text-accent-danger hover:bg-accent-danger/10"),title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})}),t.jsx("button",{onClick:async()=>{if("loading"!==Te){Pe.current&&clearTimeout(Pe.current),ce(se),Fe("loading"),Le(null);try{const e={},t=parseFloat(ge),s=oe?oe.frequency/1e6:0;Math.abs(t-s)>1e-4&&(e.frequency_mhz=t);const a=oe?oe.bandwidth/1e3:0;je!==a&&(e.bandwidth_khz=je),Ne!==(null==oe?void 0:oe.spreading_factor)&&(e.spreading_factor=Ne),ke!==(null==oe?void 0:oe.coding_rate)&&(e.coding_rate=ke);const r=parseInt(Se);if(r!==(null==oe?void 0:oe.tx_power)&&(e.tx_power=r),0===Object.keys(e).length)return Le({success:!0,message:"No changes to save"}),Fe("idle"),void ie(se);const n=await y(e);if(!bt.current)return void ie(se);if(n.success&&n.data){const e=n.data.applied.join(", "),t=n.data.live_update?" (applied live)":" (restart required)";Le({success:!0,message:`Updated: ${e}${t}`}),await le({force:!0}),Fe("success"),Pe.current=setTimeout(()=>{bt.current&&(Fe("idle"),ye(!1),Le(null),ie(se))},1500)}else Le({success:!1,message:n.error||"Failed to save"}),Fe("error"),ie(se),Pe.current=setTimeout(()=>{bt.current&&Fe("idle")},2e3)}catch(e){if(!bt.current)return void ie(se);Le({success:!1,message:String(e)}),Fe("error"),ie(se),Pe.current=setTimeout(()=>{bt.current&&Fe("idle")},2e3)}}},disabled:"loading"===Te||!Hs,className:s("p-2 radius-inner transition-base","loading"===Te?"text-accent-primary cursor-wait":"success"===Te?"text-accent-success":"error"===Te?"text-accent-danger":Hs?"text-accent-success hover:bg-accent-success/10":"text-text-muted cursor-not-allowed"),title:Hs?"Save changes":"No changes to save",children:"loading"===Te?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===Te?t.jsx(F,{className:"w-4 h-4"}):"error"===Te?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:()=>{oe&&(fe((oe.frequency/1e6).toFixed(3)),ve(oe.bandwidth/1e3),we(oe.spreading_factor),Ce(oe.coding_rate),_e(String(oe.tx_power))),Le(null),ye(!0)},className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit radio settings",children:t.jsx($,{className:"w-4 h-4"})}))})]}),Ee&&t.jsx("div",{className:s("text-xs mb-3 px-2 py-1.5 rounded-md",Ee.success?"text-accent-success bg-accent-success/10":"text-accent-danger bg-accent-danger/10"),children:Ee.message}),oe?t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:be?"Frequency (MHz)":"Frequency"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsx("input",{type:"number",value:ge,onChange:e=>fe(e.target.value),step:"0.001",min:"400",max:"930",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsx("span",{className:"type-data text-text-primary",children:x(oe.frequency)})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:be?"TX Power (dBm)":"TX Power"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsx("input",{type:"number",value:Se,onChange:e=>_e(e.target.value),min:"-9",max:"22",className:"w-full bg-transparent text-text-primary focus:outline-none type-data"}):t.jsxs("span",{className:"type-data text-text-primary",children:[oe.tx_power," dBm"]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Bandwidth"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:je,onChange:e=>ve(parseFloat(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:Z.map(e=>t.jsx("option",{value:e.value,children:e.label},e.value))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsx("span",{className:"type-data text-text-primary",children:h(oe.bandwidth)})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Spreading Factor"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:Ne,onChange:e=>we(parseInt(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:ee.map(e=>t.jsxs("option",{value:e,children:["SF",e]},e))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:["SF",oe.spreading_factor]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Coding Rate"}),t.jsx("div",{className:s("h-[38px] rounded-full px-4 flex items-center transition-colors relative",be?"bg-subtle-fill-hover":"bg-subtle-fill"),children:be?t.jsxs(t.Fragment,{children:[t.jsx("select",{value:ke,onChange:e=>Ce(parseInt(e.target.value)),className:"w-full bg-transparent text-text-primary focus:outline-none appearance-none cursor-pointer type-data pr-6",children:te.map(e=>t.jsx("option",{value:e.value,children:e.label},e.value))}),t.jsx(p,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:["4/",oe.coding_rate]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-1",children:"Preamble"}),t.jsx("div",{className:"h-[38px] rounded-full px-4 flex items-center bg-subtle-fill",children:t.jsxs("span",{className:"type-data text-text-primary",children:[oe.preamble_length," symbols"]})})]})]}):t.jsx("p",{className:"text-text-muted",children:"Loading radio configuration..."})]})})})]}),t.jsxs(M,{template:"standard",children:[t.jsx(P,{span:12,md:6,children:t.jsx(w,{children:t.jsxs("div",{ref:Ye,children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("h2",{className:"type-subheading text-text-primary flex items-center gap-3",children:[t.jsx(b,{className:"icon-md text-icon-card-title"}),"Operating Mode"]}),t.jsx("div",{className:"flex items-center gap-1",children:Re?t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"!==He){$e.current&&clearTimeout($e.current),ce(re),Ve("loading");try{const e=await y({tx_delay_factor:parseFloat(De),direct_tx_delay_factor:parseFloat(Ie)});if(await X({max_airtime_percent:parseFloat(qe),enforcement_enabled:pe}),!bt.current)return void ie(re);e.success&&e.data?(await le({force:!0}),Ve("success"),$e.current=setTimeout(()=>{bt.current&&(Ve("idle"),ze(!1),ie(re))},1500)):(Ve("error"),ie(re),$e.current=setTimeout(()=>{bt.current&&Ve("idle")},2e3))}catch{if(!bt.current)return void ie(re);Ve("error"),ie(re),$e.current=setTimeout(()=>{bt.current&&Ve("idle")},2e3)}}},disabled:"loading"===He,className:s("p-2 radius-inner transition-base","loading"===He?"text-accent-primary cursor-wait":"success"===He?"text-accent-success":"error"===He?"text-accent-danger":"text-accent-success hover:bg-accent-success/10"),title:"Save",children:"loading"===He?t.jsx(T,{className:"w-4 h-4 animate-spin"}):"success"===He?t.jsx(F,{className:"w-4 h-4"}):"error"===He?t.jsx(o,{className:"w-4 h-4"}):t.jsx(F,{className:"w-4 h-4"})}),t.jsx("button",{onClick:Js,className:"p-2 radius-inner transition-base text-text-muted hover:text-accent-danger hover:bg-accent-danger/10",title:"Cancel",children:t.jsx(o,{className:"w-4 h-4"})})]}):t.jsx("button",{onClick:Us,className:"p-2 radius-inner transition-base text-text-muted hover:text-text-primary hover-bg",title:"Edit settings",children:t.jsx($,{className:"w-4 h-4"})})})]}),t.jsx("p",{className:"type-label text-text-muted mb-3",children:"Control how the repeater handles packets"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[t.jsxs("div",{className:"flex-1 space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Repeat"}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==mt?mt:"forward"===xe;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"===it)return;const t=!e,s="forward"===xe;yt.current&&clearTimeout(yt.current),gt.current&&clearTimeout(gt.current),vt.current=!1,xt(t),ot("loading"),yt.current=setTimeout(()=>{vt.current||bt.current&&(xt(s),ot("error"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null))},2e3))},1e4);try{if(await q(t?"forward":"monitor"),vt.current=!0,yt.current&&clearTimeout(yt.current),!bt.current)return;ot("success"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null),U())},2e3)}catch{if(vt.current=!0,yt.current&&clearTimeout(yt.current),!bt.current)return;xt(s),ot("error"),gt.current=setTimeout(()=>{bt.current&&(ot("idle"),xt(null))},2e3)}},disabled:"loading"===it,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===it&&"opacity-70"),"aria-label":"Toggle forward mode",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),t.jsx("span",{className:s("type-data text-sm w-7",e?"text-accent-success":"text-text-muted"),children:e?"On":"Off"}),"loading"===it&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===it&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===it&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Duty Cycle"}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==pt?pt:pe;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:async()=>{if("loading"===dt)return;const t=!e,s=pe;ft.current&&clearTimeout(ft.current),jt.current&&clearTimeout(jt.current),Nt.current=!1,ht(t),ut("loading"),ft.current=setTimeout(()=>{Nt.current||bt.current&&(ht(s),ut("error"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null))},2e3))},1e4);try{if(await X({max_airtime_percent:Bs(),enforcement_enabled:t}),Nt.current=!0,ft.current&&clearTimeout(ft.current),!bt.current)return;ut("success"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null),G())},2e3)}catch{if(Nt.current=!0,ft.current&&clearTimeout(ft.current),!bt.current)return;ht(s),ut("error"),jt.current=setTimeout(()=>{bt.current&&(ut("idle"),ht(null))},2e3)}},disabled:"loading"===dt,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===dt&&"opacity-70"),"aria-label":"Toggle duty cycle",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),t.jsx("span",{className:s("type-data text-sm w-7",e?"text-accent-success":"text-text-muted"),children:e?"On":"Off"}),"loading"===dt&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===dt&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===dt&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("label",{className:"type-label text-text-muted",children:"Max Airtime"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:qe,onChange:e=>Ke(e.target.value),step:"0.5",min:"0.1",max:"100",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"%"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[Bs().toFixed(1),"%"]})})]})]}),t.jsx("div",{className:"hidden sm:block w-px bg-border-subtle"}),t.jsxs("div",{className:"flex-1 pt-4 sm:pt-0 border-t sm:border-t-0 border-border-subtle",children:[t.jsx("label",{className:"type-label text-text-muted block mb-3",children:"TX Delays"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-label text-text-muted",children:"Flood"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:De,onChange:e=>Ae(e.target.value),step:"0.1",min:"0",max:"5",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"x"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[$s().toFixed(2),"x"]})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-label text-text-muted",children:"Direct"}),t.jsx("div",{className:s("h-[32px] rounded-full px-3 flex items-center justify-end transition-colors min-w-[80px]",Re?"bg-subtle-fill-hover":"bg-subtle-fill"),children:Re?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("input",{type:"number",value:Ie,onChange:e=>Oe(e.target.value),step:"0.1",min:"0",max:"5",className:"w-12 bg-transparent text-text-primary text-right focus:outline-none type-data"}),t.jsx("span",{className:"text-text-muted type-data",children:"s"})]}):t.jsxs("span",{className:"type-data text-text-primary",children:[Ys().toFixed(2),"s"]})})]})]})]})]})]})})}),t.jsx(P,{span:12,md:6,children:t.jsxs(w,{children:[t.jsx(_,{icon:t.jsx(u,{}),title:"App Settings",largeTitle:!0}),t.jsx("p",{className:"type-body-sm text-text-muted mb-4",children:"Appearance and web server options."}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("span",{className:"type-body text-text-primary font-medium block",children:"Enable CORS"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Allow cross-origin API access"})]}),t.jsx("div",{className:"flex items-center gap-2",children:(()=>{const e=null!==St?St:(null==wt?void 0:wt.cors_enabled)??!1;return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:Ws,disabled:"loading"===kt,className:s("relative inline-flex h-6 w-11 items-center rounded-full transition-colors border-2",e?"bg-toggle-on border-toggle-on":"bg-toggle-off border-border-subtle","loading"===kt&&"opacity-70"),title:e?"Disable CORS":"Enable CORS",children:t.jsx("span",{className:s("inline-block h-4 w-4 transform rounded-full bg-white transition-transform shadow-lg",e?"translate-x-5":"translate-x-0.5")})}),"loading"===kt&&t.jsx(T,{className:"w-4 h-4 text-text-muted animate-spin"}),"success"===kt&&t.jsx(F,{className:"w-4 h-4 text-accent-success"}),"error"===kt&&t.jsx(o,{className:"w-4 h-4 text-accent-danger"})]})})()})]}),t.jsx("div",{children:t.jsx(W,{})})]})]})})]}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(K,{className:"icon-md text-accent-primary"}),"Regions / Transport Keys"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Manage regional key hierarchy for flood control"})]}),t.jsxs("div",{className:"flex gap-2 flex-wrap",children:[t.jsxs("button",{onClick:()=>ps(!0),disabled:"allow"===ns,className:s("flex items-center gap-1.5 h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium","allow"===ns?"bg-subtle-fill text-text-muted cursor-not-allowed":"bg-accent-success/10 hover:bg-accent-success/20 text-accent-success"),children:[t.jsx(f,{className:"w-3.5 h-3.5"}),"Add"]}),t.jsx("button",{onClick:oa,disabled:!os||"allow"===ns,className:s("h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium",os&&"allow"!==ns?"bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary":"bg-subtle-fill text-text-muted cursor-not-allowed"),children:"Edit"}),t.jsx("button",{onClick:da,disabled:!os||"allow"===ns,className:s("h-[32px] px-3 rounded-full transition-colors type-body-sm font-medium",os&&"allow"!==ns?"bg-accent-danger/10 hover:bg-accent-danger/20 text-accent-danger":"bg-subtle-fill text-text-muted cursor-not-allowed"),children:"Delete"})]})]}),t.jsx("div",{className:"bg-subtle-fill radius-card p-4 mb-4",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:s("w-10 h-10 rounded-full flex items-center justify-center","allow"===ns?"bg-accent-success/20":"bg-accent-danger/20"),children:"allow"===ns?t.jsx(Y,{className:"w-5 h-5 text-accent-success"}):t.jsx(B,{className:"w-5 h-5 text-accent-danger"})}),t.jsxs("div",{children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:"Global Flood Policy"}),t.jsx("p",{className:"type-body-sm text-text-muted",children:"Master control for repeater flooding"})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("div",{className:"flex bg-subtle-fill rounded-full p-1",children:[t.jsx("button",{onClick:()=>ca("deny"),disabled:cs,className:s("px-4 py-1.5 rounded-full transition-colors type-body-sm font-medium","deny"===ns?"bg-accent-danger/20 text-accent-danger":"text-text-muted hover:text-text-secondary",cs&&"opacity-50"),children:"Deny"}),t.jsx("button",{onClick:()=>ca("allow"),disabled:cs,className:s("px-4 py-1.5 rounded-full transition-colors type-body-sm font-medium","allow"===ns?"bg-accent-success/20 text-accent-success":"text-text-muted hover:text-text-secondary",cs&&"opacity-50"),children:"Allow"})]}),cs&&t.jsx(T,{className:"w-4 h-4 animate-spin text-text-muted"})]})]})}),as&&t.jsx("div",{className:"type-body-sm mb-3 px-3 py-2 rounded-full text-accent-danger bg-accent-danger/10",children:as}),t.jsx("div",{className:"bg-subtle-fill radius-card p-4 min-h-[120px]",children:ts?t.jsxs("div",{className:"flex items-center justify-center py-6",children:[t.jsx(T,{className:"w-5 h-5 animate-spin text-accent-primary mr-2"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Loading transport keys..."})]}):0===Zt.length?t.jsxs("div",{className:"text-center py-6",children:[t.jsx("div",{className:"w-12 h-12 rounded-full bg-subtle-fill mx-auto mb-3 flex items-center justify-center",children:t.jsx(K,{className:"w-6 h-6 text-text-muted/50"})}),t.jsx("p",{className:"type-body text-text-muted",children:"No transport keys found"}),t.jsx("p",{className:"type-body-sm text-text-muted/70 mt-1",children:"Add your first transport key to get started"})]}):t.jsx("div",{className:"space-y-1",children:Zt.map(e=>t.jsx(ne,{node:e,level:0,expandedKeys:us,selectedKeyId:os,globalFloodPolicy:ns,onSelect:ds,onToggle:la},e.id))})})]})}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(H,{className:"icon-md text-accent-primary"}),"API Tokens"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Manage API tokens for machine-to-machine authentication"})]}),t.jsxs("button",{onClick:()=>It(!0),className:"flex items-center justify-center gap-2 h-[32px] px-4 bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary rounded-full transition-colors type-body-sm font-medium",children:[t.jsx(f,{className:"w-4 h-4"}),"Create Token"]})]}),t.jsx("div",{className:"bg-accent-tertiary/5 radius-card p-4 mb-4",children:t.jsxs("div",{className:"flex gap-3",children:[t.jsx("div",{className:"w-8 h-8 rounded-full bg-accent-tertiary/20 flex items-center justify-center flex-shrink-0",children:t.jsx(L,{className:"w-4 h-4 text-accent-tertiary"})}),t.jsxs("div",{className:"type-body-sm text-text-muted",children:[t.jsxs("p",{children:[t.jsx("span",{className:"text-text-secondary",children:"API tokens"})," are used for machine-to-machine authentication. Include the token in the ",t.jsx("code",{className:"type-code bg-accent-tertiary/20 px-1.5 py-0.5 rounded-full text-accent-tertiary",children:"X-API-Key"})," header when making API requests."]}),t.jsx("p",{className:"mt-1 text-text-muted/70",children:"Tokens are only shown once at creation. Store them securely."})]})]})}),zt&&t.jsx("div",{className:"type-body-sm mb-3 px-3 py-2 rounded-full text-accent-danger bg-accent-danger/10",children:zt}),Pt&&0===Lt.length?t.jsxs("div",{className:"flex items-center justify-center py-6",children:[t.jsx(T,{className:"w-5 h-5 animate-spin text-accent-primary mr-2"}),t.jsx("span",{className:"type-body-sm text-text-muted",children:"Loading tokens..."})]}):Lt.length>0?t.jsx("div",{className:"space-y-2",children:Lt.map(e=>t.jsx("div",{className:"bg-subtle-fill hover:bg-subtle-fill-strong radius-card p-4 transition-base",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx("div",{className:"w-10 h-10 rounded-full bg-accent-primary/10 flex items-center justify-center flex-shrink-0",children:t.jsx(H,{className:"w-5 h-5 text-accent-primary"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("h3",{className:"type-body text-text-primary font-medium truncate",children:e.name}),t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-0.5",children:[t.jsxs("span",{className:"type-data-sm text-text-muted truncate",children:["Created: ",ta(e.created_at)]}),t.jsxs("span",{className:"type-data-sm text-text-muted truncate",children:["Last used: ",ta(e.last_used)]})]})]})]}),t.jsxs("button",{onClick:()=>Bt({id:e.id,name:e.name}),disabled:Xt,className:"h-[32px] px-4 bg-accent-danger/10 hover:bg-accent-danger/20 text-accent-danger rounded-full transition-colors disabled:opacity-50 type-body-sm font-medium flex items-center justify-center gap-1.5",children:[t.jsx(g,{className:"w-3.5 h-3.5"}),"Revoke"]})]})},e.id))}):t.jsxs("div",{className:"bg-subtle-fill radius-card p-6 text-center",children:[t.jsx("div",{className:"w-14 h-14 rounded-full bg-subtle-fill mx-auto mb-4 flex items-center justify-center",children:t.jsx(H,{className:"w-7 h-7 text-text-muted/50"})}),t.jsx("h3",{className:"type-body text-text-primary font-medium mb-1",children:"No API Tokens"}),t.jsx("p",{className:"type-body-sm text-text-muted mb-4",children:"Create a token to enable API access"}),t.jsx("button",{onClick:()=>It(!0),className:"h-[32px] px-4 bg-accent-primary/10 hover:bg-accent-primary/20 text-accent-primary rounded-full transition-colors type-body-sm font-medium",children:"Create Your First Token"})]})]})}),t.jsx(M,{template:"auto",children:t.jsxs(w,{children:[t.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:t.jsxs("div",{children:[t.jsxs("h2",{className:"type-heading text-text-primary flex items-center gap-2",children:[t.jsx(V,{className:"icon-md text-accent-primary"}),"Web Frontend"]}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Choose which web interface to use"})]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-3",children:[t.jsxs("label",{className:s("flex items-start gap-3 p-4 bg-subtle-fill radius-card border-2 cursor-pointer transition-base",Fs?"border-accent-primary bg-accent-primary/5":"border-transparent hover:border-accent-primary/30","loading"===zs&&"opacity-50 pointer-events-none"),children:[t.jsx("input",{type:"radio",name:"frontend",checked:Fs,onChange:()=>Qs(!0),disabled:"loading"===zs,className:"mt-1 h-4 w-4 text-accent-primary focus:ring-accent-primary focus:ring-offset-bg-elevated"}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"type-body text-text-primary font-medium",children:"Default Frontend"}),t.jsx("a",{href:"https://github.com/rightup/pyMC_Repeater",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"type-data-xs bg-accent-tertiary/15 text-accent-tertiary px-2.5 py-0.5 rounded-full font-medium hover:bg-accent-tertiary/25 transition-colors",children:"@RightUp"})]}),t.jsx("div",{className:"type-body-sm text-text-muted mt-1",children:"Built-in pyMC Repeater web interface"}),t.jsx("div",{className:"type-data-xs text-text-muted/60 mt-1 font-mono",children:"/opt/pymc_repeater/repeater/web/html"})]})]}),t.jsxs("label",{className:s("flex items-start gap-3 p-4 bg-subtle-fill radius-card border-2 cursor-pointer transition-base",Fs?"border-transparent hover:border-accent-primary/30":"border-accent-primary bg-accent-primary/5","loading"===zs&&"opacity-50 pointer-events-none"),children:[t.jsx("input",{type:"radio",name:"frontend",checked:!Fs,onChange:()=>Qs(!1),disabled:"loading"===zs,className:"mt-1 h-4 w-4 text-accent-primary focus:ring-accent-primary focus:ring-offset-bg-elevated"}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"type-body text-text-primary font-medium",children:"PyMC Console"}),t.jsx("span",{className:"type-data-xs bg-accent-secondary/15 text-accent-secondary px-2.5 py-0.5 rounded-full font-medium",children:"@Treehouse ⚡"})]}),t.jsx("div",{className:"type-body-sm text-text-muted mt-1",children:"Alternative web interface for pyMC Repeater"}),t.jsx("div",{className:"type-data-xs text-text-muted/60 mt-1 font-mono",children:"/opt/pymc_console/web/html"})]})]})]}),!Ps&&t.jsx("div",{className:s("bg-subtle-fill radius-card p-4",Ls?"border border-accent-success/20":"border border-accent-tertiary/20"),children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:s("w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0",Ls?"bg-accent-success/20":"bg-accent-tertiary/20"),children:Ls?t.jsx(R,{className:"w-4 h-4 text-accent-success"}):t.jsx(L,{className:"w-4 h-4 text-accent-tertiary"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:Ls?"PyMC Console has been detected":"PyMC Console Not Installed"}),Ls?t.jsxs("p",{className:"type-body-sm text-text-muted mt-1",children:["PyMC Console is installed at ",t.jsx("code",{className:"type-code bg-accent-success/10 px-1.5 py-0.5 rounded-full text-accent-success",children:"/opt/pymc_console/web/html"})]}):t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"type-body-sm text-text-muted mt-1 mb-3",children:["PyMC Console must be installed at ",t.jsx("code",{className:"type-code bg-accent-tertiary/10 px-1.5 py-0.5 rounded-full text-accent-tertiary",children:"/opt/pymc_console/web/html"})," before selecting this option."]}),t.jsxs("a",{href:"https://github.com/dmduran12/pymc_console-dist",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 h-[32px] px-4 bg-accent-tertiary/10 hover:bg-accent-tertiary/20 text-accent-tertiary rounded-full type-body-sm font-medium transition-colors",children:[t.jsx(O,{className:"w-4 h-4"}),"PyMC Console Install Instructions"]})]})]})]})}),As&&t.jsx("div",{className:"bg-subtle-fill radius-card p-4 border border-accent-secondary/30",children:t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[t.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[t.jsx("div",{className:"w-8 h-8 rounded-full bg-accent-secondary/20 flex items-center justify-center flex-shrink-0",children:t.jsx(z,{className:"w-4 h-4 text-accent-secondary"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:"type-body text-text-primary font-medium",children:"Service restart required"}),t.jsx("p",{className:"type-body-sm text-text-muted mt-1",children:"Web frontend changes will take effect after restarting the pymc-repeater service."})]})]}),t.jsx("button",{onClick:async()=>{if(!Os){qs(!0);try{await async function(){return r("/api/restart_service",{method:"POST",body:"{}"})}(),Is(!1),setTimeout(()=>{window.location.reload()},2e3)}catch{Is(!1),setTimeout(()=>{window.location.reload()},3e3)}}},disabled:Os,className:"h-[32px] px-4 bg-accent-secondary/10 hover:bg-accent-secondary/20 text-accent-secondary rounded-full transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 whitespace-nowrap type-body-sm font-medium",children:Os?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Restarting..."]}):t.jsxs(t.Fragment,{children:[t.jsx(D,{className:"w-4 h-4"}),"Restart Now"]})})]})})]})]})}),A&&t.jsx(M,{template:"auto",children:t.jsx(N,{nodeName:me,repeaterVersion:A.version,coreVersion:A.core_version,localHash:A.local_hash,publicKey:A.public_key})}),A&&(0===(null==de?void 0:de.latitude)||!(null==de?void 0:de.latitude))&&(0===(null==de?void 0:de.longitude)||!(null==de?void 0:de.longitude))&&t.jsx(M,{template:"auto",children:t.jsx(Q,{})})]}),At&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&It(!1),role:"dialog","aria-modal":"true","aria-labelledby":"create-token-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"create-token-modal-title",className:"type-subheading text-text-primary mb-4",children:"Create API Token"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Token Name"}),t.jsx("input",{type:"text",value:Ot,onChange:e=>qt(e.target.value),placeholder:"e.g., Production Server, CI/CD Pipeline",className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary placeholder-text-muted focus:outline-none ring-focus-inset transition-base",onKeyDown:e=>"Enter"===e.key&&ea(),autoFocus:!0}),t.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Give your token a descriptive name to identify its purpose"})]}),t.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{It(!1),qt(""),Dt(null)},disabled:Ut,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:ea,disabled:Ut||!Ot.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:Ut?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Creating..."]}):"Create Token"})]})]})]})}),Vt&&Kt&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&$t(!1),role:"dialog","aria-modal":"true","aria-labelledby":"show-token-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-lg w-full",children:[t.jsx("h3",{id:"show-token-modal-title",className:"type-subheading text-text-primary mb-4",children:"Token Created Successfully"}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"bg-accent-secondary/10 border border-accent-secondary/30 radius-inner p-3",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(z,{className:"w-4 h-4 text-accent-secondary flex-shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm text-text-secondary",children:[t.jsx("strong",{children:"Save this token now!"})," For security reasons, it will not be shown again."]})]})}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Your API Token"}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("input",{value:Kt,readOnly:!0,className:"flex-1 px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary font-mono text-sm"}),t.jsxs("button",{onClick:()=>{Kt&&(navigator.clipboard.writeText(Kt),Qt(!0),setTimeout(()=>Qt(!1),2e3))},className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base flex items-center gap-2",title:"Copy to clipboard",children:[Wt?t.jsx(F,{className:"w-4 h-4 text-accent-success"}):t.jsx(E,{className:"w-4 h-4"}),Wt?"Copied!":"Copy"]})]})]}),t.jsxs("div",{className:"bg-accent-tertiary/10 border border-accent-tertiary/30 radius-inner p-3",children:[t.jsx("p",{className:"text-sm text-text-secondary mb-2",children:t.jsx("strong",{children:"Usage Example:"})}),t.jsxs("code",{className:"block bg-accent-tertiary/20 px-3 py-2 rounded text-xs text-accent-tertiary font-mono overflow-x-auto",children:['curl -H "X-API-Key: ',Kt.slice(0,12),'..." ',window.location.origin,"/api/stats"]})]}),t.jsx("div",{className:"flex justify-end mt-6",children:t.jsx("button",{onClick:()=>{$t(!1),Ht(null)},className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base",children:"Done"})})]})]})}),t.jsx(j,{isOpen:!!Yt,title:"Revoke API Token",message:`Are you sure you want to revoke the token '${null==Yt?void 0:Yt.name}'? This action cannot be undone.`,confirmLabel:Xt?"Revoking...":"Revoke",cancelLabel:"Cancel",variant:"danger",onConfirm:async()=>{if(Yt){Gt(!0),Dt(null);try{await async function(e){return r(`/auth/tokens/${e}`,{method:"DELETE"})}(Yt.id),await Zs(),Bt(null)}catch(e){Dt(e instanceof Error?e.message:"Failed to revoke token")}finally{Gt(!1)}}},onCancel:()=>Bt(null)}),xs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&ps(!1),role:"dialog","aria-modal":"true","aria-labelledby":"add-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"add-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Add Transport Key"}),t.jsxs("div",{className:"space-y-4",children:[os&&t.jsxs("div",{className:"bg-accent-tertiary/10 border border-accent-tertiary/30 radius-inner p-3 text-sm text-text-secondary",children:["Adding as child of: ",t.jsx("strong",{className:"text-text-primary",children:na()})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Key Name"}),t.jsx("input",{type:"text",value:ws,onChange:e=>ks(e.target.value),placeholder:"e.g., Region Name, Group Key",className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary placeholder-text-muted focus:outline-none ring-focus-inset transition-base",onKeyDown:e=>"Enter"===e.key&&ia(),autoFocus:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Flood Policy"}),t.jsxs("div",{className:"flex bg-bg-subtle radius-inner border-control p-1",children:[t.jsx("button",{onClick:()=>Ss("deny"),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","deny"===Cs?"bg-accent-danger/20 text-accent-danger border border-accent-danger/50":"text-text-muted hover:text-text-secondary"),children:"DENY"}),t.jsx("button",{onClick:()=>Ss("allow"),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","allow"===Cs?"bg-accent-success/20 text-accent-success border border-accent-success/50":"text-text-muted hover:text-text-secondary"),children:"ALLOW"})]})]}),t.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{ps(!1),ks(""),Ss("deny")},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:ia,disabled:_s||!ws.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Adding..."]}):"Add Key"})]})]})]})}),hs&&fs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&bs(!1),role:"dialog","aria-modal":"true","aria-labelledby":"edit-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"edit-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Edit Transport Key"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Key Name"}),t.jsx("input",{type:"text",value:fs.name,onChange:e=>js({...fs,name:e.target.value}),className:"w-full px-4 py-2 bg-bg-subtle border-control radius-inner text-text-primary focus:outline-none ring-focus-inset transition-base",autoFocus:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Flood Policy"}),t.jsxs("div",{className:"flex bg-bg-subtle radius-inner border-control p-1",children:[t.jsx("button",{onClick:()=>js({...fs,floodPolicy:"deny"}),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","deny"===fs.floodPolicy?"bg-accent-danger/20 text-accent-danger border border-accent-danger/50":"text-text-muted hover:text-text-secondary"),children:"DENY"}),t.jsx("button",{onClick:()=>js({...fs,floodPolicy:"allow"}),className:s("flex-1 px-3 py-2 text-sm font-medium rounded transition-colors","allow"===fs.floodPolicy?"bg-accent-success/20 text-accent-success border border-accent-success/50":"text-text-muted hover:text-text-secondary"),children:"ALLOW"})]})]}),fs.transport_key&&t.jsxs("div",{children:[t.jsx("label",{className:"type-label text-text-muted block mb-2",children:"Transport Key"}),t.jsx("code",{className:"block bg-bg-subtle px-3 py-2 radius-inner text-xs text-text-muted font-mono overflow-x-auto",children:fs.transport_key})]}),t.jsxs("div",{className:"flex justify-between gap-3 mt-6",children:[t.jsx("button",{onClick:()=>{bs(!1),Ns(fs),gs(!0),js(null)},disabled:_s,className:"px-4 py-2 bg-accent-danger/20 hover:bg-accent-danger/30 text-accent-danger radius-inner border border-accent-danger/50 transition-base disabled:opacity-50",children:"Delete"}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx("button",{onClick:()=>{bs(!1),js(null)},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover-bg text-text-secondary radius-inner border-control transition-base disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:async()=>{if(fs){Ts(!0),rs(null);try{const e=await async function(e,t){return r(`/api/transport_key/${e}`,{method:"PUT",body:JSON.stringify(t)})}(fs.id,{name:fs.name,flood_policy:fs.floodPolicy});e.success?(await aa(),bs(!1),js(null)):rs(e.error||"Failed to update transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to update transport key")}finally{Ts(!1)}}},disabled:_s||!fs.name.trim(),className:"px-4 py-2 bg-accent-primary/20 hover:bg-accent-primary/30 text-text-primary radius-inner border border-accent-primary/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Saving..."]}):"Save"})]})]})]})]})}),ys&&vs&&t.jsx("div",{className:"fixed inset-0 z-[10010] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",onClick:e=>e.target===e.currentTarget&&gs(!1),role:"dialog","aria-modal":"true","aria-labelledby":"delete-key-modal-title",children:t.jsxs("div",{className:"surface-modal radius-card p-6 max-w-md w-full",children:[t.jsx("h3",{id:"delete-key-modal-title",className:"type-subheading text-text-primary mb-4",children:"Delete Transport Key"}),t.jsxs("p",{className:"text-text-secondary mb-4",children:["Are you sure you want to delete ",t.jsxs("strong",{className:"text-text-primary",children:["'",vs.name,"'"]}),"?"]}),vs.children&&vs.children.length>0&&t.jsx("div",{className:"bg-accent-secondary/10 border border-accent-secondary/30 radius-inner p-3 mb-4",children:t.jsxs("div",{className:"flex gap-2",children:[t.jsx(z,{className:"w-4 h-4 text-accent-secondary flex-shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm text-text-secondary",children:["This key has ",vs.children.length," child key(s). Deleting will also remove all children."]})]})}),t.jsxs("div",{className:"flex justify-end gap-3",children:[t.jsx("button",{onClick:()=>{gs(!1),Ns(null)},disabled:_s,className:"px-4 py-2 bg-bg-subtle hover:bg-bg-elevated text-text-secondary rounded-lg border border-border-subtle transition-colors disabled:opacity-50",children:"Cancel"}),t.jsx("button",{onClick:async()=>{if(vs){Ts(!0),rs(null);try{const e=await async function(e){return r(`/api/transport_key/${e}`,{method:"DELETE"})}(vs.id);e.success?(await aa(),gs(!1),Ns(null),ds(null)):rs(e.error||"Failed to delete transport key")}catch(e){rs(e instanceof Error?e.message:"Failed to delete transport key")}finally{Ts(!1)}}},disabled:_s,className:"px-4 py-2 bg-accent-danger/20 hover:bg-accent-danger/30 text-accent-danger radius-inner border border-accent-danger/50 transition-base disabled:opacity-50 flex items-center gap-2",children:_s?t.jsxs(t.Fragment,{children:[t.jsx(T,{className:"w-4 h-4 animate-spin"}),"Deleting..."]}):"Delete"})]})]})})]})}export{le as default}; diff --git a/frontend/dist/assets/ConfirmModal-DDMJAre1.js b/frontend/dist/assets/ConfirmModal-CVFVRQC0.js similarity index 88% rename from frontend/dist/assets/ConfirmModal-DDMJAre1.js rename to frontend/dist/assets/ConfirmModal-CVFVRQC0.js index d41b2896..5cf80468 100644 --- a/frontend/dist/assets/ConfirmModal-DDMJAre1.js +++ b/frontend/dist/assets/ConfirmModal-CVFVRQC0.js @@ -1 +1 @@ -import{c as e,H as t,cg as n,I as a,ch as s}from"./index-_WuEOacy.js";import{r,j as o,c as i}from"./vendor-react-BKIq8k5U.js";import{T as c}from"./triangle-alert-aHb4szMy.js";const d=e("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),l=e("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),m={danger:{icon:"text-accent-danger",button:"bg-accent-danger hover:brightness-110 active:brightness-90"},warning:{icon:"text-accent-secondary",button:"bg-accent-secondary hover:brightness-110 active:brightness-90 text-bg-body"},default:{icon:"text-accent-primary",button:"bg-accent-primary hover:brightness-110 active:brightness-90 text-bg-body"}},h=r.memo(function({isOpen:e,title:r="Confirm",message:d,confirmLabel:l="Confirm",cancelLabel:h="Cancel",variant:b="default",onConfirm:x,onCancel:p}){const g=m[b];return o.jsxs(t,{open:e,onClose:p,size:"sm",children:[o.jsx(n,{icon:o.jsx(c,{className:i("w-5 h-5",g.icon)}),title:r,onClose:p}),o.jsx(a,{children:o.jsx("p",{className:"text-sm text-text-secondary",children:d})}),o.jsxs(s,{children:[o.jsx("button",{onClick:p,className:"flex-1 px-4 py-2.5 radius-inner text-sm font-medium text-text-secondary bg-bg-subtle hover-bg border-control transition-base",children:h}),o.jsx("button",{onClick:x,className:i("flex-1 px-4 py-2.5 radius-inner text-sm font-medium text-text-primary transition-base",g.button),children:l})]})]})});export{h as C,d as P,l as T}; +import{c as e,H as t,cg as n,I as a,ch as s}from"./index-CrU_Ps9k.js";import{r,j as o,c as i}from"./vendor-react-BKIq8k5U.js";import{T as c}from"./triangle-alert-DrmOKr32.js";const d=e("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),l=e("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),m={danger:{icon:"text-accent-danger",button:"bg-accent-danger hover:brightness-110 active:brightness-90"},warning:{icon:"text-accent-secondary",button:"bg-accent-secondary hover:brightness-110 active:brightness-90 text-bg-body"},default:{icon:"text-accent-primary",button:"bg-accent-primary hover:brightness-110 active:brightness-90 text-bg-body"}},h=r.memo(function({isOpen:e,title:r="Confirm",message:d,confirmLabel:l="Confirm",cancelLabel:h="Cancel",variant:b="default",onConfirm:x,onCancel:p}){const g=m[b];return o.jsxs(t,{open:e,onClose:p,size:"sm",children:[o.jsx(n,{icon:o.jsx(c,{className:i("w-5 h-5",g.icon)}),title:r,onClose:p}),o.jsx(a,{children:o.jsx("p",{className:"text-sm text-text-secondary",children:d})}),o.jsxs(s,{children:[o.jsx("button",{onClick:p,className:"flex-1 px-4 py-2.5 radius-inner text-sm font-medium text-text-secondary bg-bg-subtle hover-bg border-control transition-base",children:h}),o.jsx("button",{onClick:x,className:i("flex-1 px-4 py-2.5 radius-inner text-sm font-medium text-text-primary transition-base",g.button),children:l})]})]})});export{h as C,d as P,l as T}; diff --git a/frontend/dist/assets/Contacts-CoDOi-Be.js b/frontend/dist/assets/Contacts-BZbynpbU.js similarity index 96% rename from frontend/dist/assets/Contacts-CoDOi-Be.js rename to frontend/dist/assets/Contacts-BZbynpbU.js index aa6023c7..e54d4510 100644 --- a/frontend/dist/assets/Contacts-CoDOi-Be.js +++ b/frontend/dist/assets/Contacts-BZbynpbU.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ContactsMapMapLibre-B9vDt-Q3.js","assets/vendor-react-BKIq8k5U.js","assets/BasemapLayer-BldfARb5.js","assets/vendor-core-D1aqi_5O.js","assets/link-scoring-0iadiYJr.js","assets/index-_WuEOacy.js","assets/ConfirmModal-DDMJAre1.js","assets/triangle-alert-aHb4szMy.js","assets/DeepAnalysisModal-Bs0eqWHM.js","assets/config-C7QO3CEB.js","assets/DataBox-ihLFk7Um.js","assets/git-branch-BPL9j6g1.js","assets/database-DzqBwrzM.js","assets/loader-circle-E8BhCd6Y.js","assets/LightSparkline-CdHE3FTK.js","assets/house-BBcJvvl1.js","assets/refresh-cw-J1p21ufp.js","assets/compass-BKAMqa2d.js","assets/SignalIndicator-BLxNXr0z.js","assets/font-loader-jlbdh9Fw.js","assets/index-DU6QWVJT.js","assets/users-DMMZTLQq.js","assets/map-pin-yDOfK60-.js","assets/ping-BaWqaU2w.js","assets/PageLayout-C4LpOVqW.js","assets/activity-CYJ1WO67.js","assets/circle-check-COooBZCl.js","assets/CollisionExplorerModal-DgkiEMYI.js","assets/network-DFMZ0mT7.js","assets/target-SwsSSLmm.js","assets/maplibre-gl-B1CfjdFi.css","assets/index-B4-wugIc.css"])))=>i.map(i=>d[i]); -import{j as e,r as s,c as t}from"./vendor-react-BKIq8k5U.js";import{c as a,aq as n,ar as i,as as r,ak as l,at as c,J as o,ad as d,au as x,av as m,r as h,B as p,E as u,aw as g,n as j,ax as b,ay as N,az as v,k as f,aA as y,aB as w,aC as k,N as C,aD as M,Y as S,R as L}from"./index-_WuEOacy.js";import{p as P}from"./ping-BaWqaU2w.js";import{P as R,b as F,B as H}from"./PageLayout-C4LpOVqW.js";import{_ as E}from"./deckgl-DTsmDcfs.js";import{G as T}from"./git-branch-BPL9j6g1.js";import{T as _}from"./triangle-alert-aHb4szMy.js";import{a as z,T as O,M as $,b as A,L as D}from"./LightSparkline-CdHE3FTK.js";import{c as I,Z as V,a as G,C as U,d as B,e as K}from"./SignalIndicator-BLxNXr0z.js";import{A as W}from"./activity-CYJ1WO67.js";import{C as q,D as J}from"./DataBox-ihLFk7Um.js";import{F as Z,U as Y}from"./users-DMMZTLQq.js";import{P as Q,T as X,C as ee}from"./ConfirmModal-DDMJAre1.js";import{M as se}from"./map-pin-yDOfK60-.js";import{C as te}from"./circle-check-COooBZCl.js";import{C as ae,S as ne,M as ie}from"./CollisionExplorerModal-DgkiEMYI.js";import{N as re}from"./network-DFMZ0mT7.js";import{L as le}from"./loader-circle-E8BhCd6Y.js";import{T as ce,S as oe}from"./target-SwsSSLmm.js";const de=a("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]),xe=a("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),me=a("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),he=a("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),pe=a("file-digit",[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 16h2v6",key:"1bxocy"}],["path",{d:"M10 22h4",key:"ceow96"}],["rect",{x:"2",y:"16",width:"4",height:"6",rx:"2",key:"r45zd0"}]]),ue=a("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),ge=a("ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]),je=a("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),be=a("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);class Ne extends s.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){var s;return this.state.hasError?e.jsx("div",{className:t("map-container-16-9 flex items-center justify-center rounded-2xl",n),role:"alert","aria-live":"assertive",children:e.jsxs("div",{className:"text-center text-white/50 p-4",children:[e.jsx("p",{className:"text-lg mb-2",children:"Map failed to load"}),e.jsx("p",{className:"text-sm text-white/30",children:(null==(s=this.state.error)?void 0:s.message)||"Unknown error"}),e.jsx("p",{className:"text-xs text-white/20 mt-2",children:"Try refreshing the page or check your browser's WebGL support."})]})}):this.props.children}}const ve=s.lazy(()=>E(()=>import("./ContactsMapMapLibre-B9vDt-Q3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])));function fe({neighbors:a,localNode:i,localHash:r,onRemoveNode:l,selectedNodeHash:c,onNodeSelected:o,highlightedEdgeKey:d,highlightedGhost:x}){return e.jsx(Ne,{children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:t("map-container-16-9 flex items-center justify-center rounded-2xl",n),role:"status","aria-live":"polite","aria-label":"Loading map",children:e.jsxs("div",{className:"text-white/50 flex items-center gap-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-accent-primary border-t-transparent rounded-full animate-spin","aria-hidden":"true"}),e.jsx("span",{children:"Loading map..."})]})}),children:e.jsx(ve,{neighbors:a,localNode:i,localHash:r,onRemoveNode:l,selectedNodeHash:c,onNodeSelected:o,highlightedEdgeKey:d,highlightedGhost:x})})})}function ye(e){return e>=.7?"text-accent-success":e>=.5?"text-accent-secondary":e>=.3?"text-signal-poor":"text-accent-danger"}function we(e){return`${Math.round(100*e)}%`}function ke(e,s){return s.has(e.toUpperCase())}const Ce=s.memo(function({path:s,isHighlighted:t,onHighlight:a,ghostPrefixes:n}){const i=function(s){return s>.2?{icon:e.jsx(O,{className:"w-3 h-3"}),color:"text-accent-success"}:s<-.2?{icon:e.jsx(z,{className:"w-3 h-3"}),color:"text-accent-danger"}:{icon:e.jsx($,{className:"w-3 h-3"}),color:"text-text-muted"}}(s.observationTrend),r=s.weakestLinkKey&&s.weakestLinkConfidence<.5,l=s.hops.some(e=>ke(e,n));return e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-md transition-colors cursor-pointer "+(t?"bg-accent-primary/20 border border-accent-primary/40":"hover:bg-white/5"),onClick:()=>a(t?null:s.weakestLinkKey),children:[e.jsx("div",{className:"flex-shrink-0 w-12 text-center py-1 rounded-md "+(o=s.healthScore,o>=.7?"bg-accent-success/10":o>=.5?"bg-accent-secondary/10":o>=.3?"bg-signal-poor/10":"bg-accent-danger/10"),children:e.jsx("span",{className:`text-xs font-semibold tabular-nums ${ye(s.healthScore)}`,children:we(s.healthScore)})}),e.jsx("div",{className:"flex-1 flex items-center gap-0.5 overflow-x-auto min-w-0",children:s.hops.map((t,a)=>{var i;const l=ke(t,n),o=r&&(null==(i=s.weakestLinkKey)?void 0:i.includes(t));return e.jsxs("span",{className:"flex items-center",children:[e.jsxs("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded flex items-center gap-0.5 "+(l?"bg-accent-tertiary/20 text-accent-tertiary border border-accent-tertiary/30":o?"bg-accent-danger/20 text-accent-danger":"bg-white/10 text-text-secondary"),children:[l&&e.jsx(c,{className:"w-2.5 h-2.5"}),t]}),anew Set(m.map(e=>e.prefix.toUpperCase())),[m]),g=s.useMemo(()=>d.slice(0,t),[d,t]),j=s.useMemo(()=>0===d.length?null:{avgHealth:d.reduce((e,s)=>e+s.healthScore,0)/d.length,declining:d.filter(e=>e.observationTrend<-.2).length,weakLinks:d.filter(e=>e.weakestLinkConfidence<.5).length,pathsWithGhosts:d.filter(e=>e.hops.some(e=>u.has(e.toUpperCase()))).length},[d,u]),b=e=>{null==a||a(e)};return 0===d.length?null:e.jsxs("div",{className:"chart-container",children:[e.jsxs("button",{onClick:()=>p(!h),className:"w-full chart-header hover:bg-white/5 transition-colors rounded-t-lg cursor-pointer",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(T,{className:"chart-title-icon"}),"Path Health",e.jsxs("span",{className:"ml-2 text-[10px] font-normal text-text-muted",children:["(",d.length," paths)"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[j&&e.jsxs("div",{className:"flex items-center gap-3 text-[10px]",children:[e.jsxs("span",{className:`tabular-nums ${ye(j.avgHealth)}`,children:["Avg: ",we(j.avgHealth)]}),j.weakLinks>0&&e.jsxs("span",{className:"text-accent-danger flex items-center gap-1",children:[e.jsx(_,{className:"w-3 h-3"}),j.weakLinks," weak"]}),j.declining>0&&e.jsxs("span",{className:"text-signal-poor flex items-center gap-1",children:[e.jsx(z,{className:"w-3 h-3"}),j.declining," declining"]}),j.pathsWithGhosts>0&&e.jsxs("span",{className:"text-accent-tertiary flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3"}),j.pathsWithGhosts," ghost"]})]}),h?e.jsx(I,{className:"w-4 h-4 text-text-muted"}):e.jsx(o,{className:"w-4 h-4 text-text-muted"})]})]}),h&&e.jsxs("div",{className:"p-3 pt-0 space-y-1",children:[x.totalPaths>0&&e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-text-muted pb-2 border-b border-white/5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(he,{className:"w-3 h-3 text-accent-primary"}),e.jsx("span",{className:"text-text-secondary",children:x.totalPaths.toLocaleString()})," Viterbi decoded"]}),x.observationOverrideCount>0&&e.jsxs("span",{className:"text-accent-success",children:[Math.round(x.observationOverrideCount/x.totalPaths*100),"% observation override"]}),m.length>0&&e.jsxs("span",{className:"text-accent-tertiary flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3"}),m.length," ghost",1!==m.length?"s":""]})]}),e.jsxs("div",{className:"flex items-center gap-4 text-[10px] text-text-muted pb-2 border-b border-white/5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-success"})," Healthy (≥70%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-secondary"})," Fair (50-70%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-signal-poor"})," Weak (30-50%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-danger"})," Critical (<30%)"]}),m.length>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3 text-accent-tertiary"})," Ghost"]})]}),e.jsx("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:g.map(s=>e.jsx(Ce,{path:s,isHighlighted:n===s.weakestLinkKey,onHighlight:b,ghostPrefixes:u},s.pathKey))}),d.length>t&&e.jsxs("div",{className:"text-center text-[10px] text-text-muted pt-2",children:["Showing top ",t," of ",d.length," paths"]})]})]})});function Se(e){switch(e){case"rf_intersection":return"RF Circle Intersection";case"weighted_centroid":return"Weighted Centroid";case"single_anchor":return"Single Anchor (less reliable)";default:return e}}const Le={confirmed:{label:"Confirmed",icon:e.jsx(be,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-success/40",bgClass:"bg-accent-success/10",textClass:"text-accent-success",badgeClass:"bg-accent-success/20 text-accent-success"},likely:{label:"Likely",icon:e.jsx(q,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-tertiary/30",bgClass:"bg-accent-tertiary/5",textClass:"text-accent-tertiary",badgeClass:"bg-accent-tertiary/20 text-accent-tertiary"},possible:{label:"Possible",icon:e.jsx(G,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-secondary/20",bgClass:"bg-accent-secondary/5",textClass:"text-accent-secondary",badgeClass:"bg-accent-secondary/20 text-accent-secondary"},noise:{label:"Noise",icon:e.jsx(_,{className:"w-3.5 h-3.5"}),borderClass:"border-border-muted",bgClass:"bg-bg-card/30",textClass:"text-text-muted",badgeClass:"bg-bg-elevated text-text-muted"}};function Pe({ghost:a,neighbors:n,isExpanded:i,onToggle:r,compact:l}){var m,h;const p=(null==(m=a.classification)?void 0:m.tier)??"noise",u=Le[p],g="clusterId"in(j=a)&&"temporal"in j;var j;const b=s.useMemo(()=>Array.from(a.commonNeighbors).map(e=>{var s;return{hash:e,name:null==(s=n[e])?void 0:s.name}}),[a.commonNeighbors,n]),N=a.estimatedLocation?a.estimatedLocation.uncertaintyM>=1e3?`±${(a.estimatedLocation.uncertaintyM/1e3).toFixed(1)}km`:`±${Math.round(a.estimatedLocation.uncertaintyM)}m`:null,v=g&&a.temporal?(f=a.temporal.consistency)>=.7?{label:"Steady",color:"text-accent-success"}:f>=.4?{label:"Regular",color:"text-accent-tertiary"}:f>=.2?{label:"Sporadic",color:"text-accent-secondary"}:{label:"Bursty",color:"text-signal-poor"}:null;var f;const y=g&&a.collisionCandidates&&a.collisionCandidates.length>0,w=y?a.collisionCandidates[0]:null;return l?e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2 py-1 rounded bg-bg-elevated/50 text-sm",children:[e.jsx("span",{className:"font-mono font-medium text-text-secondary",children:a.prefix.toUpperCase()}),e.jsx("span",{className:"text-text-muted",children:a.observationCount})]}):e.jsxs("div",{className:t("rounded-lg border transition-all duration-150",u.borderClass,u.bgClass),children:[e.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-3 py-2 text-left hover:bg-white/5 rounded-lg",children:[e.jsx(c,{className:t("w-5 h-5 flex-shrink-0",u.textClass)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-mono text-sm font-semibold text-text-primary",children:a.prefix.toUpperCase()}),e.jsx("span",{className:t("px-1.5 py-0.5 rounded text-sm font-medium",u.badgeClass),children:u.label})]}),e.jsx("div",{className:t("text-sm mt-0.5",u.textClass),children:(null==(h=a.classification)?void 0:h.reason)??"Unknown"}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-text-muted mt-1",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(he,{className:"w-3 h-3"}),a.observationCount]}),e.jsxs("span",{children:[(100*a.confidence).toFixed(0),"%"]}),a.commonNeighbors.size>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Y,{className:"w-3 h-3"}),a.commonNeighbors.size]}),a.estimatedLocation&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(se,{className:"w-3 h-3"}),N]}),v&&e.jsxs("span",{className:t("flex items-center gap-1",v.color),children:[e.jsx(W,{className:"w-3 h-3"}),v.label]}),y&&e.jsxs("span",{className:"flex items-center gap-1 text-signal-poor",children:[e.jsx(je,{className:"w-3 h-3"}),"Collision?"]})]})]}),i?e.jsx(I,{className:"w-4 h-4 text-text-muted"}):e.jsx(o,{className:"w-4 h-4 text-text-muted"})]}),i&&e.jsxs("div",{className:"px-3 pb-3 space-y-3 border-t border-border-muted/50 mt-1 pt-3",children:[y&&w&&e.jsx("div",{className:"p-2 rounded bg-signal-poor/10 border border-signal-poor/30",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(je,{className:"w-4 h-4 text-signal-poor flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-signal-poor font-medium",children:"Possible collision with known node"}),e.jsx("div",{className:"text-text-secondary mt-0.5",children:w.knownNodeName?e.jsxs("span",{children:["May match ",e.jsx("span",{className:"font-medium",children:w.knownNodeName})," ","(",(100*w.collisionProbability).toFixed(0),"% probability)"]}):e.jsxs("span",{children:["May match ",e.jsx(J,{copy:!0,size:"compact",className:"inline",children:w.knownNodeHash})," ","(",(100*w.collisionProbability).toFixed(0),"% probability)"]})}),w.evidence&&e.jsxs("div",{className:"text-text-muted mt-1 text-[10px]",children:[w.evidence.sharedEdgeCount>0&&e.jsxs("span",{className:"mr-2",children:[w.evidence.sharedEdgeCount," shared edges"]}),void 0!==w.evidence.distanceKm&&e.jsxs("span",{className:"mr-2",children:[w.evidence.distanceKm.toFixed(1),"km apart"]}),w.evidence.withinUncertainty&&e.jsx("span",{className:"text-accent-secondary",children:"Within uncertainty radius"})]})]})]})}),a.estimatedLocation?e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(se,{className:"w-4 h-4 text-accent-primary mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary font-medium",children:[a.estimatedLocation.lat.toFixed(5),", ",a.estimatedLocation.lon.toFixed(5)]}),e.jsxs("div",{className:"text-text-muted",children:["Uncertainty: ",N]}),g&&a.location&&e.jsxs("div",{className:"mt-1 text-text-muted",children:[e.jsxs("div",{children:["Method: ",Se(a.location.method)]}),a.location.anchors&&a.location.anchors.length>0&&e.jsxs("div",{children:[a.location.anchors.length," anchor",1!==a.location.anchors.length?"s":""," used"," · ",(100*a.location.locationConfidence).toFixed(0),"% confidence"]})]})]})]}):e.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[e.jsx(_,{className:"w-4 h-4 text-signal-poor"}),"Location unknown (neighbors lack coordinates)"]}),g&&a.temporal&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary font-medium",children:["Temporal Pattern: ",e.jsx("span",{className:null==v?void 0:v.color,children:null==v?void 0:v.label})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1 text-text-muted",children:[e.jsxs("span",{children:["Distinct hours: ",a.temporal.distinctHours]}),e.jsxs("span",{children:["Distinct days: ",a.temporal.distinctDays]}),e.jsxs("span",{children:["Burstiness: ",(100*a.temporal.burstiness).toFixed(0),"%"]}),e.jsxs("span",{children:["Consistency: ",(100*a.temporal.consistency).toFixed(0),"%"]}),e.jsxs("span",{children:["Last 24h: ",a.temporal.last24HourCount," obs"]}),e.jsxs("span",{children:["Active hours: ",a.temporal.activeHoursLast24,"/24"]})]})]})]}),!g&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(d,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary",children:["First seen: ",x(a.firstSeen)," ago"]}),e.jsxs("div",{className:"text-text-muted",children:["Last seen: ",x(a.lastSeen)," ago"]})]})]}),g&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(me,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary",children:["Active period: ",x(a.firstSeen)," – ",x(a.lastSeen)," ago"]}),a.temporal&&e.jsxs("div",{className:"text-text-muted",children:["Obs/hour avg: ",a.temporal.observationsPerHour.toFixed(1)]})]})]}),b.length>0&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Y,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-muted mb-1",children:["Adjacent to ",b.length," known node",1!==b.length?"s":"",":"]}),e.jsxs("div",{className:"flex flex-wrap gap-1",children:[b.slice(0,5).map(({hash:s})=>e.jsx(J,{copy:!0,size:"compact",children:s},s)),b.length>5&&e.jsxs("span",{className:"text-text-muted",children:["+",b.length-5," more"]})]})]})]}),g&&a.validationStages&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30",children:[e.jsx("div",{className:"text-[10px] text-text-muted mb-1.5 uppercase tracking-wide",children:"Validation Stages"}),e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[e.jsx(Re,{label:"Candidates",passed:a.validationStages.candidateExhaustion}),e.jsx(Re,{label:"Temporal",passed:a.validationStages.temporalConsistency}),e.jsx(Re,{label:"Topology",passed:a.validationStages.topologicalFit}),e.jsx(Re,{label:"Location",passed:a.validationStages.locationPlausible})]})]}),a.classification&&!g&&e.jsx("div",{className:"pt-2 border-t border-border-muted/30",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[a.classification.criteria.hasVeryHighObservations&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-success/20 text-accent-success",children:"200+ obs"}),a.classification.criteria.hasHighObservations&&!a.classification.criteria.hasVeryHighObservations&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-tertiary/20 text-accent-tertiary",children:"50+ obs"}),a.classification.criteria.hasHighConfidence&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-success/20 text-accent-success",children:"70%+ conf"}),a.classification.criteria.hasCommonNeighbors&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-primary/20 text-accent-primary",children:"2+ neighbors"}),a.classification.criteria.hasGoodLocation&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-primary/20 text-accent-primary",children:"good loc"}),a.classification.criteria.isRecent&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-text-muted/20 text-text-muted",children:"recent"})]})}),g&&a.upgradeRequirements&&a.upgradeRequirements.length>0&&"confirmed"!==p&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30",children:[e.jsx("div",{className:"text-[10px] text-text-muted mb-1 uppercase tracking-wide",children:"To upgrade tier:"}),e.jsx("ul",{className:"text-xs text-text-secondary space-y-0.5",children:a.upgradeRequirements.slice(0,3).map((s,t)=>e.jsxs("li",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-accent-tertiary",children:"•"})," ",s]},t))})]})]})]})}function Re({label:s,passed:a}){return e.jsxs("span",{className:t("inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium",a?"bg-accent-success/20 text-accent-success":"bg-bg-elevated text-text-muted"),children:[a?e.jsx(te,{className:"w-2.5 h-2.5"}):e.jsx(U,{className:"w-2.5 h-2.5"}),s]})}function Fe({neighbors:a,className:n,onGhostSelect:i}){const d=l(),x=r(),[m,h]=s.useState(new Set),[p,u]=s.useState("actionable"),[g,j]=s.useState(!1),[b,N]=s.useState(!0),[v,f]=s.useState(Date.now);s.useEffect(()=>{f(Date.now())},[d]);const y=s.useMemo(()=>d.filter(e=>!function(e,s){return s-1e3*e.lastSeen>6048e5}(e,v)),[d,v]),w=s.useMemo(()=>{const e=Array.from(m);return e.length>0?e[0]:null},[m]),k=s.useMemo(()=>w?y.find(e=>e.prefix===w)??null:null,[w,y]);s.useEffect(()=>{i&&i(k&&!b?{prefix:k.prefix,commonNeighbors:Array.from(k.commonNeighbors),estimatedLocation:k.estimatedLocation}:null)},[k,b,i]),s.useEffect(()=>{b&&h(new Set)},[b]);const{confirmed:C,likely:M,possible:S,noise:L,actionableCount:P}=s.useMemo(()=>{var e;const s=[],t=[],a=[],n=[];for(const r of y)switch((null==(e=r.classification)?void 0:e.tier)??"noise"){case"confirmed":s.push(r);break;case"likely":t.push(r);break;case"possible":a.push(r);break;case"noise":n.push(r)}const i=(e,s)=>s.observationCount-e.observationCount;return s.sort(i),t.sort(i),a.sort(i),n.sort(i),{confirmed:s,likely:t,possible:a,noise:n,actionableCount:s.length+t.length}},[y]);if(0===y.length)return null;const R=e=>{h(s=>s.has(e)?new Set:new Set([e]))},F="all"===p,H=C.length+M.length+(F?S.length:0)+(g?L.length:0);return e.jsxs("div",{className:n,children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(c,{className:"chart-title-icon"}),"Ghost Buster",P>0&&e.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-accent-success/20 text-accent-success",children:[P," actionable"]}),b&&y.length>0&&e.jsxs("span",{className:"text-xs text-text-muted ml-2",children:["(",y.length," total)"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[!b&&e.jsxs("button",{onClick:()=>u(e=>"actionable"===e?"all":"actionable"),className:t("flex items-center gap-1.5 px-2 py-1 rounded text-xs transition-colors","all"===p?"bg-accent-primary/20 text-accent-primary":"bg-bg-elevated text-text-muted hover:text-text-secondary"),children:[e.jsx(Z,{className:"w-3 h-3"}),"actionable"===p?"Actionable":"All"]}),e.jsx("button",{onClick:()=>N(e=>!e),className:"flex items-center gap-1 px-2 py-1 rounded text-xs bg-bg-elevated text-text-muted hover:text-text-secondary transition-colors",title:b?"Expand panel":"Minimize panel",children:b?e.jsx(Q,{className:"w-3 h-3"}):e.jsx($,{className:"w-3 h-3"})})]})]}),b?e.jsxs("div",{className:"px-5 py-3 flex items-center gap-3 text-xs cursor-pointer hover:bg-white/5 transition-colors",onClick:()=>N(!1),children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[C.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-accent-success",children:[e.jsx(be,{className:"w-3 h-3"}),C.length," confirmed"]}),M.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-accent-tertiary",children:[e.jsx(q,{className:"w-3 h-3"}),M.length," likely"]}),S.length>0&&e.jsxs("span",{className:"text-accent-secondary",children:[S.length," possible"]}),L.length>0&&e.jsxs("span",{className:"text-text-muted",children:[L.length," noise"]})]}),e.jsx("span",{className:"text-text-muted ml-auto",children:"Click to expand"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-5 py-2 flex items-center gap-3 text-xs border-b border-border-muted/30",children:[e.jsxs("span",{className:"text-text-muted",children:[x.pathsWithGhosts.toLocaleString()," / ",x.totalPaths.toLocaleString()," paths"]}),e.jsx("span",{className:"text-text-muted",children:"•"}),e.jsxs("div",{className:"flex items-center gap-2",children:[C.length>0&&e.jsxs("span",{className:"text-accent-success",children:[C.length," confirmed"]}),M.length>0&&e.jsxs("span",{className:"text-accent-tertiary",children:[M.length," likely"]}),S.length>0&&e.jsxs("span",{className:"text-accent-secondary",children:[S.length," possible"]}),L.length>0&&e.jsxs("span",{className:"text-text-muted",children:[L.length," noise"]})]})]}),e.jsxs("div",{className:"px-5 py-4 space-y-4",children:[C.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-success",children:[e.jsx(be,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Confirmed Repeaters (",C.length,")"]})]}),e.jsx("div",{className:"space-y-2",children:C.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix))})]}),M.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-tertiary",children:[e.jsx(q,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Likely Repeaters (",M.length,")"]})]}),e.jsx("div",{className:"space-y-2",children:M.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix))})]}),F&&S.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-secondary",children:[e.jsx(G,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Possible (",S.length,")"]})]}),e.jsxs("div",{className:"space-y-2",children:[S.slice(0,10).map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix)),S.length>10&&e.jsxs("div",{className:"text-xs text-text-muted text-center py-1",children:["+",S.length-10," more possible nodes"]})]})]}),L.length>0&&"all"===p&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{onClick:()=>j(!g),className:"flex items-center gap-2 text-xs text-text-muted hover:text-text-secondary transition-colors",children:[g?e.jsx(I,{className:"w-3.5 h-3.5"}):e.jsx(o,{className:"w-3.5 h-3.5"}),e.jsx(_,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Noise (",L.length,")"]})]}),g&&e.jsx("div",{className:"flex flex-wrap gap-1",children:L.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:!1,onToggle:()=>{},compact:!0},s.prefix))})]}),"actionable"===p&&0===P&&e.jsxs("div",{className:"text-center py-6 text-sm text-text-muted",children:[e.jsx(c,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No confirmed or likely repeaters yet."}),e.jsxs("p",{className:"text-xs mt-1",children:[S.length+L.length," prefixes need more evidence."]}),e.jsxs("button",{onClick:()=>u("all"),className:"mt-3 text-accent-primary hover:underline",children:["View all ",y.length," discovered nodes"]})]}),x.observationOverrideCount>0&&H>0&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30 text-xs text-text-muted",children:[e.jsx("span",{className:"text-accent-primary",children:x.observationOverrideCount})," observation overrides • Avg confidence: ",e.jsxs("span",{className:"text-accent-secondary",children:[(100*x.avgPathConfidence).toFixed(0),"%"]})]})]})]})]})}const He=s.memo(function({hash:t,className:a="",size:n="sm",collisionInfo:i,isViterbiResolved:l}){const c=m(),o=r(),[d,x]=s.useState(!1),p=s.useMemo(()=>h(t),[t]),u=s.useMemo(()=>void 0!==i?i:p?c.find(e=>e.prefix===p)??null:null,[p,c,i]),g=l??(o.totalPaths>0&&o.avgPathConfidence>=.7),j=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),x(!0)},[]),b=s.useCallback(()=>{x(!1)},[]);if(!u)return null;const N="sm"===n?"w-3.5 h-3.5":"w-4 h-4",v=g?"text-accent-tertiary hover:text-accent-tertiary hover:bg-accent-tertiary/10 focus:ring-accent-tertiary/50":"text-signal-fair hover:text-accent-secondary hover:bg-signal-fair/10 focus:ring-signal-fair/50",f=g?`Prefix conflict resolved by Viterbi HMM (${(100*o.avgPathConfidence).toFixed(0)}% confidence)`:`Prefix conflict: ${u.candidateCount} nodes share prefix "${p}"`;return e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:j,className:`inline-flex items-center justify-center p-0.5 rounded focus:outline-none focus:ring-2 transition-colors cursor-pointer touch-manipulation ${v} ${a}`,title:f,"aria-label":`View prefix conflict for ${p}${g?" (Viterbi resolved)":""}`,children:g?e.jsxs("span",{className:"relative",children:[e.jsx(he,{className:N}),e.jsx(q,{className:"absolute -bottom-0.5 -right-0.5 w-2 h-2 text-accent-success"})]}):e.jsx(pe,{className:N})}),e.jsx(ae,{isOpen:d,prefix:u.prefix,candidateHashes:u.candidateHashes,onClose:b})]})}),Ee=s.memo(function({hash:s,contact:t,isHub:a,isNeighbor:n,distance:i,centrality:r,sparklineData:l,isSparklineLoading:c,neighborSignal:o,collisionInfo:d,isViterbiResolved:x,isPinging:m,isPingingThis:h,pingResult:g,pingError:j,onRowClick:b,onPing:N,onRemove:v}){var f;const y=t.latitude&&t.longitude&&0!==t.latitude&&0!==t.longitude,w=t.node_name||t.name||"Unknown",k=n&&o,C=null==(f=t.contact_type)?void 0:f.toLowerCase(),M="room server"===C||"room_server"===C||"room"===C||"server"===C,S="companion"===C,L="client"===C||"cli"===C,P=t.is_repeater||"repeater"===C||"rep"===C,R=n?"direct":"flood",F=n?"Direct RF contact (zero-hop neighbor)":"Flood routing (multi-hop via mesh)";return e.jsxs("div",{className:`contacts-grid-row ${a?"bg-amber-500/5 border-l-2 border-l-amber-400":""} ${y?"cursor-pointer hover:bg-white/[0.02]":""}`,onClick:()=>b(s),children:[e.jsxs("div",{className:"contacts-col-node flex items-center gap-2 min-w-0",children:[k&&null!==(null==o?void 0:o.avgSnr)?e.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0 self-center "+(E=o.avgSnr,void 0===E?"bg-[var(--signal-unknown)]":E>=5?"bg-[var(--signal-excellent)]":E>=0?"bg-[var(--signal-good)]":E>=-5?"bg-[var(--signal-fair)]":E>=-10?"bg-[var(--signal-poor)]":"bg-[var(--signal-critical)]")}):e.jsx("div",{className:"w-2 flex-shrink-0"}),e.jsx("div",{className:"roster-icon flex-shrink-0",title:F,children:M&&P?e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(A,{className:"w-5 h-5 absolute inset-0 text-sys-pink"}),e.jsx(ne,{className:"w-2.5 h-2.5 absolute -bottom-0.5 -right-0.5 text-sys-teal"})]}):M?e.jsx(A,{className:"w-5 h-5 text-sys-pink"}):S?e.jsx(ie,{className:"w-5 h-5 text-text-muted"}):P?"direct"===R?e.jsx(de,{className:"w-5 h-5 text-sys-green"}):e.jsx(ne,{className:"w-5 h-5 text-sys-cyan"}):e.jsx(ie,{className:"w-5 h-5 text-text-muted"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5 overflow-hidden",children:[e.jsx("span",{className:"roster-title truncate",title:w,children:w}),n&&e.jsx(p,{color:B.neighbor,compact:!0,className:"flex-shrink-0",children:"NBR"}),a&&e.jsxs(p,{color:B.hub,compact:!0,className:"flex items-center gap-1 flex-shrink-0",children:[e.jsx(re,{className:"w-3 h-3"}),"HUB"]}),P&&e.jsx(p,{color:B.repeater,compact:!0,className:"flex-shrink-0",children:"RPT"}),M&&e.jsx(p,{color:B.room,compact:!0,className:"flex-shrink-0",children:"ROOM"}),S&&e.jsx(p,{color:B.companion,compact:!0,className:"flex-shrink-0",children:"COMP"}),L&&e.jsx(p,{color:B.client,compact:!0,className:"flex-shrink-0",children:"CLIENT"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[e.jsx(J,{copy:!0,size:"compact",truncate:[8,6],children:s}),e.jsx(He,{hash:s,collisionInfo:d,isViterbiResolved:x})]})]})]}),e.jsxs("div",{className:"contacts-col-signal flex items-center justify-end gap-2",children:[k&&null!==(null==o?void 0:o.avgRssi)&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(K,{rssi:o.avgRssi,className:"w-3.5 h-3.5"}),e.jsx("span",{className:"type-data-xs tabular-nums text-text-muted",children:Math.round(o.avgRssi)})]}),k&&null!==(null==o?void 0:o.avgSnr)&&e.jsxs("span",{className:"type-data-xs tabular-nums text-text-muted",children:[o.avgSnr.toFixed(1)," dB"]})]}),e.jsx("div",{className:"contacts-col-distance flex items-center justify-end gap-1 text-text-muted",children:null!=i&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{className:"w-3 h-3"}),e.jsx("span",{className:"type-data-xs tabular-nums",children:(H=i,H<1e3?`${Math.round(H)}m`:`${(H/1e3).toFixed(1)}km`)})]})}),e.jsx("div",{className:"contacts-col-centrality flex items-center justify-end gap-1",children:r>0&&e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"w-3 h-3 text-accent-secondary"}),e.jsxs("span",{className:"type-data-xs tabular-nums text-text-muted",children:[(100*r).toFixed(0),"%"]})]})}),e.jsx("div",{className:"contacts-col-activity flex items-center justify-center",children:e.jsx(D,{data:l,width:48,height:16,isLoading:c})}),e.jsx("div",{className:"contacts-col-seen flex items-center justify-end",children:e.jsx("span",{className:"type-data-xs tabular-nums text-text-primary whitespace-nowrap",children:t.last_seen?u(t.last_seen):"—"})}),e.jsxs("div",{className:"contacts-col-actions flex items-center justify-end gap-1",children:[n&&e.jsx(e.Fragment,{children:g?e.jsxs("div",{className:"flex items-center gap-1 text-accent-success",title:`RTT: ${g.rtt_ms.toFixed(0)}ms`,children:[e.jsx(q,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"type-data-xs tabular-nums hidden sm:inline",children:[g.snr_db.toFixed(1),"dB"]})]}):j?e.jsx("span",{className:"text-red-400 text-[10px]",title:j,children:"✗"}):e.jsx("button",{onClick:e=>N(s,e),disabled:m,className:"p-1 sm:p-1.5 radius-inner text-text-muted/50 hover:text-accent-primary hover:bg-accent-primary/10 transition-base disabled:opacity-50 disabled:cursor-not-allowed",title:"Ping neighbor for updated signal info",children:h?e.jsx(le,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 animate-spin"}):e.jsx(ce,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})})}),e.jsx("button",{onClick:e=>{e.stopPropagation(),v(s,w)},className:"p-1 sm:p-1.5 radius-inner text-text-muted/50 hover:text-red-400 hover:bg-red-500/10 transition-base",title:"Remove contact",children:e.jsx(X,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})})]})]});var H,E}),Te=[];function _e(e,s,t,a){const n=(t-e)*Math.PI/180,i=(a-s)*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e*Math.PI/180)*Math.cos(t*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371e3}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:function(){const{stats:t}=g(),a=j(),n=b(),i=N(),c=v(),x=f(),p=l(),u=y(),E=m(),T=r(),_=w(),z=k(),O=C(),$=T.totalPaths>0&&T.avgPathConfidence>=.7,A=s.useMemo(()=>{const e=new Map;for(const s of E)e.set(s.prefix,s);return e},[E]),D=!O.backgroundLoadComplete||z,[I,V]=s.useState(null),[G,U]=s.useState("lastHeard"),[B,K]=s.useState("desc"),[J,Z]=s.useState(""),[Q,X]=s.useState(!1),[te,ae]=s.useState(new Set),[ne,ie]=s.useState(!1),[re,ce]=s.useState(null),[de,me]=s.useState(null),[he,pe]=s.useState(null),[je,be]=s.useState(null),[Ne,ve]=s.useState(new Map),[ye,we]=s.useState(new Map),[ke,Ce]=s.useState(25),[Se,Le]=s.useState(25),Pe=s.useRef(null),[Re,He]=s.useState(!1),ze=s.useMemo(()=>(null==t?void 0:t.neighbors)??{},[null==t?void 0:t.neighbors]),Oe=s.useMemo(()=>Object.fromEntries(Object.entries(ze).filter(([e])=>!a.has(e))),[ze,a]),$e=M(),Ae=null==t?void 0:t.local_hash,De=s.useMemo(()=>{const e=new Map;if(!(null==$e?void 0:$e.latitude)||!(null==$e?void 0:$e.longitude))return e;for(const[s,t]of Object.entries(Oe))t.latitude&&t.longitude&&0!==t.latitude&&0!==t.longitude?e.set(s,_e($e.latitude,$e.longitude,t.latitude,t.longitude)):e.set(s,null);return e},[Oe,$e]),{neighborHashSet:Ie,neighborSignalMap:Ve}=s.useMemo(()=>{const e=new Set,s=new Map;for(const t of x)e.add(t.hash),s.set(t.hash,{avgRssi:t.avgRssi,avgSnr:t.avgSnr});return{neighborHashSet:e,neighborSignalMap:s}},[x]),Ge=s.useMemo(()=>{const e=J.toLowerCase().trim(),s="neighbor"===e||"neighbors"===e,t=Q||s,a=te.size>0;return Object.fromEntries(Object.entries(Oe).filter(([n,i])=>{if(a){const e=function(e){var s;const t=(null==(s=e.contact_type)?void 0:s.toLowerCase())??"";return"room server"===t||"room_server"===t||"room"===t||"server"===t?"room":"companion"===t||"client"===t||"cli"===t?"companion":"repeater"===t||"rep"===t||!0===e.is_repeater?"repeater":"companion"}(i);if(!te.has(e))return!1}if(t&&!Ie.has(n))return!1;if(s)return!0;if(!e)return!0;const r=(i.node_name||i.name||"").toLowerCase(),l=h(n).toLowerCase();return r.includes(e)||l.includes(e)||n.toLowerCase().includes(e)}))},[Oe,J,Q,Ie,te]),Ue=s.useMemo(()=>{const e=Object.entries(Ge),s=J.toLowerCase().trim(),t=2===s.length&&/^[0-9a-f]{2}$/i.test(s);return e.sort(([e,a],[n,i])=>{if(t){const t=h(e).toLowerCase(),a=h(n).toLowerCase(),i=t===s,r=a===s;if(i&&!r)return-1;if(r&&!i)return 1}let r=0;switch(G){case"lastHeard":r=(a.last_seen||0)-(i.last_seen||0);break;case"distance":{const s=De.get(e)??null,t=De.get(n)??null;r=null===s&&null===t?0:null===s?1:null===t?-1:s-t;break}case"centrality":r=(c.get(e)||0)-(c.get(n)||0)}return"desc"===B?-r:r})},[Ge,G,B,De,c,J]),Be=Ue.filter(([,e])=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude).length,Ke=s.useMemo(()=>new Set(i),[i]),We=s.useMemo(()=>0===ke?Ue:Ue.slice(0,Se),[Ue,Se,ke]);s.useEffect(()=>{Le(ke||Ue.length)},[G,B,J,Q,te,ke,Ue.length]),s.useEffect(()=>{const e=e=>{e.target.closest("[data-dropdown]")||(ie(!1),He(!1))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),s.useEffect(()=>{if(0===ke)return;const e=new IntersectionObserver(e=>{e[0].isIntersecting&&SeMath.min(e+ke,Ue.length))},{threshold:.1,rootMargin:"100px"});return Pe.current&&e.observe(Pe.current),()=>e.disconnect()},[ke,Se,Ue.length]);const qe=s.useCallback(e=>{Ce(e),Le(e||Ue.length),He(!1)},[Ue.length]),Je=s.useCallback(e=>{G===e?K(e=>"desc"===e?"asc":"desc"):(U(e),K("desc"))},[G]),Ze=s.useCallback(e=>{ae(s=>{const t=new Set(s);return t.has(e)?t.delete(e):t.add(e),t})},[]),Ye=s.useCallback(e=>{const s=Oe[e];(null==s?void 0:s.latitude)&&(null==s?void 0:s.longitude)&&0!==s.latitude&&0!==s.longitude&&ce(e)},[Oe]),Qe=s.useCallback(()=>{ce(null)},[]),Xe=s.useCallback((e,s)=>{V({hash:e,name:s})},[]),es=s.useCallback(async(e,s)=>{if(s.stopPropagation(),!je){be(e),ve(s=>{const t=new Map(s);return t.delete(e),t}),we(s=>{const t=new Map(s);return t.delete(e),t});try{const s=e.startsWith("0x")?e.slice(0,4):`0x${e.slice(0,2)}`,t=await P(s,30);t.success&&t.data?(ve(s=>new Map(s).set(e,t.data)),setTimeout(()=>{ve(s=>{const t=new Map(s);return t.delete(e),t})},1e4)):(we(s=>new Map(s).set(e,t.error||"Ping failed")),setTimeout(()=>{we(s=>{const t=new Map(s);return t.delete(e),t})},5e3))}catch(t){const s=t instanceof Error?t.message:"Ping failed";we(t=>new Map(t).set(e,s)),setTimeout(()=>{we(s=>{const t=new Map(s);return t.delete(e),t})},5e3)}finally{be(null)}}},[je]);return e.jsxs(R,{children:[e.jsx(F,{title:"Contacts",icon:e.jsx(Y,{}),controls:e.jsxs("div",{className:"flex items-baseline gap-3 sm:gap-4",children:[e.jsxs("span",{className:"roster-title tabular-nums",children:[Ue.length," node",1!==Ue.length?"s":""]}),Be>0&&e.jsxs("span",{className:"roster-title flex items-baseline gap-1.5 tabular-nums",children:[e.jsx(se,{className:"w-3.5 h-3.5 relative top-[2px]"}),Be," with location"]})]})}),e.jsxs(H,{children:[u?e.jsx(fe,{neighbors:Oe,localNode:$e??void 0,localHash:Ae,onRemoveNode:n,selectedNodeHash:re,onNodeSelected:Qe,highlightedEdgeKey:de,highlightedGhost:he}):e.jsx("div",{className:"surface-base radius-card aspect-video flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 border-2 border-accent-primary border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Loading map..."})]})}),e.jsx(Me,{maxPaths:10,highlightedEdge:de,onHighlightEdge:me}),p.length>0&&(u?e.jsx("div",{className:"chart-container",children:e.jsx(Fe,{neighbors:Oe,onGhostSelect:pe})}):e.jsxs("div",{className:"surface-base radius-card",children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-24 h-4 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"w-6 h-6 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-20 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-4 rounded bg-bg-elevated animate-pulse"})]})})]})),e.jsx("div",{className:"chart-container",children:u?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(Y,{className:"chart-title-icon"}),"Discovered Contacts"]}),e.jsxs("div",{className:"relative",children:[e.jsx(oe,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-muted"}),e.jsx("input",{type:"text",name:"contact-search",id:"contact-search",autoComplete:"off",value:J,onChange:e=>Z(e.target.value),placeholder:"Search...",className:"w-20 sm:w-28 lg:w-32 pl-7 pr-6 py-1.5 text-sm surface-input radius-inner text-text-primary placeholder:text-text-muted focus:outline-none focus:border-accent-primary/50"}),J&&e.jsx("button",{onClick:()=>{Z(""),"neighbor"!==J.toLowerCase().trim()&&"neighbors"!==J.toLowerCase().trim()||X(!1)},className:"absolute right-1.5 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-secondary p-0.5",children:e.jsx(S,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"relative","data-dropdown":!0,children:[e.jsxs("button",{onClick:()=>ie(!ne),className:"flex items-center gap-1 px-1.5 sm:px-2.5 py-1.5 text-sm radius-inner transition-base "+(te.size>0?"bg-accent-primary/20 text-accent-primary border border-accent-primary/30":"text-text-muted hover:text-text-secondary hover-bg border border-transparent"),title:"Filter by contact type",children:[e.jsx(ue,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Filter"}),te.size>0&&e.jsx("span",{className:"tabular-nums text-xs bg-accent-primary/30 px-1 rounded",children:te.size})]}),ne&&e.jsxs("div",{className:"absolute left-0 top-full mt-1 z-50 surface-elevated radius-inner py-1 min-w-[140px]",children:[[{key:"repeater",label:"Repeaters"},{key:"companion",label:"Companions"},{key:"room",label:"Rooms"}].map(({key:s,label:t})=>e.jsxs("button",{onClick:()=>Ze(s),className:"w-full px-3 py-1.5 text-sm text-left hover-bg transition-base flex items-center gap-2",children:[e.jsx("span",{className:"w-4 h-4 flex items-center justify-center radius-badge border "+(te.has(s)?"bg-accent-primary border-accent-primary text-white":"border-border-subtle"),children:te.has(s)&&e.jsx(q,{className:"w-3 h-3"})}),e.jsx("span",{className:te.has(s)?"text-text-primary":"text-text-secondary",children:t})]},s)),te.size>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-border-subtle my-1"}),e.jsx("button",{onClick:()=>ae(new Set),className:"w-full px-3 py-1.5 text-sm text-left text-text-muted hover:text-text-secondary hover-bg transition-base",children:"Clear filters"})]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[Ie.size>0&&e.jsxs("button",{onClick:()=>X(!Q),className:"flex items-center gap-1 px-1.5 sm:px-2.5 py-1.5 text-sm radius-inner transition-base "+(Q?"bg-accent-success/20 text-accent-success border border-accent-success/30":"text-text-muted hover:text-text-secondary hover-bg border border-transparent"),title:Q?"Show all contacts":"Show only MeshCore neighbors (direct RF contact)",children:[e.jsx(L,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Neighbors"}),e.jsx("span",{className:"sm:hidden tabular-nums",children:Ie.size})]}),e.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[e.jsxs("button",{onClick:()=>Je("lastHeard"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("lastHeard"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by last heard",children:[e.jsx(d,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Recent"}),"lastHeard"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]}),e.jsxs("button",{onClick:()=>Je("distance"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("distance"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by distance",children:[e.jsx(ge,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Distance"}),"distance"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]}),e.jsxs("button",{onClick:()=>Je("centrality"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("centrality"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by network centrality",children:[e.jsx(W,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Centrality"}),"centrality"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]})]}),e.jsxs("div",{className:"relative","data-dropdown":!0,children:[e.jsxs("button",{onClick:()=>He(!Re),className:"flex items-center gap-1 px-2 py-1.5 text-sm text-text-muted hover:text-text-secondary hover-bg radius-inner transition-base",title:"Items per page",children:[e.jsx("span",{className:"tabular-nums",children:0===ke?"All":ke}),e.jsx(o,{className:"w-3 h-3 transition-transform "+(Re?"rotate-180":"")})]}),Re&&e.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 surface-elevated radius-inner py-1 min-w-[80px]",children:[25,50,100,0].map(s=>e.jsx("button",{onClick:()=>qe(s),className:"w-full px-3 py-1.5 text-sm text-left hover-bg transition-base "+(ke===s?"text-accent-primary":"text-text-secondary"),children:0===s?"All":s},s))})]})]})]}),Ue.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"hidden sm:grid contacts-grid-header border-b border-border-subtle/50 px-3 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:[e.jsx("div",{className:"contacts-col-node",children:"Node"}),e.jsx("div",{className:"contacts-col-signal text-right",children:"Signal"}),e.jsx("div",{className:"contacts-col-distance text-right",children:"Distance"}),e.jsx("div",{className:"contacts-col-centrality text-right",children:"Centrality"}),e.jsx("div",{className:"contacts-col-activity text-center",children:"Activity"}),e.jsx("div",{className:"contacts-col-seen text-right",children:"Last Seen"}),e.jsx("div",{className:"contacts-col-actions"})]}),e.jsx("div",{className:"divide-y divide-border-subtle/30",children:We.map(([s,t])=>{const a=h(s),n=Ke.has(s),i=Ie.has(s),r=De.get(s)??null,l=c.get(s)||0,o=i?Ve.get(s):void 0,d=a?A.get(a)??null:null,x=_.get(s)??Te;return e.jsx(Ee,{hash:s,contact:t,isHub:n,isNeighbor:i,distance:r,centrality:l,sparklineData:x,isSparklineLoading:D,neighborSignal:o,collisionInfo:d,isViterbiResolved:$,isPinging:null!==je,isPingingThis:je===s,pingResult:Ne.get(s),pingError:ye.get(s),onRowClick:Ye,onPing:es,onRemove:Xe},s)})}),ke>0&&Se0&&SeLe(e=>Math.min(e+ke,Ue.length)),className:"text-accent-primary hover:text-accent-primary/80 transition-base",children:"Load more"})]})]}):e.jsxs("div",{className:"roster-empty",children:[e.jsx(Y,{className:"roster-empty-icon"}),e.jsx("div",{className:"type-label text-text-secondary",children:"No Contacts Discovered"}),e.jsx("div",{className:"type-data-xs text-text-muted mt-1",children:"Contacts will appear here as they advertise on the mesh network."})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-32 h-4 rounded bg-bg-elevated animate-pulse"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-16 h-6 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-24 h-6 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-6 rounded bg-bg-elevated animate-pulse"})]})]}),e.jsx("div",{className:"px-3 py-3 space-y-3",children:[...Array(5)].map((s,t)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-5 h-5 rounded bg-bg-elevated animate-pulse"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"h-4 w-32 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"h-3 w-24 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"w-12 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-4 rounded bg-bg-elevated animate-pulse"})]},t))})]})})]}),e.jsx(ee,{isOpen:!!I,title:"Remove Contact",message:`Are you sure you would like to remove ${(null==I?void 0:I.name)||"this contact"}?`,confirmLabel:"Remove",cancelLabel:"Cancel",variant:"danger",onConfirm:()=>{I&&n(I.hash),V(null)},onCancel:()=>V(null)})]})}},Symbol.toStringTag,{value:"Module"}));export{ze as C,he as E,He as P,ge as R}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ContactsMapMapLibre-I6lPdL82.js","assets/vendor-react-BKIq8k5U.js","assets/BasemapLayer-BldfARb5.js","assets/vendor-core-D1aqi_5O.js","assets/link-scoring-CpsMpD17.js","assets/index-CrU_Ps9k.js","assets/ConfirmModal-CVFVRQC0.js","assets/triangle-alert-DrmOKr32.js","assets/DeepAnalysisModal-DU5K5xVI.js","assets/config-C7QO3CEB.js","assets/DataBox-sJHphnZd.js","assets/git-branch-CkXjQHb9.js","assets/database-lWroaxsL.js","assets/loader-circle-D6Apotf0.js","assets/LightSparkline-CE1rnNiF.js","assets/house-DNrMSmBS.js","assets/refresh-cw-C1m-5omb.js","assets/compass-88H432HX.js","assets/SignalIndicator-DN65UHiA.js","assets/font-loader-jlbdh9Fw.js","assets/index-n30bZfID.js","assets/users-DHRSX58V.js","assets/map-pin-BUNSWVCM.js","assets/ping-t2L803PH.js","assets/PageLayout-BlXA3E6H.js","assets/activity-DIYCEspu.js","assets/circle-check-DH0TJtTq.js","assets/CollisionExplorerModal-Bgt7baHs.js","assets/network-BfZEswvU.js","assets/target-DsO2pqIH.js","assets/maplibre-gl-B1CfjdFi.css","assets/index-B4-wugIc.css"])))=>i.map(i=>d[i]); +import{j as e,r as s,c as t}from"./vendor-react-BKIq8k5U.js";import{c as a,aq as n,ar as i,as as r,ak as l,at as c,J as o,ad as d,au as x,av as m,r as h,B as p,E as u,aw as g,n as j,ax as b,ay as N,az as v,k as f,aA as y,aB as w,aC as k,N as C,aD as M,Y as S,R as L}from"./index-CrU_Ps9k.js";import{p as P}from"./ping-t2L803PH.js";import{P as R,b as F,B as H}from"./PageLayout-BlXA3E6H.js";import{_ as E}from"./deckgl-DTsmDcfs.js";import{G as T}from"./git-branch-CkXjQHb9.js";import{T as _}from"./triangle-alert-DrmOKr32.js";import{a as z,T as O,M as $,b as A,L as D}from"./LightSparkline-CE1rnNiF.js";import{c as I,Z as V,a as G,C as U,d as B,e as K}from"./SignalIndicator-DN65UHiA.js";import{A as W}from"./activity-DIYCEspu.js";import{C as q,D as J}from"./DataBox-sJHphnZd.js";import{F as Z,U as Y}from"./users-DHRSX58V.js";import{P as Q,T as X,C as ee}from"./ConfirmModal-CVFVRQC0.js";import{M as se}from"./map-pin-BUNSWVCM.js";import{C as te}from"./circle-check-DH0TJtTq.js";import{C as ae,S as ne,M as ie}from"./CollisionExplorerModal-Bgt7baHs.js";import{N as re}from"./network-BfZEswvU.js";import{L as le}from"./loader-circle-D6Apotf0.js";import{T as ce,S as oe}from"./target-DsO2pqIH.js";const de=a("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]),xe=a("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),me=a("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),he=a("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),pe=a("file-digit",[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 16h2v6",key:"1bxocy"}],["path",{d:"M10 22h4",key:"ceow96"}],["rect",{x:"2",y:"16",width:"4",height:"6",rx:"2",key:"r45zd0"}]]),ue=a("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),ge=a("ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]),je=a("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),be=a("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);class Ne extends s.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){var s;return this.state.hasError?e.jsx("div",{className:t("map-container-16-9 flex items-center justify-center rounded-2xl",n),role:"alert","aria-live":"assertive",children:e.jsxs("div",{className:"text-center text-white/50 p-4",children:[e.jsx("p",{className:"text-lg mb-2",children:"Map failed to load"}),e.jsx("p",{className:"text-sm text-white/30",children:(null==(s=this.state.error)?void 0:s.message)||"Unknown error"}),e.jsx("p",{className:"text-xs text-white/20 mt-2",children:"Try refreshing the page or check your browser's WebGL support."})]})}):this.props.children}}const ve=s.lazy(()=>E(()=>import("./ContactsMapMapLibre-I6lPdL82.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])));function fe({neighbors:a,localNode:i,localHash:r,onRemoveNode:l,selectedNodeHash:c,onNodeSelected:o,highlightedEdgeKey:d,highlightedGhost:x}){return e.jsx(Ne,{children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:t("map-container-16-9 flex items-center justify-center rounded-2xl",n),role:"status","aria-live":"polite","aria-label":"Loading map",children:e.jsxs("div",{className:"text-white/50 flex items-center gap-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-accent-primary border-t-transparent rounded-full animate-spin","aria-hidden":"true"}),e.jsx("span",{children:"Loading map..."})]})}),children:e.jsx(ve,{neighbors:a,localNode:i,localHash:r,onRemoveNode:l,selectedNodeHash:c,onNodeSelected:o,highlightedEdgeKey:d,highlightedGhost:x})})})}function ye(e){return e>=.7?"text-accent-success":e>=.5?"text-accent-secondary":e>=.3?"text-signal-poor":"text-accent-danger"}function we(e){return`${Math.round(100*e)}%`}function ke(e,s){return s.has(e.toUpperCase())}const Ce=s.memo(function({path:s,isHighlighted:t,onHighlight:a,ghostPrefixes:n}){const i=function(s){return s>.2?{icon:e.jsx(O,{className:"w-3 h-3"}),color:"text-accent-success"}:s<-.2?{icon:e.jsx(z,{className:"w-3 h-3"}),color:"text-accent-danger"}:{icon:e.jsx($,{className:"w-3 h-3"}),color:"text-text-muted"}}(s.observationTrend),r=s.weakestLinkKey&&s.weakestLinkConfidence<.5,l=s.hops.some(e=>ke(e,n));return e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-md transition-colors cursor-pointer "+(t?"bg-accent-primary/20 border border-accent-primary/40":"hover:bg-white/5"),onClick:()=>a(t?null:s.weakestLinkKey),children:[e.jsx("div",{className:"flex-shrink-0 w-12 text-center py-1 rounded-md "+(o=s.healthScore,o>=.7?"bg-accent-success/10":o>=.5?"bg-accent-secondary/10":o>=.3?"bg-signal-poor/10":"bg-accent-danger/10"),children:e.jsx("span",{className:`text-xs font-semibold tabular-nums ${ye(s.healthScore)}`,children:we(s.healthScore)})}),e.jsx("div",{className:"flex-1 flex items-center gap-0.5 overflow-x-auto min-w-0",children:s.hops.map((t,a)=>{var i;const l=ke(t,n),o=r&&(null==(i=s.weakestLinkKey)?void 0:i.includes(t));return e.jsxs("span",{className:"flex items-center",children:[e.jsxs("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded flex items-center gap-0.5 "+(l?"bg-accent-tertiary/20 text-accent-tertiary border border-accent-tertiary/30":o?"bg-accent-danger/20 text-accent-danger":"bg-white/10 text-text-secondary"),children:[l&&e.jsx(c,{className:"w-2.5 h-2.5"}),t]}),anew Set(m.map(e=>e.prefix.toUpperCase())),[m]),g=s.useMemo(()=>d.slice(0,t),[d,t]),j=s.useMemo(()=>0===d.length?null:{avgHealth:d.reduce((e,s)=>e+s.healthScore,0)/d.length,declining:d.filter(e=>e.observationTrend<-.2).length,weakLinks:d.filter(e=>e.weakestLinkConfidence<.5).length,pathsWithGhosts:d.filter(e=>e.hops.some(e=>u.has(e.toUpperCase()))).length},[d,u]),b=e=>{null==a||a(e)};return 0===d.length?null:e.jsxs("div",{className:"chart-container",children:[e.jsxs("button",{onClick:()=>p(!h),className:"w-full chart-header hover:bg-white/5 transition-colors rounded-t-lg cursor-pointer",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(T,{className:"chart-title-icon"}),"Path Health",e.jsxs("span",{className:"ml-2 text-[10px] font-normal text-text-muted",children:["(",d.length," paths)"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[j&&e.jsxs("div",{className:"flex items-center gap-3 text-[10px]",children:[e.jsxs("span",{className:`tabular-nums ${ye(j.avgHealth)}`,children:["Avg: ",we(j.avgHealth)]}),j.weakLinks>0&&e.jsxs("span",{className:"text-accent-danger flex items-center gap-1",children:[e.jsx(_,{className:"w-3 h-3"}),j.weakLinks," weak"]}),j.declining>0&&e.jsxs("span",{className:"text-signal-poor flex items-center gap-1",children:[e.jsx(z,{className:"w-3 h-3"}),j.declining," declining"]}),j.pathsWithGhosts>0&&e.jsxs("span",{className:"text-accent-tertiary flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3"}),j.pathsWithGhosts," ghost"]})]}),h?e.jsx(I,{className:"w-4 h-4 text-text-muted"}):e.jsx(o,{className:"w-4 h-4 text-text-muted"})]})]}),h&&e.jsxs("div",{className:"p-3 pt-0 space-y-1",children:[x.totalPaths>0&&e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-text-muted pb-2 border-b border-white/5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(he,{className:"w-3 h-3 text-accent-primary"}),e.jsx("span",{className:"text-text-secondary",children:x.totalPaths.toLocaleString()})," Viterbi decoded"]}),x.observationOverrideCount>0&&e.jsxs("span",{className:"text-accent-success",children:[Math.round(x.observationOverrideCount/x.totalPaths*100),"% observation override"]}),m.length>0&&e.jsxs("span",{className:"text-accent-tertiary flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3"}),m.length," ghost",1!==m.length?"s":""]})]}),e.jsxs("div",{className:"flex items-center gap-4 text-[10px] text-text-muted pb-2 border-b border-white/5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-success"})," Healthy (≥70%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-secondary"})," Fair (50-70%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-signal-poor"})," Weak (30-50%)"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-accent-danger"})," Critical (<30%)"]}),m.length>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(c,{className:"w-3 h-3 text-accent-tertiary"})," Ghost"]})]}),e.jsx("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:g.map(s=>e.jsx(Ce,{path:s,isHighlighted:n===s.weakestLinkKey,onHighlight:b,ghostPrefixes:u},s.pathKey))}),d.length>t&&e.jsxs("div",{className:"text-center text-[10px] text-text-muted pt-2",children:["Showing top ",t," of ",d.length," paths"]})]})]})});function Se(e){switch(e){case"rf_intersection":return"RF Circle Intersection";case"weighted_centroid":return"Weighted Centroid";case"single_anchor":return"Single Anchor (less reliable)";default:return e}}const Le={confirmed:{label:"Confirmed",icon:e.jsx(be,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-success/40",bgClass:"bg-accent-success/10",textClass:"text-accent-success",badgeClass:"bg-accent-success/20 text-accent-success"},likely:{label:"Likely",icon:e.jsx(q,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-tertiary/30",bgClass:"bg-accent-tertiary/5",textClass:"text-accent-tertiary",badgeClass:"bg-accent-tertiary/20 text-accent-tertiary"},possible:{label:"Possible",icon:e.jsx(G,{className:"w-3.5 h-3.5"}),borderClass:"border-accent-secondary/20",bgClass:"bg-accent-secondary/5",textClass:"text-accent-secondary",badgeClass:"bg-accent-secondary/20 text-accent-secondary"},noise:{label:"Noise",icon:e.jsx(_,{className:"w-3.5 h-3.5"}),borderClass:"border-border-muted",bgClass:"bg-bg-card/30",textClass:"text-text-muted",badgeClass:"bg-bg-elevated text-text-muted"}};function Pe({ghost:a,neighbors:n,isExpanded:i,onToggle:r,compact:l}){var m,h;const p=(null==(m=a.classification)?void 0:m.tier)??"noise",u=Le[p],g="clusterId"in(j=a)&&"temporal"in j;var j;const b=s.useMemo(()=>Array.from(a.commonNeighbors).map(e=>{var s;return{hash:e,name:null==(s=n[e])?void 0:s.name}}),[a.commonNeighbors,n]),N=a.estimatedLocation?a.estimatedLocation.uncertaintyM>=1e3?`±${(a.estimatedLocation.uncertaintyM/1e3).toFixed(1)}km`:`±${Math.round(a.estimatedLocation.uncertaintyM)}m`:null,v=g&&a.temporal?(f=a.temporal.consistency)>=.7?{label:"Steady",color:"text-accent-success"}:f>=.4?{label:"Regular",color:"text-accent-tertiary"}:f>=.2?{label:"Sporadic",color:"text-accent-secondary"}:{label:"Bursty",color:"text-signal-poor"}:null;var f;const y=g&&a.collisionCandidates&&a.collisionCandidates.length>0,w=y?a.collisionCandidates[0]:null;return l?e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2 py-1 rounded bg-bg-elevated/50 text-sm",children:[e.jsx("span",{className:"font-mono font-medium text-text-secondary",children:a.prefix.toUpperCase()}),e.jsx("span",{className:"text-text-muted",children:a.observationCount})]}):e.jsxs("div",{className:t("rounded-lg border transition-all duration-150",u.borderClass,u.bgClass),children:[e.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-3 py-2 text-left hover:bg-white/5 rounded-lg",children:[e.jsx(c,{className:t("w-5 h-5 flex-shrink-0",u.textClass)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-mono text-sm font-semibold text-text-primary",children:a.prefix.toUpperCase()}),e.jsx("span",{className:t("px-1.5 py-0.5 rounded text-sm font-medium",u.badgeClass),children:u.label})]}),e.jsx("div",{className:t("text-sm mt-0.5",u.textClass),children:(null==(h=a.classification)?void 0:h.reason)??"Unknown"}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-text-muted mt-1",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(he,{className:"w-3 h-3"}),a.observationCount]}),e.jsxs("span",{children:[(100*a.confidence).toFixed(0),"%"]}),a.commonNeighbors.size>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Y,{className:"w-3 h-3"}),a.commonNeighbors.size]}),a.estimatedLocation&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(se,{className:"w-3 h-3"}),N]}),v&&e.jsxs("span",{className:t("flex items-center gap-1",v.color),children:[e.jsx(W,{className:"w-3 h-3"}),v.label]}),y&&e.jsxs("span",{className:"flex items-center gap-1 text-signal-poor",children:[e.jsx(je,{className:"w-3 h-3"}),"Collision?"]})]})]}),i?e.jsx(I,{className:"w-4 h-4 text-text-muted"}):e.jsx(o,{className:"w-4 h-4 text-text-muted"})]}),i&&e.jsxs("div",{className:"px-3 pb-3 space-y-3 border-t border-border-muted/50 mt-1 pt-3",children:[y&&w&&e.jsx("div",{className:"p-2 rounded bg-signal-poor/10 border border-signal-poor/30",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(je,{className:"w-4 h-4 text-signal-poor flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-signal-poor font-medium",children:"Possible collision with known node"}),e.jsx("div",{className:"text-text-secondary mt-0.5",children:w.knownNodeName?e.jsxs("span",{children:["May match ",e.jsx("span",{className:"font-medium",children:w.knownNodeName})," ","(",(100*w.collisionProbability).toFixed(0),"% probability)"]}):e.jsxs("span",{children:["May match ",e.jsx(J,{copy:!0,size:"compact",className:"inline",children:w.knownNodeHash})," ","(",(100*w.collisionProbability).toFixed(0),"% probability)"]})}),w.evidence&&e.jsxs("div",{className:"text-text-muted mt-1 text-[10px]",children:[w.evidence.sharedEdgeCount>0&&e.jsxs("span",{className:"mr-2",children:[w.evidence.sharedEdgeCount," shared edges"]}),void 0!==w.evidence.distanceKm&&e.jsxs("span",{className:"mr-2",children:[w.evidence.distanceKm.toFixed(1),"km apart"]}),w.evidence.withinUncertainty&&e.jsx("span",{className:"text-accent-secondary",children:"Within uncertainty radius"})]})]})]})}),a.estimatedLocation?e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(se,{className:"w-4 h-4 text-accent-primary mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary font-medium",children:[a.estimatedLocation.lat.toFixed(5),", ",a.estimatedLocation.lon.toFixed(5)]}),e.jsxs("div",{className:"text-text-muted",children:["Uncertainty: ",N]}),g&&a.location&&e.jsxs("div",{className:"mt-1 text-text-muted",children:[e.jsxs("div",{children:["Method: ",Se(a.location.method)]}),a.location.anchors&&a.location.anchors.length>0&&e.jsxs("div",{children:[a.location.anchors.length," anchor",1!==a.location.anchors.length?"s":""," used"," · ",(100*a.location.locationConfidence).toFixed(0),"% confidence"]})]})]})]}):e.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[e.jsx(_,{className:"w-4 h-4 text-signal-poor"}),"Location unknown (neighbors lack coordinates)"]}),g&&a.temporal&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary font-medium",children:["Temporal Pattern: ",e.jsx("span",{className:null==v?void 0:v.color,children:null==v?void 0:v.label})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1 text-text-muted",children:[e.jsxs("span",{children:["Distinct hours: ",a.temporal.distinctHours]}),e.jsxs("span",{children:["Distinct days: ",a.temporal.distinctDays]}),e.jsxs("span",{children:["Burstiness: ",(100*a.temporal.burstiness).toFixed(0),"%"]}),e.jsxs("span",{children:["Consistency: ",(100*a.temporal.consistency).toFixed(0),"%"]}),e.jsxs("span",{children:["Last 24h: ",a.temporal.last24HourCount," obs"]}),e.jsxs("span",{children:["Active hours: ",a.temporal.activeHoursLast24,"/24"]})]})]})]}),!g&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(d,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary",children:["First seen: ",x(a.firstSeen)," ago"]}),e.jsxs("div",{className:"text-text-muted",children:["Last seen: ",x(a.lastSeen)," ago"]})]})]}),g&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(me,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-primary",children:["Active period: ",x(a.firstSeen)," – ",x(a.lastSeen)," ago"]}),a.temporal&&e.jsxs("div",{className:"text-text-muted",children:["Obs/hour avg: ",a.temporal.observationsPerHour.toFixed(1)]})]})]}),b.length>0&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Y,{className:"w-4 h-4 text-text-muted mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"text-text-muted mb-1",children:["Adjacent to ",b.length," known node",1!==b.length?"s":"",":"]}),e.jsxs("div",{className:"flex flex-wrap gap-1",children:[b.slice(0,5).map(({hash:s})=>e.jsx(J,{copy:!0,size:"compact",children:s},s)),b.length>5&&e.jsxs("span",{className:"text-text-muted",children:["+",b.length-5," more"]})]})]})]}),g&&a.validationStages&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30",children:[e.jsx("div",{className:"text-[10px] text-text-muted mb-1.5 uppercase tracking-wide",children:"Validation Stages"}),e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[e.jsx(Re,{label:"Candidates",passed:a.validationStages.candidateExhaustion}),e.jsx(Re,{label:"Temporal",passed:a.validationStages.temporalConsistency}),e.jsx(Re,{label:"Topology",passed:a.validationStages.topologicalFit}),e.jsx(Re,{label:"Location",passed:a.validationStages.locationPlausible})]})]}),a.classification&&!g&&e.jsx("div",{className:"pt-2 border-t border-border-muted/30",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[a.classification.criteria.hasVeryHighObservations&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-success/20 text-accent-success",children:"200+ obs"}),a.classification.criteria.hasHighObservations&&!a.classification.criteria.hasVeryHighObservations&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-tertiary/20 text-accent-tertiary",children:"50+ obs"}),a.classification.criteria.hasHighConfidence&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-success/20 text-accent-success",children:"70%+ conf"}),a.classification.criteria.hasCommonNeighbors&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-primary/20 text-accent-primary",children:"2+ neighbors"}),a.classification.criteria.hasGoodLocation&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-accent-primary/20 text-accent-primary",children:"good loc"}),a.classification.criteria.isRecent&&e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-text-muted/20 text-text-muted",children:"recent"})]})}),g&&a.upgradeRequirements&&a.upgradeRequirements.length>0&&"confirmed"!==p&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30",children:[e.jsx("div",{className:"text-[10px] text-text-muted mb-1 uppercase tracking-wide",children:"To upgrade tier:"}),e.jsx("ul",{className:"text-xs text-text-secondary space-y-0.5",children:a.upgradeRequirements.slice(0,3).map((s,t)=>e.jsxs("li",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-accent-tertiary",children:"•"})," ",s]},t))})]})]})]})}function Re({label:s,passed:a}){return e.jsxs("span",{className:t("inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium",a?"bg-accent-success/20 text-accent-success":"bg-bg-elevated text-text-muted"),children:[a?e.jsx(te,{className:"w-2.5 h-2.5"}):e.jsx(U,{className:"w-2.5 h-2.5"}),s]})}function Fe({neighbors:a,className:n,onGhostSelect:i}){const d=l(),x=r(),[m,h]=s.useState(new Set),[p,u]=s.useState("actionable"),[g,j]=s.useState(!1),[b,N]=s.useState(!0),[v,f]=s.useState(Date.now);s.useEffect(()=>{f(Date.now())},[d]);const y=s.useMemo(()=>d.filter(e=>!function(e,s){return s-1e3*e.lastSeen>6048e5}(e,v)),[d,v]),w=s.useMemo(()=>{const e=Array.from(m);return e.length>0?e[0]:null},[m]),k=s.useMemo(()=>w?y.find(e=>e.prefix===w)??null:null,[w,y]);s.useEffect(()=>{i&&i(k&&!b?{prefix:k.prefix,commonNeighbors:Array.from(k.commonNeighbors),estimatedLocation:k.estimatedLocation}:null)},[k,b,i]),s.useEffect(()=>{b&&h(new Set)},[b]);const{confirmed:C,likely:M,possible:S,noise:L,actionableCount:P}=s.useMemo(()=>{var e;const s=[],t=[],a=[],n=[];for(const r of y)switch((null==(e=r.classification)?void 0:e.tier)??"noise"){case"confirmed":s.push(r);break;case"likely":t.push(r);break;case"possible":a.push(r);break;case"noise":n.push(r)}const i=(e,s)=>s.observationCount-e.observationCount;return s.sort(i),t.sort(i),a.sort(i),n.sort(i),{confirmed:s,likely:t,possible:a,noise:n,actionableCount:s.length+t.length}},[y]);if(0===y.length)return null;const R=e=>{h(s=>s.has(e)?new Set:new Set([e]))},F="all"===p,H=C.length+M.length+(F?S.length:0)+(g?L.length:0);return e.jsxs("div",{className:n,children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(c,{className:"chart-title-icon"}),"Ghost Buster",P>0&&e.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-accent-success/20 text-accent-success",children:[P," actionable"]}),b&&y.length>0&&e.jsxs("span",{className:"text-xs text-text-muted ml-2",children:["(",y.length," total)"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[!b&&e.jsxs("button",{onClick:()=>u(e=>"actionable"===e?"all":"actionable"),className:t("flex items-center gap-1.5 px-2 py-1 rounded text-xs transition-colors","all"===p?"bg-accent-primary/20 text-accent-primary":"bg-bg-elevated text-text-muted hover:text-text-secondary"),children:[e.jsx(Z,{className:"w-3 h-3"}),"actionable"===p?"Actionable":"All"]}),e.jsx("button",{onClick:()=>N(e=>!e),className:"flex items-center gap-1 px-2 py-1 rounded text-xs bg-bg-elevated text-text-muted hover:text-text-secondary transition-colors",title:b?"Expand panel":"Minimize panel",children:b?e.jsx(Q,{className:"w-3 h-3"}):e.jsx($,{className:"w-3 h-3"})})]})]}),b?e.jsxs("div",{className:"px-5 py-3 flex items-center gap-3 text-xs cursor-pointer hover:bg-white/5 transition-colors",onClick:()=>N(!1),children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[C.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-accent-success",children:[e.jsx(be,{className:"w-3 h-3"}),C.length," confirmed"]}),M.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-accent-tertiary",children:[e.jsx(q,{className:"w-3 h-3"}),M.length," likely"]}),S.length>0&&e.jsxs("span",{className:"text-accent-secondary",children:[S.length," possible"]}),L.length>0&&e.jsxs("span",{className:"text-text-muted",children:[L.length," noise"]})]}),e.jsx("span",{className:"text-text-muted ml-auto",children:"Click to expand"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-5 py-2 flex items-center gap-3 text-xs border-b border-border-muted/30",children:[e.jsxs("span",{className:"text-text-muted",children:[x.pathsWithGhosts.toLocaleString()," / ",x.totalPaths.toLocaleString()," paths"]}),e.jsx("span",{className:"text-text-muted",children:"•"}),e.jsxs("div",{className:"flex items-center gap-2",children:[C.length>0&&e.jsxs("span",{className:"text-accent-success",children:[C.length," confirmed"]}),M.length>0&&e.jsxs("span",{className:"text-accent-tertiary",children:[M.length," likely"]}),S.length>0&&e.jsxs("span",{className:"text-accent-secondary",children:[S.length," possible"]}),L.length>0&&e.jsxs("span",{className:"text-text-muted",children:[L.length," noise"]})]})]}),e.jsxs("div",{className:"px-5 py-4 space-y-4",children:[C.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-success",children:[e.jsx(be,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Confirmed Repeaters (",C.length,")"]})]}),e.jsx("div",{className:"space-y-2",children:C.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix))})]}),M.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-tertiary",children:[e.jsx(q,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Likely Repeaters (",M.length,")"]})]}),e.jsx("div",{className:"space-y-2",children:M.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix))})]}),F&&S.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent-secondary",children:[e.jsx(G,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"font-medium",children:["Possible (",S.length,")"]})]}),e.jsxs("div",{className:"space-y-2",children:[S.slice(0,10).map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:m.has(s.prefix),onToggle:()=>R(s.prefix)},s.prefix)),S.length>10&&e.jsxs("div",{className:"text-xs text-text-muted text-center py-1",children:["+",S.length-10," more possible nodes"]})]})]}),L.length>0&&"all"===p&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{onClick:()=>j(!g),className:"flex items-center gap-2 text-xs text-text-muted hover:text-text-secondary transition-colors",children:[g?e.jsx(I,{className:"w-3.5 h-3.5"}):e.jsx(o,{className:"w-3.5 h-3.5"}),e.jsx(_,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Noise (",L.length,")"]})]}),g&&e.jsx("div",{className:"flex flex-wrap gap-1",children:L.map(s=>e.jsx(Pe,{ghost:s,neighbors:a,isExpanded:!1,onToggle:()=>{},compact:!0},s.prefix))})]}),"actionable"===p&&0===P&&e.jsxs("div",{className:"text-center py-6 text-sm text-text-muted",children:[e.jsx(c,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No confirmed or likely repeaters yet."}),e.jsxs("p",{className:"text-xs mt-1",children:[S.length+L.length," prefixes need more evidence."]}),e.jsxs("button",{onClick:()=>u("all"),className:"mt-3 text-accent-primary hover:underline",children:["View all ",y.length," discovered nodes"]})]}),x.observationOverrideCount>0&&H>0&&e.jsxs("div",{className:"pt-2 border-t border-border-muted/30 text-xs text-text-muted",children:[e.jsx("span",{className:"text-accent-primary",children:x.observationOverrideCount})," observation overrides • Avg confidence: ",e.jsxs("span",{className:"text-accent-secondary",children:[(100*x.avgPathConfidence).toFixed(0),"%"]})]})]})]})]})}const He=s.memo(function({hash:t,className:a="",size:n="sm",collisionInfo:i,isViterbiResolved:l}){const c=m(),o=r(),[d,x]=s.useState(!1),p=s.useMemo(()=>h(t),[t]),u=s.useMemo(()=>void 0!==i?i:p?c.find(e=>e.prefix===p)??null:null,[p,c,i]),g=l??(o.totalPaths>0&&o.avgPathConfidence>=.7),j=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),x(!0)},[]),b=s.useCallback(()=>{x(!1)},[]);if(!u)return null;const N="sm"===n?"w-3.5 h-3.5":"w-4 h-4",v=g?"text-accent-tertiary hover:text-accent-tertiary hover:bg-accent-tertiary/10 focus:ring-accent-tertiary/50":"text-signal-fair hover:text-accent-secondary hover:bg-signal-fair/10 focus:ring-signal-fair/50",f=g?`Prefix conflict resolved by Viterbi HMM (${(100*o.avgPathConfidence).toFixed(0)}% confidence)`:`Prefix conflict: ${u.candidateCount} nodes share prefix "${p}"`;return e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:j,className:`inline-flex items-center justify-center p-0.5 rounded focus:outline-none focus:ring-2 transition-colors cursor-pointer touch-manipulation ${v} ${a}`,title:f,"aria-label":`View prefix conflict for ${p}${g?" (Viterbi resolved)":""}`,children:g?e.jsxs("span",{className:"relative",children:[e.jsx(he,{className:N}),e.jsx(q,{className:"absolute -bottom-0.5 -right-0.5 w-2 h-2 text-accent-success"})]}):e.jsx(pe,{className:N})}),e.jsx(ae,{isOpen:d,prefix:u.prefix,candidateHashes:u.candidateHashes,onClose:b})]})}),Ee=s.memo(function({hash:s,contact:t,isHub:a,isNeighbor:n,distance:i,centrality:r,sparklineData:l,isSparklineLoading:c,neighborSignal:o,collisionInfo:d,isViterbiResolved:x,isPinging:m,isPingingThis:h,pingResult:g,pingError:j,onRowClick:b,onPing:N,onRemove:v}){var f;const y=t.latitude&&t.longitude&&0!==t.latitude&&0!==t.longitude,w=t.node_name||t.name||"Unknown",k=n&&o,C=null==(f=t.contact_type)?void 0:f.toLowerCase(),M="room server"===C||"room_server"===C||"room"===C||"server"===C,S="companion"===C,L="client"===C||"cli"===C,P=t.is_repeater||"repeater"===C||"rep"===C,R=n?"direct":"flood",F=n?"Direct RF contact (zero-hop neighbor)":"Flood routing (multi-hop via mesh)";return e.jsxs("div",{className:`contacts-grid-row ${a?"bg-amber-500/5 border-l-2 border-l-amber-400":""} ${y?"cursor-pointer hover:bg-white/[0.02]":""}`,onClick:()=>b(s),children:[e.jsxs("div",{className:"contacts-col-node flex items-center gap-2 min-w-0",children:[k&&null!==(null==o?void 0:o.avgSnr)?e.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0 self-center "+(E=o.avgSnr,void 0===E?"bg-[var(--signal-unknown)]":E>=5?"bg-[var(--signal-excellent)]":E>=0?"bg-[var(--signal-good)]":E>=-5?"bg-[var(--signal-fair)]":E>=-10?"bg-[var(--signal-poor)]":"bg-[var(--signal-critical)]")}):e.jsx("div",{className:"w-2 flex-shrink-0"}),e.jsx("div",{className:"roster-icon flex-shrink-0",title:F,children:M&&P?e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(A,{className:"w-5 h-5 absolute inset-0 text-sys-pink"}),e.jsx(ne,{className:"w-2.5 h-2.5 absolute -bottom-0.5 -right-0.5 text-sys-teal"})]}):M?e.jsx(A,{className:"w-5 h-5 text-sys-pink"}):S?e.jsx(ie,{className:"w-5 h-5 text-text-muted"}):P?"direct"===R?e.jsx(de,{className:"w-5 h-5 text-sys-green"}):e.jsx(ne,{className:"w-5 h-5 text-sys-cyan"}):e.jsx(ie,{className:"w-5 h-5 text-text-muted"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5 overflow-hidden",children:[e.jsx("span",{className:"roster-title truncate",title:w,children:w}),n&&e.jsx(p,{color:B.neighbor,compact:!0,className:"flex-shrink-0",children:"NBR"}),a&&e.jsxs(p,{color:B.hub,compact:!0,className:"flex items-center gap-1 flex-shrink-0",children:[e.jsx(re,{className:"w-3 h-3"}),"HUB"]}),P&&e.jsx(p,{color:B.repeater,compact:!0,className:"flex-shrink-0",children:"RPT"}),M&&e.jsx(p,{color:B.room,compact:!0,className:"flex-shrink-0",children:"ROOM"}),S&&e.jsx(p,{color:B.companion,compact:!0,className:"flex-shrink-0",children:"COMP"}),L&&e.jsx(p,{color:B.client,compact:!0,className:"flex-shrink-0",children:"CLIENT"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[e.jsx(J,{copy:!0,size:"compact",truncate:[8,6],children:s}),e.jsx(He,{hash:s,collisionInfo:d,isViterbiResolved:x})]})]})]}),e.jsxs("div",{className:"contacts-col-signal flex items-center justify-end gap-2",children:[k&&null!==(null==o?void 0:o.avgRssi)&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(K,{rssi:o.avgRssi,className:"w-3.5 h-3.5"}),e.jsx("span",{className:"type-data-xs tabular-nums text-text-muted",children:Math.round(o.avgRssi)})]}),k&&null!==(null==o?void 0:o.avgSnr)&&e.jsxs("span",{className:"type-data-xs tabular-nums text-text-muted",children:[o.avgSnr.toFixed(1)," dB"]})]}),e.jsx("div",{className:"contacts-col-distance flex items-center justify-end gap-1 text-text-muted",children:null!=i&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{className:"w-3 h-3"}),e.jsx("span",{className:"type-data-xs tabular-nums",children:(H=i,H<1e3?`${Math.round(H)}m`:`${(H/1e3).toFixed(1)}km`)})]})}),e.jsx("div",{className:"contacts-col-centrality flex items-center justify-end gap-1",children:r>0&&e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"w-3 h-3 text-accent-secondary"}),e.jsxs("span",{className:"type-data-xs tabular-nums text-text-muted",children:[(100*r).toFixed(0),"%"]})]})}),e.jsx("div",{className:"contacts-col-activity flex items-center justify-center",children:e.jsx(D,{data:l,width:48,height:16,isLoading:c})}),e.jsx("div",{className:"contacts-col-seen flex items-center justify-end",children:e.jsx("span",{className:"type-data-xs tabular-nums text-text-primary whitespace-nowrap",children:t.last_seen?u(t.last_seen):"—"})}),e.jsxs("div",{className:"contacts-col-actions flex items-center justify-end gap-1",children:[n&&e.jsx(e.Fragment,{children:g?e.jsxs("div",{className:"flex items-center gap-1 text-accent-success",title:`RTT: ${g.rtt_ms.toFixed(0)}ms`,children:[e.jsx(q,{className:"w-3.5 h-3.5"}),e.jsxs("span",{className:"type-data-xs tabular-nums hidden sm:inline",children:[g.snr_db.toFixed(1),"dB"]})]}):j?e.jsx("span",{className:"text-red-400 text-[10px]",title:j,children:"✗"}):e.jsx("button",{onClick:e=>N(s,e),disabled:m,className:"p-1 sm:p-1.5 radius-inner text-text-muted/50 hover:text-accent-primary hover:bg-accent-primary/10 transition-base disabled:opacity-50 disabled:cursor-not-allowed",title:"Ping neighbor for updated signal info",children:h?e.jsx(le,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 animate-spin"}):e.jsx(ce,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})})}),e.jsx("button",{onClick:e=>{e.stopPropagation(),v(s,w)},className:"p-1 sm:p-1.5 radius-inner text-text-muted/50 hover:text-red-400 hover:bg-red-500/10 transition-base",title:"Remove contact",children:e.jsx(X,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})})]})]});var H,E}),Te=[];function _e(e,s,t,a){const n=(t-e)*Math.PI/180,i=(a-s)*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e*Math.PI/180)*Math.cos(t*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371e3}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:function(){const{stats:t}=g(),a=j(),n=b(),i=N(),c=v(),x=f(),p=l(),u=y(),E=m(),T=r(),_=w(),z=k(),O=C(),$=T.totalPaths>0&&T.avgPathConfidence>=.7,A=s.useMemo(()=>{const e=new Map;for(const s of E)e.set(s.prefix,s);return e},[E]),D=!O.backgroundLoadComplete||z,[I,V]=s.useState(null),[G,U]=s.useState("lastHeard"),[B,K]=s.useState("desc"),[J,Z]=s.useState(""),[Q,X]=s.useState(!1),[te,ae]=s.useState(new Set),[ne,ie]=s.useState(!1),[re,ce]=s.useState(null),[de,me]=s.useState(null),[he,pe]=s.useState(null),[je,be]=s.useState(null),[Ne,ve]=s.useState(new Map),[ye,we]=s.useState(new Map),[ke,Ce]=s.useState(25),[Se,Le]=s.useState(25),Pe=s.useRef(null),[Re,He]=s.useState(!1),ze=s.useMemo(()=>(null==t?void 0:t.neighbors)??{},[null==t?void 0:t.neighbors]),Oe=s.useMemo(()=>Object.fromEntries(Object.entries(ze).filter(([e])=>!a.has(e))),[ze,a]),$e=M(),Ae=null==t?void 0:t.local_hash,De=s.useMemo(()=>{const e=new Map;if(!(null==$e?void 0:$e.latitude)||!(null==$e?void 0:$e.longitude))return e;for(const[s,t]of Object.entries(Oe))t.latitude&&t.longitude&&0!==t.latitude&&0!==t.longitude?e.set(s,_e($e.latitude,$e.longitude,t.latitude,t.longitude)):e.set(s,null);return e},[Oe,$e]),{neighborHashSet:Ie,neighborSignalMap:Ve}=s.useMemo(()=>{const e=new Set,s=new Map;for(const t of x)e.add(t.hash),s.set(t.hash,{avgRssi:t.avgRssi,avgSnr:t.avgSnr});return{neighborHashSet:e,neighborSignalMap:s}},[x]),Ge=s.useMemo(()=>{const e=J.toLowerCase().trim(),s="neighbor"===e||"neighbors"===e,t=Q||s,a=te.size>0;return Object.fromEntries(Object.entries(Oe).filter(([n,i])=>{if(a){const e=function(e){var s;const t=(null==(s=e.contact_type)?void 0:s.toLowerCase())??"";return"room server"===t||"room_server"===t||"room"===t||"server"===t?"room":"companion"===t||"client"===t||"cli"===t?"companion":"repeater"===t||"rep"===t||!0===e.is_repeater?"repeater":"companion"}(i);if(!te.has(e))return!1}if(t&&!Ie.has(n))return!1;if(s)return!0;if(!e)return!0;const r=(i.node_name||i.name||"").toLowerCase(),l=h(n).toLowerCase();return r.includes(e)||l.includes(e)||n.toLowerCase().includes(e)}))},[Oe,J,Q,Ie,te]),Ue=s.useMemo(()=>{const e=Object.entries(Ge),s=J.toLowerCase().trim(),t=2===s.length&&/^[0-9a-f]{2}$/i.test(s);return e.sort(([e,a],[n,i])=>{if(t){const t=h(e).toLowerCase(),a=h(n).toLowerCase(),i=t===s,r=a===s;if(i&&!r)return-1;if(r&&!i)return 1}let r=0;switch(G){case"lastHeard":r=(a.last_seen||0)-(i.last_seen||0);break;case"distance":{const s=De.get(e)??null,t=De.get(n)??null;r=null===s&&null===t?0:null===s?1:null===t?-1:s-t;break}case"centrality":r=(c.get(e)||0)-(c.get(n)||0)}return"desc"===B?-r:r})},[Ge,G,B,De,c,J]),Be=Ue.filter(([,e])=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude).length,Ke=s.useMemo(()=>new Set(i),[i]),We=s.useMemo(()=>0===ke?Ue:Ue.slice(0,Se),[Ue,Se,ke]);s.useEffect(()=>{Le(ke||Ue.length)},[G,B,J,Q,te,ke,Ue.length]),s.useEffect(()=>{const e=e=>{e.target.closest("[data-dropdown]")||(ie(!1),He(!1))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),s.useEffect(()=>{if(0===ke)return;const e=new IntersectionObserver(e=>{e[0].isIntersecting&&SeMath.min(e+ke,Ue.length))},{threshold:.1,rootMargin:"100px"});return Pe.current&&e.observe(Pe.current),()=>e.disconnect()},[ke,Se,Ue.length]);const qe=s.useCallback(e=>{Ce(e),Le(e||Ue.length),He(!1)},[Ue.length]),Je=s.useCallback(e=>{G===e?K(e=>"desc"===e?"asc":"desc"):(U(e),K("desc"))},[G]),Ze=s.useCallback(e=>{ae(s=>{const t=new Set(s);return t.has(e)?t.delete(e):t.add(e),t})},[]),Ye=s.useCallback(e=>{const s=Oe[e];(null==s?void 0:s.latitude)&&(null==s?void 0:s.longitude)&&0!==s.latitude&&0!==s.longitude&&ce(e)},[Oe]),Qe=s.useCallback(()=>{ce(null)},[]),Xe=s.useCallback((e,s)=>{V({hash:e,name:s})},[]),es=s.useCallback(async(e,s)=>{if(s.stopPropagation(),!je){be(e),ve(s=>{const t=new Map(s);return t.delete(e),t}),we(s=>{const t=new Map(s);return t.delete(e),t});try{const s=e.startsWith("0x")?e.slice(0,4):`0x${e.slice(0,2)}`,t=await P(s,30);t.success&&t.data?(ve(s=>new Map(s).set(e,t.data)),setTimeout(()=>{ve(s=>{const t=new Map(s);return t.delete(e),t})},1e4)):(we(s=>new Map(s).set(e,t.error||"Ping failed")),setTimeout(()=>{we(s=>{const t=new Map(s);return t.delete(e),t})},5e3))}catch(t){const s=t instanceof Error?t.message:"Ping failed";we(t=>new Map(t).set(e,s)),setTimeout(()=>{we(s=>{const t=new Map(s);return t.delete(e),t})},5e3)}finally{be(null)}}},[je]);return e.jsxs(R,{children:[e.jsx(F,{title:"Contacts",icon:e.jsx(Y,{}),controls:e.jsxs("div",{className:"flex items-baseline gap-3 sm:gap-4",children:[e.jsxs("span",{className:"roster-title tabular-nums",children:[Ue.length," node",1!==Ue.length?"s":""]}),Be>0&&e.jsxs("span",{className:"roster-title flex items-baseline gap-1.5 tabular-nums",children:[e.jsx(se,{className:"w-3.5 h-3.5 relative top-[2px]"}),Be," with location"]})]})}),e.jsxs(H,{children:[u?e.jsx(fe,{neighbors:Oe,localNode:$e??void 0,localHash:Ae,onRemoveNode:n,selectedNodeHash:re,onNodeSelected:Qe,highlightedEdgeKey:de,highlightedGhost:he}):e.jsx("div",{className:"surface-base radius-card aspect-video flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 border-2 border-accent-primary border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Loading map..."})]})}),e.jsx(Me,{maxPaths:10,highlightedEdge:de,onHighlightEdge:me}),p.length>0&&(u?e.jsx("div",{className:"chart-container",children:e.jsx(Fe,{neighbors:Oe,onGhostSelect:pe})}):e.jsxs("div",{className:"surface-base radius-card",children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-24 h-4 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"w-6 h-6 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-20 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-4 rounded bg-bg-elevated animate-pulse"})]})})]})),e.jsx("div",{className:"chart-container",children:u?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"chart-title",children:[e.jsx(Y,{className:"chart-title-icon"}),"Discovered Contacts"]}),e.jsxs("div",{className:"relative",children:[e.jsx(oe,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-muted"}),e.jsx("input",{type:"text",name:"contact-search",id:"contact-search",autoComplete:"off",value:J,onChange:e=>Z(e.target.value),placeholder:"Search...",className:"w-20 sm:w-28 lg:w-32 pl-7 pr-6 py-1.5 text-sm surface-input radius-inner text-text-primary placeholder:text-text-muted focus:outline-none focus:border-accent-primary/50"}),J&&e.jsx("button",{onClick:()=>{Z(""),"neighbor"!==J.toLowerCase().trim()&&"neighbors"!==J.toLowerCase().trim()||X(!1)},className:"absolute right-1.5 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-secondary p-0.5",children:e.jsx(S,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"relative","data-dropdown":!0,children:[e.jsxs("button",{onClick:()=>ie(!ne),className:"flex items-center gap-1 px-1.5 sm:px-2.5 py-1.5 text-sm radius-inner transition-base "+(te.size>0?"bg-accent-primary/20 text-accent-primary border border-accent-primary/30":"text-text-muted hover:text-text-secondary hover-bg border border-transparent"),title:"Filter by contact type",children:[e.jsx(ue,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Filter"}),te.size>0&&e.jsx("span",{className:"tabular-nums text-xs bg-accent-primary/30 px-1 rounded",children:te.size})]}),ne&&e.jsxs("div",{className:"absolute left-0 top-full mt-1 z-50 surface-elevated radius-inner py-1 min-w-[140px]",children:[[{key:"repeater",label:"Repeaters"},{key:"companion",label:"Companions"},{key:"room",label:"Rooms"}].map(({key:s,label:t})=>e.jsxs("button",{onClick:()=>Ze(s),className:"w-full px-3 py-1.5 text-sm text-left hover-bg transition-base flex items-center gap-2",children:[e.jsx("span",{className:"w-4 h-4 flex items-center justify-center radius-badge border "+(te.has(s)?"bg-accent-primary border-accent-primary text-white":"border-border-subtle"),children:te.has(s)&&e.jsx(q,{className:"w-3 h-3"})}),e.jsx("span",{className:te.has(s)?"text-text-primary":"text-text-secondary",children:t})]},s)),te.size>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-border-subtle my-1"}),e.jsx("button",{onClick:()=>ae(new Set),className:"w-full px-3 py-1.5 text-sm text-left text-text-muted hover:text-text-secondary hover-bg transition-base",children:"Clear filters"})]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[Ie.size>0&&e.jsxs("button",{onClick:()=>X(!Q),className:"flex items-center gap-1 px-1.5 sm:px-2.5 py-1.5 text-sm radius-inner transition-base "+(Q?"bg-accent-success/20 text-accent-success border border-accent-success/30":"text-text-muted hover:text-text-secondary hover-bg border border-transparent"),title:Q?"Show all contacts":"Show only MeshCore neighbors (direct RF contact)",children:[e.jsx(L,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Neighbors"}),e.jsx("span",{className:"sm:hidden tabular-nums",children:Ie.size})]}),e.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[e.jsxs("button",{onClick:()=>Je("lastHeard"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("lastHeard"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by last heard",children:[e.jsx(d,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Recent"}),"lastHeard"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]}),e.jsxs("button",{onClick:()=>Je("distance"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("distance"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by distance",children:[e.jsx(ge,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Distance"}),"distance"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]}),e.jsxs("button",{onClick:()=>Je("centrality"),className:"flex items-center gap-1 p-1.5 sm:px-2 sm:py-1.5 text-sm radius-inner transition-base "+("centrality"===G?"bg-accent-primary/20 text-accent-primary":"text-text-muted hover:text-text-secondary hover-bg"),title:"Sort by network centrality",children:[e.jsx(W,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:"Centrality"}),"centrality"===G&&e.jsx(xe,{className:"w-3 h-3 "+("asc"===B?"rotate-180":"")})]})]}),e.jsxs("div",{className:"relative","data-dropdown":!0,children:[e.jsxs("button",{onClick:()=>He(!Re),className:"flex items-center gap-1 px-2 py-1.5 text-sm text-text-muted hover:text-text-secondary hover-bg radius-inner transition-base",title:"Items per page",children:[e.jsx("span",{className:"tabular-nums",children:0===ke?"All":ke}),e.jsx(o,{className:"w-3 h-3 transition-transform "+(Re?"rotate-180":"")})]}),Re&&e.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 surface-elevated radius-inner py-1 min-w-[80px]",children:[25,50,100,0].map(s=>e.jsx("button",{onClick:()=>qe(s),className:"w-full px-3 py-1.5 text-sm text-left hover-bg transition-base "+(ke===s?"text-accent-primary":"text-text-secondary"),children:0===s?"All":s},s))})]})]})]}),Ue.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"hidden sm:grid contacts-grid-header border-b border-border-subtle/50 px-3 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:[e.jsx("div",{className:"contacts-col-node",children:"Node"}),e.jsx("div",{className:"contacts-col-signal text-right",children:"Signal"}),e.jsx("div",{className:"contacts-col-distance text-right",children:"Distance"}),e.jsx("div",{className:"contacts-col-centrality text-right",children:"Centrality"}),e.jsx("div",{className:"contacts-col-activity text-center",children:"Activity"}),e.jsx("div",{className:"contacts-col-seen text-right",children:"Last Seen"}),e.jsx("div",{className:"contacts-col-actions"})]}),e.jsx("div",{className:"divide-y divide-border-subtle/30",children:We.map(([s,t])=>{const a=h(s),n=Ke.has(s),i=Ie.has(s),r=De.get(s)??null,l=c.get(s)||0,o=i?Ve.get(s):void 0,d=a?A.get(a)??null:null,x=_.get(s)??Te;return e.jsx(Ee,{hash:s,contact:t,isHub:n,isNeighbor:i,distance:r,centrality:l,sparklineData:x,isSparklineLoading:D,neighborSignal:o,collisionInfo:d,isViterbiResolved:$,isPinging:null!==je,isPingingThis:je===s,pingResult:Ne.get(s),pingError:ye.get(s),onRowClick:Ye,onPing:es,onRemove:Xe},s)})}),ke>0&&Se0&&SeLe(e=>Math.min(e+ke,Ue.length)),className:"text-accent-primary hover:text-accent-primary/80 transition-base",children:"Load more"})]})]}):e.jsxs("div",{className:"roster-empty",children:[e.jsx(Y,{className:"roster-empty-icon"}),e.jsx("div",{className:"type-label text-text-secondary",children:"No Contacts Discovered"}),e.jsx("div",{className:"type-data-xs text-text-muted mt-1",children:"Contacts will appear here as they advertise on the mesh network."})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"chart-header",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-32 h-4 rounded bg-bg-elevated animate-pulse"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-16 h-6 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-24 h-6 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-6 rounded bg-bg-elevated animate-pulse"})]})]}),e.jsx("div",{className:"px-3 py-3 space-y-3",children:[...Array(5)].map((s,t)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-5 h-5 rounded bg-bg-elevated animate-pulse"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"h-4 w-32 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"h-3 w-24 rounded bg-bg-elevated animate-pulse"})]}),e.jsx("div",{className:"w-12 h-4 rounded bg-bg-elevated animate-pulse"}),e.jsx("div",{className:"w-16 h-4 rounded bg-bg-elevated animate-pulse"})]},t))})]})})]}),e.jsx(ee,{isOpen:!!I,title:"Remove Contact",message:`Are you sure you would like to remove ${(null==I?void 0:I.name)||"this contact"}?`,confirmLabel:"Remove",cancelLabel:"Cancel",variant:"danger",onConfirm:()=>{I&&n(I.hash),V(null)},onCancel:()=>V(null)})]})}},Symbol.toStringTag,{value:"Module"}));export{ze as C,he as E,He as P,ge as R}; diff --git a/frontend/dist/assets/ContactsMapMapLibre-B9vDt-Q3.js b/frontend/dist/assets/ContactsMapMapLibre-I6lPdL82.js similarity index 99% rename from frontend/dist/assets/ContactsMapMapLibre-B9vDt-Q3.js rename to frontend/dist/assets/ContactsMapMapLibre-I6lPdL82.js index 7f877006..c9e685cb 100644 --- a/frontend/dist/assets/ContactsMapMapLibre-B9vDt-Q3.js +++ b/frontend/dist/assets/ContactsMapMapLibre-I6lPdL82.js @@ -1 +1 @@ -import{r as A,j as e,c as t,l as r}from"./vendor-react-BKIq8k5U.js";import{u as n,b as o,S as i,L as a,P as s,c as l,M as c,d as u,B as d}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{L as f,S as g,M as h,c as m}from"./link-scoring-0iadiYJr.js";import{c as b,$ as p,ck as v,cl as y,cm as w,ak as x,as as k,at as C,T as B,m as M,J as D,A as E,X as j,aU as Q,am as N,H as S,R as F,Y as P,I as T,ad as L,cn as I,q as R,co as _,cp as H,r as z,cq as G,cr as U,aC as O,N as Y,B as V,E as W,aZ as Z,k as K,cs as J,ct as q}from"./index-_WuEOacy.js";import{P as X,T as $,C as AA}from"./ConfirmModal-DDMJAre1.js";import{M as eA,a as tA,b as rA,D as nA}from"./DeepAnalysisModal-Bs0eqWHM.js";import{b as oA,M as iA,L as aA}from"./LightSparkline-CdHE3FTK.js";import{H as sA}from"./house-BBcJvvl1.js";import{R as lA}from"./refresh-cw-J1p21ufp.js";import{E as cA,P as uA,R as dA}from"./Contacts-CoDOi-Be.js";import{C as fA}from"./compass-BKAMqa2d.js";import{L as gA}from"./loader-circle-E8BhCd6Y.js";import{G as hA}from"./git-branch-BPL9j6g1.js";import{Z as mA,H as bA,d as pA,N as vA,f as yA}from"./SignalIndicator-BLxNXr0z.js";import{l as wA}from"./font-loader-jlbdh9Fw.js";import{a as xA}from"./config-C7QO3CEB.js";import{A as kA}from"./index-DU6QWVJT.js";import{c as CA,p as BA,d as MA}from"./vendor-core-D1aqi_5O.js";import{C as DA,a as EA}from"./DataBox-ihLFk7Um.js";import{U as jA}from"./users-DMMZTLQq.js";import{M as QA}from"./map-pin-yDOfK60-.js";import"./deckgl-DTsmDcfs.js";import"./triangle-alert-aHb4szMy.js";import"./database-DzqBwrzM.js";import"./ping-BaWqaU2w.js";import"./PageLayout-C4LpOVqW.js";import"./activity-CYJ1WO67.js";import"./circle-check-COooBZCl.js";import"./CollisionExplorerModal-DgkiEMYI.js";import"./network-DFMZ0mT7.js";import"./target-SwsSSLmm.js";const NA=b("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]),SA=b("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),FA=b("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),PA=b("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),TA=b("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),LA=b("mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]),IA=b("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]),RA=b("swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]),_A=b("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),HA=b("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),zA=b("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);class GA{constructor(){this.componentControls=new Set}subscribe(A){return this.componentControls.add(A),()=>this.componentControls.delete(A)}start(A,e){this.componentControls.forEach(t=>{t.start(A.nativeEvent||A,e)})}cancel(){this.componentControls.forEach(A=>{A.cancel()})}stop(){this.componentControls.forEach(A=>{A.stop()})}}const UA=()=>new GA;function OA(A,e,t,r){const n=(t-A)*Math.PI/180,o=(r-e)*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(A*Math.PI/180)*Math.cos(t*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371e3}function YA(A,e){const t=Math.max(5,Math.min(A,300)),r=Math.log(5),n=Math.log(300);return 1+(Math.log(t)-r)/(n-r)*5}const VA={nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",nodeColor:"#4338CA",localColor:"#FFB224",hubColor:"#8E4EC6",gatewayColor:"#5B5BD6",mobileColor:"#F76B15",roomServerColor:"#D6409F",neighborColor:"#FFB224",edges:{rest:"#4B4B4B",restBright:"#616161",restDim:"#3F3F3F",hoverDirect:"#6FBCBD",hoverLoop:"#8B7BAD",hoverStandard:"#8A8A8A",hoverNeighbor:"#FBBF24",neighborRest:"#6B7280",neighborHover:"#FBBF24",highlight:"#FFD700"},edgeOpacity:.82};function WA(){if("undefined"==typeof window)return VA;const A=v(),e=y();return{nodeFill:A.nodeFill,nodeStroke:A.nodeStroke,nodeColor:VA.nodeColor,localColor:A.localColor,hubColor:A.hubColor,gatewayColor:A.gatewayColor,mobileColor:A.mobileColor,roomServerColor:A.roomColor,neighborColor:A.neighborColor,edges:{rest:e.rest,restBright:e.restBright,restDim:e.restDim,hoverDirect:e.hoverDirect,hoverLoop:e.hoverLoop,hoverStandard:e.hoverStandard,hoverNeighbor:e.hoverNeighbor,neighborRest:VA.edges.neighborRest,neighborHover:VA.edges.neighborHover,highlight:e.highlight},edgeOpacity:VA.edgeOpacity}}const ZA=2e3,KA={type:"spring",stiffness:500,damping:35},JA="#4A4A4A",qA="#737373",XA="rgba(0, 0, 0, 0.12)",$A=A.createContext("dark"),Ae=()=>A.useContext($A);function ee({color:A,ring:t}){return e.jsx("span",{className:"shrink-0 rounded-full",style:{width:14,height:14,backgroundColor:t?"transparent":A,border:t?`4px solid ${A}`:void 0,boxSizing:"border-box"}})}function te({color:A}){return e.jsx("span",{className:"shrink-0 rounded-sm",style:{width:16,height:3,backgroundColor:A}})}function re({indicator:A,label:r,tooltip:n}){const o="light"===Ae();return e.jsxs("div",{className:"flex items-center gap-1.5",children:[A,e.jsx("span",{className:t(!o&&"text-text-secondary"),style:o?{color:JA}:void 0,children:r}),n&&e.jsx(B,{content:n,delay:200,children:e.jsx("span",{className:t("cursor-help text-[10px] opacity-60 hover:opacity-100 transition-opacity",!o&&"text-text-muted"),style:o?{color:qA}:void 0,children:"ⓘ"})})]})}function ne({title:A,tooltip:r,isOpen:n,onToggle:o,showDivider:i,children:a}){const s="light"===Ae();return e.jsxs("div",{className:i?"mt-2 pt-2 border-t":"",style:i?{borderColor:s?XA:"var(--map-ui-border)"}:void 0,children:[e.jsxs("button",{type:"button",onClick:o,className:t("group w-full flex items-center justify-between py-1 font-medium transition-colors",!s&&"text-text-secondary hover:text-text-primary"),style:s?{color:JA}:void 0,children:[e.jsxs("span",{className:"flex items-center gap-1",children:[A,e.jsx(B,{content:r,delay:200,children:e.jsx("span",{className:t("cursor-help text-[10px] opacity-60 group-hover:opacity-100 transition-opacity",!s&&"text-text-muted"),style:s?{color:qA}:void 0,children:"ⓘ"})})]}),e.jsx(M.span,{animate:{rotate:n?0:-90},transition:{duration:.15},children:e.jsx(D,{className:"w-3 h-3",style:s?{color:qA}:{color:"var(--text-muted)"}})})]}),e.jsx(E,{initial:!1,children:n&&e.jsx(M.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:KA,className:"overflow-hidden",children:e.jsx("div",{className:"flex flex-col gap-1 pt-1.5",children:a})})})]})}function oe({label:A,value:r,color:n}){const o="light"===Ae();return e.jsxs("div",{className:t("flex justify-between tabular-nums",!o&&"text-text-muted"),style:o?{color:qA}:void 0,children:[e.jsx("span",{children:A}),e.jsx("span",{style:n?{color:n}:o?{color:JA}:{color:"var(--text-secondary)"},children:r})]})}function ie({icon:A,color:r,title:n,subtitle:o}){const i="light"===Ae();return e.jsx("div",{className:"mt-1.5 pt-1.5 border-t",style:{borderColor:i?XA:"var(--map-ui-border)"},children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"shrink-0",style:{color:r},children:A}),e.jsxs("div",{className:"flex flex-col min-w-0",children:[e.jsx("span",{className:"font-medium truncate",style:{color:r},children:n}),e.jsx("span",{className:t("text-[10px] leading-tight",!i&&"text-text-muted"),style:i?{color:qA}:void 0,children:o})]})]})})}function ae({showTopology:t,validatedPolylineCount:r,filteredNeighborCount:n,hasLocalNode:o,meshTopology:i,zeroHopNeighbors:a,neighborsWithLocation:s,basemapMode:l="dark"}){const c=w(),u=x(),d=k(),g=u.filter(A=>A.isLikelyReal).length,h=function(A){let e=0;for(const t of A.txDelayRecommendations.values())"backbone"===t.networkRole&&e++;return e}(i),m=a.size>0,[b,p]=A.useState(!0),[v,y]=A.useState(!0),[B,M]=A.useState(!0);return e.jsx($A.Provider,{value:l,children:e.jsxs("div",{className:"map-control-glass p-2.5 text-xs",children:[e.jsxs(ne,{title:"Nodes",tooltip:"Node type shown by shape + color. Yellow = direct RF neighbor.",isOpen:b,onToggle:()=>p(A=>!A),children:[e.jsx(re,{indicator:e.jsx(ee,{color:c.nodeFill}),label:"Node",tooltip:"Standard mesh node. Repeater, client, or companion device."}),e.jsx(re,{indicator:e.jsx(ee,{color:c.hubColor}),label:"Hub",tooltip:"Network hub (≥10% of last-hop traffic)."}),(D=s,D.some(([,A])=>{var e;const t=null==(e=A.contact_type)?void 0:e.toLowerCase();return"room server"===t||"room_server"===t||"room"===t||"server"===t})&&e.jsx(re,{indicator:e.jsx(oA,{className:"w-3 h-3 shrink-0",style:{color:c.roomColor},strokeWidth:2.5}),label:"Room",tooltip:"Room Server identity for client sync."})),e.jsx(re,{indicator:e.jsx(sA,{className:"w-3 h-3 shrink-0",style:{color:c.localColor},strokeWidth:2.5}),label:"Local",tooltip:"Your repeater running pyMC_Repeater."}),m&&e.jsx(re,{indicator:e.jsx(ee,{color:c.neighborColor}),label:"Neighbor",tooltip:"Zero-hop direct RF contact."}),i.gatewayNodes.length>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.gatewayColor}),label:"Gateway",tooltip:"Significant forwarder (7-10% traffic)."}),h>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.hubColor}),label:"Backbone",tooltip:"Critical relay with high centrality."}),i.mobileNodes.length>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.mobileColor,ring:!0}),label:"Mobile",tooltip:"Volatile node that appears/disappears."}),g>0&&e.jsx(re,{indicator:e.jsx(C,{className:"w-3 h-3 shrink-0",style:{color:c.ghostColor},strokeWidth:2.5}),label:`Ghost (${g})`,tooltip:"Unknown repeater from Viterbi analysis."})]}),m&&e.jsxs(ne,{title:"Link Quality",tooltip:"Neighbor edge colors based on bidirectional balance.",isOpen:v,onToggle:()=>y(A=>!A),showDivider:!0,children:[e.jsx(re,{indicator:e.jsx(te,{color:f.YELLOW}),label:"2-Way",tooltip:"33-67% balanced. Ideal bidirectional link."}),e.jsx(re,{indicator:e.jsx(te,{color:f.GREEN}),label:"Listener",tooltip:">67% listener. They hear us well."}),e.jsx(re,{indicator:e.jsx(te,{color:f.RED}),label:"Loud",tooltip:"<33% listener. They route more to us."})]}),t&&r>0&&e.jsxs(ne,{title:"Topology",tooltip:"Links with 5+ validations. Thickness = strength.",isOpen:B,onToggle:()=>M(A=>!A),showDivider:!0,children:[e.jsx(oe,{label:"Nodes",value:n+(o?1:0)}),i.hubNodes.length>0&&e.jsx(oe,{label:"Hubs",value:i.hubNodes.length,color:VA.hubColor}),i.loops.length>0&&e.jsx(ie,{icon:e.jsx(lA,{className:"w-3 h-3"}),color:VA.edges.hoverLoop,title:`${i.loops.length} ${1===i.loops.length?"Loop":"Loops"}`,subtitle:"Redundant paths"}),d.totalPaths>0&&e.jsx(ie,{icon:e.jsx(cA,{className:"w-3 h-3"}),color:c.ghostColor,title:`${d.totalPaths.toLocaleString()} Viterbi`,subtitle:"HMM decoded paths"})]})]})});var D}function se({mapRef:A,showNeighborLines:t,onToggleNeighborLines:r,hasNeighborPolylines:n,nodeFilter:o,onNodeFilterChange:i,hasHubNodes:a,hasZeroHopNeighbors:s,showCoverage:l,onToggleCoverage:c,showMinCut:u=!1,onToggleMinCut:d,hasMinCutData:f=!1,show3DTerrain:m,onToggle3DTerrain:b,basemapMode:p,onToggleBasemap:v,isFullscreen:y,onToggleFullscreen:w}){const x="w-4 h-4",k="light"===p?"#737373":void 0;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"absolute top-3 right-3 z-[600] flex flex-col gap-2 sm:top-4 sm:right-4",children:[e.jsxs("div",{className:"map-control-glass flex items-center gap-1 p-1",children:[n&&e.jsx(j,{plain:!0,color:t?"warning":"muted",onClick:r,title:t?"Hide edge lines":"Show edge lines","aria-label":t?"Hide edge lines":"Show edge lines","aria-pressed":t,className:"!p-1.5 !rounded-md",children:e.jsx(Q,{className:x})}),e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(N,{color:"all"===o?"green":"zinc",customColor:"all"!==o?k:void 0,onClick:()=>i("all"),title:"Show all nodes",children:"All"}),a&&e.jsx(N,{color:"hubs"===o?"green":"zinc",customColor:"hubs"!==o?k:void 0,onClick:()=>i("hubs"),title:"Show only hub nodes and their connections",children:"Hubs"}),s&&e.jsx(N,{color:"direct"===o?"green":"zinc",customColor:"direct"!==o?k:void 0,onClick:()=>i("direct"),title:"Show only zero-hop (direct RF) neighbors",children:"Direct"})]}),f&&d&&e.jsx(j,{plain:!0,color:u?"primary":"muted",onClick:d,title:u?"Hide community partition":"Show community partition","aria-label":u?"Hide community partition":"Show community partition","aria-pressed":u,className:"!p-1.5 !rounded-md",children:e.jsx(NA,{className:x})}),e.jsx(j,{plain:!0,color:"light"===p?"primary":"muted",onClick:v,title:"light"===p?"Switch to dark map":"Switch to light map","aria-label":"light"===p?"Switch to dark map":"Switch to light map","aria-pressed":"light"===p,className:"!p-1.5 !rounded-md",children:"light"===p?e.jsx(g,{className:x}):e.jsx(h,{className:x})}),e.jsx(j,{plain:!0,color:m?"success":"muted",onClick:b,title:m?"Disable 3D terrain":"Enable 3D terrain","aria-label":m?"Disable 3D terrain":"Enable 3D terrain","aria-pressed":m,className:"!p-1.5 !rounded-md",children:e.jsx(LA,{className:x})}),e.jsx(j,{plain:!0,color:"muted",onClick:w,title:y?"Exit fullscreen":"Fullscreen","aria-label":y?"Exit fullscreen":"Enter fullscreen","aria-pressed":y,className:"!p-1.5 !rounded-md",children:y?e.jsx(eA,{className:x}):e.jsx(tA,{className:x})})]}),e.jsxs("div",{className:"map-control-glass flex flex-col items-stretch !overflow-hidden self-end !p-0",children:[e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e,t;null==(t=null==(e=A.current)?void 0:e.getMap())||t.zoomIn()},title:"Zoom in","aria-label":"Zoom in",className:"!p-1.5 !rounded-none",children:e.jsx(X,{className:x})}),e.jsx("div",{className:"h-px bg-border-subtle"}),e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e,t;null==(t=null==(e=A.current)?void 0:e.getMap())||t.zoomOut()},title:"Zoom out","aria-label":"Zoom out",className:"!p-1.5 !rounded-none",children:e.jsx(iA,{className:x})}),e.jsx("div",{className:"h-px bg-border-subtle"}),e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e;const t=null==(e=A.current)?void 0:e.getMap();t&&t.easeTo({bearing:0,pitch:0,duration:300})},title:"Reset bearing to north","aria-label":"Reset bearing to north",className:"!p-1.5 !rounded-none",children:e.jsx(fA,{className:x})})]})]})})}const le="DeepAnalysis";function ce(){return"abcdefghijklmnopqrstuvwxyz0123456789"[Math.floor(36*Math.random())]}function ue({isActive:t,hasAnalyzed:r,isLoading:n,onClick:o,basemapMode:i="dark"}){const a="light"===i,s=a?"#4A4A4A":void 0,l=a?"#16A34A":"#4ADE80",[c,u]=A.useState(!1),[d,f]=A.useState(le),g=A.useRef(!1),h=A.useRef(null),[m]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)}),b=c&&!t&&!n&&m;A.useEffect(()=>{if(c&&!t&&!n&&!g.current){g.current=!0;const A=performance.now(),e=t=>{const r=t-A,n=Math.min(r/700,1),o=Math.floor(12*n);let i="";for(let A=0;A<12;A++)i+=A{h.current&&cancelAnimationFrame(h.current)}},[c,t,n]);const p=n?"Analyzing...":d;return e.jsxs("button",{onClick:o,onMouseEnter:()=>m&&u(!0),onMouseLeave:()=>m&&u(!1),onPointerEnter:()=>m&&u(!0),onPointerLeave:()=>m&&u(!1),disabled:n,className:"flex items-center gap-2 w-full text-left radius-inner transition-base "+(n?"cursor-wait":""),style:{padding:"0.5rem 0.625rem",backgroundColor:t?a?"rgba(220, 252, 231, 1)":"rgba(10, 26, 10, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:n?"Analyzing packet history...":r?t?"Hide topology edges":"Show topology edges":"Load full packet history and build topology",children:[n?e.jsx(gA,{className:"w-3.5 h-3.5 flex-shrink-0 animate-spin",style:{color:l}}):e.jsx(hA,{className:"w-3.5 h-3.5 flex-shrink-0 transition-colors "+(t?"":"text-text-secondary"),style:{...t&&{color:l},...b&&{color:l},...!t&&!b&&s&&{color:s}}}),e.jsx("span",{className:t?"":"text-text-secondary",style:{fontFamily:"ui-monospace, SFMono-Regular, monospace",fontSize:"0.6875rem",fontWeight:t||b?700:500,letterSpacing:"-0.01em",lineHeight:1,...t&&{color:l},...b&&{color:l},...!t&&!b&&s&&{color:s}},children:p})]})}function de({isActive:t,onClick:r,basemapMode:n="dark"}){const o="light"===n,i=o?"#4A4A4A":void 0,a=o?"#0D7377":"#12A594",[s,l]=A.useState(!1),[c,u]=A.useState(0),d=A.useRef(!1),f=A.useRef(null),[g,h]=A.useState(0),m=A.useRef(!1),[b]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)}),p=s&&!t&&b;A.useEffect(()=>{p&&!m.current&&(m.current=!0,h(1),setTimeout(()=>h(2),100),setTimeout(()=>h(3),200)),s||(m.current=!1,h(0))},[p,s]),A.useEffect(()=>{if(s&&!t&&!d.current){d.current=!0;const A=performance.now(),e=t=>{const r=t-A,n=Math.min(r/400,1);u(n),n<1&&(f.current=requestAnimationFrame(e))};f.current=requestAnimationFrame(e)}return s||(f.current&&(cancelAnimationFrame(f.current),f.current=null),d.current=!1,u(0)),()=>{f.current&&cancelAnimationFrame(f.current)}},[s,t]);const v=A=>{if(t)return a;if(!p)return i;const e=11*c;return A>=e-2&&Ab&&l(!0),onMouseLeave:()=>b&&l(!1),onPointerEnter:()=>b&&l(!0),onPointerLeave:()=>b&&l(!1),className:"flex items-center gap-2 w-full text-left radius-inner transition-base",style:{padding:"0.5rem 0.625rem",backgroundColor:t?o?"rgba(204, 251, 241, 1)":"rgba(10, 36, 32, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:t?"Disable live packet tracing (reduces CPU usage)":"Enable live packet tracing",children:[e.jsx(mA,{className:"w-3.5 h-3.5 flex-shrink-0 "+(t?"":"text-text-secondary"),fill:1===g?"#FFFFFF":3===g?a:"none",stroke:1===g||2===g?"#FFFFFF":t||p?a:i||"currentColor",style:{transition:"fill 0.05s, stroke 0.05s"}}),e.jsx("span",{className:t?"":"text-text-secondary",style:{fontFamily:"ui-monospace, SFMono-Regular, monospace",fontSize:"0.6875rem",fontWeight:t||p?700:500,letterSpacing:"-0.01em",lineHeight:1},children:"LiveTrace".split("").map((A,t)=>e.jsx("span",{style:{color:v(t)||void 0},children:A},t))})]})}const fe="rgba(0, 0, 0, 0.06)",ge="rgba(0, 0, 0, 0.25)",he="#fe8019";function me({isActive:t,onClick:r,brightness:n=.7,onBrightnessChange:o,basemapMode:i="dark"}){const a="light"===i,s=a?"#4A4A4A":void 0,[l,c]=A.useState(!1),[u,d]=A.useState(!1),[f]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)});A.useEffect(()=>{wA()},[]),A.useEffect(()=>{if(!l||t)return;const A=requestAnimationFrame(()=>d(!0)),e=setTimeout(()=>d(!1),80);return()=>{cancelAnimationFrame(A),clearTimeout(e)}},[l,t]);const m=Math.max(.01,Math.min(1,n)),b=m<.999,p=m>.011,v=l&&!t&&f;return e.jsxs("button",{onClick:r,onMouseEnter:()=>f&&c(!0),onMouseLeave:()=>f&&c(!1),onPointerEnter:()=>f&&c(!0),onPointerLeave:()=>f&&c(!1),className:"flex items-center gap-2 w-full text-left radius-inner transition-base",style:{padding:"0.5rem 0.625rem",backgroundColor:t?a?"rgba(254, 243, 199, 1)":"rgba(26, 20, 8, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:t?"Configure wardriving coverage":"Show wardriving coverage",children:[e.jsx(RA,{className:"w-3.5 h-3.5 flex-shrink-0 transition-colors "+(t?"text-amber-400":"text-text-secondary"),style:v?{color:he}:!t&&s?{color:s}:void 0}),e.jsx("span",{className:t?"text-amber-400":"text-text-secondary",style:{fontFamily:t||v?"'Jacquard 12', serif":"ui-monospace, SFMono-Regular, monospace",fontSize:t||v?"0.75rem":"0.6875rem",fontWeight:500,letterSpacing:"-0.01em",lineHeight:1,transition:"none",transform:t?"scale(1.45)":v?`scale(${u?1.595:1.45})`:void 0,transformOrigin:"left center",...v?{color:he}:!t&&s?{color:s}:{}},children:"Wardrive"}),t&&o&&e.jsxs("div",{className:"ml-auto flex items-center gap-0.5",children:[e.jsx("button",{onClick:A=>{A.stopPropagation();const e=Math.max(.01,m-.2);null==o||o(e)},disabled:!p,className:"p-0.5 rounded transition-colors "+(p?"text-amber-400":"cursor-not-allowed"),style:{...p&&{"--hover-bg":a?fe:"var(--bg-elevated)"},...!p&&{color:a?ge:"rgba(251, 191, 36, 0.3)"}},onMouseEnter:A=>p&&(A.currentTarget.style.backgroundColor=a?fe:"var(--bg-elevated)"),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",title:`Decrease opacity (${Math.round(100*m)}%)`,children:e.jsx(h,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:A=>{A.stopPropagation();const e=Math.min(1,m+.2);null==o||o(e)},disabled:!b,className:"p-0.5 rounded transition-colors "+(b?"text-amber-400":"cursor-not-allowed"),style:{...b&&{"--hover-bg":a?fe:"var(--bg-elevated)"},...!b&&{color:a?ge:"rgba(251, 191, 36, 0.3)"}},onMouseEnter:A=>b&&(A.currentTarget.style.backgroundColor=a?fe:"var(--bg-elevated)"),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",title:`Increase opacity (${Math.round(100*m)}%)`,children:e.jsx(g,{className:"w-3.5 h-3.5"})})]})]})}function be(A){let e=!0,t=-90,r=90,n=-180,o=180;for(const i of A.toLowerCase()){const A="0123456789bcdefghjkmnpqrstuvwxyz".indexOf(i);if(-1!==A)for(let i=4;i>=0;i--){const a=A>>i&1;if(e){const A=(n+o)/2;a?n=A:o=A}else{const A=(t+r)/2;a?t=A:r=A}e=!e}}return{lat:(t+r)/2,lon:(n+o)/2}}function pe(A){return Math.exp(-A*Math.LN2/7)}const ve="pymc-wardriving-url",ye="pymc-wardriving-enabled",we="pymc-wardriving-brightness";function xe(A){"undefined"!=typeof localStorage&&(A?localStorage.setItem(ve,A):localStorage.removeItem(ve))}function ke(A){"undefined"!=typeof localStorage&&localStorage.setItem(ye,String(A))}function Ce(){if("undefined"==typeof localStorage)return.7;const A=localStorage.getItem(we);if(A){const e=parseFloat(A);if(!isNaN(e)&&e>=.01&&e<=1)return e}return.7}function Be(A,e=null){if(null!==A){const t=(Math.max(-12,Math.min(12,A))+12)/24;return null!==e?.8*t+(Math.max(-120,Math.min(-50,e))+120)/70*.2:t}return null!==e?(Math.max(-120,Math.min(-50,e))+120)/70:.5}const Me=CA((A,e)=>({status:"idle",isVisible:"undefined"!=typeof localStorage&&"true"===localStorage.getItem(ye),coveragePoints:[],repeaters:[],error:null,stats:{coverageCount:0,repeaterCount:0,lastUpdated:null},url:"undefined"==typeof localStorage?"":localStorage.getItem(ve)||"",brightness:Ce(),isModalOpen:!1,openModal:()=>A({isModalOpen:!0}),closeModal:()=>A({isModalOpen:!1}),setUrl:e=>A({url:e}),setBrightness:e=>{const t=Math.max(.01,Math.min(1,e));!function(A){if("undefined"==typeof localStorage)return;const e=Math.max(.01,Math.min(1,A));localStorage.setItem(we,String(e))}(t),A({brightness:t})},toggleVisibility:()=>{const t=!e().isVisible;ke(t),A({isVisible:t})},setVisible:e=>{ke(e),A({isVisible:e})},loadCoverage:async e=>{if(!e.trim())return A({error:"Please enter a URL",status:"error"}),!1;try{new URL(e.trim())}catch{return A({error:"Invalid URL format",status:"error"}),!1}A({error:null,status:"connecting"});try{A({status:"loading"});const t=await async function(A){const e=`${A.replace(/\/+$/,"").replace(/\/get-nodes$/,"").replace(/\/get-samples$/,"")}/get-samples`,t=await async function(A,e={},t=8e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{return await fetch(A,{...e,signal:r.signal})}catch(o){if(o instanceof Error&&"AbortError"===o.name)throw new Error(`Connection timed out after ${t/1e3}s`);throw o}finally{clearTimeout(n)}}(e,{headers:{Accept:"application/json"}});if(!t.ok)throw new Error(`Failed to fetch precise samples: ${t.status}`);return t.json()}(e.trim());if(!t||"object"!=typeof t)throw new Error("Invalid response from server");if(!Array.isArray(t.keys))throw new Error("No sample data found in response");A({status:"processing"});const r=function(A){var e;const t=[];for(const r of A.keys){if(!r.observed)continue;const{lat:A,lon:n}=be(r.hash),o=parseInt(r.time,10),i=isNaN(o)?30:(Date.now()-o)/864e5,a=pe(i),s=Be(r.snr,r.rssi)*(.3+.7*a);t.push({lat:A,lon:n,successRate:r.observed?1:0,weight:s,totalSamples:1,ageDays:i,geohash:r.hash,repeaters:(null==(e=r.path)?void 0:e.map(A=>A.toLowerCase()))||[]})}return t}(t);if(0===r.length)throw new Error("No valid coverage points found");return A({coveragePoints:r,repeaters:[],stats:{coverageCount:r.length,repeaterCount:0,lastUpdated:new Date},status:"success",isVisible:!0,url:e.trim()}),xe(e.trim()),ke(!0),!0}catch(t){const e=t instanceof Error?t.message:"Failed to load coverage data";let r=e;return e.includes("timed out")?r="Connection timed out. Server may be unreachable or slow.":e.includes("Failed to fetch")||e.includes("NetworkError")?r="Could not connect to server. Check the URL and try again.":e.includes("CORS")?r="Server does not allow cross-origin requests.":e.includes("404")?r="Coverage endpoint not found. Check the URL.":(e.includes("ERR_NAME_NOT_RESOLVED")||e.includes("DNS"))&&(r="Server not found. Check the URL for typos."),A({error:r,status:"error"}),!1}},clearCoverage:()=>{A({coveragePoints:[],repeaters:[],stats:{coverageCount:0,repeaterCount:0,lastUpdated:null},status:"idle",error:null,isVisible:!1,url:""}),xe(""),ke(!1)}})),De={bg:"#F8F8F8",bgSubtle:"#F0F0F0",bgElevated:"#FFFFFF",bgInput:"#FFFFFF",border:"rgba(0, 0, 0, 0.12)",borderStrong:"rgba(0, 0, 0, 0.20)",borderFocus:"#3B82F6",text:"#1A1A1A",textSecondary:"#4A4A4A",textMuted:"#737373",success:"#059669",successBg:"#ECFDF5",successBorder:"#A7F3D0",error:"#DC2626",errorBg:"#FEF2F2",errorBorder:"#FECACA",info:"#2563EB",infoBg:"#EFF6FF",infoBorder:"#BFDBFE",warning:"#D97706",warningBg:"#FFFBEB",warningBorder:"#FDE68A",primary:"#F59E0B",hoverBg:"rgba(0, 0, 0, 0.04)",sliderTrack:"#E5E7EB",sliderThumb:"#F59E0B"},Ee={bg:"var(--bg-surface)",bgSubtle:"var(--bg-subtle)",bgElevated:"var(--bg-elevated)",bgInput:"var(--bg-subtle)",border:"var(--border-subtle)",borderStrong:"var(--border-strong)",borderFocus:"var(--accent-primary)",text:"var(--text-primary)",textSecondary:"var(--text-secondary)",textMuted:"var(--text-muted)",success:"var(--accent-success)",successBg:"rgba(74, 222, 128, 0.1)",successBorder:"rgba(74, 222, 128, 0.3)",error:"var(--accent-danger)",errorBg:"rgba(239, 68, 68, 0.1)",errorBorder:"rgba(239, 68, 68, 0.3)",info:"var(--accent-secondary)",infoBg:"rgba(249, 210, 111, 0.1)",infoBorder:"rgba(249, 210, 111, 0.3)",warning:"var(--accent-secondary)",warningBg:"rgba(249, 210, 111, 0.1)",warningBorder:"rgba(249, 210, 111, 0.3)",primary:"var(--accent-secondary)",hoverBg:"var(--hover-tint)",sliderTrack:"var(--bg-elevated)",sliderThumb:"var(--accent-secondary)"},je=A.createContext({theme:Ee,isLight:!1});function Qe(){return A.useContext(je)}const Ne={type:"spring",visualDuration:.6,bounce:.25,opacity:{duration:.2,ease:"linear"}};function Se({value:t,format:r,className:n,style:o}){const[i,a]=A.useState("waiting");if(A.useEffect(()=>{const A=setTimeout(()=>a("mounted"),400);return()=>clearTimeout(A)},[]),A.useEffect(()=>{if("mounted"===i){const A=requestAnimationFrame(()=>a("animating"));return()=>cancelAnimationFrame(A)}},[i]),"waiting"===i){const A=(0).toLocaleString(void 0,r);return e.jsx("span",{className:n,style:o,children:A})}return e.jsx(kA,{className:n,style:o,format:r,transition:Ne,children:"animating"===i?t:0})}function Fe({status:t,hasData:r}){const{theme:n,isLight:o}=Qe(),i=A.useMemo(()=>"connecting"===t||"loading"===t||"processing"===t?{icon:e.jsx(gA,{className:"w-3.5 h-3.5 animate-spin"}),label:"connecting"===t?"Connecting...":"loading"===t?"Loading...":"Processing...",color:n.warning,bg:n.warningBg}:"error"===t?{icon:e.jsx(_A,{className:"w-3.5 h-3.5"}),label:"Disconnected",color:n.error,bg:n.errorBg}:r?{icon:e.jsx(HA,{className:"w-3.5 h-3.5"}),label:"Connected",color:n.success,bg:n.successBg}:{icon:e.jsx(F,{className:"w-3.5 h-3.5"}),label:"Ready",color:n.textMuted,bg:o?"rgba(0,0,0,0.04)":"rgba(255,255,255,0.04)"},[t,r,n,o]);return e.jsxs(M.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"flex items-center gap-1.5 px-2 py-1 rounded-full text-xs font-medium",style:{backgroundColor:i.bg,color:i.color},children:[i.icon,e.jsx("span",{children:i.label})]},i.label)}function Pe({status:t}){const{theme:r}=Qe(),n=A.useMemo(()=>{switch(t){case"connecting":return 25;case"loading":return 60;case"processing":return 90;default:return 0}},[t]);return 0===n?null:e.jsx(M.div,{initial:{opacity:0,scaleY:0},animate:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:0},className:"h-1 rounded-full overflow-hidden origin-top",style:{backgroundColor:r.sliderTrack},children:e.jsx(M.div,{className:"h-full rounded-full",style:{backgroundColor:r.primary},initial:{width:0},animate:{width:`${n}%`},transition:{duration:.4,ease:"easeOut"}})})}function Te({variant:t,title:r,description:n,onDismiss:o}){const{theme:i}=Qe(),a=A.useMemo(()=>{switch(t){case"success":return{icon:e.jsx(DA,{className:"w-4 h-4"}),color:i.success,bg:i.successBg,border:i.successBorder};case"error":return{icon:e.jsx(SA,{className:"w-4 h-4"}),color:i.error,bg:i.errorBg,border:i.errorBorder};case"info":return{icon:e.jsx(TA,{className:"w-4 h-4"}),color:i.info,bg:i.infoBg,border:i.infoBorder}}},[t,i]);return e.jsxs(M.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:xA.snappy,className:"flex items-start gap-3 p-3 rounded-lg border",style:{backgroundColor:a.bg,borderColor:a.border,color:a.color},children:[e.jsx("div",{className:"flex-shrink-0 mt-0.5",children:a.icon}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium",children:r}),n&&e.jsx("p",{className:"text-xs mt-0.5 opacity-80",children:n})]}),o&&e.jsx("button",{onClick:o,className:"flex-shrink-0 p-1 rounded hover:bg-black/10 transition-colors","aria-label":"Dismiss",children:e.jsx(P,{className:"w-3.5 h-3.5"})})]})}function Le({value:r,onChange:n,onSubmit:o,disabled:i}){const{theme:a,isLight:s}=Qe(),[l,c]=A.useState(!1);return e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"block text-sm font-medium",style:{color:a.textSecondary},children:"Coverage Server URL"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"url",value:r,onChange:A=>n(A.target.value),onKeyDown:A=>{"Enter"!==A.key||A.shiftKey||i||(A.preventDefault(),o())},onFocus:()=>c(!0),onBlur:()=>c(!1),placeholder:"https://coverage.wcmesh.com",disabled:i,className:t("w-full pl-3 pr-10 py-2.5 rounded-lg border text-sm transition-all duration-150","focus:outline-none",i&&"opacity-50 cursor-not-allowed"),style:{backgroundColor:a.bgInput,borderColor:l?a.borderFocus:a.border,color:a.text,boxShadow:l?"0 0 0 3px "+(s?"rgba(59, 130, 246, 0.15)":"rgba(139, 92, 246, 0.15)"):"none"}}),r&&!i&&e.jsx("button",{onClick:()=>n(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-1 rounded transition-colors",style:{color:a.textMuted},onMouseEnter:A=>A.currentTarget.style.color=a.text,onMouseLeave:A=>A.currentTarget.style.color=a.textMuted,"aria-label":"Clear URL",children:e.jsx(P,{className:"w-4 h-4"})})]}),e.jsx("p",{className:"text-xs",style:{color:a.textMuted},children:"Press Enter to connect, or use the Connect button below"})]})}function Ie({value:A,onChange:r}){const{theme:n,isLight:o}=Qe(),i=Math.round(100*A);return e.jsx(M.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:xA.gentle,className:"overflow-hidden",children:e.jsx("div",{className:"p-3 rounded-lg border",style:{backgroundColor:n.bgSubtle,borderColor:n.border},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative w-4 h-4",children:[e.jsx(h,{className:"w-4 h-4 absolute inset-0 transition-opacity",style:{color:n.textMuted,opacity:A<.5?1:0}}),e.jsx(g,{className:"w-4 h-4 absolute inset-0 transition-opacity",style:{color:n.primary,opacity:A>=.5?1:0}})]}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("span",{className:"text-xs font-medium",style:{color:n.textSecondary},children:"Layer Opacity"}),e.jsxs("span",{className:"text-xs font-mono tabular-nums px-1.5 py-0.5 rounded",style:{color:n.text,backgroundColor:o?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.06)"},children:[i,"%"]})]}),e.jsx("input",{type:"range",min:5,max:100,value:i,onChange:A=>r(Number(A.target.value)/100),className:t("w-full h-2 rounded-full appearance-none cursor-pointer","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-4","[&::-webkit-slider-thumb]:h-4","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:cursor-pointer","[&::-webkit-slider-thumb]:transition-transform","[&::-webkit-slider-thumb]:hover:scale-110","[&::-webkit-slider-thumb]:shadow-lg","[&::-moz-range-thumb]:appearance-none","[&::-moz-range-thumb]:w-4","[&::-moz-range-thumb]:h-4","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:border-0","[&::-moz-range-thumb]:cursor-pointer"),style:{background:`linear-gradient(to right, ${n.primary} ${i}%, ${n.sliderTrack} ${i}%)`,"--thumb-color":n.sliderThumb}}),e.jsx("style",{children:`\n input[type="range"]::-webkit-slider-thumb {\n background-color: ${n.sliderThumb};\n }\n input[type="range"]::-moz-range-thumb {\n background-color: ${n.sliderThumb};\n }\n `})]})]})})})}function Re({coverageCount:A,repeaterCount:t,lastUpdated:r}){const{theme:n}=Qe();return e.jsxs("div",{className:"grid grid-cols-3 gap-2 p-3 rounded-lg border",style:{backgroundColor:n.bgSubtle,borderColor:n.border},children:[e.jsxs("div",{className:"text-center",children:[e.jsx(Se,{value:A,format:{useGrouping:!0,maximumFractionDigits:0},className:"text-lg font-semibold tabular-nums block",style:{color:n.text}}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Points"})]}),e.jsxs("div",{className:"text-center border-x",style:{borderColor:n.border},children:[e.jsx(Se,{value:t,format:{useGrouping:!0,maximumFractionDigits:0},className:"text-lg font-semibold tabular-nums block",style:{color:n.text}}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Repeaters"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx(L,{className:"w-3.5 h-3.5",style:{color:n.textMuted}}),e.jsx("span",{className:"text-lg font-semibold tabular-nums",style:{color:n.text},children:r?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"—"})]}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Updated"})]})]})}function _e({icon:r,label:n,onClick:o,disabled:i,variant:a="default",active:s}){const{theme:l,isLight:c}=Qe(),u=A.useMemo(()=>"danger"===a?{text:l.error,hoverBg:c?"rgba(220, 38, 38, 0.08)":"rgba(239, 68, 68, 0.15)"}:{text:s?l.primary:l.textSecondary,hoverBg:l.hoverBg},[a,s,l,c]);return e.jsxs("button",{onClick:o,disabled:i,className:t("flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm font-medium transition-colors",i&&"opacity-50 cursor-not-allowed"),style:{color:u.text},onMouseEnter:A=>!i&&(A.currentTarget.style.backgroundColor=u.hoverBg),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",children:[r,e.jsx("span",{children:n})]})}function He(){const t=n(),r="light"===t,o=r?De:Ee,{isModalOpen:i,closeModal:a,status:s,isVisible:l,stats:c,error:u,url:d,brightness:f,loadCoverage:g,clearCoverage:h,toggleVisibility:m,setUrl:b,setBrightness:p}=Me(),v="connecting"===s||"loading"===s||"processing"===s,y=c.coverageCount>0,[w,x]=A.useState(!0),[k,C]=A.useState(d);A.useEffect(()=>{C(d)},[d]),A.useEffect(()=>{"error"===s&&x(!0)},[s]);const B=A.useCallback(async()=>{await g(k)},[k,g]),D=A.useCallback(()=>{C(""),h()},[h]),Q=A.useCallback(A=>{C(A),b(A)},[b]),N=A.useCallback(()=>{v||a()},[v,a]),L=k.trim().length>0&&!v;return e.jsx(je.Provider,{value:{theme:o,isLight:r},children:e.jsxs(S,{open:i,onClose:N,size:"md",bottomSheet:!0,basemapMode:t,children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b",style:{borderColor:o.border},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:o.bgSubtle,color:o.primary},children:e.jsx(F,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold",style:{color:o.text},children:"Wardriving Coverage"}),e.jsx("p",{className:"text-xs",style:{color:o.textMuted},children:"RF coverage heatmap overlay"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Fe,{status:s,hasData:y}),!v&&e.jsx("button",{onClick:N,className:"p-2 rounded-lg transition-colors",style:{color:o.textMuted},onMouseEnter:A=>{A.currentTarget.style.color=o.text,A.currentTarget.style.backgroundColor=o.hoverBg},onMouseLeave:A=>{A.currentTarget.style.color=o.textMuted,A.currentTarget.style.backgroundColor="transparent"},"aria-label":"Close",children:e.jsx(P,{className:"w-5 h-5"})})]})]}),e.jsx(E,{children:v&&e.jsx(Pe,{status:s})}),e.jsxs(T,{className:"space-y-4",children:[e.jsx(Le,{value:k,onChange:Q,onSubmit:B,disabled:v}),e.jsx(E,{children:"error"===s&&u&&w&&e.jsx(Te,{variant:"error",title:"Connection Failed",description:u,onDismiss:()=>x(!1)})}),e.jsx(E,{children:"success"===s&&y&&e.jsx(Te,{variant:"success",title:"Coverage Data Loaded",description:"Adjust opacity below, then close to view on map"})}),e.jsx(E,{children:y&&!v&&e.jsx(M.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:xA.snappy,children:e.jsx(Re,{coverageCount:c.coverageCount,repeaterCount:c.repeaterCount,lastUpdated:c.lastUpdated})})}),e.jsx(E,{children:y&&!v&&e.jsx(Ie,{value:f,onChange:p})})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border-t",style:{borderColor:o.border},children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(E,{children:y&&e.jsxs(M.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:xA.snappy,className:"flex items-center gap-1",children:[e.jsx(_e,{icon:l?e.jsx(FA,{className:"w-4 h-4"}):e.jsx(cA,{className:"w-4 h-4"}),label:l?"Hide":"Show",onClick:m,disabled:v,active:l}),e.jsx(_e,{icon:e.jsx($,{className:"w-4 h-4"}),label:"Clear",onClick:D,disabled:v,variant:"danger"})]})})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(j,{plain:!0,color:"muted",onClick:N,disabled:v,children:y?"Done":"Cancel"}),e.jsx(j,{color:"warning",onClick:B,disabled:!L,children:v?e.jsxs(e.Fragment,{children:[e.jsx(gA,{"data-slot":"icon",className:"animate-spin"}),"connecting"===s?"Connecting...":"loading"===s?"Loading...":"Processing..."]}):y?e.jsxs(e.Fragment,{children:[e.jsx(lA,{"data-slot":"icon"}),"Refresh"]}):e.jsxs(e.Fragment,{children:[e.jsx(rA,{"data-slot":"icon"}),"Connect"]})})]})]})]})})}const ze={bandwidth:.07,threshold:.1,opacity:1,strokeWidth:4.5},Ge="#1A1A1A",Ue="#4A4A4A",Oe="#737373",Ye="rgba(0, 0, 0, 0.12)";function Ve({label:A,value:t,min:r,max:n,step:o,unit:i,formatValue:a,onChange:s,isLightMode:l}){const c=a?a(t):t.toFixed(2);return e.jsxs("div",{className:"flex items-center gap-2 sm:gap-2",children:[e.jsx("span",{className:"text-xs font-medium w-14 sm:w-16 flex-shrink-0",style:l?{color:Ue}:{color:"var(--text-secondary)"},children:A}),e.jsx("input",{type:"range",min:r,max:n,step:o,value:t,onChange:A=>s(parseFloat(A.target.value)),className:"flex-1 h-1.5 rounded-full appearance-none cursor-pointer\n [&::-webkit-slider-thumb]:appearance-none\n [&::-webkit-slider-thumb]:w-3.5\n [&::-webkit-slider-thumb]:h-3.5\n [&::-webkit-slider-thumb]:rounded-full\n [&::-webkit-slider-thumb]:bg-accent-secondary\n [&::-webkit-slider-thumb]:cursor-pointer\n [&::-webkit-slider-thumb]:transition-transform\n [&::-webkit-slider-thumb]:hover:scale-110\n [&::-webkit-slider-thumb]:shadow-md",style:l?{backgroundColor:"rgba(0, 0, 0, 0.12)"}:{backgroundColor:"var(--bg-elevated)"}}),e.jsxs("span",{className:"text-xs font-mono tabular-nums w-12 sm:w-14 text-right flex-shrink-0",style:l?{color:Ge}:{color:"var(--text-muted)"},children:[c,i&&e.jsx("span",{className:"ml-0.5 opacity-70",style:l?{color:Oe}:void 0,children:i})]})]})}function We({icon:A,label:t,value:r,subtext:n,isLightMode:o}){return e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 py-0.5 sm:py-1",children:[e.jsx("div",{style:o?{color:Oe}:{color:"var(--text-muted)"},children:A}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"text-[10px] sm:text-xs truncate",style:o?{color:Ue}:{color:"var(--text-secondary)"},children:t})}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-xs font-mono tabular-nums",style:o?{color:Ge}:{color:"var(--text-primary)"},children:r}),n&&e.jsx("div",{className:"text-[9px] leading-tight opacity-70",style:o?{color:Oe}:{color:"var(--text-muted)"},children:n})]})]})}function Ze({visible:t,onClose:r,settings:n,onSettingsChange:o,partition:i,totalNodes:a,basemapMode:s="dark"}){const l=p(UA),c=A.useRef(null),u="light"===s,d=A.useMemo(()=>{if(!i)return{numCommunities:0,avgCommunitySize:0,minCommunitySize:0,maxCommunitySize:0,fiedlerValue:0,modularity:0,coveragePercent:0};const A=Array.from(i.communities.values()).map(A=>A.length),e=A.reduce((A,e)=>A+e,0);return{numCommunities:i.numCommunities,avgCommunitySize:A.length>0?Math.round(e/A.length):0,minCommunitySize:A.length>0?Math.min(...A):0,maxCommunitySize:A.length>0?Math.max(...A):0,fiedlerValue:i.fiedlerValue,modularity:0,coveragePercent:a>0?Math.round(e/a*100):0}},[i,a]),f=(A,e)=>{o({...n,[A]:e})},g=(111*n.bandwidth).toFixed(1);return e.jsx("div",{ref:c,className:"absolute inset-0 z-[600] pointer-events-none",children:e.jsx(E,{children:t&&e.jsx(M.div,{drag:!0,dragControls:l,dragConstraints:c,dragElastic:.1,dragMomentum:!1,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",damping:25,stiffness:300},className:"\n absolute pointer-events-auto\n /* Mobile: bottom sheet style, full width with margins */\n bottom-2 left-2 right-2\n /* sm+: floating panel in bottom-right */\n sm:bottom-16 sm:left-auto sm:right-3 sm:w-64\n /* md+: slightly wider */\n md:w-72\n ",style:{touchAction:"none"},children:e.jsxs("div",{className:"\n map-control-glass rounded-lg overflow-hidden shadow-lg\n /* Mobile: limit height, allow scroll */\n max-h-[45vh] sm:max-h-[calc(100vh-180px)] overflow-y-auto\n /* iOS momentum scrolling */\n overscroll-contain\n ",children:[e.jsxs("div",{className:"\n flex items-center justify-between \n px-3 py-2 sm:px-2.5 sm:py-1.5 \n border-b \n cursor-grab active:cursor-grabbing\n /* Larger touch target on mobile */\n min-h-[44px] sm:min-h-0\n ",style:u?{borderColor:Ye}:void 0,onPointerDown:A=>l.start(A),children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-1.5",children:[e.jsx(PA,{className:"w-4 h-4 sm:w-3 sm:h-3",style:u?{color:Oe}:void 0}),e.jsx(NA,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5 text-accent-primary"}),e.jsx("span",{className:"text-sm sm:text-xs font-medium",style:u?{color:Ge}:void 0,children:"Partition"})]}),e.jsx(j,{plain:!0,color:"muted",onClick:r,className:"!p-1.5 sm:!p-0.5 !rounded min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 flex items-center justify-center","aria-label":"Close toolbox",children:e.jsx(P,{className:"w-4 h-4 sm:w-3 sm:h-3"})})]}),e.jsx("div",{className:"px-3 py-2 sm:px-2.5 sm:py-1.5 border-b",style:u?{borderColor:Ye}:void 0,children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 sm:gap-x-3 gap-y-1 sm:gap-y-0.5",children:[e.jsx(We,{icon:e.jsx(NA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Communities",value:d.numCommunities,isLightMode:u}),e.jsx(We,{icon:e.jsx(jA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Avg Size",value:d.avgCommunitySize,subtext:`${d.minCommunitySize}–${d.maxCommunitySize}`,isLightMode:u}),e.jsx(We,{icon:e.jsx(IA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Fiedler λ₂",value:d.fiedlerValue.toFixed(3),isLightMode:u}),e.jsx(We,{icon:e.jsx(jA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Coverage",value:`${d.coveragePercent}%`,subtext:`of ${a}`,isLightMode:u})]})}),e.jsx("div",{className:"px-3 py-2 sm:px-2.5 sm:py-1.5",children:e.jsxs("div",{className:"space-y-3 sm:space-y-1.5",children:[e.jsx(Ve,{label:"Bandwidth",value:n.bandwidth,min:.01,max:.15,step:.005,formatValue:()=>g,unit:"km",onChange:A=>f("bandwidth",A),isLightMode:u}),e.jsx(Ve,{label:"Threshold",value:n.threshold,min:.05,max:.5,step:.01,formatValue:A=>`${Math.round(100*(1-A))}%`,unit:"cov",onChange:A=>f("threshold",A),isLightMode:u}),e.jsx(Ve,{label:"Opacity",value:n.opacity,min:.1,max:1,step:.05,formatValue:A=>`${Math.round(100*A)}%`,onChange:A=>f("opacity",A),isLightMode:u}),e.jsx(Ve,{label:"Stroke",value:n.strokeWidth,min:0,max:5,step:.5,unit:"px",formatValue:A=>A.toFixed(1),onChange:A=>f("strokeWidth",A),isLightMode:u})]})})]})})})})}const Ke={getItem:A=>{try{return localStorage.getItem(A)}catch{return null}},setItem:(A,e)=>{try{localStorage.setItem(A,e)}catch{}},removeItem:A=>{try{localStorage.removeItem(A)}catch{}}},Je=CA()(BA(A=>({isEnabled:!1,toggle:()=>A(A=>({isEnabled:!A.isEnabled})),setEnabled:e=>A({isEnabled:e})}),{name:"pymc-live-trace",storage:MA(()=>Ke)}));var qe=function(A){var e,t=void 0!==(A=A||{})?A:{},r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);var n,o="";"undefined"!=typeof document&&document.currentScript&&(o=document.currentScript.src),o=0!==o.indexOf("blob:")?o.substr(0,o.lastIndexOf("/")+1):"",n=function(A,e,t){var r=new XMLHttpRequest;r.open("GET",A,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)e(r.response);else{var n=U(A);n?e(n.buffer):t()}},r.onerror=t,r.send(null)};var i=t.print||function(){}.bind(),a=t.printErr||function(){}.bind();for(e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);r=null,t.arguments&&t.arguments;var s=0,l=!1;function c(A){var e=t["_"+A];return e||tA("Assertion failed: "+("Cannot call unknown function "+A+", make sure it is exported")),e}var u,d,f,g,h,m,b,p="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function v(A,e){return A?function(A,e,t){for(var r=e+t,n=e;A[n]&&!(n>=r);)++n;if(n-e>16&&A.subarray&&p)return p.decode(A.subarray(e,n));for(var o="";e>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o}(f,A,e):""}function y(A,e){return A%e>0&&(A+=e-A%e),A}function w(A){u=A,t.HEAP8=d=new Int8Array(A),t.HEAP16=g=new Int16Array(A),t.HEAP32=h=new Int32Array(A),t.HEAPU8=f=new Uint8Array(A),t.HEAPU16=new Uint16Array(A),t.HEAPU32=new Uint32Array(A),t.HEAPF32=m=new Float32Array(A),t.HEAPF64=b=new Float64Array(A)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var x=t.TOTAL_MEMORY||33554432;function k(A){for(;A.length>0;){var e=A.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?t.dynCall_v(r):t.dynCall_vi(r,e.arg):r(void 0===e.arg?null:e.arg)}else e()}}x=(u=t.buffer?t.buffer:new ArrayBuffer(x)).byteLength,w(u),h[7156]=5271536;var C=[],B=[],M=[],D=[];function E(A){C.unshift(A)}function j(A){D.unshift(A)}var Q=Math.abs,N=Math.ceil,S=Math.floor,F=Math.min,P=0,T=null;t.preloadedImages={},t.preloadedAudios={};var L,I,R=null,_="data:application/octet-stream;base64,";function H(A){return String.prototype.startsWith?A.startsWith(_):0===A.indexOf(_)}function z(){return d.length}R="data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAAAQAAAAQAAAADAAAABgAAAAUAAAACAAAAAAAAAAIAAAADAAAAAQAAAAQAAAAGAAAAAAAAAAUAAAADAAAABgAAAAQAAAAFAAAAAAAAAAEAAAACAAAABAAAAAUAAAAGAAAAAAAAAAIAAAADAAAAAQAAAAUAAAACAAAAAAAAAAEAAAADAAAABgAAAAQAAAAGAAAAAAAAAAUAAAACAAAAAQAAAAQAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAAAAAAEAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAYAAAAAAAAABQAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAYAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAYAAAAAAAAAAwAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAFAAAABAAAAAAAAAABAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAYAAAAAAAAABAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAgAAAAQAAAADAAAACAAAAAEAAAAHAAAABgAAAAkAAAAAAAAAAwAAAAIAAAACAAAABgAAAAoAAAALAAAAAAAAAAEAAAAFAAAAAwAAAA0AAAABAAAABwAAAAQAAAAMAAAAAAAAAAQAAAB/AAAADwAAAAgAAAADAAAAAAAAAAwAAAAFAAAAAgAAABIAAAAKAAAACAAAAAAAAAAQAAAABgAAAA4AAAALAAAAEQAAAAEAAAAJAAAAAgAAAAcAAAAVAAAACQAAABMAAAADAAAADQAAAAEAAAAIAAAABQAAABYAAAAQAAAABAAAAAAAAAAPAAAACQAAABMAAAAOAAAAFAAAAAEAAAAHAAAABgAAAAoAAAALAAAAGAAAABcAAAAFAAAAAgAAABIAAAALAAAAEQAAABcAAAAZAAAAAgAAAAYAAAAKAAAADAAAABwAAAANAAAAGgAAAAQAAAAPAAAAAwAAAA0AAAAaAAAAFQAAAB0AAAADAAAADAAAAAcAAAAOAAAAfwAAABEAAAAbAAAACQAAABQAAAAGAAAADwAAABYAAAAcAAAAHwAAAAQAAAAIAAAADAAAABAAAAASAAAAIQAAAB4AAAAIAAAABQAAABYAAAARAAAACwAAAA4AAAAGAAAAIwAAABkAAAAbAAAAEgAAABgAAAAeAAAAIAAAAAUAAAAKAAAAEAAAABMAAAAiAAAAFAAAACQAAAAHAAAAFQAAAAkAAAAUAAAADgAAABMAAAAJAAAAKAAAABsAAAAkAAAAFQAAACYAAAATAAAAIgAAAA0AAAAdAAAABwAAABYAAAAQAAAAKQAAACEAAAAPAAAACAAAAB8AAAAXAAAAGAAAAAsAAAAKAAAAJwAAACUAAAAZAAAAGAAAAH8AAAAgAAAAJQAAAAoAAAAXAAAAEgAAABkAAAAXAAAAEQAAAAsAAAAtAAAAJwAAACMAAAAaAAAAKgAAAB0AAAArAAAADAAAABwAAAANAAAAGwAAACgAAAAjAAAALgAAAA4AAAAUAAAAEQAAABwAAAAfAAAAKgAAACwAAAAMAAAADwAAABoAAAAdAAAAKwAAACYAAAAvAAAADQAAABoAAAAVAAAAHgAAACAAAAAwAAAAMgAAABAAAAASAAAAIQAAAB8AAAApAAAALAAAADUAAAAPAAAAFgAAABwAAAAgAAAAHgAAABgAAAASAAAANAAAADIAAAAlAAAAIQAAAB4AAAAxAAAAMAAAABYAAAAQAAAAKQAAACIAAAATAAAAJgAAABUAAAA2AAAAJAAAADMAAAAjAAAALgAAAC0AAAA4AAAAEQAAABsAAAAZAAAAJAAAABQAAAAiAAAAEwAAADcAAAAoAAAANgAAACUAAAAnAAAANAAAADkAAAAYAAAAFwAAACAAAAAmAAAAfwAAACIAAAAzAAAAHQAAAC8AAAAVAAAAJwAAACUAAAAZAAAAFwAAADsAAAA5AAAALQAAACgAAAAbAAAAJAAAABQAAAA8AAAALgAAADcAAAApAAAAMQAAADUAAAA9AAAAFgAAACEAAAAfAAAAKgAAADoAAAArAAAAPgAAABwAAAAsAAAAGgAAACsAAAA+AAAALwAAAEAAAAAaAAAAKgAAAB0AAAAsAAAANQAAADoAAABBAAAAHAAAAB8AAAAqAAAALQAAACcAAAAjAAAAGQAAAD8AAAA7AAAAOAAAAC4AAAA8AAAAOAAAAEQAAAAbAAAAKAAAACMAAAAvAAAAJgAAACsAAAAdAAAARQAAADMAAABAAAAAMAAAADEAAAAeAAAAIQAAAEMAAABCAAAAMgAAADEAAAB/AAAAPQAAAEIAAAAhAAAAMAAAACkAAAAyAAAAMAAAACAAAAAeAAAARgAAAEMAAAA0AAAAMwAAAEUAAAA2AAAARwAAACYAAAAvAAAAIgAAADQAAAA5AAAARgAAAEoAAAAgAAAAJQAAADIAAAA1AAAAPQAAAEEAAABLAAAAHwAAACkAAAAsAAAANgAAAEcAAAA3AAAASQAAACIAAAAzAAAAJAAAADcAAAAoAAAANgAAACQAAABIAAAAPAAAAEkAAAA4AAAARAAAAD8AAABNAAAAIwAAAC4AAAAtAAAAOQAAADsAAABKAAAATgAAACUAAAAnAAAANAAAADoAAAB/AAAAPgAAAEwAAAAsAAAAQQAAACoAAAA7AAAAPwAAAE4AAABPAAAAJwAAAC0AAAA5AAAAPAAAAEgAAABEAAAAUAAAACgAAAA3AAAALgAAAD0AAAA1AAAAMQAAACkAAABRAAAASwAAAEIAAAA+AAAAKwAAADoAAAAqAAAAUgAAAEAAAABMAAAAPwAAAH8AAAA4AAAALQAAAE8AAAA7AAAATQAAAEAAAAAvAAAAPgAAACsAAABUAAAARQAAAFIAAABBAAAAOgAAADUAAAAsAAAAVgAAAEwAAABLAAAAQgAAAEMAAABRAAAAVQAAADEAAAAwAAAAPQAAAEMAAABCAAAAMgAAADAAAABXAAAAVQAAAEYAAABEAAAAOAAAADwAAAAuAAAAWgAAAE0AAABQAAAARQAAADMAAABAAAAALwAAAFkAAABHAAAAVAAAAEYAAABDAAAANAAAADIAAABTAAAAVwAAAEoAAABHAAAAWQAAAEkAAABbAAAAMwAAAEUAAAA2AAAASAAAAH8AAABJAAAANwAAAFAAAAA8AAAAWAAAAEkAAABbAAAASAAAAFgAAAA2AAAARwAAADcAAABKAAAATgAAAFMAAABcAAAANAAAADkAAABGAAAASwAAAEEAAAA9AAAANQAAAF4AAABWAAAAUQAAAEwAAABWAAAAUgAAAGAAAAA6AAAAQQAAAD4AAABNAAAAPwAAAEQAAAA4AAAAXQAAAE8AAABaAAAATgAAAEoAAAA7AAAAOQAAAF8AAABcAAAATwAAAE8AAABOAAAAPwAAADsAAABdAAAAXwAAAE0AAABQAAAARAAAAEgAAAA8AAAAYwAAAFoAAABYAAAAUQAAAFUAAABeAAAAZQAAAD0AAABCAAAASwAAAFIAAABgAAAAVAAAAGIAAAA+AAAATAAAAEAAAABTAAAAfwAAAEoAAABGAAAAZAAAAFcAAABcAAAAVAAAAEUAAABSAAAAQAAAAGEAAABZAAAAYgAAAFUAAABXAAAAZQAAAGYAAABCAAAAQwAAAFEAAABWAAAATAAAAEsAAABBAAAAaAAAAGAAAABeAAAAVwAAAFMAAABmAAAAZAAAAEMAAABGAAAAVQAAAFgAAABIAAAAWwAAAEkAAABjAAAAUAAAAGkAAABZAAAAYQAAAFsAAABnAAAARQAAAFQAAABHAAAAWgAAAE0AAABQAAAARAAAAGoAAABdAAAAYwAAAFsAAABJAAAAWQAAAEcAAABpAAAAWAAAAGcAAABcAAAAUwAAAE4AAABKAAAAbAAAAGQAAABfAAAAXQAAAE8AAABaAAAATQAAAG0AAABfAAAAagAAAF4AAABWAAAAUQAAAEsAAABrAAAAaAAAAGUAAABfAAAAXAAAAE8AAABOAAAAbQAAAGwAAABdAAAAYAAAAGgAAABiAAAAbgAAAEwAAABWAAAAUgAAAGEAAAB/AAAAYgAAAFQAAABnAAAAWQAAAG8AAABiAAAAbgAAAGEAAABvAAAAUgAAAGAAAABUAAAAYwAAAFAAAABpAAAAWAAAAGoAAABaAAAAcQAAAGQAAABmAAAAUwAAAFcAAABsAAAAcgAAAFwAAABlAAAAZgAAAGsAAABwAAAAUQAAAFUAAABeAAAAZgAAAGUAAABXAAAAVQAAAHIAAABwAAAAZAAAAGcAAABbAAAAYQAAAFkAAAB0AAAAaQAAAG8AAABoAAAAawAAAG4AAABzAAAAVgAAAF4AAABgAAAAaQAAAFgAAABnAAAAWwAAAHEAAABjAAAAdAAAAGoAAABdAAAAYwAAAFoAAAB1AAAAbQAAAHEAAABrAAAAfwAAAGUAAABeAAAAcwAAAGgAAABwAAAAbAAAAGQAAABfAAAAXAAAAHYAAAByAAAAbQAAAG0AAABsAAAAXQAAAF8AAAB1AAAAdgAAAGoAAABuAAAAYgAAAGgAAABgAAAAdwAAAG8AAABzAAAAbwAAAGEAAABuAAAAYgAAAHQAAABnAAAAdwAAAHAAAABrAAAAZgAAAGUAAAB4AAAAcwAAAHIAAABxAAAAYwAAAHQAAABpAAAAdQAAAGoAAAB5AAAAcgAAAHAAAABkAAAAZgAAAHYAAAB4AAAAbAAAAHMAAABuAAAAawAAAGgAAAB4AAAAdwAAAHAAAAB0AAAAZwAAAHcAAABvAAAAcQAAAGkAAAB5AAAAdQAAAH8AAABtAAAAdgAAAHEAAAB5AAAAagAAAHYAAAB4AAAAbAAAAHIAAAB1AAAAeQAAAG0AAAB3AAAAbwAAAHMAAABuAAAAeQAAAHQAAAB4AAAAeAAAAHMAAAByAAAAcAAAAHkAAAB3AAAAdgAAAHkAAAB0AAAAeAAAAHcAAAB1AAAAcQAAAHYAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAACAAAABQAAAAEAAAAAAAAA/////wEAAAAAAAAAAwAAAAQAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAUAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABAAAAAUAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAUAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAD//////////wEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAAAAAAAAAAABAAAAAgAAAAYAAAAEAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAAAAAAAAAAAAQAAAAEAAAAFAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAAAAAAAAAAABAAAAAwAAAAcAAAAGAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADgAAAAIAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAAAAAAAAAAAAAEAAAAEAAAACAAAAAoAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAAAAAAAAAAAAQAAAAsAAAAPAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAIAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAAAAAAAAAAAAQAAAAwAAAAQAAAADAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAAAAAAAAAAABAAAACgAAABMAAAAIAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAAAAAAAAAAAAAEAAAANAAAAEQAAAA0AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAACAAAAAAAAAAAAAAABAAAADgAAABIAAAAPAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAADwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABIAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAAAAAAAAQAAAP//////////EwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAASAAAAAAAAABgAAAAAAAAAIQAAAAAAAAAeAAAAAAAAACAAAAADAAAAMQAAAAEAAAAwAAAAAwAAADIAAAADAAAACAAAAAAAAAAFAAAABQAAAAoAAAAFAAAAFgAAAAAAAAAQAAAAAAAAABIAAAAAAAAAKQAAAAEAAAAhAAAAAAAAAB4AAAAAAAAABAAAAAAAAAAAAAAABQAAAAIAAAAFAAAADwAAAAEAAAAIAAAAAAAAAAUAAAAFAAAAHwAAAAEAAAAWAAAAAAAAABAAAAAAAAAAAgAAAAAAAAAGAAAAAAAAAA4AAAAAAAAACgAAAAAAAAALAAAAAAAAABEAAAADAAAAGAAAAAEAAAAXAAAAAwAAABkAAAADAAAAAAAAAAAAAAABAAAABQAAAAkAAAAFAAAABQAAAAAAAAACAAAAAAAAAAYAAAAAAAAAEgAAAAEAAAAKAAAAAAAAAAsAAAAAAAAABAAAAAEAAAADAAAABQAAAAcAAAAFAAAACAAAAAEAAAAAAAAAAAAAAAEAAAAFAAAAEAAAAAEAAAAFAAAAAAAAAAIAAAAAAAAABwAAAAAAAAAVAAAAAAAAACYAAAAAAAAACQAAAAAAAAATAAAAAAAAACIAAAADAAAADgAAAAEAAAAUAAAAAwAAACQAAAADAAAAAwAAAAAAAAANAAAABQAAAB0AAAAFAAAAAQAAAAAAAAAHAAAAAAAAABUAAAAAAAAABgAAAAEAAAAJAAAAAAAAABMAAAAAAAAABAAAAAIAAAAMAAAABQAAABoAAAAFAAAAAAAAAAEAAAADAAAAAAAAAA0AAAAFAAAAAgAAAAEAAAABAAAAAAAAAAcAAAAAAAAAGgAAAAAAAAAqAAAAAAAAADoAAAAAAAAAHQAAAAAAAAArAAAAAAAAAD4AAAADAAAAJgAAAAEAAAAvAAAAAwAAAEAAAAADAAAADAAAAAAAAAAcAAAABQAAACwAAAAFAAAADQAAAAAAAAAaAAAAAAAAACoAAAAAAAAAFQAAAAEAAAAdAAAAAAAAACsAAAAAAAAABAAAAAMAAAAPAAAABQAAAB8AAAAFAAAAAwAAAAEAAAAMAAAAAAAAABwAAAAFAAAABwAAAAEAAAANAAAAAAAAABoAAAAAAAAAHwAAAAAAAAApAAAAAAAAADEAAAAAAAAALAAAAAAAAAA1AAAAAAAAAD0AAAADAAAAOgAAAAEAAABBAAAAAwAAAEsAAAADAAAADwAAAAAAAAAWAAAABQAAACEAAAAFAAAAHAAAAAAAAAAfAAAAAAAAACkAAAAAAAAAKgAAAAEAAAAsAAAAAAAAADUAAAAAAAAABAAAAAQAAAAIAAAABQAAABAAAAAFAAAADAAAAAEAAAAPAAAAAAAAABYAAAAFAAAAGgAAAAEAAAAcAAAAAAAAAB8AAAAAAAAAMgAAAAAAAAAwAAAAAAAAADEAAAADAAAAIAAAAAAAAAAeAAAAAwAAACEAAAADAAAAGAAAAAMAAAASAAAAAwAAABAAAAADAAAARgAAAAAAAABDAAAAAAAAAEIAAAADAAAANAAAAAMAAAAyAAAAAAAAADAAAAAAAAAAJQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAUwAAAAAAAABXAAAAAwAAAFUAAAADAAAASgAAAAMAAABGAAAAAAAAAEMAAAAAAAAAOQAAAAEAAAA0AAAAAwAAADIAAAAAAAAAGQAAAAAAAAAXAAAAAAAAABgAAAADAAAAEQAAAAAAAAALAAAAAwAAAAoAAAADAAAADgAAAAMAAAAGAAAAAwAAAAIAAAADAAAALQAAAAAAAAAnAAAAAAAAACUAAAADAAAAIwAAAAMAAAAZAAAAAAAAABcAAAAAAAAAGwAAAAMAAAARAAAAAAAAAAsAAAADAAAAPwAAAAAAAAA7AAAAAwAAADkAAAADAAAAOAAAAAMAAAAtAAAAAAAAACcAAAAAAAAALgAAAAMAAAAjAAAAAwAAABkAAAAAAAAAJAAAAAAAAAAUAAAAAAAAAA4AAAADAAAAIgAAAAAAAAATAAAAAwAAAAkAAAADAAAAJgAAAAMAAAAVAAAAAwAAAAcAAAADAAAANwAAAAAAAAAoAAAAAAAAABsAAAADAAAANgAAAAMAAAAkAAAAAAAAABQAAAAAAAAAMwAAAAMAAAAiAAAAAAAAABMAAAADAAAASAAAAAAAAAA8AAAAAwAAAC4AAAADAAAASQAAAAMAAAA3AAAAAAAAACgAAAAAAAAARwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAQAAAAAAAAAAvAAAAAAAAACYAAAADAAAAPgAAAAAAAAArAAAAAwAAAB0AAAADAAAAOgAAAAMAAAAqAAAAAwAAABoAAAADAAAAVAAAAAAAAABFAAAAAAAAADMAAAADAAAAUgAAAAMAAABAAAAAAAAAAC8AAAAAAAAATAAAAAMAAAA+AAAAAAAAACsAAAADAAAAYQAAAAAAAABZAAAAAwAAAEcAAAADAAAAYgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAYAAAAAMAAABSAAAAAwAAAEAAAAAAAAAASwAAAAAAAABBAAAAAAAAADoAAAADAAAAPQAAAAAAAAA1AAAAAwAAACwAAAADAAAAMQAAAAMAAAApAAAAAwAAAB8AAAADAAAAXgAAAAAAAABWAAAAAAAAAEwAAAADAAAAUQAAAAMAAABLAAAAAAAAAEEAAAAAAAAAQgAAAAMAAAA9AAAAAAAAADUAAAADAAAAawAAAAAAAABoAAAAAwAAAGAAAAADAAAAZQAAAAMAAABeAAAAAAAAAFYAAAAAAAAAVQAAAAMAAABRAAAAAwAAAEsAAAAAAAAAOQAAAAAAAAA7AAAAAAAAAD8AAAADAAAASgAAAAAAAABOAAAAAwAAAE8AAAADAAAAUwAAAAMAAABcAAAAAwAAAF8AAAADAAAAJQAAAAAAAAAnAAAAAwAAAC0AAAADAAAANAAAAAAAAAA5AAAAAAAAADsAAAAAAAAARgAAAAMAAABKAAAAAAAAAE4AAAADAAAAGAAAAAAAAAAXAAAAAwAAABkAAAADAAAAIAAAAAMAAAAlAAAAAAAAACcAAAADAAAAMgAAAAMAAAA0AAAAAAAAADkAAAAAAAAALgAAAAAAAAA8AAAAAAAAAEgAAAADAAAAOAAAAAAAAABEAAAAAwAAAFAAAAADAAAAPwAAAAMAAABNAAAAAwAAAFoAAAADAAAAGwAAAAAAAAAoAAAAAwAAADcAAAADAAAAIwAAAAAAAAAuAAAAAAAAADwAAAAAAAAALQAAAAMAAAA4AAAAAAAAAEQAAAADAAAADgAAAAAAAAAUAAAAAwAAACQAAAADAAAAEQAAAAMAAAAbAAAAAAAAACgAAAADAAAAGQAAAAMAAAAjAAAAAAAAAC4AAAAAAAAARwAAAAAAAABZAAAAAAAAAGEAAAADAAAASQAAAAAAAABbAAAAAwAAAGcAAAADAAAASAAAAAMAAABYAAAAAwAAAGkAAAADAAAAMwAAAAAAAABFAAAAAwAAAFQAAAADAAAANgAAAAAAAABHAAAAAAAAAFkAAAAAAAAANwAAAAMAAABJAAAAAAAAAFsAAAADAAAAJgAAAAAAAAAvAAAAAwAAAEAAAAADAAAAIgAAAAMAAAAzAAAAAAAAAEUAAAADAAAAJAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAYAAAAAAAAABoAAAAAAAAAGsAAAADAAAAYgAAAAAAAABuAAAAAwAAAHMAAAADAAAAYQAAAAMAAABvAAAAAwAAAHcAAAADAAAATAAAAAAAAABWAAAAAwAAAF4AAAADAAAAUgAAAAAAAABgAAAAAAAAAGgAAAAAAAAAVAAAAAMAAABiAAAAAAAAAG4AAAADAAAAOgAAAAAAAABBAAAAAwAAAEsAAAADAAAAPgAAAAMAAABMAAAAAAAAAFYAAAADAAAAQAAAAAMAAABSAAAAAAAAAGAAAAAAAAAAVQAAAAAAAABXAAAAAAAAAFMAAAADAAAAZQAAAAAAAABmAAAAAwAAAGQAAAADAAAAawAAAAMAAABwAAAAAwAAAHIAAAADAAAAQgAAAAAAAABDAAAAAwAAAEYAAAADAAAAUQAAAAAAAABVAAAAAAAAAFcAAAAAAAAAXgAAAAMAAABlAAAAAAAAAGYAAAADAAAAMQAAAAAAAAAwAAAAAwAAADIAAAADAAAAPQAAAAMAAABCAAAAAAAAAEMAAAADAAAASwAAAAMAAABRAAAAAAAAAFUAAAAAAAAAXwAAAAAAAABcAAAAAAAAAFMAAAAAAAAATwAAAAAAAABOAAAAAAAAAEoAAAADAAAAPwAAAAEAAAA7AAAAAwAAADkAAAADAAAAbQAAAAAAAABsAAAAAAAAAGQAAAAFAAAAXQAAAAEAAABfAAAAAAAAAFwAAAAAAAAATQAAAAEAAABPAAAAAAAAAE4AAAAAAAAAdQAAAAQAAAB2AAAABQAAAHIAAAAFAAAAagAAAAEAAABtAAAAAAAAAGwAAAAAAAAAWgAAAAEAAABdAAAAAQAAAF8AAAAAAAAAWgAAAAAAAABNAAAAAAAAAD8AAAAAAAAAUAAAAAAAAABEAAAAAAAAADgAAAADAAAASAAAAAEAAAA8AAAAAwAAAC4AAAADAAAAagAAAAAAAABdAAAAAAAAAE8AAAAFAAAAYwAAAAEAAABaAAAAAAAAAE0AAAAAAAAAWAAAAAEAAABQAAAAAAAAAEQAAAAAAAAAdQAAAAMAAABtAAAABQAAAF8AAAAFAAAAcQAAAAEAAABqAAAAAAAAAF0AAAAAAAAAaQAAAAEAAABjAAAAAQAAAFoAAAAAAAAAaQAAAAAAAABYAAAAAAAAAEgAAAAAAAAAZwAAAAAAAABbAAAAAAAAAEkAAAADAAAAYQAAAAEAAABZAAAAAwAAAEcAAAADAAAAcQAAAAAAAABjAAAAAAAAAFAAAAAFAAAAdAAAAAEAAABpAAAAAAAAAFgAAAAAAAAAbwAAAAEAAABnAAAAAAAAAFsAAAAAAAAAdQAAAAIAAABqAAAABQAAAFoAAAAFAAAAeQAAAAEAAABxAAAAAAAAAGMAAAAAAAAAdwAAAAEAAAB0AAAAAQAAAGkAAAAAAAAAdwAAAAAAAABvAAAAAAAAAGEAAAAAAAAAcwAAAAAAAABuAAAAAAAAAGIAAAADAAAAawAAAAEAAABoAAAAAwAAAGAAAAADAAAAeQAAAAAAAAB0AAAAAAAAAGcAAAAFAAAAeAAAAAEAAAB3AAAAAAAAAG8AAAAAAAAAcAAAAAEAAABzAAAAAAAAAG4AAAAAAAAAdQAAAAEAAABxAAAABQAAAGkAAAAFAAAAdgAAAAEAAAB5AAAAAAAAAHQAAAAAAAAAcgAAAAEAAAB4AAAAAQAAAHcAAAAAAAAAcgAAAAAAAABwAAAAAAAAAGsAAAAAAAAAZAAAAAAAAABmAAAAAAAAAGUAAAADAAAAUwAAAAEAAABXAAAAAwAAAFUAAAADAAAAdgAAAAAAAAB4AAAAAAAAAHMAAAAFAAAAbAAAAAEAAAByAAAAAAAAAHAAAAAAAAAAXAAAAAEAAABkAAAAAAAAAGYAAAAAAAAAdQAAAAAAAAB5AAAABQAAAHcAAAAFAAAAbQAAAAEAAAB2AAAAAAAAAHgAAAAAAAAAXwAAAAEAAABsAAAAAQAAAHIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGAAAAAgAAAAUAAAABAAAABAAAAAAAAAAAAAAABQAAAAMAAAABAAAABgAAAAQAAAACAAAAAAAAAH6iBfbytuk/Gq6akm/58z/Xrm0Liez0P5doSdOpSwRAWs602ULg8D/dT7Rcbo/1v1N1RQHFNOM/g9Snx7HW3L8HWsP8Q3jfP6VwOLosutk/9rjk1YQcxj+gnmKMsNn6P/HDeuPFY+M/YHwDjqKhB0Ci19/fCVrbP4UxKkDWOP6/pvljWa09tL9wi7wrQXjnv/Z6yLImkM2/3yTlOzY14D+m+WNZrT20PzwKVQnrQwNA9nrIsiaQzT/g40rFrRQFwPa45NWEHMa/kbslHEZq97/xw3rjxWPjv4cLC2SMBci/otff3wla27+rKF5oIAv0P1N1RQHFNOO/iDJPGyWHBUAHWsP8Q3jfvwQf/by16gXAfqIF9vK26b8XrO0Vh0r+v9eubQuJ7PS/BxLrA0ZZ479azrTZQuDwv1MK1EuItPw/yscgV9Z6FkAwHBR2WjQMQJNRzXsQ5vY/GlUHVJYKF0DONuFv2lMNQNCGZ28QJfk/0WUwoIL36D8ggDOMQuATQNqMOeAy/wZAWFYOYM+M2z/LWC4uH3oSQDE+LyTsMgRAkJzhRGWFGEDd4soovCQQQKqk0DJMEP8/rGmNdwOLBUAW2X/9xCbjP4hu3dcqJhNAzuYItRvdB0CgzW3zJW/sPxotm/Y2TxRAQAk9XmdDDEC1Kx9MKgT3P1M+NctcghZAFVqcLlb0C0Bgzd3sB2b2P77mZDPUWhZAFROHJpUGCEDAfma5CxXtPz1DWq/zYxRAmhYY5824F0DOuQKWSbAOQNCMqrvu3fs/L6DR22K2wT9nAAxPBU8RQGiN6mW43AFAZhu25b633D8c1YgmzowSQNM25BRKWARArGS08/lNxD+LFssHwmMRQLC5aNcxBgJABL9HT0WRF0CjCmJmOGEOQHsuaVzMP/s/TWJCaGGwBUCeu1PAPLzjP9nqN9DZOBNAKE4JcydbCkCGtbd1qjPzP8dgm9U8jhVAtPeKTkVwDkCeCLss5l37P401XMPLmBdAFd29VMVQDUBg0yA55h75Pz6odcYLCRdApBM4rBrkAkDyAVWgQxbRP4XDMnK20hFAymLlF7EmzD8GUgo9XBHlP3lbK7T9COc/k+OhPthhy7+YGEpnrOvCPzBFhLs15u4/epbqB6H4uz9IuuLF5svev6lzLKY31es/CaQ0envF5z8ZY0xlUADXv7zaz7HYEuI/CfbK1sn16T8uAQfWwxLWPzKn/YuFN94/5KdbC1AFu793fyCSnlfvPzK2y4doAMY/NRg5t1/X6b/shq4QJaHDP5yNIAKPOeI/vpn7BSE30r/X4YQrO6nrv78Ziv/Thto/DqJ1Y6+y5z9l51NaxFrlv8QlA65HOLS/86dxiEc96z+Hj0+LFjneP6LzBZ8LTc2/DaJ1Y6+y579l51NaxFrlP8QlA65HOLQ/8qdxiEc967+Jj0+LFjnev6LzBZ8LTc0/1qdbC1AFuz93fyCSnlfvvzK2y4doAMa/NRg5t1/X6T/vhq4QJaHDv5yNIAKPOeK/wJn7BSE30j/W4YQrO6nrP78Ziv/Thtq/CaQ0envF578XY0xlUADXP7zaz7HYEuK/CvbK1sn16b8rAQfWwxLWvzKn/YuFN96/zWLlF7EmzL8GUgo9XBHlv3lbK7T9COe/kOOhPthhyz+cGEpnrOvCvzBFhLs15u6/c5bqB6H4u79IuuLF5sveP6lzLKY31eu/AQAAAP////8HAAAA/////zEAAAD/////VwEAAP////9hCQAA/////6dBAAD/////kcsBAP/////3kAwA/////8H2VwAAAAAAAAAAAAAAAAACAAAA/////w4AAAD/////YgAAAP////+uAgAA/////8ISAAD/////ToMAAP////8ilwMA/////+4hGQD/////gu2vAAAAAAAAAAAAAAAAAAAAAAACAAAA//////////8BAAAAAwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////AgAAAP//////////AQAAAAAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD/////////////////////AQAAAP///////////////wIAAAD///////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP///////////////////////////////wIAAAD///////////////8BAAAA/////////////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAABAAAA//////////8CAAAA//////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAAAQAAAP//////////AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAACAAAAAAAAAAIAAAABAAAAAQAAAAIAAAACAAAAAAAAAAUAAAAFAAAAAAAAAAIAAAACAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAEAAAACAAAAAgAAAAIAAAAAAAAABQAAAAYAAAAAAAAAAgAAAAIAAAADAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAAAAAACAAAAAQAAAAMAAAACAAAAAgAAAAAAAAAFAAAABwAAAAAAAAACAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAACAAAAAAAAAAIAAAABAAAABAAAAAIAAAACAAAAAAAAAAUAAAAIAAAAAAAAAAIAAAACAAAAAwAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAIAAAAAAAAAAgAAAAEAAAAAAAAAAgAAAAIAAAAAAAAABQAAAAkAAAAAAAAAAgAAAAIAAAADAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAIAAAAAAAAAAwAAAA4AAAACAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAgAAAAMAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAgAAAAAAAAADAAAACgAAAAIAAAAAAAAAAgAAAAMAAAABAAAAAAAAAAIAAAACAAAAAwAAAAcAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAACAAAAAAAAAAMAAAALAAAAAgAAAAAAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAIAAAADAAAACAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAIAAAAAAAAAAwAAAAwAAAACAAAAAAAAAAIAAAADAAAAAwAAAAAAAAACAAAAAgAAAAMAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAACAAAAAgAAAAAAAAADAAAADQAAAAIAAAAAAAAAAgAAAAMAAAAEAAAAAAAAAAIAAAACAAAAAwAAAAoAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAACAAAAAAAAAAMAAAAGAAAAAgAAAAAAAAACAAAAAwAAAA8AAAAAAAAAAgAAAAIAAAADAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAIAAAAAAAAAAwAAAAcAAAACAAAAAAAAAAIAAAADAAAAEAAAAAAAAAACAAAAAgAAAAMAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAgAAAAAAAAADAAAACAAAAAIAAAAAAAAAAgAAAAMAAAARAAAAAAAAAAIAAAACAAAAAwAAAA0AAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAACAAAAAAAAAAMAAAAJAAAAAgAAAAAAAAACAAAAAwAAABIAAAAAAAAAAgAAAAIAAAADAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAgAAAAIAAAAAAAAAAwAAAAUAAAACAAAAAAAAAAIAAAADAAAAEwAAAAAAAAACAAAAAgAAAAMAAAAPAAAAAAAAAAAAAAAAAAAAAAAAABAAAAACAAAAAAAAAAIAAAABAAAAEwAAAAIAAAACAAAAAAAAAAUAAAAKAAAAAAAAAAIAAAACAAAAAwAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAIAAAAAAAAAAgAAAAEAAAAPAAAAAgAAAAIAAAAAAAAABQAAAAsAAAAAAAAAAgAAAAIAAAADAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAgAAAAAAAAACAAAAAQAAABAAAAACAAAAAgAAAAAAAAAFAAAADAAAAAAAAAACAAAAAgAAAAMAAAASAAAAAAAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAIAAAABAAAAEQAAAAIAAAACAAAAAAAAAAUAAAANAAAAAAAAAAIAAAACAAAAAwAAABMAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAIAAAAAAAAAAgAAAAEAAAASAAAAAgAAAAIAAAAAAAAABQAAAA4AAAAAAAAAAgAAAAIAAAADAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAA6B6FaUp9QQTPXMuL4myJBraiDfBwx9UBYJseitzTIQOL5if9jqZtAnXX+Z+ycb0C3pucbhRBCQG8wJBYqpRRAlWbDCzCY5z/eFWBUEve6P/+qo4Q50Y4/D9YM3iCcYT8fcA2QJSA0P4ADxu0qAAc/BNcGolVJ2j5d9FACqwquPh9z7MthtI9CSUSYJke/YUJQ/64OyjU0Qpi0+HCmFQdCm3GfIVdh2kHsJ11kAyauQYC3UDFJOoFBSJsFV1OwU0FK5fcxX4AmQWhy/zZIt/lACqaCPsBjzUDbdUNIScugQMYQlVJ4MXNANiuq8GTvRUDxTXnulxEZQFZ8QX5kpuw/qmG/JwYFlEAluh3Q6DB+QKn4vyNq0GZAKOXekas+UUB8xabXXhI6QG63C2pLtSNAdDBtyNfLDUDyOcu67ID2P0rCMvRXAeE/Ki2TSVyzyT9Dk+8Sz2uzP5J+w5ARWp0/NQAoOiMuhj9YnP+RyMJwPxgW7TvQVFk/KgsLYF0kQz9g5dAC6IwzQcgHPVvDex1B1XjppodHBkHJq3OMM9fwQNvcmJ7wddlAInGPpQs/w0BRobq5EBmtQJZ2ai7n+ZVAtv2G5E+bgECG+gIfKBlpQK5f8jdI91JAL39sL/WpPEB8rGxhDqklQK6yUf43XhBAxL9y/tK8+D86XyZpgrHiPwAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAP////8AAAAAAAAAAAAAAAABAAAAAAAAAAAAAAD/////AAAAAAAAAAABAAAAAQAAAAAAAAAAAAAA/////wAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8FAAAABQAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAABQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQAAAAAAAQABAAABAQAAAAAAAQAAAAEAAAABAAEAAAAAAAAAAAAAAAAAAAAAquJYWJZl+D9jaeZNtj/zPwwdI9KqaeO/qGefXwdHdz+q4lhYlmX4P+OrlPMN3PI/DB0j0qpp47+7SQLV4VIEQKriWFiWZfg/r2kma3tz8T82eQmLqNIGwMRIWXMqSvo/fcCszPux9j+jara6ozTwP6hnn18HR3c/MSoKLequ8r+SabgA2nj0P7jBLbDOHO8/1Ym/ICfH4T+6lxjvlFXHv73m373LRPU/0vXyDVxo7T+ToKRHJXMAQF/33578aPE/pAyy64tD9T8+U/hCvyruPwxv8Y7YYwLAuXYr8NAiCEB4+LDK0Sn0P1Qeuy4j+eo/OMx50n7K7L+TrGB/nyf8v5ehC2fbYPM/aXMKexiT6z8mFRIMjg/zP7yUVwGGBNw/E6opHERf8z/z0wR2g9DqPw4pBpcOhvu/NbA29uWAA8DMaTExyXzyP02biiQ+Ruk/S8jz2/FKBEB1pzZnpbb9P7pQU4wLfPI//7ZcQXeG6D9CqEQvAYoIwDB2VB6sSgRAVyv8H5We8T+EHWF8XNPmPzB2wT8Nrrg/SEi+cX+w4L8of+GtdSDxP1sjk5AdouU/6ZjOVru13r8K0obqI6bxvwVbdNXyhfA/w5GG024n5z+rwmtMzP8BwLw9pSX49QXABe/2uQxP8D+b6wCzCvXkP7uGT87fK+Q/pz/JWw4coj+qoBf2J0nwP/yE3PUo0+I/vFJeHcaC+D96luSIqvntP/bf8sHUYu8/gZNN41mL4z9bhOqVOF4FwO6lmAh1hQhAbCVxbdhk7z+1C8NdDcfiPwG36x/0OQBAx0WJ76c2+D9nlSHXANfuP2HlfZ3gqOE/EwnVlVPg9r96+oHzEH//v5bXzdT1Auw/DM3GwLsA4D9p/8uoKcr+v+U9x5DQVAPAehjSdghb7D9sc1IetODgP8MVwwB1pu6/azPk6OGe978W8t/TUc3rP+0QMvYfP+A/RsG/QpSE8D+l3uwScxzgPwQaifgujuw/k1Vti1I43z8MAwLnSh0GQH5nYnwwZgJAiGUzWC5s6j8WyyI/BbLgPw4iUapGeQJAB3W+imnp/j9BLWR4ssrpP2t+gG5Pstk/cpBsfm6DCMCOpU9dOZsFQEv8nFypHeo/ehJ6i+6S2D9jqlGEmarLv7STC5TRiOa/bC+x8WZD6D9H3yUkWpDZP8gZvmCMuQLAreY19/eRBsCoPOc8UzzpP6KI/QV+y9g/t/MoboyWzT+Hv5q3Zu3Mvy2xROCT4uY/9gQitMMg1T9abAqhWMDkv1oLTavoUfG/PMUJP9CD5j+fHRX3t6fSPz7W2gk6bvs/WRnuHwqN9D8YFturGCTmP1EZczv0b9I/5t4exabB5D/1ESLh5fTEP9X2z6SYweQ/6lv3I2zT0D9zkRGNUNMAQKoSvc4EIfs/Xggt8wQI5T+mJHHg/w/SP4lhT/9t8vQ/DrZ/DbwH7D+XlhbYZrjkP34LIpFt6c4/lwfp8fLX9L+j96CTTf76v3WdNhEv9uM/d8c3o4lV0D/vFdCHVcsFwAHeDq0F1QhApbYqcZiN5D9KoilqByXLPwX0/diA0vq/0fo0GxnxAMBbaTkvlCzjP/RrFrWXrMs/UYTrky7jA0DB9f4FiZYAQEGAk/3QzeE/r/TeqE8t0D/OqjlsnPbvvz8RKU8JOfW/smSEbK/O4T8MzuyPm3DDP/rFtctq9gZAfb1EVEaSA0Dts5dVInnhP18SFMc79MM/7y34cw6LAMDFrRJsZO0DwC2KLvLSYuA/hx5wcUHewz+49SnK/4ruPyeS0PX9a+E/ZxaaLvvZ3z8WPu5T2QS8Pygo4RIvMqa/BJ0Kqsd0279cKW4ay8jdP3b05bmZ364/10/qtdxk2r+Bcz6CDMvpv54qOw+Amdw/qLV71pW7sT/YKc80nIPUP8OfIaBJ77G/LyTuD1un2z+diYu8efWzP1wU7ACkfwjAZroyPL1yBkAmv3lKJJbbPysKSE4W+p0/dIgqY79TA8ATLTOQ3tsGwJ2zweD/Xdg/XO/jXeFUaL8VW2qLFKfov1cA9Aa6XfK/tIa7YGgI2T+f3hu/sxqPv2nXdPpf3Pc/jkw8Jbda8j+tT/z8tGPVP1yBHpJd35k/KYvYOy1s8j/yz+kCQjPrP9+agH7x59g/PZfJ9aBhpr/rDKzvYBb+PwtkiaGCt/c/vb1mVr+f1T/JIHwHc8Govw7aeF6+9vG/Xv7kD6fp979isYioQYHVP7AIQZuSFrG/3z1AdUTnAUDN3XY9O7f9P0AdQ9ljYNQ/dJANJPTOrb8kLECUiiPlP4yF7UgmStA/9xGmXxCG1T9qZzix4W2zv2SGJRJVrPe/Fh9a2M/B/b8IexzFCoPSP9y1QFD2bLe/Q86cWLJe/b+mOOfYm78BwOTjkPAGE9E/8aPCUKu/ub9pPZyLCiUGwBA7Mev/BQlALOmrlRi+0j+AMJ/dKULBv7iLtL6a6QRAEMDV/yajAUDa62dE3crJP1P70RgBUbq/38hVnR6esT/s1tG10Z/Ov/zLwalHPss/dTS9NKTXx78nMcRzCIEHQAabxDsAmQRA0tyLK3gSyT+Aui7nOhDGv5Gs58z3WgHATN3forJuBMCAui7nOhDGP9Lciyt4Esm/WAJyHQ4c7z8UP5HFIs3iP3U0vTSk18c//MvBqUc+y7+cvv8HLg/Kvy1I/mHsI+K/U/vRGAFRuj/a62dE3crJv8p+WV8KlQjAuQ/nOP43B0CAMJ/dKULBPyzpq5UYvtK/ZoU+VoLh4L9etLlRUfvtv/GjwlCrv7k/5OOQ8AYT0b9DfT9FhufXPwUX8hJp+4u/3LVAUPZstz8IexzFCoPSv9+L609E5fQ/q9Fz7X2J7T9qZzix4W2zP/cRpl8QhtW/vtNilqGX+j8MOy7QJoL0P3SQDST0zq0/QB1D2WNg1L8IIjSvGNkDwGB8Jou2GAfAsAhBm5IWsT9isYioQYHVvyS9D3zb6uy/gnwRa7uM9L/JIHwHc8GoP729Zla/n9W/CsAHJZwmAEDEW6OYT1r6Pz2XyfWgYaY/35qAfvHn2L83Tdy4lS30vxf2/gZ0jPq/XIEekl3fmb+tT/z8tGPVvybPr2zJ1/+/K7mJ0ypVAsCf3hu/sxqPPwCGu2BoCNm/5oITrpZn+r+UDUyDP+n/v1zv413hVGg/nbPB4P9d2L9MlmkxNvgCQMtZlKE85v8/KwpIThb6nb8mv3lKJJbbv8+SZsTvOOc/pQCIIOYw0j+diYu8efWzvy8k7g9bp9u/kxYDa+pKtD9XlYvA8HnVv6i1e9aVu7G/nio7D4CZ3L/WR6rNh5EGwCkgQweBkghAdvTluZnfrr9cKW4ay8jdvxbjhr1f1QVAR5C0MzivAkAWPu5T2QS8v2cWmi772d+/cKj4lzLJCEBx2QJfYrMFQIcecHFB3sO/LYou8tJi4L+jr7lhO38BwIcI0Nb7xgTAXxIUxzv0w7/ts5dVInnhv0T+l8DZLfE/MP3FoFvS5D8MzuyPm3DDv7JkhGyvzuG/tzhzRIRc0b9Ovv3/0z7mv6/03qhPLdC/m4CT/dDN4b9dwjU5VCQBQBBJX1ntCv0/9GsWtZesy79baTkvlCzjv1mjYgEz++S/oW6KnOQW8b9KoilqByXLv6W2KnGYjeS/SmaKz3Vx9z+BZB5yxGHwP3fHN6OJVdC/dZ02ES/2478PuaBjLrXaP4/JU81pPaO/fgsikW3pzr+XlhbYZrjkv4tSn7YDbP0/f2LnFKlF9z+mJHHg/w/Sv14ILfMECOW/mfg4qYhR/b+OP+RQDCACwOpb9yNs09C/1fbPpJjB5L9pN2WOVZ3wv3hHy9nxIve/URlzO/Rv0r8YFturGCTmv1d1/KKR8QPA8gsy9qzSB8CfHRX3t6fSvzzFCT/Qg+a/EYStnrzV9r/2QJqI7Lb9v/YEIrTDINW/LbFE4JPi5r/7kQEs5fEDQHunnf4GeQBAooj9BX7L2L+oPOc8Uzzpv+ydYY2SSAfAL4HK6CRTB0BH3yUkWpDZv2wvsfFmQ+i/Ik0Yzruh6T8fM3LoGoDUP3oSeovukti/S/ycXKkd6r9rEv+7UWcHQCRIQe/GfwNAa36Abk+y2b9BLWR4ssrpv9KT87qa0bM/FTyktw823L8WyyI/BbLgv4hlM1gubOq/DizMp9Ki6r8b5ckdjVrzv5NVbYtSON+/BBqJ+C6O7L/dUBFqgyXYv00Wh18r7+q/7RAy9h8/4L8W8t/TUc3rv4RM5DKx3wDAfvWIj94aBcBsc1IetODgv3oY0nYIW+y/oGcTFF54AUDkJqS/FKX6PwzNxsC7AOC/ltfN1PUC7L+5Wrz/zHnzP6688w2rNOc/YeV9neCo4b9nlSHXANfuvw9RsxKjY/s/1V8GteXE8j+1C8NdDcfiv2wlcW3YZO+/IOywaA7Q8b9bFP+4Tg36v4GTTeNZi+O/9t/ywdRi77+tRc3yFR7eP2bkcHXJkLO//ITc9SjT4r+qoBf2J0nwv2YHKoswwfm/iQcLspCjAcCb6wCzCvXkvwXv9rkMT/C/YkuwYAMXBMApCNUai9kIwMORhtNuJ+e/BVt01fKF8L+ZqWEfvIjsP6h693QZYNk/WyOTkB2i5b8of+GtdSDxvwpaaulDSwVADMQAX+lOAECEHWF8XNPmv1cr/B+VnvG/XyFG6opcCMD/mtR32/UEQP+2XEF3hui/ulBTjAt88r/imfCfRP+yP9zbvtc8XeO/TZuKJD5G6b/MaTExyXzyvxiTQeElXOO/rbJRQVGN9L/z0wR2g9DqvxOqKRxEX/O/FDGCEei99j9x8zV4VYTmP2lzCnsYk+u/l6ELZ9tg878pRXacaDT/v3k6GZRqoQXAVB67LiP56r94+LDK0Sn0vwO6pZ9b7wFAvK0nKVcc9j8+U/hCvyruv6QMsuuLQ/W/FPhKFYv46j8MyxaDTOW/v9L18g1caO2/vebfvctE9b/7GD8ZrF3xv3gx1AR9bQDAuMEtsM4c77+SabgA2nj0v5xKFIwxsATArKNSBaKsB0Cjara6ozTwv33ArMz7sfa/dF2U0FcWCcDxL357DJX/P69pJmt7c/G/quJYWJZl+L/YntVJlnrSP4sRLzXM+fe/46uU8w3c8r+q4lhYlmX4v85lu5+QRwRAsI0H/WU8479jaeZNtj/zv6riWFiWZfi/sI0H/WU847/OZbufkEcEQHAoPUBrnss/9exKzDtFtT88wM8kax+gP9OqeKeAYog/MW0ItiZvcj+ph+smvt5bP2lCaV5dEUU/StaUmQDaLz+kK9y22BMYP0O3whZuMwI/IIbgZGWE6z7UkjYaEM3UPuezxwa9cr8+LybxRMnFpz6E1N8DbPiRPsYjySMvK3s+//////8fAAj//////zMQCP////9/MiAI/////28yMAj/////YzJACP///z9iMlAI////N2IyYAj///8zYjJwCP//vzNiMoAI//+rM2IykAj/f6szYjKgCP8PqzNiMrAI/wOrM2IywAi/A6szYjLQCJ8DqzNiMuAImQOrM2Iy8Aj//////z8PCP//////Kx8I/////38pLwj/////Pyk/CP////85KU8I////PzgpXwj///8POClvCP///w44KX8I//8fDjgpjwj//w8OOCmfCP9/DQ44Ka8I/w8NDjgpvwj/DQ0OOCnPCP8MDQ44Kd8IxwwNDjgp7wjEDA0OOCn/CAcAAAAHAAAAAQAAAAIAAAAEAAAAAwAAAAAAAAAAAAAABwAAAAMAAAABAAAAAgAAAAUAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAGAAAAAgAAAAMAAAAFAAAABAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAwAAAAEAAAAFAAAABAAAAAAAAAAAAAAABwAAAAUAAAADAAAABAAAAAEAAAAAAAAAAgAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAABgtRFT7Ifk/GC1EVPsh+b8YLURU+yEJQBgtRFT7IQnAYWxnb3MuYwBoM05laWdoYm9yUm90YXRpb25zAGNvb3JkaWprLmMAX3VwQXA3Q2hlY2tlZABfdXBBcDdyQ2hlY2tlZABkaXJlY3RlZEVkZ2UuYwBkaXJlY3RlZEVkZ2VUb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpclt0bXBGaWprLmZhY2VdW2ZpamsuZmFjZV0gPT0gS0kAZmFjZWlqay5jAF9mYWNlSWprUGVudFRvQ2VsbEJvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9DZWxsQm91bmRhcnkAaDNJbmRleC5jAGNvbXBhY3RDZWxscwBsYXRMbmdUb0NlbGwAY2VsbFRvQ2hpbGRQb3MAdmFsaWRhdGVDaGlsZFBvcwBsYXRMbmcuYwBjZWxsQXJlYVJhZHMyAHBvbHlnb24tPm5leHQgPT0gTlVMTABsaW5rZWRHZW8uYwBhZGROZXdMaW5rZWRQb2x5Z29uAG5leHQgIT0gTlVMTABsb29wICE9IE5VTEwAYWRkTmV3TGlua2VkTG9vcABwb2x5Z29uLT5maXJzdCA9PSBOVUxMAGFkZExpbmtlZExvb3AAY29vcmQgIT0gTlVMTABhZGRMaW5rZWRDb29yZABsb29wLT5maXJzdCA9PSBOVUxMAGlubmVyTG9vcHMgIT0gTlVMTABub3JtYWxpemVNdWx0aVBvbHlnb24AYmJveGVzICE9IE5VTEwAY2FuZGlkYXRlcyAhPSBOVUxMAGZpbmRQb2x5Z29uRm9ySG9sZQBjYW5kaWRhdGVCQm94ZXMgIT0gTlVMTAByZXZEaXIgIT0gSU5WQUxJRF9ESUdJVABsb2NhbGlqLmMAY2VsbFRvTG9jYWxJamsAYmFzZUNlbGwgIT0gb3JpZ2luQmFzZUNlbGwAIShvcmlnaW5PblBlbnQgJiYgaW5kZXhPblBlbnQpAGJhc2VDZWxsID09IG9yaWdpbkJhc2VDZWxsAGJhc2VDZWxsICE9IElOVkFMSURfQkFTRV9DRUxMAGxvY2FsSWprVG9DZWxsACFfaXNCYXNlQ2VsbFBlbnRhZ29uKGJhc2VDZWxsKQBiYXNlQ2VsbFJvdGF0aW9ucyA+PSAwAGdyaWRQYXRoQ2VsbHMAcG9seWZpbGwuYwBpdGVyU3RlcFBvbHlnb25Db21wYWN0ADAAdmVydGV4LmMAdmVydGV4Um90YXRpb25zAGNlbGxUb1ZlcnRleABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";var G="function"==typeof atob?atob:function(A){var e,t,r,n,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",l=0;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{e=a.indexOf(A.charAt(l++))<<2|(n=a.indexOf(A.charAt(l++)))>>4,t=(15&n)<<4|(o=a.indexOf(A.charAt(l++)))>>2,r=(3&o)<<6|(i=a.indexOf(A.charAt(l++))),s+=String.fromCharCode(e),64!==o&&(s+=String.fromCharCode(t)),64!==i&&(s+=String.fromCharCode(r))}while(l=0){if((0|t)>13780509){if(0|(a=0|le(15,s)))break;s=0|n[(l=s)>>2],l=0|n[l+4>>2]}else c=0|Xe(0|t,0|(a=((0|t)<0)<<31>>31),3,0),l=0|B(),a=0|We(0|t,0|a,1,0),a=0|We(0|(a=0|Xe(0|c,0|l,0|a,0|B())),0|B(),1,0),l=0|B(),n[s>>2]=a,n[s+4>>2]=l,s=a;if(lt(0|r,0,s<<3),0|o){lt(0|o,0,s<<2),a=0|L(A,e,t,r,o,s,l,0);break}(a=0|Ve(s,4))?(c=0|L(A,e,t,r,a,s,l,0),Ye(a),a=c):a=13}else a=2}while(0);return S=i,0|a}function T(A,e,t,r,o){A|=0,e|=0,t|=0,r|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(a=S,S=S+16|0,m=a+8|0,n[(h=i=a)>>2]=A,n[h+4>>2]=e,(0|t)<0)return S=a,2;if(n[(s=r)>>2]=A,n[s+4>>2]=e,(s=!!(0|o))&&(n[o>>2]=0),0|HA(A,e))return S=a,9;n[m>>2]=0;A:do{if((0|t)>=1)if(s)for(f=1,d=0,g=0,h=1,s=A;;){if(!(d|g)){if(0|(s=0|I(s,e,4,m,i)))break A;if(0|HA(s=0|n[(e=i)>>2],e=0|n[e+4>>2])){s=9;break A}}if(0|(s=0|I(s,e,0|n[26800+(g<<2)>>2],m,i)))break A;if(s=0|n[(e=i)>>2],e=0|n[e+4>>2],n[(A=r+(f<<3)|0)>>2]=s,n[A+4>>2]=e,n[o+(f<<2)>>2]=h,l=(0|(A=d+1|0))==(0|h),u=6==(0|(c=g+1|0)),0|HA(s,e)){s=9;break A}if((0|(h=h+(u&l&1)|0))>(0|t)){s=0;break}f=f+1|0,d=l?0:A,g=l?u?0:c:g}else for(f=1,d=0,g=0,h=1,s=A;;){if(!(d|g)){if(0|(s=0|I(s,e,4,m,i)))break A;if(0|HA(s=0|n[(e=i)>>2],e=0|n[e+4>>2])){s=9;break A}}if(0|(s=0|I(s,e,0|n[26800+(g<<2)>>2],m,i)))break A;if(s=0|n[(e=i)>>2],e=0|n[e+4>>2],n[(A=r+(f<<3)|0)>>2]=s,n[A+4>>2]=e,l=(0|(A=d+1|0))==(0|h),u=6==(0|(c=g+1|0)),0|HA(s,e)){s=9;break A}if((0|(h=h+(u&l&1)|0))>(0|t)){s=0;break}f=f+1|0,d=l?0:A,g=l?u?0:c:g}else s=0}while(0);return S=a,0|s}function L(A,e,t,r,o,i,a,s){t|=0,r|=0,o|=0,s|=0;var l,c,u,d=0,f=0,g=0,h=0,m=0,b=0,p=0;if(u=S,S=S+16|0,l=u+8|0,c=u,d=0|At(0|(A|=0),0|(e|=0),0|(i|=0),0|(a|=0)),g=0|B(),!(!(0|(p=0|n[(b=h=r+(d<<3)|0)>>2]))&!(0|(b=0|n[b+4>>2]))|(f=(0|p)==(0|A)&(0|b)==(0|e))))do{d=0|$e(0|(d=0|We(0|d,0|g,1,0)),0|B(),0|i,0|a),g=0|B(),f=(0|(b=0|n[(p=h=r+(d<<3)|0)>>2]))==(0|A)&(0|(p=0|n[p+4>>2]))==(0|e)}while(!(!(0|b)&!(0|p)|f));if(d=o+(d<<2)|0,f&&(0|n[d>>2])<=(0|s))return S=u,0;if(n[(p=h)>>2]=A,n[p+4>>2]=e,n[d>>2]=s,(0|s)>=(0|t))return S=u,0;switch(f=s+1|0,n[l>>2]=0,0|(d=0|I(A,e,2,l,c))){case 9:m=9;break;case 0:(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f))||(m=9)}A:do{if(9==(0|m)){switch(n[l>>2]=0,0|(d=0|I(A,e,3,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,1,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,5,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,4,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,6,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}return S=u,0}}while(0);return S=u,0|d}function I(A,e,t,r,o){A|=0,e|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0;if((t|=0)>>>0>6)return 1;if(d=(0|n[(r|=0)>>2])%6|0,n[r>>2]=d,(0|d)>0){s=0;do{t=0|vA(t),s=s+1|0}while((0|s)<(0|n[r>>2]))}if(d=0|tt(0|A,0|e,45),B(),(a=127&d)>>>0>121)return 5;i=0|UA(A,e),s=0|tt(0|A,0|e,52),B(),s&=15;A:do{if(s){for(;;){if(c=0|tt(0|A,0|e,0|(l=3*(15-s|0)|0)),B(),7==(0|(c&=7))){e=5;break}if(g=!(0|ZA(s)),s=s+-1|0,f=0|rt(7,0,0|l),e&=~B(),A=0|rt(0|n[(g?432:16)+(28*c|0)+(t<<2)>>2],0,0|l)|A&~f,e|=l=0|B(),!(t=0|n[(g?640:224)+(28*c|0)+(t<<2)>>2])){t=0;break A}if(!s){u=8;break A}}return 0|e}u=8}while(0);8==(0|u)&&(A|=0|rt(0|(g=0|n[848+(28*a|0)+(t<<2)>>2]),0,45),e=B()|-1040385&e,t=0|n[4272+(28*a|0)+(t<<2)>>2],127&~g||(g=0|rt(0|n[848+(28*a|0)+20>>2],0,45),e=B()|-1040385&e,t=0|n[4272+(28*a|0)+20>>2],A=0|YA(g|A,e),e=0|B(),n[r>>2]=1+(0|n[r>>2]))),c=0|tt(0|A,0|e,45),B(),c&=127;A:do{if(0|z(c)){e:do{if(1==(0|UA(A,e))){if((0|a)!=(0|c)){if(0|Y(c,0|n[7696+(28*a|0)>>2])){A=0|WA(A,e),l=1,e=0|B();break}M(27795,26864,533,26872)}switch(0|i){case 3:A=0|YA(A,e),e=0|B(),n[r>>2]=1+(0|n[r>>2]),l=0;break e;case 5:A=0|WA(A,e),e=0|B(),n[r>>2]=5+(0|n[r>>2]),l=0;break e;case 0:return 9;default:return 1}}else l=0}while(0);if((0|t)>0){s=0;do{A=0|OA(A,e),e=0|B(),s=s+1|0}while((0|s)!=(0|t))}if((0|a)!=(0|c)){if(!(0|G(c))){if(!!(0|l)|5!=(0|UA(A,e)))break;n[r>>2]=1+(0|n[r>>2]);break}switch(127&d){case 8:case 118:break A}3!=(0|UA(A,e))&&(n[r>>2]=1+(0|n[r>>2]))}}else if((0|t)>0){s=0;do{A=0|YA(A,e),e=0|B(),s=s+1|0}while((0|s)!=(0|t))}}while(0);return n[r>>2]=((0|n[r>>2])+t|0)%6|0,n[(g=o)>>2]=A,n[g+4>>2]=e,0}function R(A,e,t,r){A|=0,e|=0,t|=0,r|=0;var o,i,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0;if(i=S,S=S+16|0,h=i+8|0,n[(g=o=i)>>2]=A,n[g+4>>2]=e,(0|t)<0)return S=i,2;if(!t)return n[(h=r)>>2]=A,n[h+4>>2]=e,S=i,0;n[h>>2]=0;A:do{if(0|HA(A,e))A=9;else{a=0,g=A;do{if(0|(A=0|I(g,e,4,h,o)))break A;if(a=a+1|0,0|HA(g=0|n[(e=o)>>2],e=0|n[e+4>>2])){A=9;break A}}while((0|a)<(0|t));n[(f=r)>>2]=g,n[f+4>>2]=e,f=t+-1|0,d=0,A=1;do{if(a=26800+(d<<2)|0,5==(0|d))for(l=0|n[a>>2],s=0,a=A;;){if(0|(A=0|I(0|n[(A=o)>>2],0|n[A+4>>2],l,h,o)))break A;if((0|s)!=(0|f)){if(c=0|n[(u=o)>>2],u=0|n[u+4>>2],n[(A=r+(a<<3)|0)>>2]=c,n[A+4>>2]=u,0|HA(c,u)){A=9;break A}A=a+1|0}else A=a;if((0|(s=s+1|0))>=(0|t))break;a=A}else for(l=o,u=0|n[a>>2],c=0,a=A,s=0|n[l>>2],l=0|n[l+4>>2];;){if(0|(A=0|I(s,l,u,h,o)))break A;if(s=0|n[(l=o)>>2],l=0|n[l+4>>2],n[(A=r+(a<<3)|0)>>2]=s,n[A+4>>2]=l,A=a+1|0,0|HA(s,l)){A=9;break A}if((0|(c=c+1|0))>=(0|t))break;a=A}d=d+1|0}while(d>>>0<6);A=(0|g)==(0|n[(A=o)>>2])&&(0|e)==(0|n[A+4>>2])?0:9}}while(0);return S=i,0|A}function _(A,e,t,r){t|=0,r|=0;var o,i,a,s=0,l=0;for(a=S,S=S+16|0,o=a,i=a+8|0,s=(s=!(0|HA(A|=0,e|=0)))?1:2;;){if(n[i>>2]=0,!(0|I(A,e,s,i,o))&((0|n[(l=o)>>2])==(0|t)?(0|n[l+4>>2])==(0|r):0)){A=4;break}if((s=s+1|0)>>>0>=7){s=7,A=4;break}}return 4==(0|A)?(S=a,0|s):0}function H(A,e,t,r,i,a,s){e|=0,t|=0,r|=0,i|=0,a|=0,s|=0;var l,c,u,d,f,g,h,m,b,p,v=0,y=0,w=0,x=0,k=0,C=0,M=0,D=0,E=0,j=0,Q=0,N=0,F=0,P=0,T=0,L=0,I=0,R=0,_=0;if(p=S,S=S+64|0,h=p+48|0,m=p+32|0,b=p+24|0,l=p+8|0,c=p,(0|(y=0|n[(A|=0)>>2]))<=0)return S=p,0;for(u=A+4|0,d=h+8|0,f=m+8|0,g=l+8|0,v=0,F=0;;){N=(w=0|n[u>>2])+(F<<4)|0,n[h>>2]=n[N>>2],n[h+4>>2]=n[N+4>>2],n[h+8>>2]=n[N+8>>2],n[h+12>>2]=n[N+12>>2],(0|F)==(y+-1|0)?(n[m>>2]=n[w>>2],n[m+4>>2]=n[w+4>>2],n[m+8>>2]=n[w+8>>2],n[m+12>>2]=n[w+12>>2]):(N=w+(F+1<<4)|0,n[m>>2]=n[N>>2],n[m+4>>2]=n[N+4>>2],n[m+8>>2]=n[N+8>>2],n[m+12>>2]=n[N+12>>2]),y=0|tA(h,m,r,b);A:do{if(y)w=0,v=y;else if(w=0|n[(y=b)>>2],(0|(y=0|n[y+4>>2]))>0|!(0|y)&w>>>0>0){Q=0,N=0;e:for(;;){if(I=1/(+(w>>>0)+4294967296*+(0|y)),_=+o[h>>3],R=+((y=0|Ze(0|w,0|y,0|Q,0|N))>>>0)+4294967296*+(0|B()),L=+(Q>>>0)+4294967296*+(0|N),o[l>>3]=I*(_*R)+I*(+o[m>>3]*L),o[g>>3]=I*(+o[d>>3]*R)+I*(+o[f>>3]*L),0|(y=0|KA(l,r,c))){v=y;break}C=0|At(0|(E=0|n[(j=c)>>2]),0|(j=0|n[j+4>>2]),0|e,0|t),x=0|B(),w=0|n[(k=y=s+(C<<3)|0)>>2],k=0|n[k+4>>2];t:do{if(!(0|w)&!(0|k))P=y,T=16;else for(M=0,D=0;;){if((0|M)>(0|t)|(0|M)==(0|t)&D>>>0>e>>>0){v=1;break e}if((0|w)==(0|E)&(0|k)==(0|j))break t;if(C=0|$e(0|(y=0|We(0|C,0|x,1,0)),0|B(),0|e,0|t),x=0|B(),D=0|We(0|D,0|M,1,0),M=0|B(),!(0|(w=0|n[(k=y=s+(C<<3)|0)>>2]))&!(0|(k=0|n[k+4>>2]))){P=y,T=16;break}}}while(0);if(16!=(0|T)||(T=0,!(0|E)&!(0|j))||(n[(D=P)>>2]=E,n[D+4>>2]=j,D=a+(n[i>>2]<<3)|0,n[D>>2]=E,n[D+4>>2]=j,D=0|We(0|n[(D=i)>>2],0|n[D+4>>2],1,0),E=0|B(),n[(j=i)>>2]=D,n[j+4>>2]=E),Q=0|We(0|Q,0|N,1,0),N=0|B(),w=0|n[(y=b)>>2],!((0|(y=0|n[y+4>>2]))>(0|N)|(0|y)==(0|N)&w>>>0>Q>>>0)){w=1;break A}}w=0}else w=1}while(0);if(F=F+1|0,!w){T=21;break}if((0|F)>=(0|(y=0|n[A>>2]))){v=0,T=21;break}}return 21==(0|T)?(S=p,0|v):0}function z(A){return(A|=0)>>>0>121?0|(A=0):0|(A=0|n[7696+(28*A|0)+16>>2])}function G(A){return 4==(0|(A|=0))|117==(0|A)|0}function U(A){return 0|n[11120+(216*(0|n[(A|=0)>>2])|0)+(72*(0|n[A+4>>2])|0)+(24*(0|n[A+8>>2])|0)+(n[A+12>>2]<<3)>>2]}function O(A){return 0|n[11120+(216*(0|n[(A|=0)>>2])|0)+(72*(0|n[A+4>>2])|0)+(24*(0|n[A+8>>2])|0)+(n[A+12>>2]<<3)+4>>2]}function Y(A,e){return e|=0,(0|n[7696+(28*(A|=0)|0)+20>>2])==(0|e)?0|(e=1):0|(e=(0|n[7696+(28*A|0)+24>>2])==(0|e))}function V(A,e){return 0|n[848+(28*(A|=0)|0)+((e|=0)<<2)>>2]}function W(A,e){return e|=0,(0|n[848+(28*(A|=0)|0)>>2])==(0|e)?0|(e=0):(0|n[848+(28*A|0)+4>>2])==(0|e)?0|(e=1):(0|n[848+(28*A|0)+8>>2])==(0|e)?0|(e=2):(0|n[848+(28*A|0)+12>>2])==(0|e)?0|(e=3):(0|n[848+(28*A|0)+16>>2])==(0|e)?0|(e=4):(0|n[848+(28*A|0)+20>>2])==(0|e)?0|(e=5):0|((0|n[848+(28*A|0)+24>>2])==(0|e)?6:7)}function Z(A){var e,t,r;return e=(r=+o[16+(A|=0)>>3])-(t=+o[A+24>>3]),+(r>3]<+o[A+24>>3]|0}function J(A){return+(+o[(A|=0)>>3]-+o[A+8>>3])}function q(A,e){A|=0;var t,r,n=0;return(n=+o[(e|=0)>>3])>=+o[A+8>>3]&&n<=+o[A>>3]?(t=+o[A+16>>3],n=+o[A+24>>3],e=(r=+o[e+8>>3])>=n,A=r<=t&1,t>3]<+o[e+8>>3]||+o[A+8>>3]>+o[e>>3]?0|(s=0):(n=(l=+o[A+16>>3])<(u=+o[(t=A+24|0)>>3]),c=(a=+o[(s=e+16|0)>>3])<(i=+o[(r=e+24|0)>>3]),e=u-a>3],e)||(u=+ie(+o[t>>3],A))>+ie(+o[s>>3],e)?0|(c=0):0|(c=1))}function $(A,e){e|=0;var t,r,n,i,a,s=0,l=0,c=0,u=0;return+o[(A|=0)>>3]<+o[e>>3]||+o[A+8>>3]>+o[e+8>>3]?0|(s=0):(n=(i=+o[(s=A+16|0)>>3])<(l=+o[A+24>>3]),c=(u=+o[(t=e+16|0)>>3])<(a=+o[(r=e+24|0)>>3]),e=l-u>3],e)?0|(c=(u=+ie(+o[s>>3],A))>=+ie(+o[t>>3],e)):0|(c=0))}function AA(A,e){A|=0,e|=0;var t,r,i,a,s,l=0;i=S,S=S+176|0,n[(r=i)>>2]=4,l=+o[e>>3],o[r+8>>3]=l,a=+o[e+16>>3],o[r+16>>3]=a,o[r+24>>3]=l,l=+o[e+24>>3],o[r+32>>3]=l,s=+o[e+8>>3],o[r+40>>3]=s,o[r+48>>3]=l,o[r+56>>3]=s,o[r+64>>3]=a,t=96+(e=r+72|0)|0;do{n[e>>2]=0,e=e+4|0}while((0|e)<(0|t));st(0|A,0|r,168),S=i}function eA(A,e,t){A|=0,e|=0,t|=0;var r,a,c,u,d,f,g,h=0,m=0,b=0,p=0,y=0,x=0,k=0;f=S,S=S+288|0,d=f+264|0,p=f+96|0,m=(h=b=f)+96|0;do{n[h>>2]=0,h=h+4|0}while((0|h)<(0|m));return 0|(e=0|Ae(e,b))?(S=f,0|(x=e)):(XA(b=0|n[(m=b)>>2],m=0|n[m+4>>2],d),$A(b,m,p),u=+ae(d,p+8|0),o[d>>3]=+o[A>>3],o[(m=d+8|0)>>3]=+o[A+16>>3],o[p>>3]=+o[A+8>>3],o[(b=p+8|0)>>3]=+o[A+24>>3],a=+ae(d,p),k=+o[m>>3]-+o[b>>3],c=+l(+k),g=+o[d>>3]-+o[p>>3],r=+l(+g),!(0==k|0==g)&&(k=+ot(+c,+r),k=+v(+a*a/+it(+k/+it(+c,+r),3)/(u*(2.59807621135*u)*.8)),o[i>>3]=k,y=~~k>>>0,x=+l(k)>=1?k>0?~~+w(+s(k/4294967296),4294967295)>>>0:~~+v((k-+(~~k>>>0))/4294967296)>>>0:0,2146435072&~n[i+4>>2])?(p=!(0|y)&!(0|x),n[(e=t)>>2]=p?1:y,n[e+4>>2]=p?0:x,e=0):e=1,S=f,0|(x=e))}function tA(A,e,t,r){A|=0,e|=0,t|=0,r|=0;var a,c,u,d,f=0,g=0,h=0;d=S,S=S+288|0,c=d+264|0,u=d+96|0,a=(f=g=d)+96|0;do{n[f>>2]=0,f=f+4|0}while((0|f)<(0|a));return 0|(t=0|Ae(t,g))?(S=d,0|(r=t)):(XA(f=0|n[(t=g)>>2],t=0|n[t+4>>2],c),$A(f,t,u),h=+ae(c,u+8|0),h=+v(+ +ae(A,e)/(2*h)),o[i>>3]=h,t=~~h>>>0,f=+l(h)>=1?h>0?~~+w(+s(h/4294967296),4294967295)>>>0:~~+v((h-+(~~h>>>0))/4294967296)>>>0:0,2146435072&~n[i+4>>2]?(g=!(0|t)&!(0|f),n[r>>2]=g?1:t,n[r+4>>2]=g?0:f,S=d,0|(r=0)):(S=d,0|(r=1)))}function rA(A,e,t,r){e|=0,t|=0,r|=0,n[(A|=0)>>2]=e,n[A+4>>2]=t,n[A+8>>2]=r}function nA(A){var e,t=0,r=0,o=0,i=0,a=0;t=0|n[(A|=0)>>2],r=0|n[(e=A+4|0)>>2],(0|t)<0&&(r=r-t|0,n[e>>2]=r,n[(a=A+8|0)>>2]=(0|n[a>>2])-t,n[A>>2]=0,t=0),(0|r)<0?(t=t-r|0,n[A>>2]=t,i=(0|n[(a=A+8|0)>>2])-r|0,n[a>>2]=i,n[e>>2]=0,r=0):(a=i=A+8|0,i=0|n[i>>2]),(0|i)<0&&(t=t-i|0,n[A>>2]=t,r=r-i|0,n[e>>2]=r,n[a>>2]=0,i=0),(0|(o=(0|i)<(0|(o=(0|r)<(0|t)?r:t))?i:o))<=0||(n[A>>2]=t-o,n[e>>2]=r-o,n[a>>2]=i-o)}function oA(A,e){var t,r;e|=0,r=0|n[8+(A|=0)>>2],t=+((0|n[A+4>>2])-r|0),o[e>>3]=+((0|n[A>>2])-r|0)-.5*t,o[e+8>>3]=.8660254037844386*t}function iA(A,e,t){A|=0,e|=0,n[(t|=0)>>2]=(0|n[e>>2])+(0|n[A>>2]),n[t+4>>2]=(0|n[e+4>>2])+(0|n[A+4>>2]),n[t+8>>2]=(0|n[e+8>>2])+(0|n[A+8>>2])}function aA(A,e,t){A|=0,e|=0,n[(t|=0)>>2]=(0|n[A>>2])-(0|n[e>>2]),n[t+4>>2]=(0|n[A+4>>2])-(0|n[e+4>>2]),n[t+8>>2]=(0|n[A+8>>2])-(0|n[e+8>>2])}function sA(A,e){e|=0;var t,r=0;r=0|y(0|n[(A|=0)>>2],e),n[A>>2]=r,t=0|y(0|n[(r=A+4|0)>>2],e),n[r>>2]=t,e=0|y(0|n[(A=A+8|0)>>2],e),n[A>>2]=e}function lA(A){var e,t,r=0,o=0,i=0,a=0,s=0;s=(0|(t=0|n[(A|=0)>>2]))<0,A=(A=(o=(0|(a=((e=(0|(i=(0|n[A+4>>2])-(s?t:0)|0))<0)?0-i|0:0)+((0|n[A+8>>2])-(s?t:0))|0))<0)?0:a)-((i=(0|(o=(0|A)<(0|(o=(0|(r=(e?0:i)-(o?a:0)|0))<(0|(a=(s?0:t)-(e?i:0)-(o?a:0)|0))?r:a))?A:o))>0)?o:0)|0,r=r-(i?o:0)|0;A:do{switch(a-(i?o:0)|0){case 0:switch(0|r){case 0:return 0|(0|A?1==(0|A)?1:7:0);case 1:return 0|(0|A?1==(0|A)?3:7:2);default:break A}case 1:switch(0|r){case 0:return 0|(0|A?1==(0|A)?5:7:4);case 1:if(A)break A;return 6;default:break A}}}while(0);return 7}function cA(A){var e,t,r=0,o=0,i=0,a=0,s=0,l=0,c=0;if(l=0|n[(t=8+(A|=0)|0)>>2],(e=(0|n[A>>2])-l|0)>>>0>715827881|(l=(0|n[(c=A+4|0)>>2])-l|0)>>>0>715827881){if(a=2147483647-e|0,s=-2147483648-e|0,(i=(0|e)>0)?(0|a)<(0|e):(0|s)>(0|e))return 1;if(o=e<<1,i?(2147483647-o|0)<(0|e):(-2147483648-o|0)>(0|e))return 1;if((0|l)>0?(2147483647-l|0)<(0|l):(-2147483648-l|0)>(0|l))return 1;if(r=3*e|0,o=l<<1,(i?(0|a)<(0|o):(0|s)>(0|o))||((0|e)>-1?(-2147483648|r)>=(0|l):(-2147483648^r)<(0|l)))return 1}else o=l<<1,r=3*e|0;return i=0|Ue(.14285714285714285*+(r-l|0)),n[A>>2]=i,a=0|Ue(.14285714285714285*+(o+e|0)),n[c>>2]=a,n[t>>2]=0,r=(o=(0|a)<(0|i))?i:a,(0|(o=o?a:i))<0&&((-2147483648==(0|o)||((0|r)>0?(2147483647-r|0)<(0|o):(-2147483648-r|0)>(0|o)))&&M(27795,26892,354,26903),((0|r)>-1?(-2147483648|r)>=(0|o):(-2147483648^r)<(0|o))&&M(27795,26892,354,26903)),r=a-i|0,(0|i)<0?(o=0-i|0,n[c>>2]=r,n[t>>2]=o,n[A>>2]=0,i=0):(r=a,o=0),(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[t>>2]=o,n[c>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[c>>2]=a,n[t>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[c>>2]=r-i,n[t>>2]=o-i),0}function uA(A){var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0;if(i=0|n[(e=8+(A|=0)|0)>>2],(a=(0|n[A>>2])-i|0)>>>0>715827881|(i=(0|n[(s=A+4|0)>>2])-i|0)>>>0>715827881){if((r=(0|a)>0)?(2147483647-a|0)<(0|a):(-2147483648-a|0)>(0|a))return 1;if(t=a<<1,(o=(0|i)>0)?(2147483647-i|0)<(0|i):(-2147483648-i|0)>(0|i))return 1;if(l=i<<1,o?(2147483647-l|0)<(0|i):(-2147483648-l|0)>(0|i))return 1;if(r?(2147483647-t|0)<(0|i):(-2147483648-t|0)>(0|i))return 1;if(r=3*i|0,(0|i)>-1?(-2147483648|r)>=(0|a):(-2147483648^r)<(0|a))return 1}else r=3*i|0,t=a<<1;return o=0|Ue(.14285714285714285*+(t+i|0)),n[A>>2]=o,i=0|Ue(.14285714285714285*+(r-a|0)),n[s>>2]=i,n[e>>2]=0,t=(r=(0|i)<(0|o))?o:i,(0|(r=r?i:o))<0&&((-2147483648==(0|r)||((0|t)>0?(2147483647-t|0)<(0|r):(-2147483648-t|0)>(0|r)))&&M(27795,26892,402,26917),((0|t)>-1?(-2147483648|t)>=(0|r):(-2147483648^t)<(0|r))&&M(27795,26892,402,26917)),t=i-o|0,(0|o)<0?(r=0-o|0,n[s>>2]=t,n[e>>2]=r,n[A>>2]=0,o=0):(t=i,r=0),(0|t)<0&&(o=o-t|0,n[A>>2]=o,r=r-t|0,n[e>>2]=r,n[s>>2]=0,t=0),a=o-r|0,i=t-r|0,(0|r)<0?(n[A>>2]=a,n[s>>2]=i,n[e>>2]=0,t=i,i=a,r=0):i=o,(0|(o=(0|r)<(0|(o=(0|t)<(0|i)?t:i))?r:o))<=0||(n[A>>2]=i-o,n[s>>2]=t-o,n[e>>2]=r-o),0}function dA(A){var e,t,r=0,o=0,i=0,a=0,s=0;o=0|n[(e=8+(A|=0)|0)>>2],i=0|Ue(.14285714285714285*+((3*(r=(0|n[A>>2])-o|0)|0)-(o=(0|n[(t=A+4|0)>>2])-o|0)|0)),n[A>>2]=i,r=0|Ue(.14285714285714285*+((o<<1)+r|0)),n[t>>2]=r,n[e>>2]=0,o=r-i|0,(0|i)<0?(s=0-i|0,n[t>>2]=o,n[e>>2]=s,n[A>>2]=0,r=o,i=0,o=s):o=0,(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[e>>2]=o,n[t>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[t>>2]=a,n[e>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=r-i,n[e>>2]=o-i)}function fA(A){var e,t,r=0,o=0,i=0,a=0,s=0;o=0|n[(e=8+(A|=0)|0)>>2],i=0|Ue(.14285714285714285*+(((r=(0|n[A>>2])-o|0)<<1)+(o=(0|n[(t=A+4|0)>>2])-o|0)|0)),n[A>>2]=i,r=0|Ue(.14285714285714285*+((3*o|0)-r|0)),n[t>>2]=r,n[e>>2]=0,o=r-i|0,(0|i)<0?(s=0-i|0,n[t>>2]=o,n[e>>2]=s,n[A>>2]=0,r=o,i=0,o=s):o=0,(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[e>>2]=o,n[t>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[t>>2]=a,n[e>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=r-i,n[e>>2]=o-i)}function gA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],i=0|n[(t=A+4|0)>>2],a=0|n[(r=A+8|0)>>2],s=i+(3*o|0)|0,n[A>>2]=s,i=a+(3*i|0)|0,n[t>>2]=i,o=(3*a|0)+o|0,n[r>>2]=o,a=i-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=a,n[r>>2]=o,n[A>>2]=0,i=a,a=0):a=s,(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function hA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=(3*(o=0|n[(t=A+4|0)>>2])|0)+s|0,s=(i=0|n[(r=A+8|0)>>2])+(3*s|0)|0,n[A>>2]=s,n[t>>2]=a,o=(3*i|0)+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,s=0):i=a,(0|i)<0&&(s=s-i|0,n[A>>2]=s,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=s-o|0,a=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=a,n[r>>2]=0,s=e,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|a)<(0|s)?a:s))?o:i))<=0||(n[A>>2]=s-i,n[t>>2]=a-i,n[r>>2]=o-i)}function mA(A,e){A|=0;var t,r,o,i=0,a=0,s=0;((e|=0)-1|0)>>>0>=6||(s=(0|n[15440+(12*e|0)>>2])+(0|n[A>>2])|0,n[A>>2]=s,o=A+4|0,a=(0|n[15440+(12*e|0)+4>>2])+(0|n[o>>2])|0,n[o>>2]=a,r=A+8|0,e=(0|n[15440+(12*e|0)+8>>2])+(0|n[r>>2])|0,n[r>>2]=e,i=a-s|0,(0|s)<0?(e=e-s|0,n[o>>2]=i,n[r>>2]=e,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,e=e-i|0,n[r>>2]=e,n[o>>2]=0,i=0),t=a-e|0,s=i-e|0,(0|e)<0?(n[A>>2]=t,n[o>>2]=s,n[r>>2]=0,a=t,e=0):s=i,(0|(i=(0|e)<(0|(i=(0|s)<(0|a)?s:a))?e:i))<=0||(n[A>>2]=a-i,n[o>>2]=s-i,n[r>>2]=e-i))}function bA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=(o=0|n[(t=A+4|0)>>2])+s|0,s=(i=0|n[(r=A+8|0)>>2])+s|0,n[A>>2]=s,n[t>>2]=a,o=i+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function pA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],a=0|n[(t=A+4|0)>>2],i=0|n[(r=A+8|0)>>2],s=a+o|0,n[A>>2]=s,a=i+a|0,n[t>>2]=a,o=i+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function vA(A){switch(0|(A|=0)){case 1:A=5;break;case 5:A=4;break;case 4:A=6;break;case 6:A=2;break;case 2:A=3;break;case 3:A=1}return 0|A}function yA(A){switch(0|(A|=0)){case 1:A=3;break;case 3:A=2;break;case 2:A=6;break;case 6:A=4;break;case 4:A=5;break;case 5:A=1}return 0|A}function wA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],i=0|n[(t=A+4|0)>>2],a=0|n[(r=A+8|0)>>2],s=i+(o<<1)|0,n[A>>2]=s,i=a+(i<<1)|0,n[t>>2]=i,o=(a<<1)+o|0,n[r>>2]=o,a=i-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=a,n[r>>2]=o,n[A>>2]=0,i=a,a=0):a=s,(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function xA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=((o=0|n[(t=A+4|0)>>2])<<1)+s|0,s=(i=0|n[(r=A+8|0)>>2])+(s<<1)|0,n[A>>2]=s,n[t>>2]=a,o=(i<<1)+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,s=0):i=a,(0|i)<0&&(s=s-i|0,n[A>>2]=s,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=s-o|0,a=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=a,n[r>>2]=0,s=e,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|a)<(0|s)?a:s))?o:i))<=0||(n[A>>2]=s-i,n[t>>2]=a-i,n[r>>2]=o-i)}function kA(A,e){e|=0;var t,r,o,i=0,a=0,s=0;return o=(0|(r=(0|n[(A|=0)>>2])-(0|n[e>>2])|0))<0,t=(0|(a=(0|n[A+4>>2])-(0|n[e+4>>2])-(o?r:0)|0))<0,e=(e=(A=(0|(s=(o?0-r|0:0)+(0|n[A+8>>2])-(0|n[e+8>>2])+(t?0-a|0:0)|0))<0)?0:s)-((a=(0|(A=(0|e)<(0|(A=(0|(i=(t?0:a)-(A?s:0)|0))<(0|(s=(o?0:r)-(t?a:0)-(A?s:0)|0))?i:s))?e:A))>0)?A:0)|0,i=i-(a?A:0)|0,0|((0|(A=(0|(A=s-(a?A:0)|0))>-1?A:0-A|0))>(0|(e=(0|(i=(0|i)>-1?i:0-i|0))>(0|(e=(0|e)>-1?e:0-e|0))?i:e))?A:e)}function CA(A){var e,t,r,o;t=(o=0|n[(e=8+(A|=0)|0)>>2])-(0|n[A>>2])|0,n[A>>2]=t,A=(0|n[(r=A+4|0)>>2])-o|0,n[r>>2]=A,n[e>>2]=0-(A+t)}function BA(A){var e,t,r=0,o=0,i=0,a=0,s=0;r=0-(o=0|n[(A|=0)>>2])|0,n[A>>2]=r,n[(e=A+8|0)>>2]=0,a=(i=0|n[(t=A+4|0)>>2])+o|0,(0|o)>0?(n[t>>2]=a,n[e>>2]=o,n[A>>2]=0,r=0,i=a):o=0,(0|i)<0?(s=r-i|0,n[A>>2]=s,o=o-i|0,n[e>>2]=o,n[t>>2]=0,a=s-o|0,r=0-o|0,(0|o)<0?(n[A>>2]=a,n[t>>2]=r,n[e>>2]=0,i=r,o=0):(i=0,a=s)):a=r,(0|(r=(0|o)<(0|(r=(0|i)<(0|a)?i:a))?o:r))<=0||(n[A>>2]=a-r,n[t>>2]=i-r,n[e>>2]=o-r)}function MA(A,e){var t=0;switch(t=0|tt(0|(A|=0),0|(e|=0),56),B(),7&t){case 0:case 7:return 0}return t=-2130706433&e|134217728,!0&268435456==(2013265920&e)?!0&16777216==(117440512&e)&!!(0|HA(A,t))?0|(t=0):0|(t=0|LA(A,t)):0|(t=0)}function DA(A,e,t){t|=0;var r,o,i=0,a=0;return o=S,S=S+16|0,r=o,a=-2130706433&(e|=0)|134217728,!0&268435456==(2013265920&e)?(i=0|tt(0|(A|=0),0|e,56),B(),i=0|function(A,e,t){t|=0;var r,o=0,i=0;if(r=S,S=S+16|0,i=r,o=0|HA(A|=0,e|=0),(t+-1|0)>>>0>5)return S=r,-1;if(1==(0|t)&(o=!!(0|o)))return S=r,-1;do{if(!(0|Fe(A,e,i))){if(o){o=(5+(0|n[26352+(t<<2)>>2])-(0|n[i>>2])|0)%5|0;break}o=(6+(0|n[26384+(t<<2)>>2])-(0|n[i>>2])|0)%6|0;break}o=-1}while(0);return S=r,0|(i=o)}(A,a,7&i),-1==(0|i)?(n[t>>2]=0,S=o,0|(a=6)):(0|qA(A,a,r)&&M(27795,26932,282,26947),e=0|tt(0|A,0|e,52),B(),e&=15,0|HA(A,a)?jA(r,e,i,2,t):FA(r,e,i,2,t),S=o,0|(a=0))):(S=o,0|(a=6))}function EA(A,e,t,r,i){e|=0,t|=0,r|=0,i|=0;var a,s=0,u=0;if(s=+function(A){var e,t;return t=+o[(A|=0)>>3],e=+o[A+8>>3],+ +c(+(t*t+e*e))}(A|=0),s<1e-16)return e=15600+(e<<4)|0,n[i>>2]=n[e>>2],n[i+4>>2]=n[e+4>>2],n[i+8>>2]=n[e+8>>2],void(n[i+12>>2]=n[e+12>>2]);if(u=+p(+ +o[A+8>>3],+ +o[A>>3]),(0|t)>0){A=0;do{s*=.37796447300922725,A=A+1|0}while((0|A)!=(0|t))}a=.3333333333333333*s,r?(t=!(0|ZA(t)),s=+b(.381966011250105*(t?a:.37796447300922725*a))):(s=+b(.381966011250105*s),0|ZA(t)&&(u=+ne(u+.3334731722518321))),function(A,e,t,r){A|=0,e=+e,r|=0;var i=0,a=0,s=0,c=0;if((t=+t)<1e-16)return n[r>>2]=n[A>>2],n[r+4>>2]=n[A+4>>2],n[r+8>>2]=n[A+8>>2],void(n[r+12>>2]=n[A+12>>2]);a=e<0?e+6.283185307179586:e,a=e>=6.283185307179586?a+-6.283185307179586:a;do{if(!(a<1e-16)){if(i=+l(+(a+-3.141592653589793))<1e-16,e=+o[A>>3],i){e-=t,o[r>>3]=e,i=r;break}if(s=+d(+t),t=+f(+t),e=s*+f(+e)+ +d(+a)*(t*+d(+e)),e=+m(+((e=e>1?1:e)<-1?-1:e)),o[r>>3]=e,+l(+(e+-1.5707963267948966))<1e-16)return o[r>>3]=1.5707963267948966,void(o[r+8>>3]=0);if(+l(+(e+1.5707963267948966))<1e-16)return o[r>>3]=-1.5707963267948966,void(o[r+8>>3]=0);if(c=1/+d(+e),a=t*+f(+a)*c,t=+o[A>>3],e=c*((s-+f(+e)*+f(+t))/+d(+t)),s=a>1?1:a,e=e>1?1:e,(e=+o[A+8>>3]+ +p(+(s<-1?-1:s),+(e<-1?-1:e)))>3.141592653589793)do{e+=-6.283185307179586}while(e>3.141592653589793);if(e<-3.141592653589793)do{e+=6.283185307179586}while(e<-3.141592653589793);return void(o[r+8>>3]=e)}e=+o[A>>3]+t,o[r>>3]=e,i=r}while(0);if(+l(+(e+-1.5707963267948966))<1e-16)return o[i>>3]=1.5707963267948966,void(o[r+8>>3]=0);if(+l(+(e+1.5707963267948966))<1e-16)return o[i>>3]=-1.5707963267948966,void(o[r+8>>3]=0);if((e=+o[A+8>>3])>3.141592653589793)do{e+=-6.283185307179586}while(e>3.141592653589793);if(e<-3.141592653589793)do{e+=6.283185307179586}while(e<-3.141592653589793);o[r+8>>3]=e}(15600+(e<<4)|0,+ne(+o[15920+(24*e|0)>>3]-u),s,i)}function jA(A,e,t,r,i){A|=0,e|=0,t|=0,r|=0,i|=0;var a,s,l,c,u,d,f,g,h,m,b,p,v,y,w,x,k,C,B,D,E,j,Q=0,N=0,F=0,P=0,T=0,L=0;if(j=S,S=S+272|0,P=j+240|0,B=j,D=j+224|0,E=j+208|0,b=j+176|0,p=j+160|0,v=j+192|0,y=j+144|0,w=j+128|0,x=j+112|0,k=j+96|0,C=j+80|0,n[(Q=j+256|0)>>2]=e,n[P>>2]=n[A>>2],n[P+4>>2]=n[A+4>>2],n[P+8>>2]=n[A+8>>2],n[P+12>>2]=n[A+12>>2],QA(P,Q,B),n[i>>2]=0,(0|(P=r+t+(5==(0|r)&1)|0))<=(0|t))S=j;else{s=D+4|0,l=b+4|0,c=t+5|0,u=16880+((a=0|n[Q>>2])<<2)|0,d=16960+(a<<2)|0,f=w+8|0,g=x+8|0,h=k+8|0,m=E+4|0,F=t;A:for(;;){N=B+((0|F)%5<<4)|0,n[E>>2]=n[N>>2],n[E+4>>2]=n[N+4>>2],n[E+8>>2]=n[N+8>>2],n[E+12>>2]=n[N+12>>2];do{}while(2==(0|NA(E,a,0,1)));if((0|F)>(0|t)&!!(0|ZA(e))){if(n[b>>2]=n[E>>2],n[b+4>>2]=n[E+4>>2],n[b+8>>2]=n[E+8>>2],n[b+12>>2]=n[E+12>>2],oA(s,p),r=0|n[b>>2],Q=0|n[17040+(80*r|0)+(n[D>>2]<<2)>>2],n[b>>2]=n[18640+(80*r|0)+(20*Q|0)>>2],(0|(N=0|n[18640+(80*r|0)+(20*Q|0)+16>>2]))>0){A=0;do{bA(l),A=A+1|0}while((0|A)<(0|N))}switch(N=18640+(80*r|0)+(20*Q|0)+4|0,n[v>>2]=n[N>>2],n[v+4>>2]=n[N+4>>2],n[v+8>>2]=n[N+8>>2],sA(v,3*(0|n[u>>2])|0),iA(l,v,l),nA(l),oA(l,y),T=+(0|n[d>>2]),o[w>>3]=3*T,o[f>>3]=0,L=-1.5*T,o[x>>3]=L,o[g>>3]=2.598076211353316*T,o[k>>3]=L,o[h>>3]=-2.598076211353316*T,0|n[17040+(80*(0|n[b>>2])|0)+(n[E>>2]<<2)>>2]){case 1:A=x,r=w;break;case 3:A=k,r=x;break;case 2:A=w,r=k;break;default:A=12;break A}Qe(p,y,r,A,C),EA(C,0|n[b>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])}if((0|F)<(0|c)&&(oA(m,b),EA(b,0|n[E>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])),n[D>>2]=n[E>>2],n[D+4>>2]=n[E+4>>2],n[D+8>>2]=n[E+8>>2],n[D+12>>2]=n[E+12>>2],(0|(F=F+1|0))>=(0|P)){A=3;break}}3!=(0|A)?12==(0|A)&&M(26970,27017,572,27027):S=j}}function QA(A,e,t){A|=0,e|=0,t|=0;var r,o=0,i=0,a=0,s=0,l=0;r=S,S=S+128|0,i=r,s=20240,l=60+(a=o=r+64|0)|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));s=20304,l=(a=i)+60|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));o=(l=!(0|ZA(0|n[e>>2])))?o:i,wA(i=A+4|0),xA(i),0|ZA(0|n[e>>2])&&(hA(i),n[e>>2]=1+(0|n[e>>2])),n[t>>2]=n[A>>2],iA(i,o,e=t+4|0),nA(e),n[t+16>>2]=n[A>>2],iA(i,o+12|0,e=t+20|0),nA(e),n[t+32>>2]=n[A>>2],iA(i,o+24|0,e=t+36|0),nA(e),n[t+48>>2]=n[A>>2],iA(i,o+36|0,e=t+52|0),nA(e),n[t+64>>2]=n[A>>2],iA(i,o+48|0,t=t+68|0),nA(t),S=r}function NA(A,e,t,r){t|=0,r|=0;var o,i,a,s,l,c,u=0,d=0,f=0,g=0,h=0;if(c=S,S=S+32|0,l=c+12|0,i=c,h=4+(A|=0)|0,g=0|n[16960+((e|=0)<<2)>>2],g=(s=!!(0|r))?3*g|0:g,u=0|n[h>>2],o=0|n[(a=A+8|0)>>2],s){if((0|(u=o+u+(r=0|n[(d=A+12|0)>>2])|0))==(0|g))return S=c,1;f=d}else u=o+u+(r=0|n[(f=A+12|0)>>2])|0;if((0|u)<=(0|g))return S=c,0;do{if((0|r)>0){if(r=0|n[A>>2],(0|o)>0){d=18640+(80*r|0)+60|0,r=A;break}r=18640+(80*r|0)+40|0,t?(rA(l,g,0,0),aA(h,l,i),pA(i),iA(i,l,h),d=r,r=A):(d=r,r=A)}else d=18640+(80*(0|n[A>>2])|0)+20|0,r=A}while(0);if(n[r>>2]=n[d>>2],(0|n[(u=d+16|0)>>2])>0){r=0;do{bA(h),r=r+1|0}while((0|r)<(0|n[u>>2]))}return A=d+4|0,n[l>>2]=n[A>>2],n[l+4>>2]=n[A+4>>2],n[l+8>>2]=n[A+8>>2],e=0|n[16880+(e<<2)>>2],sA(l,s?3*e|0:e),iA(h,l,h),nA(h),r=s&&((0|n[a>>2])+(0|n[h>>2])+(0|n[f>>2])|0)==(0|g)?1:2,S=c,0|r}function SA(A,e){A|=0,e|=0;var t=0;do{t=0|NA(A,e,0,1)}while(2==(0|t));return 0|t}function FA(A,e,t,r,i){A|=0,e|=0,t|=0,r|=0,i|=0;var a,s,l,c,u,d,f,g,h,m,b,p,v,y,w,x,k,C,B=0,D=0,E=0,j=0,Q=0;if(C=S,S=S+240|0,y=C+208|0,w=C,x=C+192|0,k=C+176|0,h=C+160|0,m=C+144|0,b=C+128|0,p=C+112|0,v=C+96|0,n[(B=C+224|0)>>2]=e,n[y>>2]=n[A>>2],n[y+4>>2]=n[A+4>>2],n[y+8>>2]=n[A+8>>2],n[y+12>>2]=n[A+12>>2],PA(y,B,w),n[i>>2]=0,(0|(g=r+t+(6==(0|r)&1)|0))<=(0|t))S=C;else{s=t+6|0,l=16960+((a=0|n[B>>2])<<2)|0,c=m+8|0,u=b+8|0,d=p+8|0,f=x+4|0,D=0,E=t,r=-1;A:for(;;){if(A=w+((B=(0|E)%6|0)<<4)|0,n[x>>2]=n[A>>2],n[x+4>>2]=n[A+4>>2],n[x+8>>2]=n[A+8>>2],n[x+12>>2]=n[A+12>>2],A=D,D=0|NA(x,a,0,1),(0|E)>(0|t)&!!(0|ZA(e))&&1!=(0|A)&&(0|n[x>>2])!=(0|r)){switch(oA(w+((B+5|0)%6<<4)+4|0,k),oA(w+(B<<4)+4|0,h),j=+(0|n[l>>2]),o[m>>3]=3*j,o[c>>3]=0,Q=-1.5*j,o[b>>3]=Q,o[u>>3]=2.598076211353316*j,o[p>>3]=Q,o[d>>3]=-2.598076211353316*j,B=0|n[y>>2],0|n[17040+(80*B|0)+(((0|r)==(0|B)?n[x>>2]:r)<<2)>>2]){case 1:A=b,r=m;break;case 3:A=p,r=b;break;case 2:A=m,r=p;break;default:A=8;break A}Qe(k,h,r,A,v),0|Ne(k,v)||0|Ne(h,v)||(EA(v,0|n[y>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2]))}if((0|E)<(0|s)&&(oA(f,k),EA(k,0|n[x>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])),(0|(E=E+1|0))>=(0|g)){A=3;break}r=0|n[x>>2]}3!=(0|A)?8==(0|A)&&M(27054,27017,737,27099):S=C}}function PA(A,e,t){A|=0,e|=0,t|=0;var r,o=0,i=0,a=0,s=0,l=0;r=S,S=S+160|0,i=r,s=20368,l=72+(a=o=r+80|0)|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));s=20448,l=(a=i)+72|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));o=(l=!(0|ZA(0|n[e>>2])))?o:i,wA(i=A+4|0),xA(i),0|ZA(0|n[e>>2])&&(hA(i),n[e>>2]=1+(0|n[e>>2])),n[t>>2]=n[A>>2],iA(i,o,e=t+4|0),nA(e),n[t+16>>2]=n[A>>2],iA(i,o+12|0,e=t+20|0),nA(e),n[t+32>>2]=n[A>>2],iA(i,o+24|0,e=t+36|0),nA(e),n[t+48>>2]=n[A>>2],iA(i,o+36|0,e=t+52|0),nA(e),n[t+64>>2]=n[A>>2],iA(i,o+48|0,e=t+68|0),nA(e),n[t+80>>2]=n[A>>2],iA(i,o+60|0,t=t+84|0),nA(t),S=r}function TA(A,e){return e=0|tt(0|(A|=0),0|(e|=0),45),B(),127&e}function LA(A,e){A|=0;var t=0,n=0,o=0,i=0;return!0&134217728==(-16777216&(e|=0))?(n=0|tt(0|A,0|e,52),B(),n&=15,t=0|tt(0|A,0|e,45),B(),(t&=127)>>>0>121?0|(A=0):!(613566756&(i=0|rt(0|(o=0|tt(0|A,0|e,0|(i=3*(15^n)|0))),0|B(),0|i))&Ze(-1227133514,-1171,0|i,0|(o=0|B())))&!(4681&o&B())&&15==(0|n)|!(0|(i=0|tt(0|rt(0|~A,0|~e,0|(i=19+(3*n|0)|0)),0|B(),0|i)))&!(0|B())?0|r[20528+t|0]?!(0|A)&!(0|(e&=8191))?0|(i=1):(i=0|nt(0|A,0|e),B(),0|!!((63-i|0)%3|0)):0|(i=1):0|(i=0)):0|(A=0)}function IA(A,e,t,r){A|=0,t|=0,r|=0;var o=0,i=0,a=0,s=0;if(o=0|rt(0|(e|=0),0,52),i=0|B(),t=0|rt(0|t,0,45),t=0|i|B()|134225919,(0|e)<1)return i=-1,r=t,n[(e=A)>>2]=i,void(n[(A=A+4|0)>>2]=r);for(i=1,o=-1;s=0|rt(7,0,0|(a=3*(15-i|0)|0)),t&=~B(),o=o&~s|(a=0|rt(0|r,0,0|a)),t=0|t|B(),(0|i)!=(0|e);)i=i+1|0;n[(a=s=A)>>2]=o,n[(s=s+4|0)>>2]=t}function RA(A,e,t,r){t|=0,r|=0;var o=0,i=0;if(i=0|tt(0|(A|=0),0|(e|=0),52),B(),t>>>0>15)return 4;if((0|(i&=15))<(0|t))return 12;if((0|i)==(0|t))return n[r>>2]=A,n[r+4>>2]=e,0;if(o=0|rt(0|t,0,52),o|=A,A=B()|-15728641&e,(0|i)>(0|t))do{e=0|rt(7,0,3*(14-t|0)|0),t=t+1|0,o|=e,A=0|B()|A}while((0|t)<(0|i));return n[r>>2]=o,n[r+4>>2]=A,0}function _A(A,e,t,r){t|=0,r|=0;var o=0,i=0,a=0;if(i=0|tt(0|(A|=0),0|(e|=0),52),B(),!((0|t)<16&(0|(i&=15))<=(0|t)))return 4;o=t-i|0,t=0|tt(0|A,0|e,45),B();A:do{if(0|z(127&t)){e:do{if(0|i){for(t=1;!((a=0|rt(7,0,3*(15-t|0)|0))&A)&!((0|B())&e);){if(!(t>>>0>>0))break e;t=t+1|0}t=0|pe(7,0,o,((0|o)<0)<<31>>31),o=0|B();break A}}while(0);t=0|We(0|(t=0|Xe(0|(t=0|pe(7,0,o,((0|o)<0)<<31>>31)),0|B(),5,0)),0|B(),-5,-1),t=0|We(0|(t=0|qe(0|t,0|B(),6,0)),0|B(),1,0),o=0|B()}else t=0|pe(7,0,o,((0|o)<0)<<31>>31),o=0|B()}while(0);return n[(a=r)>>2]=t,n[a+4>>2]=o,0}function HA(A,e){var t=0,r=0,n=0;if(n=0|tt(0|(A|=0),0|(e|=0),45),B(),!(0|z(127&n)))return 0;n=0|tt(0|A,0|e,52),B(),n&=15;A:do{if(n)for(r=1;;){if(t=0|tt(0|A,0|e,3*(15-r|0)|0),B(),0|(t&=7))break A;if(!(r>>>0>>0)){t=0;break}r=r+1|0}else t=0}while(0);return 1&!(0|t)}function zA(A,e,t,r){return A|=0,e|=0,(0|(r|=0))<(0|(t|=0))?(r=A,C(0|(t=e)),0|r):(t=0|rt(-1,-1,3+(3*(r-t|0)|0)|0),r=0|rt(0|~t,0|~B(),3*(15-r|0)|0),t=~B()&e,r=~r&A,C(0|t),0|r)}function GA(A,e,t,r){t|=0,r|=0;var o=0;return o=0|tt(0|(A|=0),0|(e|=0),52),B(),(0|t)<16&(0|(o&=15))<=(0|t)?((0|o)<(0|t)&&(o=0|rt(-1,-1,3+(3*(t+-1-o|0)|0)|0),o=0|rt(0|~o,0|~B(),3*(15-t|0)|0),e=~B()&e,A&=~o),o=0|rt(0|t,0,52),t=-15728641&e|B(),n[r>>2]=A|o,n[r+4>>2]=t,0|(r=0)):0|(r=4)}function UA(A,e){var t=0,r=0,n=0;if(n=0|tt(0|(A|=0),0|(e|=0),52),B(),!(n&=15))return 0;for(r=1;;){if(t=0|tt(0|A,0|e,3*(15-r|0)|0),B(),0|(t&=7)){r=5;break}if(!(r>>>0>>0)){t=0,r=5;break}r=r+1|0}return 5==(0|r)?0|t:0}function OA(A,e){var t=0,r=0,n=0,o=0,i=0,a=0,s=0;if(s=0|tt(0|(A|=0),0|(e|=0),52),B(),!(s&=15))return s=A,C(0|(a=e)),0|s;for(a=1,t=0;;){r=0|rt(7,0,0|(o=3*(15-a|0)|0)),n=0|B(),i=0|tt(0|A,0|e,0|o),B(),A=(o=0|rt(0|vA(7&i),0,0|o))|A&~r,e=(i=0|B())|e&~n;A:do{if(!t)if(!(o&r|0)&!(i&n|0))t=0;else if(r=0|tt(0|A,0|e,52),B(),r&=15){t=1;e:for(;;){switch(i=0|tt(0|A,0|e,3*(15-t|0)|0),B(),7&i){case 1:break e;case 0:break;default:t=1;break A}if(!(t>>>0>>0)){t=1;break A}t=t+1|0}for(t=1;;){if(n=0|tt(0|A,0|e,0|(i=3*(15-t|0)|0)),B(),o=0|rt(7,0,0|i),e&=~B(),A=A&~o|(i=0|rt(0|vA(7&n),0,0|i)),e=0|e|B(),!(t>>>0>>0)){t=1;break}t=t+1|0}}else t=1}while(0);if(!(a>>>0>>0))break;a=a+1|0}return C(0|e),0|A}function YA(A,e){var t=0,r=0,n=0,o=0,i=0;if(r=0|tt(0|(A|=0),0|(e|=0),52),B(),!(r&=15))return r=A,C(0|(t=e)),0|r;for(t=1;i=0|tt(0|A,0|e,0|(o=3*(15-t|0)|0)),B(),n=0|rt(7,0,0|o),e&=~B(),A=(o=0|rt(0|vA(7&i),0,0|o))|A&~n,e=0|B()|e,t>>>0>>0;)t=t+1|0;return C(0|e),0|A}function VA(A,e){var t=0,r=0,n=0,o=0,i=0,a=0,s=0;if(s=0|tt(0|(A|=0),0|(e|=0),52),B(),!(s&=15))return s=A,C(0|(a=e)),0|s;for(a=1,t=0;;){r=0|rt(7,0,0|(o=3*(15-a|0)|0)),n=0|B(),i=0|tt(0|A,0|e,0|o),B(),A=(o=0|rt(0|yA(7&i),0,0|o))|A&~r,e=(i=0|B())|e&~n;A:do{if(!t)if(!(o&r|0)&!(i&n|0))t=0;else if(r=0|tt(0|A,0|e,52),B(),r&=15){t=1;e:for(;;){switch(i=0|tt(0|A,0|e,3*(15-t|0)|0),B(),7&i){case 1:break e;case 0:break;default:t=1;break A}if(!(t>>>0>>0)){t=1;break A}t=t+1|0}for(t=1;;){if(o=0|rt(7,0,0|(n=3*(15-t|0)|0)),i=e&~B(),e=0|tt(0|A,0|e,0|n),B(),A=A&~o|(e=0|rt(0|yA(7&e),0,0|n)),e=0|i|B(),!(t>>>0>>0)){t=1;break}t=t+1|0}}else t=1}while(0);if(!(a>>>0>>0))break;a=a+1|0}return C(0|e),0|A}function WA(A,e){var t=0,r=0,n=0,o=0,i=0;if(r=0|tt(0|(A|=0),0|(e|=0),52),B(),!(r&=15))return r=A,C(0|(t=e)),0|r;for(t=1;o=0|rt(7,0,0|(i=3*(15-t|0)|0)),n=e&~B(),e=0|tt(0|A,0|e,0|i),B(),A=(e=0|rt(0|yA(7&e),0,0|i))|A&~o,e=0|B()|n,t>>>0>>0;)t=t+1|0;return C(0|e),0|A}function ZA(A){return(0|(A|=0))%2|0}function KA(A,e,t){t|=0;var r,i=0;return r=S,S=S+16|0,i=r,(e|=0)>>>0>15?(S=r,0|(i=4)):2146435072&~n[4+(A|=0)>>2]&&2146435072&~n[A+8+4>>2]?(function(A,e,t){var r,i;r=S,S=S+16|0,function(A,e,t,r){e|=0,r|=0;var i,a=0,s=0,l=0,c=0;if(i=S,S=S+16|0,function(A,e,t){e|=0,t|=0;var r,i,a=0;i=S,S=S+32|0,function(A,e){e|=0;var t,r,n=0;n=+o[(A|=0)>>3],t=+d(+n),n=+f(+n),o[e+16>>3]=n,n=+o[A+8>>3],r=t*+d(+n),o[e>>3]=r,n=t*+f(+n),o[e+8>>3]=n}(A|=0,r=i),n[e>>2]=0,o[t>>3]=5,(a=+Se(16400,r))<+o[t>>3]&&(n[e>>2]=0,o[t>>3]=a),(a=+Se(16424,r))<+o[t>>3]&&(n[e>>2]=1,o[t>>3]=a),(a=+Se(16448,r))<+o[t>>3]&&(n[e>>2]=2,o[t>>3]=a),(a=+Se(16472,r))<+o[t>>3]&&(n[e>>2]=3,o[t>>3]=a),(a=+Se(16496,r))<+o[t>>3]&&(n[e>>2]=4,o[t>>3]=a),(a=+Se(16520,r))<+o[t>>3]&&(n[e>>2]=5,o[t>>3]=a),(a=+Se(16544,r))<+o[t>>3]&&(n[e>>2]=6,o[t>>3]=a),(a=+Se(16568,r))<+o[t>>3]&&(n[e>>2]=7,o[t>>3]=a),(a=+Se(16592,r))<+o[t>>3]&&(n[e>>2]=8,o[t>>3]=a),(a=+Se(16616,r))<+o[t>>3]&&(n[e>>2]=9,o[t>>3]=a),(a=+Se(16640,r))<+o[t>>3]&&(n[e>>2]=10,o[t>>3]=a),(a=+Se(16664,r))<+o[t>>3]&&(n[e>>2]=11,o[t>>3]=a),(a=+Se(16688,r))<+o[t>>3]&&(n[e>>2]=12,o[t>>3]=a),(a=+Se(16712,r))<+o[t>>3]&&(n[e>>2]=13,o[t>>3]=a),(a=+Se(16736,r))<+o[t>>3]&&(n[e>>2]=14,o[t>>3]=a),(a=+Se(16760,r))<+o[t>>3]&&(n[e>>2]=15,o[t>>3]=a),(a=+Se(16784,r))<+o[t>>3]&&(n[e>>2]=16,o[t>>3]=a),(a=+Se(16808,r))<+o[t>>3]&&(n[e>>2]=17,o[t>>3]=a),(a=+Se(16832,r))<+o[t>>3]&&(n[e>>2]=18,o[t>>3]=a),(a=+Se(16856,r))<+o[t>>3]?(n[e>>2]=19,o[t>>3]=a,S=i):S=i}(A|=0,t|=0,c=i),(s=+h(+(1-.5*+o[c>>3])))<1e-16)return n[r>>2]=0,n[r+4>>2]=0,n[r+8>>2]=0,n[r+12>>2]=0,void(S=i);if(c=0|n[t>>2],a=+ne((a=+o[15920+(24*c|0)>>3])-+ne(+function(A,e){var t,r,n,i,a;return A|=0,i=+o[(e|=0)>>3],r=+d(+i),n=+o[e+8>>3]-+o[A+8>>3],a=r*+f(+n),t=+o[A>>3],+ +p(+a,+(+f(+i)*+d(+t)-+d(+n)*(r*+f(+t))))}(15600+(c<<4)|0,A))),l=0|ZA(e)?+ne(a+-.3334731722518321):a,a=2.618033988749896*+g(+s),(0|e)>0){A=0;do{a*=2.6457513110645907,A=A+1|0}while((0|A)!=(0|e))}s=+d(+l)*a,o[r>>3]=s,l=+f(+l)*a,o[r+8>>3]=l,S=i}(A|=0,e|=0,t|=0,i=r),function(A,e){A|=0;var t,r,i,a,s=0,c=0,u=0,d=0,f=0,g=0,h=0;n[(a=8+(e|=0)|0)>>2]=0,r=+o[A>>3],d=+l(+r),i=+o[A+8>>3],d+=.5*(f=1.1547005383792515*+l(+i)),d-=+(0|(s=~~d)),f-=+(0|(A=~~f));do{if(d<.5){if(d<.3333333333333333){if(n[e>>2]=s,f<.5*(d+1)){n[e+4>>2]=A;break}A=A+1|0,n[e+4>>2]=A;break}if(A=(1&!(f<(h=1-d)))+A|0,n[e+4>>2]=A,h<=f&f<2*d){s=s+1|0,n[e>>2]=s;break}n[e>>2]=s;break}if(!(d<.6666666666666666)){if(s=s+1|0,n[e>>2]=s,f<.5*d){n[e+4>>2]=A;break}A=A+1|0,n[e+4>>2]=A;break}if(f<1-d){if(n[e+4>>2]=A,2*d-1>2]=s;break}}else A=A+1|0,n[e+4>>2]=A;s=s+1|0,n[e>>2]=s}while(0);do{if(r<0){if(1&A){s=~~(+(0|s)-(2*(+((g=0|Ze(0|s,((0|s)<0)<<31>>31,0|(g=(A+1|0)/2|0),((0|g)<0)<<31>>31))>>>0)+4294967296*+(0|B()))+1)),n[e>>2]=s;break}s=~~(+(0|s)-2*(+((g=0|Ze(0|s,((0|s)<0)<<31>>31,0|(g=(0|A)/2|0),((0|g)<0)<<31>>31))>>>0)+4294967296*+(0|B()))),n[e>>2]=s;break}}while(0);g=e+4|0,i<0&&(s=s-((1|A<<1)/2|0)|0,n[e>>2]=s,A=0-A|0,n[g>>2]=A),c=A-s|0,(0|s)<0?(u=0-s|0,n[g>>2]=c,n[a>>2]=u,n[e>>2]=0,A=c,s=0):u=0,(0|A)<0&&(s=s-A|0,n[e>>2]=s,u=u-A|0,n[a>>2]=u,n[g>>2]=0,A=0),t=s-u|0,c=A-u|0,(0|u)<0&&(n[e>>2]=t,n[g>>2]=c,n[a>>2]=0,A=c,s=t,u=0),(0|(c=(0|u)<(0|(c=(0|A)<(0|s)?A:s))?u:c))<=0||(n[e>>2]=s-c,n[g>>2]=A-c,n[a>>2]=u-c)}(i,t+4|0),S=r}(A,e,i),e=0|function(A,e){A|=0;var t,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0;if(t=S,S=S+64|0,l=t+40|0,o=t+24|0,i=t+12|0,a=t,rt(0|(e|=0),0,52),r=134225919|B(),!e)return(0|n[A+4>>2])>2||(0|n[A+8>>2])>2||(0|n[A+12>>2])>2?(l=0,C(0|(s=0)),S=t,0|l):(rt(0|U(A),0,45),s=0|B()|r,l=-1,C(0|s),S=t,0|l);if(n[l>>2]=n[A>>2],n[l+4>>2]=n[A+4>>2],n[l+8>>2]=n[A+8>>2],n[l+12>>2]=n[A+12>>2],s=l+4|0,(0|e)>0)for(A=-1;n[o>>2]=n[s>>2],n[o+4>>2]=n[s+4>>2],n[o+8>>2]=n[s+8>>2],1&e?(dA(s),n[i>>2]=n[s>>2],n[i+4>>2]=n[s+4>>2],n[i+8>>2]=n[s+8>>2],gA(i)):(fA(s),n[i>>2]=n[s>>2],n[i+4>>2]=n[s+4>>2],n[i+8>>2]=n[s+8>>2],hA(i)),aA(o,i,a),nA(a),c=0|rt(7,0,0|(u=3*(15-e|0)|0)),r&=~B(),A=(u=0|rt(0|lA(a),0,0|u))|A&~c,r=0|B()|r,(0|e)>1;)e=e+-1|0;else A=-1;A:do{if((0|n[s>>2])<=2&&(0|n[l+8>>2])<=2&&(0|n[l+12>>2])<=2){if(e=0|rt(0|(o=0|U(l)),0,45),e|=A,A=B()|-1040385&r,a=0|O(l),!(0|z(o))){if((0|a)<=0)break;for(i=0;;){if(o=0|tt(0|e,0|A,52),B(),o&=15)for(r=1;l=0|tt(0|e,0|A,0|(u=3*(15-r|0)|0)),B(),c=0|rt(7,0,0|u),A&=~B(),e=e&~c|(u=0|rt(0|vA(7&l),0,0|u)),A=0|A|B(),r>>>0>>0;)r=r+1|0;if((0|(i=i+1|0))==(0|a))break A}}i=0|tt(0|e,0|A,52),B(),i&=15;e:do{if(i){r=1;t:for(;;){switch(u=0|tt(0|e,0|A,3*(15-r|0)|0),B(),7&u){case 1:break t;case 0:break;default:break e}if(!(r>>>0>>0))break e;r=r+1|0}if(0|Y(o,0|n[l>>2]))for(r=1;c=0|rt(7,0,0|(l=3*(15-r|0)|0)),u=A&~B(),A=0|tt(0|e,0|A,0|l),B(),e=e&~c|(A=0|rt(0|yA(7&A),0,0|l)),A=0|u|B(),r>>>0>>0;)r=r+1|0;else for(r=1;l=0|tt(0|e,0|A,0|(u=3*(15-r|0)|0)),B(),c=0|rt(7,0,0|u),A&=~B(),e=e&~c|(u=0|rt(0|vA(7&l),0,0|u)),A=0|A|B(),r>>>0>>0;)r=r+1|0}}while(0);if((0|a)>0){r=0;do{e=0|OA(e,A),A=0|B(),r=r+1|0}while((0|r)!=(0|a))}}else e=0,A=0}while(0);return u=e,C(0|(c=A)),S=t,0|u}(i,e),i=0|B(),n[t>>2]=e,n[t+4>>2]=i,!(0|e)&!(0|i)&&M(27795,27122,1050,27145),S=r,0|(i=0)):(S=r,0|(i=3))}function JA(A,e,t){var r,o=0,i=0,a=0;if(r=4+(t|=0)|0,i=0|tt(0|(A|=0),0|(e|=0),52),B(),i&=15,a=0|tt(0|A,0|e,45),B(),o=!(0|i),0|z(127&a)){if(o)return 1;o=1}else{if(o)return 0;o=0|n[r>>2]||0|n[t+8>>2]?1:1&!!(0|n[t+12>>2])}for(t=1;1&t?gA(r):hA(r),a=0|tt(0|A,0|e,3*(15-t|0)|0),B(),mA(r,7&a),t>>>0>>0;)t=t+1|0;return 0|o}function qA(A,e,t){t|=0;var r,o,i=0,a=0,s=0,l=0,c=0,u=0;if(o=S,S=S+16|0,r=o,u=0|tt(0|(A|=0),0|(e|=0),45),B(),(u&=127)>>>0>121)return n[t>>2]=0,n[t+4>>2]=0,n[t+8>>2]=0,n[t+12>>2]=0,S=o,5;A:do{if(0|z(u)&&(s=0|tt(0|A,0|e,52),B(),0|(s&=15))){i=1;e:for(;;){switch(c=0|tt(0|A,0|e,3*(15-i|0)|0),B(),7&c){case 5:break e;case 0:break;default:i=e;break A}if(!(i>>>0>>0)){i=e;break A}i=i+1|0}for(a=1,i=e;l=0|rt(7,0,0|(e=3*(15-a|0)|0)),c=i&~B(),i=0|tt(0|A,0|i,0|e),B(),A=A&~l|(i=0|rt(0|yA(7&i),0,0|e)),i=0|c|B(),a>>>0>>0;)a=a+1|0}else i=e}while(0);if(c=7696+(28*u|0)|0,n[t>>2]=n[c>>2],n[t+4>>2]=n[c+4>>2],n[t+8>>2]=n[c+8>>2],n[t+12>>2]=n[c+12>>2],!(0|JA(A,i,t)))return S=o,0;if(l=t+4|0,n[r>>2]=n[l>>2],n[r+4>>2]=n[l+4>>2],n[r+8>>2]=n[l+8>>2],s=0|tt(0|A,0|i,52),B(),c=15&s,1&s?(hA(l),s=c+1|0):s=c,0|z(u)){A:do{if(c)for(e=1;;){if(a=0|tt(0|A,0|i,3*(15-e|0)|0),B(),0|(a&=7)){i=a;break A}if(!(e>>>0>>0)){i=0;break}e=e+1|0}else i=0}while(0);i=4==(0|i)&1}else i=0;if(0|NA(t,s,i,0)){if(0|z(u))do{}while(0|NA(t,s,0,0));(0|s)!=(0|c)&&fA(l)}else(0|s)!=(0|c)&&(n[l>>2]=n[r>>2],n[l+4>>2]=n[r+4>>2],n[l+8>>2]=n[r+8>>2]);return S=o,0}function XA(A,e,t){t|=0;var r,o,i=0;return o=S,S=S+16|0,0|(i=0|qA(A|=0,e|=0,r=o))?(S=o,0|i):(i=0|tt(0|A,0|e,52),B(),function(A,e,t){var r,o;e|=0,t|=0,r=S,S=S+16|0,oA(4+(A|=0)|0,o=r),EA(o,0|n[A>>2],e,0,t),S=r}(r,15&i,t),S=o,0|(i=0))}function $A(A,e,t){t|=0;var r,n=0,o=0,i=0;if(r=S,S=S+16|0,0|(n=0|qA(A|=0,e|=0,i=r)))return S=r,0|n;n=0|tt(0|A,0|e,45),B(),n=!(0|z(127&n)),o=0|tt(0|A,0|e,52),B(),o&=15;A:do{if(!n){if(0|o)for(n=1;;){if(!(!((0|rt(7,0,3*(15-n|0)|0))&A)&!((0|B())&e)))break A;if(!(n>>>0>>0))break;n=n+1|0}return jA(i,o,0,5,t),S=r,0}}while(0);return FA(i,o,0,6,t),S=r,0}function Ae(A,e){e|=0;var t=0,r=0,o=0,i=0,a=0,s=0,l=0;if((A|=0)>>>0>15)return 4;if(rt(0|A,0,52),s=134225919|B(),!A){t=0,r=0;do{0|z(r)&&(rt(0|r,0,45),a=0|s|B(),n[(A=e+(t<<3)|0)>>2]=-1,n[A+4>>2]=a,t=t+1|0),r=r+1|0}while(122!=(0|r));return 0}t=0,a=0;do{if(0|z(a)){for(rt(0|a,0,45),r=1,o=-1,i=0|s|B();o&=~(l=0|rt(7,0,3*(15-r|0)|0)),i&=~B(),(0|r)!=(0|A);)r=r+1|0;n[(l=e+(t<<3)|0)>>2]=o,n[l+4>>2]=i,t=t+1|0}a=a+1|0}while(122!=(0|a));return 0}function ee(A,e,t,r){A|=0,r|=0;var o=0,i=0,a=0;o=0|tt(0|(e|=0),0|(t|=0),52),B(),!(0|e)&!(0|t)|(0|r)>15|(0|(o&=15))>(0|r)?(i=-1,e=-1,t=0,o=0):(e=0|zA(e,t,o+1|0,r),a=-15728641&B(),t=0|rt(0|r,0,52),i=o,e=(e=!(0|HA(t|=e,a=0|a|B())))?-1:r,o=a),n[(a=A)>>2]=t,n[a+4>>2]=o,n[A+8>>2]=i,n[A+12>>2]=e}function te(A,e,t,r){t|=0,r|=0;var o=0,i=0;return o=0|tt(0|(A|=0),0|(e|=0),52),B(),o&=15,n[(i=r+8|0)>>2]=o,!(0|A)&!(0|e)|(0|t)>15|(0|o)>(0|t)?(n[(t=r)>>2]=0,n[t+4>>2]=0,n[i>>2]=-1,void(n[r+12>>2]=-1)):(A=0|zA(A,e,o+1|0,t),i=-15728641&B(),o=0|rt(0|t,0,52),o|=A,i=0|i|B(),n[(A=r)>>2]=o,n[A+4>>2]=i,A=r+12|0,0|HA(o,i)?void(n[A>>2]=t):void(n[A>>2]=-1))}function re(A){var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0;if(!(!(0|(t=0|n[(r=A|=0)>>2]))&!(0|(r=0|n[r+4>>2]))||(o=0|tt(0|t,0|r,52),B(),t=0|We(0|(l=0|rt(1,0,3*(15^(o&=15))|0)),0|B(),0|t,0|r),r=0|B(),n[(l=A)>>2]=t,n[l+4>>2]=r,(0|o)<(0|(s=0|n[(l=A+8|0)>>2]))))){for(e=A+12|0,a=o;;){if((0|a)==(0|s)){o=5;break}if(c=(0|a)==(0|n[e>>2]),o=0|tt(0|t,0|r,0|(i=3*(15-a|0)|0)),B(),c&1==(0|(o&=7))&!0){o=7;break}if(!(7==(0|o)&!0)){o=10;break}if(t=0|We(0|t,0|r,0|(c=0|rt(1,0,0|i)),0|B()),r=0|B(),n[(c=A)>>2]=t,n[c+4>>2]=r,!((0|a)>(0|s))){o=10;break}a=a+-1|0}if(5==(0|o))return n[(c=A)>>2]=0,n[c+4>>2]=0,n[l>>2]=-1,void(n[e>>2]=-1);if(7==(0|o))return s=0|We(0|t,0|r,0|(s=0|rt(1,0,0|i)),0|B()),l=0|B(),n[(c=A)>>2]=s,n[c+4>>2]=l,void(n[e>>2]=a+-1)}}function ne(A){var e;return e=(A=+A)<0?A+6.283185307179586:A,+(A>=6.283185307179586?e+-6.283185307179586:e)}function oe(A,e){return e|=0,+l(+(+o[(A|=0)>>3]-+o[e>>3]))<17453292519943298e-27?0|(e=+l(+(+o[A+8>>3]-+o[e+8>>3]))<17453292519943298e-27):0|(e=0)}function ie(A,e){switch(A=+A,0|(e|=0)){case 1:A=A<0?A+6.283185307179586:A;break;case 2:A=A>0?A+-6.283185307179586:A}return+A}function ae(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))*6371.007180918475}function se(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20656+(A<<3)>>3],0|(e=0))}function le(A,e){e|=0;var t=0;return(A|=0)>>>0>15?0|(e=4):(t=0|Xe(0|(t=0|pe(7,0,A,((0|A)<0)<<31>>31)),0|B(),120,0),A=0|B(),n[e>>2]=2|t,n[e+4>>2]=A,0|(e=0))}function ce(A,e,t){A|=0,t|=0;var r,n,i,a,s=0,l=0,u=0,h=0,m=0,v=0;return v=+o[(e|=0)>>3],i=+o[A>>3],m=+f(.5*(v-i)),u=+o[e+8>>3],n=+o[A+8>>3],h=+f(.5*(u-n)),r=+d(+i),a=+d(+v),h=2*+p(+ +c(+(h=m*m+h*(a*r*h))),+ +c(+(1-h))),m=+o[t>>3],v=+f(.5*(m-v)),s=+o[t+8>>3],u=+f(.5*(s-u)),l=+d(+m),u=2*+p(+ +c(+(u=v*v+u*(a*l*u))),+ +c(+(1-u))),m=+f(.5*(i-m)),s=+f(.5*(n-s)),s=2*+p(+ +c(+(s=m*m+s*(r*l*s))),+ +c(+(1-s))),4*+b(+ +c(+ +g(.5*(l=.5*(h+u+s)))*+g(.5*(l-h))*+g(.5*(l-u))*+g(.5*(l-s))))}function ue(A,e,t){t|=0;var r,i,a,s=0,l=0;if(a=S,S=S+192|0,i=a,0|(l=0|XA(A|=0,e|=0,r=a+168|0)))return S=a,0|l;if(0|$A(A,e,i)&&M(27795,27190,415,27199),(0|(e=0|n[i>>2]))>0){if(s=+ce(i+8|0,i+8+((1!=(0|e)&1)<<4)|0,r)+0,1!=(0|e)){A=1;do{s+=+ce(i+8+((l=A)<<4)|0,i+8+((0|(A=A+1|0))%(0|e)<<4)|0,r)}while((0|A)<(0|e))}}else s=0;return o[t>>3]=s,S=a,0}function de(A){A|=0;var e,t,r=0;return(e=0|Ve(1,12))||M(27280,27235,49,27293),0|(r=0|n[(t=A+4|0)>>2])?(n[(r=r+8|0)>>2]=e,n[t>>2]=e,0|e):(0|n[A>>2]&&M(27310,27235,61,27333),n[(r=A)>>2]=e,n[t>>2]=e,0|e)}function fe(A,e){var t,r;return A|=0,e|=0,(r=0|Oe(24))||M(27347,27235,78,27361),n[r>>2]=n[e>>2],n[r+4>>2]=n[e+4>>2],n[r+8>>2]=n[e+8>>2],n[r+12>>2]=n[e+12>>2],n[r+16>>2]=0,0|(t=0|n[(e=A+4|0)>>2])?(n[t+16>>2]=r,n[e>>2]=r,0|r):(0|n[A>>2]&&M(27376,27235,82,27361),n[A>>2]=r,n[e>>2]=r,0|r)}function ge(A){var e=0,t=0,r=0,o=0;if(A|=0)for(r=1;;){if(0|(e=0|n[A>>2]))do{if(0|(t=0|n[e>>2]))do{o=t,t=0|n[t+16>>2],Ye(o)}while(0|t);o=e,e=0|n[e+8>>2],Ye(o)}while(0|e);if(e=A,A=0|n[A+8>>2],r||Ye(e),!A)break;r=0}}function he(A,e,t){A|=0;var r=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0;if(!(0|q(e|=0,t|=0)))return 0;if(e=0|K(e),r=+o[t>>3],i=e&(i=+o[t+8>>3])<0?i+6.283185307179586:i,!(A=0|n[A>>2]))return 0;if(e){e=0,u=i,t=A;A:for(;;){for(;s=+o[t>>3],i=+o[t+8>>3],d=0|n[(t=t+16|0)>>2],a=+o[(d=0|d?d:A)>>3],l=+o[d+8>>3],s>a?(c=s,s=l):(c=a,a=s,s=i,i=l),(r=r==a|r==c?r+2220446049250313e-31:r)c;)if(!(t=0|n[t>>2])){t=22;break A}if(((c=(l=s<0?s+6.283185307179586:s)+(r-a)/(c-a)*((s=i<0?i+6.283185307179586:i)-l))<0?c+6.283185307179586:c)>(u=l==u|s==u?u+-2220446049250313e-31:u)&&(e^=1),!(t=0|n[t>>2])){t=22;break}}if(22==(0|t))return 0|e}else{e=0,u=i,t=A;A:for(;;){for(;s=+o[t>>3],i=+o[t+8>>3],d=0|n[(t=t+16|0)>>2],a=+o[(d=0|d?d:A)>>3],l=+o[d+8>>3],s>a?(c=s,s=l):(c=a,a=s,s=i,i=l),(r=r==a|r==c?r+2220446049250313e-31:r)c;)if(!(t=0|n[t>>2])){t=22;break A}if(s+(r-a)/(c-a)*(i-s)>(u=s==u|i==u?u+-2220446049250313e-31:u)&&(e^=1),!(t=0|n[t>>2])){t=22;break}}if(22==(0|t))return 0|e}return 0}function me(A,e,t,o,i){t|=0,o|=0,i|=0;var a,s,l,c,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(c=S,S=S+32|0,y=c+16|0,l=c,u=0|tt(0|(A|=0),0|(e|=0),52),B(),u&=15,b=0|tt(0|t,0|o,52),B(),(0|u)!=(15&b))return S=c,12;if(h=0|tt(0|A,0|e,45),B(),h&=127,m=0|tt(0|t,0|o,45),B(),h>>>0>121|(m&=127)>>>0>121)return S=c,5;if(b=(0|h)!=(0|m)){if(7==(0|(f=0|W(h,m))))return S=c,1;7==(0|(g=0|W(m,h)))?M(27514,27538,161,27548):(p=f,d=g)}else p=0,d=0;a=0|z(h),s=0|z(m),n[y>>2]=0,n[y+4>>2]=0,n[y+8>>2]=0,n[y+12>>2]=0;do{if(p){if(f=(0|(m=0|n[4272+(28*h|0)+(p<<2)>>2]))>0,s)if(f){h=0,g=t,f=o;do{g=0|VA(g,f),f=0|B(),1==(0|(d=0|yA(d)))&&(d=0|yA(1)),h=h+1|0}while((0|h)!=(0|m));m=d,h=g,g=f}else m=d,h=t,g=o;else if(f){h=0,g=t,f=o;do{g=0|WA(g,f),f=0|B(),d=0|yA(d),h=h+1|0}while((0|h)!=(0|m));m=d,h=g,g=f}else m=d,h=t,g=o;if(JA(h,g,y),b||M(27563,27538,191,27548),(f=!!(0|a))&(d=!!(0|s))&&M(27590,27538,192,27548),f){if(7==(0|(d=0|UA(A,e)))){u=5;break}if(0|r[22e3+(7*d|0)+p|0]){u=1;break}h=g=0|n[21168+(28*d|0)+(p<<2)>>2]}else if(d){if(7==(0|(d=0|UA(h,g)))){u=5;break}if(0|r[22e3+(7*d|0)+m|0]){u=1;break}h=0,g=0|n[21168+(28*m|0)+(d<<2)>>2]}else h=0,g=0;if((h|g|0)<0)u=5;else{if((0|g)>0){f=y+4|0,d=0;do{pA(f),d=d+1|0}while((0|d)!=(0|g))}if(n[l>>2]=0,n[l+4>>2]=0,n[l+8>>2]=0,mA(l,p),0|u)for(;0|ZA(u)?gA(l):hA(l),(0|u)>1;)u=u+-1|0;if((0|h)>0){u=0;do{pA(l),u=u+1|0}while((0|u)!=(0|h))}iA(v=y+4|0,l,v),nA(v),v=51}}else if(JA(t,o,y),!!(0|a)&!!(0|s))if((0|m)!=(0|h)&&M(27621,27538,261,27548),7==(0|(d=0|UA(A,e)))|7==(0|(u=0|UA(t,o))))u=5;else if(0|r[22e3+(7*d|0)+u|0])u=1;else if((0|(d=0|n[21168+(28*d|0)+(u<<2)>>2]))>0){f=y+4|0,u=0;do{pA(f),u=u+1|0}while((0|u)!=(0|d));v=51}else v=51;else v=51}while(0);return 51==(0|v)&&(u=y+4|0,n[i>>2]=n[u>>2],n[i+4>>2]=n[u+4>>2],n[i+8>>2]=n[u+8>>2],u=0),S=c,0|u}function be(A,e,t,r){t|=0,r|=0;var o,i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(a=S,S=S+48|0,o=a+36|0,c=a+24|0,u=a+12|0,d=a,s=0|tt(0|(A|=0),0|(e|=0),52),B(),s&=15,g=0|tt(0|A,0|e,45),B(),(g&=127)>>>0>121)return S=a,5;if(i=0|z(g),rt(0|s,0,52),b=134225919|B(),n[(l=r)>>2]=-1,n[l+4>>2]=b,!s)return 7==(0|(s=0|lA(t)))||127==(0|(s=0|V(g,s)))?(S=a,0|(b=1)):(h=0|rt(0|s,0,45),m=0|B(),m=-1040385&n[(g=r)+4>>2]|m,n[(b=r)>>2]=n[g>>2]|h,n[b+4>>2]=m,S=a,0|(b=0));for(n[o>>2]=n[t>>2],n[o+4>>2]=n[t+4>>2],n[o+8>>2]=n[t+8>>2],t=s;;){if(l=t,t=t+-1|0,n[c>>2]=n[o>>2],n[c+4>>2]=n[o+4>>2],n[c+8>>2]=n[o+8>>2],0|ZA(l)){if(0|(s=0|cA(o))){t=13;break}n[u>>2]=n[o>>2],n[u+4>>2]=n[o+4>>2],n[u+8>>2]=n[o+8>>2],gA(u)}else{if(0|(s=0|uA(o))){t=13;break}n[u>>2]=n[o>>2],n[u+4>>2]=n[o+4>>2],n[u+8>>2]=n[o+8>>2],hA(u)}if(aA(c,u,d),nA(d),v=0|n[(s=r)>>2],s=0|n[s+4>>2],p=0|rt(7,0,0|(y=3*(15-l|0)|0)),s&=~B(),y=0|rt(0|lA(d),0,0|y),s=0|B()|s,n[(b=r)>>2]=y|v&~p,n[b+4>>2]=s,(0|l)<=1){t=14;break}}A:do{if(13!=(0|t)&&14==(0|t))if((0|n[o>>2])<=1&&(0|n[o+4>>2])<=1&&(0|n[o+8>>2])<=1){d=127==(0|(s=0|V(g,t=0|lA(o))))?0:0|z(s);e:do{if(t){if(i){if(7==(0|(s=0|UA(A,e)))){s=5;break A}if((0|(l=0|n[21376+(28*s|0)+(t<<2)>>2]))>0){s=t,t=0;do{s=0|vA(s),t=t+1|0}while((0|t)!=(0|l))}else s=t;if(1==(0|s)){s=9;break A}127==(0|(t=0|V(g,s)))&&M(27648,27538,411,27678),0|z(t)?M(27693,27538,412,27678):(m=t,h=l,f=s)}else m=s,h=0,f=t;if((0|(u=0|n[4272+(28*g|0)+(f<<2)>>2]))<=-1&&M(27724,27538,419,27678),!d){if((0|h)<0){s=5;break A}if(0|h){s=0,t=0|n[(l=r)>>2],l=0|n[l+4>>2];do{t=0|YA(t,l),l=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=l,s=s+1|0}while((0|s)<(0|h))}if((0|u)<=0){s=m,t=58;break}for(s=0,t=0|n[(l=r)>>2],l=0|n[l+4>>2];;)if(t=0|YA(t,l),l=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=l,(0|(s=s+1|0))==(0|u)){s=m,t=58;break e}}if(7==(0|(c=0|W(m,g)))&&M(27514,27538,428,27678),t=0|n[(s=r)>>2],s=0|n[s+4>>2],(0|u)>0){l=0;do{t=0|YA(t,s),s=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=s,l=l+1|0}while((0|l)!=(0|u))}if(7==(0|(s=0|UA(t,s)))&&M(27795,27538,440,27678),t=0|G(m),(0|(t=0|n[(t?21792:21584)+(28*c|0)+(s<<2)>>2]))<0&&M(27795,27538,454,27678),t){s=0,l=0|n[(c=r)>>2],c=0|n[c+4>>2];do{l=0|OA(l,c),c=0|B(),n[(y=r)>>2]=l,n[y+4>>2]=c,s=s+1|0}while((0|s)<(0|t));s=m,t=58}else s=m,t=58}else if(!!(0|i)&!!(0|d)){if(7==(0|(t=0|UA(A,e)))|7==(0|(l=0|UA(0|n[(l=r)>>2],0|n[l+4>>2])))){s=5;break A}if((0|(l=0|n[21376+(28*t|0)+(l<<2)>>2]))<0){s=5;break A}if(l){t=0,c=0|n[(u=r)>>2],u=0|n[u+4>>2];do{c=0|YA(c,u),u=0|B(),n[(y=r)>>2]=c,n[y+4>>2]=u,t=t+1|0}while((0|t)<(0|l));t=58}else t=59}else t=58}while(0);if(58==(0|t)&&d&&(t=59),59==(0|t)&&1==(0|UA(0|n[(y=r)>>2],0|n[y+4>>2]))){s=9;break}p=0|n[(y=r)>>2],y=-1040385&n[y+4>>2],v=0|rt(0|s,0,45),y=0|y|B(),n[(s=r)>>2]=p|v,n[s+4>>2]=y,s=0}else s=1}while(0);return S=a,0|s}function pe(A,e,t,r){A|=0,e|=0;var n=0,o=0,i=0;if(!(0|(t|=0))&!(0|(r|=0)))return o=1,C(0|(n=0)),0|o;o=A,n=e,A=1,e=0;do{A=0|Xe(0|((i=!0&!(1&t))?1:o),0|(i?0:n),0|A,0|e),e=0|B(),t=0|et(0|t,0|r,1),r=0|B(),o=0|Xe(0|o,0|n,0|o,0|n),n=0|B()}while(!(!(0|t)&!(0|r)));return C(0|e),0|A}function ve(A,e,t,r){t|=0,r|=0;var i,a=0,s=0,l=0,c=0,u=0,f=0;i=S,S=S+16|0,s=i,l=0|tt(0|(A|=0),0|(e|=0),52),B(),l&=15;do{if(l){if(!(a=0|XA(A,e,s))){u=+o[s>>3],c=1/+d(+u),f=+o[25968+(l<<3)>>3],o[t>>3]=u+f,o[t+8>>3]=u-f,u=+o[s+8>>3],c*=f,o[t+16>>3]=c+u,o[t+24>>3]=u-c;break}return S=i,0|a}if(a=0|tt(0|A,0|e,45),B(),(a&=127)>>>0>121)return S=i,5;s=22064+(a<<5)|0,n[t>>2]=n[s>>2],n[t+4>>2]=n[s+4>>2],n[t+8>>2]=n[s+8>>2],n[t+12>>2]=n[s+12>>2],n[t+16>>2]=n[s+16>>2],n[t+20>>2]=n[s+20>>2],n[t+24>>2]=n[s+24>>2],n[t+28>>2]=n[s+28>>2];break}while(0);return function(A,e){e=+e;var t,r,n,i,a,s,l,c=0,u=0;c=(i=+o[(n=16+(A|=0)|0)>>3])-(r=+o[(t=A+24|0)>>3]),c=i>3],c=.5*(c*e-c),u+=e=.5*((l=u-(s=+o[(a=A+8|0)>>3]))*e-l),o[A>>3]=u>1.5707963267948966?1.5707963267948966:u,e=s-e,o[a>>3]=e<-1.5707963267948966?-1.5707963267948966:e,e=(e=i+c)>3.141592653589793?e+-6.283185307179586:e,o[n>>3]=e<-3.141592653589793?e+6.283185307179586:e,e=(e=r-c)>3.141592653589793?e+-6.283185307179586:e,o[t>>3]=e<-3.141592653589793?e+6.283185307179586:e}(t,r?1.4:1.1),(0|n[(r=26096+(l<<3)|0)>>2])==(0|A)&&(0|n[r+4>>2])==(0|e)&&(o[t>>3]=1.5707963267948966),(0|n[(l=26224+(l<<3)|0)>>2])==(0|A)&&(0|n[l+4>>2])==(0|e)&&(o[t+8>>3]=-1.5707963267948966),1.5707963267948966!=+o[t>>3]&&-1.5707963267948966!=+o[t+8>>3]?(S=i,0|(l=0)):(o[t+16>>3]=3.141592653589793,o[t+24>>3]=-3.141592653589793,S=i,0|(l=0))}function ye(A){var e,t,o,i,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0;if(i=S,S=S+336|0,e=i+168|0,t=i,!(0|(s=0|n[(l=A|=0)>>2]))&!(0|(l=0|n[l+4>>2])))S=i;else{if(0|r[0|(a=A+28|0)]?(s=0|we(s,l),l=0|B()):r[0|a]=1,!(0|n[n[(o=A+20|0)>>2]>>2]))return 0|(s=0|n[(a=A+24|0)>>2])&&Ye(s),n[(x=A)>>2]=0,n[x+4>>2]=0,n[A+8>>2]=0,n[o>>2]=0,n[A+12>>2]=-1,n[A+16>>2]=0,n[a>>2]=0,void(S=i);c=15&(a=0|n[(x=A+16|0)>>2]);A:do{if(!(0|s)&!(0|l))w=A+24|0;else{v=A+12|0,b=3==(0|c),m=255&a,g=3==(1|c),p=A+24|0,h=(c+-1|0)>>>0<3,d=3==(2|c),f=t+8|0;e:for(;;){if(u=0|tt(0|s,0|l,52),B(),(0|(u&=15))==(0|n[v>>2])){switch(15&m){case 0:case 2:case 3:if(0|(c=0|XA(s,l,e))){y=15;break e}if(0|Me(0|n[o>>2],0|n[p>>2],e)){y=19;break e}}if(g&&(c=0|n[4+(0|n[o>>2])>>2],n[e>>2]=n[c>>2],n[e+4>>2]=n[c+4>>2],n[e+8>>2]=n[c+8>>2],n[e+12>>2]=n[c+12>>2],0|q(26832,e))){if(0|KA(0|n[4+(0|n[o>>2])>>2],u,t)){y=25;break}if((0|n[(c=t)>>2])==(0|s)&&(0|n[c+4>>2])==(0|l)){y=29;break}}if(h){if(0|(c=0|$A(s,l,e))){y=32;break}if(0|ve(s,l,t,0)){y=36;break}if(d&&0|De(0|n[o>>2],0|n[p>>2],e,t)){y=42;break}if(g&&0|je(0|n[o>>2],0|n[p>>2],e,t)){y=42;break}}if(b){if(a=0|ve(s,l,e,1),c=0|n[p>>2],0|a){y=45;break}if(0|X(c,e)){if(AA(t,e),0|$(e,0|n[p>>2])){y=53;break}if(0|Me(0|n[o>>2],0|n[p>>2],f)){y=53;break}if(0|je(0|n[o>>2],0|n[p>>2],t,e)){y=53;break}}}}do{if((0|u)<(0|n[v>>2])){if(a=0|ve(s,l,e,1),c=0|n[p>>2],0|a){y=58;break e}if(!(0|X(c,e))){y=73;break}if(0|$(0|n[p>>2],e)&&(AA(t,e),0|De(0|n[o>>2],0|n[p>>2],t,e))){y=65;break e}if(0|(s=0|GA(s,l,u+1|0,t))){y=67;break e}s=0|n[(l=t)>>2],l=0|n[l+4>>2]}else y=73}while(0);if(73==(0|y)&&(y=0,s=0|we(s,l),l=0|B()),!(0|s)&!(0|l)){w=p;break A}}switch(0|y){case 15:0|(a=0|n[p>>2])&&Ye(a),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=c,y=20;break;case 19:n[A>>2]=s,n[A+4>>2]=l,y=20;break;case 25:M(27795,27761,470,27772);break;case 29:case 42:return n[A>>2]=s,n[A+4>>2]=l,void(S=i);case 32:return 0|(a=0|n[p>>2])&&Ye(a),n[(w=A)>>2]=0,n[w+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=c,void(S=i);case 36:M(27795,27761,493,27772);break;case 45:0|c&&Ye(c),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=a,y=55;break;case 53:n[A>>2]=s,n[A+4>>2]=l,y=55;break;case 58:0|c&&Ye(c),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=a,y=71;break;case 65:n[A>>2]=s,n[A+4>>2]=l,y=71;break;case 67:return 0|(a=0|n[p>>2])&&Ye(a),n[(w=A)>>2]=0,n[w+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=s,void(S=i)}if(20==(0|y))return void(S=i);if(55==(0|y))return void(S=i);if(71==(0|y))return void(S=i)}}while(0);0|(a=0|n[w>>2])&&Ye(a),n[(y=A)>>2]=0,n[y+4>>2]=0,n[A+8>>2]=0,n[o>>2]=0,n[A+12>>2]=-1,n[x>>2]=0,n[w>>2]=0,S=i}}function we(A,e){var t,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0;t=S,S=S+16|0,d=t,o=0|tt(0|(A|=0),0|(e|=0),52),B(),o&=15,r=0|tt(0|A,0|e,45),B();do{if(o){for(;r=0|rt(o+4095|0,0,52),i=B()|-15728641&e,r=r|A|(s=0|rt(7,0,0|(a=3*(15-o|0)|0))),i|=l=0|B(),c=0|tt(0|A,0|e,0|a),B(),o=o+-1|0,!((c&=7)>>>0<6);){if(!o){u=4;break}e=i,A=r}if(4==(0|u)){r=0|tt(0|r,0|i,45),B();break}return d=0|rt(((d=!(0|c)&!!(0|HA(r,i)))?2:1)+c|0,0,0|a),u=0|B()|e&~l,d|=A&~s,C(0|u),S=t,0|d}}while(0);return(r&=127)>>>0>120?(d=0,C(0|(u=0)),S=t,0|d):(IA(d,0,r+1|0,0),u=0|n[d+4>>2],d=0|n[d>>2],C(0|u),S=t,0|d)}function xe(A,e,t){A|=0;var r,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0;if(!(0|q(e|=0,t|=0)))return 0;if(e=0|K(e),i=+o[t>>3],a=e&(a=+o[t+8>>3])<0?a+6.283185307179586:a,(0|(g=0|n[A>>2]))<=0)return 0;if(r=0|n[A+4>>2],e){e=0,f=a,t=-1,A=0;A:for(;;){for(d=A;l=+o[r+(d<<4)>>3],a=+o[r+(d<<4)+8>>3],s=+o[r+((A=(t+2|0)%(0|g)|0)<<4)>>3],c=+o[r+(A<<4)+8>>3],l>s?(u=l,l=c):(u=s,s=l,l=a,a=c),(i=i==s|i==u?i+2220446049250313e-31:i)u;){if((0|(t=d+1|0))>=(0|g)){t=22;break A}A=d,d=t,t=A}if(((u=(c=l<0?l+6.283185307179586:l)+(i-s)/(u-s)*((l=a<0?a+6.283185307179586:a)-c))<0?u+6.283185307179586:u)>(f=c==f|l==f?f+-2220446049250313e-31:f)&&(e^=1),(0|(A=d+1|0))>=(0|g)){t=22;break}t=d}if(22==(0|t))return 0|e}else{e=0,f=a,t=-1,A=0;A:for(;;){for(d=A;l=+o[r+(d<<4)>>3],a=+o[r+(d<<4)+8>>3],s=+o[r+((A=(t+2|0)%(0|g)|0)<<4)>>3],c=+o[r+(A<<4)+8>>3],l>s?(u=l,l=c):(u=s,s=l,l=a,a=c),(i=i==s|i==u?i+2220446049250313e-31:i)u;){if((0|(t=d+1|0))>=(0|g)){t=22;break A}A=d,d=t,t=A}if(l+(i-s)/(u-s)*(a-l)>(f=l==f|a==f?f+-2220446049250313e-31:f)&&(e^=1),(0|(A=d+1|0))>=(0|g)){t=22;break}t=d}if(22==(0|t))return 0|e}return 0}function ke(A,e){e|=0;var t,r,i,a,s,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0;if(!(r=0|n[(A|=0)>>2]))return n[e>>2]=0,n[e+4>>2]=0,n[e+8>>2]=0,n[e+12>>2]=0,n[e+16>>2]=0,n[e+20>>2]=0,n[e+24>>2]=0,void(n[e+28>>2]=0);if(o[(i=e+8|0)>>3]=17976931348623157e292,o[(a=e+24|0)>>3]=17976931348623157e292,o[e>>3]=-17976931348623157e292,o[(s=e+16|0)>>3]=-17976931348623157e292,!((0|r)<=0)){for(t=0|n[A+4>>2],b=17976931348623157e292,p=-17976931348623157e292,v=0,A=-1,f=17976931348623157e292,g=17976931348623157e292,m=-17976931348623157e292,u=-17976931348623157e292,y=0;c=+o[t+(y<<4)>>3],h=+o[t+(y<<4)+8>>3],d=+o[t+(((0|(A=A+2|0))==(0|r)?0:A)<<4)+8>>3],c>3]=c,f=c),h>3]=h,g=h),c>m?o[e>>3]=c:c=m,h>u&&(o[s>>3]=h,u=h),b=h>0&hp?h:p,v|=+l(+(h-d))>3.141592653589793,(0|(A=y+1|0))!=(0|r);)w=y,m=c,y=A,A=w;v&&(o[s>>3]=p,o[a>>3]=b)}}function Ce(A){return 0|((A|=0)>>>0<4?0:15)}function Be(A,e){e|=0;var t,r=0,i=0,a=0,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,M=0;if(p=0|n[(A|=0)>>2]){if(o[(v=e+8|0)>>3]=17976931348623157e292,o[(y=e+24|0)>>3]=17976931348623157e292,o[e>>3]=-17976931348623157e292,o[(w=e+16|0)>>3]=-17976931348623157e292,(0|p)>0){for(a=0|n[A+4>>2],m=17976931348623157e292,b=-17976931348623157e292,i=0,r=-1,d=17976931348623157e292,f=17976931348623157e292,h=-17976931348623157e292,c=-17976931348623157e292,x=0;s=+o[a+(x<<4)>>3],g=+o[a+(x<<4)+8>>3],u=+o[a+(((0|(B=r+2|0))==(0|p)?0:B)<<4)+8>>3],s>3]=s,d=s),g>3]=g,f=g),s>h?o[e>>3]=s:s=h,g>c&&(o[w>>3]=g,c=g),m=g>0&gb?g:b,i|=+l(+(g-u))>3.141592653589793,(0|(r=x+1|0))!=(0|p);)B=x,h=s,x=r,r=B;i&&(o[w>>3]=b,o[y>>3]=m)}}else n[e>>2]=0,n[e+4>>2]=0,n[e+8>>2]=0,n[e+12>>2]=0,n[e+16>>2]=0,n[e+20>>2]=0,n[e+24>>2]=0,n[e+28>>2]=0;if(!((0|(r=0|n[(B=A+8|0)>>2]))<=0)){t=A+12|0,C=0;do{if(a=0|n[t>>2],i=C,y=e+((C=C+1|0)<<5)|0,w=0|n[a+(i<<3)>>2]){if(o[(x=e+(C<<5)+8|0)>>3]=17976931348623157e292,o[(A=e+(C<<5)+24|0)>>3]=17976931348623157e292,o[y>>3]=-17976931348623157e292,o[(k=e+(C<<5)+16|0)>>3]=-17976931348623157e292,(0|w)>0){for(p=0|n[a+(i<<3)+4>>2],m=17976931348623157e292,b=-17976931348623157e292,a=0,i=-1,v=0,d=17976931348623157e292,f=17976931348623157e292,g=-17976931348623157e292,c=-17976931348623157e292;s=+o[p+(v<<4)>>3],h=+o[p+(v<<4)+8>>3],u=+o[p+(((0|(i=i+2|0))==(0|w)?0:i)<<4)+8>>3],s>3]=s,d=s),h>3]=h,f=h),s>g?o[y>>3]=s:s=g,h>c&&(o[k>>3]=h,c=h),m=h>0&hb?h:b,a|=+l(+(h-u))>3.141592653589793,(0|(i=v+1|0))!=(0|w);)M=v,v=i,g=s,i=M;a&&(o[k>>3]=b,o[A>>3]=m)}}else n[y>>2]=0,n[y+4>>2]=0,n[y+8>>2]=0,n[y+12>>2]=0,n[y+16>>2]=0,n[y+20>>2]=0,n[y+24>>2]=0,n[y+28>>2]=0,r=0|n[B>>2]}while((0|C)<(0|r))}}function Me(A,e,t){var r=0,o=0,i=0;if(!(0|xe(A|=0,e|=0,t|=0)))return 0;if((0|n[(o=A+8|0)>>2])<=0)return 1;for(r=A+12|0,A=0;;){if(i=A,A=A+1|0,0|xe((0|n[r>>2])+(i<<3)|0,e+(A<<5)|0,t)){A=0,r=6;break}if((0|A)>=(0|n[o>>2])){A=1,r=6;break}}return 6==(0|r)?0|A:0}function De(A,e,t,r){r|=0;var o,i,a=0,s=0,l=0,c=0,u=0;if(i=S,S=S+16|0,o=i,!(0|xe(A|=0,e|=0,l=8+(t|=0)|0)))return S=i,0;c=A+8|0;A:do{if((0|n[c>>2])>0){for(s=A+12|0,a=0;;){if(u=a,a=a+1|0,0|xe((0|n[s>>2])+(u<<3)|0,e+(a<<5)|0,l)){a=0;break}if((0|a)>=(0|n[c>>2]))break A}return S=i,0|a}}while(0);if(0|Ee(A,e,t,r))return S=i,0;n[o>>2]=n[t>>2],n[o+4>>2]=l,a=0|n[c>>2];A:do{if((0|a)>0)for(A=A+12|0,l=0,s=a;;){if(a=0|n[A>>2],(0|n[a+(l<<3)>>2])>0){if(0|xe(o,r,0|n[a+(l<<3)+4>>2])){a=0;break A}if(a=l+1|0,0|Ee((0|n[A>>2])+(l<<3)|0,e+(a<<5)|0,t,r)){a=0;break A}s=0|n[c>>2]}else a=l+1|0;if(!((0|a)<(0|s))){a=1;break}l=a}else a=1}while(0);return S=i,0|a}function Ee(A,e,t,r){A|=0,t|=0;var i,a,s,l,c,u,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,M=0;if(u=S,S=S+176|0,l=u+172|0,d=u+168|0,c=u,!(0|X(e|=0,r|=0)))return S=u,0;if(function(A,e,t,r){var i,a,s,l,c;e|=0,t|=0,r|=0,A=(a=+o[16+(A|=0)>>3])<(c=+o[A+24>>3]),i=(l=+o[e+16>>3])<(s=+o[e+24>>3]),e=c-l>2]=A?i|e?1:2:0,n[r>>2]=i?A?1:e?2:1:0}(e,r,l,d),st(0|c,0|t,168),(0|n[t>>2])>0){e=0;do{x=+ie(+o[(B=c+8+(e<<4)+8|0)>>3],0|n[d>>2]),o[B>>3]=x,e=e+1|0}while((0|e)<(0|n[t>>2]))}a=+o[r>>3],s=+o[r+8>>3],x=+ie(+o[r+16>>3],0|n[d>>2]),i=+ie(+o[r+24>>3],0|n[d>>2]);A:do{if((0|n[A>>2])>0){if(r=A+4|0,(0|(d=0|n[c>>2]))<=0)for(e=0;;)if((0|(e=e+1|0))>=(0|n[A>>2])){e=0;break A}for(t=0;;){if(e=0|n[r>>2],y=+o[e+(t<<4)>>3],w=+ie(+o[e+(t<<4)+8>>3],0|n[l>>2]),e=0|n[r>>2],B=(0|(t=t+1|0))%(0|n[A>>2])|0,f=+o[e+(B<<4)>>3],g=+ie(+o[e+(B<<4)+8>>3],0|n[l>>2]),!(y>=a)|!(f>=a)&&!(y<=s)|!(f<=s)&&!(w<=i)|!(g<=i)&&!(w>=x)|!(g>=x)){v=f-y,b=g-w,e=0;do{if(M=e,B=(0|(e=e+1|0))==(0|d)?0:e,f=+o[c+8+(M<<4)+8>>3],g=+o[c+8+(B<<4)+8>>3]-f,h=+o[c+8+(M<<4)>>3],!(0==(p=v*g-b*(m=+o[c+8+(B<<4)>>3]-h))||(k=w-f,C=y-h,m=(k*m-g*C)/p,m<0|m>1))&&(p=(v*k-b*C)/p)>=0&p<=1){e=1;break A}}while((0|e)<(0|d))}if((0|t)>=(0|n[A>>2])){e=0;break}}}else e=0}while(0);return S=u,0|e}function je(A,e,t,r){var o=0,i=0,a=0;if(0|Ee(A|=0,e|=0,t|=0,r|=0))return 1;if((0|n[(i=A+8|0)>>2])<=0)return 0;for(o=A+12|0,A=0;;){if(a=A,A=A+1|0,0|Ee((0|n[o>>2])+(a<<3)|0,e+(A<<5)|0,t,r)){A=1,o=6;break}if((0|A)>=(0|n[i>>2])){A=0,o=6;break}}return 6==(0|o)?0|A:0}function Qe(A,e,t,r,n){e|=0,t|=0,r|=0,n|=0;var i,a,s,l,c,u,d,f=0;l=+o[(A|=0)>>3],s=+o[e>>3]-l,a=+o[A+8>>3],i=+o[e+8>>3]-a,u=+o[t>>3],f=((f=+o[r>>3]-u)*(a-(d=+o[t+8>>3]))-(l-u)*(c=+o[r+8>>3]-d))/(s*c-i*f),o[n>>3]=l+s*f,o[n+8>>3]=a+i*f}function Ne(A,e){return e|=0,+l(+(+o[(A|=0)>>3]-+o[e>>3]))<1.1920928955078125e-7?0|(e=+l(+(+o[A+8>>3]-+o[e+8>>3]))<1.1920928955078125e-7):0|(e=0)}function Se(A,e){var t,r,n;return e|=0,+((n=+o[(A|=0)>>3]-+o[e>>3])*n+(r=+o[A+8>>3]-+o[e+8>>3])*r+(t=+o[A+16>>3]-+o[e+16>>3])*t)}function Fe(A,e,t){t|=0;var r,o,i,a,s=0,l=0,c=0,u=0;if(a=S,S=S+32|0,u=a,0|(s=0|qA(A|=0,e|=0,o=a+16|0)))return S=a,0|s;r=0|TA(A,e),i=0|UA(A,e),function(A,e){A=7696+(28*(A|=0)|0)|0,n[(e|=0)>>2]=n[A>>2],n[e+4>>2]=n[A+4>>2],n[e+8>>2]=n[A+8>>2],n[e+12>>2]=n[A+12>>2]}(r,u),s=0|function(A,e){A|=0;var t=0,r=0;if((e|=0)>>>0>20)return-1;do{if((0|n[11120+(216*e|0)>>2])!=(0|A))if((0|n[11120+(216*e|0)+8>>2])!=(0|A))if((0|n[11120+(216*e|0)+16>>2])!=(0|A))if((0|n[11120+(216*e|0)+24>>2])!=(0|A))if((0|n[11120+(216*e|0)+32>>2])!=(0|A))if((0|n[11120+(216*e|0)+40>>2])!=(0|A))if((0|n[11120+(216*e|0)+48>>2])!=(0|A))if((0|n[11120+(216*e|0)+56>>2])!=(0|A))if((0|n[11120+(216*e|0)+64>>2])!=(0|A))if((0|n[11120+(216*e|0)+72>>2])!=(0|A))if((0|n[11120+(216*e|0)+80>>2])!=(0|A))if((0|n[11120+(216*e|0)+88>>2])!=(0|A))if((0|n[11120+(216*e|0)+96>>2])!=(0|A))if((0|n[11120+(216*e|0)+104>>2])!=(0|A))if((0|n[11120+(216*e|0)+112>>2])!=(0|A))if((0|n[11120+(216*e|0)+120>>2])!=(0|A))if((0|n[11120+(216*e|0)+128>>2])!=(0|A)){if((0|n[11120+(216*e|0)+136>>2])!=(0|A)){if((0|n[11120+(216*e|0)+144>>2])==(0|A)){A=0,t=2,r=0;break}if((0|n[11120+(216*e|0)+152>>2])==(0|A)){A=0,t=2,r=1;break}if((0|n[11120+(216*e|0)+160>>2])==(0|A)){A=0,t=2,r=2;break}if((0|n[11120+(216*e|0)+168>>2])==(0|A)){A=1,t=2,r=0;break}if((0|n[11120+(216*e|0)+176>>2])==(0|A)){A=1,t=2,r=1;break}if((0|n[11120+(216*e|0)+184>>2])==(0|A)){A=1,t=2,r=2;break}if((0|n[11120+(216*e|0)+192>>2])==(0|A)){A=2,t=2,r=0;break}if((0|n[11120+(216*e|0)+200>>2])==(0|A)){A=2,t=2,r=1;break}if((0|n[11120+(216*e|0)+208>>2])==(0|A)){A=2,t=2,r=2;break}return-1}A=2,t=1,r=2}else A=2,t=1,r=1;else A=2,t=1,r=0;else A=1,t=1,r=2;else A=1,t=1,r=1;else A=1,t=1,r=0;else A=0,t=1,r=2;else A=0,t=1,r=1;else A=0,t=1,r=0;else A=2,t=0,r=2;else A=2,t=0,r=1;else A=2,t=0,r=0;else A=1,t=0,r=2;else A=1,t=0,r=1;else A=1,t=0,r=0;else A=0,t=0,r=2;else A=0,t=0,r=1;else A=0,t=0,r=0}while(0);return 0|n[11120+(216*e|0)+(72*t|0)+(24*A|0)+(r<<3)+4>>2]}(r,0|n[o>>2]);do{if(0|z(r)){switch(0|r){case 4:l=0;break;case 14:l=1;break;case 24:l=2;break;case 38:l=3;break;case 49:l=4;break;case 58:l=5;break;case 63:l=6;break;case 72:l=7;break;case 83:l=8;break;case 97:l=9;break;case 107:l=10;break;case 117:l=11;break;default:M(27795,27797,75,27806)}if(c=0|n[26416+(24*l|0)+8>>2],e=0|n[26416+(24*l|0)+16>>2],(0|(A=0|n[o>>2]))!=(0|n[u>>2])&&(u=0|G(r))|(0|(A=0|n[o>>2]))==(0|e)&&(s=(s+1|0)%6|0),3==(0|i)&(0|A)==(0|e)){s=(s+5|0)%6|0;break}5==(0|i)&(0|A)==(0|c)&&(s=(s+1|0)%6|0)}}while(0);return n[t>>2]=s,S=a,0}function Pe(A,e,t,r){t|=0,r|=0;var o,i,a,s,l,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(l=S,S=S+32|0,y=l+24|0,s=l+20|0,a=l+8|0,i=l+16|0,o=l,g=(g=!(0|HA(A|=0,e|=0)))?6:5,m=0|tt(0|A,0|e,52),B(),g>>>0<=t>>>0)return S=l,2;!(b=!(0|(m&=15)))&&!((p=0|rt(7,0,3*(15^m)|0))&A)&!((0|B())&e)?c=t:u=4;A:do{if(4==(0|u)){if((0|((c=!!(0|HA(A,e)))?4:5))<(0|t))return S=l,1;if(0|Fe(A,e,y))return S=l,1;if(u=(0|n[y>>2])+t|0,7==(0|(p=0|n[(c=c?26704+((0|u)%5<<2)|0:26736+((0|u)%6<<2)|0)>>2])))return S=l,1;n[s>>2]=0,c=0|I(A,e,p,s,a);do{if(!c){if(h=0|n[(f=a)>>2],u=(d=(f=0|n[f+4>>2])>>>0>>0|(0|f)==(0|e)&h>>>0>>0)?h:A,d=d?f:e,!b&&!(h&(b=0|rt(7,0,3*(15^m)|0)))&!(f&(0|B())))c=t;else{if(f=(t+-1+g|0)%(0|g)|0,c=0|HA(A,e),(0|f)<0&&M(27795,27797,248,27822),(0|((g=!!(0|c))?4:5))<(0|f)&&M(27795,27797,248,27822),0|Fe(A,e,y)&&M(27795,27797,248,27822),c=(0|n[y>>2])+f|0,7==(0|(f=0|n[(c=g?26704+((0|c)%5<<2)|0:26736+((0|c)%6<<2)|0)>>2]))&&M(27795,27797,248,27822),n[i>>2]=0,0|(c=0|I(A,e,f,i,o)))break;g=0|n[(h=o)>>2],h=0|n[h+4>>2];do{if(h>>>0>>0|(0|h)==(0|d)&g>>>0>>0){if(u=0|HA(g,h)?0|_(g,h,A,e):0|n[26800+(((0|n[i>>2])+(0|n[26768+(f<<2)>>2])|0)%6<<2)>>2],c=0|HA(g,h),(u+-1|0)>>>0>5){c=-1,u=g,d=h;break}if(1==(0|u)&(c=!!(0|c))){c=-1,u=g,d=h;break}do{if(!(0|Fe(g,h,y))){if(c){c=(5+(0|n[26352+(u<<2)>>2])-(0|n[y>>2])|0)%5|0;break}c=(6+(0|n[26384+(u<<2)>>2])-(0|n[y>>2])|0)%6|0;break}c=-1}while(0);u=g,d=h}else c=t}while(0);h=0|n[(f=a)>>2],f=0|n[f+4>>2]}if((0|u)==(0|h)&(0|d)==(0|f)){if(A=(g=!!(0|HA(h,f)))?0|_(h,f,A,e):0|n[26800+(((0|n[s>>2])+(0|n[26768+(p<<2)>>2])|0)%6<<2)>>2],c=0|HA(h,f),(A+-1|0)>>>0<=5&&!(1==(0|A)&(v=!!(0|c))))do{if(!(0|Fe(h,f,y))){if(v){c=(5+(0|n[26352+(A<<2)>>2])-(0|n[y>>2])|0)%5|0;break}c=(6+(0|n[26384+(A<<2)>>2])-(0|n[y>>2])|0)%6|0;break}c=-1}while(0);else c=-1;c=6==(0|(c=c+1|0))|g&5==(0|c)?0:c}e=d,A=u;break A}}while(0);return S=l,0|c}}while(0);return v=0|rt(0|c,0,56),y=B()|-2130706433&e|536870912,n[r>>2]=v|A,n[r+4>>2]=y,S=l,0}function Te(A,e){A|=0;var t,r,o=0,i=0;return r=S,S=S+16|0,t=r,!0&536870912==(2013265920&(e|=0))&&0|LA(A,o=-2130706433&e|134217728)?(i=0|tt(0|A,0|e,56),B(),o=(i=!(0|Pe(A,o,7&i,t)))&((0|n[(o=t)>>2])==(0|A)?(0|n[o+4>>2])==(0|e):0)&1,S=r,0|o):(S=r,0|(o=0))}function Le(A,e,t){A|=0,t|=0;var r=0;(0|(e|=0))>0?(r=0|Ve(e,4),n[A>>2]=r,r||M(27835,27858,40,27872)):n[A>>2]=0,n[A+4>>2]=e,n[A+8>>2]=0,n[A+12>>2]=t}function Ie(A){var e,t,r,i=0,a=0,s=0,c=0;e=4+(A|=0)|0,t=A+12|0,r=A+8|0;A:for(;;){for(a=0|n[e>>2],i=0;;){if((0|i)>=(0|a))break A;if(s=0|n[A>>2],c=0|n[s+(i<<2)>>2])break;i=i+1|0}i=s+(~~(+l(+ +u(10,+ +(15-(0|n[t>>2])|0))*(+o[c>>3]+ +o[c+8>>3]))%+(0|a))>>>0<<2)|0,a=0|n[i>>2];e:do{if(0|a){if(s=c+32|0,(0|a)==(0|c))n[i>>2]=n[s>>2];else{if(!(i=0|n[(a=a+32|0)>>2]))break;for(;(0|i)!=(0|c);)if(!(i=0|n[(a=i+32|0)>>2]))break e;n[a>>2]=n[s>>2]}Ye(c),n[r>>2]=(0|n[r>>2])-1}}while(0)}Ye(0|n[A>>2])}function Re(A){var e,t=0,r=0;for(e=0|n[4+(A|=0)>>2],r=0;;){if((0|r)>=(0|e)){t=0,r=4;break}if(t=0|n[(0|n[A>>2])+(r<<2)>>2]){r=4;break}r=r+1|0}return 4==(0|r)?0|t:0}function _e(A,e){e|=0;var t=0,r=0,i=0,a=0;if(t=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,t=(0|n[A>>2])+(t<<2)|0,!(r=0|n[t>>2]))return 1;a=e+32|0;do{if((0|r)!=(0|e)){if(!(t=0|n[r+32>>2]))return 1;for(i=t;;){if((0|i)==(0|e)){i=8;break}if(!(t=0|n[i+32>>2])){t=1,i=10;break}r=i,i=t}if(8==(0|i)){n[r+32>>2]=n[a>>2];break}if(10==(0|i))return 0|t}else n[t>>2]=n[a>>2]}while(0);return Ye(e),n[(a=A+8|0)>>2]=(0|n[a>>2])-1,0}function He(A,e,t){A|=0,e|=0,t|=0;var r,i=0,a=0,s=0;(r=0|Oe(40))||M(27888,27858,98,27901),n[r>>2]=n[e>>2],n[r+4>>2]=n[e+4>>2],n[r+8>>2]=n[e+8>>2],n[r+12>>2]=n[e+12>>2],n[(a=r+16|0)>>2]=n[t>>2],n[a+4>>2]=n[t+4>>2],n[a+8>>2]=n[t+8>>2],n[a+12>>2]=n[t+12>>2],n[r+32>>2]=0,a=~~(+l(+ +u(10,+ +(15-(0|n[A+12>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,a=(0|n[A>>2])+(a<<2)|0,i=0|n[a>>2];do{if(i){for(;!(0|oe(i,e)&&0|oe(i+16|0,t));)if(a=0|n[i+32>>2],!(0|n[(i=0|a?a:i)+32>>2])){s=10;break}if(10==(0|s)){n[i+32>>2]=r;break}return Ye(r),0|i}n[a>>2]=r}while(0);return n[(s=A+8|0)>>2]=1+(0|n[s>>2]),0|r}function ze(A,e,t){e|=0,t|=0;var r=0,i=0;if(i=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,!(i=0|n[(0|n[A>>2])+(i<<2)>>2]))return 0;if(!t){for(A=i;;){if(0|oe(A,e)){r=10;break}if(!(A=0|n[A+32>>2])){A=0,r=10;break}}if(10==(0|r))return 0|A}for(A=i;;){if(0|oe(A,e)&&0|oe(A+16|0,t)){r=10;break}if(!(A=0|n[A+32>>2])){A=0,r=10;break}}return 10==(0|r)?0|A:0}function Ge(A,e){e|=0;var t=0;if(t=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,!(A=0|n[(0|n[A>>2])+(t<<2)>>2]))return 0;for(;;){if(0|oe(A,e)){e=5;break}if(!(A=0|n[A+32>>2])){A=0,e=5;break}}return 5==(0|e)?0|A:0}function Ue(A){return 0|+ct(+(A=+A))}function Oe(A){A|=0;var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0;e=S,S=S+16|0,g=e;do{if(A>>>0<245){if(A=(u=A>>>0<11?16:A+11&-8)>>>3,3&(r=(f=0|n[6981])>>>A))return o=0|n[(r=8+(A=27964+((t=(1&r^1)+A|0)<<1<<2)|0)|0)>>2],(0|(a=0|n[(i=o+8|0)>>2]))==(0|A)?n[6981]=f&~(1<>2]=A,n[r>>2]=a),x=t<<3,n[o+4>>2]=3|x,n[(x=o+x+4|0)>>2]=1|n[x>>2],S=e,0|i;if(u>>>0>(d=0|n[6983])>>>0){if(0|r)return t=((t=r<>>=l=t>>>12&16)>>>5&8)|l|(a=(t>>>=r)>>>2&4)|(A=(t>>>=a)>>>1&2)|(o=(t>>>=A)>>>1&1))+(t>>>o)|0)<<1<<2)|0)|0)>>2],(0|(r=0|n[(l=a+8|0)>>2]))==(0|t)?(A=f&~(1<>2]=t,n[A>>2]=r,A=f),s=(x=o<<3)-u|0,n[a+4>>2]=3|u,n[4+(i=a+u|0)>>2]=1|s,n[a+x>>2]=s,0|d&&(o=0|n[6986],r=27964+((t=d>>>3)<<1<<2)|0,A&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=o,n[t+12>>2]=o,n[o+8>>2]=t,n[o+12>>2]=r),n[6983]=s,n[6986]=i,S=e,0|l;if(a=0|n[6982]){for(r=(a&0-a)-1|0,r=c=0|n[28228+(((o=(r>>>=i=r>>>12&16)>>>5&8)|i|(s=(r>>>=o)>>>2&4)|(l=(r>>>=s)>>>1&2)|(c=(r>>>=l)>>>1&1))+(r>>>c)<<2)>>2],l=c,c=(-8&n[c+4>>2])-u|0;(A=0|n[r+16>>2])||(A=0|n[r+20>>2]);)r=A,l=(i=(s=(-8&n[A+4>>2])-u|0)>>>0>>0)?A:l,c=i?s:c;if((s=l+u|0)>>>0>l>>>0){i=0|n[l+24>>2],t=0|n[l+12>>2];do{if((0|t)==(0|l)){if(!(t=0|n[(A=l+20|0)>>2])&&!(t=0|n[(A=l+16|0)>>2])){r=0;break}for(;;)if(r=0|n[(o=t+20|0)>>2])t=r,A=o;else{if(!(r=0|n[(o=t+16|0)>>2]))break;t=r,A=o}n[A>>2]=0,r=t}else r=0|n[l+8>>2],n[r+12>>2]=t,n[t+8>>2]=r,r=t}while(0);do{if(0|i){if(t=0|n[l+28>>2],(0|l)==(0|n[(A=28228+(t<<2)|0)>>2])){if(n[A>>2]=r,!r){n[6982]=a&~(1<>2])==(0|l)?x:i+20)>>2]=r,!r)break;n[r+24>>2]=i,0|(t=0|n[l+16>>2])&&(n[r+16>>2]=t,n[t+24>>2]=r),0|(t=0|n[l+20>>2])&&(n[r+20>>2]=t,n[t+24>>2]=r)}}while(0);return c>>>0<16?(x=c+u|0,n[l+4>>2]=3|x,n[(x=l+x+4|0)>>2]=1|n[x>>2]):(n[l+4>>2]=3|u,n[s+4>>2]=1|c,n[s+c>>2]=c,0|d&&(o=0|n[6986],r=27964+((t=d>>>3)<<1<<2)|0,(t=1<>2]:(n[6981]=t|f,t=r,A=r+8|0),n[A>>2]=o,n[t+12>>2]=o,n[o+8>>2]=t,n[o+12>>2]=r),n[6983]=c,n[6986]=s),S=e,0|l+8}f=u}else f=u}else f=u}else if(A>>>0<=4294967231)if(u=-8&(A=A+11|0),o=0|n[6982]){i=0-u|0,c=(A>>>=8)?u>>>0>16777215?31:u>>>(7+(c=14-((l=(520192+(b=A<<(f=(A+1048320|0)>>>16&8))|0)>>>16&4)|f|(c=(245760+(b<<=l)|0)>>>16&2))+(b<>>15)|0)|0)&1|c<<1:0,r=0|n[28228+(c<<2)>>2];A:do{if(r)for(A=0,l=u<<(31==(0|c)?0:25-(c>>>1)|0),a=0;;){if((s=(-8&n[r+4>>2])-u|0)>>>0>>0){if(!s){A=r,i=0,b=65;break A}A=r,i=s}if(a=!(0|(b=0|n[r+20>>2]))|(0|b)==(0|(r=0|n[r+16+(l>>>31<<2)>>2]))?a:b,!r){r=a,b=61;break}l<<=1}else r=0,A=0,b=61}while(0);if(61==(0|b)){if(!(0|r)&!(0|A)){if(!(A=((A=2<>>=s=f>>>12&16)>>>5&8)|s|(l=(f>>>=a)>>>2&4)|(c=(f>>>=l)>>>1&2)|(r=(f>>>=c)>>>1&1))+(f>>>r)<<2)>>2]}r?b=65:(l=A,s=i)}if(65==(0|b))for(a=r;;){if(i=(r=(f=(-8&n[a+4>>2])-u|0)>>>0>>0)?f:i,A=r?a:A,(r=0|n[a+16>>2])||(r=0|n[a+20>>2]),!r){l=A,s=i;break}a=r}if(0|l&&s>>>0<((0|n[6983])-u|0)>>>0&&(d=l+u|0)>>>0>l>>>0){a=0|n[l+24>>2],t=0|n[l+12>>2];do{if((0|t)==(0|l)){if(!(t=0|n[(A=l+20|0)>>2])&&!(t=0|n[(A=l+16|0)>>2])){t=0;break}for(;;)if(r=0|n[(i=t+20|0)>>2])t=r,A=i;else{if(!(r=0|n[(i=t+16|0)>>2]))break;t=r,A=i}n[A>>2]=0}else x=0|n[l+8>>2],n[x+12>>2]=t,n[t+8>>2]=x}while(0);do{if(a){if(A=0|n[l+28>>2],(0|l)==(0|n[(r=28228+(A<<2)|0)>>2])){if(n[r>>2]=t,!t){o&=~(1<>2])==(0|l)?x:a+20)>>2]=t,!t)break;n[t+24>>2]=a,0|(A=0|n[l+16>>2])&&(n[t+16>>2]=A,n[A+24>>2]=t),(A=0|n[l+20>>2])&&(n[t+20>>2]=A,n[A+24>>2]=t)}}while(0);A:do{if(s>>>0<16)x=s+u|0,n[l+4>>2]=3|x,n[(x=l+x+4|0)>>2]=1|n[x>>2];else{if(n[l+4>>2]=3|u,n[d+4>>2]=1|s,n[d+s>>2]=s,t=s>>>3,s>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=d,n[t+12>>2]=d,n[d+8>>2]=t,n[d+12>>2]=r;break}if(t=28228+((r=(t=s>>>8)?s>>>0>16777215?31:s>>>(7+(r=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(r=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|r<<1:0)<<2)|0,n[d+28>>2]=r,n[4+(A=d+16|0)>>2]=0,n[A>>2]=0,!(o&(A=1<>2]=d,n[d+24>>2]=t,n[d+12>>2]=d,n[d+8>>2]=d;break}t=0|n[t>>2];e:do{if((-8&n[t+4>>2])!=(0|s)){for(o=s<<(31==(0|r)?0:25-(r>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|s)){t=A;break e}o<<=1,t=A}n[r>>2]=d,n[d+24>>2]=t,n[d+12>>2]=d,n[d+8>>2]=d;break A}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=d,n[w>>2]=d,n[d+8>>2]=x,n[d+12>>2]=t,n[d+24>>2]=0}}while(0);return S=e,0|l+8}f=u}else f=u;else f=-1}while(0);if((r=0|n[6983])>>>0>=f>>>0)return t=r-f|0,A=0|n[6986],t>>>0>15?(x=A+f|0,n[6986]=x,n[6983]=t,n[x+4>>2]=1|t,n[A+r>>2]=t,n[A+4>>2]=3|f):(n[6983]=0,n[6986]=0,n[A+4>>2]=3|r,n[(x=A+r+4|0)>>2]=1|n[x>>2]),S=e,0|A+8;if((s=0|n[6984])>>>0>f>>>0)return y=s-f|0,n[6984]=y,w=(x=0|n[6987])+f|0,n[6987]=w,n[w+4>>2]=1|y,n[x+4>>2]=3|f,S=e,0|x+8;if(0|n[7099]?A=0|n[7101]:(n[7101]=4096,n[7100]=4096,n[7102]=-1,n[7103]=-1,n[7104]=0,n[7092]=0,n[7099]=-16&g^1431655768,A=4096),l=f+48|0,(u=(a=A+(c=f+47|0)|0)&(i=0-A|0))>>>0<=f>>>0)return S=e,0;if(0|(A=0|n[7091])&&(g=(d=0|n[7089])+u|0)>>>0<=d>>>0|g>>>0>A>>>0)return S=e,0;A:do{if(4&n[7092])t=0,b=143;else{r=0|n[6987];e:do{if(r){for(o=28372;!((g=0|n[o>>2])>>>0<=r>>>0&&(g+(0|n[o+4>>2])|0)>>>0>r>>>0);){if(!(A=0|n[o+8>>2])){b=128;break e}o=A}if((t=a-s&i)>>>0<2147483647)if((0|(A=0|ut(0|t)))==((0|n[o>>2])+(0|n[o+4>>2])|0)){if(-1!=(0|A)){s=t,a=A,b=145;break A}}else o=A,b=136;else t=0}else b=128}while(0);do{if(128==(0|b))if(-1!=(0|(r=0|ut(0)))&&(t=r,m=(t=((m=(h=0|n[7100])-1|0)&t?(m+t&0-h)-t|0:0)+u|0)+(h=0|n[7089])|0,t>>>0>f>>>0&t>>>0<2147483647)){if(0|(g=0|n[7091])&&m>>>0<=h>>>0|m>>>0>g>>>0){t=0;break}if((0|(A=0|ut(0|t)))==(0|r)){s=t,a=r,b=145;break A}o=A,b=136}else t=0}while(0);do{if(136==(0|b)){if(r=0-t|0,!(l>>>0>t>>>0&t>>>0<2147483647&-1!=(0|o))){if(-1==(0|o)){t=0;break}s=t,a=o,b=145;break A}if((A=c-t+(A=0|n[7101])&0-A)>>>0>=2147483647){s=t,a=o,b=145;break A}if(-1==(0|ut(0|A))){ut(0|r),t=0;break}s=A+t|0,a=o,b=145;break A}}while(0);n[7092]=4|n[7092],b=143}}while(0);if(143==(0|b)&&u>>>0<2147483647&&!(-1==(0|(y=0|ut(0|u)))|1^(v=(p=(m=0|ut(0))-y|0)>>>0>(f+40|0)>>>0)|y>>>0>>0&-1!=(0|y)&-1!=(0|m)^1)&&(s=v?p:t,a=y,b=145),145==(0|b)){t=(0|n[7089])+s|0,n[7089]=t,t>>>0>(0|n[7090])>>>0&&(n[7090]=t),c=0|n[6987];A:do{if(c){for(t=28372;;){if((0|a)==((A=0|n[t>>2])+(r=0|n[t+4>>2])|0)){b=154;break}if(!(o=0|n[t+8>>2]))break;t=o}if(!(154!=(0|b)||(w=t+4|0,8&n[t+12>>2]))&&a>>>0>c>>>0&A>>>0<=c>>>0){n[w>>2]=r+s,w=c+(y=7&(y=c+8|0)?0-y&7:0)|0,y=(x=(0|n[6984])+s|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[c+x+4>>2]=40,n[6988]=n[7103];break}for(a>>>0<(0|n[6985])>>>0&&(n[6985]=a),r=a+s|0,t=28372;;){if((0|n[t>>2])==(0|r)){b=162;break}if(!(A=0|n[t+8>>2]))break;t=A}if(162==(0|b)&&!(8&n[t+12>>2])){n[t>>2]=a,n[(d=t+4|0)>>2]=(0|n[d>>2])+s,u=(d=a+(7&(d=a+8|0)?0-d&7:0)|0)+f|0,l=(t=r+(7&(t=r+8|0)?0-t&7:0)|0)-d-f|0,n[d+4>>2]=3|f;e:do{if((0|c)==(0|t))x=(0|n[6984])+l|0,n[6984]=x,n[6987]=u,n[u+4>>2]=1|x;else{if((0|n[6986])==(0|t)){x=(0|n[6983])+l|0,n[6983]=x,n[6986]=u,n[u+4>>2]=1|x,n[u+x>>2]=x;break}if(1==(3&(A=0|n[t+4>>2]))){s=-8&A,o=A>>>3;t:do{if(A>>>0<256){if(A=0|n[t+8>>2],(0|(r=0|n[t+12>>2]))==(0|A)){n[6981]=n[6981]&~(1<>2]=r,n[r+8>>2]=A;break}a=0|n[t+24>>2],A=0|n[t+12>>2];do{if((0|A)==(0|t)){if(A=0|n[(o=4+(r=t+16|0)|0)>>2])r=o;else if(!(A=0|n[r>>2])){A=0;break}for(;;)if(o=0|n[(i=A+20|0)>>2])A=o,r=i;else{if(!(o=0|n[(i=A+16|0)>>2]))break;A=o,r=i}n[r>>2]=0}else x=0|n[t+8>>2],n[x+12>>2]=A,n[A+8>>2]=x}while(0);if(!a)break;o=28228+((r=0|n[t+28>>2])<<2)|0;do{if((0|n[o>>2])==(0|t)){if(n[o>>2]=A,0|A)break;n[6982]=n[6982]&~(1<>2])==(0|t)?x:a+20)>>2]=A,!A)break t}while(0);if(n[A+24>>2]=a,0|(o=0|n[(r=t+16|0)>>2])&&(n[A+16>>2]=o,n[o+24>>2]=A),!(r=0|n[r+4>>2]))break;n[A+20>>2]=r,n[r+24>>2]=A}while(0);t=t+s|0,i=s+l|0}else i=l;if(n[(t=t+4|0)>>2]=-2&n[t>>2],n[u+4>>2]=1|i,n[u+i>>2]=i,t=i>>>3,i>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=u,n[t+12>>2]=u,n[u+8>>2]=t,n[u+12>>2]=r;break}t=i>>>8;do{if(t){if(i>>>0>16777215){o=31;break}o=i>>>(7+(o=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(o=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|o<<1}else o=0}while(0);if(t=28228+(o<<2)|0,n[u+28>>2]=o,n[4+(A=u+16|0)>>2]=0,n[A>>2]=0,!((A=0|n[6982])&(r=1<>2]=u,n[u+24>>2]=t,n[u+12>>2]=u,n[u+8>>2]=u;break}t=0|n[t>>2];t:do{if((-8&n[t+4>>2])!=(0|i)){for(o=i<<(31==(0|o)?0:25-(o>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|i)){t=A;break t}o<<=1,t=A}n[r>>2]=u,n[u+24>>2]=t,n[u+12>>2]=u,n[u+8>>2]=u;break e}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=u,n[w>>2]=u,n[u+8>>2]=x,n[u+12>>2]=t,n[u+24>>2]=0}}while(0);return S=e,0|d+8}for(t=28372;!((A=0|n[t>>2])>>>0<=c>>>0&&(x=A+(0|n[t+4>>2])|0)>>>0>c>>>0);)t=0|n[t+8>>2];t=(A=(A=(i=x+-47|0)+(7&(A=i+8|0)?0-A&7:0)|0)>>>0<(i=c+16|0)>>>0?c:A)+8|0,w=a+(y=7&(y=a+8|0)?0-y&7:0)|0,y=(r=s+-40|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[a+r+4>>2]=40,n[6988]=n[7103],n[(r=A+4|0)>>2]=27,n[t>>2]=n[7093],n[t+4>>2]=n[7094],n[t+8>>2]=n[7095],n[t+12>>2]=n[7096],n[7093]=a,n[7094]=s,n[7096]=0,n[7095]=t,t=A+24|0;do{w=t,n[(t=t+4|0)>>2]=7}while((w+8|0)>>>0>>0);if((0|A)!=(0|c)){if(a=A-c|0,n[r>>2]=-2&n[r>>2],n[c+4>>2]=1|a,n[A>>2]=a,t=a>>>3,a>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=c,n[t+12>>2]=c,n[c+8>>2]=t,n[c+12>>2]=r;break}if(r=28228+((o=(t=a>>>8)?a>>>0>16777215?31:a>>>(7+(o=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(o=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|o<<1:0)<<2)|0,n[c+28>>2]=o,n[c+20>>2]=0,n[i>>2]=0,!((t=0|n[6982])&(A=1<>2]=c,n[c+24>>2]=r,n[c+12>>2]=c,n[c+8>>2]=c;break}t=0|n[r>>2];e:do{if((-8&n[t+4>>2])!=(0|a)){for(o=a<<(31==(0|o)?0:25-(o>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|a)){t=A;break e}o<<=1,t=A}n[r>>2]=c,n[c+24>>2]=t,n[c+12>>2]=c,n[c+8>>2]=c;break A}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=c,n[w>>2]=c,n[c+8>>2]=x,n[c+12>>2]=t,n[c+24>>2]=0}}else!(0|(x=0|n[6985]))|a>>>0>>0&&(n[6985]=a),n[7093]=a,n[7094]=s,n[7096]=0,n[6990]=n[7099],n[6989]=-1,n[6994]=27964,n[6993]=27964,n[6996]=27972,n[6995]=27972,n[6998]=27980,n[6997]=27980,n[7e3]=27988,n[6999]=27988,n[7002]=27996,n[7001]=27996,n[7004]=28004,n[7003]=28004,n[7006]=28012,n[7005]=28012,n[7008]=28020,n[7007]=28020,n[7010]=28028,n[7009]=28028,n[7012]=28036,n[7011]=28036,n[7014]=28044,n[7013]=28044,n[7016]=28052,n[7015]=28052,n[7018]=28060,n[7017]=28060,n[7020]=28068,n[7019]=28068,n[7022]=28076,n[7021]=28076,n[7024]=28084,n[7023]=28084,n[7026]=28092,n[7025]=28092,n[7028]=28100,n[7027]=28100,n[7030]=28108,n[7029]=28108,n[7032]=28116,n[7031]=28116,n[7034]=28124,n[7033]=28124,n[7036]=28132,n[7035]=28132,n[7038]=28140,n[7037]=28140,n[7040]=28148,n[7039]=28148,n[7042]=28156,n[7041]=28156,n[7044]=28164,n[7043]=28164,n[7046]=28172,n[7045]=28172,n[7048]=28180,n[7047]=28180,n[7050]=28188,n[7049]=28188,n[7052]=28196,n[7051]=28196,n[7054]=28204,n[7053]=28204,n[7056]=28212,n[7055]=28212,w=a+(y=7&(y=a+8|0)?0-y&7:0)|0,y=(x=s+-40|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[a+x+4>>2]=40,n[6988]=n[7103]}while(0);if((t=0|n[6984])>>>0>f>>>0)return y=t-f|0,n[6984]=y,w=(x=0|n[6987])+f|0,n[6987]=w,n[w+4>>2]=1|y,n[x+4>>2]=3|f,S=e,0|x+8}return n[(x=27920)>>2]=12,S=e,0}function Ye(A){var e=0,t=0,r=0,o=0,i=0,a=0,s=0,l=0;if(A|=0){t=A+-8|0,o=0|n[6985],l=t+(e=-8&(A=0|n[A+-4>>2]))|0;do{if(1&A)s=t,a=t;else{if(r=0|n[t>>2],!(3&A))return;if(i=r+e|0,(a=t+(0-r)|0)>>>0>>0)return;if((0|n[6986])==(0|a)){if(3&~(e=0|n[(A=l+4|0)>>2])){s=a,e=i;break}return n[6983]=i,n[A>>2]=-2&e,n[a+4>>2]=1|i,void(n[a+i>>2]=i)}if(t=r>>>3,r>>>0<256){if(A=0|n[a+8>>2],(0|(e=0|n[a+12>>2]))==(0|A)){n[6981]=n[6981]&~(1<>2]=e,n[e+8>>2]=A,s=a,e=i;break}o=0|n[a+24>>2],A=0|n[a+12>>2];do{if((0|A)==(0|a)){if(A=0|n[(t=4+(e=a+16|0)|0)>>2])e=t;else if(!(A=0|n[e>>2])){A=0;break}for(;;)if(t=0|n[(r=A+20|0)>>2])A=t,e=r;else{if(!(t=0|n[(r=A+16|0)>>2]))break;A=t,e=r}n[e>>2]=0}else s=0|n[a+8>>2],n[s+12>>2]=A,n[A+8>>2]=s}while(0);if(o){if(e=0|n[a+28>>2],(0|n[(t=28228+(e<<2)|0)>>2])==(0|a)){if(n[t>>2]=A,!A){n[6982]=n[6982]&~(1<>2])==(0|a)?s:o+20)>>2]=A,!A){s=a,e=i;break}n[A+24>>2]=o,0|(t=0|n[(e=a+16|0)>>2])&&(n[A+16>>2]=t,n[t+24>>2]=A),(e=0|n[e+4>>2])?(n[A+20>>2]=e,n[e+24>>2]=A,s=a,e=i):(s=a,e=i)}else s=a,e=i}}while(0);if(!(a>>>0>=l>>>0)&&1&(r=0|n[(A=l+4|0)>>2])){if(2&r)n[A>>2]=-2&r,n[s+4>>2]=1|e,n[a+e>>2]=e,o=e;else{if((0|n[6987])==(0|l)){if(l=(0|n[6984])+e|0,n[6984]=l,n[6987]=s,n[s+4>>2]=1|l,(0|s)!=(0|n[6986]))return;return n[6986]=0,void(n[6983]=0)}if((0|n[6986])==(0|l))return l=(0|n[6983])+e|0,n[6983]=l,n[6986]=a,n[s+4>>2]=1|l,void(n[a+l>>2]=l);o=(-8&r)+e|0,t=r>>>3;do{if(r>>>0<256){if(e=0|n[l+8>>2],(0|(A=0|n[l+12>>2]))==(0|e)){n[6981]=n[6981]&~(1<>2]=A,n[A+8>>2]=e;break}i=0|n[l+24>>2],A=0|n[l+12>>2];do{if((0|A)==(0|l)){if(A=0|n[(t=4+(e=l+16|0)|0)>>2])e=t;else if(!(A=0|n[e>>2])){t=0;break}for(;;)if(t=0|n[(r=A+20|0)>>2])A=t,e=r;else{if(!(t=0|n[(r=A+16|0)>>2]))break;A=t,e=r}n[e>>2]=0,t=A}else t=0|n[l+8>>2],n[t+12>>2]=A,n[A+8>>2]=t,t=A}while(0);if(0|i){if(A=0|n[l+28>>2],(0|n[(e=28228+(A<<2)|0)>>2])==(0|l)){if(n[e>>2]=t,!t){n[6982]=n[6982]&~(1<>2])==(0|l)?r:i+20)>>2]=t,!t)break;n[t+24>>2]=i,0|(e=0|n[(A=l+16|0)>>2])&&(n[t+16>>2]=e,n[e+24>>2]=t),0|(A=0|n[A+4>>2])&&(n[t+20>>2]=A,n[A+24>>2]=t)}}while(0);if(n[s+4>>2]=1|o,n[a+o>>2]=o,(0|s)==(0|n[6986]))return void(n[6983]=o)}if(A=o>>>3,o>>>0<256)return t=27964+(A<<1<<2)|0,(e=0|n[6981])&(A=1<>2]:(n[6981]=e|A,A=t,e=t+8|0),n[e>>2]=s,n[A+12>>2]=s,n[s+8>>2]=A,void(n[s+12>>2]=t);A=28228+((r=(A=o>>>8)?o>>>0>16777215?31:o>>>(7+(r=14-((i=(520192+(l=A<<(a=(A+1048320|0)>>>16&8))|0)>>>16&4)|a|(r=(245760+(l<<=i)|0)>>>16&2))+(l<>>15)|0)|0)&1|r<<1:0)<<2)|0,n[s+28>>2]=r,n[s+20>>2]=0,n[s+16>>2]=0,e=0|n[6982],t=1<>2];e:do{if((-8&n[A+4>>2])!=(0|o)){for(r=o<<(31==(0|r)?0:25-(r>>>1)|0);e=0|n[(t=A+16+(r>>>31<<2)|0)>>2];){if((-8&n[e+4>>2])==(0|o)){A=e;break e}r<<=1,A=e}n[t>>2]=s,n[s+24>>2]=A,n[s+12>>2]=s,n[s+8>>2]=s;break A}}while(0);l=0|n[(a=A+8|0)>>2],n[l+12>>2]=s,n[a>>2]=s,n[s+8>>2]=l,n[s+12>>2]=A,n[s+24>>2]=0}else n[6982]=e|t,n[A>>2]=s,n[s+24>>2]=A,n[s+12>>2]=s,n[s+8>>2]=s}while(0);if(l=(0|n[6989])-1|0,n[6989]=l,!(0|l)){for(A=28380;A=0|n[A>>2];)A=A+8|0;n[6989]=-1}}}}function Ve(A,e){e|=0;var t=0;return(A|=0)?(t=0|y(e,A),(e|A)>>>0>65535&&(t=((t>>>0)/(A>>>0)|0)==(0|e)?t:-1)):t=0,(A=0|Oe(t))&&3&n[A+-4>>2]?(lt(0|A,0,0|t),0|A):0|A}function We(A,e,t,r){return 0|(C((e|=0)+(r|=0)+((t=(A|=0)+(t|=0)>>>0)>>>0>>0|0)>>>0|0),t)}function Ze(A,e,t,r){return 0|(C(0|(r=(e|=0)-(r|=0)-((t|=0)>>>0>(A|=0)>>>0|0)>>>0)),A-t>>>0)}function Ke(A){return 0|((A|=0)?31-(0|k(A^A-1)):32)}function Je(A,e,t,r,o){o|=0;var i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0;if(u=A|=0,a=t|=0,s=f=r|=0,!(c=l=e|=0))return i=!!(0|o),s?i?(n[o>>2]=0|A,n[o+4>>2]=0&e,o=0,0|(C(0|(f=0)),o)):(o=0,0|(C(0|(f=0)),o)):(i&&(n[o>>2]=(u>>>0)%(a>>>0),n[o+4>>2]=0),o=(u>>>0)/(a>>>0)>>>0,0|(C(0|(f=0)),o));i=!(0|s);do{if(a){if(!i){if((i=(0|k(0|s))-(0|k(0|c))|0)>>>0<=31){a=d=i+1|0,A=u>>>(d>>>0)&(e=i-31>>31)|c<<(s=31-i|0),e&=c>>>(d>>>0),i=0,s=u<>2]=0|A,n[o+4>>2]=l|0&e,o=0,0|(C(0|(f=0)),o)):(o=0,0|(C(0|(f=0)),o))}if((i=a-1|0)&a){a=s=33+(0|k(0|a))-(0|k(0|c))|0,A=(d=32-s|0)-1>>31&c>>>((g=s-32|0)>>>0)|(c<>>(s>>>0))&(e=g>>31),e&=c>>>(s>>>0),i=u<<(h=64-s|0)&(l=d>>31),s=(c<>>(g>>>0))&l|u<>31;break}return 0|o&&(n[o>>2]=i&u,n[o+4>>2]=0),1==(0|a)?(h=0|A,0|(C(0|(g=l|0&e)),h)):(g=c>>>((h=0|Ke(0|a))>>>0)|0,h=c<<32-h|u>>>(h>>>0),0|(C(0|g),h))}if(i)return 0|o&&(n[o>>2]=(c>>>0)%(a>>>0),n[o+4>>2]=0),h=(c>>>0)/(a>>>0)>>>0,0|(C(0|(g=0)),h);if(!u)return 0|o&&(n[o>>2]=0,n[o+4>>2]=(c>>>0)%(s>>>0)),h=(c>>>0)/(s>>>0)>>>0,0|(C(0|(g=0)),h);if(!((i=s-1|0)&s))return 0|o&&(n[o>>2]=0|A,n[o+4>>2]=i&c|0&e),g=0,h=c>>>((0|Ke(0|s))>>>0),0|(C(0|g),h);if((i=(0|k(0|s))-(0|k(0|c))|0)>>>0<=30){a=e=i+1|0,A=c<<(s=31-i|0)|u>>>(e>>>0),e=c>>>(e>>>0),i=0,s=u<>2]=0|A,n[o+4>>2]=l|0&e,h=0,0|(C(0|(g=0)),h)):(h=0,0|(C(0|(g=0)),h))}while(0);if(a){c=0|We(0|(d=0|t),0|(u=f|0&r),-1,-1),t=0|B(),l=s,s=0;do{r=l,l=i>>>31|l<<1,i=s|i<<1,Ze(0|c,0|t,0|(r=A<<1|r>>>31),0|(f=A>>>31|e<<1)),s=1&(g=(h=0|B())>>31|((0|h)<0?-1:0)<<1),A=0|Ze(0|r,0|f,g&d|0,(((0|h)<0?-1:0)>>31|((0|h)<0?-1:0)<<1)&u),e=0|B(),a=a-1|0}while(0|a);c=l,l=0}else c=s,l=0,s=0;return a=0,0|o&&(n[o>>2]=A,n[o+4>>2]=e),h=i<<1&-2|s,0|(C(0|(g=(0|i)>>>31|(c|a)<<1|l)),h)}function qe(A,e,t,r){var n,o,i,a,s;return t|=0,o=(r|=0)>>31|((0|r)<0?-1:0)<<1,n=((0|r)<0?-1:0)>>31|((0|r)<0?-1:0)<<1,i=0|Ze((s=(e|=0)>>31|((0|e)<0?-1:0)<<1)^(A|=0),(a=((0|e)<0?-1:0)>>31|((0|e)<0?-1:0)<<1)^e,0|s,0|a),A=o^s,e=n^a,0|Ze((0|Je(i,0|B(),0|Ze(o^t|0,n^r|0,0|o,0|n),0|B(),0))^A,(0|B())^e,0|A,0|e)}function Xe(A,e,t,r){var n,o;return e|=0,r|=0,t=0|function(A,e){var t,r,n,o=0;return A=((t=0|y(o=65535&(e|=0),n=65535&(A|=0)))>>>16)+(0|y(o,r=A>>>16))|0,e=0|y(o=e>>>16,n),0|(C((A>>>16)+(0|y(o,r))+(((65535&A)+e|0)>>>16)|0),A+e<<16|65535&t)}(n=A|=0,o=t|=0),A=0|B(),0|(C((0|y(e,o))+(0|y(r,n))+A|0&A),t)}function $e(A,e,t,r){var o,i,a,s,l,c;return t|=0,o=S,S=S+16|0,s=0|o,c=(r|=0)>>31|((0|r)<0?-1:0)<<1,l=((0|r)<0?-1:0)>>31|((0|r)<0?-1:0)<<1,Je(A=0|Ze((a=(e|=0)>>31|((0|e)<0?-1:0)<<1)^(A|=0),(i=((0|e)<0?-1:0)>>31|((0|e)<0?-1:0)<<1)^e,0|a,0|i),e=0|B(),0|Ze(c^t|0,l^r|0,0|c,0|l),0|B(),s),r=0|Ze(n[s>>2]^a|0,n[s+4>>2]^i|0,0|a,0|i),t=0|B(),S=o,0|(C(0|t),r)}function At(A,e,t,r){var o,i;return i=S,S=S+16|0,Je(A|=0,e|=0,t|=0,r|=0,o=0|i),S=i,0|(C(0|n[o+4>>2]),n[o>>2])}function et(A,e,t){return A|=0,e|=0,(0|(t|=0))<32?(C(e>>t|0),A>>>t|(e&(1<>t-32)}function tt(A,e,t){return A|=0,e|=0,(0|(t|=0))<32?(C(e>>>t|0),A>>>t|(e&(1<>>t-32|0)}function rt(A,e,t){return A|=0,(0|(t|=0))<32?(C((e|=0)<>>32-t),A<=0?+s(A+.5):+v(A-.5)}function st(A,e,t){A|=0,e|=0;var o,i,a=0;if((0|(t|=0))>=8192)return j(0|A,0|e,0|t),0|A;if(i=0|A,o=A+t|0,(3&A)==(3&e)){for(;3&A;){if(!t)return 0|i;r[0|A]=0|r[0|e],A=A+1|0,e=e+1|0,t=t-1|0}for(a=(t=-4&o)-64|0;(0|A)<=(0|a);)n[A>>2]=n[e>>2],n[A+4>>2]=n[e+4>>2],n[A+8>>2]=n[e+8>>2],n[A+12>>2]=n[e+12>>2],n[A+16>>2]=n[e+16>>2],n[A+20>>2]=n[e+20>>2],n[A+24>>2]=n[e+24>>2],n[A+28>>2]=n[e+28>>2],n[A+32>>2]=n[e+32>>2],n[A+36>>2]=n[e+36>>2],n[A+40>>2]=n[e+40>>2],n[A+44>>2]=n[e+44>>2],n[A+48>>2]=n[e+48>>2],n[A+52>>2]=n[e+52>>2],n[A+56>>2]=n[e+56>>2],n[A+60>>2]=n[e+60>>2],A=A+64|0,e=e+64|0;for(;(0|A)<(0|t);)n[A>>2]=n[e>>2],A=A+4|0,e=e+4|0}else for(t=o-4|0;(0|A)<(0|t);)r[0|A]=0|r[0|e],r[A+1|0]=0|r[e+1|0],r[A+2|0]=0|r[e+2|0],r[A+3|0]=0|r[e+3|0],A=A+4|0,e=e+4|0;for(;(0|A)<(0|o);)r[0|A]=0|r[0|e],A=A+1|0,e=e+1|0;return 0|i}function lt(A,e,t){e|=0;var o,i=0,a=0,s=0;if(o=(A|=0)+(t|=0)|0,e&=255,(0|t)>=67){for(;3&A;)r[0|A]=e,A=A+1|0;for(s=e|e<<8|e<<16|e<<24,a=(i=-4&o)-64|0;(0|A)<=(0|a);)n[A>>2]=s,n[A+4>>2]=s,n[A+8>>2]=s,n[A+12>>2]=s,n[A+16>>2]=s,n[A+20>>2]=s,n[A+24>>2]=s,n[A+28>>2]=s,n[A+32>>2]=s,n[A+36>>2]=s,n[A+40>>2]=s,n[A+44>>2]=s,n[A+48>>2]=s,n[A+52>>2]=s,n[A+56>>2]=s,n[A+60>>2]=s,A=A+64|0;for(;(0|A)<(0|i);)n[A>>2]=s,A=A+4|0}for(;(0|A)<(0|o);)r[0|A]=e,A=A+1|0;return o-t|0}function ct(A){return(A=+A)>=0?+s(A+.5):+v(A-.5)}function ut(A){var e,t,r;return A|=0,r=0|E(),(0|A)>0&(0|(e=(t=0|n[a>>2])+A|0))<(0|t)|(0|e)<0?(N(0|e),D(12),-1):(0|e)>(0|r)&&!(0|Q(0|e))?(D(12),-1):(n[a>>2]=e,0|t)}return{___divdi3:qe,___muldi3:Xe,___remdi3:$e,___uremdi3:At,_areNeighborCells:function(A,e,t,r,o){o|=0;var i,a,s,l=0,c=0,u=0,d=0;if(s=S,S=S+64|0,a=s,i=s+56|0,!(!0&134217728==(2013265920&(e|=0))&!0&134217728==(2013265920&(r|=0))))return S=s,5;if((0|(A|=0))==(0|(t|=0))&(0|e)==(0|r))return n[o>>2]=0,S=s,0;if(c=0|tt(0|A,0|e,52),B(),c&=15,d=0|tt(0|t,0|r,52),B(),(0|c)!=(15&d))return S=s,12;if(l=c+-1|0,c>>>0>1){RA(A,e,l,a),RA(t,r,l,i),u=0|n[(d=a)>>2],d=0|n[d+4>>2];A:do{if((0|u)==(0|n[i>>2])&&(0|d)==(0|n[i+4>>2])){l=0|tt(0|A,0|e,0|(c=3*(15^c)|0)),B(),l&=7,c=0|tt(0|t,0|r,0|c),B(),c&=7;do{if(!(0|l)|!(0|c))n[o>>2]=1,l=0;else if(7==(0|l))l=5;else{if(1==(0|l)|1==(0|c)&&0|HA(u,d)){l=5;break}if((0|n[15536+(l<<2)>>2])!=(0|c)&&(0|n[15568+(l<<2)>>2])!=(0|c))break A;n[o>>2]=1,l=0}}while(0);return S=s,0|l}}while(0)}c=(l=a)+56|0;do{n[l>>2]=0,l=l+4|0}while((0|l)<(0|c));return F(A,e,1,a),l=(0|n[(e=a)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+8|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+16|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+24|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+32|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+40|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)?1:1&((0|n[(l=a+48|0)>>2])==(0|t)?(0|n[l+4>>2])==(0|r):0),n[o>>2]=l,S=s,0},_bitshift64Ashr:et,_bitshift64Lshr:tt,_bitshift64Shl:rt,_calloc:Ve,_cellAreaKm2:function(A,e,t){return 0|(A=0|ue(A|=0,e|=0,t|=0))||(o[t>>3]=6371.007180918475*+o[t>>3]*6371.007180918475),0|A},_cellAreaM2:function(A,e,t){return 0|(A=0|ue(A|=0,e|=0,t|=0))||(o[t>>3]=6371.007180918475*+o[t>>3]*6371.007180918475*1e3*1e3),0|A},_cellAreaRads2:ue,_cellToBoundary:$A,_cellToCenterChild:GA,_cellToChildPos:function(A,e,t,r){t|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0;if(o=S,S=S+16|0,p=o,v=0|tt(0|(A|=0),0|(e|=0),52),B(),t>>>0>15)return S=o,4;if((0|(v&=15))<(0|t))return S=o,12;if((0|v)!=(0|t))if(a=0|rt(0|t,0,52),a|=A,l=B()|-15728641&e,(0|v)>(0|t)){c=t;do{b=0|rt(7,0,3*(14-c|0)|0),c=c+1|0,a|=b,l=0|B()|l}while((0|c)<(0|v));b=a}else b=a;else b=A,l=e;m=0|tt(0|b,0|l,45),B();A:do{if(0|z(127&m)){if(c=0|tt(0|b,0|l,52),B(),0|(c&=15))for(a=1;;){if(!(!((m=0|rt(7,0,3*(15-a|0)|0))&b)&!((0|B())&l))){u=33;break A}if(!(a>>>0>>0))break;a=a+1|0}if(n[(m=r)>>2]=0,n[m+4>>2]=0,(0|v)>(0|t)){for(m=-15728641&e,h=v;;){if(g=h,(h=h+-1|0)>>>0>15|(0|v)<(0|h)){u=19;break}if((0|v)!=(0|h))if(a=0|rt(0|h,0,52),a|=A,c=0|B()|m,(0|v)<(0|g))f=a;else{u=h;do{f=0|rt(7,0,3*(14-u|0)|0),u=u+1|0,a|=f,c=0|B()|c}while((0|u)<(0|v));f=a}else f=A,c=e;if(d=0|tt(0|f,0|c,45),B(),0|z(127&d)){d=0|tt(0|f,0|c,52),B(),d&=15;e:do{if(d)for(u=1;;){if(a=0|tt(0|f,0|c,3*(15-u|0)|0),B(),0|(a&=7))break e;if(!(u>>>0>>0)){a=0;break}u=u+1|0}else a=0}while(0);a=1&!(0|a)}else a=0;if(c=0|tt(0|A,0|e,3*(15-g|0)|0),B(),7==(0|(c&=7))){i=5,u=42;break}if(1==(0|c)&(a=!!(0|a))){i=5,u=42;break}if(0|(f=c+((!!(0|c)&a)<<31>>31)|0)&&(u=0|pe(7,0,u=v-g|0,((0|u)<0)<<31>>31),d=0|B(),a?(a=0|We(0|(a=0|Xe(0|u,0|d,5,0)),0|B(),-5,-1),a=0|We(0|(a=0|qe(0|a,0|B(),6,0)),0|B(),1,0),c=0|B()):(a=u,c=d),g=0|We(0|a,0|c,0|(g=0|Xe(0|u,0|d,0|(g=f+-1|0),((0|g)<0)<<31>>31)),0|B()),d=0|We(0|g,0|(f=0|B()),0|n[(d=r)>>2],0|n[d+4>>2]),f=0|B(),n[(g=r)>>2]=d,n[g+4>>2]=f),(0|h)<=(0|t)){u=37;break}}if(19==(0|u))M(27795,27122,1367,27158);else{if(37==(0|u)){i=0|n[(s=r)+4>>2],s=0|n[s>>2];break}if(42==(0|u))return S=o,0|i}}else i=0,s=0}else u=33}while(0);A:do{if(33==(0|u)){if(n[(m=r)>>2]=0,n[m+4>>2]=0,(0|v)>(0|t)){for(a=v;;){if(i=0|tt(0|A,0|e,3*(15-a|0)|0),B(),7==(0|(i&=7))){i=5;break}if(i=0|Xe(0|(s=0|pe(7,0,s=v-a|0,((0|s)<0)<<31>>31)),0|B(),0|i,0),s=0|B(),s=0|We(0|n[(m=r)>>2],0|n[m+4>>2],0|i,0|s),i=0|B(),n[(m=r)>>2]=s,n[m+4>>2]=i,(0|(a=a+-1|0))<=(0|t))break A}return S=o,0|i}i=0,s=0}}while(0);return 0|_A(b,l,v,p)&&M(27795,27122,1327,27173),((0|i)>-1|-1==(0|i)&s>>>0>4294967295)&((0|(p=0|n[(v=p)+4>>2]))>(0|i)|((0|p)==(0|i)?(0|n[v>>2])>>>0>s>>>0:0))?(S=o,0|(v=0)):(M(27795,27122,1407,27158),0)},_cellToChildren:function(A,e,t,r){r|=0;var o,i,a=0,s=0;if(i=S,S=S+16|0,ee(o=i,A|=0,e|=0,t|=0),!(0|(A=0|n[(e=o)>>2]))&!(0|(e=0|n[e+4>>2])))return S=i,0;a=0,t=0;do{n[(s=r+(a<<3)|0)>>2]=A,n[s+4>>2]=e,a=0|We(0|a,0|t,1,0),t=0|B(),re(o),A=0|n[(s=o)>>2],e=0|n[s+4>>2]}while(!(!(0|A)&!(0|e)));return S=i,0},_cellToChildrenSize:_A,_cellToLatLng:XA,_cellToLocalIj:function(A,e,t,r,o,i){var a,s;return A|=0,i|=0,s=S,S=S+16|0,a=s,(o|=0)?A=15:(A=0|me(A,e|=0,t|=0,r|=0,a))||(function(A,e){var t;e|=0,t=0|n[8+(A|=0)>>2],n[e>>2]=(0|n[A>>2])-t,n[e+4>>2]=(0|n[A+4>>2])-t}(a,i),A=0),S=s,0|A},_cellToParent:RA,_cellToVertex:Pe,_cellToVertexes:function(A,e,t){t|=0;var r,o=0,i=0;return i=!(0|HA(A|=0,e|=0)),r=!(0|(o=0|Pe(A,e,0,t))),i?r?0|(o=0|Pe(A,e,1,t+8|0))||0|(o=0|Pe(A,e,2,t+16|0))||0|(o=0|Pe(A,e,3,t+24|0))||(o=0|Pe(A,e,4,t+32|0))?0|(i=o):0|Pe(A,e,5,t+40|0):0|(i=o):r?0|(o=0|Pe(A,e,1,t+8|0))||0|(o=0|Pe(A,e,2,t+16|0))||0|(o=0|Pe(A,e,3,t+24|0))||0|(o=0|Pe(A,e,4,t+32|0))?0|(i=o):(n[(i=t+40|0)>>2]=0,n[i+4>>2]=0,0|(i=0)):0|(i=o)},_cellsToDirectedEdge:function(A,e,t,r,o){return o|=0,7==(0|(t=0|_(A|=0,e|=0,t|=0,r|=0)))?0|(o=11):(r=0|rt(0|t,0,56),e=-2130706433&e|B()|268435456,n[o>>2]=A|r,n[o+4>>2]=e,0|(o=0))},_cellsToLinkedMultiPolygon:function(A,e,t){t|=0;var r,i,a,s=0;if(a=S,S=S+32|0,r=a,0|(A=0|function(A,e,t){A|=0,t|=0;var r,o,i=0,a=0,s=0,l=0,c=0,u=0;if(o=S,S=S+176|0,r=o,(0|(e|=0))<1)return Le(t,0,0),S=o,0;for(c=0|tt(0|n[(c=A)>>2],0|n[c+4>>2],52),B(),Le(t,(0|e)>6?e:6,15&c),c=0;!(0|(i=0|$A(0|n[(i=A+(c<<3)|0)>>2],0|n[i+4>>2],r)));){if((0|(i=0|n[r>>2]))>0){l=0;do{s=r+8+(l<<4)|0,(a=0|ze(t,i=r+8+((0|(l=l+1|0))%(0|i)<<4)|0,s))?_e(t,a):He(t,s,i),i=0|n[r>>2]}while((0|l)<(0|i))}if((0|(c=c+1|0))>=(0|e)){i=0,u=13;break}}return 13==(0|u)?(S=o,0|i):(Ie(t),S=o,0|(u=i))}(A|=0,e|=0,i=a+16|0)))return S=a,0|A;if(n[t>>2]=0,n[t+4>>2]=0,n[t+8>>2]=0,0|(A=0|Re(i)))do{e=0|de(t);do{fe(e,A),s=A+16|0,n[r>>2]=n[s>>2],n[r+4>>2]=n[s+4>>2],n[r+8>>2]=n[s+8>>2],n[r+12>>2]=n[s+12>>2],_e(i,A),A=0|Ge(i,r)}while(0|A);A=0|Re(i)}while(0|A);return Ie(i),(A=0|function(A){var e,t,r=0,i=0,a=0,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,D=0,E=0,j=0,Q=0,N=0,S=0,F=0,P=0,T=0,L=0;if(0|n[(s=(A|=0)+8|0)>>2])return 1;if(!(a=0|n[A>>2]))return 0;r=a,i=0;do{i=i+1|0,r=0|n[r+8>>2]}while(0|r);if(i>>>0<2)return 0;(t=0|Oe(i<<2))||M(27396,27235,317,27415),(e=0|Oe(i<<5))||M(27437,27235,321,27415),n[A>>2]=0,n[(E=A+4|0)>>2]=0,n[s>>2]=0,i=0,P=0,D=0,m=0;A:for(;;){if(h=0|n[a>>2]){c=0,u=h;do{if(f=+o[u+8>>3],r=u,u=0|n[u+16>>2],d=+o[(s=(g=!(0|u))?h:u)+8>>3],+l(+(f-d))>3.141592653589793){L=14;break}c+=(d-f)*(+o[r>>3]+ +o[s>>3])}while(!g);if(14==(0|L)){L=0,c=0,r=h;do{B=+o[r+8>>3],S=0|n[(F=r+16|0)>>2],C=+o[(S=0|S?S:h)+8>>3],c+=(+o[r>>3]+ +o[S>>3])*((C<0?C+6.283185307179586:C)-(B<0?B+6.283185307179586:B)),r=0|n[(0|r?F:a)>>2]}while(0|r)}c>0?(n[t+(P<<2)>>2]=a,P=P+1|0,s=D,r=m):L=19}else L=19;if(19==(0|L)){L=0;do{if(!i){if(m){s=E,u=m+8|0,r=a,i=A;break}if(0|n[A>>2]){L=27;break A}s=E,u=A,r=a,i=A;break}if(0|n[(r=i+8|0)>>2]){L=21;break A}if(!(i=0|Ve(1,12))){L=23;break A}n[r>>2]=i,s=i+4|0,u=i,r=m}while(0);if(n[u>>2]=a,n[s>>2]=a,u=e+(D<<5)|0,g=0|n[a>>2]){for(o[(h=e+(D<<5)+8|0)>>3]=17976931348623157e292,o[(m=e+(D<<5)+24|0)>>3]=17976931348623157e292,o[u>>3]=-17976931348623157e292,o[(b=e+(D<<5)+16|0)>>3]=-17976931348623157e292,x=17976931348623157e292,k=-17976931348623157e292,s=0,p=g,f=17976931348623157e292,y=17976931348623157e292,w=-17976931348623157e292,d=-17976931348623157e292;c=+o[p>>3],B=+o[p+8>>3],p=0|n[p+16>>2],C=+o[((v=!(0|p))?g:p)+8>>3],c>3]=c,f=c),B>3]=B,y=B),c>w?o[u>>3]=c:c=w,B>d&&(o[b>>3]=B,d=B),x=B>0&Bk?B:k,s|=+l(+(B-C))>3.141592653589793,!v;)w=c;s&&(o[b>>3]=k,o[m>>3]=x)}else n[u>>2]=0,n[u+4>>2]=0,n[u+8>>2]=0,n[u+12>>2]=0,n[u+16>>2]=0,n[u+20>>2]=0,n[u+24>>2]=0,n[u+28>>2]=0;s=D+1|0}if(a=0|n[(F=a+8|0)>>2],n[F>>2]=0,!a){L=45;break}D=s,m=r}if(21==(0|L))M(27213,27235,35,27247);else if(23==(0|L))M(27267,27235,37,27247);else if(27==(0|L))M(27310,27235,61,27333);else if(45==(0|L)){A:do{if((0|P)>0){for(F=!(0|s),N=s<<2,S=!(0|A),Q=0,r=0;;){if(j=0|n[t+(Q<<2)>>2],F)L=73;else{if(!(D=0|Oe(N))){L=50;break}if(!(E=0|Oe(N))){L=52;break}e:do{if(S)i=0;else{for(s=0,i=0,u=A;a=e+(s<<5)|0,0|he(0|n[u>>2],a,0|n[j>>2])?(n[D+(i<<2)>>2]=u,n[E+(i<<2)>>2]=a,v=i+1|0):v=i,u=0|n[u+8>>2];)s=s+1|0,i=v;if((0|v)>0)if(a=0|n[D>>2],1==(0|v))i=a;else for(b=0,p=-1,i=a,m=a;;){for(g=0|n[m>>2],a=0,u=0;h=(0|(s=0|n[n[D+(u<<2)>>2]>>2]))==(0|g)?a:a+(1&he(s,0|n[E+(u<<2)>>2],0|n[g>>2]))|0,(0|(u=u+1|0))!=(0|v);)a=h;if(i=(s=(0|h)>(0|p))?m:i,(0|(a=b+1|0))==(0|v))break e;b=a,p=s?h:p,m=0|n[D+(a<<2)>>2]}else i=0}}while(0);if(Ye(D),Ye(E),i){if(a=0|n[(s=i+4|0)>>2])i=a+8|0;else if(0|n[i>>2]){L=70;break}n[i>>2]=j,n[s>>2]=j}else L=73}if(73==(0|L)){if(L=0,0|(r=0|n[j>>2]))do{E=r,r=0|n[r+16>>2],Ye(E)}while(0|r);Ye(j),r=1}if((0|(Q=Q+1|0))>=(0|P)){T=r;break A}}50==(0|L)?M(27452,27235,249,27471):52==(0|L)?M(27490,27235,252,27471):70==(0|L)&&M(27310,27235,61,27333)}else T=0}while(0);return Ye(t),Ye(e),0|T}return 0}(t))?(ge(t),S=a,0|(s=A)):(S=a,0|(s=0))},_childPosToCell:function(A,e,t,r,o,i){A|=0,e|=0,i|=0;var a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(a=S,S=S+16|0,s=a,(o|=0)>>>0>15)return S=a,4;if(l=0|tt(0|(t|=0),0|(r|=0),52),B(),(0|(l&=15))>(0|o))return S=a,12;if(0|_A(t,r,o,s)&&M(27795,27122,1327,27173),!(((0|e)>-1|-1==(0|e)&A>>>0>4294967295)&((0|(u=0|n[(d=s)+4>>2]))>(0|e)|((0|u)==(0|e)?(0|n[d>>2])>>>0>A>>>0:0))))return S=a,2;d=o-l|0,o=0|rt(0|o,0,52),c=B()|-15728641&r,n[(u=i)>>2]=o|t,n[u+4>>2]=c,u=0|tt(0|t,0|r,45),B();A:do{if(0|z(127&u)){if(0|l)for(s=1;;){if(!(!((u=0|rt(7,0,3*(15-s|0)|0))&t)&!((0|B())&r)))break A;if(!(s>>>0>>0))break;s=s+1|0}if((0|d)<1)return S=a,0;for(u=15^l,r=-1,c=1,s=1;;){l=0|pe(7,0,l=d-c|0,((0|l)<0)<<31>>31),t=0|B();do{if(s){if(s=0|qe(0|(s=0|We(0|(s=0|Xe(0|l,0|t,5,0)),0|B(),-5,-1)),0|B(),6,0),(0|e)>(0|(o=0|B()))|(0|e)==(0|o)&A>>>0>s>>>0){e=0|Ze(0|(e=0|We(0|A,0|e,-1,-1)),0|B(),0|s,0|o),s=0|B(),h=0|n[(f=i)>>2],f=0|n[f+4>>2],g=0|rt(7,0,0|(m=3*(u+r|0)|0)),f&=~B(),m=0|rt(0|(o=0|We(0|(r=0|qe(0|e,0|s,0|l,0|t)),0|(A=0|B()),2,0)),0|B(),0|m),f=0|B()|f,n[(o=i)>>2]=m|h&~g,n[o+4>>2]=f,A=0|Ze(0|e,0|s,0|(A=0|Xe(0|r,0|A,0|l,0|t)),0|B()),s=0,e=0|B();break}g=0|n[(m=i)>>2],m=0|n[m+4>>2],h=0|rt(7,0,3*(u+r|0)|0),m&=~B(),n[(s=i)>>2]=g&~h,n[s+4>>2]=m,s=1;break}o=0|n[(g=i)>>2],g=0|n[g+4>>2],f=0|rt(7,0,0|(r=3*(u+r|0)|0)),g&=~B(),r=0|rt(0|(m=0|qe(0|A,0|e,0|l,0|t)),0|(s=0|B()),0|r),g=0|B()|g,n[(h=i)>>2]=r|o&~f,n[h+4>>2]=g,A=0|Ze(0|A,0|e,0|(s=0|Xe(0|m,0|s,0|l,0|t)),0|B()),s=0,e=0|B()}while(0);if(!((0|d)>(0|c))){e=0;break}r=~c,c=c+1|0}return S=a,0|e}}while(0);if((0|d)<1)return S=a,0;for(o=15^l,s=1;;){if(h=0|pe(7,0,h=d-s|0,((0|h)<0)<<31>>31),m=0|B(),t=0|n[(c=i)>>2],c=0|n[c+4>>2],r=0|rt(7,0,0|(l=3*(o-s|0)|0)),c&=~B(),l=0|rt(0|(f=0|qe(0|A,0|e,0|h,0|m)),0|(g=0|B()),0|l),c=0|B()|c,n[(u=i)>>2]=l|t&~r,n[u+4>>2]=c,A=0|Ze(0|A,0|e,0|(m=0|Xe(0|f,0|g,0|h,0|m)),0|B()),e=0|B(),(0|d)<=(0|s)){e=0;break}s=s+1|0}return S=a,0|e},_compactCells:function(A,e,t,r){e|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,D=0,E=0,j=0,Q=0,N=0,S=0;if(!(0|(t|=0))&!(0|(r|=0)))return 0;if(a=0|n[(i=A|=0)>>2],!0&!(15728640&(i=0|n[i+4>>2]))){if(!((0|r)>0|!(0|r)&t>>>0>0))return 0;if(n[(S=e)>>2]=a,n[S+4>>2]=i,1==(0|t)&!(0|r))return 0;i=1,a=0;do{N=0|n[4+(Q=A+(i<<3)|0)>>2],n[(S=e+(i<<3)|0)>>2]=n[Q>>2],n[S+4>>2]=N,i=0|We(0|i,0|a,1,0),a=0|B()}while((0|a)<(0|r)|(0|a)==(0|r)&i>>>0>>0);return 0}if(!(N=0|Oe(o=t<<3)))return 13;if(st(0|N,0|A,0|o),!(Q=0|Ve(t,8)))return Ye(N),13;A:for(;;){E=0|tt(0|(u=0|n[(i=N)>>2]),0|(i=0|n[i+4>>2]),52),B(),j=(E&=15)-1|0,D=!!(0|E),C=(0|r)>0|!(0|r)&t>>>0>0;e:do{if(D&C){if(y=0|rt(0|j,0,52),w=0|B(),j>>>0>15){if(!(!(0|u)&!(0|i))){S=16;break A}for(a=0,A=0;;){if(a=0|We(0|a,0|A,1,0),!((0|(A=0|B()))<(0|r)|(0|A)==(0|r)&a>>>0>>0))break e;if(!(!(0|(k=0|n[(s=N+(a<<3)|0)>>2]))&!(0|(s=0|n[s+4>>2])))){i=s,S=16;break A}}}for(l=u,A=i,a=0,s=0;;){if(!(!(0|l)&!(0|A))){if(!(!0&!(117440512&A))){S=21;break A}if(d=0|tt(0|l,0|A,52),B(),(0|(d&=15))<(0|j)){i=12,S=27;break A}if((0|d)!=(0|j)&&(l|=y,A=-15728641&A|w,d>>>0>=E>>>0)){c=j;do{k=0|rt(7,0,3*(14-c|0)|0),c=c+1|0,l|=k,A=0|B()|A}while(c>>>0>>0)}if(g=0|At(0|l,0|A,0|t,0|r),h=0|B(),!(!(0|(f=0|n[(d=c=Q+(g<<3)|0)>>2]))&!(0|(d=0|n[d+4>>2])))){p=0,v=0;do{if((0|p)>(0|r)|(0|p)==(0|r)&v>>>0>t>>>0){S=31;break A}if((0|f)==(0|l)&(-117440513&d)==(0|A)){m=0|tt(0|f,0|d,56),B(),b=1+(m&=7)|0,k=0|tt(0|f,0|d,45),B();t:do{if(0|z(127&k)){if(f=0|tt(0|f,0|d,52),B(),!(f&=15)){d=6;break}for(d=1;;){if(!(!((k=0|rt(7,0,3*(15-d|0)|0))&l)&!((0|B())&A))){d=7;break t}if(!(d>>>0>>0)){d=6;break}d=d+1|0}}else d=7}while(0);if((m+2|0)>>>0>d>>>0){S=41;break A}k=0|rt(0|b,0,56),A=B()|-117440513&A,n[(x=c)>>2]=0,n[x+4>>2]=0,l|=k}else g=0|$e(0|(g=0|We(0|g,0|h,1,0)),0|B(),0|t,0|r),h=0|B();v=0|We(0|v,0|p,1,0),p=0|B(),f=0|n[(d=c=Q+(g<<3)|0)>>2],d=0|n[d+4>>2]}while(!(!(0|f)&!(0|d)))}n[(k=c)>>2]=l,n[k+4>>2]=A}if(a=0|We(0|a,0|s,1,0),!((0|(s=0|B()))<(0|r)|(0|s)==(0|r)&a>>>0>>0))break e;l=0|n[(A=N+(a<<3)|0)>>2],A=0|n[A+4>>2]}}}while(0);if(k=0|We(0|t,0|r,5,0),(x=0|B())>>>0<0|!(0|x)&k>>>0<11){S=85;break}if(k=0|qe(0|t,0|r,6,0),B(),!(k=0|Ve(k,8))){S=48;break}do{if(C){for(b=0,A=0,m=0,p=0;;){if(!(0|(a=0|n[(s=d=Q+(b<<3)|0)>>2]))&!(0|(s=0|n[s+4>>2])))x=m;else{f=0|tt(0|a,0|s,56),B(),l=1+(f&=7)|0,g=-117440513&s,x=0|tt(0|a,0|s,45),B();e:do{if(0|z(127&x)){if(h=0|tt(0|a,0|s,52),B(),0|(h&=15))for(c=1;;){if(!(!(a&(x=0|rt(7,0,3*(15-c|0)|0)))&!(g&(0|B()))))break e;if(!(c>>>0>>0))break;c=c+1|0}a|=s=0|rt(0|l,0,56),s=0|B()|g,n[(l=d)>>2]=a,n[l+4>>2]=s,l=f+2|0}}while(0);7==(0|l)?(n[(x=k+(A<<3)|0)>>2]=a,n[x+4>>2]=-117440513&s,A=0|We(0|A,0|m,1,0),x=0|B()):x=m}if(b=0|We(0|b,0|p,1,0),!((0|(p=0|B()))<(0|r)|(0|p)==(0|r)&b>>>0>>0))break;m=x}if(C){if(v=j>>>0>15,y=0|rt(0|j,0,52),w=0|B(),!D){for(a=0,c=0,l=0,s=0;!(0|u)&!(0|i)||(n[(j=e+(a<<3)|0)>>2]=u,n[j+4>>2]=i,a=0|We(0|a,0|c,1,0),c=0|B()),l=0|We(0|l,0|s,1,0),(0|(s=0|B()))<(0|r)|(0|s)==(0|r)&l>>>0>>0;)u=0|n[(i=N+(l<<3)|0)>>2],i=0|n[i+4>>2];i=x;break}for(a=0,c=0,s=0,l=0;;){do{if(!(!(0|u)&!(0|i))){if(h=0|tt(0|u,0|i,52),B(),v|(0|(h&=15))<(0|j)){S=80;break A}if((0|h)!=(0|j)){if(d=u|y,f=-15728641&i|w,h>>>0>=E>>>0){g=j;do{D=0|rt(7,0,3*(14-g|0)|0),g=g+1|0,d|=D,f=0|B()|f}while(g>>>0>>0)}}else d=u,f=i;m=0|At(0|d,0|f,0|t,0|r),g=0,h=0,p=0|B();do{if((0|g)>(0|r)|(0|g)==(0|r)&h>>>0>t>>>0){S=81;break A}if((-117440513&(b=0|n[4+(D=Q+(m<<3)|0)>>2]))==(0|f)&&(0|n[D>>2])==(0|d)){S=65;break}m=0|$e(0|(D=0|We(0|m,0|p,1,0)),0|B(),0|t,0|r),p=0|B(),h=0|We(0|h,0|g,1,0),g=0|B(),D=Q+(m<<3)|0}while((0|n[D>>2])!=(0|d)||(0|n[D+4>>2])!=(0|f));if(65==(0|S)&&(S=0,!0&100663296==(117440512&b)))break;n[(D=e+(a<<3)|0)>>2]=u,n[D+4>>2]=i,a=0|We(0|a,0|c,1,0),c=0|B()}}while(0);if(s=0|We(0|s,0|l,1,0),!((0|(l=0|B()))<(0|r)|(0|l)==(0|r)&s>>>0>>0))break;u=0|n[(i=N+(s<<3)|0)>>2],i=0|n[i+4>>2]}i=x}else a=0,i=x}else a=0,A=0,i=0}while(0);if(lt(0|Q,0,0|o),st(0|N,0|k,A<<3),Ye(k),!(0|A)&!(0|i)){S=89;break}e=e+(a<<3)|0,r=i,t=A}if(16==(0|S))!0&!(117440512&i)?(i=4,S=27):S=21;else if(31==(0|S))M(27795,27122,620,27132);else{if(41==(0|S))return Ye(N),Ye(Q),10;if(48==(0|S))return Ye(N),Ye(Q),13;80==(0|S)?M(27795,27122,711,27132):81==(0|S)?M(27795,27122,723,27132):85==(0|S)&&(st(0|e,0|N,t<<3),S=89)}return 21==(0|S)?(Ye(N),Ye(Q),0|(S=5)):27==(0|S)?(Ye(N),Ye(Q),0|(S=i)):89==(0|S)?(Ye(N),Ye(Q),0|(S=0)):0},_constructCell:function(A,e,t,o){t|=0,o|=0;var i=0,a=0,s=0,l=0,c=0,u=0;if((A|=0)>>>0>15)return 4;if((e|=0)>>>0>121)return 17;s=0|rt(0|A,0,52),i=0|B(),l=0|rt(0|e,0,45),i=0|i|B()|134225919;A:do{if((0|A)>=1){for(l=1,s=!!(0|r[20528+e|0]),a=-1;;){if((e=0|n[t+(l+-1<<2)>>2])>>>0>6){i=18,e=10;break}if(!(!(0|e)|1^s)){if(1==(0|e)){i=19,e=10;break}s=0}if(c=0|rt(7,0,0|(u=3*(15-l|0)|0)),i&=~B(),a=(e=0|rt(0|e,((0|e)<0)<<31>>31,0|u))|a&~c,i=0|B()|i,!((0|l)<(0|A)))break A;l=l+1|0}if(10==(0|e))return 0|i}else a=-1}while(0);return n[(u=o)>>2]=a,n[u+4>>2]=i,0},_destroyLinkedMultiPolygon:ge,_directedEdgeToBoundary:DA,_directedEdgeToCells:function(A,e,t){A|=0;var r,o,i,a=0;return r=S,S=S+16|0,a=r,!0&268435456==(2013265920&(e|=0))?(o=-2130706433&e|134217728,n[(i=t|=0)>>2]=A,n[i+4>>2]=o,n[a>>2]=0,e=0|tt(0|A,0|e,56),B(),a=0|I(A,o,7&e,a,t+8|0),S=r,0|a):(S=r,0|(a=6))},_edgeLengthKm:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return l=A,s=+o[t>>3],s*=6371.007180918475,o[t>>3]=s,S=r,0|l;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return l=0,s=0,s*=6371.007180918475,o[t>>3]=s,S=r,0|l;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+g)*+d(+i)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)!=(0|e));return o[t>>3]=s,l=0,h=s,h*=6371.007180918475,o[t>>3]=h,S=r,0|l},_edgeLengthM:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return l=A,s=+o[t>>3],s*=6371.007180918475,s*=1e3,o[t>>3]=s,S=r,0|l;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return l=0,s=0,s*=6371.007180918475,s*=1e3,o[t>>3]=s,S=r,0|l;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+g)*+d(+i)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)!=(0|e));return o[t>>3]=s,l=0,h=s,h*=6371.007180918475,h*=1e3,o[t>>3]=h,S=r,0|l},_edgeLengthRads:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return S=r,0|A;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return S=r,0;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+i)*+d(+g)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)<(0|e));return o[t>>3]=s,S=r,0},_emscripten_replace_memory:function(A){return r=new Int8Array(A),n=new Int32Array(A),o=new Float64Array(A),t=A,!0},_free:Ye,_getBaseCellNumber:TA,_getDirectedEdgeDestination:function(A,e,t){A|=0,e|=0,t|=0;var r,o,i=0;return r=S,S=S+16|0,n[(i=r)>>2]=0,!0&268435456==(2013265920&e)?(o=0|tt(0|A,0|e,56),B(),i=0|I(A,-2130706433&e|134217728,7&o,i,t),S=r,0|i):(S=r,0|(i=6))},_getDirectedEdgeOrigin:function(A,e,t){return A|=0,t|=0,!0&268435456==(2013265920&(e|=0))?(n[t>>2]=A,n[t+4>>2]=-2130706433&e|134217728,0|(t=0)):0|(t=6)},_getHexagonAreaAvgKm2:se,_getHexagonAreaAvgM2:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20784+(A<<3)>>3],0|(e=0))},_getHexagonEdgeLengthAvgKm:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20912+(A<<3)>>3],0|(e=0))},_getHexagonEdgeLengthAvgM:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[21040+(A<<3)>>3],0|(e=0))},_getIcosahedronFaces:function A(e,t,r){r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0;o=S,S=S+128|0,d=o+112|0,s=o+96|0,f=o,a=0|tt(0|(e|=0),0|(t|=0),52),B(),c=15&a,n[d>>2]=c,l=0|tt(0|e,0|t,45),B(),l&=127;A:do{if(0|z(l)){if(0|c)for(i=1;;){if(!(!((u=0|rt(7,0,3*(15-i|0)|0))&e)&!((0|B())&t))){a=0;break A}if(!(i>>>0>>0))break;i=i+1|0}if(!(1&a))return u=0|rt(c+1|0,0,52),f=B()|-15728641&t,f=0|A((u|e)&~(d=0|rt(7,0,3*(14-c|0)|0)),f&~B(),r),S=o,0|f;a=1}else a=0}while(0);if(!(i=0|qA(e,t,s))){a?(QA(s,d,f),u=5):(PA(s,d,f),u=6);A:do{if(0|z(l))if(c)for(i=1;;){if(!(!((l=0|rt(7,0,3*(15-i|0)|0))&e)&!((0|B())&t))){e=2;break A}if(!(i>>>0>>0)){e=5;break}i=i+1|0}else e=5;else e=2}while(0);lt(0|r,-1,e<<2);A:do{if(a)for(s=0;;){if(SA(l=f+(s<<4)|0,0|n[d>>2]),l=0|n[l>>2],-1==(0|(c=0|n[r>>2]))|(0|c)==(0|l))i=r;else{a=0;do{if((a=a+1|0)>>>0>=e>>>0){i=1;break A}c=0|n[(i=r+(a<<2)|0)>>2]}while(!(-1==(0|c)|(0|c)==(0|l)))}if(n[i>>2]=l,(s=s+1|0)>>>0>=u>>>0){i=0;break}}else for(s=0;;){if(NA(l=f+(s<<4)|0,0|n[d>>2],0,1),l=0|n[l>>2],-1==(0|(c=0|n[r>>2]))|(0|c)==(0|l))i=r;else{a=0;do{if((a=a+1|0)>>>0>=e>>>0){i=1;break A}c=0|n[(i=r+(a<<2)|0)>>2]}while(!(-1==(0|c)|(0|c)==(0|l)))}if(n[i>>2]=l,(s=s+1|0)>>>0>=u>>>0){i=0;break}}}while(0)}return S=o,0|i},_getIndexDigit:function(A,e,t,r){return r|=0,((t|=0)-1|0)>>>0>14?0|(r=4):(t=0|tt(0|(A|=0),0|(e|=0),3*(15-t|0)|0),B(),n[r>>2]=7&t,0|(r=0))},_getNumCells:le,_getPentagons:Ae,_getRes0Cells:function(A){A|=0;var e=0,t=0,r=0;e=0;do{rt(0|e,0,45),r=134225919|B(),n[(t=A+(e<<3)|0)>>2]=-1,n[t+4>>2]=r,e=e+1|0}while(122!=(0|e));return 0},_getResolution:function(A,e){return e=0|tt(0|(A|=0),0|(e|=0),52),B(),15&e},_greatCircleDistanceKm:ae,_greatCircleDistanceM:function(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))*6371.007180918475*1e3},_greatCircleDistanceRads:function(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))},_gridDisk:F,_gridDiskDistances:P,_gridDistance:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a,s=0,l=0;return a=S,S=S+32|0,l=a,0|(i=0|me(A|=0,e|=0,A,e,s=a+12|0))?(S=a,0|(l=i)):0|(A=0|me(A,e,t,r,l))?(S=a,0|(l=A)):(s=0|kA(s,l),n[(l=o)>>2]=s,n[l+4>>2]=((0|s)<0)<<31>>31,S=a,0|(l=0))},_gridPathCells:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,D=0,E=0;if(a=S,S=S+48|0,c=a+12|0,D=a,!(s=0|me(A|=0,e|=0,A,e,i=a+24|0))&&!(s=0|me(A,e,t,r,c))){C=((0|(k=0|kA(i,c)))<0)<<31>>31,n[i>>2]=0,n[i+4>>2]=0,n[i+8>>2]=0,n[c>>2]=0,n[c+4>>2]=0,n[c+8>>2]=0,0|me(A,e,A,e,i)&&M(27795,27538,692,27747),0|me(A,e,t,r,c)&&M(27795,27538,697,27747),CA(i),CA(c),g=0|k?1/+(0|k):0,t=0|n[i>>2],v=g*+((0|n[c>>2])-t|0),r=0|n[(y=i+4|0)>>2],w=g*+((0|n[c+4>>2])-r|0),s=0|n[(x=i+8|0)>>2],g*=+((0|n[c+8>>2])-s|0),n[D>>2]=t,n[(h=D+4|0)>>2]=r,n[(m=D+8|0)>>2]=s;A:do{if((0|k)<0)s=0;else for(b=0,p=0;;){E=v*(d=+(p>>>0)+4294967296*+(0|b))+ +(0|t),u=w*d+ +(0|r),d=g*d+ +(0|s),t=~~+at(+E),c=~~+at(+u),s=~~+at(+d),E=+l(+(+(0|t)-E)),u=+l(+(+(0|c)-u)),d=+l(+(+(0|s)-d));do{if(!(E>u&E>d)){if(f=0-t|0,u>d){r=f-s|0;break}r=c,s=f-c|0;break}t=0-(c+s)|0,r=c}while(0);if(n[D>>2]=t,n[h>>2]=r,n[m>>2]=s,BA(D),0|(s=0|be(A,e,D,o+(p<<3)|0)))break A;if(!((0|b)<(0|C)|(0|b)==(0|C)&p>>>0>>0)){s=0;break A}t=0|We(0|p,0|b,1,0),b=r=0|B(),p=t,t=0|n[i>>2],r=0|n[y>>2],s=0|n[x>>2]}}while(0);return S=a,0|s}return S=a,0|s},_gridPathCellsSize:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a=0,s=0,l=0;return i=S,S=S+32|0,l=i,(a=0|me(A|=0,e|=0,A,e,s=i+12|0))||(a=0|me(A,e,t,r,l))?(S=i,0|(l=a)):(r=0|We(0|(r=0|kA(s,l)),((0|r)<0)<<31>>31,1,0),s=0|B(),n[(l=o)>>2]=r,n[l+4>>2]=s,S=i,0|(l=0))},_gridRing:function(A,e,t,r){return 0|R(A|=0,e|=0,t|=0,r|=0)?(lt(0|r,0,48*t|0),0|(r=0|function(A,e,t,r){A|=0,e|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0;if(o=S,S=S+16|0,s=o,!(t|=0))return n[r>>2]=A,n[r+4>>2]=e,S=o,0;do{if((0|t)>=0){if((0|t)>13780509){if(0|(i=0|le(15,s)))break;i=0|n[(a=s)>>2],a=0|n[a+4>>2]}else d=0|Xe(0|t,0|(i=((0|t)<0)<<31>>31),3,0),a=0|B(),i=0|We(0|t,0|i,1,0),i=0|We(0|(i=0|Xe(0|d,0|a,0|i,0|B())),0|B(),1,0),a=0|B(),n[(d=s)>>2]=i,n[d+4>>2]=a;if(u=0|Ve(i,8)){if(!(d=0|Ve(i,4))){Ye(u),i=13;break}if(0|(i=0|L(A,e,t,u,d,i,a,0))){Ye(u),Ye(d);break}if(e=0|n[s>>2],(0|(s=0|n[s+4>>2]))>0|!(0|s)&e>>>0>0){i=0,l=0,c=0;do{!(0|(a=0|n[(A=u+(l<<3)|0)>>2]))&!(0|(A=0|n[A+4>>2]))||(0|n[d+(l<<2)>>2])!=(0|t)||(n[(f=r+(i<<3)|0)>>2]=a,n[f+4>>2]=A,i=i+1|0),l=0|We(0|l,0|c,1,0),c=0|B()}while((0|c)<(0|s)|(0|c)==(0|s)&l>>>0>>0)}Ye(u),Ye(d),i=0}else i=13}else i=2}while(0);return S=o,0|i}(A,e,t,r))):0|(r=0)},_gridRingUnsafe:R,_i64Add:We,_i64Subtract:Ze,_isPentagon:HA,_isResClassIII:function(A,e){return e=0|tt(0|(A|=0),0|(e|=0),52),B(),1&e},_isValidCell:LA,_isValidDirectedEdge:MA,_isValidIndex:function(A,e){A|=0;var t=0,n=0,o=0,i=0;if(!0&134217728==(-16777216&(e|=0))&&(n=0|tt(0|A,0|e,52),B(),n&=15,t=0|tt(0|A,0|e,45),B(),(t&=127)>>>0<=121)&&!(613566756&(i=0|rt(0|(o=0|tt(0|A,0|e,0|(i=3*(15^n)|0))),0|B(),0|i))&Ze(-1227133514,-1171,0|i,0|(o=0|B())))&!(4681&o&B())&&15==(0|n)|!(0|(i=0|tt(0|rt(0|~A,0|~e,0|(i=19+(3*n|0)|0)),0|B(),0|i)))&!(0|B())){if(!(0|r[20528+t|0]))return 1;if(!(0|A)&!(0|(t=8191&e)))return 1;if(i=0|nt(0|A,0|t),B(),(63-i|0)%3|0)return 1}return 0|MA(A,e)?0|(i=1):0|(i=1&!!(0|Te(A,e)))},_isValidVertex:Te,_latLngToCell:KA,_llvm_ctlz_i64:nt,_llvm_maxnum_f64:ot,_llvm_minnum_f64:it,_llvm_round_f64:at,_localIjToCell:function(A,e,t,r,o){var i,a;return A|=0,e|=0,t|=0,o|=0,a=S,S=S+16|0,i=a,(r|=0)?t=15:(t=0|function(A,e){e|=0;var t,r,o,i=0,a=0,s=0;if(a=0|n[(A|=0)>>2],n[e>>2]=a,s=0|n[A+4>>2],n[(r=e+4|0)>>2]=s,n[(o=e+8|0)>>2]=0,A=(i=(0|s)<(0|a))?a:s,(0|(i=i?s:a))<0){if(-2147483648==(0|i)||((0|A)>0?(2147483647-A|0)<(0|i):(-2147483648-A|0)>(0|i)))return 1;if((0|A)>-1?(-2147483648|A)>=(0|i):(-2147483648^A)<(0|i))return 1}return A=s-a|0,(0|a)<0?(i=0-a|0,n[r>>2]=A,n[o>>2]=i,n[e>>2]=0,a=0):(A=s,i=0),(0|A)<0&&(a=a-A|0,n[e>>2]=a,i=i-A|0,n[o>>2]=i,n[r>>2]=0,A=0),t=a-i|0,s=A-i|0,(0|i)<0?(n[e>>2]=t,n[r>>2]=s,n[o>>2]=0,A=s,s=t,i=0):s=a,(0|(a=(0|i)<(0|(a=(0|A)<(0|s)?A:s))?i:a))<=0||(n[e>>2]=s-a,n[r>>2]=A-a,n[o>>2]=i-a),0}(t,i))||(t=0|be(A,e,i,o)),S=a,0|t},_malloc:Oe,_maxFaceCount:function(A,e,t){t|=0;var r=0,o=0;if(o=0|tt(0|(A|=0),0|(e|=0),45),B(),!(0|z(127&o)))return o=2,n[t>>2]=o,0;if(o=0|tt(0|A,0|e,52),B(),!(o&=15))return o=5,n[t>>2]=o,0;for(r=1;;){if(!(!((0|rt(7,0,3*(15-r|0)|0))&A)&!((0|B())&e))){r=2,A=6;break}if(!(r>>>0>>0)){r=5,A=6;break}r=r+1|0}return 6==(0|A)?(n[t>>2]=r,0):0},_maxGridDiskSize:function(A,e){e|=0;var t=0,r=0,o=0;return(0|(A|=0))<0?0|(e=2):(0|A)>13780509?0|(e=0|le(15,e)):(o=0|Xe(0|A,0|(t=((0|A)<0)<<31>>31),3,0),r=0|B(),t=0|We(0|A,0|t,1,0),t=0|We(0|(t=0|Xe(0|o,0|r,0|t,0|B())),0|B(),1,0),A=0|B(),n[e>>2]=t,n[e+4>>2]=A,0|(e=0))},_maxPolygonToCellsSize:function(A,e,t,r){A|=0,e|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0;if(o=S,S=S+48|0,i=o+16|0,a=o+8|0,s=o,0|(t=0|Ce(t|=0)))return S=o,0|t;if(l=0|n[(c=A)+4>>2],n[(t=a)>>2]=n[c>>2],n[t+4>>2]=l,ke(a,i),!(t=0|eA(i,e,s))){if(e=0|n[a>>2],(0|(a=0|n[A+8>>2]))>0){i=0|n[A+12>>2],t=0;do{e=(0|n[i+(t<<3)>>2])+e|0,t=t+1|0}while((0|t)<(0|a))}i=0|n[(t=s)>>2],(0|(t=0|n[t+4>>2]))<(0|(a=((0|e)<0)<<31>>31))|(0|t)==(0|a)&i>>>0>>0?(n[(t=s)>>2]=e,n[t+4>>2]=a,t=a):e=i,l=0|We(0|e,0|t,12,0),c=0|B(),n[(t=s)>>2]=l,n[t+4>>2]=c,n[(t=r)>>2]=l,n[t+4>>2]=c,t=0}return S=o,0|t},_maxPolygonToCellsSizeExperimental:function(A,e,t,i){e|=0,t|=0,i|=0;var a,s,c=0,u=0,f=0,g=0,h=0,m=0,b=0,p=0;if(s=S,S=S+48|0,h=s+32|0,g=s+40|0,a=s,!(0|n[(A|=0)>>2]))return n[(m=i)>>2]=0,n[m+4>>2]=0,S=s,0;IA(h,0,0,0),c=0|n[(f=h)>>2],f=0|n[f+4>>2];do{if(e>>>0>15)n[(m=a)>>2]=0,n[m+4>>2]=0,n[a+8>>2]=4,n[a+12>>2]=-1,t=a+29|0,n[(m=a+16|0)>>2]=0,n[m+4>>2]=0,n[m+8>>2]=0,r[m+12|0]=0,r[0|t]=0|r[0|g],r[t+1|0]=0|r[g+1|0],r[t+2|0]=0|r[g+2|0],t=4,m=9;else{if(0|(t=0|Ce(t))){n[(h=a)>>2]=0,n[h+4>>2]=0,n[a+8>>2]=t,n[a+12>>2]=-1,m=a+29|0,n[(h=a+16|0)>>2]=0,n[h+4>>2]=0,n[h+8>>2]=0,r[h+12|0]=0,r[0|m]=0|r[0|g],r[m+1|0]=0|r[g+1|0],r[m+2|0]=0|r[g+2|0],m=9;break}if(!(t=0|Ve(1+(0|n[A+8>>2])|0,32))){n[(m=a)>>2]=0,n[m+4>>2]=0,n[a+8>>2]=13,n[a+12>>2]=-1,t=a+29|0,n[(m=a+16|0)>>2]=0,n[m+4>>2]=0,n[m+8>>2]=0,r[m+12|0]=0,r[0|t]=0|r[0|g],r[t+1|0]=0|r[g+1|0],r[t+2|0]=0|r[g+2|0],t=13,m=9;break}Be(A,t),n[(p=a)>>2]=c,n[p+4>>2]=f,n[(f=a+8|0)>>2]=0,n[a+12>>2]=e,n[a+20>>2]=A,n[a+24>>2]=t,r[a+28|0]=0,r[0|(c=a+29|0)]=0|r[0|g],r[c+1|0]=0|r[g+1|0],r[c+2|0]=0|r[g+2|0],n[a+16>>2]=3,b=+J(t),b*=+Z(t),u=+l(+ +o[t>>3]),u=b/+d(+ +it(+u,+ +l(+ +o[t+8>>3])))*6371.007180918475*6371.007180918475,t=0|n[(c=a+12|0)>>2];A:do{if((0|t)>0)do{if(se(t+-1|0,h),!(u/+o[h>>3]>10))break A;t=(p=0|n[c>>2])-1|0,n[c>>2]=t}while((0|p)>1)}while(0);if(ye(a),n[(c=i)>>2]=0,n[c+4>>2]=0,!(!(0|(t=0|n[(c=a)>>2]))&!(0|(c=0|n[c+4>>2]))))do{_A(t,c,e,h),g=h,g=0|We(0|n[(A=i)>>2],0|n[A+4>>2],0|n[g>>2],0|n[g+4>>2]),A=0|B(),n[(p=i)>>2]=g,n[p+4>>2]=A,ye(a),t=0|n[(p=a)>>2],c=0|n[p+4>>2]}while(!(!(0|t)&!(0|c)));t=0|n[f>>2]}}while(0);return S=s,0|t},_memcpy:st,_memset:lt,_originToDirectedEdges:function(A,e,t){t|=0;var r,o=0;return r=!(0|HA(A|=0,e|=0)),e&=-2130706433,n[(o=t)>>2]=r?A:0,n[o+4>>2]=r?285212672|e:0,n[(o=t+8|0)>>2]=A,n[o+4>>2]=301989888|e,n[(o=t+16|0)>>2]=A,n[o+4>>2]=318767104|e,n[(o=t+24|0)>>2]=A,n[o+4>>2]=335544320|e,n[(o=t+32|0)>>2]=A,n[o+4>>2]=352321536|e,n[(t=t+40|0)>>2]=A,n[t+4>>2]=369098752|e,0},_pentagonCount:function(){return 12},_polygonToCells:function(A,e,t,r){A|=0,e|=0,r|=0;var o,i,a,s,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,M=0,D=0,E=0,j=0,Q=0,N=0,F=0,P=0,I=0,R=0,_=0;if(s=S,S=S+112|0,o=s+80|0,f=s+72|0,i=s,a=s+56|0,0|(l=0|Ce(t|=0)))return S=s,0|l;if(!(_=0|Oe(32+(n[(g=A+8|0)>>2]<<5)|0)))return S=s,13;if(Be(A,_),!(l=0|Ce(t))){if(R=0|n[(I=A)+4>>2],n[(l=f)>>2]=n[I>>2],n[l+4>>2]=R,ke(f,o),l=0|eA(o,e,i))I=0,R=0;else{if(l=0|n[f>>2],(0|(c=0|n[g>>2]))>0){u=0|n[A+12>>2],t=0;do{l=(0|n[u+(t<<3)>>2])+l|0,t=t+1|0}while((0|t)!=(0|c));t=l}else t=l;c=0|n[(l=i)>>2],(0|(l=0|n[l+4>>2]))<(0|(u=((0|t)<0)<<31>>31))|(0|l)==(0|u)&c>>>0>>0?(n[(l=i)>>2]=t,n[l+4>>2]=u,l=u):t=c,I=0|We(0|t,0|l,12,0),R=0|B(),n[(l=i)>>2]=I,n[l+4>>2]=R,l=0}if(!l){if(!(t=0|Ve(I,8)))return Ye(_),S=s,13;if(!(d=0|Ve(I,8)))return Ye(_),Ye(t),S=s,13;n[(F=o)>>2]=0,n[F+4>>2]=0,P=0|n[(F=A)+4>>2],n[(l=f)>>2]=n[F>>2],n[l+4>>2]=P,l=0|H(f,I,R,e,o,t,d);A:do{if(l)Ye(t),Ye(d),Ye(_);else{e:do{if((0|n[g>>2])>0){for(u=A+12|0,c=0;l=0|H((0|n[u>>2])+(c<<3)|0,I,R,e,o,t,d),c=c+1|0,!(0|l);)if((0|c)>=(0|n[g>>2]))break e;Ye(t),Ye(d),Ye(_);break A}}while(0);(0|R)>0|!(0|R)&I>>>0>0&<(0|d,0,I<<3),F=0|n[(P=o)+4>>2];e:do{if((0|F)>0|!(0|F)&(0|n[P>>2])>>>0>0){j=t,Q=d,N=t,F=d,P=t,l=t,M=t,D=d,E=d,t=d;t:for(;;){for(w=0,x=0,k=0,C=0,c=0,u=0;;){f=(d=i)+56|0;do{n[d>>2]=0,d=d+4|0}while((0|d)<(0|f));if(0|T(g=0|n[(e=j+(w<<3)|0)>>2],e=0|n[e+4>>2],1,i,0)){f=(d=i)+56|0;do{n[d>>2]=0,d=d+4|0}while((0|d)<(0|f));0|(d=0|Ve(7,4))&&(L(g,e,1,i,d,7,0,0),Ye(d))}for(y=0;;){p=0|n[(v=i+(y<<3)|0)>>2],v=0|n[v+4>>2];r:do{if(!(0|p)&!(0|v))d=c,f=u;else{if(h=0|At(0|p,0|v,0|I,0|R),g=0|B(),!(!(0|(f=0|n[(e=d=r+(h<<3)|0)>>2]))&!(0|(e=0|n[e+4>>2])))){m=0,b=0;do{if((0|m)>(0|R)|(0|m)==(0|R)&b>>>0>I>>>0)break t;if((0|f)==(0|p)&(0|e)==(0|v)){d=c,f=u;break r}h=0|$e(0|(d=0|We(0|h,0|g,1,0)),0|B(),0|I,0|R),g=0|B(),b=0|We(0|b,0|m,1,0),m=0|B(),f=0|n[(e=d=r+(h<<3)|0)>>2],e=0|n[e+4>>2]}while(!(!(0|f)&!(0|e)))}if(!(0|p)&!(0|v)){d=c,f=u;break}XA(p,v,a),0|Me(A,_,a)&&(b=0|We(0|c,0|u,1,0),u=0|B(),n[(m=d)>>2]=p,n[m+4>>2]=v,n[(c=Q+(c<<3)|0)>>2]=p,n[c+4>>2]=v,c=b),d=c,f=u}}while(0);if((y=y+1|0)>>>0>=7)break;c=d,u=f}if(w=0|We(0|w,0|x,1,0),x=0|B(),k=0|We(0|k,0|C,1,0),C=0|B(),c=0|n[(u=o)>>2],!((0|C)<(0|(u=0|n[u+4>>2]))|(0|C)==(0|u)&k>>>0>>0))break;c=d,u=f}if((0|u)>0|!(0|u)&c>>>0>0){c=0,u=0;do{n[(C=j+(c<<3)|0)>>2]=0,n[C+4>>2]=0,c=0|We(0|c,0|u,1,0),u=0|B(),k=0|n[(C=o)+4>>2]}while((0|u)<(0|k)|((0|u)==(0|k)?c>>>0<(0|n[C>>2])>>>0:0))}if(n[(C=o)>>2]=d,n[C+4>>2]=f,!((0|f)>0|!(0|f)&d>>>0>0))break e;y=t,w=E,x=P,k=D,C=Q,t=M,E=l,D=N,M=y,l=w,P=F,F=x,N=k,Q=j,j=C}Ye(N),Ye(F),Ye(_),l=1;break A}l=d}while(0);Ye(_),Ye(t),Ye(l),l=0}}while(0);return S=s,0|l}}return Ye(_),S=s,0|l},_polygonToCellsExperimental:function(A,e,t,o,i,a){o|=0,i|=0,a|=0;var s,l,c,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0;c=S,S=S+160|0,d=c+64|0,h=c+112|0,p=c,function(A,e,t,o){A|=0,e|=0,t|=0,o|=0;var i,a,s,l=0,c=0,u=0,d=0;s=S,S=S+48|0,i=s+40|0,a=s,IA(c=s+32|0,0,0,0),u=0|n[c>>2],c=0|n[c+4>>2];do{if(t>>>0<=15){if(0|(l=0|Ce(o))){n[(o=a)>>2]=0,n[o+4>>2]=0,n[a+8>>2]=l,n[a+12>>2]=-1,u=a+29|0,n[(o=a+16|0)>>2]=0,n[o+4>>2]=0,n[o+8>>2]=0,r[o+12|0]=0,r[0|u]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}if(l=0|Ve(1+(0|n[e+8>>2])|0,32)){Be(e,l),n[(d=a)>>2]=u,n[d+4>>2]=c,n[a+8>>2]=0,n[a+12>>2]=t,n[a+16>>2]=o,n[a+20>>2]=e,n[a+24>>2]=l,r[a+28|0]=0,r[0|(u=a+29|0)]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}n[(o=a)>>2]=0,n[o+4>>2]=0,n[a+8>>2]=13,n[a+12>>2]=-1,u=a+29|0,n[(o=a+16|0)>>2]=0,n[o+4>>2]=0,n[o+8>>2]=0,r[o+12|0]=0,r[0|u]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}n[(u=a)>>2]=0,n[u+4>>2]=0,n[a+8>>2]=4,n[a+12>>2]=-1,d=a+29|0,n[(u=a+16|0)>>2]=0,n[u+4>>2]=0,n[u+8>>2]=0,r[u+12|0]=0,r[0|d]=0|r[0|i],r[d+1|0]=0|r[i+1|0],r[d+2|0]=0|r[i+2|0]}while(0);ye(a),n[A>>2]=n[a>>2],n[A+4>>2]=n[a+4>>2],n[A+8>>2]=n[a+8>>2],n[A+12>>2]=n[a+12>>2],n[A+16>>2]=n[a+16>>2],n[A+20>>2]=n[a+20>>2],n[A+24>>2]=n[a+24>>2],n[A+28>>2]=n[a+28>>2],S=s}(g=c+80|0,A|=0,e|=0,t|=0),ee(d,0|n[(f=g)>>2],0|n[f+4>>2],e),s=0|n[(f=d)>>2],f=0|n[f+4>>2],u=0|n[g+8>>2],n[(m=h+4|0)>>2]=n[g>>2],n[m+4>>2]=n[g+4>>2],n[m+8>>2]=n[g+8>>2],n[m+12>>2]=n[g+12>>2],n[m+16>>2]=n[g+16>>2],n[m+20>>2]=n[g+20>>2],n[m+24>>2]=n[g+24>>2],n[m+28>>2]=n[g+28>>2],n[(m=p)>>2]=s,n[m+4>>2]=f,n[(m=p+8|0)>>2]=u,e=h,t=36+(A=p+12|0)|0;do{n[A>>2]=n[e>>2],A=A+4|0,e=e+4|0}while((0|A)<(0|t));if(n[(h=p+48|0)>>2]=n[d>>2],n[h+4>>2]=n[d+4>>2],n[h+8>>2]=n[d+8>>2],n[h+12>>2]=n[d+12>>2],!(0|s)&!(0|f))return S=c,0|u;t=p+16|0,l=p+24|0,g=p+28|0,u=0,d=0,e=s,A=f;do{if(!((0|u)<(0|i)|(0|u)==(0|i)&d>>>0>>0)){b=4;break}if(f=d,d=0|We(0|d,0|u,1,0),u=0|B(),n[(f=a+(f<<3)|0)>>2]=e,n[f+4>>2]=A,re(h),!(0|(e=0|n[(A=h)>>2]))&!(0|(A=0|n[A+4>>2]))){if(ye(t),!(0|(A=0|n[(e=t)>>2]))&!(0|(e=0|n[e+4>>2]))){b=10;break}te(A,e,0|n[g>>2],h),e=0|n[(A=h)>>2],A=0|n[A+4>>2]}n[(f=p)>>2]=e,n[f+4>>2]=A}while(!(!(0|e)&!(0|A)));return 4==(0|b)?(0|(e=0|n[(A=p+40|0)>>2])&&Ye(e),n[(b=p+16|0)>>2]=0,n[b+4>>2]=0,n[l>>2]=0,n[p+36>>2]=0,n[g>>2]=-1,n[p+32>>2]=0,n[A>>2]=0,te(0,0,0,h),n[p>>2]=0,n[p+4>>2]=0,n[m>>2]=0,S=c,0|(p=14)):(10==(0|b)&&(n[p>>2]=0,n[p+4>>2]=0,n[m>>2]=n[l>>2]),p=0|n[m>>2],S=c,0|p)},_readInt64AsDoubleFromPointer:function(A){return+(+((0|n[(A|=0)>>2])>>>0)+4294967296*+(0|n[A+4>>2]))},_res0CellCount:function(){return 122},_round:ct,_sbrk:ut,_sizeOfCellBoundary:function(){return 168},_sizeOfCoordIJ:function(){return 8},_sizeOfGeoLoop:function(){return 8},_sizeOfGeoPolygon:function(){return 16},_sizeOfH3Index:function(){return 8},_sizeOfLatLng:function(){return 16},_sizeOfLinkedGeoPolygon:function(){return 12},_uncompactCells:function(A,e,t,r,o,i,a){A|=0,r|=0,o|=0,i|=0;var s,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(s=S,S=S+16|0,m=s,!((0|(t|=0))>0|!(0|t)&(e|=0)>>>0>0))return S=s,0;if((0|(a|=0))>=16)return S=s,12;g=0,h=0,f=0,l=0;A:for(;;){if(d=0|tt(0|(c=0|n[(u=A+(g<<3)|0)>>2]),0|(u=0|n[u+4>>2]),52),B(),(15&d)>(0|a)){l=12,c=11;break}if(ee(m,c,u,a),!(0|(u=0|n[(d=m)>>2]))&!(0|(d=0|n[d+4>>2])))c=f;else{c=f;do{if(!((0|l)<(0|i)|(0|l)==(0|i)&c>>>0>>0)){c=10;break A}n[(f=r+(c<<3)|0)>>2]=u,n[f+4>>2]=d,c=0|We(0|c,0|l,1,0),l=0|B(),re(m),u=0|n[(f=m)>>2],d=0|n[f+4>>2]}while(!(!(0|u)&!(0|d)))}if(g=0|We(0|g,0|h,1,0),!((0|(h=0|B()))<(0|t)|(0|h)==(0|t)&g>>>0>>0)){l=0,c=11;break}f=c}return 10==(0|c)?(S=s,0|(m=14)):11==(0|c)?(S=s,0|l):0},_uncompactCellsSize:function(A,e,t,r,o){A|=0,e|=0,t|=0,r|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0;a=S,S=S+16|0,i=a;A:do{if((0|t)>0|!(0|t)&e>>>0>0){for(d=0,l=0,s=0,f=0;;){if(!(!(0|(c=0|n[(u=A+(d<<3)|0)>>2]))&!(0|(u=0|n[u+4>>2]))||(u=!(0|_A(c,u,r,i)),l=0|We(0|n[(c=i)>>2],0|n[c+4>>2],0|l,0|s),s=0|B(),u))){s=12;break}if(d=0|We(0|d,0|f,1,0),!((0|(f=0|B()))<(0|t)|(0|f)==(0|t)&d>>>0>>0))break A}return S=a,0|s}l=0,s=0}while(0);return n[o>>2]=l,n[o+4>>2]=s,S=a,0},_vertexToLatLng:function(A,e,t){t|=0;var r,o,i,a,s=0,l=0;return a=S,S=S+192|0,o=a,i=a+168|0,s=0|tt(0|(A|=0),0|(e|=0),56),B(),s&=7,0|(r=0|qA(A,l=-2130706433&e|134217728,i))?(S=a,0|(l=r)):(e=0|tt(0|A,0|e,52),B(),e&=15,0|HA(A,l)?jA(i,e,s,1,o):FA(i,e,s,1,o),l=o+8|0,n[t>>2]=n[l>>2],n[t+4>>2]=n[l+4>>2],n[t+8>>2]=n[l+8>>2],n[t+12>>2]=n[l+12>>2],S=a,0|(l=0))},establishStackSpace:function(A,e){S=A|=0},stackAlloc:function(A){var e;return e=S,S=15+(S=S+(A|=0)|0)&-16,0|e},stackRestore:function(A){S=A|=0},stackSave:function(){return 0|S}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Float32Array:Float32Array,Float64Array:Float64Array},{b:function(A){s=A},c:function(){return s},d:function(A,e,t,r){tA("Assertion failed: "+v(A)+", at: "+[e?v(e):"unknown filename",t,r?v(r):"unknown function"])},e:function(A){return t.___errno_location&&(h[t.___errno_location()>>2]=A),A},f:z,g:function(A,e,t){f.set(f.subarray(e,e+t),A)},h:function(A){var e=z(),t=16777216,r=2130706432;if(A>r)return!1;for(var n=Math.max(e,16777216);n0))return 0;for(var n=t+r-1,o=0;o=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&A.charCodeAt(++o)),i<=127){if(t>=n)break;e[t++]=i}else if(i<=2047){if(t+1>=n)break;e[t++]=192|i>>6,e[t++]=128|63&i}else if(i<=65535){if(t+2>=n)break;e[t++]=224|i>>12,e[t++]=128|i>>6&63,e[t++]=128|63&i}else{if(t+3>=n)break;e[t++]=240|i>>18,e[t++]=128|i>>12&63,e[t++]=128|i>>6&63,e[t++]=128|63&i}}e[t]=0}(A,f,e,t)}(A,e=Z(t),t)}return e},array:function(A){var e,t,r=Z(A.length);return e=A,t=r,d.set(e,t),r}},o=c(A),i=[],a=0;if(r)for(var s=0;s>1]=e;break;case"i32":h[A>>2]=e;break;case"i64":I=[e>>>0,(L=e,+Q(L)>=1?L>0?(0|F(+S(L/4294967296),4294967295))>>>0:~~+N((L-+(~~L>>>0))/4294967296)>>>0:0)],h[A>>2]=I[0],h[A+4>>2]=I[1];break;case"float":m[A>>2]=e;break;case"double":b[A>>3]=e;break;default:tA("invalid type for setValue: "+t)}},t.getValue=function(A,e,t){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return d[0|A];case"i16":return g[A>>1];case"i32":case"i64":return h[A>>2];case"float":return m[A>>2];case"double":return b[A>>3];default:tA("invalid type for getValue: "+e)}return null},R){H(R)||(V=R,R=t.locateFile?t.locateFile(V,o):o+V),P++,t.monitorRunDependencies&&t.monitorRunDependencies(P);var q=function(A){A.byteLength&&(A=new Uint8Array(A)),f.set(A,8),t.memoryInitializerRequest&&delete t.memoryInitializerRequest.response,function(){if(P--,t.monitorRunDependencies&&t.monitorRunDependencies(P),0==P&&T){var A=T;T=null,A()}}()},X=function(){n(R,q,function(){throw"could not load memory initializer "+R})},$=U(R);if($)q($.buffer);else if(t.memoryInitializerRequest){var AA=function(){var A=t.memoryInitializerRequest,e=A.response;if(200!==A.status&&0!==A.status){var r=U(t.memoryInitializerRequestURL);if(!r)return void X();e=r.buffer}q(e)};t.memoryInitializerRequest.response?setTimeout(AA,0):t.memoryInitializerRequest.addEventListener("load",AA)}else X()}function eA(A){function e(){W||(W=!0,l||(k(B),k(M),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)j(t.postRun.shift());k(D)}()))}P>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)E(t.preRun.shift());k(C)}(),P>0||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),e()},1)):e()))}function tA(A){throw t.onAbort&&t.onAbort(A),i(A+=""),a(A),l=!0,"abort("+A+"). Build with -s ASSERTIONS=1 for more info."}if(T=function A(){W||eA(),W||(T=A)},t.run=eA,t.abort=tA,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return eA(),A}("object"==typeof qe?qe:{}),Xe="number",$e={0:"Success",1:"The operation failed but a more specific error is not available",2:"Argument was outside of acceptable range",3:"Latitude or longitude arguments were outside of acceptable range",4:"Resolution argument was outside of acceptable range",5:"Cell argument was not valid",6:"Directed edge argument was not valid",7:"Undirected edge argument was not valid",8:"Vertex argument was not valid",9:"Pentagon distortion was encountered",10:"Duplicate input",11:"Cell arguments were not neighbors",12:"Cell arguments had incompatible resolutions",13:"Memory allocation failed",14:"Bounds of provided memory were insufficient",15:"Mode or flags argument was not valid",16:"Index argument was not valid",17:"Base cell number was outside of acceptable range",18:"Child indexing digits invalid",19:"Child indexing digits refer to a deleted subsequence"},At={1e3:"Unknown unit",1001:"Array length out of bounds",1002:"Got unexpected null value for H3 index"};function et(A,e,t){var r=t&&"value"in t,n=new Error((A[e]||"Unknown error")+" (code: "+e+(r?", value: "+t.value:"")+")");return n.code=e,n}function tt(A){if(0!==A)throw function(A,e){return et($e,A,2===arguments.length?{value:e}:{})}(A)}var rt={};[["sizeOfH3Index",Xe],["sizeOfLatLng",Xe],["sizeOfCellBoundary",Xe],["sizeOfGeoLoop",Xe],["sizeOfGeoPolygon",Xe],["sizeOfLinkedGeoPolygon",Xe],["sizeOfCoordIJ",Xe],["readInt64AsDoubleFromPointer",Xe],["isValidCell",Xe,[Xe,Xe]],["isValidIndex",Xe,[Xe,Xe]],["latLngToCell",Xe,[Xe,Xe,Xe,Xe]],["cellToLatLng",Xe,[Xe,Xe,Xe]],["cellToBoundary",Xe,[Xe,Xe,Xe]],["maxGridDiskSize",Xe,[Xe,Xe]],["gridDisk",Xe,[Xe,Xe,Xe,Xe]],["gridDiskDistances",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridRing",Xe,[Xe,Xe,Xe,Xe]],["gridRingUnsafe",Xe,[Xe,Xe,Xe,Xe]],["maxPolygonToCellsSize",Xe,[Xe,Xe,Xe,Xe]],["polygonToCells",Xe,[Xe,Xe,Xe,Xe]],["maxPolygonToCellsSizeExperimental",Xe,[Xe,Xe,Xe,Xe]],["polygonToCellsExperimental",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["cellsToLinkedMultiPolygon",Xe,[Xe,Xe,Xe]],["destroyLinkedMultiPolygon",null,[Xe]],["compactCells",Xe,[Xe,Xe,Xe,Xe]],["uncompactCells",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["uncompactCellsSize",Xe,[Xe,Xe,Xe,Xe,Xe]],["isPentagon",Xe,[Xe,Xe]],["isResClassIII",Xe,[Xe,Xe]],["getBaseCellNumber",Xe,[Xe,Xe]],["getResolution",Xe,[Xe,Xe]],["getIndexDigit",Xe,[Xe,Xe,Xe]],["constructCell",Xe,[Xe,Xe,Xe,Xe]],["maxFaceCount",Xe,[Xe,Xe,Xe]],["getIcosahedronFaces",Xe,[Xe,Xe,Xe]],["cellToParent",Xe,[Xe,Xe,Xe,Xe]],["cellToChildren",Xe,[Xe,Xe,Xe,Xe]],["cellToCenterChild",Xe,[Xe,Xe,Xe,Xe]],["cellToChildrenSize",Xe,[Xe,Xe,Xe,Xe]],["cellToChildPos",Xe,[Xe,Xe,Xe,Xe]],["childPosToCell",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["areNeighborCells",Xe,[Xe,Xe,Xe,Xe,Xe]],["cellsToDirectedEdge",Xe,[Xe,Xe,Xe,Xe,Xe]],["getDirectedEdgeOrigin",Xe,[Xe,Xe,Xe]],["getDirectedEdgeDestination",Xe,[Xe,Xe,Xe]],["isValidDirectedEdge",Xe,[Xe,Xe]],["directedEdgeToCells",Xe,[Xe,Xe,Xe]],["originToDirectedEdges",Xe,[Xe,Xe,Xe]],["directedEdgeToBoundary",Xe,[Xe,Xe,Xe]],["gridDistance",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridPathCells",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridPathCellsSize",Xe,[Xe,Xe,Xe,Xe,Xe]],["cellToLocalIj",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["localIjToCell",Xe,[Xe,Xe,Xe,Xe,Xe]],["getHexagonAreaAvgM2",Xe,[Xe,Xe]],["getHexagonAreaAvgKm2",Xe,[Xe,Xe]],["getHexagonEdgeLengthAvgM",Xe,[Xe,Xe]],["getHexagonEdgeLengthAvgKm",Xe,[Xe,Xe]],["greatCircleDistanceM",Xe,[Xe,Xe]],["greatCircleDistanceKm",Xe,[Xe,Xe]],["greatCircleDistanceRads",Xe,[Xe,Xe]],["cellAreaM2",Xe,[Xe,Xe,Xe]],["cellAreaKm2",Xe,[Xe,Xe,Xe]],["cellAreaRads2",Xe,[Xe,Xe,Xe]],["edgeLengthM",Xe,[Xe,Xe,Xe]],["edgeLengthKm",Xe,[Xe,Xe,Xe]],["edgeLengthRads",Xe,[Xe,Xe,Xe]],["getNumCells",Xe,[Xe,Xe]],["getRes0Cells",Xe,[Xe]],["res0CellCount",Xe],["getPentagons",Xe,[Xe,Xe]],["pentagonCount",Xe],["cellToVertex",Xe,[Xe,Xe,Xe,Xe]],["cellToVertexes",Xe,[Xe,Xe,Xe]],["vertexToLatLng",Xe,[Xe,Xe,Xe]],["isValidVertex",Xe,[Xe,Xe]]].forEach(function(A){rt[A[0]]=qe.cwrap.apply(qe,A)});var nt=16,ot=rt.sizeOfH3Index(),it=rt.sizeOfLatLng(),at=rt.sizeOfCellBoundary();rt.sizeOfGeoPolygon(),rt.sizeOfGeoLoop(),rt.sizeOfLinkedGeoPolygon(),rt.sizeOfCoordIJ();var st=/[^0-9a-fA-F]/;function lt(A){if(A>=0)return A.toString(nt);var e=ct(8,(A&=2147483647).toString(nt));return(parseInt(e[0],nt)+8).toString(nt)+e.substring(1)}function ct(A,e){for(var t=A-e.length,r="",n=0;n.85?.9+(i-.85)/.15*.1:.1+(i-.15)/.7*.8;var i;return yt(r[Math.min(23,Math.floor(24*o))])}function xt({coveragePoints:t,visible:r,terrainEnabled:n=!1,brightness:i=.7,basemapMode:a="dark"}){const{current:s}=o(),[l,c]=A.useState(null);A.useEffect(()=>{const A=()=>{var A;const e=null==(A=null==s?void 0:s.getMap)?void 0:A.call(s);e&&!l&&c(e)};A();const e=setInterval(A,50),t=setTimeout(()=>clearInterval(e),5e3);return()=>{clearInterval(e),clearTimeout(t)}},[s,l]);const[u,d]=A.useState(null),[f,g]=A.useState(!1),h=A.useRef({aborted:!1}),m=A.useRef(0),b=A.useRef(a),p=function(e){const[t,r]=A.useState(e);return A.useEffect(()=>{const A=setTimeout(()=>r(e),300);return()=>clearTimeout(A)},[e,300]),t}(t),v=A.useMemo(()=>function(A="dark"){var e;if("light"===A)return vt;const t=I();return 24===t.length&&0!==(null==(e=t[0])?void 0:e[0])?t:pt}(a),[a]);A.useEffect(()=>{if(!p||!Array.isArray(p)||0===p.length)return void queueMicrotask(()=>{d(null),m.current=0});const A=b.current!==a;if(p.length===m.current&&u&&!A)return;m.current=p.length,b.current=a,h.current.aborted=!0,h.current={aborted:!1};const e=h.current;g(!0);const{cells:t,minQuality:r,maxQuality:n}=function(A){const e=new Map;for(const o of A){if("number"!=typeof o.lat||"number"!=typeof o.lon||isNaN(o.lat)||isNaN(o.lon))continue;const A=ft(o.lat,o.lon,8),t=e.get(A),r=o.weight;t?(t.count++,t.qualitySum+=r):e.set(A,{count:1,qualitySum:r})}const t=[];let r=1/0,n=-1/0;for(const[o,i]of e.entries()){const A=i.qualitySum/i.count;t.push({hexId:o,count:i.count,avgQuality:A}),r=Math.min(r,A),n=Math.max(n,A)}return{cells:t,minQuality:t.length>0?r:0,maxQuality:t.length>0?n:0}}(p);if(0===t.length)return d(null),void g(!1);if(t.length<500){const A=function(A,e,t,r){const n=[];for(const o of A){const A=gt(o.hexId).map(([A,e])=>[e,A]);A.push(A[0]);const i=wt(o.avgQuality,e,t,r);n.push({type:"Feature",properties:{color:i,quality:o.avgQuality,count:o.count},geometry:{type:"Polygon",coordinates:[A]}})}return{type:"FeatureCollection",features:n}}(t,r,n,v);return void(e.aborted||(d(A),g(!1)))}return async function(A,e,t,r,n){const o=[];let i=0;for(;i[e,A]);a.push(a[0]);const s=wt(n.avgQuality,e,t,r);o.push({type:"Feature",properties:{color:s,quality:n.avgQuality,count:n.count},geometry:{type:"Polygon",coordinates:[a]}})}irequestAnimationFrame(A))}return{type:"FeatureCollection",features:o}}(t,r,n,v,e).then(A=>{!e.aborted&&A&&d(A)}).finally(()=>{e.aborted||g(!1)}),()=>{e.aborted=!0}},[p,v]),A.useEffect(()=>{if(!l)return;const A=()=>{var A,e;try{const t=l.getLayer(bt),n=l.getSource(mt);if(r&&u&&u.features.length>0){if(n?l.getSource(mt).setData(u):l.addSource(mt,{type:"geojson",data:u}),!t){const t=l.getLayer("topology-weak-edges-native"),r=null==(e=null==(A=l.getStyle())?void 0:A.layers)?void 0:e.find(A=>"symbol"===A.type),n=t?"topology-weak-edges-native":null==r?void 0:r.id;l.addLayer({id:bt,type:"fill",source:mt,paint:{"fill-color":["get","color"],"fill-opacity":i}},n)}}else t&&l.removeLayer(bt),n&&l.removeSource(mt)}catch(t){}};l.isStyleLoaded()?A():l.once("style.load",A)},[l,r,u,n]),A.useEffect(()=>{if(l&&r)try{l.getLayer(bt)&&l.setPaintProperty(bt,"fill-opacity",i)}catch{}},[l,i,r]),A.useEffect(()=>()=>{if(l)try{l.getLayer(bt)&&l.removeLayer(bt),l.getSource(mt)&&l.removeSource(mt)}catch{}},[l]);const y=(null==u?void 0:u.features.length)??0;return y>0&&r?e.jsx("div",{"data-testid":"wardriving-hexlayer-maplibre-active","data-point-count":(null==t?void 0:t.length)||0,"data-cell-count":y,"data-terrain-enabled":n,"data-is-processing":f,style:{display:"none"}}):null}const kt="https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png",Ct="terrarium",Bt="terrain-dem",Mt="hillshade-dem",Dt="terrain-hillshade";function Et({enabled:e,exaggeration:t=4}){const{current:r}=o(),[n,i]=A.useState(null),a=A.useRef(null);return A.useEffect(()=>{const A=()=>{var A;const e=null==(A=null==r?void 0:r.getMap)?void 0:A.call(r);e&&!n&&i(e)};A();const e=setInterval(A,50),t=setTimeout(()=>clearInterval(e),5e3);return()=>{clearInterval(e),clearTimeout(t)}},[r,n]),A.useEffect(()=>{if(!n)return;let A=!0;const e=()=>{var e,t;if(A)try{if(n.getSource(Mt)||n.addSource(Mt,{type:"raster-dem",tiles:[kt],encoding:Ct,tileSize:256,maxzoom:14}),!n.getLayer(Dt)){const A=null==(t=null==(e=n.getStyle())?void 0:e.layers)?void 0:t.find(A=>"symbol"===A.type);n.addLayer({id:Dt,type:"hillshade",source:Mt,paint:{"hillshade-shadow-color":"rgba(10, 10, 10, 0.6)","hillshade-highlight-color":"rgba(245, 240, 230, 0.4)","hillshade-accent-color":"rgba(90, 75, 65, 0.3)","hillshade-illumination-direction":315,"hillshade-exaggeration":.35}},null==A?void 0:A.id)}n.getSource(Bt)||n.addSource(Bt,{type:"raster-dem",tiles:[kt],encoding:Ct,tileSize:256,maxzoom:14})}catch(r){}};return n.isStyleLoaded()?e():(n.once("style.load",e),n.once("load",()=>{A&&!n.getSource(Mt)&&e()})),()=>{A=!1}},[n]),A.useEffect(()=>{if(!n)return;let A=!0,r=!1;const o=()=>{if(A&&n.getSource(Bt))try{e?(n.setCenterClampedToGround(!1),n.setTerrain({source:Bt,exaggeration:t}),n.setMaxPitch(70),!r&&n.getPitch()<30&&!n.isMoving()&&(r=!0,null!==a.current&&clearTimeout(a.current),a.current=window.setTimeout(()=>{a.current=null,A&&!n.isMoving()&&n.getPitch()<30&&n.easeTo({pitch:45,duration:1e3})},200))):(n.setTerrain(null),n.setCenterClampedToGround(!0),n.getPitch()>0&&!n.isMoving()&&n.easeTo({pitch:0,duration:800}),n.setMaxPitch(60))}catch(o){}};if(n.isStyleLoaded()&&n.getSource(Bt))o();else{const A=()=>{n.getSource(Bt)&&o()};n.once("idle",A)}return()=>{A=!1,null!==a.current&&(clearTimeout(a.current),a.current=null)}},[n,e,t]),A.useEffect(()=>()=>{var A;try{(null==(A=null==n?void 0:n.getStyle)?void 0:A.call(n))&&n.isStyleLoaded()&&(n.setTerrain(null),n.getLayer(Dt)&&n.removeLayer(Dt),n.getSource(Mt)&&n.removeSource(Mt),n.getSource(Bt)&&n.removeSource(Bt))}catch{}},[n]),null}function jt(A,e){let t=0;for(let r=0;r0)for(let t=0;t=A.length)return A;const t=[],r=A.length/e;for(let n=0;no.has(A.fromHash)&&o.has(A.toHash));if(0===i.length)return null;const a=function(A,e,t,r){const n=e.length,o=new Map(e.map((A,e)=>[A,e])),i=Array(n).fill(null).map(()=>Array(n).fill(0));for(const a of A){const A=o.get(a.fromHash),e=o.get(a.toHash);if(void 0!==A&&void 0!==e&&A!==e){const n=a.strength*a.certainCount;let o=1;if(t){const A=t.get(a.fromHash),e=t.get(a.toHash);A&&e&&(o=Ft(OA(A[0],A[1],e[0],e[1])/1e3))}let s=1;if(r){const A=[a.fromHash,a.toHash].sort().join("-");s=1-.7*(r.get(A)??0)}const l=.3+.7*(a.symmetryRatio??0),c=Math.pow(n,.7)*Math.pow(o,.3)*s*l;i[A][e]=c,i[e][A]=c}}return i}(i,e,t,r),s=function(A){const e=A.length,t=Array(e).fill(null).map(()=>Array(e).fill(0));for(let r=0;rArray(e).fill(0));for(let a=0;a43758.5453*Math.sin(12.9898*e)%1-.5);Nt(o,t),Qt(o);let i=0;for(let a=0;a<100;a++){const A=St(n,o);Nt(A,t);const e=jt(A,A)/jt(o,A);if(Qt(A),o=A,Math.abs(e-i)<1e-8)return{vector:o,eigenvalue:r-e};i=e}return{vector:o,eigenvalue:r-i}}(s);if(c<.001)return null;const u=[],d=[];for(let f=0;f0&&A.push([A[0][0],A[0][1]]),t=A}return t}function Gt(A,e={}){const t=function(A,e={}){if(A.length<3)return{coordinates:[],valid:!1};const{bandwidth:t=Rt,threshold:n=_t,cellSize:o=Ht}=e,i=function(A,e){let t=1/0,r=-1/0,n=1/0,o=-1/0;for(const[i,a]of A)ir&&(r=i),ao&&(o=a);return t-=e,r+=e,n-=e,o+=e,{minX:t,minY:n,maxX:r,maxY:o,width:r-t,height:o-n}}(A,.02),a=Math.ceil(i.width/(t/2)),s=Math.ceil(i.height/(t/2)),l=Math.min(1,200/Math.max(a,s)),c=Math.max(10,Math.ceil(a*l)),u=Math.max(10,Math.ceil(s*l)),d=A=>A/c*i.width+i.minX,f=A=>A/u*i.height+i.minY,g=t/i.width*c;try{const e=r().x(A=>(A[0]-i.minX)/i.width*c).y(A=>(A[1]-i.minY)/i.height*u).size([c,u]).bandwidth(Math.max(5,g)).cellSize(o)(A);if(0===e.length)return{coordinates:[],valid:!1};const t=Math.max(...e.map(A=>A.value))*n;let a=e[0],s=1/0;for(const A of e){const e=Math.abs(A.value-t);e0){const e=A[0],t=A[A.length-1];e[0]===t[0]&&e[1]===t[1]||A.push([e[0],e[1]])}if(A.length>=4){const t=zt(A);e.push(t)}}e.length>0&&l.push(e)}const h=[];for(const A of l)for(const e of A)h.push(e);return{coordinates:l,valid:l.length>0}}catch(h){return{coordinates:[],valid:!1}}}(A,e);return t.valid&&0!==t.coordinates.length?1===t.coordinates.length?{type:"Polygon",coordinates:t.coordinates[0]}:{type:"MultiPolygon",coordinates:t.coordinates}:null}function Ut(A,e,t){return(e[0]-A[0])*(t[1]-A[1])-(e[1]-A[1])*(t[0]-A[0])}function Ot(A,e,t,r,n){const o=n*n,i=o*n;return[.5*(2*e[0]+(-A[0]+t[0])*n+(2*A[0]-5*e[0]+4*t[0]-r[0])*o+(-A[0]+3*e[0]-3*t[0]+r[0])*i),.5*(2*e[1]+(-A[1]+t[1])*n+(2*A[1]-5*e[1]+4*t[1]-r[1])*o+(-A[1]+3*e[1]-3*t[1]+r[1])*i)]}function Yt(A){let e=function(A){if(A.length<3)return A;const e=[...A].sort((A,e)=>A[0]-e[0]||A[1]-e[1]),t=[];for(const n of e){for(;t.length>=2&&Ut(t[t.length-2],t[t.length-1],n)<=0;)t.pop();t.push(n)}const r=[];for(let n=e.length-1;n>=0;n--){const A=e[n];for(;r.length>=2&&Ut(r[r.length-2],r[r.length-1],A)<=0;)r.pop();r.push(A)}return t.pop(),r.pop(),t.concat(r)}(A);if(e.length<3)return null;e=function(A){if(A.length<3)return A;let e=0,t=0;for(const[r,n]of A)e+=r,t+=n;return e/=A.length,t/=A.length,A.map(([A,r])=>{const n=A-e,o=r-t,i=Math.sqrt(n*n+o*o);if(i<1e-4)return[A,r];const a=(i+.008)/i;return[e+n*a,t+o*a]})}(e);const t=function(A){if(A.length<3)return A;const e=[],t=A.length;for(let r=0;rt?function(A,e,t,r){const n=[];for(const[o,i]of A.communities){const A=[];for(const t of i){const r=e.get(t);r&&A.push([r[1],r[0]])}if(A.length<3)continue;let a=Gt(A,{bandwidth:t,threshold:r});a||(a=Yt(A)),a&&n.push({type:"Feature",properties:{community:o,color:Lt(o),borderColor:It(o),nodeCount:i.length},geometry:a})}return{type:"FeatureCollection",features:n}}(t,r,s,l):{type:"FeatureCollection",features:[]},[t,r,s,l]),d=n?o:0,f={"fill-color":["get","color"],"fill-opacity":d},g={"line-color":["get","borderColor"],"line-width":c,"line-opacity":d};return e.jsxs(i,{id:"mincut-partition",type:"geojson",data:u,children:[e.jsx(a,{id:"mincut-partition-fill",type:"fill",paint:f}),e.jsx(a,{id:"mincut-partition-stroke",type:"line",paint:g})]})}const Wt={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,nodeFilter:"all"},Zt=CA()(BA(A=>({viewState:null,setViewState:e=>A({viewState:e,lastSavedAt:Date.now()}),toggles:Wt,setToggle:(e,t)=>A(A=>({toggles:{...A.toggles,[e]:t},lastSavedAt:Date.now()})),setToggles:e=>A(A=>({toggles:{...A.toggles,...e},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:e=>A({hasAnalyzed:e,lastSavedAt:Date.now()}),lastSavedAt:null,reset:()=>A({viewState:null,toggles:Wt,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",partialize:A=>({viewState:A.viewState,toggles:A.toggles,hasAnalyzed:A.hasAnalyzed,lastSavedAt:A.lastSavedAt})}));function Kt(A,e=!1,t=!1,r=!1,n=.7,o){const i=y(o);return r?n>=.75?i.restBright:i.rest:n>=.85?i.rest:i.restDim}function Jt(A){return[A[1],A[0]]}function qt(A,e,t,r=12){const[n,o]=A,[i,a]=e,s=[];for(let l=0;l<=r;l++){const A=l/r,e=o+(a-o)*A,c=n+(i-n)*A,u=4*t*A*(1-A);s.push([e,c,u])}return s}function Xt(A){return A<.5?4*A*A*A:1-Math.pow(-2*A+2,3)/2}function $t(A,e,t,r,n,o,i,a,s,l,c,u="dark"){const d=WA(),f=[];let g=1/0,h=-1/0;const m=[];for(const p of A){const A=.7*(p.edge.avgConfidence??(e?.7:.5))+p.edge.certainCount/Math.max(i,1)*.3+(e?.5:0);m.push({polyline:p,brightnessScore:A}),g=Math.min(g,A),h=Math.max(h,A)}if(0===m.length)return{type:"FeatureCollection",features:[]};const b=h-g||1;m.sort((A,e)=>A.brightnessScore-e.brightnessScore);for(const{polyline:p,brightnessScore:v}of m){const{from:A,to:i,edge:h}=p,m=t.get(h.key)??0;if(m<=0)continue;const y=a.has(h.key),w=s.has(h.key),x=h.avgConfidence??(e?.7:.5),k=l===h.key,C=c[h.fromHash],B=c[h.toHash],M=(null==C?void 0:C.node_name)||(null==C?void 0:C.name)||h.fromHash.slice(0,8),D=(null==B?void 0:B.node_name)||(null==B?void 0:B.name)||h.toHash.slice(0,8),E=[A[0]+(i[0]-A[0])*m,A[1]+(i[1]-A[1])*m];let j,Q,N,S;if(e){const A=o.get(h.key)??YA(h.certainCount),e=n.get(h.key)??A;j=e+(A-e)*r,k?j=Math.max(1.6*j,4.5):w&&(j*=1.3)}else j=1.5;if(Q=k?d.edges.highlight:Kt(0,h.isDirectPathEdge??!1,y,w,x,u),N=k?d.edges.highlight:h.isDirectPathEdge?d.edges.hoverDirect:y?d.edges.hoverLoop:d.edges.hoverStandard,e){const A=Math.min(1.5*m,1)*d.edgeOpacity;S=w?1.15*A:A}else S=(.3+.3*x)*m;k&&(S=.95);const F=(v-g)/b;f.push({type:"Feature",properties:{key:h.key,baseColor:Q,hoverColor:N,baseWidth:j,baseOpacity:S,brightnessScore:F,isLoopEdge:y,isBackbone:w,isDirectPath:h.isDirectPathEdge??!1,isHubConnection:h.isHubConnection??!1,isZeroHop:h.isZeroHop??!1,isValidated:e,certainCount:h.certainCount,confidence:x,symmetryRatio:h.symmetryRatio??1,dominantDirection:h.dominantDirection??"balanced",fromName:M,toName:D,fromHash:h.fromHash,toHash:h.toHash},geometry:{type:"LineString",coordinates:[Jt(A),Jt(E)]}})}return{type:"FeatureCollection",features:f}}function Ar(A,e){const t=WA(),r=[];let n=0;for(const o of A){const A=e.get(o.hash);A&&A.blendedScore>n&&(n=A.blendedScore)}for(const o of A){const{from:A,to:i,hash:a,neighbor:s,lastHopData:l}=o,c=`neighbor-${a}`,u=(null==l?void 0:l.avgRssi)??s.rssi??null,d=(null==l?void 0:l.avgSnr)??s.snr??null,f=(null==l?void 0:l.count)??0,g=(null==l?void 0:l.confidence)??1,h=e.get(a),m=(null==h?void 0:h.listenerScore)??0,b=(null==h?void 0:h.loudScore)??0,p=(null==h?void 0:h.blendedScore)??0,v=n>0?p/n:0,y=o.rxAdvertCount??0,w=o.txProxyCount??0,x=y+w,k=x>0?(w-y)/x:0,C=qt(A,i,150,8);r.push({type:"Feature",properties:{key:c,hash:a,name:s.node_name||s.name||a.slice(0,8),prefix:a.slice(2,4).toUpperCase(),color:t.neighborColor,width:2.5,opacity:.85,rssi:u,snr:d,packetCount:f,confidence:g,hasAvgRssi:void 0!==(null==l?void 0:l.avgRssi),hasAvgSnr:void 0!==(null==l?void 0:l.avgSnr),isNeighborEdge:!0,listenerScore:m,loudScore:b,blendedScore:p,trafficWeight:v,linkAsymmetry:k,rxAdvertCount:y,txProxyCount:w},geometry:{type:"LineString",coordinates:C}})}return{type:"FeatureCollection",features:r}}function er(A){return A<.5?4*A*A*A:1-Math.pow(-2*A+2,3)/2}function tr(A,e){if(A<240)return.5;if(A<480)return 1;const t=(A-480)/(e-480);return Math.max(0,.33*(1-t))}function rr(A,e,t){const r=t?z(t):null,n=[];for(const o of A){if(r&&o.toUpperCase()===r){t&&n.push(t);continue}const A=e.get(o.toUpperCase());A&&n.push(A)}return n}const nr="edge-blink-source",or="edge-blink-layer",ir=1e3,ar=1e3,sr="node-markers-layer";function lr(A){return A<0||A>=ir?0:1-A/ir}function cr(A){if(A<0)return 0;if(A>=ar)return 0;const e=A/ar;return Math.pow(1-e,3)}function ur(A){return[A[1],A[0]]}const dr=A.memo(function({nodeHash:A,width:t=60,height:r=20,color:n,showArea:o=!0,showTooltip:i=!1,className:a=""}){const s=U(A),l=O(),c=!Y().backgroundLoadComplete||l,u="number"==typeof t?t:60;return e.jsx(aA,{data:s,width:u,height:r,color:n,isLoading:c,className:a})});function fr(A){const e=new Date(1e3*A);return`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}`}function gr({txDelayRec:t,onRemove:r}){const[n,o]=A.useState(!1),i=t.floodFactor??t.txDelayFactor,a=t.directFactor??t.directTxDelayFactor;return e.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[e.jsxs("button",{onClick:async()=>{const A=`set txdelay ${i.toFixed(1)}\nset direct.txdelay ${a.toFixed(1)}`;try{await navigator.clipboard.writeText(A),o(!0),setTimeout(()=>o(!1),1500)}catch(e){const t=document.createElement("textarea");t.value=A,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),o(!0),setTimeout(()=>o(!1),1500)}catch{}document.body.removeChild(t)}},className:"flex items-center gap-2 flex-1 py-1 px-1.5 bg-amber-400/5 hover:bg-amber-400/10 rounded transition-colors group",title:"Click to copy CLI commands",children:[e.jsx(zA,{className:"w-3 h-3 text-amber-400 shrink-0"}),e.jsx("span",{className:"text-text-muted",children:"TxDelay"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-text-muted",children:"F"}),e.jsxs("span",{className:"data-box data-box-compact text-amber-400",children:["×",i.toFixed(1)]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-text-muted",children:"D"}),e.jsxs("span",{className:"data-box data-box-compact text-amber-400",children:["×",a.toFixed(1)]})]})]}),n?e.jsx(DA,{className:"w-3 h-3 text-green-400 ml-auto"}):e.jsx(EA,{className:"w-3 h-3 text-text-muted opacity-0 group-hover:opacity-100 transition-opacity ml-auto"})]}),r&&e.jsx("button",{onClick:r,className:"p-1 text-text-secondary hover:text-red-400 hover:bg-red-500/10 rounded transition-colors",title:"Remove from contacts",children:e.jsx($,{className:"w-3.5 h-3.5"})})]})}function hr({hash:t,hashPrefix:r,name:n,isHub:o,isGateway:i,isBackbone:a,isZeroHop:s,isMobile:l,isRoomServer:c,isStale:u,lastSeenTimestamp:d,centrality:f,affinity:g,meanSnr:h,meanRssi:m,neighbor:b,onRemove:p,txDelayRec:v}){const[y,w]=A.useState(!1),x=s?"Direct":(null==g?void 0:g.typicalHopPosition)?`${g.typicalHopPosition}-hop`:null,k=v&&!v.insufficientData;return e.jsxs("div",{className:"w-[240px] pr-2",children:[e.jsx("div",{className:"text-[14px] font-semibold text-text-primary leading-tight truncate mb-1",children:n}),e.jsxs("div",{className:"flex items-center gap-1 flex-wrap mb-1.5",children:[e.jsx("code",{className:"font-mono text-[10px] text-text-secondary bg-data-box-bg border border-data-box-border px-1 py-0.5 rounded",children:r}),e.jsx("button",{onClick:async()=>{try{await navigator.clipboard.writeText(t),w(!0),setTimeout(()=>w(!1),1500)}catch(A){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();try{document.execCommand("copy"),w(!0),setTimeout(()=>w(!1),1500)}catch{}document.body.removeChild(e)}},className:"p-0.5 hover:bg-subtle-fill-hover rounded transition-colors",title:"Copy full hash",children:y?e.jsx(DA,{className:"w-3 h-3 text-sys-green"}):e.jsx(EA,{className:"w-3 h-3 text-text-secondary"})}),e.jsx(uA,{hash:t,size:"sm"}),x&&e.jsx(V,{color:s?bA.direct:bA.multihop,compact:!0,children:x}),b.is_repeater&&e.jsx(V,{color:pA.repeater,compact:!0,children:"Rptr"}),o&&e.jsx(V,{color:pA.hub,compact:!0,title:"Hub: ≥10% of last-hop traffic",children:"Hub"}),i&&!o&&e.jsx(V,{color:pA.gateway,compact:!0,title:"Gateway: 7-10% of last-hop traffic",children:"Gate"}),a&&e.jsx(V,{color:pA.backbone,compact:!0,title:"Backbone",children:"Bone"}),l&&e.jsx(V,{color:pA.mobile,compact:!0,children:"Mobile"}),c&&e.jsx(V,{color:pA.room,compact:!0,children:"Room"}),u&&d&&e.jsxs(V,{compact:!0,title:"Neighbor not heard in 7+ days",children:["Idle ",fr(d)]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary mb-1.5",children:[e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(L,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsx("span",{className:"font-mono",children:W(b.last_seen)})]}),(null==g?void 0:g.distanceMeters)&&e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(dA,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsx("span",{className:"font-mono font-semibold text-text-primary",children:(C=g.distanceMeters,null===C?"—":C<1e3?`${Math.round(C)}m`:`${(C/1e3).toFixed(1)}km`)})]}),b.latitude&&b.longitude&&0!==b.latitude&&0!==b.longitude&&e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(QA,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsxs("span",{className:"font-mono text-text-muted",children:[b.latitude.toFixed(2),", ",b.longitude.toFixed(2)]})]})]}),e.jsx("div",{className:"mb-1.5",style:{width:224},children:e.jsx(dr,{nodeHash:t,width:224,height:26,showArea:!0,showTooltip:!0})}),e.jsxs("div",{className:"flex gap-3 text-[10px] mb-1.5",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Packets"}),e.jsx("span",{className:"data-box data-box-compact",children:(null==g?void 0:g.frequency)||0})]}),s&&void 0!==h&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"SNR"}),e.jsxs("span",{className:"data-box data-box-compact",children:[h.toFixed(1)," dB"]})]}),k&&v.networkRole&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Role"}),e.jsx(V,{color:vA[v.networkRole],compact:!0,title:{hub:"Hub: High-connectivity node that bridges many paths",backbone:"Backbone: Critical relay with high traffic",relay:"Relay: Standard forwarding node",edge:"Edge: Peripheral node"}[v.networkRole],children:v.networkRole})]})]}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Adverts"}),e.jsx("span",{className:"data-box data-box-compact",children:b.advert_count||0})]}),s&&void 0!==m&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"RSSI"}),e.jsxs("span",{className:"data-box data-box-compact",children:[Math.round(m)," dBm"]})]}),k&&v.dataConfidence&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Data"}),e.jsx(V,{color:yA[v.dataConfidence],compact:!0,title:{high:"1000+ packets",medium:"500-999 packets",low:"100-499 packets",insufficient:"Insufficient data"}[v.dataConfidence],children:v.dataConfidence})]})]}),!k&&p&&e.jsx("button",{onClick:p,className:"p-1 self-start text-text-secondary hover:text-red-400 hover:bg-red-500/10 rounded transition-colors",title:"Remove from contacts",children:e.jsx($,{className:"w-3.5 h-3.5"})})]}),k&&e.jsx(gr,{txDelayRec:v,onRemove:p})]});var C}const mr="node-markers-native",br="node-markers-layer",pr="node-markers-layer-local",vr="marker-standard",yr="marker-standard-neighbor",wr="marker-hub",xr="marker-hub-neighbor",kr="marker-gateway",Cr="marker-gateway-neighbor",Br="marker-mobile",Mr="marker-mobile-neighbor",Dr="marker-room-server",Er="marker-room-server-neighbor",jr="marker-local",Qr="marker-stale-5day",Nr="marker-stale-10day",Sr="marker-blink-black",Fr="marker-blink-black-local",Pr="marker-blink",Tr="marker-blink-local";function Lr(A){if(!A)return 0;const e=(Date.now()-1e3*A)/864e5;return e>=10?2:e>=5?1:0}function Ir(A){var e;const t=null==(e=A.contact_type)?void 0:e.toLowerCase();return"room server"===t||"room_server"===t||"room"===t||"server"===t}function Rr(A){return A.startsWith("0x")?A.slice(2,4).toUpperCase():A.slice(0,2).toUpperCase()}function _r({neighborsWithLocation:t,localNode:r,localHash:n,zeroHopNeighbors:l,lastHopNeighborMap:c,meshTopology:u,hoveredMarker:d,onMarkerHover:f,getNodeOpacity:g,shouldShowNode:h,onRequestRemove:m,openPopupId:b,onOpenPopup:p,onClosePopup:y,onNodeClick:w,blinkingNodes:x}){const{current:k}=o(),C=A.useRef(!1),[B,M]=A.useState(!1);A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e)return;const t=()=>{try{!function(A){const e=v(),t=(A,e,t=0,r=!1)=>{const n=document.createElement("canvas");n.width=32,n.height=32;const o=n.getContext("2d",r?{colorSpace:"display-p3"}:void 0),i=14-t/2;return o.beginPath(),o.arc(16,16,i,0,2*Math.PI),o.fillStyle=A,o.fill(),e&&t>0&&(o.strokeStyle=e,o.lineWidth=2*t,o.stroke()),o.shadowColor="rgba(0,0,0,0.3)",o.shadowBlur=4,o.shadowOffsetY=2,{data:o.getImageData(0,0,32,32),pixelRatio:2}},r=(A,e=!1)=>{const t=document.createElement("canvas");t.width=48,t.height=48;const r=t.getContext("2d",e?{colorSpace:"display-p3"}:void 0),n=24*.35*2;return r.strokeStyle=A,r.lineWidth=5,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.moveTo(24-n,24),r.lineTo(24,24-n),r.lineTo(40.8,24),r.stroke(),r.beginPath(),r.moveTo(24-.7*n,24),r.lineTo(24-.7*n,35.76),r.lineTo(35.76,35.76),r.lineTo(35.76,24),r.stroke(),r.beginPath(),r.moveTo(20.64,35.76),r.lineTo(20.64,27.36),r.lineTo(27.36,27.36),r.lineTo(27.36,35.76),r.stroke(),{data:r.getImageData(0,0,48,48),pixelRatio:2}},n=(A,e)=>{const t=document.createElement("canvas");t.width=48,t.height=48;const r=t.getContext("2d"),n=24*.35*2;return r.strokeStyle=A,r.lineWidth=5,r.lineCap="round",r.lineJoin="round",e&&(r.fillStyle=e),r.beginPath(),r.roundRect(24-n,24-.6*n,1.6*n,1.2*n,6),e&&r.fill(),r.stroke(),r.beginPath(),r.moveTo(18.96,34.08),r.lineTo(24-.6*n,40.8),r.lineTo(24,34.08),r.stroke(),{data:r.getImageData(0,0,48,48),pixelRatio:2}},o="#00FF00",i={[vr]:t(e.nodeFill),[yr]:t(e.neighborColor),[wr]:t(e.hubColor),[xr]:t(e.neighborColor),[kr]:t(e.gatewayColor),[Cr]:t(e.neighborColor),[Br]:t("transparent",e.mobileColor,2.5),[Mr]:t(e.neighborColor),[Dr]:n(e.roomColor),[Er]:n(e.neighborColor,"#1a1a1c"),[jr]:r(e.localColor),[Qr]:t("#808080"),[Nr]:t("#404040"),[Sr]:t("#000000"),[Fr]:r("#000000"),[Pr]:t(o,void 0,0,!0),[Tr]:r(o,!0)};for(const[a,s]of Object.entries(i))try{A.hasImage(a)&&A.removeImage(a),A.addImage(a,s.data,{pixelRatio:s.pixelRatio})}catch{}}(e),C.current=!0,B||M(!0)}catch(A){}};e.isStyleLoaded()?t():e.once("style.load",t);const r=()=>{e.hasImage(vr)||t()};e.on("styledata",r);const n=()=>{C.current=!1,t()},o=new MutationObserver(A=>{for(const e of A)if("data-theme"===e.attributeName){setTimeout(n,100);break}});o.observe(document.documentElement,{attributes:!0});const i=document.querySelector("[data-basemap]");let a=null;return i&&(a=new MutationObserver(A=>{for(const e of A)if("data-basemap"===e.attributeName){setTimeout(n,100);break}}),a.observe(i,{attributes:!0})),()=>{e.off("styledata",r),o.disconnect(),null==a||a.disconnect()}},[k,B]);const D=A.useMemo(()=>{var A;const e=[],r=[...t].sort(([A,e],[t,r])=>{const n=(A,e)=>{var t;return Ir(e)?5e3:l.has(A)?3e3:u.hubNodes.includes(A)?2e3:(null==(t=u.gatewayNodes)?void 0:t.includes(A))?1e3:0};return n(A,e)-n(t,r)});for(const[t,o]of r){if(!o.latitude||!o.longitude)continue;if(n&&((n.startsWith("0x")?n.slice(2,4).toLowerCase():n.slice(0,2).toLowerCase())===(t.startsWith("0x")?t.slice(2,4).toLowerCase():t.slice(0,2).toLowerCase())||t===n))continue;const r=h(t),i=g(t,r);if(i<=.01)continue;const a=l.has(t),s=u.hubNodes.includes(t),d=(null==(A=u.gatewayNodes)?void 0:A.includes(t))??!1,f=u.mobileNodes.includes(t),m=Ir(o),b=u.centrality.get(t)||0,p=c.get(t),v=o.last_seen||(null==p?void 0:p.lastSeen),y=Lr(v),w=y>0;let x=i;2===y?x=Math.min(i,.25):1===y&&(x=Math.min(i,.5));let k="standard";m?k="roomServer":s?k="hub":d?k="gateway":f&&(k="mobile");const C=u.fullAffinity.get(t),B=u.txDelayRecommendations.get(t);e.push({type:"Feature",geometry:{type:"Point",coordinates:[o.longitude,o.latitude]},properties:{hash:t,name:o.node_name||o.name||"Unknown",hashPrefix:Rr(t),iconType:k,isNeighbor:a,isHub:s,isGateway:d,isMobile:f,isRoomServer:m,isStale:w,staleTier:y,isZeroHop:a,opacity:x,blinkIntensity:0,lastSeenTimestamp:v,centrality:b,neighborJson:JSON.stringify(o),affinityJson:C?JSON.stringify(C):void 0,txDelayRecJson:B?JSON.stringify(B):void 0,meanSnr:(null==p?void 0:p.avgSnr)??void 0,meanRssi:(null==p?void 0:p.avgRssi)??void 0}})}return{type:"FeatureCollection",features:e}},[t,n,l,c,u,g,h]),E=A.useMemo(()=>(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)?{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[r.longitude,r.latitude]},properties:{hash:"local",name:r.name,hashPrefix:n?Rr(n):"",iconType:"local",isNeighbor:!1,isHub:!1,isGateway:!1,isMobile:!1,isRoomServer:!1,isStale:!1,staleTier:0,isZeroHop:!1,opacity:1,blinkIntensity:0,centrality:0}}]}:{type:"FeatureCollection",features:[]},[r,n]),j=A.useCallback(A=>{var e;if(!A.features||0===A.features.length)return;const t=null==(e=A.features[0].properties)?void 0:e.hash;t&&(p&&p(t),w&&"local"!==t&&w(t))},[p,w]),Q=A.useCallback(A=>{var e,t;if(!A.features||0===A.features.length)return;const r=null==(e=null==k?void 0:k.getMap)?void 0:e.call(k);r&&(r.getCanvas().style.cursor="pointer");const n=null==(t=A.features[0].properties)?void 0:t.hash;n&&f(n)},[k,f]),N=A.useCallback(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);e&&(e.getCanvas().style.cursor=""),f(null)},[k,f]);A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e||!B)return;const t=[br,pr];for(const r of t)e.on("click",r,j),e.on("mouseenter",r,Q),e.on("mouseleave",r,N);return()=>{for(const A of t)e.off("click",A,j),e.off("mouseenter",A,Q),e.off("mouseleave",A,N)}},[k,B,j,Q,N]);const S=A.useRef(D),F=A.useRef(E);A.useEffect(()=>{S.current=D,F.current=E},[D,E]),A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e||!B||!x||0===x.size)return;const t=e.getSource(mr),r=e.getSource(`${mr}-local`);if(t||r){if(t){const A=S.current;let e=!1;const r=A.features.map(A=>{const t=x.get(A.properties.hash)??0;return t!==A.properties.blinkIntensity?(e=!0,{...A,properties:{...A.properties,blinkIntensity:t}}):A});e&&t.setData({type:"FeatureCollection",features:r})}if(r&&n){const A=x.get(n)??0,e=F.current;e.features.length>0&&e.features[0].properties.blinkIntensity!==A&&r.setData({type:"FeatureCollection",features:[{...e.features[0],properties:{...e.features[0].properties,blinkIntensity:A}}]})}}},[k,B,x,n]);const P=A.useMemo(()=>{if(!b)return null;if("local"===b&&r)return{longitude:r.longitude,latitude:r.latitude,isLocal:!0,name:r.name,hash:n};const A=D.features.find(A=>A.properties.hash===b);if(!A)return null;const e=A.properties,t=e.txDelayRecJson?JSON.parse(e.txDelayRecJson):void 0;return{longitude:A.geometry.coordinates[0],latitude:A.geometry.coordinates[1],isLocal:!1,hash:e.hash,hashPrefix:e.hashPrefix,name:e.name,isHub:e.isHub,isGateway:e.isGateway,isBackbone:"backbone"===(null==t?void 0:t.networkRole),isZeroHop:e.isZeroHop,isMobile:e.isMobile,isRoomServer:e.isRoomServer,isStale:e.isStale,lastSeenTimestamp:e.lastSeenTimestamp,centrality:e.centrality,neighbor:e.neighborJson?JSON.parse(e.neighborJson):void 0,affinity:e.affinityJson?JSON.parse(e.affinityJson):void 0,txDelayRec:t,meanSnr:e.meanSnr,meanRssi:e.meanRssi}},[b,r,n,D]);if(!B)return null;const T=v(),L=["case",[">",["get","blinkIntensity"],.66],Pr,[">",["get","blinkIntensity"],.33],Sr,["==",["get","staleTier"],2],Nr,["==",["get","staleTier"],1],Qr,["==",["get","iconType"],"roomServer"],["case",["get","isNeighbor"],Er,Dr],["==",["get","iconType"],"hub"],["case",["get","isNeighbor"],xr,wr],["==",["get","iconType"],"gateway"],["case",["get","isNeighbor"],Cr,kr],["==",["get","iconType"],"mobile"],["case",["get","isNeighbor"],Mr,Br],["case",["get","isNeighbor"],yr,vr]],I=["interpolate",["linear"],["zoom"],6,.25,10,1];return e.jsxs(e.Fragment,{children:[e.jsx(i,{id:mr,type:"geojson",data:D,children:e.jsx(a,{id:br,type:"symbol",layout:{"icon-image":L,"icon-size":I,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"symbol-sort-key":["get","opacity"]},paint:{"icon-opacity":["get","opacity"]}})}),e.jsx(i,{id:`${mr}-local`,type:"geojson",data:E,children:e.jsx(a,{id:pr,type:"symbol",layout:{"icon-image":["case",[">",["get","blinkIntensity"],.66],Tr,[">",["get","blinkIntensity"],.33],Fr,jr],"icon-size":I,"icon-allow-overlap":!0,"icon-ignore-placement":!0},paint:{"icon-opacity":1}})}),P&&y&&e.jsx(s,{longitude:P.longitude,latitude:P.latitude,offset:{center:[0,0],top:[0,12],"top-left":[6,12],"top-right":[-6,12],bottom:[0,-12],"bottom-left":[6,-12],"bottom-right":[-6,-12],left:[12,0],right:[-12,0]},maxWidth:"280px",closeOnClick:!0,onClose:y,className:"maplibre-popup",children:P.isLocal?e.jsxs("div",{className:"text-sm",children:[e.jsx("strong",{className:"text-base",children:P.name}),P.hash&&e.jsx("span",{className:"ml-2 font-mono text-xs text-text-muted surface-badge px-1.5 py-0.5 rounded",children:Rr(P.hash)}),e.jsx("br",{}),e.jsx("span",{style:{color:T.localColor},className:"font-medium",children:"This Node (Local)"}),e.jsx("br",{}),r&&e.jsxs("span",{className:"text-xs text-text-muted",children:[r.latitude.toFixed(5),", ",r.longitude.toFixed(5)]})]}):P.neighbor&&P.hash?e.jsx(hr,{hash:P.hash,hashPrefix:P.hashPrefix,name:P.name,isHub:P.isHub,isGateway:P.isGateway,isBackbone:P.isBackbone,isZeroHop:P.isZeroHop,isMobile:P.isMobile,isRoomServer:P.isRoomServer,isStale:P.isStale,lastSeenTimestamp:P.lastSeenTimestamp,centrality:P.centrality,affinity:P.affinity,meanSnr:P.meanSnr,meanRssi:P.meanRssi,neighbor:P.neighbor,txDelayRec:P.txDelayRec,onRemove:m?()=>m(P.hash,P.name):void 0}):null})]})}const Hr=[br,pr];A.createContext(null);const zr="topology-validated-edges-native",Gr="topology-weak-edges-native",Ur="neighbor-edges-native",Or="topology-weak-edges-native",Yr="topology-validated-edges-native",Vr="neighbor-edges-native",Wr={type:"FeatureCollection",features:[]},Zr={"line-cap":"round","line-join":"round"},Kr={"line-color":"transparent","line-width":16,"line-opacity":0};function Jr({showTopology:t,isExiting:r,hoveredEdgeKey:n,highlightedLoopEdges:s,highlightedFocusEdges:l,onEdgeHover:c,onLoopHover:u,loops:d=[],neighborNames:g={},opacityBias:h=.5,widthMultiplier:m=1,trafficFilter:b=0,showNeighborLines:p=!0,disableHover:v=!1}){const{current:y}=o(),w=t||r,x=!0,k=p?"visible":"none",C=v||r,B=A.useRef(null),M=A.useRef(C),D=A.useRef(new Map),E=A.useRef(g),j=A.useRef(u);A.useLayoutEffect(()=>{M.current=C,E.current=g,j.current=u});const Q=A.useMemo(()=>function(A){const e=new Map;for(const t of A)for(const A of t.edgeKeys){const r=e.get(A)??[];r.push(t),e.set(A,r)}return e}(d),[d]);A.useLayoutEffect(()=>{D.current=Q},[Q]);const N=A.useCallback(A=>{var e,t;if(M.current)return;if(!A.features||0===A.features.length)return;const r=A.features[0].properties;if(!(null==r?void 0:r.key))return;const n=r.key;if(n!==B.current){B.current=n;const o=!0===r.isNeighborEdge||"true"===r.isNeighborEdge,i=!0===r.isLoopEdge||"true"===r.isLoopEdge;if(o){const t={key:n,fromName:"Local",toName:r.name,certainCount:Number(r.packetCount)||0,confidence:1,isBackbone:!1,isLoopEdge:!1,isDirectPath:!0,isZeroHop:!0,symmetryRatio:1,dominantDirection:"balanced",isHubConnection:!1};c(n,[A.lngLat.lng,A.lngLat.lat],t),null==(e=j.current)||e.call(j,null)}else if(i&&j.current){const e=D.current.get(n)??[];if(e.length>0){const t=new Set;for(const A of e)for(const e of A.edgeKeys)t.add(e);const r={loops:e,highlightedEdgeKeys:t,hoveredEdgeKey:n,nodeNames:e[0].nodes.map(A=>E.current[A]||A.substring(0,4))};j.current(r,[A.lngLat.lng,A.lngLat.lat]),c(n)}else{const e={key:n,fromName:r.fromName,toName:r.toName,certainCount:Number(r.certainCount),confidence:Number(r.confidence),isBackbone:!0===r.isBackbone||"true"===r.isBackbone,isLoopEdge:!0,isDirectPath:!0===r.isDirectPath||"true"===r.isDirectPath,isZeroHop:!0===r.isZeroHop||"true"===r.isZeroHop,symmetryRatio:Number(r.symmetryRatio),dominantDirection:r.dominantDirection,isHubConnection:!0===r.isHubConnection||"true"===r.isHubConnection};c(n,[A.lngLat.lng,A.lngLat.lat],e)}}else{const e={key:n,fromName:r.fromName,toName:r.toName,certainCount:Number(r.certainCount),confidence:Number(r.confidence),isBackbone:!0===r.isBackbone||"true"===r.isBackbone,isLoopEdge:i,isDirectPath:!0===r.isDirectPath||"true"===r.isDirectPath,isZeroHop:!0===r.isZeroHop||"true"===r.isZeroHop,symmetryRatio:Number(r.symmetryRatio),dominantDirection:r.dominantDirection,isHubConnection:!0===r.isHubConnection||"true"===r.isHubConnection};c(n,[A.lngLat.lng,A.lngLat.lat],e),null==(t=j.current)||t.call(j,null)}}},[c]),S=A.useCallback(()=>{var A;null!==B.current&&(B.current=null,c(null),null==(A=j.current)||A.call(j,null))},[c]);A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e||!w)return;const t="topology-validated-edges-hitarea-native",r=()=>{try{return e.getStyle()&&e.getLayer(t)}catch{return!1}},n=()=>!!r()&&(e.on("mousemove",t,N),e.on("mouseleave",t,S),!0);if(!n()){const A=()=>{n()&&e.off("styledata",A)};return e.on("styledata",A),()=>{try{e.off("styledata",A),r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}}return()=>{try{r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}},[y,w,N,S]),A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e||!p)return;const t="neighbor-edges-hitarea-native",r=()=>{try{return e.getStyle()&&e.getLayer(t)}catch{return!1}},n=()=>!!r()&&(e.on("mousemove",t,N),e.on("mouseleave",t,S),!0);if(!n()){const A=()=>{n()&&e.off("styledata",A)};return e.on("styledata",A),()=>{try{e.off("styledata",A),r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}}return()=>{try{r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}},[y,x,p,N,S]),A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e)return;let t=null;const r=(A,t)=>{try{if(e.getLayer(A)&&e.getLayer(t))return e.moveLayer(A,t),!0}catch{}return!1},n=()=>{try{if(!e.getLayer("node-markers-layer"))return;r(Vr,"node-markers-layer"),r("neighbor-edges-hitarea-native",Vr),(r(Yr,"neighbor-edges-hitarea-native")||r(Yr,"node-markers-layer"))&&r("topology-validated-edges-hitarea-native",Yr),r(Or,"topology-validated-edges-hitarea-native")}catch{}},o=()=>{t&&clearTimeout(t),t=setTimeout(n,50)},i=setTimeout(n,100);e.on("styledata",o);const a=A=>{(A.sourceId===zr||A.sourceId===Gr||A.sourceId===Ur)&&o()};return e.on("sourcedata",a),()=>{clearTimeout(i),t&&clearTimeout(t);try{e.off("styledata",o),e.off("sourcedata",a)}catch{}}},[y,w,x,p]);const F=C?null:n,P=function(A,e,t,r,n,o){const i=WA(),a=null!==A,s=n&&n.size>0,l=o&&o.size>0,c=s?Array.from(n):[],u=l?Array.from(o):[],d=e<=0?["get","baseColor"]:["case",[">=",["get","brightnessScore"],1-.5*e],"#FFFFFF",["get","baseColor"]],f=e<=0?1:["max",.1,["+",1,["*",e,3,["-",["get","brightnessScore"],.5]]]],g=s?["in",["get","key"],["literal",c]]:l?["in",["get","key"],["literal",u]]:!!a&&["==",["get","key"],A],h=a||s||l,m=i.edges.hoverLoop??"#A78BFA";return{"line-color":h?["case",g,s?m:l?"#FFD700":["get","hoverColor"],d]:d,"line-width":h?["case",g,["max",["*",["get","baseWidth"],t,1.3],3.5],["*",["get","baseWidth"],t]]:["*",["get","baseWidth"],t],"line-opacity":["case",["<",["get","brightnessScore"],r],0,h?["case",g,["min",["*",["get","baseOpacity"],1.25],1],["*",["get","baseOpacity"],f,.35]]:["*",["get","baseOpacity"],f]]}}(F,h,m,b,C?null:s,l??null),T=function(A){const e=null!==A,{YELLOW:t,GREEN:r,RED:n,GRAY:o}=f,i=["to-number",["get","listenerScore"],0],a=["to-number",["get","loudScore"],0],s=["/",i,["max",["+",i,a],1]],l=["*",["+",.2,["*",["to-number",["get","trafficWeight"],0],.8]],8];return{"line-color":["case",["all",["==",i,0],["==",a,0]],o,[">=",s,.97],r,["<=",s,.03],n,["interpolate",["linear"],s,.03,n,.5,t,.97,r]],"line-width":["interpolate",["linear"],["zoom"],6,e?["case",["==",["get","key"],A],["max",["*",l,.25],1.25],["*",l,.25]]:["*",l,.25],10,e?["case",["==",["get","key"],A],["max",l,5],l]:l],"line-opacity":e?["case",["==",["get","key"],A],1,.35]:.9}}(F);return e.jsxs(e.Fragment,{children:[w&&e.jsx(i,{id:Gr,type:"geojson",data:Wr,children:e.jsx(a,{id:Or,type:"line",paint:P,layout:{...Zr,visibility:k}})}),w&&e.jsxs(i,{id:zr,type:"geojson",data:Wr,children:[e.jsx(a,{id:"topology-validated-edges-hitarea-native",type:"line",paint:Kr,layout:{...Zr,visibility:k}}),e.jsx(a,{id:Yr,type:"line",paint:P,layout:{...Zr,visibility:k}})]}),e.jsxs(i,{id:Ur,type:"geojson",data:Wr,children:[e.jsx(a,{id:"neighbor-edges-hitarea-native",type:"line",paint:Kr,layout:{...Zr,visibility:k}}),e.jsx(a,{id:Vr,type:"line",paint:T,layout:{...Zr,visibility:k}})]})]})}const qr=["topology-validated-edges-hitarea-native","topology-validated-edges-native","topology-weak-edges-native","neighbor-edges-hitarea-native","neighbor-edges-native"];function Xr({targetHash:e,nodeCoordinates:t,onComplete:r}){const{current:n}=o(),i=A.useRef(null);return A.useEffect(()=>{if(!n||!e||e===i.current)return;const A=t.get(e);if(!A)return;const o=n.getMap();o.isMoving()&&o.stop(),i.current=e;const[a,s]=A;n.flyTo({center:[s,a],zoom:10,duration:2500,essential:!0}),setTimeout(()=>{null==r||r()},2600)},[e,t,n,r]),null}function $r({highlightedEdgeKey:e,validatedPolylines:t,weakPolylines:r,onEnsureTopology:n}){const{current:i}=o(),a=A.useRef(null);return A.useEffect(()=>{if(!i||!e)return;if(e===a.current)return;a.current=e,n();const A=t.find(A=>A.edge.key===e)||r.find(A=>A.edge.key===e);if(!A)return;if(i.getMap().isMoving())return;const o=(A.from[0]+A.to[0])/2,s=(A.from[1]+A.to[1])/2,l=i.getZoom(),c=Math.max(l,11);i.easeTo({center:[s,o],zoom:c,duration:500})},[e,t,r,i,n]),null}function An(A,e,t,r=64){const n=[],o=t/6371e3*(180/Math.PI),i=o/Math.cos(e*Math.PI/180);for(let a=0;a<=r;a++){const t=a/r*2*Math.PI,s=A+i*Math.cos(t),l=e+o*Math.sin(t);n.push([s,l])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[n]}}}function en({ghost:t,neighborCoordinates:r,onHighlightedNeighborsChange:n}){const{current:s}=o(),l=A.useRef(null),c=A.useRef(null),u=A.useMemo(()=>t?new Set(t.commonNeighbors):new Set,[t]);A.useEffect(()=>{null==n||n(u)},[u,n]);const d=A.useMemo(()=>{if(!(null==t?void 0:t.commonNeighbors)||t.commonNeighbors.length<2)return 8e3;let A=0;const e=[];for(const n of t.commonNeighbors){const A=r.get(n);A&&e.push(A)}t.estimatedLocation&&e.push([t.estimatedLocation.lat,t.estimatedLocation.lon]);for(let t=0;tA&&(A=n)}return Math.max(A,2e3)},[t,r]),f=A.useMemo(()=>{if(!(null==t?void 0:t.estimatedLocation))return{type:"FeatureCollection",features:[]};const{lat:A,lon:e,uncertaintyM:r}=t.estimatedLocation,n=.5*d,o=r>0?r:2e3;return{type:"FeatureCollection",features:[An(e,A,Math.max(500,Math.min(o,n)))]}},[t,d]);if(A.useEffect(()=>{if(!s)return;const A=s.getMap();if(t&&t.prefix!==c.current){if(c.current=t.prefix,!l.current&&A.getZoom()>3){const e=A.getCenter();l.current={center:[e.lng,e.lat],zoom:A.getZoom(),pitch:A.getPitch(),bearing:A.getBearing()}}const e=[];for(const A of t.commonNeighbors){const t=r.get(A);t&&e.push([t[1],t[0]])}if(t.estimatedLocation&&e.push([t.estimatedLocation.lon,t.estimatedLocation.lat]),e.length>0){const r=()=>{var n;if(A.isMoving())setTimeout(r,100);else if(1===e.length)s.flyTo({center:e[0],zoom:13,duration:1500});else{let A=1/0,r=-1/0,o=1/0,i=-1/0;for(const[t,n]of e)A=Math.min(A,t),r=Math.max(r,t),o=Math.min(o,n),i=Math.max(i,n);if(null==(n=t.estimatedLocation)?void 0:n.uncertaintyM){const e=t.estimatedLocation.uncertaintyM/111e3;A-=e,r+=e,o-=e,i+=e}s.fitBounds([[A,o],[r,i]],{padding:{top:60,bottom:60,left:60,right:60},maxZoom:14,duration:1500})}};setTimeout(r,50)}}if(!t&&null!==c.current&&(c.current=null,l.current)){const e=l.current,t=()=>{A.isMoving()?setTimeout(t,100):(s.flyTo({center:e.center,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,duration:1e3}),l.current=null)};setTimeout(t,50)}},[t,s,r]),!(null==t?void 0:t.estimatedLocation))return null;return e.jsx(i,{id:"ghost-uncertainty-circle",type:"geojson",data:f,children:e.jsx(a,{id:"ghost-uncertainty-fill",type:"fill",paint:{"fill-color":"rgba(167, 139, 250, 0.15)","fill-opacity":.8}})})}!function(A){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A);e&&(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16))}(VA.edges.neighborHover);const tn={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},rn={longitude:0,latitude:0,zoom:2};function nn({data:A}){const t=A.subtitle&&"loop"===A.type,r=A.subtitle&&"loop"!==A.type;return e.jsxs("div",{className:"w-[540px]",children:[e.jsxs("div",{className:"flex items-center justify-between h-5",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[A.title.icon&&e.jsx("span",{className:`${A.title.color} text-base leading-none flex-shrink-0`,children:A.title.icon}),e.jsx("span",{className:`${A.title.color} font-semibold text-[13px] truncate`,children:A.title.text}),r&&e.jsx("span",{className:`${A.subtitle.color} text-[11px] flex-shrink-0`,children:A.subtitle.text})]}),A.badges.length>0&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0 ml-3",children:A.badges.map((A,t)=>e.jsx("span",{className:`${A.color} text-[11px] font-medium`,children:A.text},t))})]}),t&&e.jsx("div",{className:"h-4 mt-0.5 overflow-hidden",children:e.jsx("span",{className:"font-mono text-[10px] text-text-muted truncate block",children:A.subtitle.text})}),e.jsx("div",{className:`flex items-center gap-4 h-4 ${t?"mt-1":"mt-1.5"} text-[11px]`,children:A.stats.map((A,t)=>e.jsxs("span",{className:"whitespace-nowrap",children:[e.jsx("span",{className:`font-mono tabular-nums font-semibold ${A.color??"text-text-primary"}`,children:A.value}),e.jsx("span",{className:"text-text-muted ml-1",children:A.label}),A.unit&&e.jsx("span",{className:"text-text-muted/50 ml-0.5",children:A.unit})]},t))})]})}function on({neighbors:t,localNode:r,localHash:o,onRemoveNode:i,selectedNodeHash:a,onNodeSelected:s,highlightedEdgeKey:f,highlightedGhost:g}){const h=A.useRef(null),b=Z(),p=K(),v=Y(),y=J(),[w,x]=A.useState(!1),k=Zt(A=>A.viewState),C=Zt(A=>A.toggles),B=Zt(A=>A.hasAnalyzed),M=Zt(A=>A.setViewState),D=Zt(A=>A.setToggle),E=Zt(A=>A.setHasAnalyzed),j=q(A=>A.preloadFromNodes),Q=q(A=>A.isLoading),N=q(A=>A.terrainGrid),S=o??y,F=A.useMemo(()=>{const A=[];for(const[,e]of Object.entries(t))e.latitude&&e.longitude&&A.push([e.latitude,e.longitude]);return A},[t]),P=A.useMemo(()=>function(A,e){let t=[...A];if((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&t.push([e.latitude,e.longitude]),0===t.length)return null;if(1===t.length){const[A,e]=t[0];return{longitude:e,latitude:A,zoom:14}}t=function(A,e){if(A.length<=2)return A;let t,r;if((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude))t=e.latitude,r=e.longitude;else{let e=0,n=0;for(const[t,r]of A)e+=t,n+=r;t=e/A.length,r=n/A.length}const n=A.map(([A,e])=>{return{pos:[A,e],dist:(n=t,o=r,i=A,a=e,OA(n,o,i,a)/1e3)};var n,o,i,a});n.sort((A,e)=>A.dist-e.dist);const o=n[Math.floor(n.length/2)].dist,i=Math.max(3*o,50),a=n.filter(A=>A.dist<=i).map(A=>A.pos);return a.length<.5*A.length?A:a}(t,e);let r=1/0,n=-1/0,o=1/0,i=-1/0;for(const[f,g]of t)r=Math.min(r,g),n=Math.max(n,g),o=Math.min(o,f),i=Math.max(i,f);const a=(r+n)/2,s=(o+i)/2,l=i-o,c=n-r,u=Math.max(l,c);let d=16;return u>0&&(d=Math.floor(Math.log2(360/u*1.2)),d=Math.max(1,Math.min(14,d))),d=Math.min(d+1,12),{longitude:a,latitude:s,zoom:d}}(F,r),[F,r]),[T,L]=A.useState(()=>k??P??rn),I=A.useCallback(A=>{L(A),queueMicrotask(()=>M(A))},[M]),U=A.useRef(!!k);A.useEffect(()=>{U.current||!P||k?k&&setTimeout(()=>x(!0),50):(L(P),queueMicrotask(()=>M(P)),U.current=!0,setTimeout(()=>x(!0),50))},[P,k,M]);const[O,V]=A.useState(!1),[W,X]=A.useState(()=>!(C.showTopology&&!v.topologyLoadComplete)&&C.showTopology),[$,eA]=A.useState(C.showNeighborLines),[tA,rA]=A.useState(!1),[oA,iA]=A.useState(C.showMinCut),[aA,sA]=A.useState(ze),[lA,cA]=A.useState(C.show3DTerrain),[uA,dA]=A.useState(C.nodeFilter),fA=A.useCallback(A=>{X(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showTopology",t)),t})},[D]),gA=A.useCallback(A=>{eA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showNeighborLines",t)),t})},[D]),hA=A.useCallback(A=>{iA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showMinCut",t)),t})},[D]),mA=A.useCallback(A=>{cA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("show3DTerrain",t)),t})},[D]),bA=A.useCallback(A=>{dA(A),queueMicrotask(()=>D("nodeFilter",A))},[D]),[pA,vA]=A.useState(null),[yA,wA]=A.useState(null),[xA,kA]=A.useState(null),[CA]=A.useState(0),[BA]=A.useState(.5),[MA]=A.useState(0),[DA,EA]=A.useState(null),[jA,QA]=A.useState(""),[NA,SA]=A.useState(!1),[FA,PA]=A.useState(!1),[TA,LA]=A.useState(()=>!(B&&!v.topologyLoadComplete)&&B);A.useEffect(()=>{if(v.topologyLoadComplete)return;const A=B&&!TA,e=C.showTopology&&!W;(A||e)&&queueMicrotask(()=>{A&&E(!1),e&&D("showTopology",!1)})},[B,C.showTopology,v.topologyLoadComplete,TA,W,E,D]);const IA=A.useCallback(A=>{LA(A),queueMicrotask(()=>E(A))},[E]),[RA,_A]=A.useState(null),HA=A.useCallback(A=>_A(A),[]),zA=A.useCallback(()=>_A(null),[]),[,GA]=A.useState(new Set),UA=Me(A=>A.coveragePoints),VA=Me(A=>A.isVisible),WA=Me(A=>A.brightness),KA=Me(A=>A.openModal),JA=Je(A=>A.isEnabled),qA=Je(A=>A.toggle),XA=n(),$A=l(),Ae=A.useRef(!1);A.useEffect(()=>{UA.length>0&&VA&&!Ae.current&&(gA(!1),Ae.current=!0)},[UA.length,VA]);const ee=A.useRef(null);A.useEffect(()=>{if(a&&a!==ee.current){ee.current=a;const A=setTimeout(()=>{_A(a)},1250);return()=>clearTimeout(A)}},[a]);const[te,re]=A.useState(null),[ne,oe]=A.useState(null),ie=A.useCallback((A,e,t)=>{wA(A),A&&e&&t?re({longitude:e[0],latitude:e[1],type:"topology",properties:{key:t.key,fromName:t.fromName,toName:t.toName,certainCount:t.certainCount,confidence:t.confidence,isBackbone:t.isBackbone,isLoopEdge:t.isLoopEdge,isDirectPath:t.isDirectPath,isHubConnection:t.isHubConnection,symmetryRatio:t.symmetryRatio,dominantDirection:t.dominantDirection}}):A||re(null)},[]),le=A.useCallback((A,e)=>{oe(A),A&&re(null)},[]),ce=A.useMemo(()=>{var A;if(!W)return null;if(!pA)return null;if(yA)return null;const e=b.loops;if(0===e.length)return null;const r=function(A,e,t){const r=function(A,e){return e.filter(e=>e.nodes.includes(A)).sort((A,e)=>e.avgCertainCount-A.avgCertainCount)}(A,e),n=new Set,o=[];for(const i of r)for(const A of i.edgeKeys)if(!n.has(A)){n.add(A);const e=t.get(A);o.push({key:A,certainCount:(null==e?void 0:e.certainCount)??0})}return o.sort((A,e)=>e.certainCount-A.certainCount),{loops:r,highlightedEdgeKeys:n,sortedEdges:o}}(pA,e,b.edgeMap);if(0===r.loops.length)return null;const n=r.loops[0].nodes.map(A=>{var e,r;return A===S?"You":(null==(e=t[A])?void 0:e.node_name)||(null==(r=t[A])?void 0:r.name)||A.substring(0,4)});return{loops:r.loops,highlightedEdgeKeys:r.highlightedEdgeKeys,hoveredEdgeKey:(null==(A=r.sortedEdges[0])?void 0:A.key)||"",nodeNames:n}},[W,pA,yA,b.loops,b.edgeMap,t,S]);A.useEffect(()=>{yA||oe(ce)},[ce,yA]);const fe=A.useMemo(()=>{const A={};for(const[e,r]of Object.entries(t))A[e]=r.node_name||r.name||e.substring(0,4);return S&&(A[S]="You"),A},[t,S]),ge=A.useMemo(()=>Object.entries(t).filter(([,A])=>A.latitude&&A.longitude),[t]),he=A.useMemo(()=>{const A=new Map;S&&(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)&&A.set(S,[r.latitude,r.longitude]);for(const[e,t]of ge)t.latitude&&t.longitude&&A.set(e,[t.latitude,t.longitude]);return A},[S,r,ge]),be=A.useMemo(()=>{const A=new Map;for(const e of p)"expired"!==e.status&&A.set(e.hash,{hash:e.hash,prefix:e.prefix,count:e.count,avgRssi:e.avgRssi,avgSnr:e.avgSnr,lastSeen:e.lastSeen,confidence:1,status:e.status});return A},[p]),pe=A.useMemo(()=>{var A,e;const r=new Set;for(const n of be.keys())(null==(A=t[n])?void 0:A.latitude)&&(null==(e=t[n])?void 0:e.longitude)&&r.add(n);return r},[be,t]),ve=A.useMemo(()=>{if(0===pe.size||!S)return new Map;const A=_.getPackets();if(0===A.length)return new Map;const e=z(S);return m(A,pe,e).scores},[pe,S,v.packetCount]),ye=A.useCallback(A=>!!(S&&(A.fromHash===S&&pe.has(A.toHash)||A.toHash===S&&pe.has(A.fromHash))),[S,pe]),we=A.useMemo(()=>{var A,e;if(0===p.length||!S)return[];if(v.backgroundLoadComplete)return[];const r=[];for(const n of p){if("expired"===n.status)continue;if(!(null==(A=t[n.hash])?void 0:A.latitude)||!(null==(e=t[n.hash])?void 0:e.longitude))continue;const o=[S,n.hash].sort(),i=`${o[0]}~${o[1]}`;r.push({fromHash:S,toHash:n.hash,key:i,packetCount:n.count,avgConfidence:1,strength:.8,avgRecency:1,hopDistanceFromLocal:0,isHubConnection:!1,isCertain:!0,certainCount:n.count,isLoopEdge:!1,forwardCount:n.count,reverseCount:0,symmetryRatio:0,dominantDirection:"forward",floodCount:n.count,directCount:0,isDirectPathEdge:!1,isZeroHop:!0,avgRssi:n.avgRssi,avgSnr:n.avgSnr})}return r},[p,S,v.backgroundLoadComplete,t]),xe=A.useMemo(()=>{const A=[];if(we.length>0&&!v.backgroundLoadComplete){for(const e of we){const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A}for(const e of b.validatedEdges){if(ye(e))continue;const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A},[b.validatedEdges,he,ye,we,v.backgroundLoadComplete]),ke=A.useMemo(()=>{const A=[];for(const e of b.weakEdges){if(ye(e))continue;const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A},[b.weakEdges,he,ye]),Ce=A.useMemo(()=>{if(!(null==r?void 0:r.latitude)||!(null==r?void 0:r.longitude))return[];const A=[],e=[r.latitude,r.longitude],n=new Map;for(const t of b.lastHopNeighbors)n.set(t.hash,t.count);const o=new Map;for(const t of p)o.set(t.hash,t.count);for(const r of pe){const i=t[r];if(!(null==i?void 0:i.latitude)||!(null==i?void 0:i.longitude))continue;const a=o.get(r),s=n.get(r);A.push({from:e,to:[i.latitude,i.longitude],hash:r,neighbor:i,lastHopData:be.get(r)??null,rxAdvertCount:a,txProxyCount:s})}return A},[r,pe,t,be,b.lastHopNeighbors,p]),Be=A.useMemo(()=>new Set(b.loopEdgeKeys),[b.loopEdgeKeys]),De=A.useMemo(()=>new Set(b.backboneEdges),[b.backboneEdges]),Ee=A.useMemo(()=>{if(!xA)return null;const A=b.validatedEdges.filter(A=>A.fromHash===xA||A.toHash===xA);if(0===A.length)return null;const e=[...A].sort((A,e)=>e.certainCount-A.certainCount),t=Math.max(1,Math.ceil(.2*e.length)),r=e.slice(0,t);return new Set(r.map(A=>A.key))},[xA,b.validatedEdges]),je=A.useMemo(()=>{let A=0;if(we.length>0&&!v.backgroundLoadComplete){for(const e of we)e.certainCount>A&&(A=e.certainCount);return A||1}for(const e of b.validatedEdges)e.certainCount>A&&(A=e.certainCount);return A||1},[b.validatedEdges,we,v.backgroundLoadComplete]),Qe=A.useMemo(()=>{if(0===b.validatedEdges.length)return null;const A=new Set;for(const r of b.validatedEdges)A.add(r.fromHash),A.add(r.toHash);const e=Array.from(A).filter(A=>he.has(A)).sort();if(e.length<3)return null;const t=new Map;for(const r of e){const A=he.get(r);A&&t.set(r,A)}return function(A,e,t,r){const n=e.length;if(n<3)return{communities:new Map([[0,e]]),nodePartitions:e.map(A=>({hash:A,community:0,fiedlerValue:0})),numCommunities:1,fiedlerValue:0,isConnected:n<=1};const o=[];let i=1/0;const a=[[e,0]];for(;a.length>0;){const[e,n]=a.shift();if((t?Pt(e,t):0)>20&&n<4&&e.length>=10){const o=Tt(A,e,t,r);if(o){i=Math.min(i,o.fiedlerValue),a.push([o.group0,n+1]),a.push([o.group1,n+1]);continue}}o.push(e)}const s=new Map,l=[],c=new Map;for(let u=0;u{hA(A=>{const e=!A;if(e&&Qe&&h.current){const A=h.current.getMap();if(!A)return e;let t=1/0,r=-1/0,n=1/0,o=-1/0,i=!1;for(const[,e]of Qe.communities)for(const A of e){const e=he.get(A);if(e){const[A,a]=e;n=Math.min(n,A),o=Math.max(o,A),t=Math.min(t,a),r=Math.max(r,a),i=!0}}i&&A.fitBounds([[t,n],[r,o]],{padding:{top:60,bottom:100,left:60,right:320},duration:800,maxZoom:14})}return e})},[Qe,he]),Se=A.useRef(null);A.useLayoutEffect(()=>{var A,e;Se.current=(null==(e=null==(A=h.current)?void 0:A.getMap)?void 0:e.call(A))??null});const Fe=R(),Pe=A.useMemo(()=>_.getPackets(),[Fe]);!function({map:e,nodeCoordinates:t,packets:r,localHash:n,neighbors:o,meshTopology:i,enabled:a=!0}){const s=A.useRef(null),l=e&&"current"in e?e.current:e;A.useEffect(()=>{s.current=l},[l]);const c=A.useRef(!1),u=A.useRef(null),d=A.useRef([]),f=A.useRef(0),g=A.useRef(!1),[h,m]=A.useState(!1),b=A.useRef(null),p=A.useRef([]),v=A.useRef(new Map),y=A.useRef(t);A.useEffect(()=>{y.current=t},[t]),A.useEffect(()=>{v.current=function(A,e){const t=new Map;for(const r of Object.keys(A)){const A=z(r);t.has(A)||t.set(A,r)}if(e){const A=z(e);t.set(A,e)}return t}(o,n)},[o,n]),A.useEffect(()=>{if(!a){b.current&&(clearTimeout(b.current),b.current=null),p.current=[],null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),d.current=[];const A=s.current;if(A&&c.current){const e=A.getSource(nr);e&&e.setData({type:"FeatureCollection",features:[]})}g.current=!1,f.current=0}},[a]),A.useEffect(()=>{const A=l;if(!A)return;let e=null,t=!1;const r=()=>{if(!t&&!c.current)try{A.getLayer(or)&&A.removeLayer(or),A.getSource(nr)&&A.removeSource(nr),A.addSource(nr,{type:"geojson",data:{type:"FeatureCollection",features:[]}});const t=A.getLayer(sr)?sr:void 0;A.addLayer({id:or,type:"line",source:nr,layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":["case",["any",["==",["get","isSpeculative"],!0],["==",["get","isSpeculative"],"true"]],"#8B7BAD","#12A594"],"line-width":["case",["any",["==",["get","isSpeculative"],!0],["==",["get","isSpeculative"],"true"]],1.875,2.5],"line-opacity":["*",["get","opacityMult"],["interpolate",["linear"],["get","intensity"],0,0,.1,.8,.5,1,1,1]]}},t),c.current=!0,m(!0),e&&(clearInterval(e),e=null)}catch{}};return A.isStyleLoaded()&&r(),A.once("style.load",()=>{r()}),c.current||(e=setInterval(()=>{c.current?e&&clearInterval(e):r()},100),setTimeout(()=>{e&&(clearInterval(e),e=null)},5e3)),()=>{t=!0,e&&clearInterval(e),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null);const A=s.current;if(A&&c.current){try{A.getLayer(or)&&A.removeLayer(or),A.getSource(nr)&&A.removeSource(nr)}catch{}c.current=!1,m(!1)}}},[l]);const w=A.useRef(()=>{});A.useEffect(()=>{w.current=()=>{const A=s.current;if(!A)return;const e=A.getSource(nr);if(!e)return;const t=performance.now(),r=d.current,n=[],o=[];for(const i of r){const A=t-i.startTime-i.delay;if(A<(i.isSpeculative?ar:ir)){o.push(i);const e=i.isSpeculative?cr(A):lr(A);e>0&&n.push({type:"Feature",properties:{intensity:e,opacityMult:i.isSpeculative?.5:1,isSpeculative:i.isSpeculative??!1},geometry:{type:"LineString",coordinates:[i.fromCoord,i.toCoord]}})}}e.setData({type:"FeatureCollection",features:n}),d.current=o,o.length>0?u.current=requestAnimationFrame(()=>w.current()):u.current=null}},[]);const x=A.useCallback(()=>{const A=s.current;A&&function(A){if(!A.getLayer(or))return;const e=A.getLayer(sr)?sr:void 0;try{A.moveLayer(or,e)}catch{}}(A),null===u.current&&(u.current=requestAnimationFrame(()=>w.current()))},[]),k=A.useCallback(()=>{if(!s.current||!c.current)return;const A=p.current;if(p.current=[],b.current=null,0===A.length)return;const e=v.current,t=y.current;if(0===e.size)return;const r=performance.now();let o=0,a=!1;const l=new Set;for(const s of A){const A=H(s,n);if(!A||A.original.length<2)continue;const c=A.original;let u=0,f=null;for(let n=0;n0){A.sort((A,e)=>e.confidence-A.confidence);const e=Math.max(1,Math.ceil(.25*A.length)),n=A.slice(0,e),i=o+150*u;for(const{edgeKey:A,otherHash:o}of n){const e=t.get(f),n=t.get(o);d.current.push({edgeKey:A,fromCoord:ur(e),toCoord:ur(n),startTime:r,delay:i,isSpeculative:!0}),l.add(A),a=!0}}}u>0&&(o+=150*u*.5)}a&&x()},[n,i,x]);A.useEffect(()=>{const A=s.current;if(!a)return;if(!A)return;if(!h)return;if(0===r.length)return;const e=Date.now(),t=f.current;if(!g.current){g.current=!0;const A=(e-3e4)/1e3,t=r.filter(e=>(e.timestamp??0)>=A);let n=0;for(const e of r){const A=e.timestamp??0;A>n&&(n=A)}if(f.current=n,t.length>0){t.sort((A,e)=>(A.timestamp??0)-(e.timestamp??0));const A=t.slice(-20);p.current.push(...A),k()}return}const n=r.filter(A=>(A.timestamp??0)>t);if(0===n.length)return;let o=0;for(const r of n){const A=r.timestamp??0;A>o&&(o=A)}f.current=o,p.current.push(...n),b.current&&clearTimeout(b.current),b.current=setTimeout(k,175)},[a,r,k,h]),A.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[])}({map:Se,nodeCoordinates:he,packets:Pe,localHash:S,neighbors:t,meshTopology:b,enabled:JA});const{isExiting:Te,isAnimating:Le,resetAnimationState:Ie}=function({map:e,showTopology:t,validatedPolylines:r,weakPolylines:n,maxCertainCount:o,loopEdgeKeys:i,backboneEdgeKeys:a,highlightedEdgeKey:s,neighbors:l,validatedSourceId:c,weakSourceId:u,neighborPolylines:d=[],showNeighborLines:f=!0,neighborSourceId:g,neighborLinkScores:h=new Map,basemapMode:m}){const b=A.useRef(null);A.useEffect(()=>{const A=e&&"current"in e?e.current:e;b.current=A});const p=A.useRef(new Map),v=A.useRef(1),y=A.useRef(new Map),w=A.useRef(new Map),x=A.useRef(!1),k=A.useRef(null),C=A.useRef(t),B=A.useRef(new Set),M=A.useRef(""),D=A.useRef(new Map),E=A.useRef(""),j=A.useRef(""),Q=A.useRef(""),N=A.useRef(r),S=A.useRef(n),F=A.useRef(o),P=A.useRef(i),T=A.useRef(a),L=A.useRef(s),I=A.useRef(l),R=A.useRef(d),_=A.useRef(f),H=A.useRef(h),z=A.useRef(m);A.useEffect(()=>{N.current=r,S.current=n,F.current=o,P.current=i,T.current=a,L.current=s,I.current=l,R.current=d,_.current=f,H.current=h,z.current=m},[r,n,o,i,a,s,l,d,f,h,m]);const G=A.useCallback((A=!1)=>{var e,t,r,n,o,i,a,s,l,d;const f=b.current;if(!f)return;const h=f.getSource(c),m=f.getSource(u),x=f.getSource(g);if(h){const o=$t(N.current,!0,p.current,v.current,y.current,w.current,F.current,P.current,T.current,L.current,I.current,z.current),i=`${o.features.length}:${(null==(t=null==(e=o.features[0])?void 0:e.properties)?void 0:t.key)??""}:${(null==(n=null==(r=o.features[o.features.length-1])?void 0:r.properties)?void 0:n.key)??""}:${Array.from(p.current.values()).reduce((A,e)=>A+e,0).toFixed(2)}`;(A||i!==E.current)&&(h.setData(o),E.current=i)}if(m){const e=$t(S.current,!1,p.current,v.current,y.current,w.current,F.current,P.current,T.current,L.current,I.current,z.current),t=`${e.features.length}:${(null==(i=null==(o=e.features[0])?void 0:o.properties)?void 0:i.key)??""}:${(null==(s=null==(a=e.features[e.features.length-1])?void 0:a.properties)?void 0:s.key)??""}`;(A||t!==j.current)&&(m.setData(e),j.current=t)}if(x&&R.current.length>0){const e=Ar(R.current,H.current),t=`${e.features.length}:${(null==(d=null==(l=e.features[0])?void 0:l.properties)?void 0:d.hash)??""}`;(A||t!==Q.current)&&(x.setData(e),Q.current=t)}},[c,u,g]),U=A.useCallback(()=>{k.current&&(cancelAnimationFrame(k.current),k.current=null),p.current=new Map,v.current=1,y.current=new Map,w.current=new Map,x.current=!1,B.current=new Set,M.current="",D.current=new Map},[]);A.useEffect(()=>{const A=C.current,e=t;if(C.current=t,b.current){if(k.current&&(cancelAnimationFrame(k.current),k.current=null),A&&!e&&!x.current){x.current=!0;const A=new Map(p.current);let e=null;const t=r=>{e||(e=r);const n=r-e,o=Math.min(n/500,1),i=(a=o,1-Math.pow(1-a,3));var a;for(const[e,t]of A)p.current.set(e,t*(1-i));G(!0),o<1?k.current=requestAnimationFrame(t):(x.current=!1,p.current=new Map,B.current=new Set,M.current="",y.current=new Map,w.current=new Map,k.current=null,G(!0))};k.current=requestAnimationFrame(t)}!A&&e&&(p.current=new Map,B.current=new Set,M.current="")}},[t,G]),A.useEffect(()=>{const A=b.current;if(!t||x.current||!A)return;const e=[...r,...n],o=e.map(A=>`${A.edge.key}:${A.edge.certainCount}`).sort().join(","),i=0===B.current.size,a=""!==M.current&&M.current!==o;if(!i&&!a)return void G();const s=[],l=[];for(const{edge:t}of e)B.current.has(t.key)?l.push(t.key):s.push(t.key);a&&l.length>0&&(y.current=new Map(D.current),v.current=0),w.current=new Map;for(const{edge:t}of r){const A=YA(t.certainCount);w.current.set(t.key,A)}for(const t of s)p.current.set(t,0);for(const t of l)p.current.has(t)||p.current.set(t,1);if(s.length>0||a&&l.length>0){k.current&&(cancelAnimationFrame(k.current),k.current=null);let A=null;const e=Math.min(100,ZA/Math.max(s.length,1)/2),t=r=>{A||(A=r);const n=r-A;for(let A=0;A0){const A=Math.min(n/ZA,1);v.current=Xt(A)}G(!0);const o=ZA+(s.length-1)*e;k.current=n{const A=b.current;if(!A||!g)return;const e=()=>{const e=A.getSource(g);if(!e)return!1;if(d.length>0){const A=Ar(d,h);e.setData(A)}else e.setData({type:"FeatureCollection",features:[]});return!0};if(e())return;const t=r=>{r.sourceId===g&&e()&&A.off("sourcedata",t)};A.on("sourcedata",t);const r=()=>{e()&&(A.off("styledata",r),A.off("sourcedata",t))};return A.on("styledata",r),()=>{A.off("sourcedata",t),A.off("styledata",r)}},[g,d,h]);const O=A.useRef(m);return A.useEffect(()=>{m!==O.current&&(O.current=m,E.current="",j.current="",Q.current="",G(!0))},[m,G]),A.useEffect(()=>()=>{k.current&&(cancelAnimationFrame(k.current),k.current=null)},[]),{isExiting:x.current,isAnimating:null!==k.current,resetAnimationState:U,weightAnimProgress:v.current,animStartWeights:y.current,animTargetWeights:w.current}}({map:Se,showTopology:W,validatedPolylines:xe,weakPolylines:ke,maxCertainCount:je,loopEdgeKeys:Be,backboneEdgeKeys:De,highlightedEdgeKey:f,neighbors:t,validatedSourceId:zr,weakSourceId:Gr,neighborPolylines:Ce,showNeighborLines:$,neighborSourceId:Ur,neighborLinkScores:ve,basemapMode:XA}),Re=A.useMemo(()=>{const A=new Set;for(const e of b.hubNodes){A.add(e);for(const t of b.validatedEdges)t.fromHash===e&&A.add(t.toHash),t.toHash===e&&A.add(t.fromHash)}return A},[b.hubNodes,b.validatedEdges]),_e=A.useMemo(()=>{const A=new Set;if(!o)return A;for(const e of b.validatedEdges)e.fromHash===o&&A.add(e.toHash),e.toHash===o&&A.add(e.fromHash);return A},[o,b.validatedEdges]),{getNodeOpacity:Ge}=function({soloDirect:e,soloHubs:t,neighborHashes:r,hubConnectedNodes:n,directNodeSet:o,localConnectedNodes:i,showTopology:a}){const[s,l]=A.useState(new Map),c=A.useRef(e),u=A.useRef(t),d=A.useRef(new Map),f=A.useRef(null),g=A.useRef(n),h=A.useRef(o),m=A.useRef(i),b=A.useRef(a);return A.useEffect(()=>{g.current=n,h.current=o,m.current=i,b.current=a},[n,o,i,a]),A.useEffect(()=>{const A=c.current,n=u.current,o=e,i=t;if(c.current=e,u.current=t,A===o&&n===i)return;f.current&&(cancelAnimationFrame(f.current),f.current=null);const a=g.current,s=h.current,p=m.current,v=b.current;for(const e of r)d.current.has(e)||d.current.set(e,Math.random());const y=(A,e,t)=>{const r=a.has(A),n=s.has(A),o=v&&p.has(A);return!e&&!t||(e&&t?r||n||o:t?r:!e||n||o)},w=[];for(const e of r){const t=y(e,A,n),r=y(e,o,i);t!==r&&w.push({hash:e,startOpacity:t?1:0,targetOpacity:r?1:0})}if(0===w.length)return;l(A=>{const e=new Map(A);for(const{hash:t,startOpacity:r}of w)e.set(t,r);return e});const x=w;let k=null;const C=A=>{k||(k=A);const e=A-k;let t=!0;l(()=>{const A=new Map;for(const{hash:r,startOpacity:n,targetOpacity:o}of x){const i=250*(d.current.get(r)??0),a=Math.max(0,e-i),s=Math.min(a/500,1),l=n+(o-n)*er(s);A.set(r,l),s<1&&(t=!1)}return A}),e<750&&!t?f.current=requestAnimationFrame(C):(f.current=null,l(new Map))};return f.current=requestAnimationFrame(C),()=>{f.current&&(cancelAnimationFrame(f.current),f.current=null)}},[e,t,r]),{nodeOpacities:s,getNodeOpacity:(A,e)=>s.has(A)?s.get(A):e?1:0}}({soloDirect:"direct"===uA,soloHubs:"hubs"===uA,neighborHashes:ge.map(([A])=>A),hubConnectedNodes:Re,directNodeSet:pe,localConnectedNodes:_e,showTopology:W}),{blinkingNodes:Ue,blinkColor:Oe}=function({neighbors:e,localHash:t,enabled:r=!0}){const[n,o]=A.useState(new Map),i=R(),a=A.useRef(_.getPackets());A.useEffect(()=>{a.current=_.getPackets()},[i]);const s=A.useRef(0),l=A.useRef(null),c=A.useRef(new Map),u=A.useRef(new Map);A.useEffect(()=>{u.current=function(A){const e=new Map;for(const t of Object.keys(A)){const A=z(t);e.has(A)||e.set(A,t)}return e}(e)},[e]);const d=A.useRef(null);return A.useEffect(()=>{d.current=()=>{const A=performance.now(),e=c.current;if(0===e.size)return l.current=null,void o(new Map);const t=new Map,r=[];for(const[n,{startTime:o,staggerDelay:i}]of e){const e=A-o-i;if(e<0);else if(e>=750)r.push(n);else{const A=tr(e,750);A>0&&t.set(n,A)}}for(const n of r)e.delete(n);o(t),e.size>0&&d.current?l.current=requestAnimationFrame(d.current):l.current=null}},[]),A.useEffect(()=>{if(!r)return;const A=a.current;if(0===A.length)return;const e=s.current,n=A.filter(A=>(A.timestamp??0)>e);if(0===e){const e=A.reduce((A,e)=>Math.max(A,e.timestamp??0),0);return void(s.current=e)}if(0===n.length)return;const o=n.reduce((A,e)=>Math.max(A,e.timestamp??0),0);s.current=o;const i=performance.now();let f=0;for(const r of n){const A=H(r,t);if(!A||0===A.original.length)continue;const e=rr(A.original,u.current,t);if(0===e.length)continue;const n=375;for(let t=0;t()=>{null!==l.current&&(cancelAnimationFrame(l.current),l.current=null)},[]),{blinkingNodes:n,blinkColor:"#00FF00"}}({neighbors:t,localHash:o,enabled:JA}),Ye=A.useCallback(A=>{if("all"===uA)return!0;if("direct"===uA)return pe.has(A);if("hubs"===uA){if(b.hubNodes.includes(A))return!0;for(const e of b.validatedEdges){if(e.fromHash===A&&b.hubNodes.includes(e.toHash))return!0;if(e.toHash===A&&b.hubNodes.includes(e.fromHash))return!0}return!1}return!0},[uA,pe,b.hubNodes,b.validatedEdges]),Ve=A.useCallback(()=>{PA(!0),SA(!0)},[]),We=A.useCallback(()=>{TA?fA(A=>!A):Ve()},[TA,Ve]),Ke=A.useCallback(A=>{I(A.viewState),(A.viewState.pitch??0)>10&&!lA&&mA(!0)},[lA]),qe=A.useCallback(()=>{V(A=>{var e,t,r,n,o,i,a;const s=!A,l=null==(r=null==(t=null==(e=h.current)?void 0:e.getContainer())?void 0:t.closest(".map-container-fullscreen, .map-container-16-9"))?void 0:r.parentElement;return s?l&&document.fullscreenEnabled?null==(n=l.requestFullscreen)||n.call(l).catch(()=>{}):l&&document.webkitFullscreenEnabled&&(null==(o=l.webkitRequestFullscreen)||o.call(l)):document.fullscreenElement?null==(i=document.exitFullscreen)||i.call(document).catch(()=>{}):document.webkitFullscreenElement&&(null==(a=document.webkitExitFullscreen)||a.call(document)),s})},[]),Xe=A.useCallback(A=>{bA(A)},[]),$e=A.useCallback(()=>{gA(A=>!A)},[]),At=A.useCallback(()=>{rA(A=>!A)},[]),et=A.useCallback(()=>{mA(A=>{const e=!A;if(h.current){const A=h.current.getMap();A&&A.stop()}if(e&&h.current){const A=h.current.getMap();A&&A.easeTo({pitch:45,duration:1500,easing:A=>1-Math.pow(1-A,3)})}if(!e&&h.current){const A=h.current.getMap();A&&A.easeTo({pitch:0,bearing:0,duration:800,easing:A=>1-Math.pow(1-A,2)})}return e})},[]),tt=A.useCallback(()=>{W||fA(!0)},[W]),rt=A.useCallback((A,e)=>{EA(A),QA(e)},[]),nt=A.useCallback(()=>{DA&&i&&i(DA),EA(null),QA("")},[DA,i]),ot=A.useMemo(()=>[...qr,...Hr],[]),it=A.useRef(!1);A.useEffect(()=>{it.current="ontouchstart"in window||navigator.maxTouchPoints>0},[]);const at=A.useCallback(A=>{A.features&&0!==A.features.length||(it.current&&te&&(re(null),wA(null)),xA&&kA(null))},[te,xA]),st=A.useCallback(A=>{kA(e=>e===A?null:A)},[]),lt=A.useCallback(A=>{var e,t;if(!A.features||0===A.features.length)return;if(A.features.some(A=>{var e,t;return null==(t=null==(e=A.layer)?void 0:e.id)?void 0:t.startsWith("node-markers-")}))return void(yA&&(wA(null),re(null)));const r=A.features.find(A=>{var e;const t=null==(e=A.layer)?void 0:e.id;return(null==t?void 0:t.startsWith("topology-"))||(null==t?void 0:t.startsWith("neighbor-"))});if(!r)return;const n=null==(e=r.layer)?void 0:e.id,o=r.properties;if(!(null==o?void 0:o.key))return;const i=null==n?void 0:n.startsWith("topology-"),a=null==n?void 0:n.startsWith("neighbor-");if(i||a){const e=o.key.replace(/-loop[12]$/,"");wA(e),A.lngLat&&re({longitude:A.lngLat.lng,latitude:A.lngLat.lat,type:i?"topology":"neighbor",properties:o})}try{(null==(t=h.current)?void 0:t.getCanvas())&&(h.current.getCanvas().style.cursor="pointer")}catch{}},[yA]),ct=A.useCallback(()=>{var A;wA(null),re(null);try{(null==(A=h.current)?void 0:A.getCanvas())&&(h.current.getCanvas().style.cursor="")}catch{}},[]),ut=O?"map-container-fullscreen":"map-container-16-9",dt=F.length>0||(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude),ft=!w||!dt,gt=dt;return e.jsxs("div",{className:`relative ${ut}`,role:"application","aria-label":"Mesh network contacts map","aria-describedby":"map-instructions","data-basemap":XA,children:[e.jsx("span",{id:"map-instructions",className:"sr-only",children:"Interactive map showing mesh network contacts. Use mouse or touch to pan and zoom. Press Tab to navigate map controls. Press Escape to exit fullscreen mode."}),ft&&e.jsx("div",{className:"absolute inset-0 z-50 surface-base rounded-2xl flex items-center justify-center","aria-hidden":"true",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 border-2 border-accent-primary border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Loading map..."})]})}),gt&&e.jsx("div",{className:`relative w-full h-full ${O?"":"rounded-[1.125rem] overflow-hidden"} ${ft?"opacity-0":"opacity-100 transition-opacity duration-300"}`,children:e.jsxs(c,{ref:h,...T,onMove:Ke,mapStyle:tn,style:{width:"100%",height:"100%"},attributionControl:!1,interactiveLayerIds:ot,onMouseMove:lt,onMouseLeave:ct,onClick:at,onError:A=>{},onIdle:()=>{if(!N&&!Q&&h.current){const A=h.current.getMap();if(A){const e=Object.values(t).filter(A=>A.latitude&&A.longitude).map(A=>({latitude:A.latitude,longitude:A.longitude}));(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)&&e.push({latitude:r.latitude,longitude:r.longitude}),e.length>0&&j(e,A)}}},children:[e.jsx(u,{position:"bottom-right"}),e.jsx(d,{mode:XA}),e.jsx(Et,{enabled:lA,exaggeration:4}),e.jsx(xt,{coveragePoints:UA,visible:UA.length>0&&VA,terrainEnabled:lA,brightness:WA,basemapMode:XA}),e.jsx(Vt,{partition:Qe,nodeCoordinates:he,visible:oA&&TA,opacity:aA.opacity,bandwidth:aA.bandwidth,threshold:aA.threshold,strokeWidth:aA.strokeWidth}),e.jsx(Jr,{showTopology:W,isExiting:Te,hoveredEdgeKey:yA,highlightedLoopEdges:null==ne?void 0:ne.highlightedEdgeKeys,highlightedFocusEdges:Ee,onEdgeHover:ie,onLoopHover:le,loops:b.loops,neighborNames:fe,opacityBias:CA,widthMultiplier:BA,trafficFilter:MA,showNeighborLines:$,disableHover:Le||FA}),a&&e.jsx(Xr,{targetHash:a,nodeCoordinates:he,onComplete:s}),f&&e.jsx($r,{highlightedEdgeKey:f,validatedPolylines:xe,weakPolylines:ke,onEnsureTopology:tt}),e.jsx(en,{ghost:g??null,neighborCoordinates:he,onHighlightedNeighborsChange:GA}),e.jsx(_r,{neighborsWithLocation:ge,localNode:r,localHash:o,zeroHopNeighbors:pe,lastHopNeighborMap:be,meshTopology:b,hoveredMarker:pA,onMarkerHover:vA,getNodeOpacity:Ge,shouldShowNode:Ye,onRequestRemove:i?rt:void 0,openPopupId:RA,onOpenPopup:HA,onClosePopup:zA,onNodeClick:st,blinkingNodes:Ue,blinkColor:Oe})]})}),(()=>{const A=function(A,e,t){if(e){const A=e.loops[0],t=e.loops.length,r=[{label:"hops",value:A.size},{label:"seen",value:A.minCertainCount}],n=[];return A.includesLocal&&n.push({text:"★ Includes your node",color:"text-amber-400"}),t>1&&n.push({text:`+${t-1} overlapping`,color:"text-violet-400/70"}),{type:"loop",title:{icon:"⟳",text:"Redundant Path"+(t>1?"s":""),color:"text-violet-400"},subtitle:{text:`${e.nodeNames.join(" → ")} → ${e.nodeNames[0]}`,color:"text-text-secondary",mono:!0},stats:r,badges:n}}if("neighbor"===(null==A?void 0:A.type)){const e=A.properties,t=[];void 0!==e.rssi&&null!==e.rssi&&t.push({label:"RSSI",value:`${Math.round(e.rssi)} dBm`,unit:e.hasAvgRssi?"avg":void 0}),void 0!==e.snr&&null!==e.snr&&t.push({label:"SNR",value:`${Number(e.snr).toFixed(1)} dB`,unit:e.hasAvgSnr?"avg":void 0});const r=e.listenerScore??0,n=e.loudScore??0,o=r>0||n>0;return o&&(t.push({label:"listener",value:r,color:"text-accent-success"}),t.push({label:"loud",value:n,color:"text-accent-danger"})),void 0===e.packetCount||o||t.push({label:"packets",value:Number(e.packetCount).toLocaleString()}),{type:"neighbor",title:{icon:"●",text:e.prefix?`${e.name} (${e.prefix})`:e.name,color:"text-amber-400"},subtitle:{text:"Direct RF Neighbor",color:"text-amber-400/70"},stats:t,badges:[]}}if("topology"===(null==A?void 0:A.type)){const e=A.properties,r=t>0?Number(e.certainCount)/t:0,n=[{label:"validations",value:e.certainCount},{label:"of max traffic",value:`${Math.round(100*r)}%`},{label:"confidence",value:`${Math.round(100*Number(e.confidence))}%`}];if(void 0!==e.symmetryRatio&&e.symmetryRatio<1){const A="forward"===e.dominantDirection?"→":"reverse"===e.dominantDirection?"←":"↔";n.push({label:"symmetric",value:`${A} ${Math.round(100*e.symmetryRatio)}%`,color:"text-text-muted"})}const o=[];return e.isBackbone&&o.push({text:"Backbone",color:"text-gray-300"}),e.isLoopEdge&&o.push({text:"Redundant",color:"text-violet-400"}),e.isDirectPath&&o.push({text:"Direct Path",color:"text-teal-400"}),{type:"topology",title:{icon:"",text:`${e.fromName} ↔ ${e.toName}`,color:"text-text-primary"},stats:n,badges:o}}return null}(te?{type:te.type,properties:te.properties}:null,ne,je);return A&&e.jsx("div",{className:"map-edge-tooltip",children:e.jsx("div",{className:"map-control-glass map-edge-tooltip-inner",children:e.jsx(nn,{data:A})})})})(),e.jsx(se,{mapRef:h,showNeighborLines:$,onToggleNeighborLines:$e,hasNeighborPolylines:Ce.length>0,nodeFilter:uA,onNodeFilterChange:Xe,hasHubNodes:b.hubNodes.length>0,hasZeroHopNeighbors:pe.size>0,showCoverage:tA,onToggleCoverage:At,showMinCut:oA,onToggleMinCut:Ne,hasMinCutData:TA&&null!==Qe&&Qe.numCommunities>1,show3DTerrain:lA,onToggle3DTerrain:et,basemapMode:XA,onToggleBasemap:$A,isFullscreen:O,onToggleFullscreen:qe}),e.jsxs("div",{className:"map-legend-stack",children:[e.jsx(ue,{isActive:W,hasAnalyzed:TA,isLoading:FA,onClick:We,basemapMode:XA}),e.jsx(de,{isActive:JA,onClick:qA,basemapMode:XA}),e.jsx(me,{isActive:UA.length>0&&VA,onClick:KA,basemapMode:XA}),e.jsx(ae,{showTopology:W,validatedPolylineCount:xe.length,filteredNeighborCount:ge.length,hasLocalNode:!(!(null==r?void 0:r.latitude)||!(null==r?void 0:r.longitude)),meshTopology:b,zeroHopNeighbors:pe,neighborsWithLocation:ge,basemapMode:XA})]}),!O&&e.jsx("div",{className:"glass-card-frame absolute inset-0 pointer-events-none rounded-[1.125rem]",style:{zIndex:9999},"aria-hidden":"true"}),e.jsx(AA,{isOpen:null!==DA,onCancel:()=>EA(null),onConfirm:nt,title:"Remove Node?",message:`Remove "${jA}" from the contacts list? This will hide the node until it sends a new packet.`,confirmLabel:"Remove",cancelLabel:"Cancel",variant:"danger"}),e.jsx(nA,{isOpen:NA,onClose:()=>{SA(!1),PA(!1),Ie(),IA(!0),setTimeout(()=>fA(!0),150)}}),e.jsx(He,{}),e.jsx(Ze,{visible:oA&&TA,onClose:()=>hA(!1),settings:aA,onSettingsChange:sA,partition:Qe,totalNodes:Object.keys(t).length,basemapMode:XA})]})}export{on as default}; +import{r as A,j as e,c as t,l as r}from"./vendor-react-BKIq8k5U.js";import{u as n,b as o,S as i,L as a,P as s,c as l,M as c,d as u,B as d}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{L as f,S as g,M as h,c as m}from"./link-scoring-CpsMpD17.js";import{c as b,$ as p,ck as v,cl as y,cm as w,ak as x,as as k,at as C,T as B,m as M,J as D,A as E,X as j,aU as Q,am as N,H as S,R as F,Y as P,I as T,ad as L,cn as I,q as R,co as _,cp as H,r as z,cq as G,cr as U,aC as O,N as Y,B as V,E as W,aZ as Z,k as K,cs as J,ct as q}from"./index-CrU_Ps9k.js";import{P as X,T as $,C as AA}from"./ConfirmModal-CVFVRQC0.js";import{M as eA,a as tA,b as rA,D as nA}from"./DeepAnalysisModal-DU5K5xVI.js";import{b as oA,M as iA,L as aA}from"./LightSparkline-CE1rnNiF.js";import{H as sA}from"./house-DNrMSmBS.js";import{R as lA}from"./refresh-cw-C1m-5omb.js";import{E as cA,P as uA,R as dA}from"./Contacts-BZbynpbU.js";import{C as fA}from"./compass-88H432HX.js";import{L as gA}from"./loader-circle-D6Apotf0.js";import{G as hA}from"./git-branch-CkXjQHb9.js";import{Z as mA,H as bA,d as pA,N as vA,f as yA}from"./SignalIndicator-DN65UHiA.js";import{l as wA}from"./font-loader-jlbdh9Fw.js";import{a as xA}from"./config-C7QO3CEB.js";import{A as kA}from"./index-n30bZfID.js";import{c as CA,p as BA,d as MA}from"./vendor-core-D1aqi_5O.js";import{C as DA,a as EA}from"./DataBox-sJHphnZd.js";import{U as jA}from"./users-DHRSX58V.js";import{M as QA}from"./map-pin-BUNSWVCM.js";import"./deckgl-DTsmDcfs.js";import"./triangle-alert-DrmOKr32.js";import"./database-lWroaxsL.js";import"./ping-t2L803PH.js";import"./PageLayout-BlXA3E6H.js";import"./activity-DIYCEspu.js";import"./circle-check-DH0TJtTq.js";import"./CollisionExplorerModal-Bgt7baHs.js";import"./network-BfZEswvU.js";import"./target-DsO2pqIH.js";const NA=b("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]),SA=b("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),FA=b("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),PA=b("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),TA=b("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),LA=b("mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]),IA=b("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]),RA=b("swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]),_A=b("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),HA=b("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),zA=b("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);class GA{constructor(){this.componentControls=new Set}subscribe(A){return this.componentControls.add(A),()=>this.componentControls.delete(A)}start(A,e){this.componentControls.forEach(t=>{t.start(A.nativeEvent||A,e)})}cancel(){this.componentControls.forEach(A=>{A.cancel()})}stop(){this.componentControls.forEach(A=>{A.stop()})}}const UA=()=>new GA;function OA(A,e,t,r){const n=(t-A)*Math.PI/180,o=(r-e)*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(A*Math.PI/180)*Math.cos(t*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371e3}function YA(A,e){const t=Math.max(5,Math.min(A,300)),r=Math.log(5),n=Math.log(300);return 1+(Math.log(t)-r)/(n-r)*5}const VA={nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",nodeColor:"#4338CA",localColor:"#FFB224",hubColor:"#8E4EC6",gatewayColor:"#5B5BD6",mobileColor:"#F76B15",roomServerColor:"#D6409F",neighborColor:"#FFB224",edges:{rest:"#4B4B4B",restBright:"#616161",restDim:"#3F3F3F",hoverDirect:"#6FBCBD",hoverLoop:"#8B7BAD",hoverStandard:"#8A8A8A",hoverNeighbor:"#FBBF24",neighborRest:"#6B7280",neighborHover:"#FBBF24",highlight:"#FFD700"},edgeOpacity:.82};function WA(){if("undefined"==typeof window)return VA;const A=v(),e=y();return{nodeFill:A.nodeFill,nodeStroke:A.nodeStroke,nodeColor:VA.nodeColor,localColor:A.localColor,hubColor:A.hubColor,gatewayColor:A.gatewayColor,mobileColor:A.mobileColor,roomServerColor:A.roomColor,neighborColor:A.neighborColor,edges:{rest:e.rest,restBright:e.restBright,restDim:e.restDim,hoverDirect:e.hoverDirect,hoverLoop:e.hoverLoop,hoverStandard:e.hoverStandard,hoverNeighbor:e.hoverNeighbor,neighborRest:VA.edges.neighborRest,neighborHover:VA.edges.neighborHover,highlight:e.highlight},edgeOpacity:VA.edgeOpacity}}const ZA=2e3,KA={type:"spring",stiffness:500,damping:35},JA="#4A4A4A",qA="#737373",XA="rgba(0, 0, 0, 0.12)",$A=A.createContext("dark"),Ae=()=>A.useContext($A);function ee({color:A,ring:t}){return e.jsx("span",{className:"shrink-0 rounded-full",style:{width:14,height:14,backgroundColor:t?"transparent":A,border:t?`4px solid ${A}`:void 0,boxSizing:"border-box"}})}function te({color:A}){return e.jsx("span",{className:"shrink-0 rounded-sm",style:{width:16,height:3,backgroundColor:A}})}function re({indicator:A,label:r,tooltip:n}){const o="light"===Ae();return e.jsxs("div",{className:"flex items-center gap-1.5",children:[A,e.jsx("span",{className:t(!o&&"text-text-secondary"),style:o?{color:JA}:void 0,children:r}),n&&e.jsx(B,{content:n,delay:200,children:e.jsx("span",{className:t("cursor-help text-[10px] opacity-60 hover:opacity-100 transition-opacity",!o&&"text-text-muted"),style:o?{color:qA}:void 0,children:"ⓘ"})})]})}function ne({title:A,tooltip:r,isOpen:n,onToggle:o,showDivider:i,children:a}){const s="light"===Ae();return e.jsxs("div",{className:i?"mt-2 pt-2 border-t":"",style:i?{borderColor:s?XA:"var(--map-ui-border)"}:void 0,children:[e.jsxs("button",{type:"button",onClick:o,className:t("group w-full flex items-center justify-between py-1 font-medium transition-colors",!s&&"text-text-secondary hover:text-text-primary"),style:s?{color:JA}:void 0,children:[e.jsxs("span",{className:"flex items-center gap-1",children:[A,e.jsx(B,{content:r,delay:200,children:e.jsx("span",{className:t("cursor-help text-[10px] opacity-60 group-hover:opacity-100 transition-opacity",!s&&"text-text-muted"),style:s?{color:qA}:void 0,children:"ⓘ"})})]}),e.jsx(M.span,{animate:{rotate:n?0:-90},transition:{duration:.15},children:e.jsx(D,{className:"w-3 h-3",style:s?{color:qA}:{color:"var(--text-muted)"}})})]}),e.jsx(E,{initial:!1,children:n&&e.jsx(M.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:KA,className:"overflow-hidden",children:e.jsx("div",{className:"flex flex-col gap-1 pt-1.5",children:a})})})]})}function oe({label:A,value:r,color:n}){const o="light"===Ae();return e.jsxs("div",{className:t("flex justify-between tabular-nums",!o&&"text-text-muted"),style:o?{color:qA}:void 0,children:[e.jsx("span",{children:A}),e.jsx("span",{style:n?{color:n}:o?{color:JA}:{color:"var(--text-secondary)"},children:r})]})}function ie({icon:A,color:r,title:n,subtitle:o}){const i="light"===Ae();return e.jsx("div",{className:"mt-1.5 pt-1.5 border-t",style:{borderColor:i?XA:"var(--map-ui-border)"},children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"shrink-0",style:{color:r},children:A}),e.jsxs("div",{className:"flex flex-col min-w-0",children:[e.jsx("span",{className:"font-medium truncate",style:{color:r},children:n}),e.jsx("span",{className:t("text-[10px] leading-tight",!i&&"text-text-muted"),style:i?{color:qA}:void 0,children:o})]})]})})}function ae({showTopology:t,validatedPolylineCount:r,filteredNeighborCount:n,hasLocalNode:o,meshTopology:i,zeroHopNeighbors:a,neighborsWithLocation:s,basemapMode:l="dark"}){const c=w(),u=x(),d=k(),g=u.filter(A=>A.isLikelyReal).length,h=function(A){let e=0;for(const t of A.txDelayRecommendations.values())"backbone"===t.networkRole&&e++;return e}(i),m=a.size>0,[b,p]=A.useState(!0),[v,y]=A.useState(!0),[B,M]=A.useState(!0);return e.jsx($A.Provider,{value:l,children:e.jsxs("div",{className:"map-control-glass p-2.5 text-xs",children:[e.jsxs(ne,{title:"Nodes",tooltip:"Node type shown by shape + color. Yellow = direct RF neighbor.",isOpen:b,onToggle:()=>p(A=>!A),children:[e.jsx(re,{indicator:e.jsx(ee,{color:c.nodeFill}),label:"Node",tooltip:"Standard mesh node. Repeater, client, or companion device."}),e.jsx(re,{indicator:e.jsx(ee,{color:c.hubColor}),label:"Hub",tooltip:"Network hub (≥10% of last-hop traffic)."}),(D=s,D.some(([,A])=>{var e;const t=null==(e=A.contact_type)?void 0:e.toLowerCase();return"room server"===t||"room_server"===t||"room"===t||"server"===t})&&e.jsx(re,{indicator:e.jsx(oA,{className:"w-3 h-3 shrink-0",style:{color:c.roomColor},strokeWidth:2.5}),label:"Room",tooltip:"Room Server identity for client sync."})),e.jsx(re,{indicator:e.jsx(sA,{className:"w-3 h-3 shrink-0",style:{color:c.localColor},strokeWidth:2.5}),label:"Local",tooltip:"Your repeater running pyMC_Repeater."}),m&&e.jsx(re,{indicator:e.jsx(ee,{color:c.neighborColor}),label:"Neighbor",tooltip:"Zero-hop direct RF contact."}),i.gatewayNodes.length>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.gatewayColor}),label:"Gateway",tooltip:"Significant forwarder (7-10% traffic)."}),h>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.hubColor}),label:"Backbone",tooltip:"Critical relay with high centrality."}),i.mobileNodes.length>0&&e.jsx(re,{indicator:e.jsx(ee,{color:c.mobileColor,ring:!0}),label:"Mobile",tooltip:"Volatile node that appears/disappears."}),g>0&&e.jsx(re,{indicator:e.jsx(C,{className:"w-3 h-3 shrink-0",style:{color:c.ghostColor},strokeWidth:2.5}),label:`Ghost (${g})`,tooltip:"Unknown repeater from Viterbi analysis."})]}),m&&e.jsxs(ne,{title:"Link Quality",tooltip:"Neighbor edge colors based on bidirectional balance.",isOpen:v,onToggle:()=>y(A=>!A),showDivider:!0,children:[e.jsx(re,{indicator:e.jsx(te,{color:f.YELLOW}),label:"2-Way",tooltip:"33-67% balanced. Ideal bidirectional link."}),e.jsx(re,{indicator:e.jsx(te,{color:f.GREEN}),label:"Listener",tooltip:">67% listener. They hear us well."}),e.jsx(re,{indicator:e.jsx(te,{color:f.RED}),label:"Loud",tooltip:"<33% listener. They route more to us."})]}),t&&r>0&&e.jsxs(ne,{title:"Topology",tooltip:"Links with 5+ validations. Thickness = strength.",isOpen:B,onToggle:()=>M(A=>!A),showDivider:!0,children:[e.jsx(oe,{label:"Nodes",value:n+(o?1:0)}),i.hubNodes.length>0&&e.jsx(oe,{label:"Hubs",value:i.hubNodes.length,color:VA.hubColor}),i.loops.length>0&&e.jsx(ie,{icon:e.jsx(lA,{className:"w-3 h-3"}),color:VA.edges.hoverLoop,title:`${i.loops.length} ${1===i.loops.length?"Loop":"Loops"}`,subtitle:"Redundant paths"}),d.totalPaths>0&&e.jsx(ie,{icon:e.jsx(cA,{className:"w-3 h-3"}),color:c.ghostColor,title:`${d.totalPaths.toLocaleString()} Viterbi`,subtitle:"HMM decoded paths"})]})]})});var D}function se({mapRef:A,showNeighborLines:t,onToggleNeighborLines:r,hasNeighborPolylines:n,nodeFilter:o,onNodeFilterChange:i,hasHubNodes:a,hasZeroHopNeighbors:s,showCoverage:l,onToggleCoverage:c,showMinCut:u=!1,onToggleMinCut:d,hasMinCutData:f=!1,show3DTerrain:m,onToggle3DTerrain:b,basemapMode:p,onToggleBasemap:v,isFullscreen:y,onToggleFullscreen:w}){const x="w-4 h-4",k="light"===p?"#737373":void 0;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"absolute top-3 right-3 z-[600] flex flex-col gap-2 sm:top-4 sm:right-4",children:[e.jsxs("div",{className:"map-control-glass flex items-center gap-1 p-1",children:[n&&e.jsx(j,{plain:!0,color:t?"warning":"muted",onClick:r,title:t?"Hide edge lines":"Show edge lines","aria-label":t?"Hide edge lines":"Show edge lines","aria-pressed":t,className:"!p-1.5 !rounded-md",children:e.jsx(Q,{className:x})}),e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(N,{color:"all"===o?"green":"zinc",customColor:"all"!==o?k:void 0,onClick:()=>i("all"),title:"Show all nodes",children:"All"}),a&&e.jsx(N,{color:"hubs"===o?"green":"zinc",customColor:"hubs"!==o?k:void 0,onClick:()=>i("hubs"),title:"Show only hub nodes and their connections",children:"Hubs"}),s&&e.jsx(N,{color:"direct"===o?"green":"zinc",customColor:"direct"!==o?k:void 0,onClick:()=>i("direct"),title:"Show only zero-hop (direct RF) neighbors",children:"Direct"})]}),f&&d&&e.jsx(j,{plain:!0,color:u?"primary":"muted",onClick:d,title:u?"Hide community partition":"Show community partition","aria-label":u?"Hide community partition":"Show community partition","aria-pressed":u,className:"!p-1.5 !rounded-md",children:e.jsx(NA,{className:x})}),e.jsx(j,{plain:!0,color:"light"===p?"primary":"muted",onClick:v,title:"light"===p?"Switch to dark map":"Switch to light map","aria-label":"light"===p?"Switch to dark map":"Switch to light map","aria-pressed":"light"===p,className:"!p-1.5 !rounded-md",children:"light"===p?e.jsx(g,{className:x}):e.jsx(h,{className:x})}),e.jsx(j,{plain:!0,color:m?"success":"muted",onClick:b,title:m?"Disable 3D terrain":"Enable 3D terrain","aria-label":m?"Disable 3D terrain":"Enable 3D terrain","aria-pressed":m,className:"!p-1.5 !rounded-md",children:e.jsx(LA,{className:x})}),e.jsx(j,{plain:!0,color:"muted",onClick:w,title:y?"Exit fullscreen":"Fullscreen","aria-label":y?"Exit fullscreen":"Enter fullscreen","aria-pressed":y,className:"!p-1.5 !rounded-md",children:y?e.jsx(eA,{className:x}):e.jsx(tA,{className:x})})]}),e.jsxs("div",{className:"map-control-glass flex flex-col items-stretch !overflow-hidden self-end !p-0",children:[e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e,t;null==(t=null==(e=A.current)?void 0:e.getMap())||t.zoomIn()},title:"Zoom in","aria-label":"Zoom in",className:"!p-1.5 !rounded-none",children:e.jsx(X,{className:x})}),e.jsx("div",{className:"h-px bg-border-subtle"}),e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e,t;null==(t=null==(e=A.current)?void 0:e.getMap())||t.zoomOut()},title:"Zoom out","aria-label":"Zoom out",className:"!p-1.5 !rounded-none",children:e.jsx(iA,{className:x})}),e.jsx("div",{className:"h-px bg-border-subtle"}),e.jsx(j,{plain:!0,color:"muted",onClick:()=>{var e;const t=null==(e=A.current)?void 0:e.getMap();t&&t.easeTo({bearing:0,pitch:0,duration:300})},title:"Reset bearing to north","aria-label":"Reset bearing to north",className:"!p-1.5 !rounded-none",children:e.jsx(fA,{className:x})})]})]})})}const le="DeepAnalysis";function ce(){return"abcdefghijklmnopqrstuvwxyz0123456789"[Math.floor(36*Math.random())]}function ue({isActive:t,hasAnalyzed:r,isLoading:n,onClick:o,basemapMode:i="dark"}){const a="light"===i,s=a?"#4A4A4A":void 0,l=a?"#16A34A":"#4ADE80",[c,u]=A.useState(!1),[d,f]=A.useState(le),g=A.useRef(!1),h=A.useRef(null),[m]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)}),b=c&&!t&&!n&&m;A.useEffect(()=>{if(c&&!t&&!n&&!g.current){g.current=!0;const A=performance.now(),e=t=>{const r=t-A,n=Math.min(r/700,1),o=Math.floor(12*n);let i="";for(let A=0;A<12;A++)i+=A{h.current&&cancelAnimationFrame(h.current)}},[c,t,n]);const p=n?"Analyzing...":d;return e.jsxs("button",{onClick:o,onMouseEnter:()=>m&&u(!0),onMouseLeave:()=>m&&u(!1),onPointerEnter:()=>m&&u(!0),onPointerLeave:()=>m&&u(!1),disabled:n,className:"flex items-center gap-2 w-full text-left radius-inner transition-base "+(n?"cursor-wait":""),style:{padding:"0.5rem 0.625rem",backgroundColor:t?a?"rgba(220, 252, 231, 1)":"rgba(10, 26, 10, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:n?"Analyzing packet history...":r?t?"Hide topology edges":"Show topology edges":"Load full packet history and build topology",children:[n?e.jsx(gA,{className:"w-3.5 h-3.5 flex-shrink-0 animate-spin",style:{color:l}}):e.jsx(hA,{className:"w-3.5 h-3.5 flex-shrink-0 transition-colors "+(t?"":"text-text-secondary"),style:{...t&&{color:l},...b&&{color:l},...!t&&!b&&s&&{color:s}}}),e.jsx("span",{className:t?"":"text-text-secondary",style:{fontFamily:"ui-monospace, SFMono-Regular, monospace",fontSize:"0.6875rem",fontWeight:t||b?700:500,letterSpacing:"-0.01em",lineHeight:1,...t&&{color:l},...b&&{color:l},...!t&&!b&&s&&{color:s}},children:p})]})}function de({isActive:t,onClick:r,basemapMode:n="dark"}){const o="light"===n,i=o?"#4A4A4A":void 0,a=o?"#0D7377":"#12A594",[s,l]=A.useState(!1),[c,u]=A.useState(0),d=A.useRef(!1),f=A.useRef(null),[g,h]=A.useState(0),m=A.useRef(!1),[b]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)}),p=s&&!t&&b;A.useEffect(()=>{p&&!m.current&&(m.current=!0,h(1),setTimeout(()=>h(2),100),setTimeout(()=>h(3),200)),s||(m.current=!1,h(0))},[p,s]),A.useEffect(()=>{if(s&&!t&&!d.current){d.current=!0;const A=performance.now(),e=t=>{const r=t-A,n=Math.min(r/400,1);u(n),n<1&&(f.current=requestAnimationFrame(e))};f.current=requestAnimationFrame(e)}return s||(f.current&&(cancelAnimationFrame(f.current),f.current=null),d.current=!1,u(0)),()=>{f.current&&cancelAnimationFrame(f.current)}},[s,t]);const v=A=>{if(t)return a;if(!p)return i;const e=11*c;return A>=e-2&&Ab&&l(!0),onMouseLeave:()=>b&&l(!1),onPointerEnter:()=>b&&l(!0),onPointerLeave:()=>b&&l(!1),className:"flex items-center gap-2 w-full text-left radius-inner transition-base",style:{padding:"0.5rem 0.625rem",backgroundColor:t?o?"rgba(204, 251, 241, 1)":"rgba(10, 36, 32, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:t?"Disable live packet tracing (reduces CPU usage)":"Enable live packet tracing",children:[e.jsx(mA,{className:"w-3.5 h-3.5 flex-shrink-0 "+(t?"":"text-text-secondary"),fill:1===g?"#FFFFFF":3===g?a:"none",stroke:1===g||2===g?"#FFFFFF":t||p?a:i||"currentColor",style:{transition:"fill 0.05s, stroke 0.05s"}}),e.jsx("span",{className:t?"":"text-text-secondary",style:{fontFamily:"ui-monospace, SFMono-Regular, monospace",fontSize:"0.6875rem",fontWeight:t||p?700:500,letterSpacing:"-0.01em",lineHeight:1},children:"LiveTrace".split("").map((A,t)=>e.jsx("span",{style:{color:v(t)||void 0},children:A},t))})]})}const fe="rgba(0, 0, 0, 0.06)",ge="rgba(0, 0, 0, 0.25)",he="#fe8019";function me({isActive:t,onClick:r,brightness:n=.7,onBrightnessChange:o,basemapMode:i="dark"}){const a="light"===i,s=a?"#4A4A4A":void 0,[l,c]=A.useState(!1),[u,d]=A.useState(!1),[f]=A.useState(()=>{var A;return"undefined"!=typeof window&&((null==(A=window.matchMedia)?void 0:A.call(window,"(hover: hover)").matches)??!1)});A.useEffect(()=>{wA()},[]),A.useEffect(()=>{if(!l||t)return;const A=requestAnimationFrame(()=>d(!0)),e=setTimeout(()=>d(!1),80);return()=>{cancelAnimationFrame(A),clearTimeout(e)}},[l,t]);const m=Math.max(.01,Math.min(1,n)),b=m<.999,p=m>.011,v=l&&!t&&f;return e.jsxs("button",{onClick:r,onMouseEnter:()=>f&&c(!0),onMouseLeave:()=>f&&c(!1),onPointerEnter:()=>f&&c(!0),onPointerLeave:()=>f&&c(!1),className:"flex items-center gap-2 w-full text-left radius-inner transition-base",style:{padding:"0.5rem 0.625rem",backgroundColor:t?a?"rgba(254, 243, 199, 1)":"rgba(26, 20, 8, 1)":"var(--map-ui-bg, var(--bg-surface))"},title:t?"Configure wardriving coverage":"Show wardriving coverage",children:[e.jsx(RA,{className:"w-3.5 h-3.5 flex-shrink-0 transition-colors "+(t?"text-amber-400":"text-text-secondary"),style:v?{color:he}:!t&&s?{color:s}:void 0}),e.jsx("span",{className:t?"text-amber-400":"text-text-secondary",style:{fontFamily:t||v?"'Jacquard 12', serif":"ui-monospace, SFMono-Regular, monospace",fontSize:t||v?"0.75rem":"0.6875rem",fontWeight:500,letterSpacing:"-0.01em",lineHeight:1,transition:"none",transform:t?"scale(1.45)":v?`scale(${u?1.595:1.45})`:void 0,transformOrigin:"left center",...v?{color:he}:!t&&s?{color:s}:{}},children:"Wardrive"}),t&&o&&e.jsxs("div",{className:"ml-auto flex items-center gap-0.5",children:[e.jsx("button",{onClick:A=>{A.stopPropagation();const e=Math.max(.01,m-.2);null==o||o(e)},disabled:!p,className:"p-0.5 rounded transition-colors "+(p?"text-amber-400":"cursor-not-allowed"),style:{...p&&{"--hover-bg":a?fe:"var(--bg-elevated)"},...!p&&{color:a?ge:"rgba(251, 191, 36, 0.3)"}},onMouseEnter:A=>p&&(A.currentTarget.style.backgroundColor=a?fe:"var(--bg-elevated)"),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",title:`Decrease opacity (${Math.round(100*m)}%)`,children:e.jsx(h,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:A=>{A.stopPropagation();const e=Math.min(1,m+.2);null==o||o(e)},disabled:!b,className:"p-0.5 rounded transition-colors "+(b?"text-amber-400":"cursor-not-allowed"),style:{...b&&{"--hover-bg":a?fe:"var(--bg-elevated)"},...!b&&{color:a?ge:"rgba(251, 191, 36, 0.3)"}},onMouseEnter:A=>b&&(A.currentTarget.style.backgroundColor=a?fe:"var(--bg-elevated)"),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",title:`Increase opacity (${Math.round(100*m)}%)`,children:e.jsx(g,{className:"w-3.5 h-3.5"})})]})]})}function be(A){let e=!0,t=-90,r=90,n=-180,o=180;for(const i of A.toLowerCase()){const A="0123456789bcdefghjkmnpqrstuvwxyz".indexOf(i);if(-1!==A)for(let i=4;i>=0;i--){const a=A>>i&1;if(e){const A=(n+o)/2;a?n=A:o=A}else{const A=(t+r)/2;a?t=A:r=A}e=!e}}return{lat:(t+r)/2,lon:(n+o)/2}}function pe(A){return Math.exp(-A*Math.LN2/7)}const ve="pymc-wardriving-url",ye="pymc-wardriving-enabled",we="pymc-wardriving-brightness";function xe(A){"undefined"!=typeof localStorage&&(A?localStorage.setItem(ve,A):localStorage.removeItem(ve))}function ke(A){"undefined"!=typeof localStorage&&localStorage.setItem(ye,String(A))}function Ce(){if("undefined"==typeof localStorage)return.7;const A=localStorage.getItem(we);if(A){const e=parseFloat(A);if(!isNaN(e)&&e>=.01&&e<=1)return e}return.7}function Be(A,e=null){if(null!==A){const t=(Math.max(-12,Math.min(12,A))+12)/24;return null!==e?.8*t+(Math.max(-120,Math.min(-50,e))+120)/70*.2:t}return null!==e?(Math.max(-120,Math.min(-50,e))+120)/70:.5}const Me=CA((A,e)=>({status:"idle",isVisible:"undefined"!=typeof localStorage&&"true"===localStorage.getItem(ye),coveragePoints:[],repeaters:[],error:null,stats:{coverageCount:0,repeaterCount:0,lastUpdated:null},url:"undefined"==typeof localStorage?"":localStorage.getItem(ve)||"",brightness:Ce(),isModalOpen:!1,openModal:()=>A({isModalOpen:!0}),closeModal:()=>A({isModalOpen:!1}),setUrl:e=>A({url:e}),setBrightness:e=>{const t=Math.max(.01,Math.min(1,e));!function(A){if("undefined"==typeof localStorage)return;const e=Math.max(.01,Math.min(1,A));localStorage.setItem(we,String(e))}(t),A({brightness:t})},toggleVisibility:()=>{const t=!e().isVisible;ke(t),A({isVisible:t})},setVisible:e=>{ke(e),A({isVisible:e})},loadCoverage:async e=>{if(!e.trim())return A({error:"Please enter a URL",status:"error"}),!1;try{new URL(e.trim())}catch{return A({error:"Invalid URL format",status:"error"}),!1}A({error:null,status:"connecting"});try{A({status:"loading"});const t=await async function(A){const e=`${A.replace(/\/+$/,"").replace(/\/get-nodes$/,"").replace(/\/get-samples$/,"")}/get-samples`,t=await async function(A,e={},t=8e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{return await fetch(A,{...e,signal:r.signal})}catch(o){if(o instanceof Error&&"AbortError"===o.name)throw new Error(`Connection timed out after ${t/1e3}s`);throw o}finally{clearTimeout(n)}}(e,{headers:{Accept:"application/json"}});if(!t.ok)throw new Error(`Failed to fetch precise samples: ${t.status}`);return t.json()}(e.trim());if(!t||"object"!=typeof t)throw new Error("Invalid response from server");if(!Array.isArray(t.keys))throw new Error("No sample data found in response");A({status:"processing"});const r=function(A){var e;const t=[];for(const r of A.keys){if(!r.observed)continue;const{lat:A,lon:n}=be(r.hash),o=parseInt(r.time,10),i=isNaN(o)?30:(Date.now()-o)/864e5,a=pe(i),s=Be(r.snr,r.rssi)*(.3+.7*a);t.push({lat:A,lon:n,successRate:r.observed?1:0,weight:s,totalSamples:1,ageDays:i,geohash:r.hash,repeaters:(null==(e=r.path)?void 0:e.map(A=>A.toLowerCase()))||[]})}return t}(t);if(0===r.length)throw new Error("No valid coverage points found");return A({coveragePoints:r,repeaters:[],stats:{coverageCount:r.length,repeaterCount:0,lastUpdated:new Date},status:"success",isVisible:!0,url:e.trim()}),xe(e.trim()),ke(!0),!0}catch(t){const e=t instanceof Error?t.message:"Failed to load coverage data";let r=e;return e.includes("timed out")?r="Connection timed out. Server may be unreachable or slow.":e.includes("Failed to fetch")||e.includes("NetworkError")?r="Could not connect to server. Check the URL and try again.":e.includes("CORS")?r="Server does not allow cross-origin requests.":e.includes("404")?r="Coverage endpoint not found. Check the URL.":(e.includes("ERR_NAME_NOT_RESOLVED")||e.includes("DNS"))&&(r="Server not found. Check the URL for typos."),A({error:r,status:"error"}),!1}},clearCoverage:()=>{A({coveragePoints:[],repeaters:[],stats:{coverageCount:0,repeaterCount:0,lastUpdated:null},status:"idle",error:null,isVisible:!1,url:""}),xe(""),ke(!1)}})),De={bg:"#F8F8F8",bgSubtle:"#F0F0F0",bgElevated:"#FFFFFF",bgInput:"#FFFFFF",border:"rgba(0, 0, 0, 0.12)",borderStrong:"rgba(0, 0, 0, 0.20)",borderFocus:"#3B82F6",text:"#1A1A1A",textSecondary:"#4A4A4A",textMuted:"#737373",success:"#059669",successBg:"#ECFDF5",successBorder:"#A7F3D0",error:"#DC2626",errorBg:"#FEF2F2",errorBorder:"#FECACA",info:"#2563EB",infoBg:"#EFF6FF",infoBorder:"#BFDBFE",warning:"#D97706",warningBg:"#FFFBEB",warningBorder:"#FDE68A",primary:"#F59E0B",hoverBg:"rgba(0, 0, 0, 0.04)",sliderTrack:"#E5E7EB",sliderThumb:"#F59E0B"},Ee={bg:"var(--bg-surface)",bgSubtle:"var(--bg-subtle)",bgElevated:"var(--bg-elevated)",bgInput:"var(--bg-subtle)",border:"var(--border-subtle)",borderStrong:"var(--border-strong)",borderFocus:"var(--accent-primary)",text:"var(--text-primary)",textSecondary:"var(--text-secondary)",textMuted:"var(--text-muted)",success:"var(--accent-success)",successBg:"rgba(74, 222, 128, 0.1)",successBorder:"rgba(74, 222, 128, 0.3)",error:"var(--accent-danger)",errorBg:"rgba(239, 68, 68, 0.1)",errorBorder:"rgba(239, 68, 68, 0.3)",info:"var(--accent-secondary)",infoBg:"rgba(249, 210, 111, 0.1)",infoBorder:"rgba(249, 210, 111, 0.3)",warning:"var(--accent-secondary)",warningBg:"rgba(249, 210, 111, 0.1)",warningBorder:"rgba(249, 210, 111, 0.3)",primary:"var(--accent-secondary)",hoverBg:"var(--hover-tint)",sliderTrack:"var(--bg-elevated)",sliderThumb:"var(--accent-secondary)"},je=A.createContext({theme:Ee,isLight:!1});function Qe(){return A.useContext(je)}const Ne={type:"spring",visualDuration:.6,bounce:.25,opacity:{duration:.2,ease:"linear"}};function Se({value:t,format:r,className:n,style:o}){const[i,a]=A.useState("waiting");if(A.useEffect(()=>{const A=setTimeout(()=>a("mounted"),400);return()=>clearTimeout(A)},[]),A.useEffect(()=>{if("mounted"===i){const A=requestAnimationFrame(()=>a("animating"));return()=>cancelAnimationFrame(A)}},[i]),"waiting"===i){const A=(0).toLocaleString(void 0,r);return e.jsx("span",{className:n,style:o,children:A})}return e.jsx(kA,{className:n,style:o,format:r,transition:Ne,children:"animating"===i?t:0})}function Fe({status:t,hasData:r}){const{theme:n,isLight:o}=Qe(),i=A.useMemo(()=>"connecting"===t||"loading"===t||"processing"===t?{icon:e.jsx(gA,{className:"w-3.5 h-3.5 animate-spin"}),label:"connecting"===t?"Connecting...":"loading"===t?"Loading...":"Processing...",color:n.warning,bg:n.warningBg}:"error"===t?{icon:e.jsx(_A,{className:"w-3.5 h-3.5"}),label:"Disconnected",color:n.error,bg:n.errorBg}:r?{icon:e.jsx(HA,{className:"w-3.5 h-3.5"}),label:"Connected",color:n.success,bg:n.successBg}:{icon:e.jsx(F,{className:"w-3.5 h-3.5"}),label:"Ready",color:n.textMuted,bg:o?"rgba(0,0,0,0.04)":"rgba(255,255,255,0.04)"},[t,r,n,o]);return e.jsxs(M.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"flex items-center gap-1.5 px-2 py-1 rounded-full text-xs font-medium",style:{backgroundColor:i.bg,color:i.color},children:[i.icon,e.jsx("span",{children:i.label})]},i.label)}function Pe({status:t}){const{theme:r}=Qe(),n=A.useMemo(()=>{switch(t){case"connecting":return 25;case"loading":return 60;case"processing":return 90;default:return 0}},[t]);return 0===n?null:e.jsx(M.div,{initial:{opacity:0,scaleY:0},animate:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:0},className:"h-1 rounded-full overflow-hidden origin-top",style:{backgroundColor:r.sliderTrack},children:e.jsx(M.div,{className:"h-full rounded-full",style:{backgroundColor:r.primary},initial:{width:0},animate:{width:`${n}%`},transition:{duration:.4,ease:"easeOut"}})})}function Te({variant:t,title:r,description:n,onDismiss:o}){const{theme:i}=Qe(),a=A.useMemo(()=>{switch(t){case"success":return{icon:e.jsx(DA,{className:"w-4 h-4"}),color:i.success,bg:i.successBg,border:i.successBorder};case"error":return{icon:e.jsx(SA,{className:"w-4 h-4"}),color:i.error,bg:i.errorBg,border:i.errorBorder};case"info":return{icon:e.jsx(TA,{className:"w-4 h-4"}),color:i.info,bg:i.infoBg,border:i.infoBorder}}},[t,i]);return e.jsxs(M.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:xA.snappy,className:"flex items-start gap-3 p-3 rounded-lg border",style:{backgroundColor:a.bg,borderColor:a.border,color:a.color},children:[e.jsx("div",{className:"flex-shrink-0 mt-0.5",children:a.icon}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium",children:r}),n&&e.jsx("p",{className:"text-xs mt-0.5 opacity-80",children:n})]}),o&&e.jsx("button",{onClick:o,className:"flex-shrink-0 p-1 rounded hover:bg-black/10 transition-colors","aria-label":"Dismiss",children:e.jsx(P,{className:"w-3.5 h-3.5"})})]})}function Le({value:r,onChange:n,onSubmit:o,disabled:i}){const{theme:a,isLight:s}=Qe(),[l,c]=A.useState(!1);return e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"block text-sm font-medium",style:{color:a.textSecondary},children:"Coverage Server URL"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"url",value:r,onChange:A=>n(A.target.value),onKeyDown:A=>{"Enter"!==A.key||A.shiftKey||i||(A.preventDefault(),o())},onFocus:()=>c(!0),onBlur:()=>c(!1),placeholder:"https://coverage.wcmesh.com",disabled:i,className:t("w-full pl-3 pr-10 py-2.5 rounded-lg border text-sm transition-all duration-150","focus:outline-none",i&&"opacity-50 cursor-not-allowed"),style:{backgroundColor:a.bgInput,borderColor:l?a.borderFocus:a.border,color:a.text,boxShadow:l?"0 0 0 3px "+(s?"rgba(59, 130, 246, 0.15)":"rgba(139, 92, 246, 0.15)"):"none"}}),r&&!i&&e.jsx("button",{onClick:()=>n(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-1 rounded transition-colors",style:{color:a.textMuted},onMouseEnter:A=>A.currentTarget.style.color=a.text,onMouseLeave:A=>A.currentTarget.style.color=a.textMuted,"aria-label":"Clear URL",children:e.jsx(P,{className:"w-4 h-4"})})]}),e.jsx("p",{className:"text-xs",style:{color:a.textMuted},children:"Press Enter to connect, or use the Connect button below"})]})}function Ie({value:A,onChange:r}){const{theme:n,isLight:o}=Qe(),i=Math.round(100*A);return e.jsx(M.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:xA.gentle,className:"overflow-hidden",children:e.jsx("div",{className:"p-3 rounded-lg border",style:{backgroundColor:n.bgSubtle,borderColor:n.border},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative w-4 h-4",children:[e.jsx(h,{className:"w-4 h-4 absolute inset-0 transition-opacity",style:{color:n.textMuted,opacity:A<.5?1:0}}),e.jsx(g,{className:"w-4 h-4 absolute inset-0 transition-opacity",style:{color:n.primary,opacity:A>=.5?1:0}})]}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("span",{className:"text-xs font-medium",style:{color:n.textSecondary},children:"Layer Opacity"}),e.jsxs("span",{className:"text-xs font-mono tabular-nums px-1.5 py-0.5 rounded",style:{color:n.text,backgroundColor:o?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.06)"},children:[i,"%"]})]}),e.jsx("input",{type:"range",min:5,max:100,value:i,onChange:A=>r(Number(A.target.value)/100),className:t("w-full h-2 rounded-full appearance-none cursor-pointer","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-4","[&::-webkit-slider-thumb]:h-4","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:cursor-pointer","[&::-webkit-slider-thumb]:transition-transform","[&::-webkit-slider-thumb]:hover:scale-110","[&::-webkit-slider-thumb]:shadow-lg","[&::-moz-range-thumb]:appearance-none","[&::-moz-range-thumb]:w-4","[&::-moz-range-thumb]:h-4","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:border-0","[&::-moz-range-thumb]:cursor-pointer"),style:{background:`linear-gradient(to right, ${n.primary} ${i}%, ${n.sliderTrack} ${i}%)`,"--thumb-color":n.sliderThumb}}),e.jsx("style",{children:`\n input[type="range"]::-webkit-slider-thumb {\n background-color: ${n.sliderThumb};\n }\n input[type="range"]::-moz-range-thumb {\n background-color: ${n.sliderThumb};\n }\n `})]})]})})})}function Re({coverageCount:A,repeaterCount:t,lastUpdated:r}){const{theme:n}=Qe();return e.jsxs("div",{className:"grid grid-cols-3 gap-2 p-3 rounded-lg border",style:{backgroundColor:n.bgSubtle,borderColor:n.border},children:[e.jsxs("div",{className:"text-center",children:[e.jsx(Se,{value:A,format:{useGrouping:!0,maximumFractionDigits:0},className:"text-lg font-semibold tabular-nums block",style:{color:n.text}}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Points"})]}),e.jsxs("div",{className:"text-center border-x",style:{borderColor:n.border},children:[e.jsx(Se,{value:t,format:{useGrouping:!0,maximumFractionDigits:0},className:"text-lg font-semibold tabular-nums block",style:{color:n.text}}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Repeaters"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx(L,{className:"w-3.5 h-3.5",style:{color:n.textMuted}}),e.jsx("span",{className:"text-lg font-semibold tabular-nums",style:{color:n.text},children:r?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"—"})]}),e.jsx("div",{className:"text-xs mt-0.5",style:{color:n.textMuted},children:"Updated"})]})]})}function _e({icon:r,label:n,onClick:o,disabled:i,variant:a="default",active:s}){const{theme:l,isLight:c}=Qe(),u=A.useMemo(()=>"danger"===a?{text:l.error,hoverBg:c?"rgba(220, 38, 38, 0.08)":"rgba(239, 68, 68, 0.15)"}:{text:s?l.primary:l.textSecondary,hoverBg:l.hoverBg},[a,s,l,c]);return e.jsxs("button",{onClick:o,disabled:i,className:t("flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm font-medium transition-colors",i&&"opacity-50 cursor-not-allowed"),style:{color:u.text},onMouseEnter:A=>!i&&(A.currentTarget.style.backgroundColor=u.hoverBg),onMouseLeave:A=>A.currentTarget.style.backgroundColor="transparent",children:[r,e.jsx("span",{children:n})]})}function He(){const t=n(),r="light"===t,o=r?De:Ee,{isModalOpen:i,closeModal:a,status:s,isVisible:l,stats:c,error:u,url:d,brightness:f,loadCoverage:g,clearCoverage:h,toggleVisibility:m,setUrl:b,setBrightness:p}=Me(),v="connecting"===s||"loading"===s||"processing"===s,y=c.coverageCount>0,[w,x]=A.useState(!0),[k,C]=A.useState(d);A.useEffect(()=>{C(d)},[d]),A.useEffect(()=>{"error"===s&&x(!0)},[s]);const B=A.useCallback(async()=>{await g(k)},[k,g]),D=A.useCallback(()=>{C(""),h()},[h]),Q=A.useCallback(A=>{C(A),b(A)},[b]),N=A.useCallback(()=>{v||a()},[v,a]),L=k.trim().length>0&&!v;return e.jsx(je.Provider,{value:{theme:o,isLight:r},children:e.jsxs(S,{open:i,onClose:N,size:"md",bottomSheet:!0,basemapMode:t,children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b",style:{borderColor:o.border},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:o.bgSubtle,color:o.primary},children:e.jsx(F,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold",style:{color:o.text},children:"Wardriving Coverage"}),e.jsx("p",{className:"text-xs",style:{color:o.textMuted},children:"RF coverage heatmap overlay"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Fe,{status:s,hasData:y}),!v&&e.jsx("button",{onClick:N,className:"p-2 rounded-lg transition-colors",style:{color:o.textMuted},onMouseEnter:A=>{A.currentTarget.style.color=o.text,A.currentTarget.style.backgroundColor=o.hoverBg},onMouseLeave:A=>{A.currentTarget.style.color=o.textMuted,A.currentTarget.style.backgroundColor="transparent"},"aria-label":"Close",children:e.jsx(P,{className:"w-5 h-5"})})]})]}),e.jsx(E,{children:v&&e.jsx(Pe,{status:s})}),e.jsxs(T,{className:"space-y-4",children:[e.jsx(Le,{value:k,onChange:Q,onSubmit:B,disabled:v}),e.jsx(E,{children:"error"===s&&u&&w&&e.jsx(Te,{variant:"error",title:"Connection Failed",description:u,onDismiss:()=>x(!1)})}),e.jsx(E,{children:"success"===s&&y&&e.jsx(Te,{variant:"success",title:"Coverage Data Loaded",description:"Adjust opacity below, then close to view on map"})}),e.jsx(E,{children:y&&!v&&e.jsx(M.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:xA.snappy,children:e.jsx(Re,{coverageCount:c.coverageCount,repeaterCount:c.repeaterCount,lastUpdated:c.lastUpdated})})}),e.jsx(E,{children:y&&!v&&e.jsx(Ie,{value:f,onChange:p})})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border-t",style:{borderColor:o.border},children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(E,{children:y&&e.jsxs(M.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:xA.snappy,className:"flex items-center gap-1",children:[e.jsx(_e,{icon:l?e.jsx(FA,{className:"w-4 h-4"}):e.jsx(cA,{className:"w-4 h-4"}),label:l?"Hide":"Show",onClick:m,disabled:v,active:l}),e.jsx(_e,{icon:e.jsx($,{className:"w-4 h-4"}),label:"Clear",onClick:D,disabled:v,variant:"danger"})]})})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(j,{plain:!0,color:"muted",onClick:N,disabled:v,children:y?"Done":"Cancel"}),e.jsx(j,{color:"warning",onClick:B,disabled:!L,children:v?e.jsxs(e.Fragment,{children:[e.jsx(gA,{"data-slot":"icon",className:"animate-spin"}),"connecting"===s?"Connecting...":"loading"===s?"Loading...":"Processing..."]}):y?e.jsxs(e.Fragment,{children:[e.jsx(lA,{"data-slot":"icon"}),"Refresh"]}):e.jsxs(e.Fragment,{children:[e.jsx(rA,{"data-slot":"icon"}),"Connect"]})})]})]})]})})}const ze={bandwidth:.07,threshold:.1,opacity:1,strokeWidth:4.5},Ge="#1A1A1A",Ue="#4A4A4A",Oe="#737373",Ye="rgba(0, 0, 0, 0.12)";function Ve({label:A,value:t,min:r,max:n,step:o,unit:i,formatValue:a,onChange:s,isLightMode:l}){const c=a?a(t):t.toFixed(2);return e.jsxs("div",{className:"flex items-center gap-2 sm:gap-2",children:[e.jsx("span",{className:"text-xs font-medium w-14 sm:w-16 flex-shrink-0",style:l?{color:Ue}:{color:"var(--text-secondary)"},children:A}),e.jsx("input",{type:"range",min:r,max:n,step:o,value:t,onChange:A=>s(parseFloat(A.target.value)),className:"flex-1 h-1.5 rounded-full appearance-none cursor-pointer\n [&::-webkit-slider-thumb]:appearance-none\n [&::-webkit-slider-thumb]:w-3.5\n [&::-webkit-slider-thumb]:h-3.5\n [&::-webkit-slider-thumb]:rounded-full\n [&::-webkit-slider-thumb]:bg-accent-secondary\n [&::-webkit-slider-thumb]:cursor-pointer\n [&::-webkit-slider-thumb]:transition-transform\n [&::-webkit-slider-thumb]:hover:scale-110\n [&::-webkit-slider-thumb]:shadow-md",style:l?{backgroundColor:"rgba(0, 0, 0, 0.12)"}:{backgroundColor:"var(--bg-elevated)"}}),e.jsxs("span",{className:"text-xs font-mono tabular-nums w-12 sm:w-14 text-right flex-shrink-0",style:l?{color:Ge}:{color:"var(--text-muted)"},children:[c,i&&e.jsx("span",{className:"ml-0.5 opacity-70",style:l?{color:Oe}:void 0,children:i})]})]})}function We({icon:A,label:t,value:r,subtext:n,isLightMode:o}){return e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 py-0.5 sm:py-1",children:[e.jsx("div",{style:o?{color:Oe}:{color:"var(--text-muted)"},children:A}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"text-[10px] sm:text-xs truncate",style:o?{color:Ue}:{color:"var(--text-secondary)"},children:t})}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-xs font-mono tabular-nums",style:o?{color:Ge}:{color:"var(--text-primary)"},children:r}),n&&e.jsx("div",{className:"text-[9px] leading-tight opacity-70",style:o?{color:Oe}:{color:"var(--text-muted)"},children:n})]})]})}function Ze({visible:t,onClose:r,settings:n,onSettingsChange:o,partition:i,totalNodes:a,basemapMode:s="dark"}){const l=p(UA),c=A.useRef(null),u="light"===s,d=A.useMemo(()=>{if(!i)return{numCommunities:0,avgCommunitySize:0,minCommunitySize:0,maxCommunitySize:0,fiedlerValue:0,modularity:0,coveragePercent:0};const A=Array.from(i.communities.values()).map(A=>A.length),e=A.reduce((A,e)=>A+e,0);return{numCommunities:i.numCommunities,avgCommunitySize:A.length>0?Math.round(e/A.length):0,minCommunitySize:A.length>0?Math.min(...A):0,maxCommunitySize:A.length>0?Math.max(...A):0,fiedlerValue:i.fiedlerValue,modularity:0,coveragePercent:a>0?Math.round(e/a*100):0}},[i,a]),f=(A,e)=>{o({...n,[A]:e})},g=(111*n.bandwidth).toFixed(1);return e.jsx("div",{ref:c,className:"absolute inset-0 z-[600] pointer-events-none",children:e.jsx(E,{children:t&&e.jsx(M.div,{drag:!0,dragControls:l,dragConstraints:c,dragElastic:.1,dragMomentum:!1,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",damping:25,stiffness:300},className:"\n absolute pointer-events-auto\n /* Mobile: bottom sheet style, full width with margins */\n bottom-2 left-2 right-2\n /* sm+: floating panel in bottom-right */\n sm:bottom-16 sm:left-auto sm:right-3 sm:w-64\n /* md+: slightly wider */\n md:w-72\n ",style:{touchAction:"none"},children:e.jsxs("div",{className:"\n map-control-glass rounded-lg overflow-hidden shadow-lg\n /* Mobile: limit height, allow scroll */\n max-h-[45vh] sm:max-h-[calc(100vh-180px)] overflow-y-auto\n /* iOS momentum scrolling */\n overscroll-contain\n ",children:[e.jsxs("div",{className:"\n flex items-center justify-between \n px-3 py-2 sm:px-2.5 sm:py-1.5 \n border-b \n cursor-grab active:cursor-grabbing\n /* Larger touch target on mobile */\n min-h-[44px] sm:min-h-0\n ",style:u?{borderColor:Ye}:void 0,onPointerDown:A=>l.start(A),children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-1.5",children:[e.jsx(PA,{className:"w-4 h-4 sm:w-3 sm:h-3",style:u?{color:Oe}:void 0}),e.jsx(NA,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5 text-accent-primary"}),e.jsx("span",{className:"text-sm sm:text-xs font-medium",style:u?{color:Ge}:void 0,children:"Partition"})]}),e.jsx(j,{plain:!0,color:"muted",onClick:r,className:"!p-1.5 sm:!p-0.5 !rounded min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 flex items-center justify-center","aria-label":"Close toolbox",children:e.jsx(P,{className:"w-4 h-4 sm:w-3 sm:h-3"})})]}),e.jsx("div",{className:"px-3 py-2 sm:px-2.5 sm:py-1.5 border-b",style:u?{borderColor:Ye}:void 0,children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 sm:gap-x-3 gap-y-1 sm:gap-y-0.5",children:[e.jsx(We,{icon:e.jsx(NA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Communities",value:d.numCommunities,isLightMode:u}),e.jsx(We,{icon:e.jsx(jA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Avg Size",value:d.avgCommunitySize,subtext:`${d.minCommunitySize}–${d.maxCommunitySize}`,isLightMode:u}),e.jsx(We,{icon:e.jsx(IA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Fiedler λ₂",value:d.fiedlerValue.toFixed(3),isLightMode:u}),e.jsx(We,{icon:e.jsx(jA,{className:"w-3.5 h-3.5 sm:w-3 sm:h-3"}),label:"Coverage",value:`${d.coveragePercent}%`,subtext:`of ${a}`,isLightMode:u})]})}),e.jsx("div",{className:"px-3 py-2 sm:px-2.5 sm:py-1.5",children:e.jsxs("div",{className:"space-y-3 sm:space-y-1.5",children:[e.jsx(Ve,{label:"Bandwidth",value:n.bandwidth,min:.01,max:.15,step:.005,formatValue:()=>g,unit:"km",onChange:A=>f("bandwidth",A),isLightMode:u}),e.jsx(Ve,{label:"Threshold",value:n.threshold,min:.05,max:.5,step:.01,formatValue:A=>`${Math.round(100*(1-A))}%`,unit:"cov",onChange:A=>f("threshold",A),isLightMode:u}),e.jsx(Ve,{label:"Opacity",value:n.opacity,min:.1,max:1,step:.05,formatValue:A=>`${Math.round(100*A)}%`,onChange:A=>f("opacity",A),isLightMode:u}),e.jsx(Ve,{label:"Stroke",value:n.strokeWidth,min:0,max:5,step:.5,unit:"px",formatValue:A=>A.toFixed(1),onChange:A=>f("strokeWidth",A),isLightMode:u})]})})]})})})})}const Ke={getItem:A=>{try{return localStorage.getItem(A)}catch{return null}},setItem:(A,e)=>{try{localStorage.setItem(A,e)}catch{}},removeItem:A=>{try{localStorage.removeItem(A)}catch{}}},Je=CA()(BA(A=>({isEnabled:!1,toggle:()=>A(A=>({isEnabled:!A.isEnabled})),setEnabled:e=>A({isEnabled:e})}),{name:"pymc-live-trace",storage:MA(()=>Ke)}));var qe=function(A){var e,t=void 0!==(A=A||{})?A:{},r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);var n,o="";"undefined"!=typeof document&&document.currentScript&&(o=document.currentScript.src),o=0!==o.indexOf("blob:")?o.substr(0,o.lastIndexOf("/")+1):"",n=function(A,e,t){var r=new XMLHttpRequest;r.open("GET",A,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)e(r.response);else{var n=U(A);n?e(n.buffer):t()}},r.onerror=t,r.send(null)};var i=t.print||function(){}.bind(),a=t.printErr||function(){}.bind();for(e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);r=null,t.arguments&&t.arguments;var s=0,l=!1;function c(A){var e=t["_"+A];return e||tA("Assertion failed: "+("Cannot call unknown function "+A+", make sure it is exported")),e}var u,d,f,g,h,m,b,p="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function v(A,e){return A?function(A,e,t){for(var r=e+t,n=e;A[n]&&!(n>=r);)++n;if(n-e>16&&A.subarray&&p)return p.decode(A.subarray(e,n));for(var o="";e>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o}(f,A,e):""}function y(A,e){return A%e>0&&(A+=e-A%e),A}function w(A){u=A,t.HEAP8=d=new Int8Array(A),t.HEAP16=g=new Int16Array(A),t.HEAP32=h=new Int32Array(A),t.HEAPU8=f=new Uint8Array(A),t.HEAPU16=new Uint16Array(A),t.HEAPU32=new Uint32Array(A),t.HEAPF32=m=new Float32Array(A),t.HEAPF64=b=new Float64Array(A)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var x=t.TOTAL_MEMORY||33554432;function k(A){for(;A.length>0;){var e=A.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?t.dynCall_v(r):t.dynCall_vi(r,e.arg):r(void 0===e.arg?null:e.arg)}else e()}}x=(u=t.buffer?t.buffer:new ArrayBuffer(x)).byteLength,w(u),h[7156]=5271536;var C=[],B=[],M=[],D=[];function E(A){C.unshift(A)}function j(A){D.unshift(A)}var Q=Math.abs,N=Math.ceil,S=Math.floor,F=Math.min,P=0,T=null;t.preloadedImages={},t.preloadedAudios={};var L,I,R=null,_="data:application/octet-stream;base64,";function H(A){return String.prototype.startsWith?A.startsWith(_):0===A.indexOf(_)}function z(){return d.length}R="data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAAAQAAAAQAAAADAAAABgAAAAUAAAACAAAAAAAAAAIAAAADAAAAAQAAAAQAAAAGAAAAAAAAAAUAAAADAAAABgAAAAQAAAAFAAAAAAAAAAEAAAACAAAABAAAAAUAAAAGAAAAAAAAAAIAAAADAAAAAQAAAAUAAAACAAAAAAAAAAEAAAADAAAABgAAAAQAAAAGAAAAAAAAAAUAAAACAAAAAQAAAAQAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAAAAAAEAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAYAAAAAAAAABQAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAYAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAYAAAAAAAAAAwAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAFAAAABAAAAAAAAAABAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAYAAAAAAAAABAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAgAAAAQAAAADAAAACAAAAAEAAAAHAAAABgAAAAkAAAAAAAAAAwAAAAIAAAACAAAABgAAAAoAAAALAAAAAAAAAAEAAAAFAAAAAwAAAA0AAAABAAAABwAAAAQAAAAMAAAAAAAAAAQAAAB/AAAADwAAAAgAAAADAAAAAAAAAAwAAAAFAAAAAgAAABIAAAAKAAAACAAAAAAAAAAQAAAABgAAAA4AAAALAAAAEQAAAAEAAAAJAAAAAgAAAAcAAAAVAAAACQAAABMAAAADAAAADQAAAAEAAAAIAAAABQAAABYAAAAQAAAABAAAAAAAAAAPAAAACQAAABMAAAAOAAAAFAAAAAEAAAAHAAAABgAAAAoAAAALAAAAGAAAABcAAAAFAAAAAgAAABIAAAALAAAAEQAAABcAAAAZAAAAAgAAAAYAAAAKAAAADAAAABwAAAANAAAAGgAAAAQAAAAPAAAAAwAAAA0AAAAaAAAAFQAAAB0AAAADAAAADAAAAAcAAAAOAAAAfwAAABEAAAAbAAAACQAAABQAAAAGAAAADwAAABYAAAAcAAAAHwAAAAQAAAAIAAAADAAAABAAAAASAAAAIQAAAB4AAAAIAAAABQAAABYAAAARAAAACwAAAA4AAAAGAAAAIwAAABkAAAAbAAAAEgAAABgAAAAeAAAAIAAAAAUAAAAKAAAAEAAAABMAAAAiAAAAFAAAACQAAAAHAAAAFQAAAAkAAAAUAAAADgAAABMAAAAJAAAAKAAAABsAAAAkAAAAFQAAACYAAAATAAAAIgAAAA0AAAAdAAAABwAAABYAAAAQAAAAKQAAACEAAAAPAAAACAAAAB8AAAAXAAAAGAAAAAsAAAAKAAAAJwAAACUAAAAZAAAAGAAAAH8AAAAgAAAAJQAAAAoAAAAXAAAAEgAAABkAAAAXAAAAEQAAAAsAAAAtAAAAJwAAACMAAAAaAAAAKgAAAB0AAAArAAAADAAAABwAAAANAAAAGwAAACgAAAAjAAAALgAAAA4AAAAUAAAAEQAAABwAAAAfAAAAKgAAACwAAAAMAAAADwAAABoAAAAdAAAAKwAAACYAAAAvAAAADQAAABoAAAAVAAAAHgAAACAAAAAwAAAAMgAAABAAAAASAAAAIQAAAB8AAAApAAAALAAAADUAAAAPAAAAFgAAABwAAAAgAAAAHgAAABgAAAASAAAANAAAADIAAAAlAAAAIQAAAB4AAAAxAAAAMAAAABYAAAAQAAAAKQAAACIAAAATAAAAJgAAABUAAAA2AAAAJAAAADMAAAAjAAAALgAAAC0AAAA4AAAAEQAAABsAAAAZAAAAJAAAABQAAAAiAAAAEwAAADcAAAAoAAAANgAAACUAAAAnAAAANAAAADkAAAAYAAAAFwAAACAAAAAmAAAAfwAAACIAAAAzAAAAHQAAAC8AAAAVAAAAJwAAACUAAAAZAAAAFwAAADsAAAA5AAAALQAAACgAAAAbAAAAJAAAABQAAAA8AAAALgAAADcAAAApAAAAMQAAADUAAAA9AAAAFgAAACEAAAAfAAAAKgAAADoAAAArAAAAPgAAABwAAAAsAAAAGgAAACsAAAA+AAAALwAAAEAAAAAaAAAAKgAAAB0AAAAsAAAANQAAADoAAABBAAAAHAAAAB8AAAAqAAAALQAAACcAAAAjAAAAGQAAAD8AAAA7AAAAOAAAAC4AAAA8AAAAOAAAAEQAAAAbAAAAKAAAACMAAAAvAAAAJgAAACsAAAAdAAAARQAAADMAAABAAAAAMAAAADEAAAAeAAAAIQAAAEMAAABCAAAAMgAAADEAAAB/AAAAPQAAAEIAAAAhAAAAMAAAACkAAAAyAAAAMAAAACAAAAAeAAAARgAAAEMAAAA0AAAAMwAAAEUAAAA2AAAARwAAACYAAAAvAAAAIgAAADQAAAA5AAAARgAAAEoAAAAgAAAAJQAAADIAAAA1AAAAPQAAAEEAAABLAAAAHwAAACkAAAAsAAAANgAAAEcAAAA3AAAASQAAACIAAAAzAAAAJAAAADcAAAAoAAAANgAAACQAAABIAAAAPAAAAEkAAAA4AAAARAAAAD8AAABNAAAAIwAAAC4AAAAtAAAAOQAAADsAAABKAAAATgAAACUAAAAnAAAANAAAADoAAAB/AAAAPgAAAEwAAAAsAAAAQQAAACoAAAA7AAAAPwAAAE4AAABPAAAAJwAAAC0AAAA5AAAAPAAAAEgAAABEAAAAUAAAACgAAAA3AAAALgAAAD0AAAA1AAAAMQAAACkAAABRAAAASwAAAEIAAAA+AAAAKwAAADoAAAAqAAAAUgAAAEAAAABMAAAAPwAAAH8AAAA4AAAALQAAAE8AAAA7AAAATQAAAEAAAAAvAAAAPgAAACsAAABUAAAARQAAAFIAAABBAAAAOgAAADUAAAAsAAAAVgAAAEwAAABLAAAAQgAAAEMAAABRAAAAVQAAADEAAAAwAAAAPQAAAEMAAABCAAAAMgAAADAAAABXAAAAVQAAAEYAAABEAAAAOAAAADwAAAAuAAAAWgAAAE0AAABQAAAARQAAADMAAABAAAAALwAAAFkAAABHAAAAVAAAAEYAAABDAAAANAAAADIAAABTAAAAVwAAAEoAAABHAAAAWQAAAEkAAABbAAAAMwAAAEUAAAA2AAAASAAAAH8AAABJAAAANwAAAFAAAAA8AAAAWAAAAEkAAABbAAAASAAAAFgAAAA2AAAARwAAADcAAABKAAAATgAAAFMAAABcAAAANAAAADkAAABGAAAASwAAAEEAAAA9AAAANQAAAF4AAABWAAAAUQAAAEwAAABWAAAAUgAAAGAAAAA6AAAAQQAAAD4AAABNAAAAPwAAAEQAAAA4AAAAXQAAAE8AAABaAAAATgAAAEoAAAA7AAAAOQAAAF8AAABcAAAATwAAAE8AAABOAAAAPwAAADsAAABdAAAAXwAAAE0AAABQAAAARAAAAEgAAAA8AAAAYwAAAFoAAABYAAAAUQAAAFUAAABeAAAAZQAAAD0AAABCAAAASwAAAFIAAABgAAAAVAAAAGIAAAA+AAAATAAAAEAAAABTAAAAfwAAAEoAAABGAAAAZAAAAFcAAABcAAAAVAAAAEUAAABSAAAAQAAAAGEAAABZAAAAYgAAAFUAAABXAAAAZQAAAGYAAABCAAAAQwAAAFEAAABWAAAATAAAAEsAAABBAAAAaAAAAGAAAABeAAAAVwAAAFMAAABmAAAAZAAAAEMAAABGAAAAVQAAAFgAAABIAAAAWwAAAEkAAABjAAAAUAAAAGkAAABZAAAAYQAAAFsAAABnAAAARQAAAFQAAABHAAAAWgAAAE0AAABQAAAARAAAAGoAAABdAAAAYwAAAFsAAABJAAAAWQAAAEcAAABpAAAAWAAAAGcAAABcAAAAUwAAAE4AAABKAAAAbAAAAGQAAABfAAAAXQAAAE8AAABaAAAATQAAAG0AAABfAAAAagAAAF4AAABWAAAAUQAAAEsAAABrAAAAaAAAAGUAAABfAAAAXAAAAE8AAABOAAAAbQAAAGwAAABdAAAAYAAAAGgAAABiAAAAbgAAAEwAAABWAAAAUgAAAGEAAAB/AAAAYgAAAFQAAABnAAAAWQAAAG8AAABiAAAAbgAAAGEAAABvAAAAUgAAAGAAAABUAAAAYwAAAFAAAABpAAAAWAAAAGoAAABaAAAAcQAAAGQAAABmAAAAUwAAAFcAAABsAAAAcgAAAFwAAABlAAAAZgAAAGsAAABwAAAAUQAAAFUAAABeAAAAZgAAAGUAAABXAAAAVQAAAHIAAABwAAAAZAAAAGcAAABbAAAAYQAAAFkAAAB0AAAAaQAAAG8AAABoAAAAawAAAG4AAABzAAAAVgAAAF4AAABgAAAAaQAAAFgAAABnAAAAWwAAAHEAAABjAAAAdAAAAGoAAABdAAAAYwAAAFoAAAB1AAAAbQAAAHEAAABrAAAAfwAAAGUAAABeAAAAcwAAAGgAAABwAAAAbAAAAGQAAABfAAAAXAAAAHYAAAByAAAAbQAAAG0AAABsAAAAXQAAAF8AAAB1AAAAdgAAAGoAAABuAAAAYgAAAGgAAABgAAAAdwAAAG8AAABzAAAAbwAAAGEAAABuAAAAYgAAAHQAAABnAAAAdwAAAHAAAABrAAAAZgAAAGUAAAB4AAAAcwAAAHIAAABxAAAAYwAAAHQAAABpAAAAdQAAAGoAAAB5AAAAcgAAAHAAAABkAAAAZgAAAHYAAAB4AAAAbAAAAHMAAABuAAAAawAAAGgAAAB4AAAAdwAAAHAAAAB0AAAAZwAAAHcAAABvAAAAcQAAAGkAAAB5AAAAdQAAAH8AAABtAAAAdgAAAHEAAAB5AAAAagAAAHYAAAB4AAAAbAAAAHIAAAB1AAAAeQAAAG0AAAB3AAAAbwAAAHMAAABuAAAAeQAAAHQAAAB4AAAAeAAAAHMAAAByAAAAcAAAAHkAAAB3AAAAdgAAAHkAAAB0AAAAeAAAAHcAAAB1AAAAcQAAAHYAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAACAAAABQAAAAEAAAAAAAAA/////wEAAAAAAAAAAwAAAAQAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAUAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABAAAAAUAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAUAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAD//////////wEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAAAAAAAAAAABAAAAAgAAAAYAAAAEAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAAAAAAAAAAAAQAAAAEAAAAFAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAAAAAAAAAAABAAAAAwAAAAcAAAAGAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADgAAAAIAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAAAAAAAAAAAAAEAAAAEAAAACAAAAAoAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAAAAAAAAAAAAQAAAAsAAAAPAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAIAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAAAAAAAAAAAAQAAAAwAAAAQAAAADAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAAAAAAAAAAABAAAACgAAABMAAAAIAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAAAAAAAAAAAAAEAAAANAAAAEQAAAA0AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAACAAAAAAAAAAAAAAABAAAADgAAABIAAAAPAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAADwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABIAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAAAAAAAAQAAAP//////////EwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAASAAAAAAAAABgAAAAAAAAAIQAAAAAAAAAeAAAAAAAAACAAAAADAAAAMQAAAAEAAAAwAAAAAwAAADIAAAADAAAACAAAAAAAAAAFAAAABQAAAAoAAAAFAAAAFgAAAAAAAAAQAAAAAAAAABIAAAAAAAAAKQAAAAEAAAAhAAAAAAAAAB4AAAAAAAAABAAAAAAAAAAAAAAABQAAAAIAAAAFAAAADwAAAAEAAAAIAAAAAAAAAAUAAAAFAAAAHwAAAAEAAAAWAAAAAAAAABAAAAAAAAAAAgAAAAAAAAAGAAAAAAAAAA4AAAAAAAAACgAAAAAAAAALAAAAAAAAABEAAAADAAAAGAAAAAEAAAAXAAAAAwAAABkAAAADAAAAAAAAAAAAAAABAAAABQAAAAkAAAAFAAAABQAAAAAAAAACAAAAAAAAAAYAAAAAAAAAEgAAAAEAAAAKAAAAAAAAAAsAAAAAAAAABAAAAAEAAAADAAAABQAAAAcAAAAFAAAACAAAAAEAAAAAAAAAAAAAAAEAAAAFAAAAEAAAAAEAAAAFAAAAAAAAAAIAAAAAAAAABwAAAAAAAAAVAAAAAAAAACYAAAAAAAAACQAAAAAAAAATAAAAAAAAACIAAAADAAAADgAAAAEAAAAUAAAAAwAAACQAAAADAAAAAwAAAAAAAAANAAAABQAAAB0AAAAFAAAAAQAAAAAAAAAHAAAAAAAAABUAAAAAAAAABgAAAAEAAAAJAAAAAAAAABMAAAAAAAAABAAAAAIAAAAMAAAABQAAABoAAAAFAAAAAAAAAAEAAAADAAAAAAAAAA0AAAAFAAAAAgAAAAEAAAABAAAAAAAAAAcAAAAAAAAAGgAAAAAAAAAqAAAAAAAAADoAAAAAAAAAHQAAAAAAAAArAAAAAAAAAD4AAAADAAAAJgAAAAEAAAAvAAAAAwAAAEAAAAADAAAADAAAAAAAAAAcAAAABQAAACwAAAAFAAAADQAAAAAAAAAaAAAAAAAAACoAAAAAAAAAFQAAAAEAAAAdAAAAAAAAACsAAAAAAAAABAAAAAMAAAAPAAAABQAAAB8AAAAFAAAAAwAAAAEAAAAMAAAAAAAAABwAAAAFAAAABwAAAAEAAAANAAAAAAAAABoAAAAAAAAAHwAAAAAAAAApAAAAAAAAADEAAAAAAAAALAAAAAAAAAA1AAAAAAAAAD0AAAADAAAAOgAAAAEAAABBAAAAAwAAAEsAAAADAAAADwAAAAAAAAAWAAAABQAAACEAAAAFAAAAHAAAAAAAAAAfAAAAAAAAACkAAAAAAAAAKgAAAAEAAAAsAAAAAAAAADUAAAAAAAAABAAAAAQAAAAIAAAABQAAABAAAAAFAAAADAAAAAEAAAAPAAAAAAAAABYAAAAFAAAAGgAAAAEAAAAcAAAAAAAAAB8AAAAAAAAAMgAAAAAAAAAwAAAAAAAAADEAAAADAAAAIAAAAAAAAAAeAAAAAwAAACEAAAADAAAAGAAAAAMAAAASAAAAAwAAABAAAAADAAAARgAAAAAAAABDAAAAAAAAAEIAAAADAAAANAAAAAMAAAAyAAAAAAAAADAAAAAAAAAAJQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAUwAAAAAAAABXAAAAAwAAAFUAAAADAAAASgAAAAMAAABGAAAAAAAAAEMAAAAAAAAAOQAAAAEAAAA0AAAAAwAAADIAAAAAAAAAGQAAAAAAAAAXAAAAAAAAABgAAAADAAAAEQAAAAAAAAALAAAAAwAAAAoAAAADAAAADgAAAAMAAAAGAAAAAwAAAAIAAAADAAAALQAAAAAAAAAnAAAAAAAAACUAAAADAAAAIwAAAAMAAAAZAAAAAAAAABcAAAAAAAAAGwAAAAMAAAARAAAAAAAAAAsAAAADAAAAPwAAAAAAAAA7AAAAAwAAADkAAAADAAAAOAAAAAMAAAAtAAAAAAAAACcAAAAAAAAALgAAAAMAAAAjAAAAAwAAABkAAAAAAAAAJAAAAAAAAAAUAAAAAAAAAA4AAAADAAAAIgAAAAAAAAATAAAAAwAAAAkAAAADAAAAJgAAAAMAAAAVAAAAAwAAAAcAAAADAAAANwAAAAAAAAAoAAAAAAAAABsAAAADAAAANgAAAAMAAAAkAAAAAAAAABQAAAAAAAAAMwAAAAMAAAAiAAAAAAAAABMAAAADAAAASAAAAAAAAAA8AAAAAwAAAC4AAAADAAAASQAAAAMAAAA3AAAAAAAAACgAAAAAAAAARwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAQAAAAAAAAAAvAAAAAAAAACYAAAADAAAAPgAAAAAAAAArAAAAAwAAAB0AAAADAAAAOgAAAAMAAAAqAAAAAwAAABoAAAADAAAAVAAAAAAAAABFAAAAAAAAADMAAAADAAAAUgAAAAMAAABAAAAAAAAAAC8AAAAAAAAATAAAAAMAAAA+AAAAAAAAACsAAAADAAAAYQAAAAAAAABZAAAAAwAAAEcAAAADAAAAYgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAYAAAAAMAAABSAAAAAwAAAEAAAAAAAAAASwAAAAAAAABBAAAAAAAAADoAAAADAAAAPQAAAAAAAAA1AAAAAwAAACwAAAADAAAAMQAAAAMAAAApAAAAAwAAAB8AAAADAAAAXgAAAAAAAABWAAAAAAAAAEwAAAADAAAAUQAAAAMAAABLAAAAAAAAAEEAAAAAAAAAQgAAAAMAAAA9AAAAAAAAADUAAAADAAAAawAAAAAAAABoAAAAAwAAAGAAAAADAAAAZQAAAAMAAABeAAAAAAAAAFYAAAAAAAAAVQAAAAMAAABRAAAAAwAAAEsAAAAAAAAAOQAAAAAAAAA7AAAAAAAAAD8AAAADAAAASgAAAAAAAABOAAAAAwAAAE8AAAADAAAAUwAAAAMAAABcAAAAAwAAAF8AAAADAAAAJQAAAAAAAAAnAAAAAwAAAC0AAAADAAAANAAAAAAAAAA5AAAAAAAAADsAAAAAAAAARgAAAAMAAABKAAAAAAAAAE4AAAADAAAAGAAAAAAAAAAXAAAAAwAAABkAAAADAAAAIAAAAAMAAAAlAAAAAAAAACcAAAADAAAAMgAAAAMAAAA0AAAAAAAAADkAAAAAAAAALgAAAAAAAAA8AAAAAAAAAEgAAAADAAAAOAAAAAAAAABEAAAAAwAAAFAAAAADAAAAPwAAAAMAAABNAAAAAwAAAFoAAAADAAAAGwAAAAAAAAAoAAAAAwAAADcAAAADAAAAIwAAAAAAAAAuAAAAAAAAADwAAAAAAAAALQAAAAMAAAA4AAAAAAAAAEQAAAADAAAADgAAAAAAAAAUAAAAAwAAACQAAAADAAAAEQAAAAMAAAAbAAAAAAAAACgAAAADAAAAGQAAAAMAAAAjAAAAAAAAAC4AAAAAAAAARwAAAAAAAABZAAAAAAAAAGEAAAADAAAASQAAAAAAAABbAAAAAwAAAGcAAAADAAAASAAAAAMAAABYAAAAAwAAAGkAAAADAAAAMwAAAAAAAABFAAAAAwAAAFQAAAADAAAANgAAAAAAAABHAAAAAAAAAFkAAAAAAAAANwAAAAMAAABJAAAAAAAAAFsAAAADAAAAJgAAAAAAAAAvAAAAAwAAAEAAAAADAAAAIgAAAAMAAAAzAAAAAAAAAEUAAAADAAAAJAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAYAAAAAAAAABoAAAAAAAAAGsAAAADAAAAYgAAAAAAAABuAAAAAwAAAHMAAAADAAAAYQAAAAMAAABvAAAAAwAAAHcAAAADAAAATAAAAAAAAABWAAAAAwAAAF4AAAADAAAAUgAAAAAAAABgAAAAAAAAAGgAAAAAAAAAVAAAAAMAAABiAAAAAAAAAG4AAAADAAAAOgAAAAAAAABBAAAAAwAAAEsAAAADAAAAPgAAAAMAAABMAAAAAAAAAFYAAAADAAAAQAAAAAMAAABSAAAAAAAAAGAAAAAAAAAAVQAAAAAAAABXAAAAAAAAAFMAAAADAAAAZQAAAAAAAABmAAAAAwAAAGQAAAADAAAAawAAAAMAAABwAAAAAwAAAHIAAAADAAAAQgAAAAAAAABDAAAAAwAAAEYAAAADAAAAUQAAAAAAAABVAAAAAAAAAFcAAAAAAAAAXgAAAAMAAABlAAAAAAAAAGYAAAADAAAAMQAAAAAAAAAwAAAAAwAAADIAAAADAAAAPQAAAAMAAABCAAAAAAAAAEMAAAADAAAASwAAAAMAAABRAAAAAAAAAFUAAAAAAAAAXwAAAAAAAABcAAAAAAAAAFMAAAAAAAAATwAAAAAAAABOAAAAAAAAAEoAAAADAAAAPwAAAAEAAAA7AAAAAwAAADkAAAADAAAAbQAAAAAAAABsAAAAAAAAAGQAAAAFAAAAXQAAAAEAAABfAAAAAAAAAFwAAAAAAAAATQAAAAEAAABPAAAAAAAAAE4AAAAAAAAAdQAAAAQAAAB2AAAABQAAAHIAAAAFAAAAagAAAAEAAABtAAAAAAAAAGwAAAAAAAAAWgAAAAEAAABdAAAAAQAAAF8AAAAAAAAAWgAAAAAAAABNAAAAAAAAAD8AAAAAAAAAUAAAAAAAAABEAAAAAAAAADgAAAADAAAASAAAAAEAAAA8AAAAAwAAAC4AAAADAAAAagAAAAAAAABdAAAAAAAAAE8AAAAFAAAAYwAAAAEAAABaAAAAAAAAAE0AAAAAAAAAWAAAAAEAAABQAAAAAAAAAEQAAAAAAAAAdQAAAAMAAABtAAAABQAAAF8AAAAFAAAAcQAAAAEAAABqAAAAAAAAAF0AAAAAAAAAaQAAAAEAAABjAAAAAQAAAFoAAAAAAAAAaQAAAAAAAABYAAAAAAAAAEgAAAAAAAAAZwAAAAAAAABbAAAAAAAAAEkAAAADAAAAYQAAAAEAAABZAAAAAwAAAEcAAAADAAAAcQAAAAAAAABjAAAAAAAAAFAAAAAFAAAAdAAAAAEAAABpAAAAAAAAAFgAAAAAAAAAbwAAAAEAAABnAAAAAAAAAFsAAAAAAAAAdQAAAAIAAABqAAAABQAAAFoAAAAFAAAAeQAAAAEAAABxAAAAAAAAAGMAAAAAAAAAdwAAAAEAAAB0AAAAAQAAAGkAAAAAAAAAdwAAAAAAAABvAAAAAAAAAGEAAAAAAAAAcwAAAAAAAABuAAAAAAAAAGIAAAADAAAAawAAAAEAAABoAAAAAwAAAGAAAAADAAAAeQAAAAAAAAB0AAAAAAAAAGcAAAAFAAAAeAAAAAEAAAB3AAAAAAAAAG8AAAAAAAAAcAAAAAEAAABzAAAAAAAAAG4AAAAAAAAAdQAAAAEAAABxAAAABQAAAGkAAAAFAAAAdgAAAAEAAAB5AAAAAAAAAHQAAAAAAAAAcgAAAAEAAAB4AAAAAQAAAHcAAAAAAAAAcgAAAAAAAABwAAAAAAAAAGsAAAAAAAAAZAAAAAAAAABmAAAAAAAAAGUAAAADAAAAUwAAAAEAAABXAAAAAwAAAFUAAAADAAAAdgAAAAAAAAB4AAAAAAAAAHMAAAAFAAAAbAAAAAEAAAByAAAAAAAAAHAAAAAAAAAAXAAAAAEAAABkAAAAAAAAAGYAAAAAAAAAdQAAAAAAAAB5AAAABQAAAHcAAAAFAAAAbQAAAAEAAAB2AAAAAAAAAHgAAAAAAAAAXwAAAAEAAABsAAAAAQAAAHIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGAAAAAgAAAAUAAAABAAAABAAAAAAAAAAAAAAABQAAAAMAAAABAAAABgAAAAQAAAACAAAAAAAAAH6iBfbytuk/Gq6akm/58z/Xrm0Liez0P5doSdOpSwRAWs602ULg8D/dT7Rcbo/1v1N1RQHFNOM/g9Snx7HW3L8HWsP8Q3jfP6VwOLosutk/9rjk1YQcxj+gnmKMsNn6P/HDeuPFY+M/YHwDjqKhB0Ci19/fCVrbP4UxKkDWOP6/pvljWa09tL9wi7wrQXjnv/Z6yLImkM2/3yTlOzY14D+m+WNZrT20PzwKVQnrQwNA9nrIsiaQzT/g40rFrRQFwPa45NWEHMa/kbslHEZq97/xw3rjxWPjv4cLC2SMBci/otff3wla27+rKF5oIAv0P1N1RQHFNOO/iDJPGyWHBUAHWsP8Q3jfvwQf/by16gXAfqIF9vK26b8XrO0Vh0r+v9eubQuJ7PS/BxLrA0ZZ479azrTZQuDwv1MK1EuItPw/yscgV9Z6FkAwHBR2WjQMQJNRzXsQ5vY/GlUHVJYKF0DONuFv2lMNQNCGZ28QJfk/0WUwoIL36D8ggDOMQuATQNqMOeAy/wZAWFYOYM+M2z/LWC4uH3oSQDE+LyTsMgRAkJzhRGWFGEDd4soovCQQQKqk0DJMEP8/rGmNdwOLBUAW2X/9xCbjP4hu3dcqJhNAzuYItRvdB0CgzW3zJW/sPxotm/Y2TxRAQAk9XmdDDEC1Kx9MKgT3P1M+NctcghZAFVqcLlb0C0Bgzd3sB2b2P77mZDPUWhZAFROHJpUGCEDAfma5CxXtPz1DWq/zYxRAmhYY5824F0DOuQKWSbAOQNCMqrvu3fs/L6DR22K2wT9nAAxPBU8RQGiN6mW43AFAZhu25b633D8c1YgmzowSQNM25BRKWARArGS08/lNxD+LFssHwmMRQLC5aNcxBgJABL9HT0WRF0CjCmJmOGEOQHsuaVzMP/s/TWJCaGGwBUCeu1PAPLzjP9nqN9DZOBNAKE4JcydbCkCGtbd1qjPzP8dgm9U8jhVAtPeKTkVwDkCeCLss5l37P401XMPLmBdAFd29VMVQDUBg0yA55h75Pz6odcYLCRdApBM4rBrkAkDyAVWgQxbRP4XDMnK20hFAymLlF7EmzD8GUgo9XBHlP3lbK7T9COc/k+OhPthhy7+YGEpnrOvCPzBFhLs15u4/epbqB6H4uz9IuuLF5svev6lzLKY31es/CaQ0envF5z8ZY0xlUADXv7zaz7HYEuI/CfbK1sn16T8uAQfWwxLWPzKn/YuFN94/5KdbC1AFu793fyCSnlfvPzK2y4doAMY/NRg5t1/X6b/shq4QJaHDP5yNIAKPOeI/vpn7BSE30r/X4YQrO6nrv78Ziv/Thto/DqJ1Y6+y5z9l51NaxFrlv8QlA65HOLS/86dxiEc96z+Hj0+LFjneP6LzBZ8LTc2/DaJ1Y6+y579l51NaxFrlP8QlA65HOLQ/8qdxiEc967+Jj0+LFjnev6LzBZ8LTc0/1qdbC1AFuz93fyCSnlfvvzK2y4doAMa/NRg5t1/X6T/vhq4QJaHDv5yNIAKPOeK/wJn7BSE30j/W4YQrO6nrP78Ziv/Thtq/CaQ0envF578XY0xlUADXP7zaz7HYEuK/CvbK1sn16b8rAQfWwxLWvzKn/YuFN96/zWLlF7EmzL8GUgo9XBHlv3lbK7T9COe/kOOhPthhyz+cGEpnrOvCvzBFhLs15u6/c5bqB6H4u79IuuLF5sveP6lzLKY31eu/AQAAAP////8HAAAA/////zEAAAD/////VwEAAP////9hCQAA/////6dBAAD/////kcsBAP/////3kAwA/////8H2VwAAAAAAAAAAAAAAAAACAAAA/////w4AAAD/////YgAAAP////+uAgAA/////8ISAAD/////ToMAAP////8ilwMA/////+4hGQD/////gu2vAAAAAAAAAAAAAAAAAAAAAAACAAAA//////////8BAAAAAwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////AgAAAP//////////AQAAAAAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD/////////////////////AQAAAP///////////////wIAAAD///////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP///////////////////////////////wIAAAD///////////////8BAAAA/////////////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAABAAAA//////////8CAAAA//////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAAAQAAAP//////////AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAACAAAAAAAAAAIAAAABAAAAAQAAAAIAAAACAAAAAAAAAAUAAAAFAAAAAAAAAAIAAAACAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAEAAAACAAAAAgAAAAIAAAAAAAAABQAAAAYAAAAAAAAAAgAAAAIAAAADAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAAAAAACAAAAAQAAAAMAAAACAAAAAgAAAAAAAAAFAAAABwAAAAAAAAACAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAACAAAAAAAAAAIAAAABAAAABAAAAAIAAAACAAAAAAAAAAUAAAAIAAAAAAAAAAIAAAACAAAAAwAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAIAAAAAAAAAAgAAAAEAAAAAAAAAAgAAAAIAAAAAAAAABQAAAAkAAAAAAAAAAgAAAAIAAAADAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAIAAAAAAAAAAwAAAA4AAAACAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAgAAAAMAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAgAAAAAAAAADAAAACgAAAAIAAAAAAAAAAgAAAAMAAAABAAAAAAAAAAIAAAACAAAAAwAAAAcAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAACAAAAAAAAAAMAAAALAAAAAgAAAAAAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAIAAAADAAAACAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAIAAAAAAAAAAwAAAAwAAAACAAAAAAAAAAIAAAADAAAAAwAAAAAAAAACAAAAAgAAAAMAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAACAAAAAgAAAAAAAAADAAAADQAAAAIAAAAAAAAAAgAAAAMAAAAEAAAAAAAAAAIAAAACAAAAAwAAAAoAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAACAAAAAAAAAAMAAAAGAAAAAgAAAAAAAAACAAAAAwAAAA8AAAAAAAAAAgAAAAIAAAADAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAIAAAAAAAAAAwAAAAcAAAACAAAAAAAAAAIAAAADAAAAEAAAAAAAAAACAAAAAgAAAAMAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAgAAAAAAAAADAAAACAAAAAIAAAAAAAAAAgAAAAMAAAARAAAAAAAAAAIAAAACAAAAAwAAAA0AAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAACAAAAAAAAAAMAAAAJAAAAAgAAAAAAAAACAAAAAwAAABIAAAAAAAAAAgAAAAIAAAADAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAgAAAAIAAAAAAAAAAwAAAAUAAAACAAAAAAAAAAIAAAADAAAAEwAAAAAAAAACAAAAAgAAAAMAAAAPAAAAAAAAAAAAAAAAAAAAAAAAABAAAAACAAAAAAAAAAIAAAABAAAAEwAAAAIAAAACAAAAAAAAAAUAAAAKAAAAAAAAAAIAAAACAAAAAwAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAIAAAAAAAAAAgAAAAEAAAAPAAAAAgAAAAIAAAAAAAAABQAAAAsAAAAAAAAAAgAAAAIAAAADAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAgAAAAAAAAACAAAAAQAAABAAAAACAAAAAgAAAAAAAAAFAAAADAAAAAAAAAACAAAAAgAAAAMAAAASAAAAAAAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAIAAAABAAAAEQAAAAIAAAACAAAAAAAAAAUAAAANAAAAAAAAAAIAAAACAAAAAwAAABMAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAIAAAAAAAAAAgAAAAEAAAASAAAAAgAAAAIAAAAAAAAABQAAAA4AAAAAAAAAAgAAAAIAAAADAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAA6B6FaUp9QQTPXMuL4myJBraiDfBwx9UBYJseitzTIQOL5if9jqZtAnXX+Z+ycb0C3pucbhRBCQG8wJBYqpRRAlWbDCzCY5z/eFWBUEve6P/+qo4Q50Y4/D9YM3iCcYT8fcA2QJSA0P4ADxu0qAAc/BNcGolVJ2j5d9FACqwquPh9z7MthtI9CSUSYJke/YUJQ/64OyjU0Qpi0+HCmFQdCm3GfIVdh2kHsJ11kAyauQYC3UDFJOoFBSJsFV1OwU0FK5fcxX4AmQWhy/zZIt/lACqaCPsBjzUDbdUNIScugQMYQlVJ4MXNANiuq8GTvRUDxTXnulxEZQFZ8QX5kpuw/qmG/JwYFlEAluh3Q6DB+QKn4vyNq0GZAKOXekas+UUB8xabXXhI6QG63C2pLtSNAdDBtyNfLDUDyOcu67ID2P0rCMvRXAeE/Ki2TSVyzyT9Dk+8Sz2uzP5J+w5ARWp0/NQAoOiMuhj9YnP+RyMJwPxgW7TvQVFk/KgsLYF0kQz9g5dAC6IwzQcgHPVvDex1B1XjppodHBkHJq3OMM9fwQNvcmJ7wddlAInGPpQs/w0BRobq5EBmtQJZ2ai7n+ZVAtv2G5E+bgECG+gIfKBlpQK5f8jdI91JAL39sL/WpPEB8rGxhDqklQK6yUf43XhBAxL9y/tK8+D86XyZpgrHiPwAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAP////8AAAAAAAAAAAAAAAABAAAAAAAAAAAAAAD/////AAAAAAAAAAABAAAAAQAAAAAAAAAAAAAA/////wAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8FAAAABQAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAABQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQAAAAAAAQABAAABAQAAAAAAAQAAAAEAAAABAAEAAAAAAAAAAAAAAAAAAAAAquJYWJZl+D9jaeZNtj/zPwwdI9KqaeO/qGefXwdHdz+q4lhYlmX4P+OrlPMN3PI/DB0j0qpp47+7SQLV4VIEQKriWFiWZfg/r2kma3tz8T82eQmLqNIGwMRIWXMqSvo/fcCszPux9j+jara6ozTwP6hnn18HR3c/MSoKLequ8r+SabgA2nj0P7jBLbDOHO8/1Ym/ICfH4T+6lxjvlFXHv73m373LRPU/0vXyDVxo7T+ToKRHJXMAQF/33578aPE/pAyy64tD9T8+U/hCvyruPwxv8Y7YYwLAuXYr8NAiCEB4+LDK0Sn0P1Qeuy4j+eo/OMx50n7K7L+TrGB/nyf8v5ehC2fbYPM/aXMKexiT6z8mFRIMjg/zP7yUVwGGBNw/E6opHERf8z/z0wR2g9DqPw4pBpcOhvu/NbA29uWAA8DMaTExyXzyP02biiQ+Ruk/S8jz2/FKBEB1pzZnpbb9P7pQU4wLfPI//7ZcQXeG6D9CqEQvAYoIwDB2VB6sSgRAVyv8H5We8T+EHWF8XNPmPzB2wT8Nrrg/SEi+cX+w4L8of+GtdSDxP1sjk5AdouU/6ZjOVru13r8K0obqI6bxvwVbdNXyhfA/w5GG024n5z+rwmtMzP8BwLw9pSX49QXABe/2uQxP8D+b6wCzCvXkP7uGT87fK+Q/pz/JWw4coj+qoBf2J0nwP/yE3PUo0+I/vFJeHcaC+D96luSIqvntP/bf8sHUYu8/gZNN41mL4z9bhOqVOF4FwO6lmAh1hQhAbCVxbdhk7z+1C8NdDcfiPwG36x/0OQBAx0WJ76c2+D9nlSHXANfuP2HlfZ3gqOE/EwnVlVPg9r96+oHzEH//v5bXzdT1Auw/DM3GwLsA4D9p/8uoKcr+v+U9x5DQVAPAehjSdghb7D9sc1IetODgP8MVwwB1pu6/azPk6OGe978W8t/TUc3rP+0QMvYfP+A/RsG/QpSE8D+l3uwScxzgPwQaifgujuw/k1Vti1I43z8MAwLnSh0GQH5nYnwwZgJAiGUzWC5s6j8WyyI/BbLgPw4iUapGeQJAB3W+imnp/j9BLWR4ssrpP2t+gG5Pstk/cpBsfm6DCMCOpU9dOZsFQEv8nFypHeo/ehJ6i+6S2D9jqlGEmarLv7STC5TRiOa/bC+x8WZD6D9H3yUkWpDZP8gZvmCMuQLAreY19/eRBsCoPOc8UzzpP6KI/QV+y9g/t/MoboyWzT+Hv5q3Zu3Mvy2xROCT4uY/9gQitMMg1T9abAqhWMDkv1oLTavoUfG/PMUJP9CD5j+fHRX3t6fSPz7W2gk6bvs/WRnuHwqN9D8YFturGCTmP1EZczv0b9I/5t4exabB5D/1ESLh5fTEP9X2z6SYweQ/6lv3I2zT0D9zkRGNUNMAQKoSvc4EIfs/Xggt8wQI5T+mJHHg/w/SP4lhT/9t8vQ/DrZ/DbwH7D+XlhbYZrjkP34LIpFt6c4/lwfp8fLX9L+j96CTTf76v3WdNhEv9uM/d8c3o4lV0D/vFdCHVcsFwAHeDq0F1QhApbYqcZiN5D9KoilqByXLPwX0/diA0vq/0fo0GxnxAMBbaTkvlCzjP/RrFrWXrMs/UYTrky7jA0DB9f4FiZYAQEGAk/3QzeE/r/TeqE8t0D/OqjlsnPbvvz8RKU8JOfW/smSEbK/O4T8MzuyPm3DDP/rFtctq9gZAfb1EVEaSA0Dts5dVInnhP18SFMc79MM/7y34cw6LAMDFrRJsZO0DwC2KLvLSYuA/hx5wcUHewz+49SnK/4ruPyeS0PX9a+E/ZxaaLvvZ3z8WPu5T2QS8Pygo4RIvMqa/BJ0Kqsd0279cKW4ay8jdP3b05bmZ364/10/qtdxk2r+Bcz6CDMvpv54qOw+Amdw/qLV71pW7sT/YKc80nIPUP8OfIaBJ77G/LyTuD1un2z+diYu8efWzP1wU7ACkfwjAZroyPL1yBkAmv3lKJJbbPysKSE4W+p0/dIgqY79TA8ATLTOQ3tsGwJ2zweD/Xdg/XO/jXeFUaL8VW2qLFKfov1cA9Aa6XfK/tIa7YGgI2T+f3hu/sxqPv2nXdPpf3Pc/jkw8Jbda8j+tT/z8tGPVP1yBHpJd35k/KYvYOy1s8j/yz+kCQjPrP9+agH7x59g/PZfJ9aBhpr/rDKzvYBb+PwtkiaGCt/c/vb1mVr+f1T/JIHwHc8Govw7aeF6+9vG/Xv7kD6fp979isYioQYHVP7AIQZuSFrG/3z1AdUTnAUDN3XY9O7f9P0AdQ9ljYNQ/dJANJPTOrb8kLECUiiPlP4yF7UgmStA/9xGmXxCG1T9qZzix4W2zv2SGJRJVrPe/Fh9a2M/B/b8IexzFCoPSP9y1QFD2bLe/Q86cWLJe/b+mOOfYm78BwOTjkPAGE9E/8aPCUKu/ub9pPZyLCiUGwBA7Mev/BQlALOmrlRi+0j+AMJ/dKULBv7iLtL6a6QRAEMDV/yajAUDa62dE3crJP1P70RgBUbq/38hVnR6esT/s1tG10Z/Ov/zLwalHPss/dTS9NKTXx78nMcRzCIEHQAabxDsAmQRA0tyLK3gSyT+Aui7nOhDGv5Gs58z3WgHATN3forJuBMCAui7nOhDGP9Lciyt4Esm/WAJyHQ4c7z8UP5HFIs3iP3U0vTSk18c//MvBqUc+y7+cvv8HLg/Kvy1I/mHsI+K/U/vRGAFRuj/a62dE3crJv8p+WV8KlQjAuQ/nOP43B0CAMJ/dKULBPyzpq5UYvtK/ZoU+VoLh4L9etLlRUfvtv/GjwlCrv7k/5OOQ8AYT0b9DfT9FhufXPwUX8hJp+4u/3LVAUPZstz8IexzFCoPSv9+L609E5fQ/q9Fz7X2J7T9qZzix4W2zP/cRpl8QhtW/vtNilqGX+j8MOy7QJoL0P3SQDST0zq0/QB1D2WNg1L8IIjSvGNkDwGB8Jou2GAfAsAhBm5IWsT9isYioQYHVvyS9D3zb6uy/gnwRa7uM9L/JIHwHc8GoP729Zla/n9W/CsAHJZwmAEDEW6OYT1r6Pz2XyfWgYaY/35qAfvHn2L83Tdy4lS30vxf2/gZ0jPq/XIEekl3fmb+tT/z8tGPVvybPr2zJ1/+/K7mJ0ypVAsCf3hu/sxqPPwCGu2BoCNm/5oITrpZn+r+UDUyDP+n/v1zv413hVGg/nbPB4P9d2L9MlmkxNvgCQMtZlKE85v8/KwpIThb6nb8mv3lKJJbbv8+SZsTvOOc/pQCIIOYw0j+diYu8efWzvy8k7g9bp9u/kxYDa+pKtD9XlYvA8HnVv6i1e9aVu7G/nio7D4CZ3L/WR6rNh5EGwCkgQweBkghAdvTluZnfrr9cKW4ay8jdvxbjhr1f1QVAR5C0MzivAkAWPu5T2QS8v2cWmi772d+/cKj4lzLJCEBx2QJfYrMFQIcecHFB3sO/LYou8tJi4L+jr7lhO38BwIcI0Nb7xgTAXxIUxzv0w7/ts5dVInnhv0T+l8DZLfE/MP3FoFvS5D8MzuyPm3DDv7JkhGyvzuG/tzhzRIRc0b9Ovv3/0z7mv6/03qhPLdC/m4CT/dDN4b9dwjU5VCQBQBBJX1ntCv0/9GsWtZesy79baTkvlCzjv1mjYgEz++S/oW6KnOQW8b9KoilqByXLv6W2KnGYjeS/SmaKz3Vx9z+BZB5yxGHwP3fHN6OJVdC/dZ02ES/2478PuaBjLrXaP4/JU81pPaO/fgsikW3pzr+XlhbYZrjkv4tSn7YDbP0/f2LnFKlF9z+mJHHg/w/Sv14ILfMECOW/mfg4qYhR/b+OP+RQDCACwOpb9yNs09C/1fbPpJjB5L9pN2WOVZ3wv3hHy9nxIve/URlzO/Rv0r8YFturGCTmv1d1/KKR8QPA8gsy9qzSB8CfHRX3t6fSvzzFCT/Qg+a/EYStnrzV9r/2QJqI7Lb9v/YEIrTDINW/LbFE4JPi5r/7kQEs5fEDQHunnf4GeQBAooj9BX7L2L+oPOc8Uzzpv+ydYY2SSAfAL4HK6CRTB0BH3yUkWpDZv2wvsfFmQ+i/Ik0Yzruh6T8fM3LoGoDUP3oSeovukti/S/ycXKkd6r9rEv+7UWcHQCRIQe/GfwNAa36Abk+y2b9BLWR4ssrpv9KT87qa0bM/FTyktw823L8WyyI/BbLgv4hlM1gubOq/DizMp9Ki6r8b5ckdjVrzv5NVbYtSON+/BBqJ+C6O7L/dUBFqgyXYv00Wh18r7+q/7RAy9h8/4L8W8t/TUc3rv4RM5DKx3wDAfvWIj94aBcBsc1IetODgv3oY0nYIW+y/oGcTFF54AUDkJqS/FKX6PwzNxsC7AOC/ltfN1PUC7L+5Wrz/zHnzP6688w2rNOc/YeV9neCo4b9nlSHXANfuvw9RsxKjY/s/1V8GteXE8j+1C8NdDcfiv2wlcW3YZO+/IOywaA7Q8b9bFP+4Tg36v4GTTeNZi+O/9t/ywdRi77+tRc3yFR7eP2bkcHXJkLO//ITc9SjT4r+qoBf2J0nwv2YHKoswwfm/iQcLspCjAcCb6wCzCvXkvwXv9rkMT/C/YkuwYAMXBMApCNUai9kIwMORhtNuJ+e/BVt01fKF8L+ZqWEfvIjsP6h693QZYNk/WyOTkB2i5b8of+GtdSDxvwpaaulDSwVADMQAX+lOAECEHWF8XNPmv1cr/B+VnvG/XyFG6opcCMD/mtR32/UEQP+2XEF3hui/ulBTjAt88r/imfCfRP+yP9zbvtc8XeO/TZuKJD5G6b/MaTExyXzyvxiTQeElXOO/rbJRQVGN9L/z0wR2g9DqvxOqKRxEX/O/FDGCEei99j9x8zV4VYTmP2lzCnsYk+u/l6ELZ9tg878pRXacaDT/v3k6GZRqoQXAVB67LiP56r94+LDK0Sn0vwO6pZ9b7wFAvK0nKVcc9j8+U/hCvyruv6QMsuuLQ/W/FPhKFYv46j8MyxaDTOW/v9L18g1caO2/vebfvctE9b/7GD8ZrF3xv3gx1AR9bQDAuMEtsM4c77+SabgA2nj0v5xKFIwxsATArKNSBaKsB0Cjara6ozTwv33ArMz7sfa/dF2U0FcWCcDxL357DJX/P69pJmt7c/G/quJYWJZl+L/YntVJlnrSP4sRLzXM+fe/46uU8w3c8r+q4lhYlmX4v85lu5+QRwRAsI0H/WU8479jaeZNtj/zv6riWFiWZfi/sI0H/WU847/OZbufkEcEQHAoPUBrnss/9exKzDtFtT88wM8kax+gP9OqeKeAYog/MW0ItiZvcj+ph+smvt5bP2lCaV5dEUU/StaUmQDaLz+kK9y22BMYP0O3whZuMwI/IIbgZGWE6z7UkjYaEM3UPuezxwa9cr8+LybxRMnFpz6E1N8DbPiRPsYjySMvK3s+//////8fAAj//////zMQCP////9/MiAI/////28yMAj/////YzJACP///z9iMlAI////N2IyYAj///8zYjJwCP//vzNiMoAI//+rM2IykAj/f6szYjKgCP8PqzNiMrAI/wOrM2IywAi/A6szYjLQCJ8DqzNiMuAImQOrM2Iy8Aj//////z8PCP//////Kx8I/////38pLwj/////Pyk/CP////85KU8I////PzgpXwj///8POClvCP///w44KX8I//8fDjgpjwj//w8OOCmfCP9/DQ44Ka8I/w8NDjgpvwj/DQ0OOCnPCP8MDQ44Kd8IxwwNDjgp7wjEDA0OOCn/CAcAAAAHAAAAAQAAAAIAAAAEAAAAAwAAAAAAAAAAAAAABwAAAAMAAAABAAAAAgAAAAUAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAGAAAAAgAAAAMAAAAFAAAABAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAwAAAAEAAAAFAAAABAAAAAAAAAAAAAAABwAAAAUAAAADAAAABAAAAAEAAAAAAAAAAgAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAABgtRFT7Ifk/GC1EVPsh+b8YLURU+yEJQBgtRFT7IQnAYWxnb3MuYwBoM05laWdoYm9yUm90YXRpb25zAGNvb3JkaWprLmMAX3VwQXA3Q2hlY2tlZABfdXBBcDdyQ2hlY2tlZABkaXJlY3RlZEVkZ2UuYwBkaXJlY3RlZEVkZ2VUb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpclt0bXBGaWprLmZhY2VdW2ZpamsuZmFjZV0gPT0gS0kAZmFjZWlqay5jAF9mYWNlSWprUGVudFRvQ2VsbEJvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9DZWxsQm91bmRhcnkAaDNJbmRleC5jAGNvbXBhY3RDZWxscwBsYXRMbmdUb0NlbGwAY2VsbFRvQ2hpbGRQb3MAdmFsaWRhdGVDaGlsZFBvcwBsYXRMbmcuYwBjZWxsQXJlYVJhZHMyAHBvbHlnb24tPm5leHQgPT0gTlVMTABsaW5rZWRHZW8uYwBhZGROZXdMaW5rZWRQb2x5Z29uAG5leHQgIT0gTlVMTABsb29wICE9IE5VTEwAYWRkTmV3TGlua2VkTG9vcABwb2x5Z29uLT5maXJzdCA9PSBOVUxMAGFkZExpbmtlZExvb3AAY29vcmQgIT0gTlVMTABhZGRMaW5rZWRDb29yZABsb29wLT5maXJzdCA9PSBOVUxMAGlubmVyTG9vcHMgIT0gTlVMTABub3JtYWxpemVNdWx0aVBvbHlnb24AYmJveGVzICE9IE5VTEwAY2FuZGlkYXRlcyAhPSBOVUxMAGZpbmRQb2x5Z29uRm9ySG9sZQBjYW5kaWRhdGVCQm94ZXMgIT0gTlVMTAByZXZEaXIgIT0gSU5WQUxJRF9ESUdJVABsb2NhbGlqLmMAY2VsbFRvTG9jYWxJamsAYmFzZUNlbGwgIT0gb3JpZ2luQmFzZUNlbGwAIShvcmlnaW5PblBlbnQgJiYgaW5kZXhPblBlbnQpAGJhc2VDZWxsID09IG9yaWdpbkJhc2VDZWxsAGJhc2VDZWxsICE9IElOVkFMSURfQkFTRV9DRUxMAGxvY2FsSWprVG9DZWxsACFfaXNCYXNlQ2VsbFBlbnRhZ29uKGJhc2VDZWxsKQBiYXNlQ2VsbFJvdGF0aW9ucyA+PSAwAGdyaWRQYXRoQ2VsbHMAcG9seWZpbGwuYwBpdGVyU3RlcFBvbHlnb25Db21wYWN0ADAAdmVydGV4LmMAdmVydGV4Um90YXRpb25zAGNlbGxUb1ZlcnRleABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";var G="function"==typeof atob?atob:function(A){var e,t,r,n,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",l=0;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{e=a.indexOf(A.charAt(l++))<<2|(n=a.indexOf(A.charAt(l++)))>>4,t=(15&n)<<4|(o=a.indexOf(A.charAt(l++)))>>2,r=(3&o)<<6|(i=a.indexOf(A.charAt(l++))),s+=String.fromCharCode(e),64!==o&&(s+=String.fromCharCode(t)),64!==i&&(s+=String.fromCharCode(r))}while(l=0){if((0|t)>13780509){if(0|(a=0|le(15,s)))break;s=0|n[(l=s)>>2],l=0|n[l+4>>2]}else c=0|Xe(0|t,0|(a=((0|t)<0)<<31>>31),3,0),l=0|B(),a=0|We(0|t,0|a,1,0),a=0|We(0|(a=0|Xe(0|c,0|l,0|a,0|B())),0|B(),1,0),l=0|B(),n[s>>2]=a,n[s+4>>2]=l,s=a;if(lt(0|r,0,s<<3),0|o){lt(0|o,0,s<<2),a=0|L(A,e,t,r,o,s,l,0);break}(a=0|Ve(s,4))?(c=0|L(A,e,t,r,a,s,l,0),Ye(a),a=c):a=13}else a=2}while(0);return S=i,0|a}function T(A,e,t,r,o){A|=0,e|=0,t|=0,r|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(a=S,S=S+16|0,m=a+8|0,n[(h=i=a)>>2]=A,n[h+4>>2]=e,(0|t)<0)return S=a,2;if(n[(s=r)>>2]=A,n[s+4>>2]=e,(s=!!(0|o))&&(n[o>>2]=0),0|HA(A,e))return S=a,9;n[m>>2]=0;A:do{if((0|t)>=1)if(s)for(f=1,d=0,g=0,h=1,s=A;;){if(!(d|g)){if(0|(s=0|I(s,e,4,m,i)))break A;if(0|HA(s=0|n[(e=i)>>2],e=0|n[e+4>>2])){s=9;break A}}if(0|(s=0|I(s,e,0|n[26800+(g<<2)>>2],m,i)))break A;if(s=0|n[(e=i)>>2],e=0|n[e+4>>2],n[(A=r+(f<<3)|0)>>2]=s,n[A+4>>2]=e,n[o+(f<<2)>>2]=h,l=(0|(A=d+1|0))==(0|h),u=6==(0|(c=g+1|0)),0|HA(s,e)){s=9;break A}if((0|(h=h+(u&l&1)|0))>(0|t)){s=0;break}f=f+1|0,d=l?0:A,g=l?u?0:c:g}else for(f=1,d=0,g=0,h=1,s=A;;){if(!(d|g)){if(0|(s=0|I(s,e,4,m,i)))break A;if(0|HA(s=0|n[(e=i)>>2],e=0|n[e+4>>2])){s=9;break A}}if(0|(s=0|I(s,e,0|n[26800+(g<<2)>>2],m,i)))break A;if(s=0|n[(e=i)>>2],e=0|n[e+4>>2],n[(A=r+(f<<3)|0)>>2]=s,n[A+4>>2]=e,l=(0|(A=d+1|0))==(0|h),u=6==(0|(c=g+1|0)),0|HA(s,e)){s=9;break A}if((0|(h=h+(u&l&1)|0))>(0|t)){s=0;break}f=f+1|0,d=l?0:A,g=l?u?0:c:g}else s=0}while(0);return S=a,0|s}function L(A,e,t,r,o,i,a,s){t|=0,r|=0,o|=0,s|=0;var l,c,u,d=0,f=0,g=0,h=0,m=0,b=0,p=0;if(u=S,S=S+16|0,l=u+8|0,c=u,d=0|At(0|(A|=0),0|(e|=0),0|(i|=0),0|(a|=0)),g=0|B(),!(!(0|(p=0|n[(b=h=r+(d<<3)|0)>>2]))&!(0|(b=0|n[b+4>>2]))|(f=(0|p)==(0|A)&(0|b)==(0|e))))do{d=0|$e(0|(d=0|We(0|d,0|g,1,0)),0|B(),0|i,0|a),g=0|B(),f=(0|(b=0|n[(p=h=r+(d<<3)|0)>>2]))==(0|A)&(0|(p=0|n[p+4>>2]))==(0|e)}while(!(!(0|b)&!(0|p)|f));if(d=o+(d<<2)|0,f&&(0|n[d>>2])<=(0|s))return S=u,0;if(n[(p=h)>>2]=A,n[p+4>>2]=e,n[d>>2]=s,(0|s)>=(0|t))return S=u,0;switch(f=s+1|0,n[l>>2]=0,0|(d=0|I(A,e,2,l,c))){case 9:m=9;break;case 0:(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f))||(m=9)}A:do{if(9==(0|m)){switch(n[l>>2]=0,0|(d=0|I(A,e,3,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,1,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,5,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,4,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}switch(n[l>>2]=0,0|(d=0|I(A,e,6,l,c))){case 9:break;case 0:if(0|(d=0|L(0|n[(d=c)>>2],0|n[d+4>>2],t,r,o,i,a,f)))break A;break;default:break A}return S=u,0}}while(0);return S=u,0|d}function I(A,e,t,r,o){A|=0,e|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0;if((t|=0)>>>0>6)return 1;if(d=(0|n[(r|=0)>>2])%6|0,n[r>>2]=d,(0|d)>0){s=0;do{t=0|vA(t),s=s+1|0}while((0|s)<(0|n[r>>2]))}if(d=0|tt(0|A,0|e,45),B(),(a=127&d)>>>0>121)return 5;i=0|UA(A,e),s=0|tt(0|A,0|e,52),B(),s&=15;A:do{if(s){for(;;){if(c=0|tt(0|A,0|e,0|(l=3*(15-s|0)|0)),B(),7==(0|(c&=7))){e=5;break}if(g=!(0|ZA(s)),s=s+-1|0,f=0|rt(7,0,0|l),e&=~B(),A=0|rt(0|n[(g?432:16)+(28*c|0)+(t<<2)>>2],0,0|l)|A&~f,e|=l=0|B(),!(t=0|n[(g?640:224)+(28*c|0)+(t<<2)>>2])){t=0;break A}if(!s){u=8;break A}}return 0|e}u=8}while(0);8==(0|u)&&(A|=0|rt(0|(g=0|n[848+(28*a|0)+(t<<2)>>2]),0,45),e=B()|-1040385&e,t=0|n[4272+(28*a|0)+(t<<2)>>2],127&~g||(g=0|rt(0|n[848+(28*a|0)+20>>2],0,45),e=B()|-1040385&e,t=0|n[4272+(28*a|0)+20>>2],A=0|YA(g|A,e),e=0|B(),n[r>>2]=1+(0|n[r>>2]))),c=0|tt(0|A,0|e,45),B(),c&=127;A:do{if(0|z(c)){e:do{if(1==(0|UA(A,e))){if((0|a)!=(0|c)){if(0|Y(c,0|n[7696+(28*a|0)>>2])){A=0|WA(A,e),l=1,e=0|B();break}M(27795,26864,533,26872)}switch(0|i){case 3:A=0|YA(A,e),e=0|B(),n[r>>2]=1+(0|n[r>>2]),l=0;break e;case 5:A=0|WA(A,e),e=0|B(),n[r>>2]=5+(0|n[r>>2]),l=0;break e;case 0:return 9;default:return 1}}else l=0}while(0);if((0|t)>0){s=0;do{A=0|OA(A,e),e=0|B(),s=s+1|0}while((0|s)!=(0|t))}if((0|a)!=(0|c)){if(!(0|G(c))){if(!!(0|l)|5!=(0|UA(A,e)))break;n[r>>2]=1+(0|n[r>>2]);break}switch(127&d){case 8:case 118:break A}3!=(0|UA(A,e))&&(n[r>>2]=1+(0|n[r>>2]))}}else if((0|t)>0){s=0;do{A=0|YA(A,e),e=0|B(),s=s+1|0}while((0|s)!=(0|t))}}while(0);return n[r>>2]=((0|n[r>>2])+t|0)%6|0,n[(g=o)>>2]=A,n[g+4>>2]=e,0}function R(A,e,t,r){A|=0,e|=0,t|=0,r|=0;var o,i,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0;if(i=S,S=S+16|0,h=i+8|0,n[(g=o=i)>>2]=A,n[g+4>>2]=e,(0|t)<0)return S=i,2;if(!t)return n[(h=r)>>2]=A,n[h+4>>2]=e,S=i,0;n[h>>2]=0;A:do{if(0|HA(A,e))A=9;else{a=0,g=A;do{if(0|(A=0|I(g,e,4,h,o)))break A;if(a=a+1|0,0|HA(g=0|n[(e=o)>>2],e=0|n[e+4>>2])){A=9;break A}}while((0|a)<(0|t));n[(f=r)>>2]=g,n[f+4>>2]=e,f=t+-1|0,d=0,A=1;do{if(a=26800+(d<<2)|0,5==(0|d))for(l=0|n[a>>2],s=0,a=A;;){if(0|(A=0|I(0|n[(A=o)>>2],0|n[A+4>>2],l,h,o)))break A;if((0|s)!=(0|f)){if(c=0|n[(u=o)>>2],u=0|n[u+4>>2],n[(A=r+(a<<3)|0)>>2]=c,n[A+4>>2]=u,0|HA(c,u)){A=9;break A}A=a+1|0}else A=a;if((0|(s=s+1|0))>=(0|t))break;a=A}else for(l=o,u=0|n[a>>2],c=0,a=A,s=0|n[l>>2],l=0|n[l+4>>2];;){if(0|(A=0|I(s,l,u,h,o)))break A;if(s=0|n[(l=o)>>2],l=0|n[l+4>>2],n[(A=r+(a<<3)|0)>>2]=s,n[A+4>>2]=l,A=a+1|0,0|HA(s,l)){A=9;break A}if((0|(c=c+1|0))>=(0|t))break;a=A}d=d+1|0}while(d>>>0<6);A=(0|g)==(0|n[(A=o)>>2])&&(0|e)==(0|n[A+4>>2])?0:9}}while(0);return S=i,0|A}function _(A,e,t,r){t|=0,r|=0;var o,i,a,s=0,l=0;for(a=S,S=S+16|0,o=a,i=a+8|0,s=(s=!(0|HA(A|=0,e|=0)))?1:2;;){if(n[i>>2]=0,!(0|I(A,e,s,i,o))&((0|n[(l=o)>>2])==(0|t)?(0|n[l+4>>2])==(0|r):0)){A=4;break}if((s=s+1|0)>>>0>=7){s=7,A=4;break}}return 4==(0|A)?(S=a,0|s):0}function H(A,e,t,r,i,a,s){e|=0,t|=0,r|=0,i|=0,a|=0,s|=0;var l,c,u,d,f,g,h,m,b,p,v=0,y=0,w=0,x=0,k=0,C=0,M=0,D=0,E=0,j=0,Q=0,N=0,F=0,P=0,T=0,L=0,I=0,R=0,_=0;if(p=S,S=S+64|0,h=p+48|0,m=p+32|0,b=p+24|0,l=p+8|0,c=p,(0|(y=0|n[(A|=0)>>2]))<=0)return S=p,0;for(u=A+4|0,d=h+8|0,f=m+8|0,g=l+8|0,v=0,F=0;;){N=(w=0|n[u>>2])+(F<<4)|0,n[h>>2]=n[N>>2],n[h+4>>2]=n[N+4>>2],n[h+8>>2]=n[N+8>>2],n[h+12>>2]=n[N+12>>2],(0|F)==(y+-1|0)?(n[m>>2]=n[w>>2],n[m+4>>2]=n[w+4>>2],n[m+8>>2]=n[w+8>>2],n[m+12>>2]=n[w+12>>2]):(N=w+(F+1<<4)|0,n[m>>2]=n[N>>2],n[m+4>>2]=n[N+4>>2],n[m+8>>2]=n[N+8>>2],n[m+12>>2]=n[N+12>>2]),y=0|tA(h,m,r,b);A:do{if(y)w=0,v=y;else if(w=0|n[(y=b)>>2],(0|(y=0|n[y+4>>2]))>0|!(0|y)&w>>>0>0){Q=0,N=0;e:for(;;){if(I=1/(+(w>>>0)+4294967296*+(0|y)),_=+o[h>>3],R=+((y=0|Ze(0|w,0|y,0|Q,0|N))>>>0)+4294967296*+(0|B()),L=+(Q>>>0)+4294967296*+(0|N),o[l>>3]=I*(_*R)+I*(+o[m>>3]*L),o[g>>3]=I*(+o[d>>3]*R)+I*(+o[f>>3]*L),0|(y=0|KA(l,r,c))){v=y;break}C=0|At(0|(E=0|n[(j=c)>>2]),0|(j=0|n[j+4>>2]),0|e,0|t),x=0|B(),w=0|n[(k=y=s+(C<<3)|0)>>2],k=0|n[k+4>>2];t:do{if(!(0|w)&!(0|k))P=y,T=16;else for(M=0,D=0;;){if((0|M)>(0|t)|(0|M)==(0|t)&D>>>0>e>>>0){v=1;break e}if((0|w)==(0|E)&(0|k)==(0|j))break t;if(C=0|$e(0|(y=0|We(0|C,0|x,1,0)),0|B(),0|e,0|t),x=0|B(),D=0|We(0|D,0|M,1,0),M=0|B(),!(0|(w=0|n[(k=y=s+(C<<3)|0)>>2]))&!(0|(k=0|n[k+4>>2]))){P=y,T=16;break}}}while(0);if(16!=(0|T)||(T=0,!(0|E)&!(0|j))||(n[(D=P)>>2]=E,n[D+4>>2]=j,D=a+(n[i>>2]<<3)|0,n[D>>2]=E,n[D+4>>2]=j,D=0|We(0|n[(D=i)>>2],0|n[D+4>>2],1,0),E=0|B(),n[(j=i)>>2]=D,n[j+4>>2]=E),Q=0|We(0|Q,0|N,1,0),N=0|B(),w=0|n[(y=b)>>2],!((0|(y=0|n[y+4>>2]))>(0|N)|(0|y)==(0|N)&w>>>0>Q>>>0)){w=1;break A}}w=0}else w=1}while(0);if(F=F+1|0,!w){T=21;break}if((0|F)>=(0|(y=0|n[A>>2]))){v=0,T=21;break}}return 21==(0|T)?(S=p,0|v):0}function z(A){return(A|=0)>>>0>121?0|(A=0):0|(A=0|n[7696+(28*A|0)+16>>2])}function G(A){return 4==(0|(A|=0))|117==(0|A)|0}function U(A){return 0|n[11120+(216*(0|n[(A|=0)>>2])|0)+(72*(0|n[A+4>>2])|0)+(24*(0|n[A+8>>2])|0)+(n[A+12>>2]<<3)>>2]}function O(A){return 0|n[11120+(216*(0|n[(A|=0)>>2])|0)+(72*(0|n[A+4>>2])|0)+(24*(0|n[A+8>>2])|0)+(n[A+12>>2]<<3)+4>>2]}function Y(A,e){return e|=0,(0|n[7696+(28*(A|=0)|0)+20>>2])==(0|e)?0|(e=1):0|(e=(0|n[7696+(28*A|0)+24>>2])==(0|e))}function V(A,e){return 0|n[848+(28*(A|=0)|0)+((e|=0)<<2)>>2]}function W(A,e){return e|=0,(0|n[848+(28*(A|=0)|0)>>2])==(0|e)?0|(e=0):(0|n[848+(28*A|0)+4>>2])==(0|e)?0|(e=1):(0|n[848+(28*A|0)+8>>2])==(0|e)?0|(e=2):(0|n[848+(28*A|0)+12>>2])==(0|e)?0|(e=3):(0|n[848+(28*A|0)+16>>2])==(0|e)?0|(e=4):(0|n[848+(28*A|0)+20>>2])==(0|e)?0|(e=5):0|((0|n[848+(28*A|0)+24>>2])==(0|e)?6:7)}function Z(A){var e,t,r;return e=(r=+o[16+(A|=0)>>3])-(t=+o[A+24>>3]),+(r>3]<+o[A+24>>3]|0}function J(A){return+(+o[(A|=0)>>3]-+o[A+8>>3])}function q(A,e){A|=0;var t,r,n=0;return(n=+o[(e|=0)>>3])>=+o[A+8>>3]&&n<=+o[A>>3]?(t=+o[A+16>>3],n=+o[A+24>>3],e=(r=+o[e+8>>3])>=n,A=r<=t&1,t>3]<+o[e+8>>3]||+o[A+8>>3]>+o[e>>3]?0|(s=0):(n=(l=+o[A+16>>3])<(u=+o[(t=A+24|0)>>3]),c=(a=+o[(s=e+16|0)>>3])<(i=+o[(r=e+24|0)>>3]),e=u-a>3],e)||(u=+ie(+o[t>>3],A))>+ie(+o[s>>3],e)?0|(c=0):0|(c=1))}function $(A,e){e|=0;var t,r,n,i,a,s=0,l=0,c=0,u=0;return+o[(A|=0)>>3]<+o[e>>3]||+o[A+8>>3]>+o[e+8>>3]?0|(s=0):(n=(i=+o[(s=A+16|0)>>3])<(l=+o[A+24>>3]),c=(u=+o[(t=e+16|0)>>3])<(a=+o[(r=e+24|0)>>3]),e=l-u>3],e)?0|(c=(u=+ie(+o[s>>3],A))>=+ie(+o[t>>3],e)):0|(c=0))}function AA(A,e){A|=0,e|=0;var t,r,i,a,s,l=0;i=S,S=S+176|0,n[(r=i)>>2]=4,l=+o[e>>3],o[r+8>>3]=l,a=+o[e+16>>3],o[r+16>>3]=a,o[r+24>>3]=l,l=+o[e+24>>3],o[r+32>>3]=l,s=+o[e+8>>3],o[r+40>>3]=s,o[r+48>>3]=l,o[r+56>>3]=s,o[r+64>>3]=a,t=96+(e=r+72|0)|0;do{n[e>>2]=0,e=e+4|0}while((0|e)<(0|t));st(0|A,0|r,168),S=i}function eA(A,e,t){A|=0,e|=0,t|=0;var r,a,c,u,d,f,g,h=0,m=0,b=0,p=0,y=0,x=0,k=0;f=S,S=S+288|0,d=f+264|0,p=f+96|0,m=(h=b=f)+96|0;do{n[h>>2]=0,h=h+4|0}while((0|h)<(0|m));return 0|(e=0|Ae(e,b))?(S=f,0|(x=e)):(XA(b=0|n[(m=b)>>2],m=0|n[m+4>>2],d),$A(b,m,p),u=+ae(d,p+8|0),o[d>>3]=+o[A>>3],o[(m=d+8|0)>>3]=+o[A+16>>3],o[p>>3]=+o[A+8>>3],o[(b=p+8|0)>>3]=+o[A+24>>3],a=+ae(d,p),k=+o[m>>3]-+o[b>>3],c=+l(+k),g=+o[d>>3]-+o[p>>3],r=+l(+g),!(0==k|0==g)&&(k=+ot(+c,+r),k=+v(+a*a/+it(+k/+it(+c,+r),3)/(u*(2.59807621135*u)*.8)),o[i>>3]=k,y=~~k>>>0,x=+l(k)>=1?k>0?~~+w(+s(k/4294967296),4294967295)>>>0:~~+v((k-+(~~k>>>0))/4294967296)>>>0:0,2146435072&~n[i+4>>2])?(p=!(0|y)&!(0|x),n[(e=t)>>2]=p?1:y,n[e+4>>2]=p?0:x,e=0):e=1,S=f,0|(x=e))}function tA(A,e,t,r){A|=0,e|=0,t|=0,r|=0;var a,c,u,d,f=0,g=0,h=0;d=S,S=S+288|0,c=d+264|0,u=d+96|0,a=(f=g=d)+96|0;do{n[f>>2]=0,f=f+4|0}while((0|f)<(0|a));return 0|(t=0|Ae(t,g))?(S=d,0|(r=t)):(XA(f=0|n[(t=g)>>2],t=0|n[t+4>>2],c),$A(f,t,u),h=+ae(c,u+8|0),h=+v(+ +ae(A,e)/(2*h)),o[i>>3]=h,t=~~h>>>0,f=+l(h)>=1?h>0?~~+w(+s(h/4294967296),4294967295)>>>0:~~+v((h-+(~~h>>>0))/4294967296)>>>0:0,2146435072&~n[i+4>>2]?(g=!(0|t)&!(0|f),n[r>>2]=g?1:t,n[r+4>>2]=g?0:f,S=d,0|(r=0)):(S=d,0|(r=1)))}function rA(A,e,t,r){e|=0,t|=0,r|=0,n[(A|=0)>>2]=e,n[A+4>>2]=t,n[A+8>>2]=r}function nA(A){var e,t=0,r=0,o=0,i=0,a=0;t=0|n[(A|=0)>>2],r=0|n[(e=A+4|0)>>2],(0|t)<0&&(r=r-t|0,n[e>>2]=r,n[(a=A+8|0)>>2]=(0|n[a>>2])-t,n[A>>2]=0,t=0),(0|r)<0?(t=t-r|0,n[A>>2]=t,i=(0|n[(a=A+8|0)>>2])-r|0,n[a>>2]=i,n[e>>2]=0,r=0):(a=i=A+8|0,i=0|n[i>>2]),(0|i)<0&&(t=t-i|0,n[A>>2]=t,r=r-i|0,n[e>>2]=r,n[a>>2]=0,i=0),(0|(o=(0|i)<(0|(o=(0|r)<(0|t)?r:t))?i:o))<=0||(n[A>>2]=t-o,n[e>>2]=r-o,n[a>>2]=i-o)}function oA(A,e){var t,r;e|=0,r=0|n[8+(A|=0)>>2],t=+((0|n[A+4>>2])-r|0),o[e>>3]=+((0|n[A>>2])-r|0)-.5*t,o[e+8>>3]=.8660254037844386*t}function iA(A,e,t){A|=0,e|=0,n[(t|=0)>>2]=(0|n[e>>2])+(0|n[A>>2]),n[t+4>>2]=(0|n[e+4>>2])+(0|n[A+4>>2]),n[t+8>>2]=(0|n[e+8>>2])+(0|n[A+8>>2])}function aA(A,e,t){A|=0,e|=0,n[(t|=0)>>2]=(0|n[A>>2])-(0|n[e>>2]),n[t+4>>2]=(0|n[A+4>>2])-(0|n[e+4>>2]),n[t+8>>2]=(0|n[A+8>>2])-(0|n[e+8>>2])}function sA(A,e){e|=0;var t,r=0;r=0|y(0|n[(A|=0)>>2],e),n[A>>2]=r,t=0|y(0|n[(r=A+4|0)>>2],e),n[r>>2]=t,e=0|y(0|n[(A=A+8|0)>>2],e),n[A>>2]=e}function lA(A){var e,t,r=0,o=0,i=0,a=0,s=0;s=(0|(t=0|n[(A|=0)>>2]))<0,A=(A=(o=(0|(a=((e=(0|(i=(0|n[A+4>>2])-(s?t:0)|0))<0)?0-i|0:0)+((0|n[A+8>>2])-(s?t:0))|0))<0)?0:a)-((i=(0|(o=(0|A)<(0|(o=(0|(r=(e?0:i)-(o?a:0)|0))<(0|(a=(s?0:t)-(e?i:0)-(o?a:0)|0))?r:a))?A:o))>0)?o:0)|0,r=r-(i?o:0)|0;A:do{switch(a-(i?o:0)|0){case 0:switch(0|r){case 0:return 0|(0|A?1==(0|A)?1:7:0);case 1:return 0|(0|A?1==(0|A)?3:7:2);default:break A}case 1:switch(0|r){case 0:return 0|(0|A?1==(0|A)?5:7:4);case 1:if(A)break A;return 6;default:break A}}}while(0);return 7}function cA(A){var e,t,r=0,o=0,i=0,a=0,s=0,l=0,c=0;if(l=0|n[(t=8+(A|=0)|0)>>2],(e=(0|n[A>>2])-l|0)>>>0>715827881|(l=(0|n[(c=A+4|0)>>2])-l|0)>>>0>715827881){if(a=2147483647-e|0,s=-2147483648-e|0,(i=(0|e)>0)?(0|a)<(0|e):(0|s)>(0|e))return 1;if(o=e<<1,i?(2147483647-o|0)<(0|e):(-2147483648-o|0)>(0|e))return 1;if((0|l)>0?(2147483647-l|0)<(0|l):(-2147483648-l|0)>(0|l))return 1;if(r=3*e|0,o=l<<1,(i?(0|a)<(0|o):(0|s)>(0|o))||((0|e)>-1?(-2147483648|r)>=(0|l):(-2147483648^r)<(0|l)))return 1}else o=l<<1,r=3*e|0;return i=0|Ue(.14285714285714285*+(r-l|0)),n[A>>2]=i,a=0|Ue(.14285714285714285*+(o+e|0)),n[c>>2]=a,n[t>>2]=0,r=(o=(0|a)<(0|i))?i:a,(0|(o=o?a:i))<0&&((-2147483648==(0|o)||((0|r)>0?(2147483647-r|0)<(0|o):(-2147483648-r|0)>(0|o)))&&M(27795,26892,354,26903),((0|r)>-1?(-2147483648|r)>=(0|o):(-2147483648^r)<(0|o))&&M(27795,26892,354,26903)),r=a-i|0,(0|i)<0?(o=0-i|0,n[c>>2]=r,n[t>>2]=o,n[A>>2]=0,i=0):(r=a,o=0),(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[t>>2]=o,n[c>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[c>>2]=a,n[t>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[c>>2]=r-i,n[t>>2]=o-i),0}function uA(A){var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0;if(i=0|n[(e=8+(A|=0)|0)>>2],(a=(0|n[A>>2])-i|0)>>>0>715827881|(i=(0|n[(s=A+4|0)>>2])-i|0)>>>0>715827881){if((r=(0|a)>0)?(2147483647-a|0)<(0|a):(-2147483648-a|0)>(0|a))return 1;if(t=a<<1,(o=(0|i)>0)?(2147483647-i|0)<(0|i):(-2147483648-i|0)>(0|i))return 1;if(l=i<<1,o?(2147483647-l|0)<(0|i):(-2147483648-l|0)>(0|i))return 1;if(r?(2147483647-t|0)<(0|i):(-2147483648-t|0)>(0|i))return 1;if(r=3*i|0,(0|i)>-1?(-2147483648|r)>=(0|a):(-2147483648^r)<(0|a))return 1}else r=3*i|0,t=a<<1;return o=0|Ue(.14285714285714285*+(t+i|0)),n[A>>2]=o,i=0|Ue(.14285714285714285*+(r-a|0)),n[s>>2]=i,n[e>>2]=0,t=(r=(0|i)<(0|o))?o:i,(0|(r=r?i:o))<0&&((-2147483648==(0|r)||((0|t)>0?(2147483647-t|0)<(0|r):(-2147483648-t|0)>(0|r)))&&M(27795,26892,402,26917),((0|t)>-1?(-2147483648|t)>=(0|r):(-2147483648^t)<(0|r))&&M(27795,26892,402,26917)),t=i-o|0,(0|o)<0?(r=0-o|0,n[s>>2]=t,n[e>>2]=r,n[A>>2]=0,o=0):(t=i,r=0),(0|t)<0&&(o=o-t|0,n[A>>2]=o,r=r-t|0,n[e>>2]=r,n[s>>2]=0,t=0),a=o-r|0,i=t-r|0,(0|r)<0?(n[A>>2]=a,n[s>>2]=i,n[e>>2]=0,t=i,i=a,r=0):i=o,(0|(o=(0|r)<(0|(o=(0|t)<(0|i)?t:i))?r:o))<=0||(n[A>>2]=i-o,n[s>>2]=t-o,n[e>>2]=r-o),0}function dA(A){var e,t,r=0,o=0,i=0,a=0,s=0;o=0|n[(e=8+(A|=0)|0)>>2],i=0|Ue(.14285714285714285*+((3*(r=(0|n[A>>2])-o|0)|0)-(o=(0|n[(t=A+4|0)>>2])-o|0)|0)),n[A>>2]=i,r=0|Ue(.14285714285714285*+((o<<1)+r|0)),n[t>>2]=r,n[e>>2]=0,o=r-i|0,(0|i)<0?(s=0-i|0,n[t>>2]=o,n[e>>2]=s,n[A>>2]=0,r=o,i=0,o=s):o=0,(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[e>>2]=o,n[t>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[t>>2]=a,n[e>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=r-i,n[e>>2]=o-i)}function fA(A){var e,t,r=0,o=0,i=0,a=0,s=0;o=0|n[(e=8+(A|=0)|0)>>2],i=0|Ue(.14285714285714285*+(((r=(0|n[A>>2])-o|0)<<1)+(o=(0|n[(t=A+4|0)>>2])-o|0)|0)),n[A>>2]=i,r=0|Ue(.14285714285714285*+((3*o|0)-r|0)),n[t>>2]=r,n[e>>2]=0,o=r-i|0,(0|i)<0?(s=0-i|0,n[t>>2]=o,n[e>>2]=s,n[A>>2]=0,r=o,i=0,o=s):o=0,(0|r)<0&&(i=i-r|0,n[A>>2]=i,o=o-r|0,n[e>>2]=o,n[t>>2]=0,r=0),s=i-o|0,a=r-o|0,(0|o)<0?(n[A>>2]=s,n[t>>2]=a,n[e>>2]=0,r=a,a=s,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|r)<(0|a)?r:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=r-i,n[e>>2]=o-i)}function gA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],i=0|n[(t=A+4|0)>>2],a=0|n[(r=A+8|0)>>2],s=i+(3*o|0)|0,n[A>>2]=s,i=a+(3*i|0)|0,n[t>>2]=i,o=(3*a|0)+o|0,n[r>>2]=o,a=i-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=a,n[r>>2]=o,n[A>>2]=0,i=a,a=0):a=s,(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function hA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=(3*(o=0|n[(t=A+4|0)>>2])|0)+s|0,s=(i=0|n[(r=A+8|0)>>2])+(3*s|0)|0,n[A>>2]=s,n[t>>2]=a,o=(3*i|0)+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,s=0):i=a,(0|i)<0&&(s=s-i|0,n[A>>2]=s,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=s-o|0,a=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=a,n[r>>2]=0,s=e,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|a)<(0|s)?a:s))?o:i))<=0||(n[A>>2]=s-i,n[t>>2]=a-i,n[r>>2]=o-i)}function mA(A,e){A|=0;var t,r,o,i=0,a=0,s=0;((e|=0)-1|0)>>>0>=6||(s=(0|n[15440+(12*e|0)>>2])+(0|n[A>>2])|0,n[A>>2]=s,o=A+4|0,a=(0|n[15440+(12*e|0)+4>>2])+(0|n[o>>2])|0,n[o>>2]=a,r=A+8|0,e=(0|n[15440+(12*e|0)+8>>2])+(0|n[r>>2])|0,n[r>>2]=e,i=a-s|0,(0|s)<0?(e=e-s|0,n[o>>2]=i,n[r>>2]=e,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,e=e-i|0,n[r>>2]=e,n[o>>2]=0,i=0),t=a-e|0,s=i-e|0,(0|e)<0?(n[A>>2]=t,n[o>>2]=s,n[r>>2]=0,a=t,e=0):s=i,(0|(i=(0|e)<(0|(i=(0|s)<(0|a)?s:a))?e:i))<=0||(n[A>>2]=a-i,n[o>>2]=s-i,n[r>>2]=e-i))}function bA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=(o=0|n[(t=A+4|0)>>2])+s|0,s=(i=0|n[(r=A+8|0)>>2])+s|0,n[A>>2]=s,n[t>>2]=a,o=i+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function pA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],a=0|n[(t=A+4|0)>>2],i=0|n[(r=A+8|0)>>2],s=a+o|0,n[A>>2]=s,a=i+a|0,n[t>>2]=a,o=i+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,a=0):(i=a,a=s),(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function vA(A){switch(0|(A|=0)){case 1:A=5;break;case 5:A=4;break;case 4:A=6;break;case 6:A=2;break;case 2:A=3;break;case 3:A=1}return 0|A}function yA(A){switch(0|(A|=0)){case 1:A=3;break;case 3:A=2;break;case 2:A=6;break;case 6:A=4;break;case 4:A=5;break;case 5:A=1}return 0|A}function wA(A){var e,t,r,o=0,i=0,a=0,s=0;o=0|n[(A|=0)>>2],i=0|n[(t=A+4|0)>>2],a=0|n[(r=A+8|0)>>2],s=i+(o<<1)|0,n[A>>2]=s,i=a+(i<<1)|0,n[t>>2]=i,o=(a<<1)+o|0,n[r>>2]=o,a=i-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=a,n[r>>2]=o,n[A>>2]=0,i=a,a=0):a=s,(0|i)<0&&(a=a-i|0,n[A>>2]=a,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=a-o|0,s=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=s,n[r>>2]=0,a=e,o=0):s=i,(0|(i=(0|o)<(0|(i=(0|s)<(0|a)?s:a))?o:i))<=0||(n[A>>2]=a-i,n[t>>2]=s-i,n[r>>2]=o-i)}function xA(A){var e,t,r,o=0,i=0,a=0,s=0;s=0|n[(A|=0)>>2],a=((o=0|n[(t=A+4|0)>>2])<<1)+s|0,s=(i=0|n[(r=A+8|0)>>2])+(s<<1)|0,n[A>>2]=s,n[t>>2]=a,o=(i<<1)+o|0,n[r>>2]=o,i=a-s|0,(0|s)<0?(o=o-s|0,n[t>>2]=i,n[r>>2]=o,n[A>>2]=0,s=0):i=a,(0|i)<0&&(s=s-i|0,n[A>>2]=s,o=o-i|0,n[r>>2]=o,n[t>>2]=0,i=0),e=s-o|0,a=i-o|0,(0|o)<0?(n[A>>2]=e,n[t>>2]=a,n[r>>2]=0,s=e,o=0):a=i,(0|(i=(0|o)<(0|(i=(0|a)<(0|s)?a:s))?o:i))<=0||(n[A>>2]=s-i,n[t>>2]=a-i,n[r>>2]=o-i)}function kA(A,e){e|=0;var t,r,o,i=0,a=0,s=0;return o=(0|(r=(0|n[(A|=0)>>2])-(0|n[e>>2])|0))<0,t=(0|(a=(0|n[A+4>>2])-(0|n[e+4>>2])-(o?r:0)|0))<0,e=(e=(A=(0|(s=(o?0-r|0:0)+(0|n[A+8>>2])-(0|n[e+8>>2])+(t?0-a|0:0)|0))<0)?0:s)-((a=(0|(A=(0|e)<(0|(A=(0|(i=(t?0:a)-(A?s:0)|0))<(0|(s=(o?0:r)-(t?a:0)-(A?s:0)|0))?i:s))?e:A))>0)?A:0)|0,i=i-(a?A:0)|0,0|((0|(A=(0|(A=s-(a?A:0)|0))>-1?A:0-A|0))>(0|(e=(0|(i=(0|i)>-1?i:0-i|0))>(0|(e=(0|e)>-1?e:0-e|0))?i:e))?A:e)}function CA(A){var e,t,r,o;t=(o=0|n[(e=8+(A|=0)|0)>>2])-(0|n[A>>2])|0,n[A>>2]=t,A=(0|n[(r=A+4|0)>>2])-o|0,n[r>>2]=A,n[e>>2]=0-(A+t)}function BA(A){var e,t,r=0,o=0,i=0,a=0,s=0;r=0-(o=0|n[(A|=0)>>2])|0,n[A>>2]=r,n[(e=A+8|0)>>2]=0,a=(i=0|n[(t=A+4|0)>>2])+o|0,(0|o)>0?(n[t>>2]=a,n[e>>2]=o,n[A>>2]=0,r=0,i=a):o=0,(0|i)<0?(s=r-i|0,n[A>>2]=s,o=o-i|0,n[e>>2]=o,n[t>>2]=0,a=s-o|0,r=0-o|0,(0|o)<0?(n[A>>2]=a,n[t>>2]=r,n[e>>2]=0,i=r,o=0):(i=0,a=s)):a=r,(0|(r=(0|o)<(0|(r=(0|i)<(0|a)?i:a))?o:r))<=0||(n[A>>2]=a-r,n[t>>2]=i-r,n[e>>2]=o-r)}function MA(A,e){var t=0;switch(t=0|tt(0|(A|=0),0|(e|=0),56),B(),7&t){case 0:case 7:return 0}return t=-2130706433&e|134217728,!0&268435456==(2013265920&e)?!0&16777216==(117440512&e)&!!(0|HA(A,t))?0|(t=0):0|(t=0|LA(A,t)):0|(t=0)}function DA(A,e,t){t|=0;var r,o,i=0,a=0;return o=S,S=S+16|0,r=o,a=-2130706433&(e|=0)|134217728,!0&268435456==(2013265920&e)?(i=0|tt(0|(A|=0),0|e,56),B(),i=0|function(A,e,t){t|=0;var r,o=0,i=0;if(r=S,S=S+16|0,i=r,o=0|HA(A|=0,e|=0),(t+-1|0)>>>0>5)return S=r,-1;if(1==(0|t)&(o=!!(0|o)))return S=r,-1;do{if(!(0|Fe(A,e,i))){if(o){o=(5+(0|n[26352+(t<<2)>>2])-(0|n[i>>2])|0)%5|0;break}o=(6+(0|n[26384+(t<<2)>>2])-(0|n[i>>2])|0)%6|0;break}o=-1}while(0);return S=r,0|(i=o)}(A,a,7&i),-1==(0|i)?(n[t>>2]=0,S=o,0|(a=6)):(0|qA(A,a,r)&&M(27795,26932,282,26947),e=0|tt(0|A,0|e,52),B(),e&=15,0|HA(A,a)?jA(r,e,i,2,t):FA(r,e,i,2,t),S=o,0|(a=0))):(S=o,0|(a=6))}function EA(A,e,t,r,i){e|=0,t|=0,r|=0,i|=0;var a,s=0,u=0;if(s=+function(A){var e,t;return t=+o[(A|=0)>>3],e=+o[A+8>>3],+ +c(+(t*t+e*e))}(A|=0),s<1e-16)return e=15600+(e<<4)|0,n[i>>2]=n[e>>2],n[i+4>>2]=n[e+4>>2],n[i+8>>2]=n[e+8>>2],void(n[i+12>>2]=n[e+12>>2]);if(u=+p(+ +o[A+8>>3],+ +o[A>>3]),(0|t)>0){A=0;do{s*=.37796447300922725,A=A+1|0}while((0|A)!=(0|t))}a=.3333333333333333*s,r?(t=!(0|ZA(t)),s=+b(.381966011250105*(t?a:.37796447300922725*a))):(s=+b(.381966011250105*s),0|ZA(t)&&(u=+ne(u+.3334731722518321))),function(A,e,t,r){A|=0,e=+e,r|=0;var i=0,a=0,s=0,c=0;if((t=+t)<1e-16)return n[r>>2]=n[A>>2],n[r+4>>2]=n[A+4>>2],n[r+8>>2]=n[A+8>>2],void(n[r+12>>2]=n[A+12>>2]);a=e<0?e+6.283185307179586:e,a=e>=6.283185307179586?a+-6.283185307179586:a;do{if(!(a<1e-16)){if(i=+l(+(a+-3.141592653589793))<1e-16,e=+o[A>>3],i){e-=t,o[r>>3]=e,i=r;break}if(s=+d(+t),t=+f(+t),e=s*+f(+e)+ +d(+a)*(t*+d(+e)),e=+m(+((e=e>1?1:e)<-1?-1:e)),o[r>>3]=e,+l(+(e+-1.5707963267948966))<1e-16)return o[r>>3]=1.5707963267948966,void(o[r+8>>3]=0);if(+l(+(e+1.5707963267948966))<1e-16)return o[r>>3]=-1.5707963267948966,void(o[r+8>>3]=0);if(c=1/+d(+e),a=t*+f(+a)*c,t=+o[A>>3],e=c*((s-+f(+e)*+f(+t))/+d(+t)),s=a>1?1:a,e=e>1?1:e,(e=+o[A+8>>3]+ +p(+(s<-1?-1:s),+(e<-1?-1:e)))>3.141592653589793)do{e+=-6.283185307179586}while(e>3.141592653589793);if(e<-3.141592653589793)do{e+=6.283185307179586}while(e<-3.141592653589793);return void(o[r+8>>3]=e)}e=+o[A>>3]+t,o[r>>3]=e,i=r}while(0);if(+l(+(e+-1.5707963267948966))<1e-16)return o[i>>3]=1.5707963267948966,void(o[r+8>>3]=0);if(+l(+(e+1.5707963267948966))<1e-16)return o[i>>3]=-1.5707963267948966,void(o[r+8>>3]=0);if((e=+o[A+8>>3])>3.141592653589793)do{e+=-6.283185307179586}while(e>3.141592653589793);if(e<-3.141592653589793)do{e+=6.283185307179586}while(e<-3.141592653589793);o[r+8>>3]=e}(15600+(e<<4)|0,+ne(+o[15920+(24*e|0)>>3]-u),s,i)}function jA(A,e,t,r,i){A|=0,e|=0,t|=0,r|=0,i|=0;var a,s,l,c,u,d,f,g,h,m,b,p,v,y,w,x,k,C,B,D,E,j,Q=0,N=0,F=0,P=0,T=0,L=0;if(j=S,S=S+272|0,P=j+240|0,B=j,D=j+224|0,E=j+208|0,b=j+176|0,p=j+160|0,v=j+192|0,y=j+144|0,w=j+128|0,x=j+112|0,k=j+96|0,C=j+80|0,n[(Q=j+256|0)>>2]=e,n[P>>2]=n[A>>2],n[P+4>>2]=n[A+4>>2],n[P+8>>2]=n[A+8>>2],n[P+12>>2]=n[A+12>>2],QA(P,Q,B),n[i>>2]=0,(0|(P=r+t+(5==(0|r)&1)|0))<=(0|t))S=j;else{s=D+4|0,l=b+4|0,c=t+5|0,u=16880+((a=0|n[Q>>2])<<2)|0,d=16960+(a<<2)|0,f=w+8|0,g=x+8|0,h=k+8|0,m=E+4|0,F=t;A:for(;;){N=B+((0|F)%5<<4)|0,n[E>>2]=n[N>>2],n[E+4>>2]=n[N+4>>2],n[E+8>>2]=n[N+8>>2],n[E+12>>2]=n[N+12>>2];do{}while(2==(0|NA(E,a,0,1)));if((0|F)>(0|t)&!!(0|ZA(e))){if(n[b>>2]=n[E>>2],n[b+4>>2]=n[E+4>>2],n[b+8>>2]=n[E+8>>2],n[b+12>>2]=n[E+12>>2],oA(s,p),r=0|n[b>>2],Q=0|n[17040+(80*r|0)+(n[D>>2]<<2)>>2],n[b>>2]=n[18640+(80*r|0)+(20*Q|0)>>2],(0|(N=0|n[18640+(80*r|0)+(20*Q|0)+16>>2]))>0){A=0;do{bA(l),A=A+1|0}while((0|A)<(0|N))}switch(N=18640+(80*r|0)+(20*Q|0)+4|0,n[v>>2]=n[N>>2],n[v+4>>2]=n[N+4>>2],n[v+8>>2]=n[N+8>>2],sA(v,3*(0|n[u>>2])|0),iA(l,v,l),nA(l),oA(l,y),T=+(0|n[d>>2]),o[w>>3]=3*T,o[f>>3]=0,L=-1.5*T,o[x>>3]=L,o[g>>3]=2.598076211353316*T,o[k>>3]=L,o[h>>3]=-2.598076211353316*T,0|n[17040+(80*(0|n[b>>2])|0)+(n[E>>2]<<2)>>2]){case 1:A=x,r=w;break;case 3:A=k,r=x;break;case 2:A=w,r=k;break;default:A=12;break A}Qe(p,y,r,A,C),EA(C,0|n[b>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])}if((0|F)<(0|c)&&(oA(m,b),EA(b,0|n[E>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])),n[D>>2]=n[E>>2],n[D+4>>2]=n[E+4>>2],n[D+8>>2]=n[E+8>>2],n[D+12>>2]=n[E+12>>2],(0|(F=F+1|0))>=(0|P)){A=3;break}}3!=(0|A)?12==(0|A)&&M(26970,27017,572,27027):S=j}}function QA(A,e,t){A|=0,e|=0,t|=0;var r,o=0,i=0,a=0,s=0,l=0;r=S,S=S+128|0,i=r,s=20240,l=60+(a=o=r+64|0)|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));s=20304,l=(a=i)+60|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));o=(l=!(0|ZA(0|n[e>>2])))?o:i,wA(i=A+4|0),xA(i),0|ZA(0|n[e>>2])&&(hA(i),n[e>>2]=1+(0|n[e>>2])),n[t>>2]=n[A>>2],iA(i,o,e=t+4|0),nA(e),n[t+16>>2]=n[A>>2],iA(i,o+12|0,e=t+20|0),nA(e),n[t+32>>2]=n[A>>2],iA(i,o+24|0,e=t+36|0),nA(e),n[t+48>>2]=n[A>>2],iA(i,o+36|0,e=t+52|0),nA(e),n[t+64>>2]=n[A>>2],iA(i,o+48|0,t=t+68|0),nA(t),S=r}function NA(A,e,t,r){t|=0,r|=0;var o,i,a,s,l,c,u=0,d=0,f=0,g=0,h=0;if(c=S,S=S+32|0,l=c+12|0,i=c,h=4+(A|=0)|0,g=0|n[16960+((e|=0)<<2)>>2],g=(s=!!(0|r))?3*g|0:g,u=0|n[h>>2],o=0|n[(a=A+8|0)>>2],s){if((0|(u=o+u+(r=0|n[(d=A+12|0)>>2])|0))==(0|g))return S=c,1;f=d}else u=o+u+(r=0|n[(f=A+12|0)>>2])|0;if((0|u)<=(0|g))return S=c,0;do{if((0|r)>0){if(r=0|n[A>>2],(0|o)>0){d=18640+(80*r|0)+60|0,r=A;break}r=18640+(80*r|0)+40|0,t?(rA(l,g,0,0),aA(h,l,i),pA(i),iA(i,l,h),d=r,r=A):(d=r,r=A)}else d=18640+(80*(0|n[A>>2])|0)+20|0,r=A}while(0);if(n[r>>2]=n[d>>2],(0|n[(u=d+16|0)>>2])>0){r=0;do{bA(h),r=r+1|0}while((0|r)<(0|n[u>>2]))}return A=d+4|0,n[l>>2]=n[A>>2],n[l+4>>2]=n[A+4>>2],n[l+8>>2]=n[A+8>>2],e=0|n[16880+(e<<2)>>2],sA(l,s?3*e|0:e),iA(h,l,h),nA(h),r=s&&((0|n[a>>2])+(0|n[h>>2])+(0|n[f>>2])|0)==(0|g)?1:2,S=c,0|r}function SA(A,e){A|=0,e|=0;var t=0;do{t=0|NA(A,e,0,1)}while(2==(0|t));return 0|t}function FA(A,e,t,r,i){A|=0,e|=0,t|=0,r|=0,i|=0;var a,s,l,c,u,d,f,g,h,m,b,p,v,y,w,x,k,C,B=0,D=0,E=0,j=0,Q=0;if(C=S,S=S+240|0,y=C+208|0,w=C,x=C+192|0,k=C+176|0,h=C+160|0,m=C+144|0,b=C+128|0,p=C+112|0,v=C+96|0,n[(B=C+224|0)>>2]=e,n[y>>2]=n[A>>2],n[y+4>>2]=n[A+4>>2],n[y+8>>2]=n[A+8>>2],n[y+12>>2]=n[A+12>>2],PA(y,B,w),n[i>>2]=0,(0|(g=r+t+(6==(0|r)&1)|0))<=(0|t))S=C;else{s=t+6|0,l=16960+((a=0|n[B>>2])<<2)|0,c=m+8|0,u=b+8|0,d=p+8|0,f=x+4|0,D=0,E=t,r=-1;A:for(;;){if(A=w+((B=(0|E)%6|0)<<4)|0,n[x>>2]=n[A>>2],n[x+4>>2]=n[A+4>>2],n[x+8>>2]=n[A+8>>2],n[x+12>>2]=n[A+12>>2],A=D,D=0|NA(x,a,0,1),(0|E)>(0|t)&!!(0|ZA(e))&&1!=(0|A)&&(0|n[x>>2])!=(0|r)){switch(oA(w+((B+5|0)%6<<4)+4|0,k),oA(w+(B<<4)+4|0,h),j=+(0|n[l>>2]),o[m>>3]=3*j,o[c>>3]=0,Q=-1.5*j,o[b>>3]=Q,o[u>>3]=2.598076211353316*j,o[p>>3]=Q,o[d>>3]=-2.598076211353316*j,B=0|n[y>>2],0|n[17040+(80*B|0)+(((0|r)==(0|B)?n[x>>2]:r)<<2)>>2]){case 1:A=b,r=m;break;case 3:A=p,r=b;break;case 2:A=m,r=p;break;default:A=8;break A}Qe(k,h,r,A,v),0|Ne(k,v)||0|Ne(h,v)||(EA(v,0|n[y>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2]))}if((0|E)<(0|s)&&(oA(f,k),EA(k,0|n[x>>2],a,1,i+8+(n[i>>2]<<4)|0),n[i>>2]=1+(0|n[i>>2])),(0|(E=E+1|0))>=(0|g)){A=3;break}r=0|n[x>>2]}3!=(0|A)?8==(0|A)&&M(27054,27017,737,27099):S=C}}function PA(A,e,t){A|=0,e|=0,t|=0;var r,o=0,i=0,a=0,s=0,l=0;r=S,S=S+160|0,i=r,s=20368,l=72+(a=o=r+80|0)|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));s=20448,l=(a=i)+72|0;do{n[a>>2]=n[s>>2],a=a+4|0,s=s+4|0}while((0|a)<(0|l));o=(l=!(0|ZA(0|n[e>>2])))?o:i,wA(i=A+4|0),xA(i),0|ZA(0|n[e>>2])&&(hA(i),n[e>>2]=1+(0|n[e>>2])),n[t>>2]=n[A>>2],iA(i,o,e=t+4|0),nA(e),n[t+16>>2]=n[A>>2],iA(i,o+12|0,e=t+20|0),nA(e),n[t+32>>2]=n[A>>2],iA(i,o+24|0,e=t+36|0),nA(e),n[t+48>>2]=n[A>>2],iA(i,o+36|0,e=t+52|0),nA(e),n[t+64>>2]=n[A>>2],iA(i,o+48|0,e=t+68|0),nA(e),n[t+80>>2]=n[A>>2],iA(i,o+60|0,t=t+84|0),nA(t),S=r}function TA(A,e){return e=0|tt(0|(A|=0),0|(e|=0),45),B(),127&e}function LA(A,e){A|=0;var t=0,n=0,o=0,i=0;return!0&134217728==(-16777216&(e|=0))?(n=0|tt(0|A,0|e,52),B(),n&=15,t=0|tt(0|A,0|e,45),B(),(t&=127)>>>0>121?0|(A=0):!(613566756&(i=0|rt(0|(o=0|tt(0|A,0|e,0|(i=3*(15^n)|0))),0|B(),0|i))&Ze(-1227133514,-1171,0|i,0|(o=0|B())))&!(4681&o&B())&&15==(0|n)|!(0|(i=0|tt(0|rt(0|~A,0|~e,0|(i=19+(3*n|0)|0)),0|B(),0|i)))&!(0|B())?0|r[20528+t|0]?!(0|A)&!(0|(e&=8191))?0|(i=1):(i=0|nt(0|A,0|e),B(),0|!!((63-i|0)%3|0)):0|(i=1):0|(i=0)):0|(A=0)}function IA(A,e,t,r){A|=0,t|=0,r|=0;var o=0,i=0,a=0,s=0;if(o=0|rt(0|(e|=0),0,52),i=0|B(),t=0|rt(0|t,0,45),t=0|i|B()|134225919,(0|e)<1)return i=-1,r=t,n[(e=A)>>2]=i,void(n[(A=A+4|0)>>2]=r);for(i=1,o=-1;s=0|rt(7,0,0|(a=3*(15-i|0)|0)),t&=~B(),o=o&~s|(a=0|rt(0|r,0,0|a)),t=0|t|B(),(0|i)!=(0|e);)i=i+1|0;n[(a=s=A)>>2]=o,n[(s=s+4|0)>>2]=t}function RA(A,e,t,r){t|=0,r|=0;var o=0,i=0;if(i=0|tt(0|(A|=0),0|(e|=0),52),B(),t>>>0>15)return 4;if((0|(i&=15))<(0|t))return 12;if((0|i)==(0|t))return n[r>>2]=A,n[r+4>>2]=e,0;if(o=0|rt(0|t,0,52),o|=A,A=B()|-15728641&e,(0|i)>(0|t))do{e=0|rt(7,0,3*(14-t|0)|0),t=t+1|0,o|=e,A=0|B()|A}while((0|t)<(0|i));return n[r>>2]=o,n[r+4>>2]=A,0}function _A(A,e,t,r){t|=0,r|=0;var o=0,i=0,a=0;if(i=0|tt(0|(A|=0),0|(e|=0),52),B(),!((0|t)<16&(0|(i&=15))<=(0|t)))return 4;o=t-i|0,t=0|tt(0|A,0|e,45),B();A:do{if(0|z(127&t)){e:do{if(0|i){for(t=1;!((a=0|rt(7,0,3*(15-t|0)|0))&A)&!((0|B())&e);){if(!(t>>>0>>0))break e;t=t+1|0}t=0|pe(7,0,o,((0|o)<0)<<31>>31),o=0|B();break A}}while(0);t=0|We(0|(t=0|Xe(0|(t=0|pe(7,0,o,((0|o)<0)<<31>>31)),0|B(),5,0)),0|B(),-5,-1),t=0|We(0|(t=0|qe(0|t,0|B(),6,0)),0|B(),1,0),o=0|B()}else t=0|pe(7,0,o,((0|o)<0)<<31>>31),o=0|B()}while(0);return n[(a=r)>>2]=t,n[a+4>>2]=o,0}function HA(A,e){var t=0,r=0,n=0;if(n=0|tt(0|(A|=0),0|(e|=0),45),B(),!(0|z(127&n)))return 0;n=0|tt(0|A,0|e,52),B(),n&=15;A:do{if(n)for(r=1;;){if(t=0|tt(0|A,0|e,3*(15-r|0)|0),B(),0|(t&=7))break A;if(!(r>>>0>>0)){t=0;break}r=r+1|0}else t=0}while(0);return 1&!(0|t)}function zA(A,e,t,r){return A|=0,e|=0,(0|(r|=0))<(0|(t|=0))?(r=A,C(0|(t=e)),0|r):(t=0|rt(-1,-1,3+(3*(r-t|0)|0)|0),r=0|rt(0|~t,0|~B(),3*(15-r|0)|0),t=~B()&e,r=~r&A,C(0|t),0|r)}function GA(A,e,t,r){t|=0,r|=0;var o=0;return o=0|tt(0|(A|=0),0|(e|=0),52),B(),(0|t)<16&(0|(o&=15))<=(0|t)?((0|o)<(0|t)&&(o=0|rt(-1,-1,3+(3*(t+-1-o|0)|0)|0),o=0|rt(0|~o,0|~B(),3*(15-t|0)|0),e=~B()&e,A&=~o),o=0|rt(0|t,0,52),t=-15728641&e|B(),n[r>>2]=A|o,n[r+4>>2]=t,0|(r=0)):0|(r=4)}function UA(A,e){var t=0,r=0,n=0;if(n=0|tt(0|(A|=0),0|(e|=0),52),B(),!(n&=15))return 0;for(r=1;;){if(t=0|tt(0|A,0|e,3*(15-r|0)|0),B(),0|(t&=7)){r=5;break}if(!(r>>>0>>0)){t=0,r=5;break}r=r+1|0}return 5==(0|r)?0|t:0}function OA(A,e){var t=0,r=0,n=0,o=0,i=0,a=0,s=0;if(s=0|tt(0|(A|=0),0|(e|=0),52),B(),!(s&=15))return s=A,C(0|(a=e)),0|s;for(a=1,t=0;;){r=0|rt(7,0,0|(o=3*(15-a|0)|0)),n=0|B(),i=0|tt(0|A,0|e,0|o),B(),A=(o=0|rt(0|vA(7&i),0,0|o))|A&~r,e=(i=0|B())|e&~n;A:do{if(!t)if(!(o&r|0)&!(i&n|0))t=0;else if(r=0|tt(0|A,0|e,52),B(),r&=15){t=1;e:for(;;){switch(i=0|tt(0|A,0|e,3*(15-t|0)|0),B(),7&i){case 1:break e;case 0:break;default:t=1;break A}if(!(t>>>0>>0)){t=1;break A}t=t+1|0}for(t=1;;){if(n=0|tt(0|A,0|e,0|(i=3*(15-t|0)|0)),B(),o=0|rt(7,0,0|i),e&=~B(),A=A&~o|(i=0|rt(0|vA(7&n),0,0|i)),e=0|e|B(),!(t>>>0>>0)){t=1;break}t=t+1|0}}else t=1}while(0);if(!(a>>>0>>0))break;a=a+1|0}return C(0|e),0|A}function YA(A,e){var t=0,r=0,n=0,o=0,i=0;if(r=0|tt(0|(A|=0),0|(e|=0),52),B(),!(r&=15))return r=A,C(0|(t=e)),0|r;for(t=1;i=0|tt(0|A,0|e,0|(o=3*(15-t|0)|0)),B(),n=0|rt(7,0,0|o),e&=~B(),A=(o=0|rt(0|vA(7&i),0,0|o))|A&~n,e=0|B()|e,t>>>0>>0;)t=t+1|0;return C(0|e),0|A}function VA(A,e){var t=0,r=0,n=0,o=0,i=0,a=0,s=0;if(s=0|tt(0|(A|=0),0|(e|=0),52),B(),!(s&=15))return s=A,C(0|(a=e)),0|s;for(a=1,t=0;;){r=0|rt(7,0,0|(o=3*(15-a|0)|0)),n=0|B(),i=0|tt(0|A,0|e,0|o),B(),A=(o=0|rt(0|yA(7&i),0,0|o))|A&~r,e=(i=0|B())|e&~n;A:do{if(!t)if(!(o&r|0)&!(i&n|0))t=0;else if(r=0|tt(0|A,0|e,52),B(),r&=15){t=1;e:for(;;){switch(i=0|tt(0|A,0|e,3*(15-t|0)|0),B(),7&i){case 1:break e;case 0:break;default:t=1;break A}if(!(t>>>0>>0)){t=1;break A}t=t+1|0}for(t=1;;){if(o=0|rt(7,0,0|(n=3*(15-t|0)|0)),i=e&~B(),e=0|tt(0|A,0|e,0|n),B(),A=A&~o|(e=0|rt(0|yA(7&e),0,0|n)),e=0|i|B(),!(t>>>0>>0)){t=1;break}t=t+1|0}}else t=1}while(0);if(!(a>>>0>>0))break;a=a+1|0}return C(0|e),0|A}function WA(A,e){var t=0,r=0,n=0,o=0,i=0;if(r=0|tt(0|(A|=0),0|(e|=0),52),B(),!(r&=15))return r=A,C(0|(t=e)),0|r;for(t=1;o=0|rt(7,0,0|(i=3*(15-t|0)|0)),n=e&~B(),e=0|tt(0|A,0|e,0|i),B(),A=(e=0|rt(0|yA(7&e),0,0|i))|A&~o,e=0|B()|n,t>>>0>>0;)t=t+1|0;return C(0|e),0|A}function ZA(A){return(0|(A|=0))%2|0}function KA(A,e,t){t|=0;var r,i=0;return r=S,S=S+16|0,i=r,(e|=0)>>>0>15?(S=r,0|(i=4)):2146435072&~n[4+(A|=0)>>2]&&2146435072&~n[A+8+4>>2]?(function(A,e,t){var r,i;r=S,S=S+16|0,function(A,e,t,r){e|=0,r|=0;var i,a=0,s=0,l=0,c=0;if(i=S,S=S+16|0,function(A,e,t){e|=0,t|=0;var r,i,a=0;i=S,S=S+32|0,function(A,e){e|=0;var t,r,n=0;n=+o[(A|=0)>>3],t=+d(+n),n=+f(+n),o[e+16>>3]=n,n=+o[A+8>>3],r=t*+d(+n),o[e>>3]=r,n=t*+f(+n),o[e+8>>3]=n}(A|=0,r=i),n[e>>2]=0,o[t>>3]=5,(a=+Se(16400,r))<+o[t>>3]&&(n[e>>2]=0,o[t>>3]=a),(a=+Se(16424,r))<+o[t>>3]&&(n[e>>2]=1,o[t>>3]=a),(a=+Se(16448,r))<+o[t>>3]&&(n[e>>2]=2,o[t>>3]=a),(a=+Se(16472,r))<+o[t>>3]&&(n[e>>2]=3,o[t>>3]=a),(a=+Se(16496,r))<+o[t>>3]&&(n[e>>2]=4,o[t>>3]=a),(a=+Se(16520,r))<+o[t>>3]&&(n[e>>2]=5,o[t>>3]=a),(a=+Se(16544,r))<+o[t>>3]&&(n[e>>2]=6,o[t>>3]=a),(a=+Se(16568,r))<+o[t>>3]&&(n[e>>2]=7,o[t>>3]=a),(a=+Se(16592,r))<+o[t>>3]&&(n[e>>2]=8,o[t>>3]=a),(a=+Se(16616,r))<+o[t>>3]&&(n[e>>2]=9,o[t>>3]=a),(a=+Se(16640,r))<+o[t>>3]&&(n[e>>2]=10,o[t>>3]=a),(a=+Se(16664,r))<+o[t>>3]&&(n[e>>2]=11,o[t>>3]=a),(a=+Se(16688,r))<+o[t>>3]&&(n[e>>2]=12,o[t>>3]=a),(a=+Se(16712,r))<+o[t>>3]&&(n[e>>2]=13,o[t>>3]=a),(a=+Se(16736,r))<+o[t>>3]&&(n[e>>2]=14,o[t>>3]=a),(a=+Se(16760,r))<+o[t>>3]&&(n[e>>2]=15,o[t>>3]=a),(a=+Se(16784,r))<+o[t>>3]&&(n[e>>2]=16,o[t>>3]=a),(a=+Se(16808,r))<+o[t>>3]&&(n[e>>2]=17,o[t>>3]=a),(a=+Se(16832,r))<+o[t>>3]&&(n[e>>2]=18,o[t>>3]=a),(a=+Se(16856,r))<+o[t>>3]?(n[e>>2]=19,o[t>>3]=a,S=i):S=i}(A|=0,t|=0,c=i),(s=+h(+(1-.5*+o[c>>3])))<1e-16)return n[r>>2]=0,n[r+4>>2]=0,n[r+8>>2]=0,n[r+12>>2]=0,void(S=i);if(c=0|n[t>>2],a=+ne((a=+o[15920+(24*c|0)>>3])-+ne(+function(A,e){var t,r,n,i,a;return A|=0,i=+o[(e|=0)>>3],r=+d(+i),n=+o[e+8>>3]-+o[A+8>>3],a=r*+f(+n),t=+o[A>>3],+ +p(+a,+(+f(+i)*+d(+t)-+d(+n)*(r*+f(+t))))}(15600+(c<<4)|0,A))),l=0|ZA(e)?+ne(a+-.3334731722518321):a,a=2.618033988749896*+g(+s),(0|e)>0){A=0;do{a*=2.6457513110645907,A=A+1|0}while((0|A)!=(0|e))}s=+d(+l)*a,o[r>>3]=s,l=+f(+l)*a,o[r+8>>3]=l,S=i}(A|=0,e|=0,t|=0,i=r),function(A,e){A|=0;var t,r,i,a,s=0,c=0,u=0,d=0,f=0,g=0,h=0;n[(a=8+(e|=0)|0)>>2]=0,r=+o[A>>3],d=+l(+r),i=+o[A+8>>3],d+=.5*(f=1.1547005383792515*+l(+i)),d-=+(0|(s=~~d)),f-=+(0|(A=~~f));do{if(d<.5){if(d<.3333333333333333){if(n[e>>2]=s,f<.5*(d+1)){n[e+4>>2]=A;break}A=A+1|0,n[e+4>>2]=A;break}if(A=(1&!(f<(h=1-d)))+A|0,n[e+4>>2]=A,h<=f&f<2*d){s=s+1|0,n[e>>2]=s;break}n[e>>2]=s;break}if(!(d<.6666666666666666)){if(s=s+1|0,n[e>>2]=s,f<.5*d){n[e+4>>2]=A;break}A=A+1|0,n[e+4>>2]=A;break}if(f<1-d){if(n[e+4>>2]=A,2*d-1>2]=s;break}}else A=A+1|0,n[e+4>>2]=A;s=s+1|0,n[e>>2]=s}while(0);do{if(r<0){if(1&A){s=~~(+(0|s)-(2*(+((g=0|Ze(0|s,((0|s)<0)<<31>>31,0|(g=(A+1|0)/2|0),((0|g)<0)<<31>>31))>>>0)+4294967296*+(0|B()))+1)),n[e>>2]=s;break}s=~~(+(0|s)-2*(+((g=0|Ze(0|s,((0|s)<0)<<31>>31,0|(g=(0|A)/2|0),((0|g)<0)<<31>>31))>>>0)+4294967296*+(0|B()))),n[e>>2]=s;break}}while(0);g=e+4|0,i<0&&(s=s-((1|A<<1)/2|0)|0,n[e>>2]=s,A=0-A|0,n[g>>2]=A),c=A-s|0,(0|s)<0?(u=0-s|0,n[g>>2]=c,n[a>>2]=u,n[e>>2]=0,A=c,s=0):u=0,(0|A)<0&&(s=s-A|0,n[e>>2]=s,u=u-A|0,n[a>>2]=u,n[g>>2]=0,A=0),t=s-u|0,c=A-u|0,(0|u)<0&&(n[e>>2]=t,n[g>>2]=c,n[a>>2]=0,A=c,s=t,u=0),(0|(c=(0|u)<(0|(c=(0|A)<(0|s)?A:s))?u:c))<=0||(n[e>>2]=s-c,n[g>>2]=A-c,n[a>>2]=u-c)}(i,t+4|0),S=r}(A,e,i),e=0|function(A,e){A|=0;var t,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0;if(t=S,S=S+64|0,l=t+40|0,o=t+24|0,i=t+12|0,a=t,rt(0|(e|=0),0,52),r=134225919|B(),!e)return(0|n[A+4>>2])>2||(0|n[A+8>>2])>2||(0|n[A+12>>2])>2?(l=0,C(0|(s=0)),S=t,0|l):(rt(0|U(A),0,45),s=0|B()|r,l=-1,C(0|s),S=t,0|l);if(n[l>>2]=n[A>>2],n[l+4>>2]=n[A+4>>2],n[l+8>>2]=n[A+8>>2],n[l+12>>2]=n[A+12>>2],s=l+4|0,(0|e)>0)for(A=-1;n[o>>2]=n[s>>2],n[o+4>>2]=n[s+4>>2],n[o+8>>2]=n[s+8>>2],1&e?(dA(s),n[i>>2]=n[s>>2],n[i+4>>2]=n[s+4>>2],n[i+8>>2]=n[s+8>>2],gA(i)):(fA(s),n[i>>2]=n[s>>2],n[i+4>>2]=n[s+4>>2],n[i+8>>2]=n[s+8>>2],hA(i)),aA(o,i,a),nA(a),c=0|rt(7,0,0|(u=3*(15-e|0)|0)),r&=~B(),A=(u=0|rt(0|lA(a),0,0|u))|A&~c,r=0|B()|r,(0|e)>1;)e=e+-1|0;else A=-1;A:do{if((0|n[s>>2])<=2&&(0|n[l+8>>2])<=2&&(0|n[l+12>>2])<=2){if(e=0|rt(0|(o=0|U(l)),0,45),e|=A,A=B()|-1040385&r,a=0|O(l),!(0|z(o))){if((0|a)<=0)break;for(i=0;;){if(o=0|tt(0|e,0|A,52),B(),o&=15)for(r=1;l=0|tt(0|e,0|A,0|(u=3*(15-r|0)|0)),B(),c=0|rt(7,0,0|u),A&=~B(),e=e&~c|(u=0|rt(0|vA(7&l),0,0|u)),A=0|A|B(),r>>>0>>0;)r=r+1|0;if((0|(i=i+1|0))==(0|a))break A}}i=0|tt(0|e,0|A,52),B(),i&=15;e:do{if(i){r=1;t:for(;;){switch(u=0|tt(0|e,0|A,3*(15-r|0)|0),B(),7&u){case 1:break t;case 0:break;default:break e}if(!(r>>>0>>0))break e;r=r+1|0}if(0|Y(o,0|n[l>>2]))for(r=1;c=0|rt(7,0,0|(l=3*(15-r|0)|0)),u=A&~B(),A=0|tt(0|e,0|A,0|l),B(),e=e&~c|(A=0|rt(0|yA(7&A),0,0|l)),A=0|u|B(),r>>>0>>0;)r=r+1|0;else for(r=1;l=0|tt(0|e,0|A,0|(u=3*(15-r|0)|0)),B(),c=0|rt(7,0,0|u),A&=~B(),e=e&~c|(u=0|rt(0|vA(7&l),0,0|u)),A=0|A|B(),r>>>0>>0;)r=r+1|0}}while(0);if((0|a)>0){r=0;do{e=0|OA(e,A),A=0|B(),r=r+1|0}while((0|r)!=(0|a))}}else e=0,A=0}while(0);return u=e,C(0|(c=A)),S=t,0|u}(i,e),i=0|B(),n[t>>2]=e,n[t+4>>2]=i,!(0|e)&!(0|i)&&M(27795,27122,1050,27145),S=r,0|(i=0)):(S=r,0|(i=3))}function JA(A,e,t){var r,o=0,i=0,a=0;if(r=4+(t|=0)|0,i=0|tt(0|(A|=0),0|(e|=0),52),B(),i&=15,a=0|tt(0|A,0|e,45),B(),o=!(0|i),0|z(127&a)){if(o)return 1;o=1}else{if(o)return 0;o=0|n[r>>2]||0|n[t+8>>2]?1:1&!!(0|n[t+12>>2])}for(t=1;1&t?gA(r):hA(r),a=0|tt(0|A,0|e,3*(15-t|0)|0),B(),mA(r,7&a),t>>>0>>0;)t=t+1|0;return 0|o}function qA(A,e,t){t|=0;var r,o,i=0,a=0,s=0,l=0,c=0,u=0;if(o=S,S=S+16|0,r=o,u=0|tt(0|(A|=0),0|(e|=0),45),B(),(u&=127)>>>0>121)return n[t>>2]=0,n[t+4>>2]=0,n[t+8>>2]=0,n[t+12>>2]=0,S=o,5;A:do{if(0|z(u)&&(s=0|tt(0|A,0|e,52),B(),0|(s&=15))){i=1;e:for(;;){switch(c=0|tt(0|A,0|e,3*(15-i|0)|0),B(),7&c){case 5:break e;case 0:break;default:i=e;break A}if(!(i>>>0>>0)){i=e;break A}i=i+1|0}for(a=1,i=e;l=0|rt(7,0,0|(e=3*(15-a|0)|0)),c=i&~B(),i=0|tt(0|A,0|i,0|e),B(),A=A&~l|(i=0|rt(0|yA(7&i),0,0|e)),i=0|c|B(),a>>>0>>0;)a=a+1|0}else i=e}while(0);if(c=7696+(28*u|0)|0,n[t>>2]=n[c>>2],n[t+4>>2]=n[c+4>>2],n[t+8>>2]=n[c+8>>2],n[t+12>>2]=n[c+12>>2],!(0|JA(A,i,t)))return S=o,0;if(l=t+4|0,n[r>>2]=n[l>>2],n[r+4>>2]=n[l+4>>2],n[r+8>>2]=n[l+8>>2],s=0|tt(0|A,0|i,52),B(),c=15&s,1&s?(hA(l),s=c+1|0):s=c,0|z(u)){A:do{if(c)for(e=1;;){if(a=0|tt(0|A,0|i,3*(15-e|0)|0),B(),0|(a&=7)){i=a;break A}if(!(e>>>0>>0)){i=0;break}e=e+1|0}else i=0}while(0);i=4==(0|i)&1}else i=0;if(0|NA(t,s,i,0)){if(0|z(u))do{}while(0|NA(t,s,0,0));(0|s)!=(0|c)&&fA(l)}else(0|s)!=(0|c)&&(n[l>>2]=n[r>>2],n[l+4>>2]=n[r+4>>2],n[l+8>>2]=n[r+8>>2]);return S=o,0}function XA(A,e,t){t|=0;var r,o,i=0;return o=S,S=S+16|0,0|(i=0|qA(A|=0,e|=0,r=o))?(S=o,0|i):(i=0|tt(0|A,0|e,52),B(),function(A,e,t){var r,o;e|=0,t|=0,r=S,S=S+16|0,oA(4+(A|=0)|0,o=r),EA(o,0|n[A>>2],e,0,t),S=r}(r,15&i,t),S=o,0|(i=0))}function $A(A,e,t){t|=0;var r,n=0,o=0,i=0;if(r=S,S=S+16|0,0|(n=0|qA(A|=0,e|=0,i=r)))return S=r,0|n;n=0|tt(0|A,0|e,45),B(),n=!(0|z(127&n)),o=0|tt(0|A,0|e,52),B(),o&=15;A:do{if(!n){if(0|o)for(n=1;;){if(!(!((0|rt(7,0,3*(15-n|0)|0))&A)&!((0|B())&e)))break A;if(!(n>>>0>>0))break;n=n+1|0}return jA(i,o,0,5,t),S=r,0}}while(0);return FA(i,o,0,6,t),S=r,0}function Ae(A,e){e|=0;var t=0,r=0,o=0,i=0,a=0,s=0,l=0;if((A|=0)>>>0>15)return 4;if(rt(0|A,0,52),s=134225919|B(),!A){t=0,r=0;do{0|z(r)&&(rt(0|r,0,45),a=0|s|B(),n[(A=e+(t<<3)|0)>>2]=-1,n[A+4>>2]=a,t=t+1|0),r=r+1|0}while(122!=(0|r));return 0}t=0,a=0;do{if(0|z(a)){for(rt(0|a,0,45),r=1,o=-1,i=0|s|B();o&=~(l=0|rt(7,0,3*(15-r|0)|0)),i&=~B(),(0|r)!=(0|A);)r=r+1|0;n[(l=e+(t<<3)|0)>>2]=o,n[l+4>>2]=i,t=t+1|0}a=a+1|0}while(122!=(0|a));return 0}function ee(A,e,t,r){A|=0,r|=0;var o=0,i=0,a=0;o=0|tt(0|(e|=0),0|(t|=0),52),B(),!(0|e)&!(0|t)|(0|r)>15|(0|(o&=15))>(0|r)?(i=-1,e=-1,t=0,o=0):(e=0|zA(e,t,o+1|0,r),a=-15728641&B(),t=0|rt(0|r,0,52),i=o,e=(e=!(0|HA(t|=e,a=0|a|B())))?-1:r,o=a),n[(a=A)>>2]=t,n[a+4>>2]=o,n[A+8>>2]=i,n[A+12>>2]=e}function te(A,e,t,r){t|=0,r|=0;var o=0,i=0;return o=0|tt(0|(A|=0),0|(e|=0),52),B(),o&=15,n[(i=r+8|0)>>2]=o,!(0|A)&!(0|e)|(0|t)>15|(0|o)>(0|t)?(n[(t=r)>>2]=0,n[t+4>>2]=0,n[i>>2]=-1,void(n[r+12>>2]=-1)):(A=0|zA(A,e,o+1|0,t),i=-15728641&B(),o=0|rt(0|t,0,52),o|=A,i=0|i|B(),n[(A=r)>>2]=o,n[A+4>>2]=i,A=r+12|0,0|HA(o,i)?void(n[A>>2]=t):void(n[A>>2]=-1))}function re(A){var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0;if(!(!(0|(t=0|n[(r=A|=0)>>2]))&!(0|(r=0|n[r+4>>2]))||(o=0|tt(0|t,0|r,52),B(),t=0|We(0|(l=0|rt(1,0,3*(15^(o&=15))|0)),0|B(),0|t,0|r),r=0|B(),n[(l=A)>>2]=t,n[l+4>>2]=r,(0|o)<(0|(s=0|n[(l=A+8|0)>>2]))))){for(e=A+12|0,a=o;;){if((0|a)==(0|s)){o=5;break}if(c=(0|a)==(0|n[e>>2]),o=0|tt(0|t,0|r,0|(i=3*(15-a|0)|0)),B(),c&1==(0|(o&=7))&!0){o=7;break}if(!(7==(0|o)&!0)){o=10;break}if(t=0|We(0|t,0|r,0|(c=0|rt(1,0,0|i)),0|B()),r=0|B(),n[(c=A)>>2]=t,n[c+4>>2]=r,!((0|a)>(0|s))){o=10;break}a=a+-1|0}if(5==(0|o))return n[(c=A)>>2]=0,n[c+4>>2]=0,n[l>>2]=-1,void(n[e>>2]=-1);if(7==(0|o))return s=0|We(0|t,0|r,0|(s=0|rt(1,0,0|i)),0|B()),l=0|B(),n[(c=A)>>2]=s,n[c+4>>2]=l,void(n[e>>2]=a+-1)}}function ne(A){var e;return e=(A=+A)<0?A+6.283185307179586:A,+(A>=6.283185307179586?e+-6.283185307179586:e)}function oe(A,e){return e|=0,+l(+(+o[(A|=0)>>3]-+o[e>>3]))<17453292519943298e-27?0|(e=+l(+(+o[A+8>>3]-+o[e+8>>3]))<17453292519943298e-27):0|(e=0)}function ie(A,e){switch(A=+A,0|(e|=0)){case 1:A=A<0?A+6.283185307179586:A;break;case 2:A=A>0?A+-6.283185307179586:A}return+A}function ae(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))*6371.007180918475}function se(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20656+(A<<3)>>3],0|(e=0))}function le(A,e){e|=0;var t=0;return(A|=0)>>>0>15?0|(e=4):(t=0|Xe(0|(t=0|pe(7,0,A,((0|A)<0)<<31>>31)),0|B(),120,0),A=0|B(),n[e>>2]=2|t,n[e+4>>2]=A,0|(e=0))}function ce(A,e,t){A|=0,t|=0;var r,n,i,a,s=0,l=0,u=0,h=0,m=0,v=0;return v=+o[(e|=0)>>3],i=+o[A>>3],m=+f(.5*(v-i)),u=+o[e+8>>3],n=+o[A+8>>3],h=+f(.5*(u-n)),r=+d(+i),a=+d(+v),h=2*+p(+ +c(+(h=m*m+h*(a*r*h))),+ +c(+(1-h))),m=+o[t>>3],v=+f(.5*(m-v)),s=+o[t+8>>3],u=+f(.5*(s-u)),l=+d(+m),u=2*+p(+ +c(+(u=v*v+u*(a*l*u))),+ +c(+(1-u))),m=+f(.5*(i-m)),s=+f(.5*(n-s)),s=2*+p(+ +c(+(s=m*m+s*(r*l*s))),+ +c(+(1-s))),4*+b(+ +c(+ +g(.5*(l=.5*(h+u+s)))*+g(.5*(l-h))*+g(.5*(l-u))*+g(.5*(l-s))))}function ue(A,e,t){t|=0;var r,i,a,s=0,l=0;if(a=S,S=S+192|0,i=a,0|(l=0|XA(A|=0,e|=0,r=a+168|0)))return S=a,0|l;if(0|$A(A,e,i)&&M(27795,27190,415,27199),(0|(e=0|n[i>>2]))>0){if(s=+ce(i+8|0,i+8+((1!=(0|e)&1)<<4)|0,r)+0,1!=(0|e)){A=1;do{s+=+ce(i+8+((l=A)<<4)|0,i+8+((0|(A=A+1|0))%(0|e)<<4)|0,r)}while((0|A)<(0|e))}}else s=0;return o[t>>3]=s,S=a,0}function de(A){A|=0;var e,t,r=0;return(e=0|Ve(1,12))||M(27280,27235,49,27293),0|(r=0|n[(t=A+4|0)>>2])?(n[(r=r+8|0)>>2]=e,n[t>>2]=e,0|e):(0|n[A>>2]&&M(27310,27235,61,27333),n[(r=A)>>2]=e,n[t>>2]=e,0|e)}function fe(A,e){var t,r;return A|=0,e|=0,(r=0|Oe(24))||M(27347,27235,78,27361),n[r>>2]=n[e>>2],n[r+4>>2]=n[e+4>>2],n[r+8>>2]=n[e+8>>2],n[r+12>>2]=n[e+12>>2],n[r+16>>2]=0,0|(t=0|n[(e=A+4|0)>>2])?(n[t+16>>2]=r,n[e>>2]=r,0|r):(0|n[A>>2]&&M(27376,27235,82,27361),n[A>>2]=r,n[e>>2]=r,0|r)}function ge(A){var e=0,t=0,r=0,o=0;if(A|=0)for(r=1;;){if(0|(e=0|n[A>>2]))do{if(0|(t=0|n[e>>2]))do{o=t,t=0|n[t+16>>2],Ye(o)}while(0|t);o=e,e=0|n[e+8>>2],Ye(o)}while(0|e);if(e=A,A=0|n[A+8>>2],r||Ye(e),!A)break;r=0}}function he(A,e,t){A|=0;var r=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0;if(!(0|q(e|=0,t|=0)))return 0;if(e=0|K(e),r=+o[t>>3],i=e&(i=+o[t+8>>3])<0?i+6.283185307179586:i,!(A=0|n[A>>2]))return 0;if(e){e=0,u=i,t=A;A:for(;;){for(;s=+o[t>>3],i=+o[t+8>>3],d=0|n[(t=t+16|0)>>2],a=+o[(d=0|d?d:A)>>3],l=+o[d+8>>3],s>a?(c=s,s=l):(c=a,a=s,s=i,i=l),(r=r==a|r==c?r+2220446049250313e-31:r)c;)if(!(t=0|n[t>>2])){t=22;break A}if(((c=(l=s<0?s+6.283185307179586:s)+(r-a)/(c-a)*((s=i<0?i+6.283185307179586:i)-l))<0?c+6.283185307179586:c)>(u=l==u|s==u?u+-2220446049250313e-31:u)&&(e^=1),!(t=0|n[t>>2])){t=22;break}}if(22==(0|t))return 0|e}else{e=0,u=i,t=A;A:for(;;){for(;s=+o[t>>3],i=+o[t+8>>3],d=0|n[(t=t+16|0)>>2],a=+o[(d=0|d?d:A)>>3],l=+o[d+8>>3],s>a?(c=s,s=l):(c=a,a=s,s=i,i=l),(r=r==a|r==c?r+2220446049250313e-31:r)c;)if(!(t=0|n[t>>2])){t=22;break A}if(s+(r-a)/(c-a)*(i-s)>(u=s==u|i==u?u+-2220446049250313e-31:u)&&(e^=1),!(t=0|n[t>>2])){t=22;break}}if(22==(0|t))return 0|e}return 0}function me(A,e,t,o,i){t|=0,o|=0,i|=0;var a,s,l,c,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(c=S,S=S+32|0,y=c+16|0,l=c,u=0|tt(0|(A|=0),0|(e|=0),52),B(),u&=15,b=0|tt(0|t,0|o,52),B(),(0|u)!=(15&b))return S=c,12;if(h=0|tt(0|A,0|e,45),B(),h&=127,m=0|tt(0|t,0|o,45),B(),h>>>0>121|(m&=127)>>>0>121)return S=c,5;if(b=(0|h)!=(0|m)){if(7==(0|(f=0|W(h,m))))return S=c,1;7==(0|(g=0|W(m,h)))?M(27514,27538,161,27548):(p=f,d=g)}else p=0,d=0;a=0|z(h),s=0|z(m),n[y>>2]=0,n[y+4>>2]=0,n[y+8>>2]=0,n[y+12>>2]=0;do{if(p){if(f=(0|(m=0|n[4272+(28*h|0)+(p<<2)>>2]))>0,s)if(f){h=0,g=t,f=o;do{g=0|VA(g,f),f=0|B(),1==(0|(d=0|yA(d)))&&(d=0|yA(1)),h=h+1|0}while((0|h)!=(0|m));m=d,h=g,g=f}else m=d,h=t,g=o;else if(f){h=0,g=t,f=o;do{g=0|WA(g,f),f=0|B(),d=0|yA(d),h=h+1|0}while((0|h)!=(0|m));m=d,h=g,g=f}else m=d,h=t,g=o;if(JA(h,g,y),b||M(27563,27538,191,27548),(f=!!(0|a))&(d=!!(0|s))&&M(27590,27538,192,27548),f){if(7==(0|(d=0|UA(A,e)))){u=5;break}if(0|r[22e3+(7*d|0)+p|0]){u=1;break}h=g=0|n[21168+(28*d|0)+(p<<2)>>2]}else if(d){if(7==(0|(d=0|UA(h,g)))){u=5;break}if(0|r[22e3+(7*d|0)+m|0]){u=1;break}h=0,g=0|n[21168+(28*m|0)+(d<<2)>>2]}else h=0,g=0;if((h|g|0)<0)u=5;else{if((0|g)>0){f=y+4|0,d=0;do{pA(f),d=d+1|0}while((0|d)!=(0|g))}if(n[l>>2]=0,n[l+4>>2]=0,n[l+8>>2]=0,mA(l,p),0|u)for(;0|ZA(u)?gA(l):hA(l),(0|u)>1;)u=u+-1|0;if((0|h)>0){u=0;do{pA(l),u=u+1|0}while((0|u)!=(0|h))}iA(v=y+4|0,l,v),nA(v),v=51}}else if(JA(t,o,y),!!(0|a)&!!(0|s))if((0|m)!=(0|h)&&M(27621,27538,261,27548),7==(0|(d=0|UA(A,e)))|7==(0|(u=0|UA(t,o))))u=5;else if(0|r[22e3+(7*d|0)+u|0])u=1;else if((0|(d=0|n[21168+(28*d|0)+(u<<2)>>2]))>0){f=y+4|0,u=0;do{pA(f),u=u+1|0}while((0|u)!=(0|d));v=51}else v=51;else v=51}while(0);return 51==(0|v)&&(u=y+4|0,n[i>>2]=n[u>>2],n[i+4>>2]=n[u+4>>2],n[i+8>>2]=n[u+8>>2],u=0),S=c,0|u}function be(A,e,t,r){t|=0,r|=0;var o,i,a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(a=S,S=S+48|0,o=a+36|0,c=a+24|0,u=a+12|0,d=a,s=0|tt(0|(A|=0),0|(e|=0),52),B(),s&=15,g=0|tt(0|A,0|e,45),B(),(g&=127)>>>0>121)return S=a,5;if(i=0|z(g),rt(0|s,0,52),b=134225919|B(),n[(l=r)>>2]=-1,n[l+4>>2]=b,!s)return 7==(0|(s=0|lA(t)))||127==(0|(s=0|V(g,s)))?(S=a,0|(b=1)):(h=0|rt(0|s,0,45),m=0|B(),m=-1040385&n[(g=r)+4>>2]|m,n[(b=r)>>2]=n[g>>2]|h,n[b+4>>2]=m,S=a,0|(b=0));for(n[o>>2]=n[t>>2],n[o+4>>2]=n[t+4>>2],n[o+8>>2]=n[t+8>>2],t=s;;){if(l=t,t=t+-1|0,n[c>>2]=n[o>>2],n[c+4>>2]=n[o+4>>2],n[c+8>>2]=n[o+8>>2],0|ZA(l)){if(0|(s=0|cA(o))){t=13;break}n[u>>2]=n[o>>2],n[u+4>>2]=n[o+4>>2],n[u+8>>2]=n[o+8>>2],gA(u)}else{if(0|(s=0|uA(o))){t=13;break}n[u>>2]=n[o>>2],n[u+4>>2]=n[o+4>>2],n[u+8>>2]=n[o+8>>2],hA(u)}if(aA(c,u,d),nA(d),v=0|n[(s=r)>>2],s=0|n[s+4>>2],p=0|rt(7,0,0|(y=3*(15-l|0)|0)),s&=~B(),y=0|rt(0|lA(d),0,0|y),s=0|B()|s,n[(b=r)>>2]=y|v&~p,n[b+4>>2]=s,(0|l)<=1){t=14;break}}A:do{if(13!=(0|t)&&14==(0|t))if((0|n[o>>2])<=1&&(0|n[o+4>>2])<=1&&(0|n[o+8>>2])<=1){d=127==(0|(s=0|V(g,t=0|lA(o))))?0:0|z(s);e:do{if(t){if(i){if(7==(0|(s=0|UA(A,e)))){s=5;break A}if((0|(l=0|n[21376+(28*s|0)+(t<<2)>>2]))>0){s=t,t=0;do{s=0|vA(s),t=t+1|0}while((0|t)!=(0|l))}else s=t;if(1==(0|s)){s=9;break A}127==(0|(t=0|V(g,s)))&&M(27648,27538,411,27678),0|z(t)?M(27693,27538,412,27678):(m=t,h=l,f=s)}else m=s,h=0,f=t;if((0|(u=0|n[4272+(28*g|0)+(f<<2)>>2]))<=-1&&M(27724,27538,419,27678),!d){if((0|h)<0){s=5;break A}if(0|h){s=0,t=0|n[(l=r)>>2],l=0|n[l+4>>2];do{t=0|YA(t,l),l=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=l,s=s+1|0}while((0|s)<(0|h))}if((0|u)<=0){s=m,t=58;break}for(s=0,t=0|n[(l=r)>>2],l=0|n[l+4>>2];;)if(t=0|YA(t,l),l=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=l,(0|(s=s+1|0))==(0|u)){s=m,t=58;break e}}if(7==(0|(c=0|W(m,g)))&&M(27514,27538,428,27678),t=0|n[(s=r)>>2],s=0|n[s+4>>2],(0|u)>0){l=0;do{t=0|YA(t,s),s=0|B(),n[(y=r)>>2]=t,n[y+4>>2]=s,l=l+1|0}while((0|l)!=(0|u))}if(7==(0|(s=0|UA(t,s)))&&M(27795,27538,440,27678),t=0|G(m),(0|(t=0|n[(t?21792:21584)+(28*c|0)+(s<<2)>>2]))<0&&M(27795,27538,454,27678),t){s=0,l=0|n[(c=r)>>2],c=0|n[c+4>>2];do{l=0|OA(l,c),c=0|B(),n[(y=r)>>2]=l,n[y+4>>2]=c,s=s+1|0}while((0|s)<(0|t));s=m,t=58}else s=m,t=58}else if(!!(0|i)&!!(0|d)){if(7==(0|(t=0|UA(A,e)))|7==(0|(l=0|UA(0|n[(l=r)>>2],0|n[l+4>>2])))){s=5;break A}if((0|(l=0|n[21376+(28*t|0)+(l<<2)>>2]))<0){s=5;break A}if(l){t=0,c=0|n[(u=r)>>2],u=0|n[u+4>>2];do{c=0|YA(c,u),u=0|B(),n[(y=r)>>2]=c,n[y+4>>2]=u,t=t+1|0}while((0|t)<(0|l));t=58}else t=59}else t=58}while(0);if(58==(0|t)&&d&&(t=59),59==(0|t)&&1==(0|UA(0|n[(y=r)>>2],0|n[y+4>>2]))){s=9;break}p=0|n[(y=r)>>2],y=-1040385&n[y+4>>2],v=0|rt(0|s,0,45),y=0|y|B(),n[(s=r)>>2]=p|v,n[s+4>>2]=y,s=0}else s=1}while(0);return S=a,0|s}function pe(A,e,t,r){A|=0,e|=0;var n=0,o=0,i=0;if(!(0|(t|=0))&!(0|(r|=0)))return o=1,C(0|(n=0)),0|o;o=A,n=e,A=1,e=0;do{A=0|Xe(0|((i=!0&!(1&t))?1:o),0|(i?0:n),0|A,0|e),e=0|B(),t=0|et(0|t,0|r,1),r=0|B(),o=0|Xe(0|o,0|n,0|o,0|n),n=0|B()}while(!(!(0|t)&!(0|r)));return C(0|e),0|A}function ve(A,e,t,r){t|=0,r|=0;var i,a=0,s=0,l=0,c=0,u=0,f=0;i=S,S=S+16|0,s=i,l=0|tt(0|(A|=0),0|(e|=0),52),B(),l&=15;do{if(l){if(!(a=0|XA(A,e,s))){u=+o[s>>3],c=1/+d(+u),f=+o[25968+(l<<3)>>3],o[t>>3]=u+f,o[t+8>>3]=u-f,u=+o[s+8>>3],c*=f,o[t+16>>3]=c+u,o[t+24>>3]=u-c;break}return S=i,0|a}if(a=0|tt(0|A,0|e,45),B(),(a&=127)>>>0>121)return S=i,5;s=22064+(a<<5)|0,n[t>>2]=n[s>>2],n[t+4>>2]=n[s+4>>2],n[t+8>>2]=n[s+8>>2],n[t+12>>2]=n[s+12>>2],n[t+16>>2]=n[s+16>>2],n[t+20>>2]=n[s+20>>2],n[t+24>>2]=n[s+24>>2],n[t+28>>2]=n[s+28>>2];break}while(0);return function(A,e){e=+e;var t,r,n,i,a,s,l,c=0,u=0;c=(i=+o[(n=16+(A|=0)|0)>>3])-(r=+o[(t=A+24|0)>>3]),c=i>3],c=.5*(c*e-c),u+=e=.5*((l=u-(s=+o[(a=A+8|0)>>3]))*e-l),o[A>>3]=u>1.5707963267948966?1.5707963267948966:u,e=s-e,o[a>>3]=e<-1.5707963267948966?-1.5707963267948966:e,e=(e=i+c)>3.141592653589793?e+-6.283185307179586:e,o[n>>3]=e<-3.141592653589793?e+6.283185307179586:e,e=(e=r-c)>3.141592653589793?e+-6.283185307179586:e,o[t>>3]=e<-3.141592653589793?e+6.283185307179586:e}(t,r?1.4:1.1),(0|n[(r=26096+(l<<3)|0)>>2])==(0|A)&&(0|n[r+4>>2])==(0|e)&&(o[t>>3]=1.5707963267948966),(0|n[(l=26224+(l<<3)|0)>>2])==(0|A)&&(0|n[l+4>>2])==(0|e)&&(o[t+8>>3]=-1.5707963267948966),1.5707963267948966!=+o[t>>3]&&-1.5707963267948966!=+o[t+8>>3]?(S=i,0|(l=0)):(o[t+16>>3]=3.141592653589793,o[t+24>>3]=-3.141592653589793,S=i,0|(l=0))}function ye(A){var e,t,o,i,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0;if(i=S,S=S+336|0,e=i+168|0,t=i,!(0|(s=0|n[(l=A|=0)>>2]))&!(0|(l=0|n[l+4>>2])))S=i;else{if(0|r[0|(a=A+28|0)]?(s=0|we(s,l),l=0|B()):r[0|a]=1,!(0|n[n[(o=A+20|0)>>2]>>2]))return 0|(s=0|n[(a=A+24|0)>>2])&&Ye(s),n[(x=A)>>2]=0,n[x+4>>2]=0,n[A+8>>2]=0,n[o>>2]=0,n[A+12>>2]=-1,n[A+16>>2]=0,n[a>>2]=0,void(S=i);c=15&(a=0|n[(x=A+16|0)>>2]);A:do{if(!(0|s)&!(0|l))w=A+24|0;else{v=A+12|0,b=3==(0|c),m=255&a,g=3==(1|c),p=A+24|0,h=(c+-1|0)>>>0<3,d=3==(2|c),f=t+8|0;e:for(;;){if(u=0|tt(0|s,0|l,52),B(),(0|(u&=15))==(0|n[v>>2])){switch(15&m){case 0:case 2:case 3:if(0|(c=0|XA(s,l,e))){y=15;break e}if(0|Me(0|n[o>>2],0|n[p>>2],e)){y=19;break e}}if(g&&(c=0|n[4+(0|n[o>>2])>>2],n[e>>2]=n[c>>2],n[e+4>>2]=n[c+4>>2],n[e+8>>2]=n[c+8>>2],n[e+12>>2]=n[c+12>>2],0|q(26832,e))){if(0|KA(0|n[4+(0|n[o>>2])>>2],u,t)){y=25;break}if((0|n[(c=t)>>2])==(0|s)&&(0|n[c+4>>2])==(0|l)){y=29;break}}if(h){if(0|(c=0|$A(s,l,e))){y=32;break}if(0|ve(s,l,t,0)){y=36;break}if(d&&0|De(0|n[o>>2],0|n[p>>2],e,t)){y=42;break}if(g&&0|je(0|n[o>>2],0|n[p>>2],e,t)){y=42;break}}if(b){if(a=0|ve(s,l,e,1),c=0|n[p>>2],0|a){y=45;break}if(0|X(c,e)){if(AA(t,e),0|$(e,0|n[p>>2])){y=53;break}if(0|Me(0|n[o>>2],0|n[p>>2],f)){y=53;break}if(0|je(0|n[o>>2],0|n[p>>2],t,e)){y=53;break}}}}do{if((0|u)<(0|n[v>>2])){if(a=0|ve(s,l,e,1),c=0|n[p>>2],0|a){y=58;break e}if(!(0|X(c,e))){y=73;break}if(0|$(0|n[p>>2],e)&&(AA(t,e),0|De(0|n[o>>2],0|n[p>>2],t,e))){y=65;break e}if(0|(s=0|GA(s,l,u+1|0,t))){y=67;break e}s=0|n[(l=t)>>2],l=0|n[l+4>>2]}else y=73}while(0);if(73==(0|y)&&(y=0,s=0|we(s,l),l=0|B()),!(0|s)&!(0|l)){w=p;break A}}switch(0|y){case 15:0|(a=0|n[p>>2])&&Ye(a),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=c,y=20;break;case 19:n[A>>2]=s,n[A+4>>2]=l,y=20;break;case 25:M(27795,27761,470,27772);break;case 29:case 42:return n[A>>2]=s,n[A+4>>2]=l,void(S=i);case 32:return 0|(a=0|n[p>>2])&&Ye(a),n[(w=A)>>2]=0,n[w+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=c,void(S=i);case 36:M(27795,27761,493,27772);break;case 45:0|c&&Ye(c),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=a,y=55;break;case 53:n[A>>2]=s,n[A+4>>2]=l,y=55;break;case 58:0|c&&Ye(c),n[(y=A)>>2]=0,n[y+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=a,y=71;break;case 65:n[A>>2]=s,n[A+4>>2]=l,y=71;break;case 67:return 0|(a=0|n[p>>2])&&Ye(a),n[(w=A)>>2]=0,n[w+4>>2]=0,n[o>>2]=0,n[v>>2]=-1,n[x>>2]=0,n[p>>2]=0,n[A+8>>2]=s,void(S=i)}if(20==(0|y))return void(S=i);if(55==(0|y))return void(S=i);if(71==(0|y))return void(S=i)}}while(0);0|(a=0|n[w>>2])&&Ye(a),n[(y=A)>>2]=0,n[y+4>>2]=0,n[A+8>>2]=0,n[o>>2]=0,n[A+12>>2]=-1,n[x>>2]=0,n[w>>2]=0,S=i}}function we(A,e){var t,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0;t=S,S=S+16|0,d=t,o=0|tt(0|(A|=0),0|(e|=0),52),B(),o&=15,r=0|tt(0|A,0|e,45),B();do{if(o){for(;r=0|rt(o+4095|0,0,52),i=B()|-15728641&e,r=r|A|(s=0|rt(7,0,0|(a=3*(15-o|0)|0))),i|=l=0|B(),c=0|tt(0|A,0|e,0|a),B(),o=o+-1|0,!((c&=7)>>>0<6);){if(!o){u=4;break}e=i,A=r}if(4==(0|u)){r=0|tt(0|r,0|i,45),B();break}return d=0|rt(((d=!(0|c)&!!(0|HA(r,i)))?2:1)+c|0,0,0|a),u=0|B()|e&~l,d|=A&~s,C(0|u),S=t,0|d}}while(0);return(r&=127)>>>0>120?(d=0,C(0|(u=0)),S=t,0|d):(IA(d,0,r+1|0,0),u=0|n[d+4>>2],d=0|n[d>>2],C(0|u),S=t,0|d)}function xe(A,e,t){A|=0;var r,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0;if(!(0|q(e|=0,t|=0)))return 0;if(e=0|K(e),i=+o[t>>3],a=e&(a=+o[t+8>>3])<0?a+6.283185307179586:a,(0|(g=0|n[A>>2]))<=0)return 0;if(r=0|n[A+4>>2],e){e=0,f=a,t=-1,A=0;A:for(;;){for(d=A;l=+o[r+(d<<4)>>3],a=+o[r+(d<<4)+8>>3],s=+o[r+((A=(t+2|0)%(0|g)|0)<<4)>>3],c=+o[r+(A<<4)+8>>3],l>s?(u=l,l=c):(u=s,s=l,l=a,a=c),(i=i==s|i==u?i+2220446049250313e-31:i)u;){if((0|(t=d+1|0))>=(0|g)){t=22;break A}A=d,d=t,t=A}if(((u=(c=l<0?l+6.283185307179586:l)+(i-s)/(u-s)*((l=a<0?a+6.283185307179586:a)-c))<0?u+6.283185307179586:u)>(f=c==f|l==f?f+-2220446049250313e-31:f)&&(e^=1),(0|(A=d+1|0))>=(0|g)){t=22;break}t=d}if(22==(0|t))return 0|e}else{e=0,f=a,t=-1,A=0;A:for(;;){for(d=A;l=+o[r+(d<<4)>>3],a=+o[r+(d<<4)+8>>3],s=+o[r+((A=(t+2|0)%(0|g)|0)<<4)>>3],c=+o[r+(A<<4)+8>>3],l>s?(u=l,l=c):(u=s,s=l,l=a,a=c),(i=i==s|i==u?i+2220446049250313e-31:i)u;){if((0|(t=d+1|0))>=(0|g)){t=22;break A}A=d,d=t,t=A}if(l+(i-s)/(u-s)*(a-l)>(f=l==f|a==f?f+-2220446049250313e-31:f)&&(e^=1),(0|(A=d+1|0))>=(0|g)){t=22;break}t=d}if(22==(0|t))return 0|e}return 0}function ke(A,e){e|=0;var t,r,i,a,s,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0;if(!(r=0|n[(A|=0)>>2]))return n[e>>2]=0,n[e+4>>2]=0,n[e+8>>2]=0,n[e+12>>2]=0,n[e+16>>2]=0,n[e+20>>2]=0,n[e+24>>2]=0,void(n[e+28>>2]=0);if(o[(i=e+8|0)>>3]=17976931348623157e292,o[(a=e+24|0)>>3]=17976931348623157e292,o[e>>3]=-17976931348623157e292,o[(s=e+16|0)>>3]=-17976931348623157e292,!((0|r)<=0)){for(t=0|n[A+4>>2],b=17976931348623157e292,p=-17976931348623157e292,v=0,A=-1,f=17976931348623157e292,g=17976931348623157e292,m=-17976931348623157e292,u=-17976931348623157e292,y=0;c=+o[t+(y<<4)>>3],h=+o[t+(y<<4)+8>>3],d=+o[t+(((0|(A=A+2|0))==(0|r)?0:A)<<4)+8>>3],c>3]=c,f=c),h>3]=h,g=h),c>m?o[e>>3]=c:c=m,h>u&&(o[s>>3]=h,u=h),b=h>0&hp?h:p,v|=+l(+(h-d))>3.141592653589793,(0|(A=y+1|0))!=(0|r);)w=y,m=c,y=A,A=w;v&&(o[s>>3]=p,o[a>>3]=b)}}function Ce(A){return 0|((A|=0)>>>0<4?0:15)}function Be(A,e){e|=0;var t,r=0,i=0,a=0,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,M=0;if(p=0|n[(A|=0)>>2]){if(o[(v=e+8|0)>>3]=17976931348623157e292,o[(y=e+24|0)>>3]=17976931348623157e292,o[e>>3]=-17976931348623157e292,o[(w=e+16|0)>>3]=-17976931348623157e292,(0|p)>0){for(a=0|n[A+4>>2],m=17976931348623157e292,b=-17976931348623157e292,i=0,r=-1,d=17976931348623157e292,f=17976931348623157e292,h=-17976931348623157e292,c=-17976931348623157e292,x=0;s=+o[a+(x<<4)>>3],g=+o[a+(x<<4)+8>>3],u=+o[a+(((0|(B=r+2|0))==(0|p)?0:B)<<4)+8>>3],s>3]=s,d=s),g>3]=g,f=g),s>h?o[e>>3]=s:s=h,g>c&&(o[w>>3]=g,c=g),m=g>0&gb?g:b,i|=+l(+(g-u))>3.141592653589793,(0|(r=x+1|0))!=(0|p);)B=x,h=s,x=r,r=B;i&&(o[w>>3]=b,o[y>>3]=m)}}else n[e>>2]=0,n[e+4>>2]=0,n[e+8>>2]=0,n[e+12>>2]=0,n[e+16>>2]=0,n[e+20>>2]=0,n[e+24>>2]=0,n[e+28>>2]=0;if(!((0|(r=0|n[(B=A+8|0)>>2]))<=0)){t=A+12|0,C=0;do{if(a=0|n[t>>2],i=C,y=e+((C=C+1|0)<<5)|0,w=0|n[a+(i<<3)>>2]){if(o[(x=e+(C<<5)+8|0)>>3]=17976931348623157e292,o[(A=e+(C<<5)+24|0)>>3]=17976931348623157e292,o[y>>3]=-17976931348623157e292,o[(k=e+(C<<5)+16|0)>>3]=-17976931348623157e292,(0|w)>0){for(p=0|n[a+(i<<3)+4>>2],m=17976931348623157e292,b=-17976931348623157e292,a=0,i=-1,v=0,d=17976931348623157e292,f=17976931348623157e292,g=-17976931348623157e292,c=-17976931348623157e292;s=+o[p+(v<<4)>>3],h=+o[p+(v<<4)+8>>3],u=+o[p+(((0|(i=i+2|0))==(0|w)?0:i)<<4)+8>>3],s>3]=s,d=s),h>3]=h,f=h),s>g?o[y>>3]=s:s=g,h>c&&(o[k>>3]=h,c=h),m=h>0&hb?h:b,a|=+l(+(h-u))>3.141592653589793,(0|(i=v+1|0))!=(0|w);)M=v,v=i,g=s,i=M;a&&(o[k>>3]=b,o[A>>3]=m)}}else n[y>>2]=0,n[y+4>>2]=0,n[y+8>>2]=0,n[y+12>>2]=0,n[y+16>>2]=0,n[y+20>>2]=0,n[y+24>>2]=0,n[y+28>>2]=0,r=0|n[B>>2]}while((0|C)<(0|r))}}function Me(A,e,t){var r=0,o=0,i=0;if(!(0|xe(A|=0,e|=0,t|=0)))return 0;if((0|n[(o=A+8|0)>>2])<=0)return 1;for(r=A+12|0,A=0;;){if(i=A,A=A+1|0,0|xe((0|n[r>>2])+(i<<3)|0,e+(A<<5)|0,t)){A=0,r=6;break}if((0|A)>=(0|n[o>>2])){A=1,r=6;break}}return 6==(0|r)?0|A:0}function De(A,e,t,r){r|=0;var o,i,a=0,s=0,l=0,c=0,u=0;if(i=S,S=S+16|0,o=i,!(0|xe(A|=0,e|=0,l=8+(t|=0)|0)))return S=i,0;c=A+8|0;A:do{if((0|n[c>>2])>0){for(s=A+12|0,a=0;;){if(u=a,a=a+1|0,0|xe((0|n[s>>2])+(u<<3)|0,e+(a<<5)|0,l)){a=0;break}if((0|a)>=(0|n[c>>2]))break A}return S=i,0|a}}while(0);if(0|Ee(A,e,t,r))return S=i,0;n[o>>2]=n[t>>2],n[o+4>>2]=l,a=0|n[c>>2];A:do{if((0|a)>0)for(A=A+12|0,l=0,s=a;;){if(a=0|n[A>>2],(0|n[a+(l<<3)>>2])>0){if(0|xe(o,r,0|n[a+(l<<3)+4>>2])){a=0;break A}if(a=l+1|0,0|Ee((0|n[A>>2])+(l<<3)|0,e+(a<<5)|0,t,r)){a=0;break A}s=0|n[c>>2]}else a=l+1|0;if(!((0|a)<(0|s))){a=1;break}l=a}else a=1}while(0);return S=i,0|a}function Ee(A,e,t,r){A|=0,t|=0;var i,a,s,l,c,u,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,M=0;if(u=S,S=S+176|0,l=u+172|0,d=u+168|0,c=u,!(0|X(e|=0,r|=0)))return S=u,0;if(function(A,e,t,r){var i,a,s,l,c;e|=0,t|=0,r|=0,A=(a=+o[16+(A|=0)>>3])<(c=+o[A+24>>3]),i=(l=+o[e+16>>3])<(s=+o[e+24>>3]),e=c-l>2]=A?i|e?1:2:0,n[r>>2]=i?A?1:e?2:1:0}(e,r,l,d),st(0|c,0|t,168),(0|n[t>>2])>0){e=0;do{x=+ie(+o[(B=c+8+(e<<4)+8|0)>>3],0|n[d>>2]),o[B>>3]=x,e=e+1|0}while((0|e)<(0|n[t>>2]))}a=+o[r>>3],s=+o[r+8>>3],x=+ie(+o[r+16>>3],0|n[d>>2]),i=+ie(+o[r+24>>3],0|n[d>>2]);A:do{if((0|n[A>>2])>0){if(r=A+4|0,(0|(d=0|n[c>>2]))<=0)for(e=0;;)if((0|(e=e+1|0))>=(0|n[A>>2])){e=0;break A}for(t=0;;){if(e=0|n[r>>2],y=+o[e+(t<<4)>>3],w=+ie(+o[e+(t<<4)+8>>3],0|n[l>>2]),e=0|n[r>>2],B=(0|(t=t+1|0))%(0|n[A>>2])|0,f=+o[e+(B<<4)>>3],g=+ie(+o[e+(B<<4)+8>>3],0|n[l>>2]),!(y>=a)|!(f>=a)&&!(y<=s)|!(f<=s)&&!(w<=i)|!(g<=i)&&!(w>=x)|!(g>=x)){v=f-y,b=g-w,e=0;do{if(M=e,B=(0|(e=e+1|0))==(0|d)?0:e,f=+o[c+8+(M<<4)+8>>3],g=+o[c+8+(B<<4)+8>>3]-f,h=+o[c+8+(M<<4)>>3],!(0==(p=v*g-b*(m=+o[c+8+(B<<4)>>3]-h))||(k=w-f,C=y-h,m=(k*m-g*C)/p,m<0|m>1))&&(p=(v*k-b*C)/p)>=0&p<=1){e=1;break A}}while((0|e)<(0|d))}if((0|t)>=(0|n[A>>2])){e=0;break}}}else e=0}while(0);return S=u,0|e}function je(A,e,t,r){var o=0,i=0,a=0;if(0|Ee(A|=0,e|=0,t|=0,r|=0))return 1;if((0|n[(i=A+8|0)>>2])<=0)return 0;for(o=A+12|0,A=0;;){if(a=A,A=A+1|0,0|Ee((0|n[o>>2])+(a<<3)|0,e+(A<<5)|0,t,r)){A=1,o=6;break}if((0|A)>=(0|n[i>>2])){A=0,o=6;break}}return 6==(0|o)?0|A:0}function Qe(A,e,t,r,n){e|=0,t|=0,r|=0,n|=0;var i,a,s,l,c,u,d,f=0;l=+o[(A|=0)>>3],s=+o[e>>3]-l,a=+o[A+8>>3],i=+o[e+8>>3]-a,u=+o[t>>3],f=((f=+o[r>>3]-u)*(a-(d=+o[t+8>>3]))-(l-u)*(c=+o[r+8>>3]-d))/(s*c-i*f),o[n>>3]=l+s*f,o[n+8>>3]=a+i*f}function Ne(A,e){return e|=0,+l(+(+o[(A|=0)>>3]-+o[e>>3]))<1.1920928955078125e-7?0|(e=+l(+(+o[A+8>>3]-+o[e+8>>3]))<1.1920928955078125e-7):0|(e=0)}function Se(A,e){var t,r,n;return e|=0,+((n=+o[(A|=0)>>3]-+o[e>>3])*n+(r=+o[A+8>>3]-+o[e+8>>3])*r+(t=+o[A+16>>3]-+o[e+16>>3])*t)}function Fe(A,e,t){t|=0;var r,o,i,a,s=0,l=0,c=0,u=0;if(a=S,S=S+32|0,u=a,0|(s=0|qA(A|=0,e|=0,o=a+16|0)))return S=a,0|s;r=0|TA(A,e),i=0|UA(A,e),function(A,e){A=7696+(28*(A|=0)|0)|0,n[(e|=0)>>2]=n[A>>2],n[e+4>>2]=n[A+4>>2],n[e+8>>2]=n[A+8>>2],n[e+12>>2]=n[A+12>>2]}(r,u),s=0|function(A,e){A|=0;var t=0,r=0;if((e|=0)>>>0>20)return-1;do{if((0|n[11120+(216*e|0)>>2])!=(0|A))if((0|n[11120+(216*e|0)+8>>2])!=(0|A))if((0|n[11120+(216*e|0)+16>>2])!=(0|A))if((0|n[11120+(216*e|0)+24>>2])!=(0|A))if((0|n[11120+(216*e|0)+32>>2])!=(0|A))if((0|n[11120+(216*e|0)+40>>2])!=(0|A))if((0|n[11120+(216*e|0)+48>>2])!=(0|A))if((0|n[11120+(216*e|0)+56>>2])!=(0|A))if((0|n[11120+(216*e|0)+64>>2])!=(0|A))if((0|n[11120+(216*e|0)+72>>2])!=(0|A))if((0|n[11120+(216*e|0)+80>>2])!=(0|A))if((0|n[11120+(216*e|0)+88>>2])!=(0|A))if((0|n[11120+(216*e|0)+96>>2])!=(0|A))if((0|n[11120+(216*e|0)+104>>2])!=(0|A))if((0|n[11120+(216*e|0)+112>>2])!=(0|A))if((0|n[11120+(216*e|0)+120>>2])!=(0|A))if((0|n[11120+(216*e|0)+128>>2])!=(0|A)){if((0|n[11120+(216*e|0)+136>>2])!=(0|A)){if((0|n[11120+(216*e|0)+144>>2])==(0|A)){A=0,t=2,r=0;break}if((0|n[11120+(216*e|0)+152>>2])==(0|A)){A=0,t=2,r=1;break}if((0|n[11120+(216*e|0)+160>>2])==(0|A)){A=0,t=2,r=2;break}if((0|n[11120+(216*e|0)+168>>2])==(0|A)){A=1,t=2,r=0;break}if((0|n[11120+(216*e|0)+176>>2])==(0|A)){A=1,t=2,r=1;break}if((0|n[11120+(216*e|0)+184>>2])==(0|A)){A=1,t=2,r=2;break}if((0|n[11120+(216*e|0)+192>>2])==(0|A)){A=2,t=2,r=0;break}if((0|n[11120+(216*e|0)+200>>2])==(0|A)){A=2,t=2,r=1;break}if((0|n[11120+(216*e|0)+208>>2])==(0|A)){A=2,t=2,r=2;break}return-1}A=2,t=1,r=2}else A=2,t=1,r=1;else A=2,t=1,r=0;else A=1,t=1,r=2;else A=1,t=1,r=1;else A=1,t=1,r=0;else A=0,t=1,r=2;else A=0,t=1,r=1;else A=0,t=1,r=0;else A=2,t=0,r=2;else A=2,t=0,r=1;else A=2,t=0,r=0;else A=1,t=0,r=2;else A=1,t=0,r=1;else A=1,t=0,r=0;else A=0,t=0,r=2;else A=0,t=0,r=1;else A=0,t=0,r=0}while(0);return 0|n[11120+(216*e|0)+(72*t|0)+(24*A|0)+(r<<3)+4>>2]}(r,0|n[o>>2]);do{if(0|z(r)){switch(0|r){case 4:l=0;break;case 14:l=1;break;case 24:l=2;break;case 38:l=3;break;case 49:l=4;break;case 58:l=5;break;case 63:l=6;break;case 72:l=7;break;case 83:l=8;break;case 97:l=9;break;case 107:l=10;break;case 117:l=11;break;default:M(27795,27797,75,27806)}if(c=0|n[26416+(24*l|0)+8>>2],e=0|n[26416+(24*l|0)+16>>2],(0|(A=0|n[o>>2]))!=(0|n[u>>2])&&(u=0|G(r))|(0|(A=0|n[o>>2]))==(0|e)&&(s=(s+1|0)%6|0),3==(0|i)&(0|A)==(0|e)){s=(s+5|0)%6|0;break}5==(0|i)&(0|A)==(0|c)&&(s=(s+1|0)%6|0)}}while(0);return n[t>>2]=s,S=a,0}function Pe(A,e,t,r){t|=0,r|=0;var o,i,a,s,l,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0;if(l=S,S=S+32|0,y=l+24|0,s=l+20|0,a=l+8|0,i=l+16|0,o=l,g=(g=!(0|HA(A|=0,e|=0)))?6:5,m=0|tt(0|A,0|e,52),B(),g>>>0<=t>>>0)return S=l,2;!(b=!(0|(m&=15)))&&!((p=0|rt(7,0,3*(15^m)|0))&A)&!((0|B())&e)?c=t:u=4;A:do{if(4==(0|u)){if((0|((c=!!(0|HA(A,e)))?4:5))<(0|t))return S=l,1;if(0|Fe(A,e,y))return S=l,1;if(u=(0|n[y>>2])+t|0,7==(0|(p=0|n[(c=c?26704+((0|u)%5<<2)|0:26736+((0|u)%6<<2)|0)>>2])))return S=l,1;n[s>>2]=0,c=0|I(A,e,p,s,a);do{if(!c){if(h=0|n[(f=a)>>2],u=(d=(f=0|n[f+4>>2])>>>0>>0|(0|f)==(0|e)&h>>>0>>0)?h:A,d=d?f:e,!b&&!(h&(b=0|rt(7,0,3*(15^m)|0)))&!(f&(0|B())))c=t;else{if(f=(t+-1+g|0)%(0|g)|0,c=0|HA(A,e),(0|f)<0&&M(27795,27797,248,27822),(0|((g=!!(0|c))?4:5))<(0|f)&&M(27795,27797,248,27822),0|Fe(A,e,y)&&M(27795,27797,248,27822),c=(0|n[y>>2])+f|0,7==(0|(f=0|n[(c=g?26704+((0|c)%5<<2)|0:26736+((0|c)%6<<2)|0)>>2]))&&M(27795,27797,248,27822),n[i>>2]=0,0|(c=0|I(A,e,f,i,o)))break;g=0|n[(h=o)>>2],h=0|n[h+4>>2];do{if(h>>>0>>0|(0|h)==(0|d)&g>>>0>>0){if(u=0|HA(g,h)?0|_(g,h,A,e):0|n[26800+(((0|n[i>>2])+(0|n[26768+(f<<2)>>2])|0)%6<<2)>>2],c=0|HA(g,h),(u+-1|0)>>>0>5){c=-1,u=g,d=h;break}if(1==(0|u)&(c=!!(0|c))){c=-1,u=g,d=h;break}do{if(!(0|Fe(g,h,y))){if(c){c=(5+(0|n[26352+(u<<2)>>2])-(0|n[y>>2])|0)%5|0;break}c=(6+(0|n[26384+(u<<2)>>2])-(0|n[y>>2])|0)%6|0;break}c=-1}while(0);u=g,d=h}else c=t}while(0);h=0|n[(f=a)>>2],f=0|n[f+4>>2]}if((0|u)==(0|h)&(0|d)==(0|f)){if(A=(g=!!(0|HA(h,f)))?0|_(h,f,A,e):0|n[26800+(((0|n[s>>2])+(0|n[26768+(p<<2)>>2])|0)%6<<2)>>2],c=0|HA(h,f),(A+-1|0)>>>0<=5&&!(1==(0|A)&(v=!!(0|c))))do{if(!(0|Fe(h,f,y))){if(v){c=(5+(0|n[26352+(A<<2)>>2])-(0|n[y>>2])|0)%5|0;break}c=(6+(0|n[26384+(A<<2)>>2])-(0|n[y>>2])|0)%6|0;break}c=-1}while(0);else c=-1;c=6==(0|(c=c+1|0))|g&5==(0|c)?0:c}e=d,A=u;break A}}while(0);return S=l,0|c}}while(0);return v=0|rt(0|c,0,56),y=B()|-2130706433&e|536870912,n[r>>2]=v|A,n[r+4>>2]=y,S=l,0}function Te(A,e){A|=0;var t,r,o=0,i=0;return r=S,S=S+16|0,t=r,!0&536870912==(2013265920&(e|=0))&&0|LA(A,o=-2130706433&e|134217728)?(i=0|tt(0|A,0|e,56),B(),o=(i=!(0|Pe(A,o,7&i,t)))&((0|n[(o=t)>>2])==(0|A)?(0|n[o+4>>2])==(0|e):0)&1,S=r,0|o):(S=r,0|(o=0))}function Le(A,e,t){A|=0,t|=0;var r=0;(0|(e|=0))>0?(r=0|Ve(e,4),n[A>>2]=r,r||M(27835,27858,40,27872)):n[A>>2]=0,n[A+4>>2]=e,n[A+8>>2]=0,n[A+12>>2]=t}function Ie(A){var e,t,r,i=0,a=0,s=0,c=0;e=4+(A|=0)|0,t=A+12|0,r=A+8|0;A:for(;;){for(a=0|n[e>>2],i=0;;){if((0|i)>=(0|a))break A;if(s=0|n[A>>2],c=0|n[s+(i<<2)>>2])break;i=i+1|0}i=s+(~~(+l(+ +u(10,+ +(15-(0|n[t>>2])|0))*(+o[c>>3]+ +o[c+8>>3]))%+(0|a))>>>0<<2)|0,a=0|n[i>>2];e:do{if(0|a){if(s=c+32|0,(0|a)==(0|c))n[i>>2]=n[s>>2];else{if(!(i=0|n[(a=a+32|0)>>2]))break;for(;(0|i)!=(0|c);)if(!(i=0|n[(a=i+32|0)>>2]))break e;n[a>>2]=n[s>>2]}Ye(c),n[r>>2]=(0|n[r>>2])-1}}while(0)}Ye(0|n[A>>2])}function Re(A){var e,t=0,r=0;for(e=0|n[4+(A|=0)>>2],r=0;;){if((0|r)>=(0|e)){t=0,r=4;break}if(t=0|n[(0|n[A>>2])+(r<<2)>>2]){r=4;break}r=r+1|0}return 4==(0|r)?0|t:0}function _e(A,e){e|=0;var t=0,r=0,i=0,a=0;if(t=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,t=(0|n[A>>2])+(t<<2)|0,!(r=0|n[t>>2]))return 1;a=e+32|0;do{if((0|r)!=(0|e)){if(!(t=0|n[r+32>>2]))return 1;for(i=t;;){if((0|i)==(0|e)){i=8;break}if(!(t=0|n[i+32>>2])){t=1,i=10;break}r=i,i=t}if(8==(0|i)){n[r+32>>2]=n[a>>2];break}if(10==(0|i))return 0|t}else n[t>>2]=n[a>>2]}while(0);return Ye(e),n[(a=A+8|0)>>2]=(0|n[a>>2])-1,0}function He(A,e,t){A|=0,e|=0,t|=0;var r,i=0,a=0,s=0;(r=0|Oe(40))||M(27888,27858,98,27901),n[r>>2]=n[e>>2],n[r+4>>2]=n[e+4>>2],n[r+8>>2]=n[e+8>>2],n[r+12>>2]=n[e+12>>2],n[(a=r+16|0)>>2]=n[t>>2],n[a+4>>2]=n[t+4>>2],n[a+8>>2]=n[t+8>>2],n[a+12>>2]=n[t+12>>2],n[r+32>>2]=0,a=~~(+l(+ +u(10,+ +(15-(0|n[A+12>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,a=(0|n[A>>2])+(a<<2)|0,i=0|n[a>>2];do{if(i){for(;!(0|oe(i,e)&&0|oe(i+16|0,t));)if(a=0|n[i+32>>2],!(0|n[(i=0|a?a:i)+32>>2])){s=10;break}if(10==(0|s)){n[i+32>>2]=r;break}return Ye(r),0|i}n[a>>2]=r}while(0);return n[(s=A+8|0)>>2]=1+(0|n[s>>2]),0|r}function ze(A,e,t){e|=0,t|=0;var r=0,i=0;if(i=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,!(i=0|n[(0|n[A>>2])+(i<<2)>>2]))return 0;if(!t){for(A=i;;){if(0|oe(A,e)){r=10;break}if(!(A=0|n[A+32>>2])){A=0,r=10;break}}if(10==(0|r))return 0|A}for(A=i;;){if(0|oe(A,e)&&0|oe(A+16|0,t)){r=10;break}if(!(A=0|n[A+32>>2])){A=0,r=10;break}}return 10==(0|r)?0|A:0}function Ge(A,e){e|=0;var t=0;if(t=~~(+l(+ +u(10,+ +(15-(0|n[12+(A|=0)>>2])|0))*(+o[e>>3]+ +o[e+8>>3]))%+(0|n[A+4>>2]))>>>0,!(A=0|n[(0|n[A>>2])+(t<<2)>>2]))return 0;for(;;){if(0|oe(A,e)){e=5;break}if(!(A=0|n[A+32>>2])){A=0,e=5;break}}return 5==(0|e)?0|A:0}function Ue(A){return 0|+ct(+(A=+A))}function Oe(A){A|=0;var e,t=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0;e=S,S=S+16|0,g=e;do{if(A>>>0<245){if(A=(u=A>>>0<11?16:A+11&-8)>>>3,3&(r=(f=0|n[6981])>>>A))return o=0|n[(r=8+(A=27964+((t=(1&r^1)+A|0)<<1<<2)|0)|0)>>2],(0|(a=0|n[(i=o+8|0)>>2]))==(0|A)?n[6981]=f&~(1<>2]=A,n[r>>2]=a),x=t<<3,n[o+4>>2]=3|x,n[(x=o+x+4|0)>>2]=1|n[x>>2],S=e,0|i;if(u>>>0>(d=0|n[6983])>>>0){if(0|r)return t=((t=r<>>=l=t>>>12&16)>>>5&8)|l|(a=(t>>>=r)>>>2&4)|(A=(t>>>=a)>>>1&2)|(o=(t>>>=A)>>>1&1))+(t>>>o)|0)<<1<<2)|0)|0)>>2],(0|(r=0|n[(l=a+8|0)>>2]))==(0|t)?(A=f&~(1<>2]=t,n[A>>2]=r,A=f),s=(x=o<<3)-u|0,n[a+4>>2]=3|u,n[4+(i=a+u|0)>>2]=1|s,n[a+x>>2]=s,0|d&&(o=0|n[6986],r=27964+((t=d>>>3)<<1<<2)|0,A&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=o,n[t+12>>2]=o,n[o+8>>2]=t,n[o+12>>2]=r),n[6983]=s,n[6986]=i,S=e,0|l;if(a=0|n[6982]){for(r=(a&0-a)-1|0,r=c=0|n[28228+(((o=(r>>>=i=r>>>12&16)>>>5&8)|i|(s=(r>>>=o)>>>2&4)|(l=(r>>>=s)>>>1&2)|(c=(r>>>=l)>>>1&1))+(r>>>c)<<2)>>2],l=c,c=(-8&n[c+4>>2])-u|0;(A=0|n[r+16>>2])||(A=0|n[r+20>>2]);)r=A,l=(i=(s=(-8&n[A+4>>2])-u|0)>>>0>>0)?A:l,c=i?s:c;if((s=l+u|0)>>>0>l>>>0){i=0|n[l+24>>2],t=0|n[l+12>>2];do{if((0|t)==(0|l)){if(!(t=0|n[(A=l+20|0)>>2])&&!(t=0|n[(A=l+16|0)>>2])){r=0;break}for(;;)if(r=0|n[(o=t+20|0)>>2])t=r,A=o;else{if(!(r=0|n[(o=t+16|0)>>2]))break;t=r,A=o}n[A>>2]=0,r=t}else r=0|n[l+8>>2],n[r+12>>2]=t,n[t+8>>2]=r,r=t}while(0);do{if(0|i){if(t=0|n[l+28>>2],(0|l)==(0|n[(A=28228+(t<<2)|0)>>2])){if(n[A>>2]=r,!r){n[6982]=a&~(1<>2])==(0|l)?x:i+20)>>2]=r,!r)break;n[r+24>>2]=i,0|(t=0|n[l+16>>2])&&(n[r+16>>2]=t,n[t+24>>2]=r),0|(t=0|n[l+20>>2])&&(n[r+20>>2]=t,n[t+24>>2]=r)}}while(0);return c>>>0<16?(x=c+u|0,n[l+4>>2]=3|x,n[(x=l+x+4|0)>>2]=1|n[x>>2]):(n[l+4>>2]=3|u,n[s+4>>2]=1|c,n[s+c>>2]=c,0|d&&(o=0|n[6986],r=27964+((t=d>>>3)<<1<<2)|0,(t=1<>2]:(n[6981]=t|f,t=r,A=r+8|0),n[A>>2]=o,n[t+12>>2]=o,n[o+8>>2]=t,n[o+12>>2]=r),n[6983]=c,n[6986]=s),S=e,0|l+8}f=u}else f=u}else f=u}else if(A>>>0<=4294967231)if(u=-8&(A=A+11|0),o=0|n[6982]){i=0-u|0,c=(A>>>=8)?u>>>0>16777215?31:u>>>(7+(c=14-((l=(520192+(b=A<<(f=(A+1048320|0)>>>16&8))|0)>>>16&4)|f|(c=(245760+(b<<=l)|0)>>>16&2))+(b<>>15)|0)|0)&1|c<<1:0,r=0|n[28228+(c<<2)>>2];A:do{if(r)for(A=0,l=u<<(31==(0|c)?0:25-(c>>>1)|0),a=0;;){if((s=(-8&n[r+4>>2])-u|0)>>>0>>0){if(!s){A=r,i=0,b=65;break A}A=r,i=s}if(a=!(0|(b=0|n[r+20>>2]))|(0|b)==(0|(r=0|n[r+16+(l>>>31<<2)>>2]))?a:b,!r){r=a,b=61;break}l<<=1}else r=0,A=0,b=61}while(0);if(61==(0|b)){if(!(0|r)&!(0|A)){if(!(A=((A=2<>>=s=f>>>12&16)>>>5&8)|s|(l=(f>>>=a)>>>2&4)|(c=(f>>>=l)>>>1&2)|(r=(f>>>=c)>>>1&1))+(f>>>r)<<2)>>2]}r?b=65:(l=A,s=i)}if(65==(0|b))for(a=r;;){if(i=(r=(f=(-8&n[a+4>>2])-u|0)>>>0>>0)?f:i,A=r?a:A,(r=0|n[a+16>>2])||(r=0|n[a+20>>2]),!r){l=A,s=i;break}a=r}if(0|l&&s>>>0<((0|n[6983])-u|0)>>>0&&(d=l+u|0)>>>0>l>>>0){a=0|n[l+24>>2],t=0|n[l+12>>2];do{if((0|t)==(0|l)){if(!(t=0|n[(A=l+20|0)>>2])&&!(t=0|n[(A=l+16|0)>>2])){t=0;break}for(;;)if(r=0|n[(i=t+20|0)>>2])t=r,A=i;else{if(!(r=0|n[(i=t+16|0)>>2]))break;t=r,A=i}n[A>>2]=0}else x=0|n[l+8>>2],n[x+12>>2]=t,n[t+8>>2]=x}while(0);do{if(a){if(A=0|n[l+28>>2],(0|l)==(0|n[(r=28228+(A<<2)|0)>>2])){if(n[r>>2]=t,!t){o&=~(1<>2])==(0|l)?x:a+20)>>2]=t,!t)break;n[t+24>>2]=a,0|(A=0|n[l+16>>2])&&(n[t+16>>2]=A,n[A+24>>2]=t),(A=0|n[l+20>>2])&&(n[t+20>>2]=A,n[A+24>>2]=t)}}while(0);A:do{if(s>>>0<16)x=s+u|0,n[l+4>>2]=3|x,n[(x=l+x+4|0)>>2]=1|n[x>>2];else{if(n[l+4>>2]=3|u,n[d+4>>2]=1|s,n[d+s>>2]=s,t=s>>>3,s>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=d,n[t+12>>2]=d,n[d+8>>2]=t,n[d+12>>2]=r;break}if(t=28228+((r=(t=s>>>8)?s>>>0>16777215?31:s>>>(7+(r=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(r=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|r<<1:0)<<2)|0,n[d+28>>2]=r,n[4+(A=d+16|0)>>2]=0,n[A>>2]=0,!(o&(A=1<>2]=d,n[d+24>>2]=t,n[d+12>>2]=d,n[d+8>>2]=d;break}t=0|n[t>>2];e:do{if((-8&n[t+4>>2])!=(0|s)){for(o=s<<(31==(0|r)?0:25-(r>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|s)){t=A;break e}o<<=1,t=A}n[r>>2]=d,n[d+24>>2]=t,n[d+12>>2]=d,n[d+8>>2]=d;break A}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=d,n[w>>2]=d,n[d+8>>2]=x,n[d+12>>2]=t,n[d+24>>2]=0}}while(0);return S=e,0|l+8}f=u}else f=u;else f=-1}while(0);if((r=0|n[6983])>>>0>=f>>>0)return t=r-f|0,A=0|n[6986],t>>>0>15?(x=A+f|0,n[6986]=x,n[6983]=t,n[x+4>>2]=1|t,n[A+r>>2]=t,n[A+4>>2]=3|f):(n[6983]=0,n[6986]=0,n[A+4>>2]=3|r,n[(x=A+r+4|0)>>2]=1|n[x>>2]),S=e,0|A+8;if((s=0|n[6984])>>>0>f>>>0)return y=s-f|0,n[6984]=y,w=(x=0|n[6987])+f|0,n[6987]=w,n[w+4>>2]=1|y,n[x+4>>2]=3|f,S=e,0|x+8;if(0|n[7099]?A=0|n[7101]:(n[7101]=4096,n[7100]=4096,n[7102]=-1,n[7103]=-1,n[7104]=0,n[7092]=0,n[7099]=-16&g^1431655768,A=4096),l=f+48|0,(u=(a=A+(c=f+47|0)|0)&(i=0-A|0))>>>0<=f>>>0)return S=e,0;if(0|(A=0|n[7091])&&(g=(d=0|n[7089])+u|0)>>>0<=d>>>0|g>>>0>A>>>0)return S=e,0;A:do{if(4&n[7092])t=0,b=143;else{r=0|n[6987];e:do{if(r){for(o=28372;!((g=0|n[o>>2])>>>0<=r>>>0&&(g+(0|n[o+4>>2])|0)>>>0>r>>>0);){if(!(A=0|n[o+8>>2])){b=128;break e}o=A}if((t=a-s&i)>>>0<2147483647)if((0|(A=0|ut(0|t)))==((0|n[o>>2])+(0|n[o+4>>2])|0)){if(-1!=(0|A)){s=t,a=A,b=145;break A}}else o=A,b=136;else t=0}else b=128}while(0);do{if(128==(0|b))if(-1!=(0|(r=0|ut(0)))&&(t=r,m=(t=((m=(h=0|n[7100])-1|0)&t?(m+t&0-h)-t|0:0)+u|0)+(h=0|n[7089])|0,t>>>0>f>>>0&t>>>0<2147483647)){if(0|(g=0|n[7091])&&m>>>0<=h>>>0|m>>>0>g>>>0){t=0;break}if((0|(A=0|ut(0|t)))==(0|r)){s=t,a=r,b=145;break A}o=A,b=136}else t=0}while(0);do{if(136==(0|b)){if(r=0-t|0,!(l>>>0>t>>>0&t>>>0<2147483647&-1!=(0|o))){if(-1==(0|o)){t=0;break}s=t,a=o,b=145;break A}if((A=c-t+(A=0|n[7101])&0-A)>>>0>=2147483647){s=t,a=o,b=145;break A}if(-1==(0|ut(0|A))){ut(0|r),t=0;break}s=A+t|0,a=o,b=145;break A}}while(0);n[7092]=4|n[7092],b=143}}while(0);if(143==(0|b)&&u>>>0<2147483647&&!(-1==(0|(y=0|ut(0|u)))|1^(v=(p=(m=0|ut(0))-y|0)>>>0>(f+40|0)>>>0)|y>>>0>>0&-1!=(0|y)&-1!=(0|m)^1)&&(s=v?p:t,a=y,b=145),145==(0|b)){t=(0|n[7089])+s|0,n[7089]=t,t>>>0>(0|n[7090])>>>0&&(n[7090]=t),c=0|n[6987];A:do{if(c){for(t=28372;;){if((0|a)==((A=0|n[t>>2])+(r=0|n[t+4>>2])|0)){b=154;break}if(!(o=0|n[t+8>>2]))break;t=o}if(!(154!=(0|b)||(w=t+4|0,8&n[t+12>>2]))&&a>>>0>c>>>0&A>>>0<=c>>>0){n[w>>2]=r+s,w=c+(y=7&(y=c+8|0)?0-y&7:0)|0,y=(x=(0|n[6984])+s|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[c+x+4>>2]=40,n[6988]=n[7103];break}for(a>>>0<(0|n[6985])>>>0&&(n[6985]=a),r=a+s|0,t=28372;;){if((0|n[t>>2])==(0|r)){b=162;break}if(!(A=0|n[t+8>>2]))break;t=A}if(162==(0|b)&&!(8&n[t+12>>2])){n[t>>2]=a,n[(d=t+4|0)>>2]=(0|n[d>>2])+s,u=(d=a+(7&(d=a+8|0)?0-d&7:0)|0)+f|0,l=(t=r+(7&(t=r+8|0)?0-t&7:0)|0)-d-f|0,n[d+4>>2]=3|f;e:do{if((0|c)==(0|t))x=(0|n[6984])+l|0,n[6984]=x,n[6987]=u,n[u+4>>2]=1|x;else{if((0|n[6986])==(0|t)){x=(0|n[6983])+l|0,n[6983]=x,n[6986]=u,n[u+4>>2]=1|x,n[u+x>>2]=x;break}if(1==(3&(A=0|n[t+4>>2]))){s=-8&A,o=A>>>3;t:do{if(A>>>0<256){if(A=0|n[t+8>>2],(0|(r=0|n[t+12>>2]))==(0|A)){n[6981]=n[6981]&~(1<>2]=r,n[r+8>>2]=A;break}a=0|n[t+24>>2],A=0|n[t+12>>2];do{if((0|A)==(0|t)){if(A=0|n[(o=4+(r=t+16|0)|0)>>2])r=o;else if(!(A=0|n[r>>2])){A=0;break}for(;;)if(o=0|n[(i=A+20|0)>>2])A=o,r=i;else{if(!(o=0|n[(i=A+16|0)>>2]))break;A=o,r=i}n[r>>2]=0}else x=0|n[t+8>>2],n[x+12>>2]=A,n[A+8>>2]=x}while(0);if(!a)break;o=28228+((r=0|n[t+28>>2])<<2)|0;do{if((0|n[o>>2])==(0|t)){if(n[o>>2]=A,0|A)break;n[6982]=n[6982]&~(1<>2])==(0|t)?x:a+20)>>2]=A,!A)break t}while(0);if(n[A+24>>2]=a,0|(o=0|n[(r=t+16|0)>>2])&&(n[A+16>>2]=o,n[o+24>>2]=A),!(r=0|n[r+4>>2]))break;n[A+20>>2]=r,n[r+24>>2]=A}while(0);t=t+s|0,i=s+l|0}else i=l;if(n[(t=t+4|0)>>2]=-2&n[t>>2],n[u+4>>2]=1|i,n[u+i>>2]=i,t=i>>>3,i>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=u,n[t+12>>2]=u,n[u+8>>2]=t,n[u+12>>2]=r;break}t=i>>>8;do{if(t){if(i>>>0>16777215){o=31;break}o=i>>>(7+(o=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(o=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|o<<1}else o=0}while(0);if(t=28228+(o<<2)|0,n[u+28>>2]=o,n[4+(A=u+16|0)>>2]=0,n[A>>2]=0,!((A=0|n[6982])&(r=1<>2]=u,n[u+24>>2]=t,n[u+12>>2]=u,n[u+8>>2]=u;break}t=0|n[t>>2];t:do{if((-8&n[t+4>>2])!=(0|i)){for(o=i<<(31==(0|o)?0:25-(o>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|i)){t=A;break t}o<<=1,t=A}n[r>>2]=u,n[u+24>>2]=t,n[u+12>>2]=u,n[u+8>>2]=u;break e}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=u,n[w>>2]=u,n[u+8>>2]=x,n[u+12>>2]=t,n[u+24>>2]=0}}while(0);return S=e,0|d+8}for(t=28372;!((A=0|n[t>>2])>>>0<=c>>>0&&(x=A+(0|n[t+4>>2])|0)>>>0>c>>>0);)t=0|n[t+8>>2];t=(A=(A=(i=x+-47|0)+(7&(A=i+8|0)?0-A&7:0)|0)>>>0<(i=c+16|0)>>>0?c:A)+8|0,w=a+(y=7&(y=a+8|0)?0-y&7:0)|0,y=(r=s+-40|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[a+r+4>>2]=40,n[6988]=n[7103],n[(r=A+4|0)>>2]=27,n[t>>2]=n[7093],n[t+4>>2]=n[7094],n[t+8>>2]=n[7095],n[t+12>>2]=n[7096],n[7093]=a,n[7094]=s,n[7096]=0,n[7095]=t,t=A+24|0;do{w=t,n[(t=t+4|0)>>2]=7}while((w+8|0)>>>0>>0);if((0|A)!=(0|c)){if(a=A-c|0,n[r>>2]=-2&n[r>>2],n[c+4>>2]=1|a,n[A>>2]=a,t=a>>>3,a>>>0<256){r=27964+(t<<1<<2)|0,(A=0|n[6981])&(t=1<>2]:(n[6981]=A|t,t=r,A=r+8|0),n[A>>2]=c,n[t+12>>2]=c,n[c+8>>2]=t,n[c+12>>2]=r;break}if(r=28228+((o=(t=a>>>8)?a>>>0>16777215?31:a>>>(7+(o=14-((y=(520192+(x=t<<(w=(t+1048320|0)>>>16&8))|0)>>>16&4)|w|(o=(245760+(x<<=y)|0)>>>16&2))+(x<>>15)|0)|0)&1|o<<1:0)<<2)|0,n[c+28>>2]=o,n[c+20>>2]=0,n[i>>2]=0,!((t=0|n[6982])&(A=1<>2]=c,n[c+24>>2]=r,n[c+12>>2]=c,n[c+8>>2]=c;break}t=0|n[r>>2];e:do{if((-8&n[t+4>>2])!=(0|a)){for(o=a<<(31==(0|o)?0:25-(o>>>1)|0);A=0|n[(r=t+16+(o>>>31<<2)|0)>>2];){if((-8&n[A+4>>2])==(0|a)){t=A;break e}o<<=1,t=A}n[r>>2]=c,n[c+24>>2]=t,n[c+12>>2]=c,n[c+8>>2]=c;break A}}while(0);x=0|n[(w=t+8|0)>>2],n[x+12>>2]=c,n[w>>2]=c,n[c+8>>2]=x,n[c+12>>2]=t,n[c+24>>2]=0}}else!(0|(x=0|n[6985]))|a>>>0>>0&&(n[6985]=a),n[7093]=a,n[7094]=s,n[7096]=0,n[6990]=n[7099],n[6989]=-1,n[6994]=27964,n[6993]=27964,n[6996]=27972,n[6995]=27972,n[6998]=27980,n[6997]=27980,n[7e3]=27988,n[6999]=27988,n[7002]=27996,n[7001]=27996,n[7004]=28004,n[7003]=28004,n[7006]=28012,n[7005]=28012,n[7008]=28020,n[7007]=28020,n[7010]=28028,n[7009]=28028,n[7012]=28036,n[7011]=28036,n[7014]=28044,n[7013]=28044,n[7016]=28052,n[7015]=28052,n[7018]=28060,n[7017]=28060,n[7020]=28068,n[7019]=28068,n[7022]=28076,n[7021]=28076,n[7024]=28084,n[7023]=28084,n[7026]=28092,n[7025]=28092,n[7028]=28100,n[7027]=28100,n[7030]=28108,n[7029]=28108,n[7032]=28116,n[7031]=28116,n[7034]=28124,n[7033]=28124,n[7036]=28132,n[7035]=28132,n[7038]=28140,n[7037]=28140,n[7040]=28148,n[7039]=28148,n[7042]=28156,n[7041]=28156,n[7044]=28164,n[7043]=28164,n[7046]=28172,n[7045]=28172,n[7048]=28180,n[7047]=28180,n[7050]=28188,n[7049]=28188,n[7052]=28196,n[7051]=28196,n[7054]=28204,n[7053]=28204,n[7056]=28212,n[7055]=28212,w=a+(y=7&(y=a+8|0)?0-y&7:0)|0,y=(x=s+-40|0)-y|0,n[6987]=w,n[6984]=y,n[w+4>>2]=1|y,n[a+x+4>>2]=40,n[6988]=n[7103]}while(0);if((t=0|n[6984])>>>0>f>>>0)return y=t-f|0,n[6984]=y,w=(x=0|n[6987])+f|0,n[6987]=w,n[w+4>>2]=1|y,n[x+4>>2]=3|f,S=e,0|x+8}return n[(x=27920)>>2]=12,S=e,0}function Ye(A){var e=0,t=0,r=0,o=0,i=0,a=0,s=0,l=0;if(A|=0){t=A+-8|0,o=0|n[6985],l=t+(e=-8&(A=0|n[A+-4>>2]))|0;do{if(1&A)s=t,a=t;else{if(r=0|n[t>>2],!(3&A))return;if(i=r+e|0,(a=t+(0-r)|0)>>>0>>0)return;if((0|n[6986])==(0|a)){if(3&~(e=0|n[(A=l+4|0)>>2])){s=a,e=i;break}return n[6983]=i,n[A>>2]=-2&e,n[a+4>>2]=1|i,void(n[a+i>>2]=i)}if(t=r>>>3,r>>>0<256){if(A=0|n[a+8>>2],(0|(e=0|n[a+12>>2]))==(0|A)){n[6981]=n[6981]&~(1<>2]=e,n[e+8>>2]=A,s=a,e=i;break}o=0|n[a+24>>2],A=0|n[a+12>>2];do{if((0|A)==(0|a)){if(A=0|n[(t=4+(e=a+16|0)|0)>>2])e=t;else if(!(A=0|n[e>>2])){A=0;break}for(;;)if(t=0|n[(r=A+20|0)>>2])A=t,e=r;else{if(!(t=0|n[(r=A+16|0)>>2]))break;A=t,e=r}n[e>>2]=0}else s=0|n[a+8>>2],n[s+12>>2]=A,n[A+8>>2]=s}while(0);if(o){if(e=0|n[a+28>>2],(0|n[(t=28228+(e<<2)|0)>>2])==(0|a)){if(n[t>>2]=A,!A){n[6982]=n[6982]&~(1<>2])==(0|a)?s:o+20)>>2]=A,!A){s=a,e=i;break}n[A+24>>2]=o,0|(t=0|n[(e=a+16|0)>>2])&&(n[A+16>>2]=t,n[t+24>>2]=A),(e=0|n[e+4>>2])?(n[A+20>>2]=e,n[e+24>>2]=A,s=a,e=i):(s=a,e=i)}else s=a,e=i}}while(0);if(!(a>>>0>=l>>>0)&&1&(r=0|n[(A=l+4|0)>>2])){if(2&r)n[A>>2]=-2&r,n[s+4>>2]=1|e,n[a+e>>2]=e,o=e;else{if((0|n[6987])==(0|l)){if(l=(0|n[6984])+e|0,n[6984]=l,n[6987]=s,n[s+4>>2]=1|l,(0|s)!=(0|n[6986]))return;return n[6986]=0,void(n[6983]=0)}if((0|n[6986])==(0|l))return l=(0|n[6983])+e|0,n[6983]=l,n[6986]=a,n[s+4>>2]=1|l,void(n[a+l>>2]=l);o=(-8&r)+e|0,t=r>>>3;do{if(r>>>0<256){if(e=0|n[l+8>>2],(0|(A=0|n[l+12>>2]))==(0|e)){n[6981]=n[6981]&~(1<>2]=A,n[A+8>>2]=e;break}i=0|n[l+24>>2],A=0|n[l+12>>2];do{if((0|A)==(0|l)){if(A=0|n[(t=4+(e=l+16|0)|0)>>2])e=t;else if(!(A=0|n[e>>2])){t=0;break}for(;;)if(t=0|n[(r=A+20|0)>>2])A=t,e=r;else{if(!(t=0|n[(r=A+16|0)>>2]))break;A=t,e=r}n[e>>2]=0,t=A}else t=0|n[l+8>>2],n[t+12>>2]=A,n[A+8>>2]=t,t=A}while(0);if(0|i){if(A=0|n[l+28>>2],(0|n[(e=28228+(A<<2)|0)>>2])==(0|l)){if(n[e>>2]=t,!t){n[6982]=n[6982]&~(1<>2])==(0|l)?r:i+20)>>2]=t,!t)break;n[t+24>>2]=i,0|(e=0|n[(A=l+16|0)>>2])&&(n[t+16>>2]=e,n[e+24>>2]=t),0|(A=0|n[A+4>>2])&&(n[t+20>>2]=A,n[A+24>>2]=t)}}while(0);if(n[s+4>>2]=1|o,n[a+o>>2]=o,(0|s)==(0|n[6986]))return void(n[6983]=o)}if(A=o>>>3,o>>>0<256)return t=27964+(A<<1<<2)|0,(e=0|n[6981])&(A=1<>2]:(n[6981]=e|A,A=t,e=t+8|0),n[e>>2]=s,n[A+12>>2]=s,n[s+8>>2]=A,void(n[s+12>>2]=t);A=28228+((r=(A=o>>>8)?o>>>0>16777215?31:o>>>(7+(r=14-((i=(520192+(l=A<<(a=(A+1048320|0)>>>16&8))|0)>>>16&4)|a|(r=(245760+(l<<=i)|0)>>>16&2))+(l<>>15)|0)|0)&1|r<<1:0)<<2)|0,n[s+28>>2]=r,n[s+20>>2]=0,n[s+16>>2]=0,e=0|n[6982],t=1<>2];e:do{if((-8&n[A+4>>2])!=(0|o)){for(r=o<<(31==(0|r)?0:25-(r>>>1)|0);e=0|n[(t=A+16+(r>>>31<<2)|0)>>2];){if((-8&n[e+4>>2])==(0|o)){A=e;break e}r<<=1,A=e}n[t>>2]=s,n[s+24>>2]=A,n[s+12>>2]=s,n[s+8>>2]=s;break A}}while(0);l=0|n[(a=A+8|0)>>2],n[l+12>>2]=s,n[a>>2]=s,n[s+8>>2]=l,n[s+12>>2]=A,n[s+24>>2]=0}else n[6982]=e|t,n[A>>2]=s,n[s+24>>2]=A,n[s+12>>2]=s,n[s+8>>2]=s}while(0);if(l=(0|n[6989])-1|0,n[6989]=l,!(0|l)){for(A=28380;A=0|n[A>>2];)A=A+8|0;n[6989]=-1}}}}function Ve(A,e){e|=0;var t=0;return(A|=0)?(t=0|y(e,A),(e|A)>>>0>65535&&(t=((t>>>0)/(A>>>0)|0)==(0|e)?t:-1)):t=0,(A=0|Oe(t))&&3&n[A+-4>>2]?(lt(0|A,0,0|t),0|A):0|A}function We(A,e,t,r){return 0|(C((e|=0)+(r|=0)+((t=(A|=0)+(t|=0)>>>0)>>>0>>0|0)>>>0|0),t)}function Ze(A,e,t,r){return 0|(C(0|(r=(e|=0)-(r|=0)-((t|=0)>>>0>(A|=0)>>>0|0)>>>0)),A-t>>>0)}function Ke(A){return 0|((A|=0)?31-(0|k(A^A-1)):32)}function Je(A,e,t,r,o){o|=0;var i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0;if(u=A|=0,a=t|=0,s=f=r|=0,!(c=l=e|=0))return i=!!(0|o),s?i?(n[o>>2]=0|A,n[o+4>>2]=0&e,o=0,0|(C(0|(f=0)),o)):(o=0,0|(C(0|(f=0)),o)):(i&&(n[o>>2]=(u>>>0)%(a>>>0),n[o+4>>2]=0),o=(u>>>0)/(a>>>0)>>>0,0|(C(0|(f=0)),o));i=!(0|s);do{if(a){if(!i){if((i=(0|k(0|s))-(0|k(0|c))|0)>>>0<=31){a=d=i+1|0,A=u>>>(d>>>0)&(e=i-31>>31)|c<<(s=31-i|0),e&=c>>>(d>>>0),i=0,s=u<>2]=0|A,n[o+4>>2]=l|0&e,o=0,0|(C(0|(f=0)),o)):(o=0,0|(C(0|(f=0)),o))}if((i=a-1|0)&a){a=s=33+(0|k(0|a))-(0|k(0|c))|0,A=(d=32-s|0)-1>>31&c>>>((g=s-32|0)>>>0)|(c<>>(s>>>0))&(e=g>>31),e&=c>>>(s>>>0),i=u<<(h=64-s|0)&(l=d>>31),s=(c<>>(g>>>0))&l|u<>31;break}return 0|o&&(n[o>>2]=i&u,n[o+4>>2]=0),1==(0|a)?(h=0|A,0|(C(0|(g=l|0&e)),h)):(g=c>>>((h=0|Ke(0|a))>>>0)|0,h=c<<32-h|u>>>(h>>>0),0|(C(0|g),h))}if(i)return 0|o&&(n[o>>2]=(c>>>0)%(a>>>0),n[o+4>>2]=0),h=(c>>>0)/(a>>>0)>>>0,0|(C(0|(g=0)),h);if(!u)return 0|o&&(n[o>>2]=0,n[o+4>>2]=(c>>>0)%(s>>>0)),h=(c>>>0)/(s>>>0)>>>0,0|(C(0|(g=0)),h);if(!((i=s-1|0)&s))return 0|o&&(n[o>>2]=0|A,n[o+4>>2]=i&c|0&e),g=0,h=c>>>((0|Ke(0|s))>>>0),0|(C(0|g),h);if((i=(0|k(0|s))-(0|k(0|c))|0)>>>0<=30){a=e=i+1|0,A=c<<(s=31-i|0)|u>>>(e>>>0),e=c>>>(e>>>0),i=0,s=u<>2]=0|A,n[o+4>>2]=l|0&e,h=0,0|(C(0|(g=0)),h)):(h=0,0|(C(0|(g=0)),h))}while(0);if(a){c=0|We(0|(d=0|t),0|(u=f|0&r),-1,-1),t=0|B(),l=s,s=0;do{r=l,l=i>>>31|l<<1,i=s|i<<1,Ze(0|c,0|t,0|(r=A<<1|r>>>31),0|(f=A>>>31|e<<1)),s=1&(g=(h=0|B())>>31|((0|h)<0?-1:0)<<1),A=0|Ze(0|r,0|f,g&d|0,(((0|h)<0?-1:0)>>31|((0|h)<0?-1:0)<<1)&u),e=0|B(),a=a-1|0}while(0|a);c=l,l=0}else c=s,l=0,s=0;return a=0,0|o&&(n[o>>2]=A,n[o+4>>2]=e),h=i<<1&-2|s,0|(C(0|(g=(0|i)>>>31|(c|a)<<1|l)),h)}function qe(A,e,t,r){var n,o,i,a,s;return t|=0,o=(r|=0)>>31|((0|r)<0?-1:0)<<1,n=((0|r)<0?-1:0)>>31|((0|r)<0?-1:0)<<1,i=0|Ze((s=(e|=0)>>31|((0|e)<0?-1:0)<<1)^(A|=0),(a=((0|e)<0?-1:0)>>31|((0|e)<0?-1:0)<<1)^e,0|s,0|a),A=o^s,e=n^a,0|Ze((0|Je(i,0|B(),0|Ze(o^t|0,n^r|0,0|o,0|n),0|B(),0))^A,(0|B())^e,0|A,0|e)}function Xe(A,e,t,r){var n,o;return e|=0,r|=0,t=0|function(A,e){var t,r,n,o=0;return A=((t=0|y(o=65535&(e|=0),n=65535&(A|=0)))>>>16)+(0|y(o,r=A>>>16))|0,e=0|y(o=e>>>16,n),0|(C((A>>>16)+(0|y(o,r))+(((65535&A)+e|0)>>>16)|0),A+e<<16|65535&t)}(n=A|=0,o=t|=0),A=0|B(),0|(C((0|y(e,o))+(0|y(r,n))+A|0&A),t)}function $e(A,e,t,r){var o,i,a,s,l,c;return t|=0,o=S,S=S+16|0,s=0|o,c=(r|=0)>>31|((0|r)<0?-1:0)<<1,l=((0|r)<0?-1:0)>>31|((0|r)<0?-1:0)<<1,Je(A=0|Ze((a=(e|=0)>>31|((0|e)<0?-1:0)<<1)^(A|=0),(i=((0|e)<0?-1:0)>>31|((0|e)<0?-1:0)<<1)^e,0|a,0|i),e=0|B(),0|Ze(c^t|0,l^r|0,0|c,0|l),0|B(),s),r=0|Ze(n[s>>2]^a|0,n[s+4>>2]^i|0,0|a,0|i),t=0|B(),S=o,0|(C(0|t),r)}function At(A,e,t,r){var o,i;return i=S,S=S+16|0,Je(A|=0,e|=0,t|=0,r|=0,o=0|i),S=i,0|(C(0|n[o+4>>2]),n[o>>2])}function et(A,e,t){return A|=0,e|=0,(0|(t|=0))<32?(C(e>>t|0),A>>>t|(e&(1<>t-32)}function tt(A,e,t){return A|=0,e|=0,(0|(t|=0))<32?(C(e>>>t|0),A>>>t|(e&(1<>>t-32|0)}function rt(A,e,t){return A|=0,(0|(t|=0))<32?(C((e|=0)<>>32-t),A<=0?+s(A+.5):+v(A-.5)}function st(A,e,t){A|=0,e|=0;var o,i,a=0;if((0|(t|=0))>=8192)return j(0|A,0|e,0|t),0|A;if(i=0|A,o=A+t|0,(3&A)==(3&e)){for(;3&A;){if(!t)return 0|i;r[0|A]=0|r[0|e],A=A+1|0,e=e+1|0,t=t-1|0}for(a=(t=-4&o)-64|0;(0|A)<=(0|a);)n[A>>2]=n[e>>2],n[A+4>>2]=n[e+4>>2],n[A+8>>2]=n[e+8>>2],n[A+12>>2]=n[e+12>>2],n[A+16>>2]=n[e+16>>2],n[A+20>>2]=n[e+20>>2],n[A+24>>2]=n[e+24>>2],n[A+28>>2]=n[e+28>>2],n[A+32>>2]=n[e+32>>2],n[A+36>>2]=n[e+36>>2],n[A+40>>2]=n[e+40>>2],n[A+44>>2]=n[e+44>>2],n[A+48>>2]=n[e+48>>2],n[A+52>>2]=n[e+52>>2],n[A+56>>2]=n[e+56>>2],n[A+60>>2]=n[e+60>>2],A=A+64|0,e=e+64|0;for(;(0|A)<(0|t);)n[A>>2]=n[e>>2],A=A+4|0,e=e+4|0}else for(t=o-4|0;(0|A)<(0|t);)r[0|A]=0|r[0|e],r[A+1|0]=0|r[e+1|0],r[A+2|0]=0|r[e+2|0],r[A+3|0]=0|r[e+3|0],A=A+4|0,e=e+4|0;for(;(0|A)<(0|o);)r[0|A]=0|r[0|e],A=A+1|0,e=e+1|0;return 0|i}function lt(A,e,t){e|=0;var o,i=0,a=0,s=0;if(o=(A|=0)+(t|=0)|0,e&=255,(0|t)>=67){for(;3&A;)r[0|A]=e,A=A+1|0;for(s=e|e<<8|e<<16|e<<24,a=(i=-4&o)-64|0;(0|A)<=(0|a);)n[A>>2]=s,n[A+4>>2]=s,n[A+8>>2]=s,n[A+12>>2]=s,n[A+16>>2]=s,n[A+20>>2]=s,n[A+24>>2]=s,n[A+28>>2]=s,n[A+32>>2]=s,n[A+36>>2]=s,n[A+40>>2]=s,n[A+44>>2]=s,n[A+48>>2]=s,n[A+52>>2]=s,n[A+56>>2]=s,n[A+60>>2]=s,A=A+64|0;for(;(0|A)<(0|i);)n[A>>2]=s,A=A+4|0}for(;(0|A)<(0|o);)r[0|A]=e,A=A+1|0;return o-t|0}function ct(A){return(A=+A)>=0?+s(A+.5):+v(A-.5)}function ut(A){var e,t,r;return A|=0,r=0|E(),(0|A)>0&(0|(e=(t=0|n[a>>2])+A|0))<(0|t)|(0|e)<0?(N(0|e),D(12),-1):(0|e)>(0|r)&&!(0|Q(0|e))?(D(12),-1):(n[a>>2]=e,0|t)}return{___divdi3:qe,___muldi3:Xe,___remdi3:$e,___uremdi3:At,_areNeighborCells:function(A,e,t,r,o){o|=0;var i,a,s,l=0,c=0,u=0,d=0;if(s=S,S=S+64|0,a=s,i=s+56|0,!(!0&134217728==(2013265920&(e|=0))&!0&134217728==(2013265920&(r|=0))))return S=s,5;if((0|(A|=0))==(0|(t|=0))&(0|e)==(0|r))return n[o>>2]=0,S=s,0;if(c=0|tt(0|A,0|e,52),B(),c&=15,d=0|tt(0|t,0|r,52),B(),(0|c)!=(15&d))return S=s,12;if(l=c+-1|0,c>>>0>1){RA(A,e,l,a),RA(t,r,l,i),u=0|n[(d=a)>>2],d=0|n[d+4>>2];A:do{if((0|u)==(0|n[i>>2])&&(0|d)==(0|n[i+4>>2])){l=0|tt(0|A,0|e,0|(c=3*(15^c)|0)),B(),l&=7,c=0|tt(0|t,0|r,0|c),B(),c&=7;do{if(!(0|l)|!(0|c))n[o>>2]=1,l=0;else if(7==(0|l))l=5;else{if(1==(0|l)|1==(0|c)&&0|HA(u,d)){l=5;break}if((0|n[15536+(l<<2)>>2])!=(0|c)&&(0|n[15568+(l<<2)>>2])!=(0|c))break A;n[o>>2]=1,l=0}}while(0);return S=s,0|l}}while(0)}c=(l=a)+56|0;do{n[l>>2]=0,l=l+4|0}while((0|l)<(0|c));return F(A,e,1,a),l=(0|n[(e=a)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+8|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+16|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+24|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+32|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)||(0|n[(e=a+40|0)>>2])==(0|t)&&(0|n[e+4>>2])==(0|r)?1:1&((0|n[(l=a+48|0)>>2])==(0|t)?(0|n[l+4>>2])==(0|r):0),n[o>>2]=l,S=s,0},_bitshift64Ashr:et,_bitshift64Lshr:tt,_bitshift64Shl:rt,_calloc:Ve,_cellAreaKm2:function(A,e,t){return 0|(A=0|ue(A|=0,e|=0,t|=0))||(o[t>>3]=6371.007180918475*+o[t>>3]*6371.007180918475),0|A},_cellAreaM2:function(A,e,t){return 0|(A=0|ue(A|=0,e|=0,t|=0))||(o[t>>3]=6371.007180918475*+o[t>>3]*6371.007180918475*1e3*1e3),0|A},_cellAreaRads2:ue,_cellToBoundary:$A,_cellToCenterChild:GA,_cellToChildPos:function(A,e,t,r){t|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0;if(o=S,S=S+16|0,p=o,v=0|tt(0|(A|=0),0|(e|=0),52),B(),t>>>0>15)return S=o,4;if((0|(v&=15))<(0|t))return S=o,12;if((0|v)!=(0|t))if(a=0|rt(0|t,0,52),a|=A,l=B()|-15728641&e,(0|v)>(0|t)){c=t;do{b=0|rt(7,0,3*(14-c|0)|0),c=c+1|0,a|=b,l=0|B()|l}while((0|c)<(0|v));b=a}else b=a;else b=A,l=e;m=0|tt(0|b,0|l,45),B();A:do{if(0|z(127&m)){if(c=0|tt(0|b,0|l,52),B(),0|(c&=15))for(a=1;;){if(!(!((m=0|rt(7,0,3*(15-a|0)|0))&b)&!((0|B())&l))){u=33;break A}if(!(a>>>0>>0))break;a=a+1|0}if(n[(m=r)>>2]=0,n[m+4>>2]=0,(0|v)>(0|t)){for(m=-15728641&e,h=v;;){if(g=h,(h=h+-1|0)>>>0>15|(0|v)<(0|h)){u=19;break}if((0|v)!=(0|h))if(a=0|rt(0|h,0,52),a|=A,c=0|B()|m,(0|v)<(0|g))f=a;else{u=h;do{f=0|rt(7,0,3*(14-u|0)|0),u=u+1|0,a|=f,c=0|B()|c}while((0|u)<(0|v));f=a}else f=A,c=e;if(d=0|tt(0|f,0|c,45),B(),0|z(127&d)){d=0|tt(0|f,0|c,52),B(),d&=15;e:do{if(d)for(u=1;;){if(a=0|tt(0|f,0|c,3*(15-u|0)|0),B(),0|(a&=7))break e;if(!(u>>>0>>0)){a=0;break}u=u+1|0}else a=0}while(0);a=1&!(0|a)}else a=0;if(c=0|tt(0|A,0|e,3*(15-g|0)|0),B(),7==(0|(c&=7))){i=5,u=42;break}if(1==(0|c)&(a=!!(0|a))){i=5,u=42;break}if(0|(f=c+((!!(0|c)&a)<<31>>31)|0)&&(u=0|pe(7,0,u=v-g|0,((0|u)<0)<<31>>31),d=0|B(),a?(a=0|We(0|(a=0|Xe(0|u,0|d,5,0)),0|B(),-5,-1),a=0|We(0|(a=0|qe(0|a,0|B(),6,0)),0|B(),1,0),c=0|B()):(a=u,c=d),g=0|We(0|a,0|c,0|(g=0|Xe(0|u,0|d,0|(g=f+-1|0),((0|g)<0)<<31>>31)),0|B()),d=0|We(0|g,0|(f=0|B()),0|n[(d=r)>>2],0|n[d+4>>2]),f=0|B(),n[(g=r)>>2]=d,n[g+4>>2]=f),(0|h)<=(0|t)){u=37;break}}if(19==(0|u))M(27795,27122,1367,27158);else{if(37==(0|u)){i=0|n[(s=r)+4>>2],s=0|n[s>>2];break}if(42==(0|u))return S=o,0|i}}else i=0,s=0}else u=33}while(0);A:do{if(33==(0|u)){if(n[(m=r)>>2]=0,n[m+4>>2]=0,(0|v)>(0|t)){for(a=v;;){if(i=0|tt(0|A,0|e,3*(15-a|0)|0),B(),7==(0|(i&=7))){i=5;break}if(i=0|Xe(0|(s=0|pe(7,0,s=v-a|0,((0|s)<0)<<31>>31)),0|B(),0|i,0),s=0|B(),s=0|We(0|n[(m=r)>>2],0|n[m+4>>2],0|i,0|s),i=0|B(),n[(m=r)>>2]=s,n[m+4>>2]=i,(0|(a=a+-1|0))<=(0|t))break A}return S=o,0|i}i=0,s=0}}while(0);return 0|_A(b,l,v,p)&&M(27795,27122,1327,27173),((0|i)>-1|-1==(0|i)&s>>>0>4294967295)&((0|(p=0|n[(v=p)+4>>2]))>(0|i)|((0|p)==(0|i)?(0|n[v>>2])>>>0>s>>>0:0))?(S=o,0|(v=0)):(M(27795,27122,1407,27158),0)},_cellToChildren:function(A,e,t,r){r|=0;var o,i,a=0,s=0;if(i=S,S=S+16|0,ee(o=i,A|=0,e|=0,t|=0),!(0|(A=0|n[(e=o)>>2]))&!(0|(e=0|n[e+4>>2])))return S=i,0;a=0,t=0;do{n[(s=r+(a<<3)|0)>>2]=A,n[s+4>>2]=e,a=0|We(0|a,0|t,1,0),t=0|B(),re(o),A=0|n[(s=o)>>2],e=0|n[s+4>>2]}while(!(!(0|A)&!(0|e)));return S=i,0},_cellToChildrenSize:_A,_cellToLatLng:XA,_cellToLocalIj:function(A,e,t,r,o,i){var a,s;return A|=0,i|=0,s=S,S=S+16|0,a=s,(o|=0)?A=15:(A=0|me(A,e|=0,t|=0,r|=0,a))||(function(A,e){var t;e|=0,t=0|n[8+(A|=0)>>2],n[e>>2]=(0|n[A>>2])-t,n[e+4>>2]=(0|n[A+4>>2])-t}(a,i),A=0),S=s,0|A},_cellToParent:RA,_cellToVertex:Pe,_cellToVertexes:function(A,e,t){t|=0;var r,o=0,i=0;return i=!(0|HA(A|=0,e|=0)),r=!(0|(o=0|Pe(A,e,0,t))),i?r?0|(o=0|Pe(A,e,1,t+8|0))||0|(o=0|Pe(A,e,2,t+16|0))||0|(o=0|Pe(A,e,3,t+24|0))||(o=0|Pe(A,e,4,t+32|0))?0|(i=o):0|Pe(A,e,5,t+40|0):0|(i=o):r?0|(o=0|Pe(A,e,1,t+8|0))||0|(o=0|Pe(A,e,2,t+16|0))||0|(o=0|Pe(A,e,3,t+24|0))||0|(o=0|Pe(A,e,4,t+32|0))?0|(i=o):(n[(i=t+40|0)>>2]=0,n[i+4>>2]=0,0|(i=0)):0|(i=o)},_cellsToDirectedEdge:function(A,e,t,r,o){return o|=0,7==(0|(t=0|_(A|=0,e|=0,t|=0,r|=0)))?0|(o=11):(r=0|rt(0|t,0,56),e=-2130706433&e|B()|268435456,n[o>>2]=A|r,n[o+4>>2]=e,0|(o=0))},_cellsToLinkedMultiPolygon:function(A,e,t){t|=0;var r,i,a,s=0;if(a=S,S=S+32|0,r=a,0|(A=0|function(A,e,t){A|=0,t|=0;var r,o,i=0,a=0,s=0,l=0,c=0,u=0;if(o=S,S=S+176|0,r=o,(0|(e|=0))<1)return Le(t,0,0),S=o,0;for(c=0|tt(0|n[(c=A)>>2],0|n[c+4>>2],52),B(),Le(t,(0|e)>6?e:6,15&c),c=0;!(0|(i=0|$A(0|n[(i=A+(c<<3)|0)>>2],0|n[i+4>>2],r)));){if((0|(i=0|n[r>>2]))>0){l=0;do{s=r+8+(l<<4)|0,(a=0|ze(t,i=r+8+((0|(l=l+1|0))%(0|i)<<4)|0,s))?_e(t,a):He(t,s,i),i=0|n[r>>2]}while((0|l)<(0|i))}if((0|(c=c+1|0))>=(0|e)){i=0,u=13;break}}return 13==(0|u)?(S=o,0|i):(Ie(t),S=o,0|(u=i))}(A|=0,e|=0,i=a+16|0)))return S=a,0|A;if(n[t>>2]=0,n[t+4>>2]=0,n[t+8>>2]=0,0|(A=0|Re(i)))do{e=0|de(t);do{fe(e,A),s=A+16|0,n[r>>2]=n[s>>2],n[r+4>>2]=n[s+4>>2],n[r+8>>2]=n[s+8>>2],n[r+12>>2]=n[s+12>>2],_e(i,A),A=0|Ge(i,r)}while(0|A);A=0|Re(i)}while(0|A);return Ie(i),(A=0|function(A){var e,t,r=0,i=0,a=0,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,B=0,D=0,E=0,j=0,Q=0,N=0,S=0,F=0,P=0,T=0,L=0;if(0|n[(s=(A|=0)+8|0)>>2])return 1;if(!(a=0|n[A>>2]))return 0;r=a,i=0;do{i=i+1|0,r=0|n[r+8>>2]}while(0|r);if(i>>>0<2)return 0;(t=0|Oe(i<<2))||M(27396,27235,317,27415),(e=0|Oe(i<<5))||M(27437,27235,321,27415),n[A>>2]=0,n[(E=A+4|0)>>2]=0,n[s>>2]=0,i=0,P=0,D=0,m=0;A:for(;;){if(h=0|n[a>>2]){c=0,u=h;do{if(f=+o[u+8>>3],r=u,u=0|n[u+16>>2],d=+o[(s=(g=!(0|u))?h:u)+8>>3],+l(+(f-d))>3.141592653589793){L=14;break}c+=(d-f)*(+o[r>>3]+ +o[s>>3])}while(!g);if(14==(0|L)){L=0,c=0,r=h;do{B=+o[r+8>>3],S=0|n[(F=r+16|0)>>2],C=+o[(S=0|S?S:h)+8>>3],c+=(+o[r>>3]+ +o[S>>3])*((C<0?C+6.283185307179586:C)-(B<0?B+6.283185307179586:B)),r=0|n[(0|r?F:a)>>2]}while(0|r)}c>0?(n[t+(P<<2)>>2]=a,P=P+1|0,s=D,r=m):L=19}else L=19;if(19==(0|L)){L=0;do{if(!i){if(m){s=E,u=m+8|0,r=a,i=A;break}if(0|n[A>>2]){L=27;break A}s=E,u=A,r=a,i=A;break}if(0|n[(r=i+8|0)>>2]){L=21;break A}if(!(i=0|Ve(1,12))){L=23;break A}n[r>>2]=i,s=i+4|0,u=i,r=m}while(0);if(n[u>>2]=a,n[s>>2]=a,u=e+(D<<5)|0,g=0|n[a>>2]){for(o[(h=e+(D<<5)+8|0)>>3]=17976931348623157e292,o[(m=e+(D<<5)+24|0)>>3]=17976931348623157e292,o[u>>3]=-17976931348623157e292,o[(b=e+(D<<5)+16|0)>>3]=-17976931348623157e292,x=17976931348623157e292,k=-17976931348623157e292,s=0,p=g,f=17976931348623157e292,y=17976931348623157e292,w=-17976931348623157e292,d=-17976931348623157e292;c=+o[p>>3],B=+o[p+8>>3],p=0|n[p+16>>2],C=+o[((v=!(0|p))?g:p)+8>>3],c>3]=c,f=c),B>3]=B,y=B),c>w?o[u>>3]=c:c=w,B>d&&(o[b>>3]=B,d=B),x=B>0&Bk?B:k,s|=+l(+(B-C))>3.141592653589793,!v;)w=c;s&&(o[b>>3]=k,o[m>>3]=x)}else n[u>>2]=0,n[u+4>>2]=0,n[u+8>>2]=0,n[u+12>>2]=0,n[u+16>>2]=0,n[u+20>>2]=0,n[u+24>>2]=0,n[u+28>>2]=0;s=D+1|0}if(a=0|n[(F=a+8|0)>>2],n[F>>2]=0,!a){L=45;break}D=s,m=r}if(21==(0|L))M(27213,27235,35,27247);else if(23==(0|L))M(27267,27235,37,27247);else if(27==(0|L))M(27310,27235,61,27333);else if(45==(0|L)){A:do{if((0|P)>0){for(F=!(0|s),N=s<<2,S=!(0|A),Q=0,r=0;;){if(j=0|n[t+(Q<<2)>>2],F)L=73;else{if(!(D=0|Oe(N))){L=50;break}if(!(E=0|Oe(N))){L=52;break}e:do{if(S)i=0;else{for(s=0,i=0,u=A;a=e+(s<<5)|0,0|he(0|n[u>>2],a,0|n[j>>2])?(n[D+(i<<2)>>2]=u,n[E+(i<<2)>>2]=a,v=i+1|0):v=i,u=0|n[u+8>>2];)s=s+1|0,i=v;if((0|v)>0)if(a=0|n[D>>2],1==(0|v))i=a;else for(b=0,p=-1,i=a,m=a;;){for(g=0|n[m>>2],a=0,u=0;h=(0|(s=0|n[n[D+(u<<2)>>2]>>2]))==(0|g)?a:a+(1&he(s,0|n[E+(u<<2)>>2],0|n[g>>2]))|0,(0|(u=u+1|0))!=(0|v);)a=h;if(i=(s=(0|h)>(0|p))?m:i,(0|(a=b+1|0))==(0|v))break e;b=a,p=s?h:p,m=0|n[D+(a<<2)>>2]}else i=0}}while(0);if(Ye(D),Ye(E),i){if(a=0|n[(s=i+4|0)>>2])i=a+8|0;else if(0|n[i>>2]){L=70;break}n[i>>2]=j,n[s>>2]=j}else L=73}if(73==(0|L)){if(L=0,0|(r=0|n[j>>2]))do{E=r,r=0|n[r+16>>2],Ye(E)}while(0|r);Ye(j),r=1}if((0|(Q=Q+1|0))>=(0|P)){T=r;break A}}50==(0|L)?M(27452,27235,249,27471):52==(0|L)?M(27490,27235,252,27471):70==(0|L)&&M(27310,27235,61,27333)}else T=0}while(0);return Ye(t),Ye(e),0|T}return 0}(t))?(ge(t),S=a,0|(s=A)):(S=a,0|(s=0))},_childPosToCell:function(A,e,t,r,o,i){A|=0,e|=0,i|=0;var a,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(a=S,S=S+16|0,s=a,(o|=0)>>>0>15)return S=a,4;if(l=0|tt(0|(t|=0),0|(r|=0),52),B(),(0|(l&=15))>(0|o))return S=a,12;if(0|_A(t,r,o,s)&&M(27795,27122,1327,27173),!(((0|e)>-1|-1==(0|e)&A>>>0>4294967295)&((0|(u=0|n[(d=s)+4>>2]))>(0|e)|((0|u)==(0|e)?(0|n[d>>2])>>>0>A>>>0:0))))return S=a,2;d=o-l|0,o=0|rt(0|o,0,52),c=B()|-15728641&r,n[(u=i)>>2]=o|t,n[u+4>>2]=c,u=0|tt(0|t,0|r,45),B();A:do{if(0|z(127&u)){if(0|l)for(s=1;;){if(!(!((u=0|rt(7,0,3*(15-s|0)|0))&t)&!((0|B())&r)))break A;if(!(s>>>0>>0))break;s=s+1|0}if((0|d)<1)return S=a,0;for(u=15^l,r=-1,c=1,s=1;;){l=0|pe(7,0,l=d-c|0,((0|l)<0)<<31>>31),t=0|B();do{if(s){if(s=0|qe(0|(s=0|We(0|(s=0|Xe(0|l,0|t,5,0)),0|B(),-5,-1)),0|B(),6,0),(0|e)>(0|(o=0|B()))|(0|e)==(0|o)&A>>>0>s>>>0){e=0|Ze(0|(e=0|We(0|A,0|e,-1,-1)),0|B(),0|s,0|o),s=0|B(),h=0|n[(f=i)>>2],f=0|n[f+4>>2],g=0|rt(7,0,0|(m=3*(u+r|0)|0)),f&=~B(),m=0|rt(0|(o=0|We(0|(r=0|qe(0|e,0|s,0|l,0|t)),0|(A=0|B()),2,0)),0|B(),0|m),f=0|B()|f,n[(o=i)>>2]=m|h&~g,n[o+4>>2]=f,A=0|Ze(0|e,0|s,0|(A=0|Xe(0|r,0|A,0|l,0|t)),0|B()),s=0,e=0|B();break}g=0|n[(m=i)>>2],m=0|n[m+4>>2],h=0|rt(7,0,3*(u+r|0)|0),m&=~B(),n[(s=i)>>2]=g&~h,n[s+4>>2]=m,s=1;break}o=0|n[(g=i)>>2],g=0|n[g+4>>2],f=0|rt(7,0,0|(r=3*(u+r|0)|0)),g&=~B(),r=0|rt(0|(m=0|qe(0|A,0|e,0|l,0|t)),0|(s=0|B()),0|r),g=0|B()|g,n[(h=i)>>2]=r|o&~f,n[h+4>>2]=g,A=0|Ze(0|A,0|e,0|(s=0|Xe(0|m,0|s,0|l,0|t)),0|B()),s=0,e=0|B()}while(0);if(!((0|d)>(0|c))){e=0;break}r=~c,c=c+1|0}return S=a,0|e}}while(0);if((0|d)<1)return S=a,0;for(o=15^l,s=1;;){if(h=0|pe(7,0,h=d-s|0,((0|h)<0)<<31>>31),m=0|B(),t=0|n[(c=i)>>2],c=0|n[c+4>>2],r=0|rt(7,0,0|(l=3*(o-s|0)|0)),c&=~B(),l=0|rt(0|(f=0|qe(0|A,0|e,0|h,0|m)),0|(g=0|B()),0|l),c=0|B()|c,n[(u=i)>>2]=l|t&~r,n[u+4>>2]=c,A=0|Ze(0|A,0|e,0|(m=0|Xe(0|f,0|g,0|h,0|m)),0|B()),e=0|B(),(0|d)<=(0|s)){e=0;break}s=s+1|0}return S=a,0|e},_compactCells:function(A,e,t,r){e|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,D=0,E=0,j=0,Q=0,N=0,S=0;if(!(0|(t|=0))&!(0|(r|=0)))return 0;if(a=0|n[(i=A|=0)>>2],!0&!(15728640&(i=0|n[i+4>>2]))){if(!((0|r)>0|!(0|r)&t>>>0>0))return 0;if(n[(S=e)>>2]=a,n[S+4>>2]=i,1==(0|t)&!(0|r))return 0;i=1,a=0;do{N=0|n[4+(Q=A+(i<<3)|0)>>2],n[(S=e+(i<<3)|0)>>2]=n[Q>>2],n[S+4>>2]=N,i=0|We(0|i,0|a,1,0),a=0|B()}while((0|a)<(0|r)|(0|a)==(0|r)&i>>>0>>0);return 0}if(!(N=0|Oe(o=t<<3)))return 13;if(st(0|N,0|A,0|o),!(Q=0|Ve(t,8)))return Ye(N),13;A:for(;;){E=0|tt(0|(u=0|n[(i=N)>>2]),0|(i=0|n[i+4>>2]),52),B(),j=(E&=15)-1|0,D=!!(0|E),C=(0|r)>0|!(0|r)&t>>>0>0;e:do{if(D&C){if(y=0|rt(0|j,0,52),w=0|B(),j>>>0>15){if(!(!(0|u)&!(0|i))){S=16;break A}for(a=0,A=0;;){if(a=0|We(0|a,0|A,1,0),!((0|(A=0|B()))<(0|r)|(0|A)==(0|r)&a>>>0>>0))break e;if(!(!(0|(k=0|n[(s=N+(a<<3)|0)>>2]))&!(0|(s=0|n[s+4>>2])))){i=s,S=16;break A}}}for(l=u,A=i,a=0,s=0;;){if(!(!(0|l)&!(0|A))){if(!(!0&!(117440512&A))){S=21;break A}if(d=0|tt(0|l,0|A,52),B(),(0|(d&=15))<(0|j)){i=12,S=27;break A}if((0|d)!=(0|j)&&(l|=y,A=-15728641&A|w,d>>>0>=E>>>0)){c=j;do{k=0|rt(7,0,3*(14-c|0)|0),c=c+1|0,l|=k,A=0|B()|A}while(c>>>0>>0)}if(g=0|At(0|l,0|A,0|t,0|r),h=0|B(),!(!(0|(f=0|n[(d=c=Q+(g<<3)|0)>>2]))&!(0|(d=0|n[d+4>>2])))){p=0,v=0;do{if((0|p)>(0|r)|(0|p)==(0|r)&v>>>0>t>>>0){S=31;break A}if((0|f)==(0|l)&(-117440513&d)==(0|A)){m=0|tt(0|f,0|d,56),B(),b=1+(m&=7)|0,k=0|tt(0|f,0|d,45),B();t:do{if(0|z(127&k)){if(f=0|tt(0|f,0|d,52),B(),!(f&=15)){d=6;break}for(d=1;;){if(!(!((k=0|rt(7,0,3*(15-d|0)|0))&l)&!((0|B())&A))){d=7;break t}if(!(d>>>0>>0)){d=6;break}d=d+1|0}}else d=7}while(0);if((m+2|0)>>>0>d>>>0){S=41;break A}k=0|rt(0|b,0,56),A=B()|-117440513&A,n[(x=c)>>2]=0,n[x+4>>2]=0,l|=k}else g=0|$e(0|(g=0|We(0|g,0|h,1,0)),0|B(),0|t,0|r),h=0|B();v=0|We(0|v,0|p,1,0),p=0|B(),f=0|n[(d=c=Q+(g<<3)|0)>>2],d=0|n[d+4>>2]}while(!(!(0|f)&!(0|d)))}n[(k=c)>>2]=l,n[k+4>>2]=A}if(a=0|We(0|a,0|s,1,0),!((0|(s=0|B()))<(0|r)|(0|s)==(0|r)&a>>>0>>0))break e;l=0|n[(A=N+(a<<3)|0)>>2],A=0|n[A+4>>2]}}}while(0);if(k=0|We(0|t,0|r,5,0),(x=0|B())>>>0<0|!(0|x)&k>>>0<11){S=85;break}if(k=0|qe(0|t,0|r,6,0),B(),!(k=0|Ve(k,8))){S=48;break}do{if(C){for(b=0,A=0,m=0,p=0;;){if(!(0|(a=0|n[(s=d=Q+(b<<3)|0)>>2]))&!(0|(s=0|n[s+4>>2])))x=m;else{f=0|tt(0|a,0|s,56),B(),l=1+(f&=7)|0,g=-117440513&s,x=0|tt(0|a,0|s,45),B();e:do{if(0|z(127&x)){if(h=0|tt(0|a,0|s,52),B(),0|(h&=15))for(c=1;;){if(!(!(a&(x=0|rt(7,0,3*(15-c|0)|0)))&!(g&(0|B()))))break e;if(!(c>>>0>>0))break;c=c+1|0}a|=s=0|rt(0|l,0,56),s=0|B()|g,n[(l=d)>>2]=a,n[l+4>>2]=s,l=f+2|0}}while(0);7==(0|l)?(n[(x=k+(A<<3)|0)>>2]=a,n[x+4>>2]=-117440513&s,A=0|We(0|A,0|m,1,0),x=0|B()):x=m}if(b=0|We(0|b,0|p,1,0),!((0|(p=0|B()))<(0|r)|(0|p)==(0|r)&b>>>0>>0))break;m=x}if(C){if(v=j>>>0>15,y=0|rt(0|j,0,52),w=0|B(),!D){for(a=0,c=0,l=0,s=0;!(0|u)&!(0|i)||(n[(j=e+(a<<3)|0)>>2]=u,n[j+4>>2]=i,a=0|We(0|a,0|c,1,0),c=0|B()),l=0|We(0|l,0|s,1,0),(0|(s=0|B()))<(0|r)|(0|s)==(0|r)&l>>>0>>0;)u=0|n[(i=N+(l<<3)|0)>>2],i=0|n[i+4>>2];i=x;break}for(a=0,c=0,s=0,l=0;;){do{if(!(!(0|u)&!(0|i))){if(h=0|tt(0|u,0|i,52),B(),v|(0|(h&=15))<(0|j)){S=80;break A}if((0|h)!=(0|j)){if(d=u|y,f=-15728641&i|w,h>>>0>=E>>>0){g=j;do{D=0|rt(7,0,3*(14-g|0)|0),g=g+1|0,d|=D,f=0|B()|f}while(g>>>0>>0)}}else d=u,f=i;m=0|At(0|d,0|f,0|t,0|r),g=0,h=0,p=0|B();do{if((0|g)>(0|r)|(0|g)==(0|r)&h>>>0>t>>>0){S=81;break A}if((-117440513&(b=0|n[4+(D=Q+(m<<3)|0)>>2]))==(0|f)&&(0|n[D>>2])==(0|d)){S=65;break}m=0|$e(0|(D=0|We(0|m,0|p,1,0)),0|B(),0|t,0|r),p=0|B(),h=0|We(0|h,0|g,1,0),g=0|B(),D=Q+(m<<3)|0}while((0|n[D>>2])!=(0|d)||(0|n[D+4>>2])!=(0|f));if(65==(0|S)&&(S=0,!0&100663296==(117440512&b)))break;n[(D=e+(a<<3)|0)>>2]=u,n[D+4>>2]=i,a=0|We(0|a,0|c,1,0),c=0|B()}}while(0);if(s=0|We(0|s,0|l,1,0),!((0|(l=0|B()))<(0|r)|(0|l)==(0|r)&s>>>0>>0))break;u=0|n[(i=N+(s<<3)|0)>>2],i=0|n[i+4>>2]}i=x}else a=0,i=x}else a=0,A=0,i=0}while(0);if(lt(0|Q,0,0|o),st(0|N,0|k,A<<3),Ye(k),!(0|A)&!(0|i)){S=89;break}e=e+(a<<3)|0,r=i,t=A}if(16==(0|S))!0&!(117440512&i)?(i=4,S=27):S=21;else if(31==(0|S))M(27795,27122,620,27132);else{if(41==(0|S))return Ye(N),Ye(Q),10;if(48==(0|S))return Ye(N),Ye(Q),13;80==(0|S)?M(27795,27122,711,27132):81==(0|S)?M(27795,27122,723,27132):85==(0|S)&&(st(0|e,0|N,t<<3),S=89)}return 21==(0|S)?(Ye(N),Ye(Q),0|(S=5)):27==(0|S)?(Ye(N),Ye(Q),0|(S=i)):89==(0|S)?(Ye(N),Ye(Q),0|(S=0)):0},_constructCell:function(A,e,t,o){t|=0,o|=0;var i=0,a=0,s=0,l=0,c=0,u=0;if((A|=0)>>>0>15)return 4;if((e|=0)>>>0>121)return 17;s=0|rt(0|A,0,52),i=0|B(),l=0|rt(0|e,0,45),i=0|i|B()|134225919;A:do{if((0|A)>=1){for(l=1,s=!!(0|r[20528+e|0]),a=-1;;){if((e=0|n[t+(l+-1<<2)>>2])>>>0>6){i=18,e=10;break}if(!(!(0|e)|1^s)){if(1==(0|e)){i=19,e=10;break}s=0}if(c=0|rt(7,0,0|(u=3*(15-l|0)|0)),i&=~B(),a=(e=0|rt(0|e,((0|e)<0)<<31>>31,0|u))|a&~c,i=0|B()|i,!((0|l)<(0|A)))break A;l=l+1|0}if(10==(0|e))return 0|i}else a=-1}while(0);return n[(u=o)>>2]=a,n[u+4>>2]=i,0},_destroyLinkedMultiPolygon:ge,_directedEdgeToBoundary:DA,_directedEdgeToCells:function(A,e,t){A|=0;var r,o,i,a=0;return r=S,S=S+16|0,a=r,!0&268435456==(2013265920&(e|=0))?(o=-2130706433&e|134217728,n[(i=t|=0)>>2]=A,n[i+4>>2]=o,n[a>>2]=0,e=0|tt(0|A,0|e,56),B(),a=0|I(A,o,7&e,a,t+8|0),S=r,0|a):(S=r,0|(a=6))},_edgeLengthKm:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return l=A,s=+o[t>>3],s*=6371.007180918475,o[t>>3]=s,S=r,0|l;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return l=0,s=0,s*=6371.007180918475,o[t>>3]=s,S=r,0|l;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+g)*+d(+i)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)!=(0|e));return o[t>>3]=s,l=0,h=s,h*=6371.007180918475,o[t>>3]=h,S=r,0|l},_edgeLengthM:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return l=A,s=+o[t>>3],s*=6371.007180918475,s*=1e3,o[t>>3]=s,S=r,0|l;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return l=0,s=0,s*=6371.007180918475,s*=1e3,o[t>>3]=s,S=r,0|l;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+g)*+d(+i)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)!=(0|e));return o[t>>3]=s,l=0,h=s,h*=6371.007180918475,h*=1e3,o[t>>3]=h,S=r,0|l},_edgeLengthRads:function(A,e,t){t|=0;var r,i=0,a=0,s=0,l=0,u=0,g=0,h=0;if(r=S,S=S+176|0,0|(A=0|DA(A|=0,e|=0,l=r)))return S=r,0|A;if(o[t>>3]=0,(0|(A=0|n[l>>2]))<=1)return S=r,0;e=A+-1|0,A=0,i=+o[l+8>>3],a=+o[l+16>>3],s=0;do{g=i,i=+o[l+8+((A=A+1|0)<<4)>>3],h=+f(.5*(i-g)),u=a,a=+o[l+8+(A<<4)+8>>3],u=h*h+(u=+f(.5*(a-u)))*(+d(+i)*+d(+g)*u),s+=2*+p(+ +c(+u),+ +c(+(1-u)))}while((0|A)<(0|e));return o[t>>3]=s,S=r,0},_emscripten_replace_memory:function(A){return r=new Int8Array(A),n=new Int32Array(A),o=new Float64Array(A),t=A,!0},_free:Ye,_getBaseCellNumber:TA,_getDirectedEdgeDestination:function(A,e,t){A|=0,e|=0,t|=0;var r,o,i=0;return r=S,S=S+16|0,n[(i=r)>>2]=0,!0&268435456==(2013265920&e)?(o=0|tt(0|A,0|e,56),B(),i=0|I(A,-2130706433&e|134217728,7&o,i,t),S=r,0|i):(S=r,0|(i=6))},_getDirectedEdgeOrigin:function(A,e,t){return A|=0,t|=0,!0&268435456==(2013265920&(e|=0))?(n[t>>2]=A,n[t+4>>2]=-2130706433&e|134217728,0|(t=0)):0|(t=6)},_getHexagonAreaAvgKm2:se,_getHexagonAreaAvgM2:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20784+(A<<3)>>3],0|(e=0))},_getHexagonEdgeLengthAvgKm:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[20912+(A<<3)>>3],0|(e=0))},_getHexagonEdgeLengthAvgM:function(A,e){return e|=0,(A|=0)>>>0>15?0|(e=4):(o[e>>3]=+o[21040+(A<<3)>>3],0|(e=0))},_getIcosahedronFaces:function A(e,t,r){r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0;o=S,S=S+128|0,d=o+112|0,s=o+96|0,f=o,a=0|tt(0|(e|=0),0|(t|=0),52),B(),c=15&a,n[d>>2]=c,l=0|tt(0|e,0|t,45),B(),l&=127;A:do{if(0|z(l)){if(0|c)for(i=1;;){if(!(!((u=0|rt(7,0,3*(15-i|0)|0))&e)&!((0|B())&t))){a=0;break A}if(!(i>>>0>>0))break;i=i+1|0}if(!(1&a))return u=0|rt(c+1|0,0,52),f=B()|-15728641&t,f=0|A((u|e)&~(d=0|rt(7,0,3*(14-c|0)|0)),f&~B(),r),S=o,0|f;a=1}else a=0}while(0);if(!(i=0|qA(e,t,s))){a?(QA(s,d,f),u=5):(PA(s,d,f),u=6);A:do{if(0|z(l))if(c)for(i=1;;){if(!(!((l=0|rt(7,0,3*(15-i|0)|0))&e)&!((0|B())&t))){e=2;break A}if(!(i>>>0>>0)){e=5;break}i=i+1|0}else e=5;else e=2}while(0);lt(0|r,-1,e<<2);A:do{if(a)for(s=0;;){if(SA(l=f+(s<<4)|0,0|n[d>>2]),l=0|n[l>>2],-1==(0|(c=0|n[r>>2]))|(0|c)==(0|l))i=r;else{a=0;do{if((a=a+1|0)>>>0>=e>>>0){i=1;break A}c=0|n[(i=r+(a<<2)|0)>>2]}while(!(-1==(0|c)|(0|c)==(0|l)))}if(n[i>>2]=l,(s=s+1|0)>>>0>=u>>>0){i=0;break}}else for(s=0;;){if(NA(l=f+(s<<4)|0,0|n[d>>2],0,1),l=0|n[l>>2],-1==(0|(c=0|n[r>>2]))|(0|c)==(0|l))i=r;else{a=0;do{if((a=a+1|0)>>>0>=e>>>0){i=1;break A}c=0|n[(i=r+(a<<2)|0)>>2]}while(!(-1==(0|c)|(0|c)==(0|l)))}if(n[i>>2]=l,(s=s+1|0)>>>0>=u>>>0){i=0;break}}}while(0)}return S=o,0|i},_getIndexDigit:function(A,e,t,r){return r|=0,((t|=0)-1|0)>>>0>14?0|(r=4):(t=0|tt(0|(A|=0),0|(e|=0),3*(15-t|0)|0),B(),n[r>>2]=7&t,0|(r=0))},_getNumCells:le,_getPentagons:Ae,_getRes0Cells:function(A){A|=0;var e=0,t=0,r=0;e=0;do{rt(0|e,0,45),r=134225919|B(),n[(t=A+(e<<3)|0)>>2]=-1,n[t+4>>2]=r,e=e+1|0}while(122!=(0|e));return 0},_getResolution:function(A,e){return e=0|tt(0|(A|=0),0|(e|=0),52),B(),15&e},_greatCircleDistanceKm:ae,_greatCircleDistanceM:function(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))*6371.007180918475*1e3},_greatCircleDistanceRads:function(A,e){A|=0;var t,r,n,i=0;return r=+o[(e|=0)>>3],t=+o[A>>3],i=(n=+f(.5*(r-t)))*n+(i=+f(.5*(+o[e+8>>3]-+o[A+8>>3])))*(+d(+r)*+d(+t)*i),2*+p(+ +c(+i),+ +c(+(1-i)))},_gridDisk:F,_gridDiskDistances:P,_gridDistance:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a,s=0,l=0;return a=S,S=S+32|0,l=a,0|(i=0|me(A|=0,e|=0,A,e,s=a+12|0))?(S=a,0|(l=i)):0|(A=0|me(A,e,t,r,l))?(S=a,0|(l=A)):(s=0|kA(s,l),n[(l=o)>>2]=s,n[l+4>>2]=((0|s)<0)<<31>>31,S=a,0|(l=0))},_gridPathCells:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a,s=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,D=0,E=0;if(a=S,S=S+48|0,c=a+12|0,D=a,!(s=0|me(A|=0,e|=0,A,e,i=a+24|0))&&!(s=0|me(A,e,t,r,c))){C=((0|(k=0|kA(i,c)))<0)<<31>>31,n[i>>2]=0,n[i+4>>2]=0,n[i+8>>2]=0,n[c>>2]=0,n[c+4>>2]=0,n[c+8>>2]=0,0|me(A,e,A,e,i)&&M(27795,27538,692,27747),0|me(A,e,t,r,c)&&M(27795,27538,697,27747),CA(i),CA(c),g=0|k?1/+(0|k):0,t=0|n[i>>2],v=g*+((0|n[c>>2])-t|0),r=0|n[(y=i+4|0)>>2],w=g*+((0|n[c+4>>2])-r|0),s=0|n[(x=i+8|0)>>2],g*=+((0|n[c+8>>2])-s|0),n[D>>2]=t,n[(h=D+4|0)>>2]=r,n[(m=D+8|0)>>2]=s;A:do{if((0|k)<0)s=0;else for(b=0,p=0;;){E=v*(d=+(p>>>0)+4294967296*+(0|b))+ +(0|t),u=w*d+ +(0|r),d=g*d+ +(0|s),t=~~+at(+E),c=~~+at(+u),s=~~+at(+d),E=+l(+(+(0|t)-E)),u=+l(+(+(0|c)-u)),d=+l(+(+(0|s)-d));do{if(!(E>u&E>d)){if(f=0-t|0,u>d){r=f-s|0;break}r=c,s=f-c|0;break}t=0-(c+s)|0,r=c}while(0);if(n[D>>2]=t,n[h>>2]=r,n[m>>2]=s,BA(D),0|(s=0|be(A,e,D,o+(p<<3)|0)))break A;if(!((0|b)<(0|C)|(0|b)==(0|C)&p>>>0>>0)){s=0;break A}t=0|We(0|p,0|b,1,0),b=r=0|B(),p=t,t=0|n[i>>2],r=0|n[y>>2],s=0|n[x>>2]}}while(0);return S=a,0|s}return S=a,0|s},_gridPathCellsSize:function(A,e,t,r,o){t|=0,r|=0,o|=0;var i,a=0,s=0,l=0;return i=S,S=S+32|0,l=i,(a=0|me(A|=0,e|=0,A,e,s=i+12|0))||(a=0|me(A,e,t,r,l))?(S=i,0|(l=a)):(r=0|We(0|(r=0|kA(s,l)),((0|r)<0)<<31>>31,1,0),s=0|B(),n[(l=o)>>2]=r,n[l+4>>2]=s,S=i,0|(l=0))},_gridRing:function(A,e,t,r){return 0|R(A|=0,e|=0,t|=0,r|=0)?(lt(0|r,0,48*t|0),0|(r=0|function(A,e,t,r){A|=0,e|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0;if(o=S,S=S+16|0,s=o,!(t|=0))return n[r>>2]=A,n[r+4>>2]=e,S=o,0;do{if((0|t)>=0){if((0|t)>13780509){if(0|(i=0|le(15,s)))break;i=0|n[(a=s)>>2],a=0|n[a+4>>2]}else d=0|Xe(0|t,0|(i=((0|t)<0)<<31>>31),3,0),a=0|B(),i=0|We(0|t,0|i,1,0),i=0|We(0|(i=0|Xe(0|d,0|a,0|i,0|B())),0|B(),1,0),a=0|B(),n[(d=s)>>2]=i,n[d+4>>2]=a;if(u=0|Ve(i,8)){if(!(d=0|Ve(i,4))){Ye(u),i=13;break}if(0|(i=0|L(A,e,t,u,d,i,a,0))){Ye(u),Ye(d);break}if(e=0|n[s>>2],(0|(s=0|n[s+4>>2]))>0|!(0|s)&e>>>0>0){i=0,l=0,c=0;do{!(0|(a=0|n[(A=u+(l<<3)|0)>>2]))&!(0|(A=0|n[A+4>>2]))||(0|n[d+(l<<2)>>2])!=(0|t)||(n[(f=r+(i<<3)|0)>>2]=a,n[f+4>>2]=A,i=i+1|0),l=0|We(0|l,0|c,1,0),c=0|B()}while((0|c)<(0|s)|(0|c)==(0|s)&l>>>0>>0)}Ye(u),Ye(d),i=0}else i=13}else i=2}while(0);return S=o,0|i}(A,e,t,r))):0|(r=0)},_gridRingUnsafe:R,_i64Add:We,_i64Subtract:Ze,_isPentagon:HA,_isResClassIII:function(A,e){return e=0|tt(0|(A|=0),0|(e|=0),52),B(),1&e},_isValidCell:LA,_isValidDirectedEdge:MA,_isValidIndex:function(A,e){A|=0;var t=0,n=0,o=0,i=0;if(!0&134217728==(-16777216&(e|=0))&&(n=0|tt(0|A,0|e,52),B(),n&=15,t=0|tt(0|A,0|e,45),B(),(t&=127)>>>0<=121)&&!(613566756&(i=0|rt(0|(o=0|tt(0|A,0|e,0|(i=3*(15^n)|0))),0|B(),0|i))&Ze(-1227133514,-1171,0|i,0|(o=0|B())))&!(4681&o&B())&&15==(0|n)|!(0|(i=0|tt(0|rt(0|~A,0|~e,0|(i=19+(3*n|0)|0)),0|B(),0|i)))&!(0|B())){if(!(0|r[20528+t|0]))return 1;if(!(0|A)&!(0|(t=8191&e)))return 1;if(i=0|nt(0|A,0|t),B(),(63-i|0)%3|0)return 1}return 0|MA(A,e)?0|(i=1):0|(i=1&!!(0|Te(A,e)))},_isValidVertex:Te,_latLngToCell:KA,_llvm_ctlz_i64:nt,_llvm_maxnum_f64:ot,_llvm_minnum_f64:it,_llvm_round_f64:at,_localIjToCell:function(A,e,t,r,o){var i,a;return A|=0,e|=0,t|=0,o|=0,a=S,S=S+16|0,i=a,(r|=0)?t=15:(t=0|function(A,e){e|=0;var t,r,o,i=0,a=0,s=0;if(a=0|n[(A|=0)>>2],n[e>>2]=a,s=0|n[A+4>>2],n[(r=e+4|0)>>2]=s,n[(o=e+8|0)>>2]=0,A=(i=(0|s)<(0|a))?a:s,(0|(i=i?s:a))<0){if(-2147483648==(0|i)||((0|A)>0?(2147483647-A|0)<(0|i):(-2147483648-A|0)>(0|i)))return 1;if((0|A)>-1?(-2147483648|A)>=(0|i):(-2147483648^A)<(0|i))return 1}return A=s-a|0,(0|a)<0?(i=0-a|0,n[r>>2]=A,n[o>>2]=i,n[e>>2]=0,a=0):(A=s,i=0),(0|A)<0&&(a=a-A|0,n[e>>2]=a,i=i-A|0,n[o>>2]=i,n[r>>2]=0,A=0),t=a-i|0,s=A-i|0,(0|i)<0?(n[e>>2]=t,n[r>>2]=s,n[o>>2]=0,A=s,s=t,i=0):s=a,(0|(a=(0|i)<(0|(a=(0|A)<(0|s)?A:s))?i:a))<=0||(n[e>>2]=s-a,n[r>>2]=A-a,n[o>>2]=i-a),0}(t,i))||(t=0|be(A,e,i,o)),S=a,0|t},_malloc:Oe,_maxFaceCount:function(A,e,t){t|=0;var r=0,o=0;if(o=0|tt(0|(A|=0),0|(e|=0),45),B(),!(0|z(127&o)))return o=2,n[t>>2]=o,0;if(o=0|tt(0|A,0|e,52),B(),!(o&=15))return o=5,n[t>>2]=o,0;for(r=1;;){if(!(!((0|rt(7,0,3*(15-r|0)|0))&A)&!((0|B())&e))){r=2,A=6;break}if(!(r>>>0>>0)){r=5,A=6;break}r=r+1|0}return 6==(0|A)?(n[t>>2]=r,0):0},_maxGridDiskSize:function(A,e){e|=0;var t=0,r=0,o=0;return(0|(A|=0))<0?0|(e=2):(0|A)>13780509?0|(e=0|le(15,e)):(o=0|Xe(0|A,0|(t=((0|A)<0)<<31>>31),3,0),r=0|B(),t=0|We(0|A,0|t,1,0),t=0|We(0|(t=0|Xe(0|o,0|r,0|t,0|B())),0|B(),1,0),A=0|B(),n[e>>2]=t,n[e+4>>2]=A,0|(e=0))},_maxPolygonToCellsSize:function(A,e,t,r){A|=0,e|=0,r|=0;var o,i=0,a=0,s=0,l=0,c=0;if(o=S,S=S+48|0,i=o+16|0,a=o+8|0,s=o,0|(t=0|Ce(t|=0)))return S=o,0|t;if(l=0|n[(c=A)+4>>2],n[(t=a)>>2]=n[c>>2],n[t+4>>2]=l,ke(a,i),!(t=0|eA(i,e,s))){if(e=0|n[a>>2],(0|(a=0|n[A+8>>2]))>0){i=0|n[A+12>>2],t=0;do{e=(0|n[i+(t<<3)>>2])+e|0,t=t+1|0}while((0|t)<(0|a))}i=0|n[(t=s)>>2],(0|(t=0|n[t+4>>2]))<(0|(a=((0|e)<0)<<31>>31))|(0|t)==(0|a)&i>>>0>>0?(n[(t=s)>>2]=e,n[t+4>>2]=a,t=a):e=i,l=0|We(0|e,0|t,12,0),c=0|B(),n[(t=s)>>2]=l,n[t+4>>2]=c,n[(t=r)>>2]=l,n[t+4>>2]=c,t=0}return S=o,0|t},_maxPolygonToCellsSizeExperimental:function(A,e,t,i){e|=0,t|=0,i|=0;var a,s,c=0,u=0,f=0,g=0,h=0,m=0,b=0,p=0;if(s=S,S=S+48|0,h=s+32|0,g=s+40|0,a=s,!(0|n[(A|=0)>>2]))return n[(m=i)>>2]=0,n[m+4>>2]=0,S=s,0;IA(h,0,0,0),c=0|n[(f=h)>>2],f=0|n[f+4>>2];do{if(e>>>0>15)n[(m=a)>>2]=0,n[m+4>>2]=0,n[a+8>>2]=4,n[a+12>>2]=-1,t=a+29|0,n[(m=a+16|0)>>2]=0,n[m+4>>2]=0,n[m+8>>2]=0,r[m+12|0]=0,r[0|t]=0|r[0|g],r[t+1|0]=0|r[g+1|0],r[t+2|0]=0|r[g+2|0],t=4,m=9;else{if(0|(t=0|Ce(t))){n[(h=a)>>2]=0,n[h+4>>2]=0,n[a+8>>2]=t,n[a+12>>2]=-1,m=a+29|0,n[(h=a+16|0)>>2]=0,n[h+4>>2]=0,n[h+8>>2]=0,r[h+12|0]=0,r[0|m]=0|r[0|g],r[m+1|0]=0|r[g+1|0],r[m+2|0]=0|r[g+2|0],m=9;break}if(!(t=0|Ve(1+(0|n[A+8>>2])|0,32))){n[(m=a)>>2]=0,n[m+4>>2]=0,n[a+8>>2]=13,n[a+12>>2]=-1,t=a+29|0,n[(m=a+16|0)>>2]=0,n[m+4>>2]=0,n[m+8>>2]=0,r[m+12|0]=0,r[0|t]=0|r[0|g],r[t+1|0]=0|r[g+1|0],r[t+2|0]=0|r[g+2|0],t=13,m=9;break}Be(A,t),n[(p=a)>>2]=c,n[p+4>>2]=f,n[(f=a+8|0)>>2]=0,n[a+12>>2]=e,n[a+20>>2]=A,n[a+24>>2]=t,r[a+28|0]=0,r[0|(c=a+29|0)]=0|r[0|g],r[c+1|0]=0|r[g+1|0],r[c+2|0]=0|r[g+2|0],n[a+16>>2]=3,b=+J(t),b*=+Z(t),u=+l(+ +o[t>>3]),u=b/+d(+ +it(+u,+ +l(+ +o[t+8>>3])))*6371.007180918475*6371.007180918475,t=0|n[(c=a+12|0)>>2];A:do{if((0|t)>0)do{if(se(t+-1|0,h),!(u/+o[h>>3]>10))break A;t=(p=0|n[c>>2])-1|0,n[c>>2]=t}while((0|p)>1)}while(0);if(ye(a),n[(c=i)>>2]=0,n[c+4>>2]=0,!(!(0|(t=0|n[(c=a)>>2]))&!(0|(c=0|n[c+4>>2]))))do{_A(t,c,e,h),g=h,g=0|We(0|n[(A=i)>>2],0|n[A+4>>2],0|n[g>>2],0|n[g+4>>2]),A=0|B(),n[(p=i)>>2]=g,n[p+4>>2]=A,ye(a),t=0|n[(p=a)>>2],c=0|n[p+4>>2]}while(!(!(0|t)&!(0|c)));t=0|n[f>>2]}}while(0);return S=s,0|t},_memcpy:st,_memset:lt,_originToDirectedEdges:function(A,e,t){t|=0;var r,o=0;return r=!(0|HA(A|=0,e|=0)),e&=-2130706433,n[(o=t)>>2]=r?A:0,n[o+4>>2]=r?285212672|e:0,n[(o=t+8|0)>>2]=A,n[o+4>>2]=301989888|e,n[(o=t+16|0)>>2]=A,n[o+4>>2]=318767104|e,n[(o=t+24|0)>>2]=A,n[o+4>>2]=335544320|e,n[(o=t+32|0)>>2]=A,n[o+4>>2]=352321536|e,n[(t=t+40|0)>>2]=A,n[t+4>>2]=369098752|e,0},_pentagonCount:function(){return 12},_polygonToCells:function(A,e,t,r){A|=0,e|=0,r|=0;var o,i,a,s,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0,v=0,y=0,w=0,x=0,k=0,C=0,M=0,D=0,E=0,j=0,Q=0,N=0,F=0,P=0,I=0,R=0,_=0;if(s=S,S=S+112|0,o=s+80|0,f=s+72|0,i=s,a=s+56|0,0|(l=0|Ce(t|=0)))return S=s,0|l;if(!(_=0|Oe(32+(n[(g=A+8|0)>>2]<<5)|0)))return S=s,13;if(Be(A,_),!(l=0|Ce(t))){if(R=0|n[(I=A)+4>>2],n[(l=f)>>2]=n[I>>2],n[l+4>>2]=R,ke(f,o),l=0|eA(o,e,i))I=0,R=0;else{if(l=0|n[f>>2],(0|(c=0|n[g>>2]))>0){u=0|n[A+12>>2],t=0;do{l=(0|n[u+(t<<3)>>2])+l|0,t=t+1|0}while((0|t)!=(0|c));t=l}else t=l;c=0|n[(l=i)>>2],(0|(l=0|n[l+4>>2]))<(0|(u=((0|t)<0)<<31>>31))|(0|l)==(0|u)&c>>>0>>0?(n[(l=i)>>2]=t,n[l+4>>2]=u,l=u):t=c,I=0|We(0|t,0|l,12,0),R=0|B(),n[(l=i)>>2]=I,n[l+4>>2]=R,l=0}if(!l){if(!(t=0|Ve(I,8)))return Ye(_),S=s,13;if(!(d=0|Ve(I,8)))return Ye(_),Ye(t),S=s,13;n[(F=o)>>2]=0,n[F+4>>2]=0,P=0|n[(F=A)+4>>2],n[(l=f)>>2]=n[F>>2],n[l+4>>2]=P,l=0|H(f,I,R,e,o,t,d);A:do{if(l)Ye(t),Ye(d),Ye(_);else{e:do{if((0|n[g>>2])>0){for(u=A+12|0,c=0;l=0|H((0|n[u>>2])+(c<<3)|0,I,R,e,o,t,d),c=c+1|0,!(0|l);)if((0|c)>=(0|n[g>>2]))break e;Ye(t),Ye(d),Ye(_);break A}}while(0);(0|R)>0|!(0|R)&I>>>0>0&<(0|d,0,I<<3),F=0|n[(P=o)+4>>2];e:do{if((0|F)>0|!(0|F)&(0|n[P>>2])>>>0>0){j=t,Q=d,N=t,F=d,P=t,l=t,M=t,D=d,E=d,t=d;t:for(;;){for(w=0,x=0,k=0,C=0,c=0,u=0;;){f=(d=i)+56|0;do{n[d>>2]=0,d=d+4|0}while((0|d)<(0|f));if(0|T(g=0|n[(e=j+(w<<3)|0)>>2],e=0|n[e+4>>2],1,i,0)){f=(d=i)+56|0;do{n[d>>2]=0,d=d+4|0}while((0|d)<(0|f));0|(d=0|Ve(7,4))&&(L(g,e,1,i,d,7,0,0),Ye(d))}for(y=0;;){p=0|n[(v=i+(y<<3)|0)>>2],v=0|n[v+4>>2];r:do{if(!(0|p)&!(0|v))d=c,f=u;else{if(h=0|At(0|p,0|v,0|I,0|R),g=0|B(),!(!(0|(f=0|n[(e=d=r+(h<<3)|0)>>2]))&!(0|(e=0|n[e+4>>2])))){m=0,b=0;do{if((0|m)>(0|R)|(0|m)==(0|R)&b>>>0>I>>>0)break t;if((0|f)==(0|p)&(0|e)==(0|v)){d=c,f=u;break r}h=0|$e(0|(d=0|We(0|h,0|g,1,0)),0|B(),0|I,0|R),g=0|B(),b=0|We(0|b,0|m,1,0),m=0|B(),f=0|n[(e=d=r+(h<<3)|0)>>2],e=0|n[e+4>>2]}while(!(!(0|f)&!(0|e)))}if(!(0|p)&!(0|v)){d=c,f=u;break}XA(p,v,a),0|Me(A,_,a)&&(b=0|We(0|c,0|u,1,0),u=0|B(),n[(m=d)>>2]=p,n[m+4>>2]=v,n[(c=Q+(c<<3)|0)>>2]=p,n[c+4>>2]=v,c=b),d=c,f=u}}while(0);if((y=y+1|0)>>>0>=7)break;c=d,u=f}if(w=0|We(0|w,0|x,1,0),x=0|B(),k=0|We(0|k,0|C,1,0),C=0|B(),c=0|n[(u=o)>>2],!((0|C)<(0|(u=0|n[u+4>>2]))|(0|C)==(0|u)&k>>>0>>0))break;c=d,u=f}if((0|u)>0|!(0|u)&c>>>0>0){c=0,u=0;do{n[(C=j+(c<<3)|0)>>2]=0,n[C+4>>2]=0,c=0|We(0|c,0|u,1,0),u=0|B(),k=0|n[(C=o)+4>>2]}while((0|u)<(0|k)|((0|u)==(0|k)?c>>>0<(0|n[C>>2])>>>0:0))}if(n[(C=o)>>2]=d,n[C+4>>2]=f,!((0|f)>0|!(0|f)&d>>>0>0))break e;y=t,w=E,x=P,k=D,C=Q,t=M,E=l,D=N,M=y,l=w,P=F,F=x,N=k,Q=j,j=C}Ye(N),Ye(F),Ye(_),l=1;break A}l=d}while(0);Ye(_),Ye(t),Ye(l),l=0}}while(0);return S=s,0|l}}return Ye(_),S=s,0|l},_polygonToCellsExperimental:function(A,e,t,o,i,a){o|=0,i|=0,a|=0;var s,l,c,u=0,d=0,f=0,g=0,h=0,m=0,b=0,p=0;c=S,S=S+160|0,d=c+64|0,h=c+112|0,p=c,function(A,e,t,o){A|=0,e|=0,t|=0,o|=0;var i,a,s,l=0,c=0,u=0,d=0;s=S,S=S+48|0,i=s+40|0,a=s,IA(c=s+32|0,0,0,0),u=0|n[c>>2],c=0|n[c+4>>2];do{if(t>>>0<=15){if(0|(l=0|Ce(o))){n[(o=a)>>2]=0,n[o+4>>2]=0,n[a+8>>2]=l,n[a+12>>2]=-1,u=a+29|0,n[(o=a+16|0)>>2]=0,n[o+4>>2]=0,n[o+8>>2]=0,r[o+12|0]=0,r[0|u]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}if(l=0|Ve(1+(0|n[e+8>>2])|0,32)){Be(e,l),n[(d=a)>>2]=u,n[d+4>>2]=c,n[a+8>>2]=0,n[a+12>>2]=t,n[a+16>>2]=o,n[a+20>>2]=e,n[a+24>>2]=l,r[a+28|0]=0,r[0|(u=a+29|0)]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}n[(o=a)>>2]=0,n[o+4>>2]=0,n[a+8>>2]=13,n[a+12>>2]=-1,u=a+29|0,n[(o=a+16|0)>>2]=0,n[o+4>>2]=0,n[o+8>>2]=0,r[o+12|0]=0,r[0|u]=0|r[0|i],r[u+1|0]=0|r[i+1|0],r[u+2|0]=0|r[i+2|0];break}n[(u=a)>>2]=0,n[u+4>>2]=0,n[a+8>>2]=4,n[a+12>>2]=-1,d=a+29|0,n[(u=a+16|0)>>2]=0,n[u+4>>2]=0,n[u+8>>2]=0,r[u+12|0]=0,r[0|d]=0|r[0|i],r[d+1|0]=0|r[i+1|0],r[d+2|0]=0|r[i+2|0]}while(0);ye(a),n[A>>2]=n[a>>2],n[A+4>>2]=n[a+4>>2],n[A+8>>2]=n[a+8>>2],n[A+12>>2]=n[a+12>>2],n[A+16>>2]=n[a+16>>2],n[A+20>>2]=n[a+20>>2],n[A+24>>2]=n[a+24>>2],n[A+28>>2]=n[a+28>>2],S=s}(g=c+80|0,A|=0,e|=0,t|=0),ee(d,0|n[(f=g)>>2],0|n[f+4>>2],e),s=0|n[(f=d)>>2],f=0|n[f+4>>2],u=0|n[g+8>>2],n[(m=h+4|0)>>2]=n[g>>2],n[m+4>>2]=n[g+4>>2],n[m+8>>2]=n[g+8>>2],n[m+12>>2]=n[g+12>>2],n[m+16>>2]=n[g+16>>2],n[m+20>>2]=n[g+20>>2],n[m+24>>2]=n[g+24>>2],n[m+28>>2]=n[g+28>>2],n[(m=p)>>2]=s,n[m+4>>2]=f,n[(m=p+8|0)>>2]=u,e=h,t=36+(A=p+12|0)|0;do{n[A>>2]=n[e>>2],A=A+4|0,e=e+4|0}while((0|A)<(0|t));if(n[(h=p+48|0)>>2]=n[d>>2],n[h+4>>2]=n[d+4>>2],n[h+8>>2]=n[d+8>>2],n[h+12>>2]=n[d+12>>2],!(0|s)&!(0|f))return S=c,0|u;t=p+16|0,l=p+24|0,g=p+28|0,u=0,d=0,e=s,A=f;do{if(!((0|u)<(0|i)|(0|u)==(0|i)&d>>>0>>0)){b=4;break}if(f=d,d=0|We(0|d,0|u,1,0),u=0|B(),n[(f=a+(f<<3)|0)>>2]=e,n[f+4>>2]=A,re(h),!(0|(e=0|n[(A=h)>>2]))&!(0|(A=0|n[A+4>>2]))){if(ye(t),!(0|(A=0|n[(e=t)>>2]))&!(0|(e=0|n[e+4>>2]))){b=10;break}te(A,e,0|n[g>>2],h),e=0|n[(A=h)>>2],A=0|n[A+4>>2]}n[(f=p)>>2]=e,n[f+4>>2]=A}while(!(!(0|e)&!(0|A)));return 4==(0|b)?(0|(e=0|n[(A=p+40|0)>>2])&&Ye(e),n[(b=p+16|0)>>2]=0,n[b+4>>2]=0,n[l>>2]=0,n[p+36>>2]=0,n[g>>2]=-1,n[p+32>>2]=0,n[A>>2]=0,te(0,0,0,h),n[p>>2]=0,n[p+4>>2]=0,n[m>>2]=0,S=c,0|(p=14)):(10==(0|b)&&(n[p>>2]=0,n[p+4>>2]=0,n[m>>2]=n[l>>2]),p=0|n[m>>2],S=c,0|p)},_readInt64AsDoubleFromPointer:function(A){return+(+((0|n[(A|=0)>>2])>>>0)+4294967296*+(0|n[A+4>>2]))},_res0CellCount:function(){return 122},_round:ct,_sbrk:ut,_sizeOfCellBoundary:function(){return 168},_sizeOfCoordIJ:function(){return 8},_sizeOfGeoLoop:function(){return 8},_sizeOfGeoPolygon:function(){return 16},_sizeOfH3Index:function(){return 8},_sizeOfLatLng:function(){return 16},_sizeOfLinkedGeoPolygon:function(){return 12},_uncompactCells:function(A,e,t,r,o,i,a){A|=0,r|=0,o|=0,i|=0;var s,l=0,c=0,u=0,d=0,f=0,g=0,h=0,m=0;if(s=S,S=S+16|0,m=s,!((0|(t|=0))>0|!(0|t)&(e|=0)>>>0>0))return S=s,0;if((0|(a|=0))>=16)return S=s,12;g=0,h=0,f=0,l=0;A:for(;;){if(d=0|tt(0|(c=0|n[(u=A+(g<<3)|0)>>2]),0|(u=0|n[u+4>>2]),52),B(),(15&d)>(0|a)){l=12,c=11;break}if(ee(m,c,u,a),!(0|(u=0|n[(d=m)>>2]))&!(0|(d=0|n[d+4>>2])))c=f;else{c=f;do{if(!((0|l)<(0|i)|(0|l)==(0|i)&c>>>0>>0)){c=10;break A}n[(f=r+(c<<3)|0)>>2]=u,n[f+4>>2]=d,c=0|We(0|c,0|l,1,0),l=0|B(),re(m),u=0|n[(f=m)>>2],d=0|n[f+4>>2]}while(!(!(0|u)&!(0|d)))}if(g=0|We(0|g,0|h,1,0),!((0|(h=0|B()))<(0|t)|(0|h)==(0|t)&g>>>0>>0)){l=0,c=11;break}f=c}return 10==(0|c)?(S=s,0|(m=14)):11==(0|c)?(S=s,0|l):0},_uncompactCellsSize:function(A,e,t,r,o){A|=0,e|=0,t|=0,r|=0,o|=0;var i,a,s=0,l=0,c=0,u=0,d=0,f=0;a=S,S=S+16|0,i=a;A:do{if((0|t)>0|!(0|t)&e>>>0>0){for(d=0,l=0,s=0,f=0;;){if(!(!(0|(c=0|n[(u=A+(d<<3)|0)>>2]))&!(0|(u=0|n[u+4>>2]))||(u=!(0|_A(c,u,r,i)),l=0|We(0|n[(c=i)>>2],0|n[c+4>>2],0|l,0|s),s=0|B(),u))){s=12;break}if(d=0|We(0|d,0|f,1,0),!((0|(f=0|B()))<(0|t)|(0|f)==(0|t)&d>>>0>>0))break A}return S=a,0|s}l=0,s=0}while(0);return n[o>>2]=l,n[o+4>>2]=s,S=a,0},_vertexToLatLng:function(A,e,t){t|=0;var r,o,i,a,s=0,l=0;return a=S,S=S+192|0,o=a,i=a+168|0,s=0|tt(0|(A|=0),0|(e|=0),56),B(),s&=7,0|(r=0|qA(A,l=-2130706433&e|134217728,i))?(S=a,0|(l=r)):(e=0|tt(0|A,0|e,52),B(),e&=15,0|HA(A,l)?jA(i,e,s,1,o):FA(i,e,s,1,o),l=o+8|0,n[t>>2]=n[l>>2],n[t+4>>2]=n[l+4>>2],n[t+8>>2]=n[l+8>>2],n[t+12>>2]=n[l+12>>2],S=a,0|(l=0))},establishStackSpace:function(A,e){S=A|=0},stackAlloc:function(A){var e;return e=S,S=15+(S=S+(A|=0)|0)&-16,0|e},stackRestore:function(A){S=A|=0},stackSave:function(){return 0|S}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Float32Array:Float32Array,Float64Array:Float64Array},{b:function(A){s=A},c:function(){return s},d:function(A,e,t,r){tA("Assertion failed: "+v(A)+", at: "+[e?v(e):"unknown filename",t,r?v(r):"unknown function"])},e:function(A){return t.___errno_location&&(h[t.___errno_location()>>2]=A),A},f:z,g:function(A,e,t){f.set(f.subarray(e,e+t),A)},h:function(A){var e=z(),t=16777216,r=2130706432;if(A>r)return!1;for(var n=Math.max(e,16777216);n0))return 0;for(var n=t+r-1,o=0;o=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&A.charCodeAt(++o)),i<=127){if(t>=n)break;e[t++]=i}else if(i<=2047){if(t+1>=n)break;e[t++]=192|i>>6,e[t++]=128|63&i}else if(i<=65535){if(t+2>=n)break;e[t++]=224|i>>12,e[t++]=128|i>>6&63,e[t++]=128|63&i}else{if(t+3>=n)break;e[t++]=240|i>>18,e[t++]=128|i>>12&63,e[t++]=128|i>>6&63,e[t++]=128|63&i}}e[t]=0}(A,f,e,t)}(A,e=Z(t),t)}return e},array:function(A){var e,t,r=Z(A.length);return e=A,t=r,d.set(e,t),r}},o=c(A),i=[],a=0;if(r)for(var s=0;s>1]=e;break;case"i32":h[A>>2]=e;break;case"i64":I=[e>>>0,(L=e,+Q(L)>=1?L>0?(0|F(+S(L/4294967296),4294967295))>>>0:~~+N((L-+(~~L>>>0))/4294967296)>>>0:0)],h[A>>2]=I[0],h[A+4>>2]=I[1];break;case"float":m[A>>2]=e;break;case"double":b[A>>3]=e;break;default:tA("invalid type for setValue: "+t)}},t.getValue=function(A,e,t){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return d[0|A];case"i16":return g[A>>1];case"i32":case"i64":return h[A>>2];case"float":return m[A>>2];case"double":return b[A>>3];default:tA("invalid type for getValue: "+e)}return null},R){H(R)||(V=R,R=t.locateFile?t.locateFile(V,o):o+V),P++,t.monitorRunDependencies&&t.monitorRunDependencies(P);var q=function(A){A.byteLength&&(A=new Uint8Array(A)),f.set(A,8),t.memoryInitializerRequest&&delete t.memoryInitializerRequest.response,function(){if(P--,t.monitorRunDependencies&&t.monitorRunDependencies(P),0==P&&T){var A=T;T=null,A()}}()},X=function(){n(R,q,function(){throw"could not load memory initializer "+R})},$=U(R);if($)q($.buffer);else if(t.memoryInitializerRequest){var AA=function(){var A=t.memoryInitializerRequest,e=A.response;if(200!==A.status&&0!==A.status){var r=U(t.memoryInitializerRequestURL);if(!r)return void X();e=r.buffer}q(e)};t.memoryInitializerRequest.response?setTimeout(AA,0):t.memoryInitializerRequest.addEventListener("load",AA)}else X()}function eA(A){function e(){W||(W=!0,l||(k(B),k(M),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)j(t.postRun.shift());k(D)}()))}P>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)E(t.preRun.shift());k(C)}(),P>0||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),e()},1)):e()))}function tA(A){throw t.onAbort&&t.onAbort(A),i(A+=""),a(A),l=!0,"abort("+A+"). Build with -s ASSERTIONS=1 for more info."}if(T=function A(){W||eA(),W||(T=A)},t.run=eA,t.abort=tA,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return eA(),A}("object"==typeof qe?qe:{}),Xe="number",$e={0:"Success",1:"The operation failed but a more specific error is not available",2:"Argument was outside of acceptable range",3:"Latitude or longitude arguments were outside of acceptable range",4:"Resolution argument was outside of acceptable range",5:"Cell argument was not valid",6:"Directed edge argument was not valid",7:"Undirected edge argument was not valid",8:"Vertex argument was not valid",9:"Pentagon distortion was encountered",10:"Duplicate input",11:"Cell arguments were not neighbors",12:"Cell arguments had incompatible resolutions",13:"Memory allocation failed",14:"Bounds of provided memory were insufficient",15:"Mode or flags argument was not valid",16:"Index argument was not valid",17:"Base cell number was outside of acceptable range",18:"Child indexing digits invalid",19:"Child indexing digits refer to a deleted subsequence"},At={1e3:"Unknown unit",1001:"Array length out of bounds",1002:"Got unexpected null value for H3 index"};function et(A,e,t){var r=t&&"value"in t,n=new Error((A[e]||"Unknown error")+" (code: "+e+(r?", value: "+t.value:"")+")");return n.code=e,n}function tt(A){if(0!==A)throw function(A,e){return et($e,A,2===arguments.length?{value:e}:{})}(A)}var rt={};[["sizeOfH3Index",Xe],["sizeOfLatLng",Xe],["sizeOfCellBoundary",Xe],["sizeOfGeoLoop",Xe],["sizeOfGeoPolygon",Xe],["sizeOfLinkedGeoPolygon",Xe],["sizeOfCoordIJ",Xe],["readInt64AsDoubleFromPointer",Xe],["isValidCell",Xe,[Xe,Xe]],["isValidIndex",Xe,[Xe,Xe]],["latLngToCell",Xe,[Xe,Xe,Xe,Xe]],["cellToLatLng",Xe,[Xe,Xe,Xe]],["cellToBoundary",Xe,[Xe,Xe,Xe]],["maxGridDiskSize",Xe,[Xe,Xe]],["gridDisk",Xe,[Xe,Xe,Xe,Xe]],["gridDiskDistances",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridRing",Xe,[Xe,Xe,Xe,Xe]],["gridRingUnsafe",Xe,[Xe,Xe,Xe,Xe]],["maxPolygonToCellsSize",Xe,[Xe,Xe,Xe,Xe]],["polygonToCells",Xe,[Xe,Xe,Xe,Xe]],["maxPolygonToCellsSizeExperimental",Xe,[Xe,Xe,Xe,Xe]],["polygonToCellsExperimental",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["cellsToLinkedMultiPolygon",Xe,[Xe,Xe,Xe]],["destroyLinkedMultiPolygon",null,[Xe]],["compactCells",Xe,[Xe,Xe,Xe,Xe]],["uncompactCells",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["uncompactCellsSize",Xe,[Xe,Xe,Xe,Xe,Xe]],["isPentagon",Xe,[Xe,Xe]],["isResClassIII",Xe,[Xe,Xe]],["getBaseCellNumber",Xe,[Xe,Xe]],["getResolution",Xe,[Xe,Xe]],["getIndexDigit",Xe,[Xe,Xe,Xe]],["constructCell",Xe,[Xe,Xe,Xe,Xe]],["maxFaceCount",Xe,[Xe,Xe,Xe]],["getIcosahedronFaces",Xe,[Xe,Xe,Xe]],["cellToParent",Xe,[Xe,Xe,Xe,Xe]],["cellToChildren",Xe,[Xe,Xe,Xe,Xe]],["cellToCenterChild",Xe,[Xe,Xe,Xe,Xe]],["cellToChildrenSize",Xe,[Xe,Xe,Xe,Xe]],["cellToChildPos",Xe,[Xe,Xe,Xe,Xe]],["childPosToCell",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["areNeighborCells",Xe,[Xe,Xe,Xe,Xe,Xe]],["cellsToDirectedEdge",Xe,[Xe,Xe,Xe,Xe,Xe]],["getDirectedEdgeOrigin",Xe,[Xe,Xe,Xe]],["getDirectedEdgeDestination",Xe,[Xe,Xe,Xe]],["isValidDirectedEdge",Xe,[Xe,Xe]],["directedEdgeToCells",Xe,[Xe,Xe,Xe]],["originToDirectedEdges",Xe,[Xe,Xe,Xe]],["directedEdgeToBoundary",Xe,[Xe,Xe,Xe]],["gridDistance",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridPathCells",Xe,[Xe,Xe,Xe,Xe,Xe]],["gridPathCellsSize",Xe,[Xe,Xe,Xe,Xe,Xe]],["cellToLocalIj",Xe,[Xe,Xe,Xe,Xe,Xe,Xe]],["localIjToCell",Xe,[Xe,Xe,Xe,Xe,Xe]],["getHexagonAreaAvgM2",Xe,[Xe,Xe]],["getHexagonAreaAvgKm2",Xe,[Xe,Xe]],["getHexagonEdgeLengthAvgM",Xe,[Xe,Xe]],["getHexagonEdgeLengthAvgKm",Xe,[Xe,Xe]],["greatCircleDistanceM",Xe,[Xe,Xe]],["greatCircleDistanceKm",Xe,[Xe,Xe]],["greatCircleDistanceRads",Xe,[Xe,Xe]],["cellAreaM2",Xe,[Xe,Xe,Xe]],["cellAreaKm2",Xe,[Xe,Xe,Xe]],["cellAreaRads2",Xe,[Xe,Xe,Xe]],["edgeLengthM",Xe,[Xe,Xe,Xe]],["edgeLengthKm",Xe,[Xe,Xe,Xe]],["edgeLengthRads",Xe,[Xe,Xe,Xe]],["getNumCells",Xe,[Xe,Xe]],["getRes0Cells",Xe,[Xe]],["res0CellCount",Xe],["getPentagons",Xe,[Xe,Xe]],["pentagonCount",Xe],["cellToVertex",Xe,[Xe,Xe,Xe,Xe]],["cellToVertexes",Xe,[Xe,Xe,Xe]],["vertexToLatLng",Xe,[Xe,Xe,Xe]],["isValidVertex",Xe,[Xe,Xe]]].forEach(function(A){rt[A[0]]=qe.cwrap.apply(qe,A)});var nt=16,ot=rt.sizeOfH3Index(),it=rt.sizeOfLatLng(),at=rt.sizeOfCellBoundary();rt.sizeOfGeoPolygon(),rt.sizeOfGeoLoop(),rt.sizeOfLinkedGeoPolygon(),rt.sizeOfCoordIJ();var st=/[^0-9a-fA-F]/;function lt(A){if(A>=0)return A.toString(nt);var e=ct(8,(A&=2147483647).toString(nt));return(parseInt(e[0],nt)+8).toString(nt)+e.substring(1)}function ct(A,e){for(var t=A-e.length,r="",n=0;n.85?.9+(i-.85)/.15*.1:.1+(i-.15)/.7*.8;var i;return yt(r[Math.min(23,Math.floor(24*o))])}function xt({coveragePoints:t,visible:r,terrainEnabled:n=!1,brightness:i=.7,basemapMode:a="dark"}){const{current:s}=o(),[l,c]=A.useState(null);A.useEffect(()=>{const A=()=>{var A;const e=null==(A=null==s?void 0:s.getMap)?void 0:A.call(s);e&&!l&&c(e)};A();const e=setInterval(A,50),t=setTimeout(()=>clearInterval(e),5e3);return()=>{clearInterval(e),clearTimeout(t)}},[s,l]);const[u,d]=A.useState(null),[f,g]=A.useState(!1),h=A.useRef({aborted:!1}),m=A.useRef(0),b=A.useRef(a),p=function(e){const[t,r]=A.useState(e);return A.useEffect(()=>{const A=setTimeout(()=>r(e),300);return()=>clearTimeout(A)},[e,300]),t}(t),v=A.useMemo(()=>function(A="dark"){var e;if("light"===A)return vt;const t=I();return 24===t.length&&0!==(null==(e=t[0])?void 0:e[0])?t:pt}(a),[a]);A.useEffect(()=>{if(!p||!Array.isArray(p)||0===p.length)return void queueMicrotask(()=>{d(null),m.current=0});const A=b.current!==a;if(p.length===m.current&&u&&!A)return;m.current=p.length,b.current=a,h.current.aborted=!0,h.current={aborted:!1};const e=h.current;g(!0);const{cells:t,minQuality:r,maxQuality:n}=function(A){const e=new Map;for(const o of A){if("number"!=typeof o.lat||"number"!=typeof o.lon||isNaN(o.lat)||isNaN(o.lon))continue;const A=ft(o.lat,o.lon,8),t=e.get(A),r=o.weight;t?(t.count++,t.qualitySum+=r):e.set(A,{count:1,qualitySum:r})}const t=[];let r=1/0,n=-1/0;for(const[o,i]of e.entries()){const A=i.qualitySum/i.count;t.push({hexId:o,count:i.count,avgQuality:A}),r=Math.min(r,A),n=Math.max(n,A)}return{cells:t,minQuality:t.length>0?r:0,maxQuality:t.length>0?n:0}}(p);if(0===t.length)return d(null),void g(!1);if(t.length<500){const A=function(A,e,t,r){const n=[];for(const o of A){const A=gt(o.hexId).map(([A,e])=>[e,A]);A.push(A[0]);const i=wt(o.avgQuality,e,t,r);n.push({type:"Feature",properties:{color:i,quality:o.avgQuality,count:o.count},geometry:{type:"Polygon",coordinates:[A]}})}return{type:"FeatureCollection",features:n}}(t,r,n,v);return void(e.aborted||(d(A),g(!1)))}return async function(A,e,t,r,n){const o=[];let i=0;for(;i[e,A]);a.push(a[0]);const s=wt(n.avgQuality,e,t,r);o.push({type:"Feature",properties:{color:s,quality:n.avgQuality,count:n.count},geometry:{type:"Polygon",coordinates:[a]}})}irequestAnimationFrame(A))}return{type:"FeatureCollection",features:o}}(t,r,n,v,e).then(A=>{!e.aborted&&A&&d(A)}).finally(()=>{e.aborted||g(!1)}),()=>{e.aborted=!0}},[p,v]),A.useEffect(()=>{if(!l)return;const A=()=>{var A,e;try{const t=l.getLayer(bt),n=l.getSource(mt);if(r&&u&&u.features.length>0){if(n?l.getSource(mt).setData(u):l.addSource(mt,{type:"geojson",data:u}),!t){const t=l.getLayer("topology-weak-edges-native"),r=null==(e=null==(A=l.getStyle())?void 0:A.layers)?void 0:e.find(A=>"symbol"===A.type),n=t?"topology-weak-edges-native":null==r?void 0:r.id;l.addLayer({id:bt,type:"fill",source:mt,paint:{"fill-color":["get","color"],"fill-opacity":i}},n)}}else t&&l.removeLayer(bt),n&&l.removeSource(mt)}catch(t){}};l.isStyleLoaded()?A():l.once("style.load",A)},[l,r,u,n]),A.useEffect(()=>{if(l&&r)try{l.getLayer(bt)&&l.setPaintProperty(bt,"fill-opacity",i)}catch{}},[l,i,r]),A.useEffect(()=>()=>{if(l)try{l.getLayer(bt)&&l.removeLayer(bt),l.getSource(mt)&&l.removeSource(mt)}catch{}},[l]);const y=(null==u?void 0:u.features.length)??0;return y>0&&r?e.jsx("div",{"data-testid":"wardriving-hexlayer-maplibre-active","data-point-count":(null==t?void 0:t.length)||0,"data-cell-count":y,"data-terrain-enabled":n,"data-is-processing":f,style:{display:"none"}}):null}const kt="https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png",Ct="terrarium",Bt="terrain-dem",Mt="hillshade-dem",Dt="terrain-hillshade";function Et({enabled:e,exaggeration:t=4}){const{current:r}=o(),[n,i]=A.useState(null),a=A.useRef(null);return A.useEffect(()=>{const A=()=>{var A;const e=null==(A=null==r?void 0:r.getMap)?void 0:A.call(r);e&&!n&&i(e)};A();const e=setInterval(A,50),t=setTimeout(()=>clearInterval(e),5e3);return()=>{clearInterval(e),clearTimeout(t)}},[r,n]),A.useEffect(()=>{if(!n)return;let A=!0;const e=()=>{var e,t;if(A)try{if(n.getSource(Mt)||n.addSource(Mt,{type:"raster-dem",tiles:[kt],encoding:Ct,tileSize:256,maxzoom:14}),!n.getLayer(Dt)){const A=null==(t=null==(e=n.getStyle())?void 0:e.layers)?void 0:t.find(A=>"symbol"===A.type);n.addLayer({id:Dt,type:"hillshade",source:Mt,paint:{"hillshade-shadow-color":"rgba(10, 10, 10, 0.6)","hillshade-highlight-color":"rgba(245, 240, 230, 0.4)","hillshade-accent-color":"rgba(90, 75, 65, 0.3)","hillshade-illumination-direction":315,"hillshade-exaggeration":.35}},null==A?void 0:A.id)}n.getSource(Bt)||n.addSource(Bt,{type:"raster-dem",tiles:[kt],encoding:Ct,tileSize:256,maxzoom:14})}catch(r){}};return n.isStyleLoaded()?e():(n.once("style.load",e),n.once("load",()=>{A&&!n.getSource(Mt)&&e()})),()=>{A=!1}},[n]),A.useEffect(()=>{if(!n)return;let A=!0,r=!1;const o=()=>{if(A&&n.getSource(Bt))try{e?(n.setCenterClampedToGround(!1),n.setTerrain({source:Bt,exaggeration:t}),n.setMaxPitch(70),!r&&n.getPitch()<30&&!n.isMoving()&&(r=!0,null!==a.current&&clearTimeout(a.current),a.current=window.setTimeout(()=>{a.current=null,A&&!n.isMoving()&&n.getPitch()<30&&n.easeTo({pitch:45,duration:1e3})},200))):(n.setTerrain(null),n.setCenterClampedToGround(!0),n.getPitch()>0&&!n.isMoving()&&n.easeTo({pitch:0,duration:800}),n.setMaxPitch(60))}catch(o){}};if(n.isStyleLoaded()&&n.getSource(Bt))o();else{const A=()=>{n.getSource(Bt)&&o()};n.once("idle",A)}return()=>{A=!1,null!==a.current&&(clearTimeout(a.current),a.current=null)}},[n,e,t]),A.useEffect(()=>()=>{var A;try{(null==(A=null==n?void 0:n.getStyle)?void 0:A.call(n))&&n.isStyleLoaded()&&(n.setTerrain(null),n.getLayer(Dt)&&n.removeLayer(Dt),n.getSource(Mt)&&n.removeSource(Mt),n.getSource(Bt)&&n.removeSource(Bt))}catch{}},[n]),null}function jt(A,e){let t=0;for(let r=0;r0)for(let t=0;t=A.length)return A;const t=[],r=A.length/e;for(let n=0;no.has(A.fromHash)&&o.has(A.toHash));if(0===i.length)return null;const a=function(A,e,t,r){const n=e.length,o=new Map(e.map((A,e)=>[A,e])),i=Array(n).fill(null).map(()=>Array(n).fill(0));for(const a of A){const A=o.get(a.fromHash),e=o.get(a.toHash);if(void 0!==A&&void 0!==e&&A!==e){const n=a.strength*a.certainCount;let o=1;if(t){const A=t.get(a.fromHash),e=t.get(a.toHash);A&&e&&(o=Ft(OA(A[0],A[1],e[0],e[1])/1e3))}let s=1;if(r){const A=[a.fromHash,a.toHash].sort().join("-");s=1-.7*(r.get(A)??0)}const l=.3+.7*(a.symmetryRatio??0),c=Math.pow(n,.7)*Math.pow(o,.3)*s*l;i[A][e]=c,i[e][A]=c}}return i}(i,e,t,r),s=function(A){const e=A.length,t=Array(e).fill(null).map(()=>Array(e).fill(0));for(let r=0;rArray(e).fill(0));for(let a=0;a43758.5453*Math.sin(12.9898*e)%1-.5);Nt(o,t),Qt(o);let i=0;for(let a=0;a<100;a++){const A=St(n,o);Nt(A,t);const e=jt(A,A)/jt(o,A);if(Qt(A),o=A,Math.abs(e-i)<1e-8)return{vector:o,eigenvalue:r-e};i=e}return{vector:o,eigenvalue:r-i}}(s);if(c<.001)return null;const u=[],d=[];for(let f=0;f0&&A.push([A[0][0],A[0][1]]),t=A}return t}function Gt(A,e={}){const t=function(A,e={}){if(A.length<3)return{coordinates:[],valid:!1};const{bandwidth:t=Rt,threshold:n=_t,cellSize:o=Ht}=e,i=function(A,e){let t=1/0,r=-1/0,n=1/0,o=-1/0;for(const[i,a]of A)ir&&(r=i),ao&&(o=a);return t-=e,r+=e,n-=e,o+=e,{minX:t,minY:n,maxX:r,maxY:o,width:r-t,height:o-n}}(A,.02),a=Math.ceil(i.width/(t/2)),s=Math.ceil(i.height/(t/2)),l=Math.min(1,200/Math.max(a,s)),c=Math.max(10,Math.ceil(a*l)),u=Math.max(10,Math.ceil(s*l)),d=A=>A/c*i.width+i.minX,f=A=>A/u*i.height+i.minY,g=t/i.width*c;try{const e=r().x(A=>(A[0]-i.minX)/i.width*c).y(A=>(A[1]-i.minY)/i.height*u).size([c,u]).bandwidth(Math.max(5,g)).cellSize(o)(A);if(0===e.length)return{coordinates:[],valid:!1};const t=Math.max(...e.map(A=>A.value))*n;let a=e[0],s=1/0;for(const A of e){const e=Math.abs(A.value-t);e0){const e=A[0],t=A[A.length-1];e[0]===t[0]&&e[1]===t[1]||A.push([e[0],e[1]])}if(A.length>=4){const t=zt(A);e.push(t)}}e.length>0&&l.push(e)}const h=[];for(const A of l)for(const e of A)h.push(e);return{coordinates:l,valid:l.length>0}}catch(h){return{coordinates:[],valid:!1}}}(A,e);return t.valid&&0!==t.coordinates.length?1===t.coordinates.length?{type:"Polygon",coordinates:t.coordinates[0]}:{type:"MultiPolygon",coordinates:t.coordinates}:null}function Ut(A,e,t){return(e[0]-A[0])*(t[1]-A[1])-(e[1]-A[1])*(t[0]-A[0])}function Ot(A,e,t,r,n){const o=n*n,i=o*n;return[.5*(2*e[0]+(-A[0]+t[0])*n+(2*A[0]-5*e[0]+4*t[0]-r[0])*o+(-A[0]+3*e[0]-3*t[0]+r[0])*i),.5*(2*e[1]+(-A[1]+t[1])*n+(2*A[1]-5*e[1]+4*t[1]-r[1])*o+(-A[1]+3*e[1]-3*t[1]+r[1])*i)]}function Yt(A){let e=function(A){if(A.length<3)return A;const e=[...A].sort((A,e)=>A[0]-e[0]||A[1]-e[1]),t=[];for(const n of e){for(;t.length>=2&&Ut(t[t.length-2],t[t.length-1],n)<=0;)t.pop();t.push(n)}const r=[];for(let n=e.length-1;n>=0;n--){const A=e[n];for(;r.length>=2&&Ut(r[r.length-2],r[r.length-1],A)<=0;)r.pop();r.push(A)}return t.pop(),r.pop(),t.concat(r)}(A);if(e.length<3)return null;e=function(A){if(A.length<3)return A;let e=0,t=0;for(const[r,n]of A)e+=r,t+=n;return e/=A.length,t/=A.length,A.map(([A,r])=>{const n=A-e,o=r-t,i=Math.sqrt(n*n+o*o);if(i<1e-4)return[A,r];const a=(i+.008)/i;return[e+n*a,t+o*a]})}(e);const t=function(A){if(A.length<3)return A;const e=[],t=A.length;for(let r=0;rt?function(A,e,t,r){const n=[];for(const[o,i]of A.communities){const A=[];for(const t of i){const r=e.get(t);r&&A.push([r[1],r[0]])}if(A.length<3)continue;let a=Gt(A,{bandwidth:t,threshold:r});a||(a=Yt(A)),a&&n.push({type:"Feature",properties:{community:o,color:Lt(o),borderColor:It(o),nodeCount:i.length},geometry:a})}return{type:"FeatureCollection",features:n}}(t,r,s,l):{type:"FeatureCollection",features:[]},[t,r,s,l]),d=n?o:0,f={"fill-color":["get","color"],"fill-opacity":d},g={"line-color":["get","borderColor"],"line-width":c,"line-opacity":d};return e.jsxs(i,{id:"mincut-partition",type:"geojson",data:u,children:[e.jsx(a,{id:"mincut-partition-fill",type:"fill",paint:f}),e.jsx(a,{id:"mincut-partition-stroke",type:"line",paint:g})]})}const Wt={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,nodeFilter:"all"},Zt=CA()(BA(A=>({viewState:null,setViewState:e=>A({viewState:e,lastSavedAt:Date.now()}),toggles:Wt,setToggle:(e,t)=>A(A=>({toggles:{...A.toggles,[e]:t},lastSavedAt:Date.now()})),setToggles:e=>A(A=>({toggles:{...A.toggles,...e},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:e=>A({hasAnalyzed:e,lastSavedAt:Date.now()}),lastSavedAt:null,reset:()=>A({viewState:null,toggles:Wt,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",partialize:A=>({viewState:A.viewState,toggles:A.toggles,hasAnalyzed:A.hasAnalyzed,lastSavedAt:A.lastSavedAt})}));function Kt(A,e=!1,t=!1,r=!1,n=.7,o){const i=y(o);return r?n>=.75?i.restBright:i.rest:n>=.85?i.rest:i.restDim}function Jt(A){return[A[1],A[0]]}function qt(A,e,t,r=12){const[n,o]=A,[i,a]=e,s=[];for(let l=0;l<=r;l++){const A=l/r,e=o+(a-o)*A,c=n+(i-n)*A,u=4*t*A*(1-A);s.push([e,c,u])}return s}function Xt(A){return A<.5?4*A*A*A:1-Math.pow(-2*A+2,3)/2}function $t(A,e,t,r,n,o,i,a,s,l,c,u="dark"){const d=WA(),f=[];let g=1/0,h=-1/0;const m=[];for(const p of A){const A=.7*(p.edge.avgConfidence??(e?.7:.5))+p.edge.certainCount/Math.max(i,1)*.3+(e?.5:0);m.push({polyline:p,brightnessScore:A}),g=Math.min(g,A),h=Math.max(h,A)}if(0===m.length)return{type:"FeatureCollection",features:[]};const b=h-g||1;m.sort((A,e)=>A.brightnessScore-e.brightnessScore);for(const{polyline:p,brightnessScore:v}of m){const{from:A,to:i,edge:h}=p,m=t.get(h.key)??0;if(m<=0)continue;const y=a.has(h.key),w=s.has(h.key),x=h.avgConfidence??(e?.7:.5),k=l===h.key,C=c[h.fromHash],B=c[h.toHash],M=(null==C?void 0:C.node_name)||(null==C?void 0:C.name)||h.fromHash.slice(0,8),D=(null==B?void 0:B.node_name)||(null==B?void 0:B.name)||h.toHash.slice(0,8),E=[A[0]+(i[0]-A[0])*m,A[1]+(i[1]-A[1])*m];let j,Q,N,S;if(e){const A=o.get(h.key)??YA(h.certainCount),e=n.get(h.key)??A;j=e+(A-e)*r,k?j=Math.max(1.6*j,4.5):w&&(j*=1.3)}else j=1.5;if(Q=k?d.edges.highlight:Kt(0,h.isDirectPathEdge??!1,y,w,x,u),N=k?d.edges.highlight:h.isDirectPathEdge?d.edges.hoverDirect:y?d.edges.hoverLoop:d.edges.hoverStandard,e){const A=Math.min(1.5*m,1)*d.edgeOpacity;S=w?1.15*A:A}else S=(.3+.3*x)*m;k&&(S=.95);const F=(v-g)/b;f.push({type:"Feature",properties:{key:h.key,baseColor:Q,hoverColor:N,baseWidth:j,baseOpacity:S,brightnessScore:F,isLoopEdge:y,isBackbone:w,isDirectPath:h.isDirectPathEdge??!1,isHubConnection:h.isHubConnection??!1,isZeroHop:h.isZeroHop??!1,isValidated:e,certainCount:h.certainCount,confidence:x,symmetryRatio:h.symmetryRatio??1,dominantDirection:h.dominantDirection??"balanced",fromName:M,toName:D,fromHash:h.fromHash,toHash:h.toHash},geometry:{type:"LineString",coordinates:[Jt(A),Jt(E)]}})}return{type:"FeatureCollection",features:f}}function Ar(A,e){const t=WA(),r=[];let n=0;for(const o of A){const A=e.get(o.hash);A&&A.blendedScore>n&&(n=A.blendedScore)}for(const o of A){const{from:A,to:i,hash:a,neighbor:s,lastHopData:l}=o,c=`neighbor-${a}`,u=(null==l?void 0:l.avgRssi)??s.rssi??null,d=(null==l?void 0:l.avgSnr)??s.snr??null,f=(null==l?void 0:l.count)??0,g=(null==l?void 0:l.confidence)??1,h=e.get(a),m=(null==h?void 0:h.listenerScore)??0,b=(null==h?void 0:h.loudScore)??0,p=(null==h?void 0:h.blendedScore)??0,v=n>0?p/n:0,y=o.rxAdvertCount??0,w=o.txProxyCount??0,x=y+w,k=x>0?(w-y)/x:0,C=qt(A,i,150,8);r.push({type:"Feature",properties:{key:c,hash:a,name:s.node_name||s.name||a.slice(0,8),prefix:a.slice(2,4).toUpperCase(),color:t.neighborColor,width:2.5,opacity:.85,rssi:u,snr:d,packetCount:f,confidence:g,hasAvgRssi:void 0!==(null==l?void 0:l.avgRssi),hasAvgSnr:void 0!==(null==l?void 0:l.avgSnr),isNeighborEdge:!0,listenerScore:m,loudScore:b,blendedScore:p,trafficWeight:v,linkAsymmetry:k,rxAdvertCount:y,txProxyCount:w},geometry:{type:"LineString",coordinates:C}})}return{type:"FeatureCollection",features:r}}function er(A){return A<.5?4*A*A*A:1-Math.pow(-2*A+2,3)/2}function tr(A,e){if(A<240)return.5;if(A<480)return 1;const t=(A-480)/(e-480);return Math.max(0,.33*(1-t))}function rr(A,e,t){const r=t?z(t):null,n=[];for(const o of A){if(r&&o.toUpperCase()===r){t&&n.push(t);continue}const A=e.get(o.toUpperCase());A&&n.push(A)}return n}const nr="edge-blink-source",or="edge-blink-layer",ir=1e3,ar=1e3,sr="node-markers-layer";function lr(A){return A<0||A>=ir?0:1-A/ir}function cr(A){if(A<0)return 0;if(A>=ar)return 0;const e=A/ar;return Math.pow(1-e,3)}function ur(A){return[A[1],A[0]]}const dr=A.memo(function({nodeHash:A,width:t=60,height:r=20,color:n,showArea:o=!0,showTooltip:i=!1,className:a=""}){const s=U(A),l=O(),c=!Y().backgroundLoadComplete||l,u="number"==typeof t?t:60;return e.jsx(aA,{data:s,width:u,height:r,color:n,isLoading:c,className:a})});function fr(A){const e=new Date(1e3*A);return`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}`}function gr({txDelayRec:t,onRemove:r}){const[n,o]=A.useState(!1),i=t.floodFactor??t.txDelayFactor,a=t.directFactor??t.directTxDelayFactor;return e.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[e.jsxs("button",{onClick:async()=>{const A=`set txdelay ${i.toFixed(1)}\nset direct.txdelay ${a.toFixed(1)}`;try{await navigator.clipboard.writeText(A),o(!0),setTimeout(()=>o(!1),1500)}catch(e){const t=document.createElement("textarea");t.value=A,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),o(!0),setTimeout(()=>o(!1),1500)}catch{}document.body.removeChild(t)}},className:"flex items-center gap-2 flex-1 py-1 px-1.5 bg-amber-400/5 hover:bg-amber-400/10 rounded transition-colors group",title:"Click to copy CLI commands",children:[e.jsx(zA,{className:"w-3 h-3 text-amber-400 shrink-0"}),e.jsx("span",{className:"text-text-muted",children:"TxDelay"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-text-muted",children:"F"}),e.jsxs("span",{className:"data-box data-box-compact text-amber-400",children:["×",i.toFixed(1)]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-text-muted",children:"D"}),e.jsxs("span",{className:"data-box data-box-compact text-amber-400",children:["×",a.toFixed(1)]})]})]}),n?e.jsx(DA,{className:"w-3 h-3 text-green-400 ml-auto"}):e.jsx(EA,{className:"w-3 h-3 text-text-muted opacity-0 group-hover:opacity-100 transition-opacity ml-auto"})]}),r&&e.jsx("button",{onClick:r,className:"p-1 text-text-secondary hover:text-red-400 hover:bg-red-500/10 rounded transition-colors",title:"Remove from contacts",children:e.jsx($,{className:"w-3.5 h-3.5"})})]})}function hr({hash:t,hashPrefix:r,name:n,isHub:o,isGateway:i,isBackbone:a,isZeroHop:s,isMobile:l,isRoomServer:c,isStale:u,lastSeenTimestamp:d,centrality:f,affinity:g,meanSnr:h,meanRssi:m,neighbor:b,onRemove:p,txDelayRec:v}){const[y,w]=A.useState(!1),x=s?"Direct":(null==g?void 0:g.typicalHopPosition)?`${g.typicalHopPosition}-hop`:null,k=v&&!v.insufficientData;return e.jsxs("div",{className:"w-[240px] pr-2",children:[e.jsx("div",{className:"text-[14px] font-semibold text-text-primary leading-tight truncate mb-1",children:n}),e.jsxs("div",{className:"flex items-center gap-1 flex-wrap mb-1.5",children:[e.jsx("code",{className:"font-mono text-[10px] text-text-secondary bg-data-box-bg border border-data-box-border px-1 py-0.5 rounded",children:r}),e.jsx("button",{onClick:async()=>{try{await navigator.clipboard.writeText(t),w(!0),setTimeout(()=>w(!1),1500)}catch(A){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();try{document.execCommand("copy"),w(!0),setTimeout(()=>w(!1),1500)}catch{}document.body.removeChild(e)}},className:"p-0.5 hover:bg-subtle-fill-hover rounded transition-colors",title:"Copy full hash",children:y?e.jsx(DA,{className:"w-3 h-3 text-sys-green"}):e.jsx(EA,{className:"w-3 h-3 text-text-secondary"})}),e.jsx(uA,{hash:t,size:"sm"}),x&&e.jsx(V,{color:s?bA.direct:bA.multihop,compact:!0,children:x}),b.is_repeater&&e.jsx(V,{color:pA.repeater,compact:!0,children:"Rptr"}),o&&e.jsx(V,{color:pA.hub,compact:!0,title:"Hub: ≥10% of last-hop traffic",children:"Hub"}),i&&!o&&e.jsx(V,{color:pA.gateway,compact:!0,title:"Gateway: 7-10% of last-hop traffic",children:"Gate"}),a&&e.jsx(V,{color:pA.backbone,compact:!0,title:"Backbone",children:"Bone"}),l&&e.jsx(V,{color:pA.mobile,compact:!0,children:"Mobile"}),c&&e.jsx(V,{color:pA.room,compact:!0,children:"Room"}),u&&d&&e.jsxs(V,{compact:!0,title:"Neighbor not heard in 7+ days",children:["Idle ",fr(d)]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary mb-1.5",children:[e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(L,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsx("span",{className:"font-mono",children:W(b.last_seen)})]}),(null==g?void 0:g.distanceMeters)&&e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(dA,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsx("span",{className:"font-mono font-semibold text-text-primary",children:(C=g.distanceMeters,null===C?"—":C<1e3?`${Math.round(C)}m`:`${(C/1e3).toFixed(1)}km`)})]}),b.latitude&&b.longitude&&0!==b.latitude&&0!==b.longitude&&e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(QA,{className:"w-3 h-3 text-text-muted shrink-0"}),e.jsxs("span",{className:"font-mono text-text-muted",children:[b.latitude.toFixed(2),", ",b.longitude.toFixed(2)]})]})]}),e.jsx("div",{className:"mb-1.5",style:{width:224},children:e.jsx(dr,{nodeHash:t,width:224,height:26,showArea:!0,showTooltip:!0})}),e.jsxs("div",{className:"flex gap-3 text-[10px] mb-1.5",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Packets"}),e.jsx("span",{className:"data-box data-box-compact",children:(null==g?void 0:g.frequency)||0})]}),s&&void 0!==h&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"SNR"}),e.jsxs("span",{className:"data-box data-box-compact",children:[h.toFixed(1)," dB"]})]}),k&&v.networkRole&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Role"}),e.jsx(V,{color:vA[v.networkRole],compact:!0,title:{hub:"Hub: High-connectivity node that bridges many paths",backbone:"Backbone: Critical relay with high traffic",relay:"Relay: Standard forwarding node",edge:"Edge: Peripheral node"}[v.networkRole],children:v.networkRole})]})]}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Adverts"}),e.jsx("span",{className:"data-box data-box-compact",children:b.advert_count||0})]}),s&&void 0!==m&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"RSSI"}),e.jsxs("span",{className:"data-box data-box-compact",children:[Math.round(m)," dBm"]})]}),k&&v.dataConfidence&&e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text-text-muted",children:"Data"}),e.jsx(V,{color:yA[v.dataConfidence],compact:!0,title:{high:"1000+ packets",medium:"500-999 packets",low:"100-499 packets",insufficient:"Insufficient data"}[v.dataConfidence],children:v.dataConfidence})]})]}),!k&&p&&e.jsx("button",{onClick:p,className:"p-1 self-start text-text-secondary hover:text-red-400 hover:bg-red-500/10 rounded transition-colors",title:"Remove from contacts",children:e.jsx($,{className:"w-3.5 h-3.5"})})]}),k&&e.jsx(gr,{txDelayRec:v,onRemove:p})]});var C}const mr="node-markers-native",br="node-markers-layer",pr="node-markers-layer-local",vr="marker-standard",yr="marker-standard-neighbor",wr="marker-hub",xr="marker-hub-neighbor",kr="marker-gateway",Cr="marker-gateway-neighbor",Br="marker-mobile",Mr="marker-mobile-neighbor",Dr="marker-room-server",Er="marker-room-server-neighbor",jr="marker-local",Qr="marker-stale-5day",Nr="marker-stale-10day",Sr="marker-blink-black",Fr="marker-blink-black-local",Pr="marker-blink",Tr="marker-blink-local";function Lr(A){if(!A)return 0;const e=(Date.now()-1e3*A)/864e5;return e>=10?2:e>=5?1:0}function Ir(A){var e;const t=null==(e=A.contact_type)?void 0:e.toLowerCase();return"room server"===t||"room_server"===t||"room"===t||"server"===t}function Rr(A){return A.startsWith("0x")?A.slice(2,4).toUpperCase():A.slice(0,2).toUpperCase()}function _r({neighborsWithLocation:t,localNode:r,localHash:n,zeroHopNeighbors:l,lastHopNeighborMap:c,meshTopology:u,hoveredMarker:d,onMarkerHover:f,getNodeOpacity:g,shouldShowNode:h,onRequestRemove:m,openPopupId:b,onOpenPopup:p,onClosePopup:y,onNodeClick:w,blinkingNodes:x}){const{current:k}=o(),C=A.useRef(!1),[B,M]=A.useState(!1);A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e)return;const t=()=>{try{!function(A){const e=v(),t=(A,e,t=0,r=!1)=>{const n=document.createElement("canvas");n.width=32,n.height=32;const o=n.getContext("2d",r?{colorSpace:"display-p3"}:void 0),i=14-t/2;return o.beginPath(),o.arc(16,16,i,0,2*Math.PI),o.fillStyle=A,o.fill(),e&&t>0&&(o.strokeStyle=e,o.lineWidth=2*t,o.stroke()),o.shadowColor="rgba(0,0,0,0.3)",o.shadowBlur=4,o.shadowOffsetY=2,{data:o.getImageData(0,0,32,32),pixelRatio:2}},r=(A,e=!1)=>{const t=document.createElement("canvas");t.width=48,t.height=48;const r=t.getContext("2d",e?{colorSpace:"display-p3"}:void 0),n=24*.35*2;return r.strokeStyle=A,r.lineWidth=5,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.moveTo(24-n,24),r.lineTo(24,24-n),r.lineTo(40.8,24),r.stroke(),r.beginPath(),r.moveTo(24-.7*n,24),r.lineTo(24-.7*n,35.76),r.lineTo(35.76,35.76),r.lineTo(35.76,24),r.stroke(),r.beginPath(),r.moveTo(20.64,35.76),r.lineTo(20.64,27.36),r.lineTo(27.36,27.36),r.lineTo(27.36,35.76),r.stroke(),{data:r.getImageData(0,0,48,48),pixelRatio:2}},n=(A,e)=>{const t=document.createElement("canvas");t.width=48,t.height=48;const r=t.getContext("2d"),n=24*.35*2;return r.strokeStyle=A,r.lineWidth=5,r.lineCap="round",r.lineJoin="round",e&&(r.fillStyle=e),r.beginPath(),r.roundRect(24-n,24-.6*n,1.6*n,1.2*n,6),e&&r.fill(),r.stroke(),r.beginPath(),r.moveTo(18.96,34.08),r.lineTo(24-.6*n,40.8),r.lineTo(24,34.08),r.stroke(),{data:r.getImageData(0,0,48,48),pixelRatio:2}},o="#00FF00",i={[vr]:t(e.nodeFill),[yr]:t(e.neighborColor),[wr]:t(e.hubColor),[xr]:t(e.neighborColor),[kr]:t(e.gatewayColor),[Cr]:t(e.neighborColor),[Br]:t("transparent",e.mobileColor,2.5),[Mr]:t(e.neighborColor),[Dr]:n(e.roomColor),[Er]:n(e.neighborColor,"#1a1a1c"),[jr]:r(e.localColor),[Qr]:t("#808080"),[Nr]:t("#404040"),[Sr]:t("#000000"),[Fr]:r("#000000"),[Pr]:t(o,void 0,0,!0),[Tr]:r(o,!0)};for(const[a,s]of Object.entries(i))try{A.hasImage(a)&&A.removeImage(a),A.addImage(a,s.data,{pixelRatio:s.pixelRatio})}catch{}}(e),C.current=!0,B||M(!0)}catch(A){}};e.isStyleLoaded()?t():e.once("style.load",t);const r=()=>{e.hasImage(vr)||t()};e.on("styledata",r);const n=()=>{C.current=!1,t()},o=new MutationObserver(A=>{for(const e of A)if("data-theme"===e.attributeName){setTimeout(n,100);break}});o.observe(document.documentElement,{attributes:!0});const i=document.querySelector("[data-basemap]");let a=null;return i&&(a=new MutationObserver(A=>{for(const e of A)if("data-basemap"===e.attributeName){setTimeout(n,100);break}}),a.observe(i,{attributes:!0})),()=>{e.off("styledata",r),o.disconnect(),null==a||a.disconnect()}},[k,B]);const D=A.useMemo(()=>{var A;const e=[],r=[...t].sort(([A,e],[t,r])=>{const n=(A,e)=>{var t;return Ir(e)?5e3:l.has(A)?3e3:u.hubNodes.includes(A)?2e3:(null==(t=u.gatewayNodes)?void 0:t.includes(A))?1e3:0};return n(A,e)-n(t,r)});for(const[t,o]of r){if(!o.latitude||!o.longitude)continue;if(n&&((n.startsWith("0x")?n.slice(2,4).toLowerCase():n.slice(0,2).toLowerCase())===(t.startsWith("0x")?t.slice(2,4).toLowerCase():t.slice(0,2).toLowerCase())||t===n))continue;const r=h(t),i=g(t,r);if(i<=.01)continue;const a=l.has(t),s=u.hubNodes.includes(t),d=(null==(A=u.gatewayNodes)?void 0:A.includes(t))??!1,f=u.mobileNodes.includes(t),m=Ir(o),b=u.centrality.get(t)||0,p=c.get(t),v=o.last_seen||(null==p?void 0:p.lastSeen),y=Lr(v),w=y>0;let x=i;2===y?x=Math.min(i,.25):1===y&&(x=Math.min(i,.5));let k="standard";m?k="roomServer":s?k="hub":d?k="gateway":f&&(k="mobile");const C=u.fullAffinity.get(t),B=u.txDelayRecommendations.get(t);e.push({type:"Feature",geometry:{type:"Point",coordinates:[o.longitude,o.latitude]},properties:{hash:t,name:o.node_name||o.name||"Unknown",hashPrefix:Rr(t),iconType:k,isNeighbor:a,isHub:s,isGateway:d,isMobile:f,isRoomServer:m,isStale:w,staleTier:y,isZeroHop:a,opacity:x,blinkIntensity:0,lastSeenTimestamp:v,centrality:b,neighborJson:JSON.stringify(o),affinityJson:C?JSON.stringify(C):void 0,txDelayRecJson:B?JSON.stringify(B):void 0,meanSnr:(null==p?void 0:p.avgSnr)??void 0,meanRssi:(null==p?void 0:p.avgRssi)??void 0}})}return{type:"FeatureCollection",features:e}},[t,n,l,c,u,g,h]),E=A.useMemo(()=>(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)?{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[r.longitude,r.latitude]},properties:{hash:"local",name:r.name,hashPrefix:n?Rr(n):"",iconType:"local",isNeighbor:!1,isHub:!1,isGateway:!1,isMobile:!1,isRoomServer:!1,isStale:!1,staleTier:0,isZeroHop:!1,opacity:1,blinkIntensity:0,centrality:0}}]}:{type:"FeatureCollection",features:[]},[r,n]),j=A.useCallback(A=>{var e;if(!A.features||0===A.features.length)return;const t=null==(e=A.features[0].properties)?void 0:e.hash;t&&(p&&p(t),w&&"local"!==t&&w(t))},[p,w]),Q=A.useCallback(A=>{var e,t;if(!A.features||0===A.features.length)return;const r=null==(e=null==k?void 0:k.getMap)?void 0:e.call(k);r&&(r.getCanvas().style.cursor="pointer");const n=null==(t=A.features[0].properties)?void 0:t.hash;n&&f(n)},[k,f]),N=A.useCallback(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);e&&(e.getCanvas().style.cursor=""),f(null)},[k,f]);A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e||!B)return;const t=[br,pr];for(const r of t)e.on("click",r,j),e.on("mouseenter",r,Q),e.on("mouseleave",r,N);return()=>{for(const A of t)e.off("click",A,j),e.off("mouseenter",A,Q),e.off("mouseleave",A,N)}},[k,B,j,Q,N]);const S=A.useRef(D),F=A.useRef(E);A.useEffect(()=>{S.current=D,F.current=E},[D,E]),A.useEffect(()=>{var A;const e=null==(A=null==k?void 0:k.getMap)?void 0:A.call(k);if(!e||!B||!x||0===x.size)return;const t=e.getSource(mr),r=e.getSource(`${mr}-local`);if(t||r){if(t){const A=S.current;let e=!1;const r=A.features.map(A=>{const t=x.get(A.properties.hash)??0;return t!==A.properties.blinkIntensity?(e=!0,{...A,properties:{...A.properties,blinkIntensity:t}}):A});e&&t.setData({type:"FeatureCollection",features:r})}if(r&&n){const A=x.get(n)??0,e=F.current;e.features.length>0&&e.features[0].properties.blinkIntensity!==A&&r.setData({type:"FeatureCollection",features:[{...e.features[0],properties:{...e.features[0].properties,blinkIntensity:A}}]})}}},[k,B,x,n]);const P=A.useMemo(()=>{if(!b)return null;if("local"===b&&r)return{longitude:r.longitude,latitude:r.latitude,isLocal:!0,name:r.name,hash:n};const A=D.features.find(A=>A.properties.hash===b);if(!A)return null;const e=A.properties,t=e.txDelayRecJson?JSON.parse(e.txDelayRecJson):void 0;return{longitude:A.geometry.coordinates[0],latitude:A.geometry.coordinates[1],isLocal:!1,hash:e.hash,hashPrefix:e.hashPrefix,name:e.name,isHub:e.isHub,isGateway:e.isGateway,isBackbone:"backbone"===(null==t?void 0:t.networkRole),isZeroHop:e.isZeroHop,isMobile:e.isMobile,isRoomServer:e.isRoomServer,isStale:e.isStale,lastSeenTimestamp:e.lastSeenTimestamp,centrality:e.centrality,neighbor:e.neighborJson?JSON.parse(e.neighborJson):void 0,affinity:e.affinityJson?JSON.parse(e.affinityJson):void 0,txDelayRec:t,meanSnr:e.meanSnr,meanRssi:e.meanRssi}},[b,r,n,D]);if(!B)return null;const T=v(),L=["case",[">",["get","blinkIntensity"],.66],Pr,[">",["get","blinkIntensity"],.33],Sr,["==",["get","staleTier"],2],Nr,["==",["get","staleTier"],1],Qr,["==",["get","iconType"],"roomServer"],["case",["get","isNeighbor"],Er,Dr],["==",["get","iconType"],"hub"],["case",["get","isNeighbor"],xr,wr],["==",["get","iconType"],"gateway"],["case",["get","isNeighbor"],Cr,kr],["==",["get","iconType"],"mobile"],["case",["get","isNeighbor"],Mr,Br],["case",["get","isNeighbor"],yr,vr]],I=["interpolate",["linear"],["zoom"],6,.25,10,1];return e.jsxs(e.Fragment,{children:[e.jsx(i,{id:mr,type:"geojson",data:D,children:e.jsx(a,{id:br,type:"symbol",layout:{"icon-image":L,"icon-size":I,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"symbol-sort-key":["get","opacity"]},paint:{"icon-opacity":["get","opacity"]}})}),e.jsx(i,{id:`${mr}-local`,type:"geojson",data:E,children:e.jsx(a,{id:pr,type:"symbol",layout:{"icon-image":["case",[">",["get","blinkIntensity"],.66],Tr,[">",["get","blinkIntensity"],.33],Fr,jr],"icon-size":I,"icon-allow-overlap":!0,"icon-ignore-placement":!0},paint:{"icon-opacity":1}})}),P&&y&&e.jsx(s,{longitude:P.longitude,latitude:P.latitude,offset:{center:[0,0],top:[0,12],"top-left":[6,12],"top-right":[-6,12],bottom:[0,-12],"bottom-left":[6,-12],"bottom-right":[-6,-12],left:[12,0],right:[-12,0]},maxWidth:"280px",closeOnClick:!0,onClose:y,className:"maplibre-popup",children:P.isLocal?e.jsxs("div",{className:"text-sm",children:[e.jsx("strong",{className:"text-base",children:P.name}),P.hash&&e.jsx("span",{className:"ml-2 font-mono text-xs text-text-muted surface-badge px-1.5 py-0.5 rounded",children:Rr(P.hash)}),e.jsx("br",{}),e.jsx("span",{style:{color:T.localColor},className:"font-medium",children:"This Node (Local)"}),e.jsx("br",{}),r&&e.jsxs("span",{className:"text-xs text-text-muted",children:[r.latitude.toFixed(5),", ",r.longitude.toFixed(5)]})]}):P.neighbor&&P.hash?e.jsx(hr,{hash:P.hash,hashPrefix:P.hashPrefix,name:P.name,isHub:P.isHub,isGateway:P.isGateway,isBackbone:P.isBackbone,isZeroHop:P.isZeroHop,isMobile:P.isMobile,isRoomServer:P.isRoomServer,isStale:P.isStale,lastSeenTimestamp:P.lastSeenTimestamp,centrality:P.centrality,affinity:P.affinity,meanSnr:P.meanSnr,meanRssi:P.meanRssi,neighbor:P.neighbor,txDelayRec:P.txDelayRec,onRemove:m?()=>m(P.hash,P.name):void 0}):null})]})}const Hr=[br,pr];A.createContext(null);const zr="topology-validated-edges-native",Gr="topology-weak-edges-native",Ur="neighbor-edges-native",Or="topology-weak-edges-native",Yr="topology-validated-edges-native",Vr="neighbor-edges-native",Wr={type:"FeatureCollection",features:[]},Zr={"line-cap":"round","line-join":"round"},Kr={"line-color":"transparent","line-width":16,"line-opacity":0};function Jr({showTopology:t,isExiting:r,hoveredEdgeKey:n,highlightedLoopEdges:s,highlightedFocusEdges:l,onEdgeHover:c,onLoopHover:u,loops:d=[],neighborNames:g={},opacityBias:h=.5,widthMultiplier:m=1,trafficFilter:b=0,showNeighborLines:p=!0,disableHover:v=!1}){const{current:y}=o(),w=t||r,x=!0,k=p?"visible":"none",C=v||r,B=A.useRef(null),M=A.useRef(C),D=A.useRef(new Map),E=A.useRef(g),j=A.useRef(u);A.useLayoutEffect(()=>{M.current=C,E.current=g,j.current=u});const Q=A.useMemo(()=>function(A){const e=new Map;for(const t of A)for(const A of t.edgeKeys){const r=e.get(A)??[];r.push(t),e.set(A,r)}return e}(d),[d]);A.useLayoutEffect(()=>{D.current=Q},[Q]);const N=A.useCallback(A=>{var e,t;if(M.current)return;if(!A.features||0===A.features.length)return;const r=A.features[0].properties;if(!(null==r?void 0:r.key))return;const n=r.key;if(n!==B.current){B.current=n;const o=!0===r.isNeighborEdge||"true"===r.isNeighborEdge,i=!0===r.isLoopEdge||"true"===r.isLoopEdge;if(o){const t={key:n,fromName:"Local",toName:r.name,certainCount:Number(r.packetCount)||0,confidence:1,isBackbone:!1,isLoopEdge:!1,isDirectPath:!0,isZeroHop:!0,symmetryRatio:1,dominantDirection:"balanced",isHubConnection:!1};c(n,[A.lngLat.lng,A.lngLat.lat],t),null==(e=j.current)||e.call(j,null)}else if(i&&j.current){const e=D.current.get(n)??[];if(e.length>0){const t=new Set;for(const A of e)for(const e of A.edgeKeys)t.add(e);const r={loops:e,highlightedEdgeKeys:t,hoveredEdgeKey:n,nodeNames:e[0].nodes.map(A=>E.current[A]||A.substring(0,4))};j.current(r,[A.lngLat.lng,A.lngLat.lat]),c(n)}else{const e={key:n,fromName:r.fromName,toName:r.toName,certainCount:Number(r.certainCount),confidence:Number(r.confidence),isBackbone:!0===r.isBackbone||"true"===r.isBackbone,isLoopEdge:!0,isDirectPath:!0===r.isDirectPath||"true"===r.isDirectPath,isZeroHop:!0===r.isZeroHop||"true"===r.isZeroHop,symmetryRatio:Number(r.symmetryRatio),dominantDirection:r.dominantDirection,isHubConnection:!0===r.isHubConnection||"true"===r.isHubConnection};c(n,[A.lngLat.lng,A.lngLat.lat],e)}}else{const e={key:n,fromName:r.fromName,toName:r.toName,certainCount:Number(r.certainCount),confidence:Number(r.confidence),isBackbone:!0===r.isBackbone||"true"===r.isBackbone,isLoopEdge:i,isDirectPath:!0===r.isDirectPath||"true"===r.isDirectPath,isZeroHop:!0===r.isZeroHop||"true"===r.isZeroHop,symmetryRatio:Number(r.symmetryRatio),dominantDirection:r.dominantDirection,isHubConnection:!0===r.isHubConnection||"true"===r.isHubConnection};c(n,[A.lngLat.lng,A.lngLat.lat],e),null==(t=j.current)||t.call(j,null)}}},[c]),S=A.useCallback(()=>{var A;null!==B.current&&(B.current=null,c(null),null==(A=j.current)||A.call(j,null))},[c]);A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e||!w)return;const t="topology-validated-edges-hitarea-native",r=()=>{try{return e.getStyle()&&e.getLayer(t)}catch{return!1}},n=()=>!!r()&&(e.on("mousemove",t,N),e.on("mouseleave",t,S),!0);if(!n()){const A=()=>{n()&&e.off("styledata",A)};return e.on("styledata",A),()=>{try{e.off("styledata",A),r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}}return()=>{try{r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}},[y,w,N,S]),A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e||!p)return;const t="neighbor-edges-hitarea-native",r=()=>{try{return e.getStyle()&&e.getLayer(t)}catch{return!1}},n=()=>!!r()&&(e.on("mousemove",t,N),e.on("mouseleave",t,S),!0);if(!n()){const A=()=>{n()&&e.off("styledata",A)};return e.on("styledata",A),()=>{try{e.off("styledata",A),r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}}return()=>{try{r()&&(e.off("mousemove",t,N),e.off("mouseleave",t,S))}catch{}}},[y,x,p,N,S]),A.useEffect(()=>{var A;const e=null==(A=null==y?void 0:y.getMap)?void 0:A.call(y);if(!e)return;let t=null;const r=(A,t)=>{try{if(e.getLayer(A)&&e.getLayer(t))return e.moveLayer(A,t),!0}catch{}return!1},n=()=>{try{if(!e.getLayer("node-markers-layer"))return;r(Vr,"node-markers-layer"),r("neighbor-edges-hitarea-native",Vr),(r(Yr,"neighbor-edges-hitarea-native")||r(Yr,"node-markers-layer"))&&r("topology-validated-edges-hitarea-native",Yr),r(Or,"topology-validated-edges-hitarea-native")}catch{}},o=()=>{t&&clearTimeout(t),t=setTimeout(n,50)},i=setTimeout(n,100);e.on("styledata",o);const a=A=>{(A.sourceId===zr||A.sourceId===Gr||A.sourceId===Ur)&&o()};return e.on("sourcedata",a),()=>{clearTimeout(i),t&&clearTimeout(t);try{e.off("styledata",o),e.off("sourcedata",a)}catch{}}},[y,w,x,p]);const F=C?null:n,P=function(A,e,t,r,n,o){const i=WA(),a=null!==A,s=n&&n.size>0,l=o&&o.size>0,c=s?Array.from(n):[],u=l?Array.from(o):[],d=e<=0?["get","baseColor"]:["case",[">=",["get","brightnessScore"],1-.5*e],"#FFFFFF",["get","baseColor"]],f=e<=0?1:["max",.1,["+",1,["*",e,3,["-",["get","brightnessScore"],.5]]]],g=s?["in",["get","key"],["literal",c]]:l?["in",["get","key"],["literal",u]]:!!a&&["==",["get","key"],A],h=a||s||l,m=i.edges.hoverLoop??"#A78BFA";return{"line-color":h?["case",g,s?m:l?"#FFD700":["get","hoverColor"],d]:d,"line-width":h?["case",g,["max",["*",["get","baseWidth"],t,1.3],3.5],["*",["get","baseWidth"],t]]:["*",["get","baseWidth"],t],"line-opacity":["case",["<",["get","brightnessScore"],r],0,h?["case",g,["min",["*",["get","baseOpacity"],1.25],1],["*",["get","baseOpacity"],f,.35]]:["*",["get","baseOpacity"],f]]}}(F,h,m,b,C?null:s,l??null),T=function(A){const e=null!==A,{YELLOW:t,GREEN:r,RED:n,GRAY:o}=f,i=["to-number",["get","listenerScore"],0],a=["to-number",["get","loudScore"],0],s=["/",i,["max",["+",i,a],1]],l=["*",["+",.2,["*",["to-number",["get","trafficWeight"],0],.8]],8];return{"line-color":["case",["all",["==",i,0],["==",a,0]],o,[">=",s,.97],r,["<=",s,.03],n,["interpolate",["linear"],s,.03,n,.5,t,.97,r]],"line-width":["interpolate",["linear"],["zoom"],6,e?["case",["==",["get","key"],A],["max",["*",l,.25],1.25],["*",l,.25]]:["*",l,.25],10,e?["case",["==",["get","key"],A],["max",l,5],l]:l],"line-opacity":e?["case",["==",["get","key"],A],1,.35]:.9}}(F);return e.jsxs(e.Fragment,{children:[w&&e.jsx(i,{id:Gr,type:"geojson",data:Wr,children:e.jsx(a,{id:Or,type:"line",paint:P,layout:{...Zr,visibility:k}})}),w&&e.jsxs(i,{id:zr,type:"geojson",data:Wr,children:[e.jsx(a,{id:"topology-validated-edges-hitarea-native",type:"line",paint:Kr,layout:{...Zr,visibility:k}}),e.jsx(a,{id:Yr,type:"line",paint:P,layout:{...Zr,visibility:k}})]}),e.jsxs(i,{id:Ur,type:"geojson",data:Wr,children:[e.jsx(a,{id:"neighbor-edges-hitarea-native",type:"line",paint:Kr,layout:{...Zr,visibility:k}}),e.jsx(a,{id:Vr,type:"line",paint:T,layout:{...Zr,visibility:k}})]})]})}const qr=["topology-validated-edges-hitarea-native","topology-validated-edges-native","topology-weak-edges-native","neighbor-edges-hitarea-native","neighbor-edges-native"];function Xr({targetHash:e,nodeCoordinates:t,onComplete:r}){const{current:n}=o(),i=A.useRef(null);return A.useEffect(()=>{if(!n||!e||e===i.current)return;const A=t.get(e);if(!A)return;const o=n.getMap();o.isMoving()&&o.stop(),i.current=e;const[a,s]=A;n.flyTo({center:[s,a],zoom:10,duration:2500,essential:!0}),setTimeout(()=>{null==r||r()},2600)},[e,t,n,r]),null}function $r({highlightedEdgeKey:e,validatedPolylines:t,weakPolylines:r,onEnsureTopology:n}){const{current:i}=o(),a=A.useRef(null);return A.useEffect(()=>{if(!i||!e)return;if(e===a.current)return;a.current=e,n();const A=t.find(A=>A.edge.key===e)||r.find(A=>A.edge.key===e);if(!A)return;if(i.getMap().isMoving())return;const o=(A.from[0]+A.to[0])/2,s=(A.from[1]+A.to[1])/2,l=i.getZoom(),c=Math.max(l,11);i.easeTo({center:[s,o],zoom:c,duration:500})},[e,t,r,i,n]),null}function An(A,e,t,r=64){const n=[],o=t/6371e3*(180/Math.PI),i=o/Math.cos(e*Math.PI/180);for(let a=0;a<=r;a++){const t=a/r*2*Math.PI,s=A+i*Math.cos(t),l=e+o*Math.sin(t);n.push([s,l])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[n]}}}function en({ghost:t,neighborCoordinates:r,onHighlightedNeighborsChange:n}){const{current:s}=o(),l=A.useRef(null),c=A.useRef(null),u=A.useMemo(()=>t?new Set(t.commonNeighbors):new Set,[t]);A.useEffect(()=>{null==n||n(u)},[u,n]);const d=A.useMemo(()=>{if(!(null==t?void 0:t.commonNeighbors)||t.commonNeighbors.length<2)return 8e3;let A=0;const e=[];for(const n of t.commonNeighbors){const A=r.get(n);A&&e.push(A)}t.estimatedLocation&&e.push([t.estimatedLocation.lat,t.estimatedLocation.lon]);for(let t=0;tA&&(A=n)}return Math.max(A,2e3)},[t,r]),f=A.useMemo(()=>{if(!(null==t?void 0:t.estimatedLocation))return{type:"FeatureCollection",features:[]};const{lat:A,lon:e,uncertaintyM:r}=t.estimatedLocation,n=.5*d,o=r>0?r:2e3;return{type:"FeatureCollection",features:[An(e,A,Math.max(500,Math.min(o,n)))]}},[t,d]);if(A.useEffect(()=>{if(!s)return;const A=s.getMap();if(t&&t.prefix!==c.current){if(c.current=t.prefix,!l.current&&A.getZoom()>3){const e=A.getCenter();l.current={center:[e.lng,e.lat],zoom:A.getZoom(),pitch:A.getPitch(),bearing:A.getBearing()}}const e=[];for(const A of t.commonNeighbors){const t=r.get(A);t&&e.push([t[1],t[0]])}if(t.estimatedLocation&&e.push([t.estimatedLocation.lon,t.estimatedLocation.lat]),e.length>0){const r=()=>{var n;if(A.isMoving())setTimeout(r,100);else if(1===e.length)s.flyTo({center:e[0],zoom:13,duration:1500});else{let A=1/0,r=-1/0,o=1/0,i=-1/0;for(const[t,n]of e)A=Math.min(A,t),r=Math.max(r,t),o=Math.min(o,n),i=Math.max(i,n);if(null==(n=t.estimatedLocation)?void 0:n.uncertaintyM){const e=t.estimatedLocation.uncertaintyM/111e3;A-=e,r+=e,o-=e,i+=e}s.fitBounds([[A,o],[r,i]],{padding:{top:60,bottom:60,left:60,right:60},maxZoom:14,duration:1500})}};setTimeout(r,50)}}if(!t&&null!==c.current&&(c.current=null,l.current)){const e=l.current,t=()=>{A.isMoving()?setTimeout(t,100):(s.flyTo({center:e.center,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,duration:1e3}),l.current=null)};setTimeout(t,50)}},[t,s,r]),!(null==t?void 0:t.estimatedLocation))return null;return e.jsx(i,{id:"ghost-uncertainty-circle",type:"geojson",data:f,children:e.jsx(a,{id:"ghost-uncertainty-fill",type:"fill",paint:{"fill-color":"rgba(167, 139, 250, 0.15)","fill-opacity":.8}})})}!function(A){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A);e&&(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16))}(VA.edges.neighborHover);const tn={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},rn={longitude:0,latitude:0,zoom:2};function nn({data:A}){const t=A.subtitle&&"loop"===A.type,r=A.subtitle&&"loop"!==A.type;return e.jsxs("div",{className:"w-[540px]",children:[e.jsxs("div",{className:"flex items-center justify-between h-5",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[A.title.icon&&e.jsx("span",{className:`${A.title.color} text-base leading-none flex-shrink-0`,children:A.title.icon}),e.jsx("span",{className:`${A.title.color} font-semibold text-[13px] truncate`,children:A.title.text}),r&&e.jsx("span",{className:`${A.subtitle.color} text-[11px] flex-shrink-0`,children:A.subtitle.text})]}),A.badges.length>0&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0 ml-3",children:A.badges.map((A,t)=>e.jsx("span",{className:`${A.color} text-[11px] font-medium`,children:A.text},t))})]}),t&&e.jsx("div",{className:"h-4 mt-0.5 overflow-hidden",children:e.jsx("span",{className:"font-mono text-[10px] text-text-muted truncate block",children:A.subtitle.text})}),e.jsx("div",{className:`flex items-center gap-4 h-4 ${t?"mt-1":"mt-1.5"} text-[11px]`,children:A.stats.map((A,t)=>e.jsxs("span",{className:"whitespace-nowrap",children:[e.jsx("span",{className:`font-mono tabular-nums font-semibold ${A.color??"text-text-primary"}`,children:A.value}),e.jsx("span",{className:"text-text-muted ml-1",children:A.label}),A.unit&&e.jsx("span",{className:"text-text-muted/50 ml-0.5",children:A.unit})]},t))})]})}function on({neighbors:t,localNode:r,localHash:o,onRemoveNode:i,selectedNodeHash:a,onNodeSelected:s,highlightedEdgeKey:f,highlightedGhost:g}){const h=A.useRef(null),b=Z(),p=K(),v=Y(),y=J(),[w,x]=A.useState(!1),k=Zt(A=>A.viewState),C=Zt(A=>A.toggles),B=Zt(A=>A.hasAnalyzed),M=Zt(A=>A.setViewState),D=Zt(A=>A.setToggle),E=Zt(A=>A.setHasAnalyzed),j=q(A=>A.preloadFromNodes),Q=q(A=>A.isLoading),N=q(A=>A.terrainGrid),S=o??y,F=A.useMemo(()=>{const A=[];for(const[,e]of Object.entries(t))e.latitude&&e.longitude&&A.push([e.latitude,e.longitude]);return A},[t]),P=A.useMemo(()=>function(A,e){let t=[...A];if((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&t.push([e.latitude,e.longitude]),0===t.length)return null;if(1===t.length){const[A,e]=t[0];return{longitude:e,latitude:A,zoom:14}}t=function(A,e){if(A.length<=2)return A;let t,r;if((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude))t=e.latitude,r=e.longitude;else{let e=0,n=0;for(const[t,r]of A)e+=t,n+=r;t=e/A.length,r=n/A.length}const n=A.map(([A,e])=>{return{pos:[A,e],dist:(n=t,o=r,i=A,a=e,OA(n,o,i,a)/1e3)};var n,o,i,a});n.sort((A,e)=>A.dist-e.dist);const o=n[Math.floor(n.length/2)].dist,i=Math.max(3*o,50),a=n.filter(A=>A.dist<=i).map(A=>A.pos);return a.length<.5*A.length?A:a}(t,e);let r=1/0,n=-1/0,o=1/0,i=-1/0;for(const[f,g]of t)r=Math.min(r,g),n=Math.max(n,g),o=Math.min(o,f),i=Math.max(i,f);const a=(r+n)/2,s=(o+i)/2,l=i-o,c=n-r,u=Math.max(l,c);let d=16;return u>0&&(d=Math.floor(Math.log2(360/u*1.2)),d=Math.max(1,Math.min(14,d))),d=Math.min(d+1,12),{longitude:a,latitude:s,zoom:d}}(F,r),[F,r]),[T,L]=A.useState(()=>k??P??rn),I=A.useCallback(A=>{L(A),queueMicrotask(()=>M(A))},[M]),U=A.useRef(!!k);A.useEffect(()=>{U.current||!P||k?k&&setTimeout(()=>x(!0),50):(L(P),queueMicrotask(()=>M(P)),U.current=!0,setTimeout(()=>x(!0),50))},[P,k,M]);const[O,V]=A.useState(!1),[W,X]=A.useState(()=>!(C.showTopology&&!v.topologyLoadComplete)&&C.showTopology),[$,eA]=A.useState(C.showNeighborLines),[tA,rA]=A.useState(!1),[oA,iA]=A.useState(C.showMinCut),[aA,sA]=A.useState(ze),[lA,cA]=A.useState(C.show3DTerrain),[uA,dA]=A.useState(C.nodeFilter),fA=A.useCallback(A=>{X(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showTopology",t)),t})},[D]),gA=A.useCallback(A=>{eA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showNeighborLines",t)),t})},[D]),hA=A.useCallback(A=>{iA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("showMinCut",t)),t})},[D]),mA=A.useCallback(A=>{cA(e=>{const t="function"==typeof A?A(e):A;return queueMicrotask(()=>D("show3DTerrain",t)),t})},[D]),bA=A.useCallback(A=>{dA(A),queueMicrotask(()=>D("nodeFilter",A))},[D]),[pA,vA]=A.useState(null),[yA,wA]=A.useState(null),[xA,kA]=A.useState(null),[CA]=A.useState(0),[BA]=A.useState(.5),[MA]=A.useState(0),[DA,EA]=A.useState(null),[jA,QA]=A.useState(""),[NA,SA]=A.useState(!1),[FA,PA]=A.useState(!1),[TA,LA]=A.useState(()=>!(B&&!v.topologyLoadComplete)&&B);A.useEffect(()=>{if(v.topologyLoadComplete)return;const A=B&&!TA,e=C.showTopology&&!W;(A||e)&&queueMicrotask(()=>{A&&E(!1),e&&D("showTopology",!1)})},[B,C.showTopology,v.topologyLoadComplete,TA,W,E,D]);const IA=A.useCallback(A=>{LA(A),queueMicrotask(()=>E(A))},[E]),[RA,_A]=A.useState(null),HA=A.useCallback(A=>_A(A),[]),zA=A.useCallback(()=>_A(null),[]),[,GA]=A.useState(new Set),UA=Me(A=>A.coveragePoints),VA=Me(A=>A.isVisible),WA=Me(A=>A.brightness),KA=Me(A=>A.openModal),JA=Je(A=>A.isEnabled),qA=Je(A=>A.toggle),XA=n(),$A=l(),Ae=A.useRef(!1);A.useEffect(()=>{UA.length>0&&VA&&!Ae.current&&(gA(!1),Ae.current=!0)},[UA.length,VA]);const ee=A.useRef(null);A.useEffect(()=>{if(a&&a!==ee.current){ee.current=a;const A=setTimeout(()=>{_A(a)},1250);return()=>clearTimeout(A)}},[a]);const[te,re]=A.useState(null),[ne,oe]=A.useState(null),ie=A.useCallback((A,e,t)=>{wA(A),A&&e&&t?re({longitude:e[0],latitude:e[1],type:"topology",properties:{key:t.key,fromName:t.fromName,toName:t.toName,certainCount:t.certainCount,confidence:t.confidence,isBackbone:t.isBackbone,isLoopEdge:t.isLoopEdge,isDirectPath:t.isDirectPath,isHubConnection:t.isHubConnection,symmetryRatio:t.symmetryRatio,dominantDirection:t.dominantDirection}}):A||re(null)},[]),le=A.useCallback((A,e)=>{oe(A),A&&re(null)},[]),ce=A.useMemo(()=>{var A;if(!W)return null;if(!pA)return null;if(yA)return null;const e=b.loops;if(0===e.length)return null;const r=function(A,e,t){const r=function(A,e){return e.filter(e=>e.nodes.includes(A)).sort((A,e)=>e.avgCertainCount-A.avgCertainCount)}(A,e),n=new Set,o=[];for(const i of r)for(const A of i.edgeKeys)if(!n.has(A)){n.add(A);const e=t.get(A);o.push({key:A,certainCount:(null==e?void 0:e.certainCount)??0})}return o.sort((A,e)=>e.certainCount-A.certainCount),{loops:r,highlightedEdgeKeys:n,sortedEdges:o}}(pA,e,b.edgeMap);if(0===r.loops.length)return null;const n=r.loops[0].nodes.map(A=>{var e,r;return A===S?"You":(null==(e=t[A])?void 0:e.node_name)||(null==(r=t[A])?void 0:r.name)||A.substring(0,4)});return{loops:r.loops,highlightedEdgeKeys:r.highlightedEdgeKeys,hoveredEdgeKey:(null==(A=r.sortedEdges[0])?void 0:A.key)||"",nodeNames:n}},[W,pA,yA,b.loops,b.edgeMap,t,S]);A.useEffect(()=>{yA||oe(ce)},[ce,yA]);const fe=A.useMemo(()=>{const A={};for(const[e,r]of Object.entries(t))A[e]=r.node_name||r.name||e.substring(0,4);return S&&(A[S]="You"),A},[t,S]),ge=A.useMemo(()=>Object.entries(t).filter(([,A])=>A.latitude&&A.longitude),[t]),he=A.useMemo(()=>{const A=new Map;S&&(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)&&A.set(S,[r.latitude,r.longitude]);for(const[e,t]of ge)t.latitude&&t.longitude&&A.set(e,[t.latitude,t.longitude]);return A},[S,r,ge]),be=A.useMemo(()=>{const A=new Map;for(const e of p)"expired"!==e.status&&A.set(e.hash,{hash:e.hash,prefix:e.prefix,count:e.count,avgRssi:e.avgRssi,avgSnr:e.avgSnr,lastSeen:e.lastSeen,confidence:1,status:e.status});return A},[p]),pe=A.useMemo(()=>{var A,e;const r=new Set;for(const n of be.keys())(null==(A=t[n])?void 0:A.latitude)&&(null==(e=t[n])?void 0:e.longitude)&&r.add(n);return r},[be,t]),ve=A.useMemo(()=>{if(0===pe.size||!S)return new Map;const A=_.getPackets();if(0===A.length)return new Map;const e=z(S);return m(A,pe,e).scores},[pe,S,v.packetCount]),ye=A.useCallback(A=>!!(S&&(A.fromHash===S&&pe.has(A.toHash)||A.toHash===S&&pe.has(A.fromHash))),[S,pe]),we=A.useMemo(()=>{var A,e;if(0===p.length||!S)return[];if(v.backgroundLoadComplete)return[];const r=[];for(const n of p){if("expired"===n.status)continue;if(!(null==(A=t[n.hash])?void 0:A.latitude)||!(null==(e=t[n.hash])?void 0:e.longitude))continue;const o=[S,n.hash].sort(),i=`${o[0]}~${o[1]}`;r.push({fromHash:S,toHash:n.hash,key:i,packetCount:n.count,avgConfidence:1,strength:.8,avgRecency:1,hopDistanceFromLocal:0,isHubConnection:!1,isCertain:!0,certainCount:n.count,isLoopEdge:!1,forwardCount:n.count,reverseCount:0,symmetryRatio:0,dominantDirection:"forward",floodCount:n.count,directCount:0,isDirectPathEdge:!1,isZeroHop:!0,avgRssi:n.avgRssi,avgSnr:n.avgSnr})}return r},[p,S,v.backgroundLoadComplete,t]),xe=A.useMemo(()=>{const A=[];if(we.length>0&&!v.backgroundLoadComplete){for(const e of we){const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A}for(const e of b.validatedEdges){if(ye(e))continue;const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A},[b.validatedEdges,he,ye,we,v.backgroundLoadComplete]),ke=A.useMemo(()=>{const A=[];for(const e of b.weakEdges){if(ye(e))continue;const t=he.get(e.fromHash),r=he.get(e.toHash);t&&r&&A.push({from:t,to:r,edge:e})}return A},[b.weakEdges,he,ye]),Ce=A.useMemo(()=>{if(!(null==r?void 0:r.latitude)||!(null==r?void 0:r.longitude))return[];const A=[],e=[r.latitude,r.longitude],n=new Map;for(const t of b.lastHopNeighbors)n.set(t.hash,t.count);const o=new Map;for(const t of p)o.set(t.hash,t.count);for(const r of pe){const i=t[r];if(!(null==i?void 0:i.latitude)||!(null==i?void 0:i.longitude))continue;const a=o.get(r),s=n.get(r);A.push({from:e,to:[i.latitude,i.longitude],hash:r,neighbor:i,lastHopData:be.get(r)??null,rxAdvertCount:a,txProxyCount:s})}return A},[r,pe,t,be,b.lastHopNeighbors,p]),Be=A.useMemo(()=>new Set(b.loopEdgeKeys),[b.loopEdgeKeys]),De=A.useMemo(()=>new Set(b.backboneEdges),[b.backboneEdges]),Ee=A.useMemo(()=>{if(!xA)return null;const A=b.validatedEdges.filter(A=>A.fromHash===xA||A.toHash===xA);if(0===A.length)return null;const e=[...A].sort((A,e)=>e.certainCount-A.certainCount),t=Math.max(1,Math.ceil(.2*e.length)),r=e.slice(0,t);return new Set(r.map(A=>A.key))},[xA,b.validatedEdges]),je=A.useMemo(()=>{let A=0;if(we.length>0&&!v.backgroundLoadComplete){for(const e of we)e.certainCount>A&&(A=e.certainCount);return A||1}for(const e of b.validatedEdges)e.certainCount>A&&(A=e.certainCount);return A||1},[b.validatedEdges,we,v.backgroundLoadComplete]),Qe=A.useMemo(()=>{if(0===b.validatedEdges.length)return null;const A=new Set;for(const r of b.validatedEdges)A.add(r.fromHash),A.add(r.toHash);const e=Array.from(A).filter(A=>he.has(A)).sort();if(e.length<3)return null;const t=new Map;for(const r of e){const A=he.get(r);A&&t.set(r,A)}return function(A,e,t,r){const n=e.length;if(n<3)return{communities:new Map([[0,e]]),nodePartitions:e.map(A=>({hash:A,community:0,fiedlerValue:0})),numCommunities:1,fiedlerValue:0,isConnected:n<=1};const o=[];let i=1/0;const a=[[e,0]];for(;a.length>0;){const[e,n]=a.shift();if((t?Pt(e,t):0)>20&&n<4&&e.length>=10){const o=Tt(A,e,t,r);if(o){i=Math.min(i,o.fiedlerValue),a.push([o.group0,n+1]),a.push([o.group1,n+1]);continue}}o.push(e)}const s=new Map,l=[],c=new Map;for(let u=0;u{hA(A=>{const e=!A;if(e&&Qe&&h.current){const A=h.current.getMap();if(!A)return e;let t=1/0,r=-1/0,n=1/0,o=-1/0,i=!1;for(const[,e]of Qe.communities)for(const A of e){const e=he.get(A);if(e){const[A,a]=e;n=Math.min(n,A),o=Math.max(o,A),t=Math.min(t,a),r=Math.max(r,a),i=!0}}i&&A.fitBounds([[t,n],[r,o]],{padding:{top:60,bottom:100,left:60,right:320},duration:800,maxZoom:14})}return e})},[Qe,he]),Se=A.useRef(null);A.useLayoutEffect(()=>{var A,e;Se.current=(null==(e=null==(A=h.current)?void 0:A.getMap)?void 0:e.call(A))??null});const Fe=R(),Pe=A.useMemo(()=>_.getPackets(),[Fe]);!function({map:e,nodeCoordinates:t,packets:r,localHash:n,neighbors:o,meshTopology:i,enabled:a=!0}){const s=A.useRef(null),l=e&&"current"in e?e.current:e;A.useEffect(()=>{s.current=l},[l]);const c=A.useRef(!1),u=A.useRef(null),d=A.useRef([]),f=A.useRef(0),g=A.useRef(!1),[h,m]=A.useState(!1),b=A.useRef(null),p=A.useRef([]),v=A.useRef(new Map),y=A.useRef(t);A.useEffect(()=>{y.current=t},[t]),A.useEffect(()=>{v.current=function(A,e){const t=new Map;for(const r of Object.keys(A)){const A=z(r);t.has(A)||t.set(A,r)}if(e){const A=z(e);t.set(A,e)}return t}(o,n)},[o,n]),A.useEffect(()=>{if(!a){b.current&&(clearTimeout(b.current),b.current=null),p.current=[],null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),d.current=[];const A=s.current;if(A&&c.current){const e=A.getSource(nr);e&&e.setData({type:"FeatureCollection",features:[]})}g.current=!1,f.current=0}},[a]),A.useEffect(()=>{const A=l;if(!A)return;let e=null,t=!1;const r=()=>{if(!t&&!c.current)try{A.getLayer(or)&&A.removeLayer(or),A.getSource(nr)&&A.removeSource(nr),A.addSource(nr,{type:"geojson",data:{type:"FeatureCollection",features:[]}});const t=A.getLayer(sr)?sr:void 0;A.addLayer({id:or,type:"line",source:nr,layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":["case",["any",["==",["get","isSpeculative"],!0],["==",["get","isSpeculative"],"true"]],"#8B7BAD","#12A594"],"line-width":["case",["any",["==",["get","isSpeculative"],!0],["==",["get","isSpeculative"],"true"]],1.875,2.5],"line-opacity":["*",["get","opacityMult"],["interpolate",["linear"],["get","intensity"],0,0,.1,.8,.5,1,1,1]]}},t),c.current=!0,m(!0),e&&(clearInterval(e),e=null)}catch{}};return A.isStyleLoaded()&&r(),A.once("style.load",()=>{r()}),c.current||(e=setInterval(()=>{c.current?e&&clearInterval(e):r()},100),setTimeout(()=>{e&&(clearInterval(e),e=null)},5e3)),()=>{t=!0,e&&clearInterval(e),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null);const A=s.current;if(A&&c.current){try{A.getLayer(or)&&A.removeLayer(or),A.getSource(nr)&&A.removeSource(nr)}catch{}c.current=!1,m(!1)}}},[l]);const w=A.useRef(()=>{});A.useEffect(()=>{w.current=()=>{const A=s.current;if(!A)return;const e=A.getSource(nr);if(!e)return;const t=performance.now(),r=d.current,n=[],o=[];for(const i of r){const A=t-i.startTime-i.delay;if(A<(i.isSpeculative?ar:ir)){o.push(i);const e=i.isSpeculative?cr(A):lr(A);e>0&&n.push({type:"Feature",properties:{intensity:e,opacityMult:i.isSpeculative?.5:1,isSpeculative:i.isSpeculative??!1},geometry:{type:"LineString",coordinates:[i.fromCoord,i.toCoord]}})}}e.setData({type:"FeatureCollection",features:n}),d.current=o,o.length>0?u.current=requestAnimationFrame(()=>w.current()):u.current=null}},[]);const x=A.useCallback(()=>{const A=s.current;A&&function(A){if(!A.getLayer(or))return;const e=A.getLayer(sr)?sr:void 0;try{A.moveLayer(or,e)}catch{}}(A),null===u.current&&(u.current=requestAnimationFrame(()=>w.current()))},[]),k=A.useCallback(()=>{if(!s.current||!c.current)return;const A=p.current;if(p.current=[],b.current=null,0===A.length)return;const e=v.current,t=y.current;if(0===e.size)return;const r=performance.now();let o=0,a=!1;const l=new Set;for(const s of A){const A=H(s,n);if(!A||A.original.length<2)continue;const c=A.original;let u=0,f=null;for(let n=0;n0){A.sort((A,e)=>e.confidence-A.confidence);const e=Math.max(1,Math.ceil(.25*A.length)),n=A.slice(0,e),i=o+150*u;for(const{edgeKey:A,otherHash:o}of n){const e=t.get(f),n=t.get(o);d.current.push({edgeKey:A,fromCoord:ur(e),toCoord:ur(n),startTime:r,delay:i,isSpeculative:!0}),l.add(A),a=!0}}}u>0&&(o+=150*u*.5)}a&&x()},[n,i,x]);A.useEffect(()=>{const A=s.current;if(!a)return;if(!A)return;if(!h)return;if(0===r.length)return;const e=Date.now(),t=f.current;if(!g.current){g.current=!0;const A=(e-3e4)/1e3,t=r.filter(e=>(e.timestamp??0)>=A);let n=0;for(const e of r){const A=e.timestamp??0;A>n&&(n=A)}if(f.current=n,t.length>0){t.sort((A,e)=>(A.timestamp??0)-(e.timestamp??0));const A=t.slice(-20);p.current.push(...A),k()}return}const n=r.filter(A=>(A.timestamp??0)>t);if(0===n.length)return;let o=0;for(const r of n){const A=r.timestamp??0;A>o&&(o=A)}f.current=o,p.current.push(...n),b.current&&clearTimeout(b.current),b.current=setTimeout(k,175)},[a,r,k,h]),A.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[])}({map:Se,nodeCoordinates:he,packets:Pe,localHash:S,neighbors:t,meshTopology:b,enabled:JA});const{isExiting:Te,isAnimating:Le,resetAnimationState:Ie}=function({map:e,showTopology:t,validatedPolylines:r,weakPolylines:n,maxCertainCount:o,loopEdgeKeys:i,backboneEdgeKeys:a,highlightedEdgeKey:s,neighbors:l,validatedSourceId:c,weakSourceId:u,neighborPolylines:d=[],showNeighborLines:f=!0,neighborSourceId:g,neighborLinkScores:h=new Map,basemapMode:m}){const b=A.useRef(null);A.useEffect(()=>{const A=e&&"current"in e?e.current:e;b.current=A});const p=A.useRef(new Map),v=A.useRef(1),y=A.useRef(new Map),w=A.useRef(new Map),x=A.useRef(!1),k=A.useRef(null),C=A.useRef(t),B=A.useRef(new Set),M=A.useRef(""),D=A.useRef(new Map),E=A.useRef(""),j=A.useRef(""),Q=A.useRef(""),N=A.useRef(r),S=A.useRef(n),F=A.useRef(o),P=A.useRef(i),T=A.useRef(a),L=A.useRef(s),I=A.useRef(l),R=A.useRef(d),_=A.useRef(f),H=A.useRef(h),z=A.useRef(m);A.useEffect(()=>{N.current=r,S.current=n,F.current=o,P.current=i,T.current=a,L.current=s,I.current=l,R.current=d,_.current=f,H.current=h,z.current=m},[r,n,o,i,a,s,l,d,f,h,m]);const G=A.useCallback((A=!1)=>{var e,t,r,n,o,i,a,s,l,d;const f=b.current;if(!f)return;const h=f.getSource(c),m=f.getSource(u),x=f.getSource(g);if(h){const o=$t(N.current,!0,p.current,v.current,y.current,w.current,F.current,P.current,T.current,L.current,I.current,z.current),i=`${o.features.length}:${(null==(t=null==(e=o.features[0])?void 0:e.properties)?void 0:t.key)??""}:${(null==(n=null==(r=o.features[o.features.length-1])?void 0:r.properties)?void 0:n.key)??""}:${Array.from(p.current.values()).reduce((A,e)=>A+e,0).toFixed(2)}`;(A||i!==E.current)&&(h.setData(o),E.current=i)}if(m){const e=$t(S.current,!1,p.current,v.current,y.current,w.current,F.current,P.current,T.current,L.current,I.current,z.current),t=`${e.features.length}:${(null==(i=null==(o=e.features[0])?void 0:o.properties)?void 0:i.key)??""}:${(null==(s=null==(a=e.features[e.features.length-1])?void 0:a.properties)?void 0:s.key)??""}`;(A||t!==j.current)&&(m.setData(e),j.current=t)}if(x&&R.current.length>0){const e=Ar(R.current,H.current),t=`${e.features.length}:${(null==(d=null==(l=e.features[0])?void 0:l.properties)?void 0:d.hash)??""}`;(A||t!==Q.current)&&(x.setData(e),Q.current=t)}},[c,u,g]),U=A.useCallback(()=>{k.current&&(cancelAnimationFrame(k.current),k.current=null),p.current=new Map,v.current=1,y.current=new Map,w.current=new Map,x.current=!1,B.current=new Set,M.current="",D.current=new Map},[]);A.useEffect(()=>{const A=C.current,e=t;if(C.current=t,b.current){if(k.current&&(cancelAnimationFrame(k.current),k.current=null),A&&!e&&!x.current){x.current=!0;const A=new Map(p.current);let e=null;const t=r=>{e||(e=r);const n=r-e,o=Math.min(n/500,1),i=(a=o,1-Math.pow(1-a,3));var a;for(const[e,t]of A)p.current.set(e,t*(1-i));G(!0),o<1?k.current=requestAnimationFrame(t):(x.current=!1,p.current=new Map,B.current=new Set,M.current="",y.current=new Map,w.current=new Map,k.current=null,G(!0))};k.current=requestAnimationFrame(t)}!A&&e&&(p.current=new Map,B.current=new Set,M.current="")}},[t,G]),A.useEffect(()=>{const A=b.current;if(!t||x.current||!A)return;const e=[...r,...n],o=e.map(A=>`${A.edge.key}:${A.edge.certainCount}`).sort().join(","),i=0===B.current.size,a=""!==M.current&&M.current!==o;if(!i&&!a)return void G();const s=[],l=[];for(const{edge:t}of e)B.current.has(t.key)?l.push(t.key):s.push(t.key);a&&l.length>0&&(y.current=new Map(D.current),v.current=0),w.current=new Map;for(const{edge:t}of r){const A=YA(t.certainCount);w.current.set(t.key,A)}for(const t of s)p.current.set(t,0);for(const t of l)p.current.has(t)||p.current.set(t,1);if(s.length>0||a&&l.length>0){k.current&&(cancelAnimationFrame(k.current),k.current=null);let A=null;const e=Math.min(100,ZA/Math.max(s.length,1)/2),t=r=>{A||(A=r);const n=r-A;for(let A=0;A0){const A=Math.min(n/ZA,1);v.current=Xt(A)}G(!0);const o=ZA+(s.length-1)*e;k.current=n{const A=b.current;if(!A||!g)return;const e=()=>{const e=A.getSource(g);if(!e)return!1;if(d.length>0){const A=Ar(d,h);e.setData(A)}else e.setData({type:"FeatureCollection",features:[]});return!0};if(e())return;const t=r=>{r.sourceId===g&&e()&&A.off("sourcedata",t)};A.on("sourcedata",t);const r=()=>{e()&&(A.off("styledata",r),A.off("sourcedata",t))};return A.on("styledata",r),()=>{A.off("sourcedata",t),A.off("styledata",r)}},[g,d,h]);const O=A.useRef(m);return A.useEffect(()=>{m!==O.current&&(O.current=m,E.current="",j.current="",Q.current="",G(!0))},[m,G]),A.useEffect(()=>()=>{k.current&&(cancelAnimationFrame(k.current),k.current=null)},[]),{isExiting:x.current,isAnimating:null!==k.current,resetAnimationState:U,weightAnimProgress:v.current,animStartWeights:y.current,animTargetWeights:w.current}}({map:Se,showTopology:W,validatedPolylines:xe,weakPolylines:ke,maxCertainCount:je,loopEdgeKeys:Be,backboneEdgeKeys:De,highlightedEdgeKey:f,neighbors:t,validatedSourceId:zr,weakSourceId:Gr,neighborPolylines:Ce,showNeighborLines:$,neighborSourceId:Ur,neighborLinkScores:ve,basemapMode:XA}),Re=A.useMemo(()=>{const A=new Set;for(const e of b.hubNodes){A.add(e);for(const t of b.validatedEdges)t.fromHash===e&&A.add(t.toHash),t.toHash===e&&A.add(t.fromHash)}return A},[b.hubNodes,b.validatedEdges]),_e=A.useMemo(()=>{const A=new Set;if(!o)return A;for(const e of b.validatedEdges)e.fromHash===o&&A.add(e.toHash),e.toHash===o&&A.add(e.fromHash);return A},[o,b.validatedEdges]),{getNodeOpacity:Ge}=function({soloDirect:e,soloHubs:t,neighborHashes:r,hubConnectedNodes:n,directNodeSet:o,localConnectedNodes:i,showTopology:a}){const[s,l]=A.useState(new Map),c=A.useRef(e),u=A.useRef(t),d=A.useRef(new Map),f=A.useRef(null),g=A.useRef(n),h=A.useRef(o),m=A.useRef(i),b=A.useRef(a);return A.useEffect(()=>{g.current=n,h.current=o,m.current=i,b.current=a},[n,o,i,a]),A.useEffect(()=>{const A=c.current,n=u.current,o=e,i=t;if(c.current=e,u.current=t,A===o&&n===i)return;f.current&&(cancelAnimationFrame(f.current),f.current=null);const a=g.current,s=h.current,p=m.current,v=b.current;for(const e of r)d.current.has(e)||d.current.set(e,Math.random());const y=(A,e,t)=>{const r=a.has(A),n=s.has(A),o=v&&p.has(A);return!e&&!t||(e&&t?r||n||o:t?r:!e||n||o)},w=[];for(const e of r){const t=y(e,A,n),r=y(e,o,i);t!==r&&w.push({hash:e,startOpacity:t?1:0,targetOpacity:r?1:0})}if(0===w.length)return;l(A=>{const e=new Map(A);for(const{hash:t,startOpacity:r}of w)e.set(t,r);return e});const x=w;let k=null;const C=A=>{k||(k=A);const e=A-k;let t=!0;l(()=>{const A=new Map;for(const{hash:r,startOpacity:n,targetOpacity:o}of x){const i=250*(d.current.get(r)??0),a=Math.max(0,e-i),s=Math.min(a/500,1),l=n+(o-n)*er(s);A.set(r,l),s<1&&(t=!1)}return A}),e<750&&!t?f.current=requestAnimationFrame(C):(f.current=null,l(new Map))};return f.current=requestAnimationFrame(C),()=>{f.current&&(cancelAnimationFrame(f.current),f.current=null)}},[e,t,r]),{nodeOpacities:s,getNodeOpacity:(A,e)=>s.has(A)?s.get(A):e?1:0}}({soloDirect:"direct"===uA,soloHubs:"hubs"===uA,neighborHashes:ge.map(([A])=>A),hubConnectedNodes:Re,directNodeSet:pe,localConnectedNodes:_e,showTopology:W}),{blinkingNodes:Ue,blinkColor:Oe}=function({neighbors:e,localHash:t,enabled:r=!0}){const[n,o]=A.useState(new Map),i=R(),a=A.useRef(_.getPackets());A.useEffect(()=>{a.current=_.getPackets()},[i]);const s=A.useRef(0),l=A.useRef(null),c=A.useRef(new Map),u=A.useRef(new Map);A.useEffect(()=>{u.current=function(A){const e=new Map;for(const t of Object.keys(A)){const A=z(t);e.has(A)||e.set(A,t)}return e}(e)},[e]);const d=A.useRef(null);return A.useEffect(()=>{d.current=()=>{const A=performance.now(),e=c.current;if(0===e.size)return l.current=null,void o(new Map);const t=new Map,r=[];for(const[n,{startTime:o,staggerDelay:i}]of e){const e=A-o-i;if(e<0);else if(e>=750)r.push(n);else{const A=tr(e,750);A>0&&t.set(n,A)}}for(const n of r)e.delete(n);o(t),e.size>0&&d.current?l.current=requestAnimationFrame(d.current):l.current=null}},[]),A.useEffect(()=>{if(!r)return;const A=a.current;if(0===A.length)return;const e=s.current,n=A.filter(A=>(A.timestamp??0)>e);if(0===e){const e=A.reduce((A,e)=>Math.max(A,e.timestamp??0),0);return void(s.current=e)}if(0===n.length)return;const o=n.reduce((A,e)=>Math.max(A,e.timestamp??0),0);s.current=o;const i=performance.now();let f=0;for(const r of n){const A=H(r,t);if(!A||0===A.original.length)continue;const e=rr(A.original,u.current,t);if(0===e.length)continue;const n=375;for(let t=0;t()=>{null!==l.current&&(cancelAnimationFrame(l.current),l.current=null)},[]),{blinkingNodes:n,blinkColor:"#00FF00"}}({neighbors:t,localHash:o,enabled:JA}),Ye=A.useCallback(A=>{if("all"===uA)return!0;if("direct"===uA)return pe.has(A);if("hubs"===uA){if(b.hubNodes.includes(A))return!0;for(const e of b.validatedEdges){if(e.fromHash===A&&b.hubNodes.includes(e.toHash))return!0;if(e.toHash===A&&b.hubNodes.includes(e.fromHash))return!0}return!1}return!0},[uA,pe,b.hubNodes,b.validatedEdges]),Ve=A.useCallback(()=>{PA(!0),SA(!0)},[]),We=A.useCallback(()=>{TA?fA(A=>!A):Ve()},[TA,Ve]),Ke=A.useCallback(A=>{I(A.viewState),(A.viewState.pitch??0)>10&&!lA&&mA(!0)},[lA]),qe=A.useCallback(()=>{V(A=>{var e,t,r,n,o,i,a;const s=!A,l=null==(r=null==(t=null==(e=h.current)?void 0:e.getContainer())?void 0:t.closest(".map-container-fullscreen, .map-container-16-9"))?void 0:r.parentElement;return s?l&&document.fullscreenEnabled?null==(n=l.requestFullscreen)||n.call(l).catch(()=>{}):l&&document.webkitFullscreenEnabled&&(null==(o=l.webkitRequestFullscreen)||o.call(l)):document.fullscreenElement?null==(i=document.exitFullscreen)||i.call(document).catch(()=>{}):document.webkitFullscreenElement&&(null==(a=document.webkitExitFullscreen)||a.call(document)),s})},[]),Xe=A.useCallback(A=>{bA(A)},[]),$e=A.useCallback(()=>{gA(A=>!A)},[]),At=A.useCallback(()=>{rA(A=>!A)},[]),et=A.useCallback(()=>{mA(A=>{const e=!A;if(h.current){const A=h.current.getMap();A&&A.stop()}if(e&&h.current){const A=h.current.getMap();A&&A.easeTo({pitch:45,duration:1500,easing:A=>1-Math.pow(1-A,3)})}if(!e&&h.current){const A=h.current.getMap();A&&A.easeTo({pitch:0,bearing:0,duration:800,easing:A=>1-Math.pow(1-A,2)})}return e})},[]),tt=A.useCallback(()=>{W||fA(!0)},[W]),rt=A.useCallback((A,e)=>{EA(A),QA(e)},[]),nt=A.useCallback(()=>{DA&&i&&i(DA),EA(null),QA("")},[DA,i]),ot=A.useMemo(()=>[...qr,...Hr],[]),it=A.useRef(!1);A.useEffect(()=>{it.current="ontouchstart"in window||navigator.maxTouchPoints>0},[]);const at=A.useCallback(A=>{A.features&&0!==A.features.length||(it.current&&te&&(re(null),wA(null)),xA&&kA(null))},[te,xA]),st=A.useCallback(A=>{kA(e=>e===A?null:A)},[]),lt=A.useCallback(A=>{var e,t;if(!A.features||0===A.features.length)return;if(A.features.some(A=>{var e,t;return null==(t=null==(e=A.layer)?void 0:e.id)?void 0:t.startsWith("node-markers-")}))return void(yA&&(wA(null),re(null)));const r=A.features.find(A=>{var e;const t=null==(e=A.layer)?void 0:e.id;return(null==t?void 0:t.startsWith("topology-"))||(null==t?void 0:t.startsWith("neighbor-"))});if(!r)return;const n=null==(e=r.layer)?void 0:e.id,o=r.properties;if(!(null==o?void 0:o.key))return;const i=null==n?void 0:n.startsWith("topology-"),a=null==n?void 0:n.startsWith("neighbor-");if(i||a){const e=o.key.replace(/-loop[12]$/,"");wA(e),A.lngLat&&re({longitude:A.lngLat.lng,latitude:A.lngLat.lat,type:i?"topology":"neighbor",properties:o})}try{(null==(t=h.current)?void 0:t.getCanvas())&&(h.current.getCanvas().style.cursor="pointer")}catch{}},[yA]),ct=A.useCallback(()=>{var A;wA(null),re(null);try{(null==(A=h.current)?void 0:A.getCanvas())&&(h.current.getCanvas().style.cursor="")}catch{}},[]),ut=O?"map-container-fullscreen":"map-container-16-9",dt=F.length>0||(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude),ft=!w||!dt,gt=dt;return e.jsxs("div",{className:`relative ${ut}`,role:"application","aria-label":"Mesh network contacts map","aria-describedby":"map-instructions","data-basemap":XA,children:[e.jsx("span",{id:"map-instructions",className:"sr-only",children:"Interactive map showing mesh network contacts. Use mouse or touch to pan and zoom. Press Tab to navigate map controls. Press Escape to exit fullscreen mode."}),ft&&e.jsx("div",{className:"absolute inset-0 z-50 surface-base rounded-2xl flex items-center justify-center","aria-hidden":"true",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 border-2 border-accent-primary border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Loading map..."})]})}),gt&&e.jsx("div",{className:`relative w-full h-full ${O?"":"rounded-[1.125rem] overflow-hidden"} ${ft?"opacity-0":"opacity-100 transition-opacity duration-300"}`,children:e.jsxs(c,{ref:h,...T,onMove:Ke,mapStyle:tn,style:{width:"100%",height:"100%"},attributionControl:!1,interactiveLayerIds:ot,onMouseMove:lt,onMouseLeave:ct,onClick:at,onError:A=>{},onIdle:()=>{if(!N&&!Q&&h.current){const A=h.current.getMap();if(A){const e=Object.values(t).filter(A=>A.latitude&&A.longitude).map(A=>({latitude:A.latitude,longitude:A.longitude}));(null==r?void 0:r.latitude)&&(null==r?void 0:r.longitude)&&e.push({latitude:r.latitude,longitude:r.longitude}),e.length>0&&j(e,A)}}},children:[e.jsx(u,{position:"bottom-right"}),e.jsx(d,{mode:XA}),e.jsx(Et,{enabled:lA,exaggeration:4}),e.jsx(xt,{coveragePoints:UA,visible:UA.length>0&&VA,terrainEnabled:lA,brightness:WA,basemapMode:XA}),e.jsx(Vt,{partition:Qe,nodeCoordinates:he,visible:oA&&TA,opacity:aA.opacity,bandwidth:aA.bandwidth,threshold:aA.threshold,strokeWidth:aA.strokeWidth}),e.jsx(Jr,{showTopology:W,isExiting:Te,hoveredEdgeKey:yA,highlightedLoopEdges:null==ne?void 0:ne.highlightedEdgeKeys,highlightedFocusEdges:Ee,onEdgeHover:ie,onLoopHover:le,loops:b.loops,neighborNames:fe,opacityBias:CA,widthMultiplier:BA,trafficFilter:MA,showNeighborLines:$,disableHover:Le||FA}),a&&e.jsx(Xr,{targetHash:a,nodeCoordinates:he,onComplete:s}),f&&e.jsx($r,{highlightedEdgeKey:f,validatedPolylines:xe,weakPolylines:ke,onEnsureTopology:tt}),e.jsx(en,{ghost:g??null,neighborCoordinates:he,onHighlightedNeighborsChange:GA}),e.jsx(_r,{neighborsWithLocation:ge,localNode:r,localHash:o,zeroHopNeighbors:pe,lastHopNeighborMap:be,meshTopology:b,hoveredMarker:pA,onMarkerHover:vA,getNodeOpacity:Ge,shouldShowNode:Ye,onRequestRemove:i?rt:void 0,openPopupId:RA,onOpenPopup:HA,onClosePopup:zA,onNodeClick:st,blinkingNodes:Ue,blinkColor:Oe})]})}),(()=>{const A=function(A,e,t){if(e){const A=e.loops[0],t=e.loops.length,r=[{label:"hops",value:A.size},{label:"seen",value:A.minCertainCount}],n=[];return A.includesLocal&&n.push({text:"★ Includes your node",color:"text-amber-400"}),t>1&&n.push({text:`+${t-1} overlapping`,color:"text-violet-400/70"}),{type:"loop",title:{icon:"⟳",text:"Redundant Path"+(t>1?"s":""),color:"text-violet-400"},subtitle:{text:`${e.nodeNames.join(" → ")} → ${e.nodeNames[0]}`,color:"text-text-secondary",mono:!0},stats:r,badges:n}}if("neighbor"===(null==A?void 0:A.type)){const e=A.properties,t=[];void 0!==e.rssi&&null!==e.rssi&&t.push({label:"RSSI",value:`${Math.round(e.rssi)} dBm`,unit:e.hasAvgRssi?"avg":void 0}),void 0!==e.snr&&null!==e.snr&&t.push({label:"SNR",value:`${Number(e.snr).toFixed(1)} dB`,unit:e.hasAvgSnr?"avg":void 0});const r=e.listenerScore??0,n=e.loudScore??0,o=r>0||n>0;return o&&(t.push({label:"listener",value:r,color:"text-accent-success"}),t.push({label:"loud",value:n,color:"text-accent-danger"})),void 0===e.packetCount||o||t.push({label:"packets",value:Number(e.packetCount).toLocaleString()}),{type:"neighbor",title:{icon:"●",text:e.prefix?`${e.name} (${e.prefix})`:e.name,color:"text-amber-400"},subtitle:{text:"Direct RF Neighbor",color:"text-amber-400/70"},stats:t,badges:[]}}if("topology"===(null==A?void 0:A.type)){const e=A.properties,r=t>0?Number(e.certainCount)/t:0,n=[{label:"validations",value:e.certainCount},{label:"of max traffic",value:`${Math.round(100*r)}%`},{label:"confidence",value:`${Math.round(100*Number(e.confidence))}%`}];if(void 0!==e.symmetryRatio&&e.symmetryRatio<1){const A="forward"===e.dominantDirection?"→":"reverse"===e.dominantDirection?"←":"↔";n.push({label:"symmetric",value:`${A} ${Math.round(100*e.symmetryRatio)}%`,color:"text-text-muted"})}const o=[];return e.isBackbone&&o.push({text:"Backbone",color:"text-gray-300"}),e.isLoopEdge&&o.push({text:"Redundant",color:"text-violet-400"}),e.isDirectPath&&o.push({text:"Direct Path",color:"text-teal-400"}),{type:"topology",title:{icon:"",text:`${e.fromName} ↔ ${e.toName}`,color:"text-text-primary"},stats:n,badges:o}}return null}(te?{type:te.type,properties:te.properties}:null,ne,je);return A&&e.jsx("div",{className:"map-edge-tooltip",children:e.jsx("div",{className:"map-control-glass map-edge-tooltip-inner",children:e.jsx(nn,{data:A})})})})(),e.jsx(se,{mapRef:h,showNeighborLines:$,onToggleNeighborLines:$e,hasNeighborPolylines:Ce.length>0,nodeFilter:uA,onNodeFilterChange:Xe,hasHubNodes:b.hubNodes.length>0,hasZeroHopNeighbors:pe.size>0,showCoverage:tA,onToggleCoverage:At,showMinCut:oA,onToggleMinCut:Ne,hasMinCutData:TA&&null!==Qe&&Qe.numCommunities>1,show3DTerrain:lA,onToggle3DTerrain:et,basemapMode:XA,onToggleBasemap:$A,isFullscreen:O,onToggleFullscreen:qe}),e.jsxs("div",{className:"map-legend-stack",children:[e.jsx(ue,{isActive:W,hasAnalyzed:TA,isLoading:FA,onClick:We,basemapMode:XA}),e.jsx(de,{isActive:JA,onClick:qA,basemapMode:XA}),e.jsx(me,{isActive:UA.length>0&&VA,onClick:KA,basemapMode:XA}),e.jsx(ae,{showTopology:W,validatedPolylineCount:xe.length,filteredNeighborCount:ge.length,hasLocalNode:!(!(null==r?void 0:r.latitude)||!(null==r?void 0:r.longitude)),meshTopology:b,zeroHopNeighbors:pe,neighborsWithLocation:ge,basemapMode:XA})]}),!O&&e.jsx("div",{className:"glass-card-frame absolute inset-0 pointer-events-none rounded-[1.125rem]",style:{zIndex:9999},"aria-hidden":"true"}),e.jsx(AA,{isOpen:null!==DA,onCancel:()=>EA(null),onConfirm:nt,title:"Remove Node?",message:`Remove "${jA}" from the contacts list? This will hide the node until it sends a new packet.`,confirmLabel:"Remove",cancelLabel:"Cancel",variant:"danger"}),e.jsx(nA,{isOpen:NA,onClose:()=>{SA(!1),PA(!1),Ie(),IA(!0),setTimeout(()=>fA(!0),150)}}),e.jsx(He,{}),e.jsx(Ze,{visible:oA&&TA,onClose:()=>hA(!1),settings:aA,onSettingsChange:sA,partition:Qe,totalNodes:Object.keys(t).length,basemapMode:XA})]})}export{on as default}; diff --git a/frontend/dist/assets/Dashboard-OzXZ0ZNo.js b/frontend/dist/assets/Dashboard-0Mm3av1O.js similarity index 98% rename from frontend/dist/assets/Dashboard-OzXZ0ZNo.js rename to frontend/dist/assets/Dashboard-0Mm3av1O.js index ba612843..5f39f038 100644 --- a/frontend/dist/assets/Dashboard-OzXZ0ZNo.js +++ b/frontend/dist/assets/Dashboard-0Mm3av1O.js @@ -1 +1 @@ -import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as a,u as n,A as i,m as l,U as r,S as o,a as c,b as d,d as m,B as u,e as h,f as x,h as p,j as f,w as g,R as v,L as j,k as b,n as y,o as N,D as w,p as k,q as M,r as C,T as L,t as S,v as _,x as B,y as T,z as R,C as F,E as D,F as H,G as A,H as P,I as $,J as z,K as E,M as I,N as q,O,Q as W}from"./index-_WuEOacy.js";import{C as G,S as V,a as U,P as J,b as K,B as Q}from"./PageLayout-C4LpOVqW.js";import{S as X,M as Y,c as Z}from"./link-scoring-0iadiYJr.js";import{A as ee,E as te,T as se}from"./TimeRangeSelector-DuDkpPdY.js";import{S as ae,A as ne,P as ie,T as le}from"./PacketList-BKgLb74Z.js";import{T as re,a as oe,M as ce,L as de,b as me}from"./LightSparkline-CdHE3FTK.js";import{C as ue,a as he}from"./DataBox-ihLFk7Um.js";import{L as xe,b as pe}from"./vendor-core-D1aqi_5O.js";import{s as fe,Z as ge,C as ve}from"./SignalIndicator-BLxNXr0z.js";import{N as je}from"./NodeInformationCard-Cdt6BsTw.js";import{C as be}from"./chevron-right-DMrbDIps.js";import{H as ye}from"./route-C2p1jL3a.js";import{L as Ne}from"./loader-circle-E8BhCd6Y.js";import{H as we}from"./house-BBcJvvl1.js";import{R as ke,C as Me}from"./Grid-BkE6UU8f.js";import{C as Ce}from"./Card-BSUcfChC.js";import"./deckgl-DTsmDcfs.js";import"./index-DU6QWVJT.js";import"./payload-decoders-BC60O4FC.js";import"./arrow-up-Bfc4DrcP.js";import"./map-pin-yDOfK60-.js";import"./triangle-alert-aHb4szMy.js";import"./activity-CYJ1WO67.js";import"./circle-check-COooBZCl.js";import"./database-DzqBwrzM.js";const Le=a("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Se=a("audio-waveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]),_e=a("ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]),Be=a("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]),Te=a("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]),Re=a("satellite-dish",[["path",{d:"M4 10a7.31 7.31 0 0 0 10 10Z",key:"1fzpp3"}],["path",{d:"m9 15 3-3",key:"88sc13"}],["path",{d:"M17 13a6 6 0 0 0-6-6",key:"15cc6u"}],["path",{d:"M21 13A10 10 0 0 0 11 3",key:"11nf8s"}]]),Fe=a("square-activity",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]]),De=a("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);function He({packets:s,rangeMinutes:a,bucketCount:c}){const d=n(),[m,u]=e.useState(null),[h,x]=e.useState(null),[p,f]=e.useState(null),{buckets:g,activeTypes:v,totalByType:j}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let c=0;ca)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=c.type??c.payload_type??0,d=c.length??c.payload_length??0,m=r[t];m.bytesByType[n]=(m.bytesByType[n]??0)+d,m.totalBytes+=d,o[n]=(o[n]??0)+d}return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),totalByType:o}}(s,a,c),[s,a,c]),b=e.useCallback((e,t,s)=>{u(t),x(s)},[]),y=g.length>0&&v.length>0,N=m?function(e){const t=new Date(1e3*e).getHours();return t>=6&&t<18}(m.start):null,w=m?(k=m.start,new Date(1e3*k).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})):"";var k;const M=null!==p&&null!==N&&p!==N;return N!==p&&f(N),t.jsxs("div",{className:"flex flex-col h-full relative",children:[t.jsx("div",{className:"h-5 relative mb-1 shrink-0",children:m&&null!==h&&t.jsxs("div",{className:"absolute flex items-center gap-1.5 text-sm font-mono tabular-nums -translate-x-1/2",style:{left:`calc(48px + ${100*h}% * (1 - 48px / 100%))`},children:[t.jsx(i,{mode:"wait",children:t.jsx(l.span,{initial:!!M&&{opacity:0,scale:.5,rotate:-90},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.5,rotate:90},transition:{duration:.25,ease:"easeOut"},children:N?t.jsx(X,{className:"w-4 h-4 text-amber-400"}):t.jsx(Y,{className:"w-4 h-4 text-blue-400"})},N?"sun":"moon")}),t.jsx("span",{className:"text-text-secondary",children:w})]})}),t.jsx("div",{className:"flex-1 min-h-0",children:y&&t.jsx(r,{buckets:g,activeTypes:v,gridColor:d.grid,axisTickColor:d.axisTick,onHover:b})}),t.jsx("div",{className:"pt-2 px-1 pb-2 shrink-0",children:y&&t.jsx(o,{activeTypes:v,totalByType:j})})]})}const Ae=e.memo(function({buckets:s,activeTypes:a}){const n=e.useRef(null),i=e.useRef(s),l=e.useRef(a);i.current=s,l.current=a;const r=e.useMemo(()=>[s.map(e=>e.start),s.map(()=>1)],[s]);return e.useEffect(()=>{if(!n.current||0===s.length)return;const e=n.current,t=e.getBoundingClientRect(),a=Math.floor(t.width)||200,o=Math.floor(t.height)||60,u=new c({width:a,height:o,padding:[0,0,0,0],cursor:{show:!1},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],legend:{show:!1},hooks:{draw:[e=>{const t=e.ctx,{left:s,top:a,width:n,height:r}=e.bbox;!function(e,t,s,a,n,i,l){if(0===t.length)return;const r=function(e,t,s){var a,n;if(e.length<=s)return e;const i=e.length/s,l=[];for(let r=0;r0&&(d.bytesByType[s]=(d.bytesByType[s]??0)+t)}}l.push(d)}return l}(t,s,m.statsCard),o=r.length,c=i/o,u=r.map(e=>e.totalBytes).filter(e=>e>0);if(0===u.length)return;const h=Math.max(...u),x=Math.min(...u),p=h-x;for(let m=0;m{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&u.setSize({width:Math.floor(t.width),height:Math.floor(t.height)})});return h.observe(e),()=>{h.disconnect(),u.destroy()}},[r,s.length]),0===s.length?t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})}):t.jsx("div",{ref:n,className:"w-full h-full"})});function Pe({value:s,receivedCount:a,packets:n,rangeMinutes:i,bucketCount:l,timeRangeLabel:r,icon:o,isLoaded:c=!0}){const{buckets:d,activeTypes:m,ratePerHour:h}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let m=0;ma)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=m.type??m.payload_type??0,d=m.length??m.payload_length??0,u=r[t];u.bytesByType[n]=(u.bytesByType[n]??0)+d,u.totalBytes+=d,o[n]=(o[n]??0)+d,c++}const d=t/60;return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),ratePerHour:d>0?Math.round(c/d):0}}(n,i,l),[n,i,l]),x=a>0?(s/a*100).toFixed(1):null;return c?t.jsxs("div",{className:"data-card flex flex-col relative",children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-2 sm:mb-3",children:[o&&t.jsx("span",{className:"icon-sm text-icon-card-title",children:o}),t.jsx("span",{className:"type-micro",children:"FORWARDED"}),r&&t.jsx(u,{color:"zinc",className:"hidden sm:inline-flex",children:r})]}),t.jsx("div",{className:"type-data-xl text-text-primary",children:t.jsx(ee,{value:s,className:"font-mono tabular-nums",priority:"high"})}),t.jsx("div",{className:"flex-1 mt-1 overflow-hidden min-h-[40px] sm:min-h-[60px]",children:m.length>0?t.jsx(Ae,{buckets:d,activeTypes:m}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})})}),t.jsx("div",{className:"pt-1.5 sm:pt-2 mt-1",children:t.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Rate"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[h,"/hr"]})]}),null!==x&&t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Ratio"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[x,"%"]})]})]})})]}):t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})})}function $e({value:s,receivedCount:a,packets:n,rangeMinutes:i,bucketCount:l,timeRangeLabel:r,icon:o,isLoaded:c=!0}){const{buckets:d,activeTypes:m,ratePerHour:h}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let m=0;ma)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=m.type??m.payload_type??0,d=m.length??m.payload_length??0,u=r[t];u.bytesByType[n]=(u.bytesByType[n]??0)+d,u.totalBytes+=d,o[n]=(o[n]??0)+d,c++}const d=t/60;return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),ratePerHour:d>0?Math.round(c/d):0}}(n,i,l),[n,i,l]),x=a>0?(s/a*100).toFixed(1):null;return c?t.jsxs("div",{className:"data-card flex flex-col relative",children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-2 sm:mb-3",children:[o&&t.jsx("span",{className:"icon-sm text-icon-card-title",children:o}),t.jsx("span",{className:"type-micro",children:"DROPPED"}),r&&t.jsx(u,{color:"zinc",className:"hidden sm:inline-flex",children:r})]}),t.jsx("div",{className:"type-data-xl text-text-primary",children:t.jsx(ee,{value:s,className:"font-mono tabular-nums",priority:"high"})}),t.jsx("div",{className:"flex-1 mt-1 overflow-hidden min-h-[40px] sm:min-h-[60px]",children:m.length>0?t.jsx(Ae,{buckets:d,activeTypes:m}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})})}),t.jsx("div",{className:"pt-1.5 sm:pt-2 mt-1",children:t.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Rate"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[h,"/hr"]})]}),null!==x&&t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Drop %"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[x,"%"]})]})]})})]}):t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})})}const ze={",":"punc",".":"punc-period",":":"punc-colon","/":"punc-slash"},Ee=/([,\.:\/])/g,Ie=e.memo(function({children:s,className:a="",as:n="span"}){const i=e.useMemo(()=>{let e;return e="number"==typeof s?s.toLocaleString():Array.isArray(s)?s.join(""):String(s??""),Ee.test(e)?(Ee.lastIndex=0,e.split(Ee).map((e,s)=>{const a=ze[e];return a?t.jsx("span",{className:a,children:e},s):e})):e},[s]);return t.jsx(n,{className:`data-tight ${a}`.trim(),children:i})}),qe=.2;function Oe(e,t=1){return Math.floor(5*t*e)}function We(e){const t=Math.round(e/qe)*qe;return Math.max(0,Math.min(5,t))}function Ge({stats:s,receivedBuckets:a,droppedBuckets:n,forwardedBuckets:i,bucketDurationSeconds:l,timeRangeLabel:r,isLoaded:o=!0}){var c,d,m,h;const[x,p]=e.useState(!1);if(!o)return t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})});const f=function(e,t,s,a,n){var i,l;const r=e=>(null==e?void 0:e.reduce((e,t)=>e+t.count,0))??0,o=r(t),c=r(s),d=r(a),m=o||(null==e?void 0:e.rx_count)||1,u=c||(null==e?void 0:e.dropped_count)||0,h=m>0?u/(m+u)*100:0;let x=0;if((null==a?void 0:a.length)&&n)x=100*d/(a.length*n*1e3)*100;else if(e){const t=1e3*(e.uptime_seconds||1);x=(e.total_airtime_ms||e.airtime_used_ms||0)/t*100}const p=(null==e?void 0:e.neighbors)??{},f=Object.values(p).filter(e=>e.zero_hop).length;let g=1;h<3?g-=qe:h>15?g+=.4:h>10&&(g+=qe),x>5&&(g+=qe),f>10&&(g+=qe);const v=We(g),j=We(.28*v),b=Oe(v),y=Oe(j),N=Oe((null==(l=null==(i=null==e?void 0:e.config)?void 0:i.delays)?void 0:l.tx_delay_factor)??1);return{floodFactor:v,directFactor:j,floodSlots:b,directSlots:y,adjustment:b>N?"increase":b{const e=`set txdelay ${f.floodFactor.toFixed(1)}\nset direct.txdelay ${f.directFactor.toFixed(1)}`;try{await navigator.clipboard.writeText(e),p(!0),setTimeout(()=>p(!1),1500)}catch(t){const s=document.createElement("textarea");s.value=e,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select();try{document.execCommand("copy"),p(!0),setTimeout(()=>p(!1),1500)}catch{}document.body.removeChild(s)}},className:"flex gap-3 mb-2 sm:mb-3 w-full text-left hover:bg-white/[0.02] radius-inner transition-base p-1 -m-1 group",title:"Click to copy CLI commands",children:[t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("span",{className:"type-data-xl text-text-primary",children:t.jsxs(Ie,{children:["×",f.floodFactor.toFixed(1)]})}),t.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide mt-0.5 sm:mt-1",children:"Flood"})]}),t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("span",{className:"type-data-xl text-accent-primary",children:t.jsxs(Ie,{children:["×",f.directFactor.toFixed(1)]})}),t.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide mt-0.5 sm:mt-1",children:"Direct"})]}),t.jsx("div",{className:"flex items-center self-center opacity-0 group-hover:opacity-100 transition-opacity",children:x?t.jsx(ue,{className:"w-4 h-4 text-green-400"}):t.jsx(he,{className:"w-4 h-4 text-text-muted"})})]}),t.jsx("div",{className:"flex-1 py-2",children:t.jsxs("div",{className:"flex gap-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"data-box-label",children:"Dupe"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left "+(f.duplicateRate>10?"text-accent-warning":""),children:[f.duplicateRate.toFixed(1),"%"]})]}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"data-box-label",children:"TX Util"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[f.txUtilization.toFixed(2),"%"]})]})]})}),t.jsxs("div",{className:"pt-2 mt-2",children:[t.jsx("div",{className:"data-box-label",children:"Current"}),t.jsx("div",{className:"flex gap-2",children:null!==g?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"data-box",children:["×",g.toFixed(2)]}),t.jsxs("div",{className:"data-box",style:{color:"var(--accent-primary)"},children:["×",(null==v?void 0:v.toFixed(2))??"—"]})]}):t.jsx("span",{className:"text-sm text-text-muted",children:"No config"})})]})]})}function Ve(){const s=h(),a=x(),n=p(),i=f(),[l,r]=e.useState([]);e.useEffect(()=>{const e=g.subscribe(e=>{r(e)});return r(g.getPendingPackets()),e},[]);const o=e.useMemo(()=>{const e=s.length<=100?s:s.slice(-100),t=new Set(e.map(e=>e.packet_hash));return[...l.filter(e=>!t.has(e.packet.packet_hash)).map(e=>({...e.packet,isPending:!0})),...e].sort((e,t)=>(t.timestamp??0)-(e.timestamp??0))},[s,l]),c=null==i?void 0:i.local_hash,d=null==i?void 0:i.neighbors;return t.jsxs("div",{className:"chart-container h-full flex flex-col !overflow-visible",children:[t.jsxs("div",{className:"chart-header",children:[t.jsxs("div",{className:"chart-title",children:[t.jsx(v,{className:"chart-title-icon"}),"Recent Packets"]}),t.jsxs("div",{className:"flex items-center gap-3",children:[n&&t.jsx(j,{showLabel:!0}),t.jsxs(xe,{to:"/packets",className:"pill-subtle",children:["View all ",t.jsx(ne,{className:"w-3 h-3"})]})]})]}),t.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-1",children:t.jsx(ie,{packets:o,allPackets:s,localHash:c,neighbors:d,loading:a,maxPackets:25,showPagination:!1,flashNewest:!0,emptyMessage:"No packets received",footerAction:t.jsxs(xe,{to:"/packets",className:"pill-subtle",children:["View all ",t.jsx(ne,{className:"w-3 h-3"})]})})})]})}const Ue={stable:"M5 12h14",up:"M5 15l7-7 7 7",down:"M19 9l-7 7-7-7"};function Je({trend:e}){return t.jsx("span",{className:`mini-widget-trend ${e}`,children:t.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:Ue[e]})})})}function Ke(){return t.jsx("div",{className:"mini-widget-loading",children:t.jsx("div",{className:"mini-widget-loading-spinner"})})}function Qe({message:e}){return t.jsx("div",{className:"mini-widget-error",children:t.jsx("span",{title:e,children:"No data"})})}function Xe({title:e,icon:s,value:a,unit:n,valueSize:i="md",status:l,subtitle:r,trend:o,children:c,isLoading:d=!1,error:m,className:u="",onClick:h}){const x=["mini-widget-value","lg"===i&&"mini-widget-value-lg","sm"===i&&"mini-widget-value-sm"].filter(Boolean).join(" "),p=["mini-widget",h&&"cursor-pointer",u].filter(Boolean).join(" ");return t.jsxs("div",{className:p,onClick:h,role:h?"button":void 0,children:[t.jsxs("div",{className:"mini-widget-header",children:[s,t.jsx("span",{className:"mini-widget-title",children:e}),l&&"unknown"!==l&&t.jsx("div",{className:`mini-widget-status-dot ${l}`}),o&&t.jsx(Je,{trend:o})]}),d?t.jsx(Ke,{}):m?t.jsx(Qe,{message:m}):t.jsxs(t.Fragment,{children:[void 0!==a&&t.jsxs("div",{className:x,children:["number"==typeof a?t.jsx(ee,{value:a,className:"font-mono tabular-nums",priority:"medium",format:Number.isInteger(a)?void 0:{minimumFractionDigits:1,maximumFractionDigits:1}}):t.jsx(Ie,{children:a}),n&&t.jsx("span",{className:"mini-widget-unit",children:n})]}),r&&t.jsx("div",{className:"mini-widget-subtitle",children:r}),c]})]})}const Ye={DELTA_CRITICAL:10,SLOPE_CRITICAL:4,JITTER_CRITICAL:6,DELTA_WARNING:5,SLOPE_WARNING:2,JITTER_WARNING:4},Ze={baselineMedian:null,baselineP10:null,baselineP90:null,currentMedian:null,currentSampleCount:0,delta:0,slope:0,jitter:0,penalty:0,penaltyReason:null,computedAt:0,isReliable:!1};function et(e,t){if(0===e.length)return null;const s=[...e].sort((e,t)=>e-t),a=t/100*(s.length-1),n=Math.floor(a),i=Math.ceil(a);return n===i?s[n]:s[n]+(s[i]-s[n])*(a-n)}function tt(e){return et(e,50)}function st(e){if(!e)return[];try{const t=JSON.parse(e);if(Array.isArray(t))return t.map(Number).filter(e=>!isNaN(e))}catch{}return[]}function at(e){return null!=e&&0!==e&&!Object.is(e,-0)&&!(e>-50||e<-130)}function nt(e,t,s=2,a=!1){if(null===t)return"stable";const n=e-t;return(0!==t?100*Math.abs(n/t):Math.abs(n))0?"up":"down":n>0?"down":"up"}const it={lbtStats:null,noiseFloor:null,sparklineNoiseFloor:[],linkQuality:null,channelHealth:null,nfTrend:Ze,radioConfig:null,trends:null,stats:null,recentPackets:[],quickNeighbors:[],isLoading:!0,error:null,refresh:async()=>{}},lt=e.createContext(it);function rt({children:s}){var a;const n=f(),i=h(),l=b(),r=y(),o=N(),c=w[o],d=Math.max(1,c.minutes/60),m=null===n,u=e.useMemo(()=>function(e,t){const s=3600*t,a=Math.floor(Date.now()/1e3)-s,n=e.filter(e=>e.timestamp>=a&&void 0!==e.lbt_attempts&&e.lbt_attempts>0),i=n.length,l=n.filter(e=>(e.lbt_attempts??0)>1).length,r=i>0?l/i*100:0,o=n.filter(e=>(e.lbt_attempts??0)>1),c=o.length>0?o.reduce((e,t)=>e+(t.lbt_attempts??0),0)/o.length:0,d=n.filter(e=>(e.lbt_attempts??0)>=5).length,m=i>0?d/i*100:0,u=[];for(const b of n){const e=st(b.lbt_backoff_delays_ms);u.push(...e)}const h=u.reduce((e,t)=>e+t,0),x=u.length>0?h/u.length:0,p=u.length>0?Math.min(...u):0,f=u.length>0?Math.max(...u):0,g=s/24,v=[],j=[];for(let b=0;b<24;b++){const e=a+b*g,t=e+g,s=n.filter(s=>s.timestamp>=e&&s.timestamp(e.lbt_attempts??0)>1).length,l=s.length>0?i/s.length*100:0,r=[];for(const a of s){const e=st(a.lbt_backoff_delays_ms);r.push(...e)}const o=r.length>0?r.reduce((e,t)=>e+t,0)/r.length:0;if(v.push(o),0===s.length)j.push(0);else{const e=s.filter(e=>(e.lbt_attempts??0)>=5).length,t=r.length>0?Math.max(...r):0,a=Math.min(s.length/5,1),n=.15,i=Math.log(1+l*n)/Math.log(1+100*n)*40,c=e/s.length*100,d=Math.min(.5*c,25);let m=0;o>100&&(m=Math.min(8*Math.log10(o/100),15));let u=0;t>500&&o>0&&t>2*o&&(u=Math.min((t-500)/200,5));const h=i+d+m+u;j.push(Math.min(h*a,85))}}return{totalPacketsWithLBT:i,packetsWithRetries:l,retryRate:r,avgRetries:c,channelBusyCount:d,channelBusyRate:m,avgBackoffMs:x,minBackoffMs:p,maxBackoffMs:f,totalBackoffMs:h,sparklineBackoff:v,sparklineCollisionRisk:j,windowHours:t,packetCount:e.length}}(i,d),[i,d]),x=(null==n?void 0:n.noise_floor_dbm)??null,p=e.useMemo(()=>at(x)?x:null,[x]),g=e.useMemo(()=>{var e;const t=null==(e=null==n?void 0:n.config)?void 0:e.radio;return t?{sf:t.spreading_factor??7,bwHz:t.bandwidth??125e3}:null},[null==(a=null==n?void 0:n.config)?void 0:a.radio]),[v,j]=e.useState([]),M=e.useRef({time:0,hours:0});e.useEffect(()=>{const e=async()=>{var e;const t=Date.now(),s=Math.ceil(d);if(0===M.current.time||M.current.hours!==s||t-M.current.time>=6e4){M.current={time:t,hours:s};try{const t=await k(Math.max(s,24));t.success&&(null==(e=t.data)?void 0:e.history)&&j(t.data.history)}catch{}}};e();const t=setInterval(e,6e4);return()=>clearInterval(t)},[d]);const C=e.useMemo(()=>function(e,t){if(0===e.length)return[];const s=e.reduce((e,t)=>Math.max(e,t.timestamp),0);if(0===s)return[];const a=3600*t,n=s-a,i=a/24,l=[];for(let r=0;r<24;r++){const t=n+r*i,s=t+i,a=e.filter(e=>e.timestamp>=t&&e.timestamp0){const e=a.reduce((e,t)=>e+t.noise_floor_dbm,0)/a.length;l.push(e)}else l.push(l.length>0?l[l.length-1]:-100)}return l}(v,d),[v,d]),L=null==n?void 0:n.neighbors,S=e.useMemo(()=>{const e=L??{};return Object.fromEntries(Object.entries(e).filter(([e])=>!r.has(e)))},[L,r]),_=e.useMemo(()=>l.filter(e=>!r.has(e.hash)),[l,r]),B=e.useMemo(()=>function(e){if(0===e.length)return{...Ze,computedAt:Math.floor(Date.now()/1e3)};const t=Math.floor(Date.now()/1e3),s=e.filter(e=>Number.isFinite(e)),a=e.length>0?[e[e.length-1]]:[],n=e.slice(-4).filter(e=>Number.isFinite(e)),i=tt(s),l=et(s,10),r=et(s,90),o=tt(a),c=null!==o&&null!==l?o-l:0,d=function(e){if(e.length<2)return 0;const t=e.length;let s=0,a=0,n=0,i=0;const l=e[0].timestamp;for(const o of e){const e=(o.timestamp-l)/3600,t=o.value;s+=e,a+=t,n+=e*t,i+=e*e}const r=t*i-s*s;return Math.abs(r)<1e-4?0:(t*n-s*a)/r}(n.map((e,s)=>({timestamp:t-3600*(n.length-1-s),value:e}))),m=function(e){if(e.length<2)return 0;const t=e.reduce((e,t)=>e+t,0)/e.length,s=e.map(e=>Math.pow(e-t,2)).reduce((e,t)=>e+t,0)/e.length;return Math.sqrt(s)}(n),u=s.length>=12,[h,x]=u?function(e,t,s){const a=Ye;return e>=a.DELTA_CRITICAL?[2,`Noise floor ${e.toFixed(1)} dB above baseline`]:t>=a.SLOPE_CRITICAL?[2,`Noise floor rising ${t.toFixed(1)} dB/hour`]:s>=a.JITTER_CRITICAL?[2,`Noise floor unstable (±${s.toFixed(1)} dB)`]:e>=a.DELTA_WARNING?[1,`Noise floor ${e.toFixed(1)} dB above baseline`]:t>=a.SLOPE_WARNING?[1,`Noise floor rising ${t.toFixed(1)} dB/hour`]:s>=a.JITTER_WARNING?[1,`Noise floor variable (±${s.toFixed(1)} dB)`]:[0,null]}(c,d,m):[0,null];return{baselineMedian:i,baselineP10:l,baselineP90:r,currentMedian:o,currentSampleCount:a.length,delta:c,slope:d,jitter:m,penalty:h,penaltyReason:x,computedAt:t,isReliable:u}}(C),[C]),T=e.useMemo(()=>function(e,t,s){if(0===e.length)return{neighbors:[],networkScore:0,neighborCount:0,bestLink:null,worstLink:null};const a=e.map(e=>{const a=function(e,t,s){const a=fe(e,t,s,0);if(a)switch(a.finalGrade){case"excellent":return 100;case"good":return 80;case"fair":return 60;case"poor":return 40;case"critical":return 20}const n=void 0===e?50:e>=10?100:e>=5?80:e>=0?60:e>=-5?40:20,i=void 0===t?50:t>=-70?100:t>=-80?80:t>=-90?60:t>=-100?40:20;return Math.round(.6*n+.4*i)}(e.avgSnr??void 0,e.avgRssi??void 0,s),n=t[e.hash];return{name:(null==n?void 0:n.name)||(null==n?void 0:n.node_name)||e.prefix,hash:e.hash,rssi:e.avgRssi??-100,snr:e.avgSnr??-10,score:a,advertCount:e.count}});a.sort((e,t)=>t.score-e.score);const n=a.length>0?a.reduce((e,t)=>e+t.score,0)/a.length:0;return{neighbors:a,networkScore:Math.round(n),neighborCount:a.length,bestLink:a.length>0?{name:a[0].name,score:a[0].score}:null,worstLink:a.length>0?{name:a[a.length-1].name,score:a[a.length-1].score}:null}}(_,S,g),[_,S,g]),R=e.useMemo(()=>function(e,t,s){const a=e?Math.max(0,Math.min(100,100-5*e.retryRate)):50;let n=50;null!==t&&(n=Math.max(0,Math.min(100,(t+120)/30*100)));const i=(null==s?void 0:s.networkScore)??50,l=Math.round(.35*a+.25*n+.4*i);let r;return r=l>=85?"excellent":l>=70?"good":l>=50?"fair":l>=30?"congested":"critical",{score:l,status:r,components:{lbtHealth:Math.round(a),noiseHealth:Math.round(n),linkHealth:Math.round(i)}}}(u,p,T),[u,p,T]),[F,D]=e.useState({noiseFloor:null,networkScore:null,channelHealth:null}),H=e.useRef(0);e.useEffect(()=>{const e=()=>{const e=Date.now();e-H.current>3e4&&(H.current=e,D({noiseFloor:p,networkScore:(null==T?void 0:T.networkScore)??null,channelHealth:(null==R?void 0:R.score)??null}))};e();const t=setInterval(e,5e3);return()=>clearInterval(t)},[p,null==T?void 0:T.networkScore,null==R?void 0:R.score]);const A=e.useMemo(()=>({noiseFloor:{current:p,previous:F.noiseFloor,trend:null!==p?nt(p,F.noiseFloor,2,!0):"stable"},networkScore:{current:(null==T?void 0:T.networkScore)??0,previous:F.networkScore,trend:nt((null==T?void 0:T.networkScore)??0,F.networkScore,3,!1)},channelHealth:{current:(null==R?void 0:R.score)??0,previous:F.channelHealth,trend:nt((null==R?void 0:R.score)??0,F.channelHealth,3,!1)}}),[p,null==T?void 0:T.networkScore,null==R?void 0:R.score,F]),P={lbtStats:u,noiseFloor:p,sparklineNoiseFloor:C,linkQuality:T,channelHealth:R,nfTrend:B,radioConfig:g,trends:A,stats:n,recentPackets:i,quickNeighbors:l,isLoading:m,error:null,refresh:async()=>{}};return t.jsx(lt.Provider,{value:P,children:s})}function ot(){const t=e.useContext(lt);if(void 0===t)throw new Error("useLBTData must be used within an LBTDataProvider");return t}function ct(e,t){return 0===e?"No backoffs":`${t.toFixed(0)}% retry rate`}function dt(){const{lbtStats:s,isLoading:a,error:n}=ot(),i=pe(),l=(null==s?void 0:s.avgBackoffMs)??0,r=(null==s?void 0:s.retryRate)??0,o=s?(c=l)<100?"excellent":c<250?"good":c<500?"fair":c<1e3?"congested":"critical":"unknown";var c;const d=null==s?void 0:s.sparklineBackoff,m=e.useMemo(()=>!d||d.length<2?[]:d.map((e,t)=>({timestamp:Date.now()-36e5*(d.length-1-t),count:e})),[d]);return t.jsx(Xe,{title:"LBT Backoff",icon:t.jsx(De,{className:"mini-widget-icon"}),value:Math.round(l),unit:"ms",status:o,subtitle:s?ct(l,r):void 0,isLoading:a,error:n,onClick:()=>i("/packets"),children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:m,width:9999,height:24,color:"var(--accent-primary)",isLoading:a,className:"w-full"})})})}function mt(e){return 0===e?"—":e<1?"<1":Math.round(e).toString()}function ut(){const{lbtStats:e,isLoading:s,error:a}=ot(),n=pe(),i=(null==e?void 0:e.channelBusyCount)??0,l=(null==e?void 0:e.totalPacketsWithLBT)??0,r=(null==e?void 0:e.channelBusyRate)??0,o=(null==e?void 0:e.retryRate)??0,c=(null==e?void 0:e.avgBackoffMs)??0,d=(null==e?void 0:e.minBackoffMs)??0,m=(null==e?void 0:e.maxBackoffMs)??0,u=o>0?Math.max(0,(o-r)/o*100):100;return t.jsx(Xe,{title:"Ch. Busy",icon:t.jsx(te,{className:"mini-widget-icon"}),isLoading:s,error:a,onClick:()=>n("/packets"),children:t.jsx("div",{className:"flex-1 flex items-end",children:t.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto_minmax(0,1fr)] gap-x-2 gap-y-2 w-full items-baseline",children:[t.jsx("span",{className:"data-box-label mb-0",title:`${i} packets exceeded max CAD attempts (5) out of ${l} total transmissions.`,children:"Failed:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`${i} packets exceeded max CAD attempts (5) out of ${l} total transmissions.`,children:[t.jsx(Ie,{children:i}),t.jsx("span",{className:"text-text-muted punc-slash",children:"/"}),t.jsx(Ie,{children:l})]}),t.jsx("span",{className:"data-box-label mb-0",title:`${u.toFixed(1)}% of packets that needed LBT retries were sent successfully.`,children:"Sent:"}),t.jsx("div",{className:"data-box justify-self-start",title:`${u.toFixed(1)}% of packets that needed LBT retries were sent successfully.`,children:t.jsxs(Ie,{children:[u.toFixed(0),"%"]})}),t.jsx("span",{className:"data-box-label mb-0",title:`Average LBT backoff delay: ${c.toFixed(0)}ms.`,children:"Mean:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`Average LBT backoff delay: ${c.toFixed(0)}ms.`,children:[t.jsx(Ie,{children:mt(c)}),t.jsx("span",{className:"text-text-muted text-xs",children:"ms"})]}),t.jsx("span",{className:"data-box-label mb-0",title:`Backoff range: ${d.toFixed(0)}ms min, ${m.toFixed(0)}ms max.`,children:"Range:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`Backoff range: ${d.toFixed(0)}ms min, ${m.toFixed(0)}ms max.`,children:[t.jsx(Ie,{children:mt(d)}),t.jsx("span",{className:"text-text-muted punc-slash",children:"/"}),t.jsx(Ie,{children:mt(m)})]})]})})})}function ht(e){return null===e?"No reading":e<-115?"Very quiet":e<-105?"Quiet":e<-95?"Moderate":e<-85?"Elevated":"High interference"}function xt(){const{noiseFloor:s,sparklineNoiseFloor:a,trends:n,isLoading:i,error:l}=ot(),r=null===(o=s)||o<-110?"excellent":o<-100?"good":o<-90?"fair":o<-80?"congested":"critical";var o;const c=null==n?void 0:n.noiseFloor.trend,d=e.useMemo(()=>!a||a.length<2?[]:a.map((e,t)=>({timestamp:Date.now()-36e5*(a.length-1-t),count:-e})),[a]),m=null!==s?Math.round(s):"—";return t.jsx(Xe,{title:"Noise Floor",icon:t.jsx(Se,{className:"mini-widget-icon"}),value:m,unit:null!==s?"dBm":void 0,status:r,trend:c,subtitle:ht(s),isLoading:i,error:l,children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:d,width:9999,height:24,color:"var(--accent-primary)",isLoading:i,className:"w-full"})})})}function pt(){const s=pe(),a=b(),n=h(),i=f(),l=N(),r=60*w[l].minutes,o=M(),c=e.useMemo(()=>{if(0===o)return n;const e=o-r;return n.filter(t=>t.timestamp>=e)},[n,r,o]),d=null===i,m=(null==i?void 0:i.local_hash)?C(i.local_hash):"",u=(null==i?void 0:i.neighbors)??{},{neighborHashes:x,neighborNames:p}=e.useMemo(()=>{const e=new Set,t=new Map;for(const s of a){e.add(s.hash);const a=u[s.hash],n=(null==a?void 0:a.name)||(null==a?void 0:a.node_name)||s.prefix;t.set(s.hash,n)}return{neighborHashes:e,neighborNames:t}},[a,u]),g=e.useMemo(()=>{if(0===x.size||0===c.length||!m)return{champion:null,listener:null,loudest:null};const{scores:e}=Z(c,x,m),t=[];for(const[i,l]of e)0!==l.blendedScore&&t.push({...l,name:p.get(i)??C(i)});let s=null,a=null,n=null;for(const i of t)(!s||i.blendedScore>s.blendedScore)&&(s=i),(!a||i.listenerScore>a.listenerScore)&&(a=i),(!n||i.loudScore>n.loudScore)&&(n=i);return{champion:s,listener:a,loudest:n}},[c,x,m,p]),{champion:v,listener:j,loudest:y}=g,k=v||j||y?t.jsxs("div",{className:"flex flex-col gap-0.5 mt-auto",children:[v&&t.jsx(L,{content:(S=v,t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["🏆 Champion: ",S.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Blended Score: ",S.blendedScore,t.jsx("span",{className:"text-text-muted/60 ml-1",children:"(Listener + Loud)"})]}),t.jsxs("div",{className:"border-t border-border-subtle pt-1 mt-1 space-y-0.5",children:[t.jsxs("div",{children:["Listener: ",S.listenerScore,"/100 (",S.listenerCount," shared paths)"]}),t.jsxs("div",{children:["Loud: ",S.loudScore,"/100 (",S.loudCount," packets relayed)"]})]})]})),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(le,{className:"w-3 h-3 text-map-neighbor-color flex-shrink-0"}),t.jsx("span",{className:"font-semibold text-map-neighbor-color font-mono truncate flex-1 min-w-0",children:v.name}),t.jsx("span",{className:"text-map-neighbor-color pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:v.blendedScore})]})}),j&&t.jsx(L,{content:(e=>t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["👂 Best Listener: ",e.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Score: ",e.listenerScore,"/100"]}),t.jsx("div",{className:"border-t border-border-subtle pt-1 mt-1",children:t.jsxs("div",{children:[e.listenerCount," packets where they heard your transmissions"]})})]}))(j),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(_e,{className:"w-3 h-3 text-text-muted flex-shrink-0"}),t.jsx("span",{className:"text-text-muted font-mono truncate flex-1 min-w-0",children:j.name}),t.jsx("span",{className:"text-text-muted pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:j.listenerScore})]})}),y&&t.jsx(L,{content:(e=>t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["📢 Loudest: ",e.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Score: ",e.loudScore,"/100"]}),t.jsx("div",{className:"border-t border-border-subtle pt-1 mt-1",children:t.jsxs("div",{children:[e.loudCount," packets they relayed directly to you"]})})]}))(y),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(Be,{className:"w-3 h-3 text-text-muted flex-shrink-0"}),t.jsx("span",{className:"text-text-muted font-mono truncate flex-1 min-w-0",children:y.name}),t.jsx("span",{className:"text-text-muted pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:y.loudScore})]})})]}):0===a.length?t.jsx("div",{className:"flex items-center justify-center text-sm text-text-muted mt-auto",children:"No direct neighbors"}):t.jsx("div",{className:"flex items-center justify-center text-sm text-text-muted mt-auto",children:"No routing data yet"});var S;return t.jsx(Xe,{title:"Link Leaders",icon:t.jsx(Re,{className:"mini-widget-icon"}),isLoading:d,onClick:()=>s("/contacts"),children:k})}function ft(){const{lbtStats:s,isLoading:a,error:n}=ot(),i=s?function(e){const{retryRate:t,channelBusyCount:s,totalPacketsWithLBT:a,avgBackoffMs:n,maxBackoffMs:i}=e;if(0===a)return 0;const l=Math.min(a/10,1),r=Math.log(1+.15*t)/Math.log(16)*40,o=s/a*100,c=Math.min(.5*o,25);let d=0;n>100&&(d=Math.min(8*Math.log10(n/100),15));let m=0;i>500&&n>0&&i>2*n&&(m=Math.min((i-500)/200,5));const u=(r+c+d+m)*l;return Math.min(u,85)}(s):0,l=s?(r=i)<15?"excellent":r<30?"good":r<45?"fair":r<60?"congested":"critical":"unknown";var r;const o=(null==s?void 0:s.maxBackoffMs)??0,c=s?o>200?`Max backoff: ${Math.round(o)}ms`:function(e){return e<15?"Clear channel":e<30?"Light traffic":e<45?"Moderate traffic":e<60?"Heavy traffic":e<75?"Congested":"Severe congestion"}(i):void 0,d=null==s?void 0:s.sparklineCollisionRisk,m=e.useMemo(()=>!d||d.length<2?[]:d.map((e,t)=>({timestamp:Date.now()-36e5*(d.length-1-t),count:e})),[d]),u=Math.round(10*i)/10;return t.jsx(Xe,{title:"Collision Risk",icon:t.jsx(ge,{className:"mini-widget-icon"}),value:u,unit:"%",status:l,subtitle:c,isLoading:a,error:n,children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:m,width:9999,height:24,color:"var(--accent-primary)",isLoading:a,className:"w-full"})})})}function gt(){const[s,a]=e.useState(!1),[n]=e.useState(0),{stats:i,lbtStats:l,isLoading:r}=ot(),o=e.useMemo(()=>{if(!i)return null;const e=i.airtime_used_ms??0,t=i.max_airtime_ms??1;return{usedMs:e,maxMs:t,remainingMs:i.airtime_remaining_ms??0,utilizationPercent:i.utilization_percent??(t>0?e/t*100:0)}},[i]),c=e.useMemo(()=>l&&0!==l.totalPacketsWithLBT?(l.totalPacketsWithLBT-l.packetsWithRetries)/l.totalPacketsWithLBT*100:100,[l]),d=(null==o?void 0:o.utilizationPercent)??0,m=(u=d)<30?"excellent":u<50?"good":u<70?"fair":u<90?"congested":"critical";var u;const h=(null==o?void 0:o.remainingMs)??0,x=c<95?`${c.toFixed(0)}% clean TX`:((p=h)<1e3?`${Math.round(p)}ms`:p<6e4?`${(p/1e3).toFixed(1)}s`:`${(p/6e4).toFixed(1)}m`)+" remaining";var p;const f=o?t.jsx("div",{className:"mini-widget-progress mt-auto",children:t.jsx("div",{className:`mini-widget-progress-bar ${m}`,style:{width:`${Math.min(d,100)}%`}})}):null;return t.jsx(Xe,{title:"Duty Cycle",icon:t.jsx(v,{className:"mini-widget-icon"}),value:d.toFixed(1),unit:"%",status:m,subtitle:x,isLoading:r,children:f})}function vt(){return t.jsxs("div",{className:"mini-widget",children:[t.jsxs("div",{className:"mini-widget-header",children:[t.jsx(V,{className:"w-4 h-4"}),t.jsx(V,{className:"h-3 w-16"})]}),t.jsx(V,{className:"h-7 w-12 mt-2"}),t.jsx(V,{className:"h-3 w-20 mt-2"})]})}function jt(){return t.jsx("div",{className:"widget-row",children:Array.from({length:6}).map((e,s)=>t.jsx(vt,{},s))})}function bt({className:e="",isLoaded:s=!0}){return t.jsxs("div",{className:`mesh-health-container relative ${e}`,children:[t.jsxs("div",{className:"mesh-health-header",children:[t.jsx(Fe,{className:"w-4 h-4 text-accent-primary"}),t.jsx("span",{className:"type-label text-text-muted",children:"MESH HEALTH"})]}),s?t.jsx(rt,{children:t.jsxs("div",{className:"widget-row",children:[t.jsx(dt,{}),t.jsx(ft,{}),t.jsx(xt,{}),t.jsx(gt,{}),t.jsx(ut,{}),t.jsx(pt,{})]})}):t.jsx(jt,{})]})}const yt={sm:{button:"w-3 h-3",icon:"w-1.5 h-1.5",stroke:"ring-1"},md:{button:"w-3.5 h-3.5",icon:"w-2 h-2",stroke:"ring-1"},lg:{button:"w-4 h-4",icon:"w-2.5 h-2.5",stroke:"ring-[1.5px]"}},Nt=e.forwardRef(function({size:e="md",showIconOnHover:a=!0,className:n,...i},l){const r=yt[e];return t.jsx("button",{ref:l,type:"button","aria-label":"Close",className:s("group relative inline-flex items-center justify-center rounded-full","transition-all duration-150 ease-out",r.button,"bg-[#FF5F57]",r.stroke,"ring-inset ring-[#E0443E]","hover:bg-[#FF6961]","active:bg-[#E04840] active:scale-95","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-[#FF5F57] focus-visible:ring-offset-bg-base",n),...i,children:a&&t.jsx("svg",{className:s(r.icon,"opacity-0 group-hover:opacity-100 transition-opacity duration-100","text-[#4A0000]"),fill:"none",viewBox:"0 0 10 10",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",children:t.jsx("path",{d:"M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5"})})})});let wt="",kt="",Mt="";function Ct(e){!function(){const e=new Date,t=e.toDateString();if(t!==Mt){Mt=t,wt=t;const s=new Date(e);s.setDate(s.getDate()-1),kt=s.toDateString()}}();const t=new Date(1e3*e).toDateString();return t===wt?"Today":t===kt?"Yesterday":new Date(1e3*e).toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"})}function Lt(e){const t=["#22c55e","#3b82f6","#f59e0b","#ec4899","#8b5cf6","#06b6d4","#f97316","#84cc16"];let s=0;for(let a=0;a0?{emoji:t[0],cleanName:e.replace(St,"").trim()||e}:{emoji:null,cleanName:e}}function Bt(e){const{cleanName:t}=_t(e),s=t.split(/[\s-_]+/).filter(Boolean);return s.length>=2?((Array.from(s[0])[0]||"")+(Array.from(s[1])[0]||"")).toUpperCase():Array.from(t).slice(0,2).join("").toUpperCase()}function Tt(e,t,s){return`${e||""}|${t}|${s}`}function Rt(e){const s=/@\[([^\]]+)\]/g,a=[];let n,i=0;for(;null!==(n=s.exec(e));)n.index>i&&a.push(e.slice(i,n.index)),a.push(t.jsx("span",{className:"font-extrabold text-white",children:n[1]},n.index)),i=n.index+n[0].length;return i0?a:e}const Ft=e.memo(function({message:e,onChannelClick:a,isChannelSelected:n}){const i=e.senderName||"Unknown",{emoji:l,cleanName:r}=_t(i),o=Lt(r),c=Bt(i),d=e.channelName||e.channelHash.slice(0,6);return t.jsxs("div",{className:"flex items-start gap-3 w-full",style:{transform:"translateZ(0)",willChange:"transform"},children:[t.jsxs("div",{className:"flex-shrink-0 w-9 flex flex-col items-center gap-1",children:[t.jsx("div",{className:s("w-9 h-9 rounded-full flex items-center justify-center","shadow-md ring-1 ring-white/10",l?"text-lg":"text-white text-[13px] font-bold tracking-tight"),style:{backgroundColor:o},children:l||c}),t.jsx("span",{className:"text-[10px] text-text-muted tabular-nums h-4 leading-4",children:(m=e.timestamp,new Date(1e3*m).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}))})]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2 h-5 mb-1",children:[t.jsx("span",{className:"text-[13px] font-medium truncate",style:{color:o,lineHeight:"20px"},children:r}),t.jsx("button",{onClick:()=>null==a?void 0:a(e.channelHash),className:s("px-2 rounded text-[10px] font-medium flex-shrink-0","ring-1 ring-inset h-5 leading-5",n?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:d})]}),t.jsx("div",{className:s("inline-block px-3.5 py-2.5 max-w-full","rounded-2xl rounded-tl-md","bg-[#007AFF]"),children:t.jsx("p",{className:"text-sm text-white leading-relaxed tracking-wide whitespace-pre-wrap break-words",children:Rt(e.text)})})]})]});var m},function(e,t){const s=e.message,a=t.message;return s.timestamp===a.timestamp&&s.text===a.text&&s.senderName===a.senderName&&s.channelHash===a.channelHash&&s.channelName===a.channelName&&e.isChannelSelected===t.isChannelSelected&&e.onChannelClick===t.onChannelClick});function Dt({open:a,onClose:n,messages:i,onLoadMore:l,hasMoreToLoad:r,isDecoding:o}){const c=e.useRef(null),d=e.useRef(!0),m=N(),u=H(),h=e.useRef(!1);e.useEffect(()=>{a?(h.current=!0,A.resume()):h.current&&A.pause()},[a]);const x=e.useMemo(()=>{const e=Date.now()/1e3-60*w[m].minutes;return[...i].filter(t=>t.timestamp>=e).sort((e,t)=>e.timestamp-t.timestamp)},[i,m]),p=e.useCallback(()=>{const e=c.current;e&&(d.current=e.scrollTop>=-50)},[]),f=e.useMemo(()=>{const e=new Map;for(const t of x){const s=t.channelHash,a=e.get(s);a?a.count++:e.set(s,{name:t.channelName||t.channelHash.slice(0,6),hash:t.channelHash,count:1})}return Array.from(e.values()).sort((e,t)=>t.count-e.count)},[x]),g=f.length,[v,j]=e.useState(null),[b,y]=e.useState(!1),k=e.useCallback(()=>{l(v,f)},[l,v,f]),M=e.useMemo(()=>v?x.filter(e=>e.channelHash===v):x,[x,v]),C=e.useMemo(()=>{const e=[];let t="";for(const s of M){const a=Ct(s.timestamp);a!==t&&(e.push({type:"date",date:a}),t=a),e.push({type:"message",message:s})}return e},[M]);e.useLayoutEffect(()=>{const e=c.current;e&&d.current&&(e.scrollTop=0)},[M.length]);const L=f.slice(0,19),S=f.slice(19),_=S.length>0;return t.jsxs(P,{open:a,onClose:n,size:"lg",motionPlus:!0,solid:!0,children:[t.jsx(Nt,{onClick:n,size:"md",style:{position:"absolute",top:12,right:12,zIndex:10}}),t.jsxs($,{className:"p-0 flex flex-col h-[80vh] max-h-[700px] rounded-2xl",children:[t.jsx("div",{className:"flex-shrink-0 px-5 py-4 pr-12",children:t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Te,{className:"size-5 text-icon-card-title flex-shrink-0"}),t.jsx("h2",{className:"text-base font-semibold text-text-primary",children:"Public Channels"})]}),t.jsx(se,{ranges:w,selectedIndex:m,onSelect:u,size:"micro"})]})}),t.jsx("div",{className:"flex-shrink-0 px-3 pb-2 relative z-10 isolate",style:{minHeight:g>0?void 0:0},children:g>0&&t.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.jsx("button",{onClick:()=>j(null),className:s("px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",null===v?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:"All"}),L.map(e=>t.jsx("button",{onClick:()=>j(e.hash),className:s("flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",v===e.hash?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:t.jsx("span",{className:"truncate max-w-[80px]",children:e.name})},e.hash)),_&&t.jsxs("div",{className:"relative",children:[t.jsxs("button",{onClick:()=>y(!b),className:s("flex items-center gap-0.5 px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",b||S.some(e=>e.hash===v)?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:["+",S.length,t.jsx(z,{className:s("size-3 transition-transform",b&&"rotate-180")})]}),b&&t.jsx("div",{className:s("absolute top-full left-0 mt-1 z-50","min-w-[140px] max-h-[200px] overflow-y-auto","p-1 rounded-lg","bg-bg-elevated backdrop-blur-xl","ring-1 ring-border-subtle shadow-xl"),children:S.map(e=>t.jsxs("button",{onClick:()=>{j(e.hash),y(!1)},className:s("w-full flex items-center gap-1.5 px-2 py-1 rounded text-[10px] font-medium transition-all text-left",v===e.hash?"bg-accent-primary/20 text-accent-primary":"text-text-secondary hover:bg-white/10"),children:[t.jsx(ye,{className:"size-2.5 opacity-60 flex-shrink-0"}),t.jsx("span",{className:"truncate",children:e.name}),t.jsxs("span",{className:"opacity-60 ml-auto",children:["(",e.count,")"]})]},e.hash))})]})]})}),t.jsx("div",{ref:c,onScroll:p,className:s("flex-1 overflow-y-auto overflow-x-hidden","mx-3 mb-3 rounded-md","bg-bg-0","ring-1 ring-inset ring-white/10","flex flex-col-reverse"),children:o&&0===M.length?t.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[300px] text-text-muted px-4 py-4",children:[t.jsx(Ne,{className:"size-12 mb-4 text-accent-purple animate-spin"}),t.jsx("p",{className:"text-lg font-medium",children:"Loading messages..."})]}):0===M.length?t.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[300px] text-text-muted px-4 py-4",children:[t.jsx(me,{className:"size-16 mb-4 opacity-20"}),t.jsx("p",{className:"text-lg font-medium",children:"No messages yet"}),t.jsx("p",{className:"text-sm mt-1 opacity-70",children:v?"No messages in this channel":"Public channel messages will appear here"})]}):t.jsxs("div",{className:"px-4 py-4",children:[r&&t.jsx("div",{className:"flex justify-center mb-4",children:t.jsx("button",{onClick:k,disabled:o,className:s("px-4 py-1.5 rounded-full","text-[11px] font-medium","ring-1 ring-inset",o?"bg-white/5 text-text-muted ring-white/5 cursor-wait":"bg-accent-primary/10 text-accent-primary ring-accent-primary/20 hover:bg-accent-primary/20 hover:ring-accent-primary/30"),children:o?t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Ne,{className:"size-3 animate-spin"}),"Loading..."]}):"Load older messages"})}),C.map((e,a)=>{if("date"===e.type)return t.jsx("div",{className:"flex justify-center my-4",children:t.jsx("span",{className:s("px-3.5 py-1.5 rounded-full","bg-white/5 backdrop-blur-sm","text-[11px] text-text-muted/80 font-medium","ring-1 ring-white/5"),children:e.date})},`date-${e.date}-${a}`);const n=`msg-${e.message.timestamp}-${e.message.senderName||"anon"}-${e.message.channelHash}`;return t.jsx("div",{className:"mb-3",children:t.jsx(Ft,{message:e.message,onChannelClick:j,isChannelSelected:v===e.message.channelHash})},n)})]})}),t.jsx("div",{className:"flex-shrink-0 px-5 py-2 text-center",children:t.jsxs("p",{className:"text-[11px] text-text-muted",children:[M.length," messages · ",g," ",1===g?"channel":"channels",o&&t.jsxs("span",{className:"ml-2 text-accent-purple",children:[t.jsx(Ne,{className:"inline size-3 animate-spin mr-1"}),"Decrypting..."]})]})})]})]})}function Ht({isLoaded:a=!0}){const n=h(),[r,o]=e.useState(!1),c=N(),d=e.useCallback(()=>{o(!0),S.getState().queueDecryption(n)},[n]),m=_(),u=B(),x=T(),p=e.useMemo(()=>function(e){const t=[],s=new Set;for(const a of e.values()){const e=a.decoded;if(!e||!e.decrypted||e.macCorrupted||!e.text)continue;const n=Tt(e.senderName,e.channelHash,e.text);s.has(n)||(s.add(n),t.push({timestamp:a.timestamp,channelName:e.channelName,channelHash:e.channelHash,senderName:e.senderName,text:e.text,rssi:a.rssi,snr:a.snr}))}return t}(m),[m]),f=e.useMemo(()=>{const e=Date.now()/1e3-60*w[c].minutes;return p.filter(t=>t.timestamp>=e)},[p,c]),g=e.useMemo(()=>0===f.length?null:f.reduce((e,t)=>t.timestamp>e.timestamp?t:e),[f]),v=u.isDecoding,j=e.useMemo(()=>{const e=Date.now()/1e3-60*w[c].minutes,t=new Set;let s=0;for(const a of n)(a.type??a.payload_type)===R.GRP_TXT&&((a.timestamp??0){const e=Date.now()/1e3-60*w[c].minutes;for(const t of n)if((t.type??t.payload_type)===R.GRP_TXT&&!((t.timestamp??0){if(!v){if(e){const s=t.find(t=>t.hash===e);if(s)return void S.getState().queueChannelDecryption(n,s.name)}S.getState().queueDecryption(n)}},[n,v]);return a?t.jsxs(t.Fragment,{children:[t.jsx("div",{onClick:d,className:s("group cursor-pointer rounded-xl transition-all duration-150","ring-1 ring-inset ring-white/10 hover:ring-accent-primary/50","hover:bg-white/[0.02]","px-3 py-2.5 sm:px-4 sm:py-3"),children:t.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 flex-shrink-0",children:[t.jsx(Te,{className:"size-4 text-icon-card-title flex-shrink-0"}),t.jsx("span",{className:"type-micro",children:"CHAT ACTIVITY"}),j>0&&t.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm tabular-nums text-text-secondary",children:j}),t.jsx(be,{className:"size-4 text-text-muted group-hover:text-accent-purple transition-colors ml-auto sm:hidden"})]}),t.jsxs("div",{className:"flex items-center gap-2 sm:gap-1.5 min-w-0 overflow-hidden",children:[t.jsx(i,{mode:"wait",initial:!1,children:g?t.jsxs(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex items-center gap-2 sm:gap-1.5 min-w-0",children:[g.channelName&&t.jsxs("span",{className:"hidden sm:inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm text-text-secondary flex-shrink-0",children:["#",g.channelName.replace(/^#/,"")]}),t.jsx("div",{className:"hidden sm:flex w-[30px] h-[30px] rounded-full items-center justify-center flex-shrink-0 ring-1 ring-white/10",style:{backgroundColor:Lt(_t(g.senderName||"").cleanName)},children:_t(g.senderName||"").emoji?t.jsx("span",{className:"text-base",children:_t(g.senderName||"").emoji}):t.jsx("span",{className:"text-white text-xs font-bold tracking-tighter",children:Bt(g.senderName||"")})}),t.jsx("div",{className:"inline-flex items-center px-3 py-1.5 rounded-2xl rounded-tr-md bg-[#007AFF] shadow-sm min-w-0 flex-1 sm:flex-initial sm:max-w-xs sm:-ml-px",children:t.jsx("span",{className:"text-sm text-white truncate tracking-wide",children:Rt(g.text)})}),t.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm tabular-nums text-text-secondary flex-shrink-0",children:D(g.timestamp)})]},`msg-${g.timestamp}-${g.senderName}-${g.channelHash}`):x?t.jsx(l.span,{initial:{opacity:0},animate:{opacity:1},className:"text-sm text-text-muted italic",children:"No messages yet"},"empty"):t.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-16},transition:{duration:.15},className:"flex items-center gap-2 sm:gap-1.5",children:[t.jsx("div",{className:"hidden sm:block w-8 h-4 rounded bg-white/10 animate-pulse"}),t.jsx("div",{className:"hidden sm:block w-[30px] h-[30px] rounded-full bg-white/10 animate-pulse"}),t.jsx("div",{className:"h-8 w-32 sm:w-48 rounded-2xl bg-white/10 animate-pulse"}),t.jsx("div",{className:"w-12 h-6 rounded-md bg-white/10 animate-pulse"})]},"skeleton")}),t.jsx(be,{className:"size-4 text-text-muted group-hover:text-accent-purple transition-colors flex-shrink-0 hidden sm:block ml-1"})]})]})}),t.jsx(Dt,{open:r,onClose:()=>o(!1),messages:p,onLoadMore:k,hasMoreToLoad:y,isDecoding:v})]}):t.jsx("div",{className:"h-14 rounded-xl bg-bg-elevated/50 animate-pulse"})}function At(){var s,a;const n=f(),i=E(),l=h(),r=I(),o=e.useRef(!1);r&&!o.current&&(o.current=!0);const c=o.current,d=N(),m=H(),x=q(),p=w[d],g=5===d&&!x.threeDayLoadComplete,v=6===d&&!x.sevenDayLoadComplete,j=7===d&&!x.fourteenDayLoadComplete,b=x.isBackgroundLoading&&(g||v||j),y=null==(s=null==n?void 0:n.config)?void 0:s.radio,k=e.useMemo(()=>y?{sf:y.spreading_factor??10,bw:y.bandwidth??25e4,cr:y.coding_rate??5,preamble:y.preamble_length??8}:null,[y]),M=l.length,C=e.useMemo(()=>M?O(p.minutes,p.buckets,l,n):null,[M,p.minutes,p.buckets,k]),L=e.useMemo(()=>{const e=e=>(null==e?void 0:e.reduce((e,t)=>e+t.count,0))??0,t=e(null==C?void 0:C.received),s=e(null==C?void 0:C.unique_received),a=e(null==C?void 0:C.forwarded),n=e(null==C?void 0:C.dropped),i=e(null==C?void 0:C.transmitted),l=((null==C?void 0:C.time_range_minutes)??p.minutes)/60;return{received:t,uniqueReceived:s,forwarded:a,dropped:n,transmitted:i,rxPerHour:l>0?Math.round(t/l):0,fwdPerHour:l>0?Math.round(a/l):0}},[C,p.minutes]),S=e.useMemo(()=>{if(!l.length)return{totalBytes:0,kbPerHour:0};const e=Date.now()/1e3,t=e-60*p.minutes;let s=0;for(const n of l)n.transmitted||n.timestampe||(s+=n.length??n.payload_length??0);const a=p.minutes/60;return{totalBytes:s,kbPerHour:a>0?Math.round(s/1024/a):0}},[l,p.minutes]),_=(null==n?void 0:n.node_name)??(null==(a=null==n?void 0:n.config)?void 0:a.node_name)??"Unknown Node";return e.useEffect(()=>{_&&"Unknown Node"!==_&&(document.title=`pyMC: ${_}`)},[_]),i?t.jsxs(U,{className:"p-8 text-center",children:[t.jsx("p",{className:"type-subheading text-accent-red mb-2",children:"Failed to connect to backend"}),t.jsx("p",{className:"type-body text-white/50",children:i}),t.jsx("p",{className:"type-data-sm text-white/40 mt-4",children:"Make sure the backend is running on port 8000"})]}):t.jsxs(J,{children:[t.jsx(K,{title:_,icon:t.jsx(we,{}),controls:t.jsx(se,{ranges:w,selectedIndex:d,onSelect:m,isPending:b})}),t.jsxs(Q,{children:[t.jsx(Ht,{isLoaded:c}),t.jsx(ke,{template:"hero-auto",children:t.jsxs(U,{compact:!0,children:[t.jsx(Ce,{icon:t.jsx(W,{}),title:"PACKETS RECEIVED",badge:p.label,badgeColor:"zinc",actions:c?t.jsxs("div",{className:"data-box",children:[S.kbPerHour," KB/hr"]}):t.jsx("div",{className:"data-box opacity-0",children:"0 KB/hr"})}),t.jsxs("div",{className:"flex flex-wrap gap-4 sm:gap-8",children:[t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:c?t.jsx(ee,{value:L.received,className:"font-mono tabular-nums",priority:"high"}):t.jsx("span",{className:"opacity-30",children:"—"})}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"Total Rx"})]}),t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:c?t.jsx(ee,{value:L.uniqueReceived,className:"font-mono tabular-nums",priority:"high"}):t.jsx("span",{className:"opacity-30",children:"—"})}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"Unique"})]})]}),t.jsxs("div",{className:"mt-2 packet-byte-chart-height relative",children:[t.jsx("div",{className:"absolute inset-0 flex items-end gap-1 transition-opacity duration-300 "+(c?"opacity-0 pointer-events-none":"opacity-100"),"aria-hidden":c,children:[45,72,33,58,80,42,65,28,55,75,38,62].map((e,s)=>t.jsx("div",{className:"flex-1 bg-subtle-fill rounded-sm animate-pulse",style:{height:`${e}%`}},s))}),t.jsx("div",{className:"h-full transition-opacity duration-300 "+(c?"opacity-100":"opacity-0"),children:t.jsx(He,{packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets})})]})]})}),t.jsxs(ke,{template:"compact",children:[t.jsx(Me,{span:6,lg:4,children:t.jsx(Pe,{value:L.forwarded,receivedCount:L.received,packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets,timeRangeLabel:p.label,icon:t.jsx(Le,{className:"w-4 h-4"}),isLoaded:c})}),t.jsx(Me,{span:6,lg:4,children:t.jsx($e,{value:L.dropped,receivedCount:L.received,packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets,timeRangeLabel:p.label,icon:t.jsx(ve,{className:"w-4 h-4"}),isLoaded:c})}),t.jsx(Me,{span:12,lg:4,children:t.jsx(Ge,{stats:n,receivedBuckets:null==C?void 0:C.received,droppedBuckets:null==C?void 0:C.dropped,forwardedBuckets:null==C?void 0:C.forwarded,bucketDurationSeconds:null==C?void 0:C.bucket_duration_seconds,timeRangeLabel:p.label,isLoaded:c})})]}),t.jsx(bt,{isLoaded:c}),t.jsx(Ve,{}),n&&t.jsx(ke,{template:"auto",children:t.jsx(je,{nodeName:_,repeaterVersion:n.version,coreVersion:n.core_version,localHash:n.local_hash,publicKey:n.public_key})})]})]})}export{At as default}; +import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as a,u as n,A as i,m as l,U as r,S as o,a as c,b as d,d as m,B as u,e as h,f as x,h as p,j as f,w as g,R as v,L as j,k as b,n as y,o as N,D as w,p as k,q as M,r as C,T as L,t as S,v as _,x as B,y as T,z as R,C as F,E as D,F as H,G as A,H as P,I as $,J as z,K as E,M as I,N as q,O,Q as W}from"./index-CrU_Ps9k.js";import{C as G,S as V,a as U,P as J,b as K,B as Q}from"./PageLayout-BlXA3E6H.js";import{S as X,M as Y,c as Z}from"./link-scoring-CpsMpD17.js";import{A as ee,E as te,T as se}from"./TimeRangeSelector-BzCEWjlJ.js";import{S as ae,A as ne,P as ie,T as le}from"./PacketList-Q1pG-MMT.js";import{T as re,a as oe,M as ce,L as de,b as me}from"./LightSparkline-CE1rnNiF.js";import{C as ue,a as he}from"./DataBox-sJHphnZd.js";import{L as xe,b as pe}from"./vendor-core-D1aqi_5O.js";import{s as fe,Z as ge,C as ve}from"./SignalIndicator-DN65UHiA.js";import{N as je}from"./NodeInformationCard-BjZ_sk1b.js";import{C as be}from"./chevron-right-DBUqxZL-.js";import{H as ye}from"./route-BsYhRSod.js";import{L as Ne}from"./loader-circle-D6Apotf0.js";import{H as we}from"./house-DNrMSmBS.js";import{R as ke,C as Me}from"./Grid-BkE6UU8f.js";import{C as Ce}from"./Card-Cq7dyTi6.js";import"./deckgl-DTsmDcfs.js";import"./index-n30bZfID.js";import"./payload-decoders-N5zeG9av.js";import"./arrow-up-2wZY9TSM.js";import"./map-pin-BUNSWVCM.js";import"./triangle-alert-DrmOKr32.js";import"./activity-DIYCEspu.js";import"./circle-check-DH0TJtTq.js";import"./database-lWroaxsL.js";const Le=a("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Se=a("audio-waveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]),_e=a("ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]),Be=a("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]),Te=a("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]),Re=a("satellite-dish",[["path",{d:"M4 10a7.31 7.31 0 0 0 10 10Z",key:"1fzpp3"}],["path",{d:"m9 15 3-3",key:"88sc13"}],["path",{d:"M17 13a6 6 0 0 0-6-6",key:"15cc6u"}],["path",{d:"M21 13A10 10 0 0 0 11 3",key:"11nf8s"}]]),Fe=a("square-activity",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]]),De=a("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);function He({packets:s,rangeMinutes:a,bucketCount:c}){const d=n(),[m,u]=e.useState(null),[h,x]=e.useState(null),[p,f]=e.useState(null),{buckets:g,activeTypes:v,totalByType:j}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let c=0;ca)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=c.type??c.payload_type??0,d=c.length??c.payload_length??0,m=r[t];m.bytesByType[n]=(m.bytesByType[n]??0)+d,m.totalBytes+=d,o[n]=(o[n]??0)+d}return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),totalByType:o}}(s,a,c),[s,a,c]),b=e.useCallback((e,t,s)=>{u(t),x(s)},[]),y=g.length>0&&v.length>0,N=m?function(e){const t=new Date(1e3*e).getHours();return t>=6&&t<18}(m.start):null,w=m?(k=m.start,new Date(1e3*k).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})):"";var k;const M=null!==p&&null!==N&&p!==N;return N!==p&&f(N),t.jsxs("div",{className:"flex flex-col h-full relative",children:[t.jsx("div",{className:"h-5 relative mb-1 shrink-0",children:m&&null!==h&&t.jsxs("div",{className:"absolute flex items-center gap-1.5 text-sm font-mono tabular-nums -translate-x-1/2",style:{left:`calc(48px + ${100*h}% * (1 - 48px / 100%))`},children:[t.jsx(i,{mode:"wait",children:t.jsx(l.span,{initial:!!M&&{opacity:0,scale:.5,rotate:-90},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.5,rotate:90},transition:{duration:.25,ease:"easeOut"},children:N?t.jsx(X,{className:"w-4 h-4 text-amber-400"}):t.jsx(Y,{className:"w-4 h-4 text-blue-400"})},N?"sun":"moon")}),t.jsx("span",{className:"text-text-secondary",children:w})]})}),t.jsx("div",{className:"flex-1 min-h-0",children:y&&t.jsx(r,{buckets:g,activeTypes:v,gridColor:d.grid,axisTickColor:d.axisTick,onHover:b})}),t.jsx("div",{className:"pt-2 px-1 pb-2 shrink-0",children:y&&t.jsx(o,{activeTypes:v,totalByType:j})})]})}const Ae=e.memo(function({buckets:s,activeTypes:a}){const n=e.useRef(null),i=e.useRef(s),l=e.useRef(a);i.current=s,l.current=a;const r=e.useMemo(()=>[s.map(e=>e.start),s.map(()=>1)],[s]);return e.useEffect(()=>{if(!n.current||0===s.length)return;const e=n.current,t=e.getBoundingClientRect(),a=Math.floor(t.width)||200,o=Math.floor(t.height)||60,u=new c({width:a,height:o,padding:[0,0,0,0],cursor:{show:!1},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],legend:{show:!1},hooks:{draw:[e=>{const t=e.ctx,{left:s,top:a,width:n,height:r}=e.bbox;!function(e,t,s,a,n,i,l){if(0===t.length)return;const r=function(e,t,s){var a,n;if(e.length<=s)return e;const i=e.length/s,l=[];for(let r=0;r0&&(d.bytesByType[s]=(d.bytesByType[s]??0)+t)}}l.push(d)}return l}(t,s,m.statsCard),o=r.length,c=i/o,u=r.map(e=>e.totalBytes).filter(e=>e>0);if(0===u.length)return;const h=Math.max(...u),x=Math.min(...u),p=h-x;for(let m=0;m{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&u.setSize({width:Math.floor(t.width),height:Math.floor(t.height)})});return h.observe(e),()=>{h.disconnect(),u.destroy()}},[r,s.length]),0===s.length?t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})}):t.jsx("div",{ref:n,className:"w-full h-full"})});function Pe({value:s,receivedCount:a,packets:n,rangeMinutes:i,bucketCount:l,timeRangeLabel:r,icon:o,isLoaded:c=!0}){const{buckets:d,activeTypes:m,ratePerHour:h}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let m=0;ma)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=m.type??m.payload_type??0,d=m.length??m.payload_length??0,u=r[t];u.bytesByType[n]=(u.bytesByType[n]??0)+d,u.totalBytes+=d,o[n]=(o[n]??0)+d,c++}const d=t/60;return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),ratePerHour:d>0?Math.round(c/d):0}}(n,i,l),[n,i,l]),x=a>0?(s/a*100).toFixed(1):null;return c?t.jsxs("div",{className:"data-card flex flex-col relative",children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-2 sm:mb-3",children:[o&&t.jsx("span",{className:"icon-sm text-icon-card-title",children:o}),t.jsx("span",{className:"type-micro",children:"FORWARDED"}),r&&t.jsx(u,{color:"zinc",className:"hidden sm:inline-flex",children:r})]}),t.jsx("div",{className:"type-data-xl text-text-primary",children:t.jsx(ee,{value:s,className:"font-mono tabular-nums",priority:"high"})}),t.jsx("div",{className:"flex-1 mt-1 overflow-hidden min-h-[40px] sm:min-h-[60px]",children:m.length>0?t.jsx(Ae,{buckets:d,activeTypes:m}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})})}),t.jsx("div",{className:"pt-1.5 sm:pt-2 mt-1",children:t.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Rate"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[h,"/hr"]})]}),null!==x&&t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Ratio"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[x,"%"]})]})]})})]}):t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})})}function $e({value:s,receivedCount:a,packets:n,rangeMinutes:i,bucketCount:l,timeRangeLabel:r,icon:o,isLoaded:c=!0}){const{buckets:d,activeTypes:m,ratePerHour:h}=e.useMemo(()=>function(e,t,s){const a=Date.now()/1e3,n=60*t,i=a-n,l=n/s,r=[];for(let m=0;ma)continue;const t=Math.min(s-1,Math.floor((e-i)/l)),n=m.type??m.payload_type??0,d=m.length??m.payload_length??0,u=r[t];u.bytesByType[n]=(u.bytesByType[n]??0)+d,u.totalBytes+=d,o[n]=(o[n]??0)+d,c++}const d=t/60;return{buckets:r,activeTypes:Object.keys(o).map(e=>parseInt(e,10)).filter(e=>o[e]>0).sort((e,t)=>o[t]-o[e]),ratePerHour:d>0?Math.round(c/d):0}}(n,i,l),[n,i,l]),x=a>0?(s/a*100).toFixed(1):null;return c?t.jsxs("div",{className:"data-card flex flex-col relative",children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-2 sm:mb-3",children:[o&&t.jsx("span",{className:"icon-sm text-icon-card-title",children:o}),t.jsx("span",{className:"type-micro",children:"DROPPED"}),r&&t.jsx(u,{color:"zinc",className:"hidden sm:inline-flex",children:r})]}),t.jsx("div",{className:"type-data-xl text-text-primary",children:t.jsx(ee,{value:s,className:"font-mono tabular-nums",priority:"high"})}),t.jsx("div",{className:"flex-1 mt-1 overflow-hidden min-h-[40px] sm:min-h-[60px]",children:m.length>0?t.jsx(Ae,{buckets:d,activeTypes:m}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"w-full h-0.5 rounded-full bg-text-muted/15"})})}),t.jsx("div",{className:"pt-1.5 sm:pt-2 mt-1",children:t.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Rate"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[h,"/hr"]})]}),null!==x&&t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"data-box-label",children:"Drop %"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[x,"%"]})]})]})})]}):t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})})}const ze={",":"punc",".":"punc-period",":":"punc-colon","/":"punc-slash"},Ee=/([,\.:\/])/g,Ie=e.memo(function({children:s,className:a="",as:n="span"}){const i=e.useMemo(()=>{let e;return e="number"==typeof s?s.toLocaleString():Array.isArray(s)?s.join(""):String(s??""),Ee.test(e)?(Ee.lastIndex=0,e.split(Ee).map((e,s)=>{const a=ze[e];return a?t.jsx("span",{className:a,children:e},s):e})):e},[s]);return t.jsx(n,{className:`data-tight ${a}`.trim(),children:i})}),qe=.2;function Oe(e,t=1){return Math.floor(5*t*e)}function We(e){const t=Math.round(e/qe)*qe;return Math.max(0,Math.min(5,t))}function Ge({stats:s,receivedBuckets:a,droppedBuckets:n,forwardedBuckets:i,bucketDurationSeconds:l,timeRangeLabel:r,isLoaded:o=!0}){var c,d,m,h;const[x,p]=e.useState(!1);if(!o)return t.jsx("div",{className:"data-card flex flex-col relative",children:t.jsx(G,{})});const f=function(e,t,s,a,n){var i,l;const r=e=>(null==e?void 0:e.reduce((e,t)=>e+t.count,0))??0,o=r(t),c=r(s),d=r(a),m=o||(null==e?void 0:e.rx_count)||1,u=c||(null==e?void 0:e.dropped_count)||0,h=m>0?u/(m+u)*100:0;let x=0;if((null==a?void 0:a.length)&&n)x=100*d/(a.length*n*1e3)*100;else if(e){const t=1e3*(e.uptime_seconds||1);x=(e.total_airtime_ms||e.airtime_used_ms||0)/t*100}const p=(null==e?void 0:e.neighbors)??{},f=Object.values(p).filter(e=>e.zero_hop).length;let g=1;h<3?g-=qe:h>15?g+=.4:h>10&&(g+=qe),x>5&&(g+=qe),f>10&&(g+=qe);const v=We(g),j=We(.28*v),b=Oe(v),y=Oe(j),N=Oe((null==(l=null==(i=null==e?void 0:e.config)?void 0:i.delays)?void 0:l.tx_delay_factor)??1);return{floodFactor:v,directFactor:j,floodSlots:b,directSlots:y,adjustment:b>N?"increase":b{const e=`set txdelay ${f.floodFactor.toFixed(1)}\nset direct.txdelay ${f.directFactor.toFixed(1)}`;try{await navigator.clipboard.writeText(e),p(!0),setTimeout(()=>p(!1),1500)}catch(t){const s=document.createElement("textarea");s.value=e,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select();try{document.execCommand("copy"),p(!0),setTimeout(()=>p(!1),1500)}catch{}document.body.removeChild(s)}},className:"flex gap-3 mb-2 sm:mb-3 w-full text-left hover:bg-white/[0.02] radius-inner transition-base p-1 -m-1 group",title:"Click to copy CLI commands",children:[t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("span",{className:"type-data-xl text-text-primary",children:t.jsxs(Ie,{children:["×",f.floodFactor.toFixed(1)]})}),t.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide mt-0.5 sm:mt-1",children:"Flood"})]}),t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("span",{className:"type-data-xl text-accent-primary",children:t.jsxs(Ie,{children:["×",f.directFactor.toFixed(1)]})}),t.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide mt-0.5 sm:mt-1",children:"Direct"})]}),t.jsx("div",{className:"flex items-center self-center opacity-0 group-hover:opacity-100 transition-opacity",children:x?t.jsx(ue,{className:"w-4 h-4 text-green-400"}):t.jsx(he,{className:"w-4 h-4 text-text-muted"})})]}),t.jsx("div",{className:"flex-1 py-2",children:t.jsxs("div",{className:"flex gap-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"data-box-label",children:"Dupe"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left "+(f.duplicateRate>10?"text-accent-warning":""),children:[f.duplicateRate.toFixed(1),"%"]})]}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"data-box-label",children:"TX Util"}),t.jsxs("div",{className:"data-box data-box-fill data-box-left",children:[f.txUtilization.toFixed(2),"%"]})]})]})}),t.jsxs("div",{className:"pt-2 mt-2",children:[t.jsx("div",{className:"data-box-label",children:"Current"}),t.jsx("div",{className:"flex gap-2",children:null!==g?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"data-box",children:["×",g.toFixed(2)]}),t.jsxs("div",{className:"data-box",style:{color:"var(--accent-primary)"},children:["×",(null==v?void 0:v.toFixed(2))??"—"]})]}):t.jsx("span",{className:"text-sm text-text-muted",children:"No config"})})]})]})}function Ve(){const s=h(),a=x(),n=p(),i=f(),[l,r]=e.useState([]);e.useEffect(()=>{const e=g.subscribe(e=>{r(e)});return r(g.getPendingPackets()),e},[]);const o=e.useMemo(()=>{const e=s.length<=100?s:s.slice(-100),t=new Set(e.map(e=>e.packet_hash));return[...l.filter(e=>!t.has(e.packet.packet_hash)).map(e=>({...e.packet,isPending:!0})),...e].sort((e,t)=>(t.timestamp??0)-(e.timestamp??0))},[s,l]),c=null==i?void 0:i.local_hash,d=null==i?void 0:i.neighbors;return t.jsxs("div",{className:"chart-container h-full flex flex-col !overflow-visible",children:[t.jsxs("div",{className:"chart-header",children:[t.jsxs("div",{className:"chart-title",children:[t.jsx(v,{className:"chart-title-icon"}),"Recent Packets"]}),t.jsxs("div",{className:"flex items-center gap-3",children:[n&&t.jsx(j,{showLabel:!0}),t.jsxs(xe,{to:"/packets",className:"pill-subtle",children:["View all ",t.jsx(ne,{className:"w-3 h-3"})]})]})]}),t.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-1",children:t.jsx(ie,{packets:o,allPackets:s,localHash:c,neighbors:d,loading:a,maxPackets:25,showPagination:!1,flashNewest:!0,emptyMessage:"No packets received",footerAction:t.jsxs(xe,{to:"/packets",className:"pill-subtle",children:["View all ",t.jsx(ne,{className:"w-3 h-3"})]})})})]})}const Ue={stable:"M5 12h14",up:"M5 15l7-7 7 7",down:"M19 9l-7 7-7-7"};function Je({trend:e}){return t.jsx("span",{className:`mini-widget-trend ${e}`,children:t.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:Ue[e]})})})}function Ke(){return t.jsx("div",{className:"mini-widget-loading",children:t.jsx("div",{className:"mini-widget-loading-spinner"})})}function Qe({message:e}){return t.jsx("div",{className:"mini-widget-error",children:t.jsx("span",{title:e,children:"No data"})})}function Xe({title:e,icon:s,value:a,unit:n,valueSize:i="md",status:l,subtitle:r,trend:o,children:c,isLoading:d=!1,error:m,className:u="",onClick:h}){const x=["mini-widget-value","lg"===i&&"mini-widget-value-lg","sm"===i&&"mini-widget-value-sm"].filter(Boolean).join(" "),p=["mini-widget",h&&"cursor-pointer",u].filter(Boolean).join(" ");return t.jsxs("div",{className:p,onClick:h,role:h?"button":void 0,children:[t.jsxs("div",{className:"mini-widget-header",children:[s,t.jsx("span",{className:"mini-widget-title",children:e}),l&&"unknown"!==l&&t.jsx("div",{className:`mini-widget-status-dot ${l}`}),o&&t.jsx(Je,{trend:o})]}),d?t.jsx(Ke,{}):m?t.jsx(Qe,{message:m}):t.jsxs(t.Fragment,{children:[void 0!==a&&t.jsxs("div",{className:x,children:["number"==typeof a?t.jsx(ee,{value:a,className:"font-mono tabular-nums",priority:"medium",format:Number.isInteger(a)?void 0:{minimumFractionDigits:1,maximumFractionDigits:1}}):t.jsx(Ie,{children:a}),n&&t.jsx("span",{className:"mini-widget-unit",children:n})]}),r&&t.jsx("div",{className:"mini-widget-subtitle",children:r}),c]})]})}const Ye={DELTA_CRITICAL:10,SLOPE_CRITICAL:4,JITTER_CRITICAL:6,DELTA_WARNING:5,SLOPE_WARNING:2,JITTER_WARNING:4},Ze={baselineMedian:null,baselineP10:null,baselineP90:null,currentMedian:null,currentSampleCount:0,delta:0,slope:0,jitter:0,penalty:0,penaltyReason:null,computedAt:0,isReliable:!1};function et(e,t){if(0===e.length)return null;const s=[...e].sort((e,t)=>e-t),a=t/100*(s.length-1),n=Math.floor(a),i=Math.ceil(a);return n===i?s[n]:s[n]+(s[i]-s[n])*(a-n)}function tt(e){return et(e,50)}function st(e){if(!e)return[];try{const t=JSON.parse(e);if(Array.isArray(t))return t.map(Number).filter(e=>!isNaN(e))}catch{}return[]}function at(e){return null!=e&&0!==e&&!Object.is(e,-0)&&!(e>-50||e<-130)}function nt(e,t,s=2,a=!1){if(null===t)return"stable";const n=e-t;return(0!==t?100*Math.abs(n/t):Math.abs(n))0?"up":"down":n>0?"down":"up"}const it={lbtStats:null,noiseFloor:null,sparklineNoiseFloor:[],linkQuality:null,channelHealth:null,nfTrend:Ze,radioConfig:null,trends:null,stats:null,recentPackets:[],quickNeighbors:[],isLoading:!0,error:null,refresh:async()=>{}},lt=e.createContext(it);function rt({children:s}){var a;const n=f(),i=h(),l=b(),r=y(),o=N(),c=w[o],d=Math.max(1,c.minutes/60),m=null===n,u=e.useMemo(()=>function(e,t){const s=3600*t,a=Math.floor(Date.now()/1e3)-s,n=e.filter(e=>e.timestamp>=a&&void 0!==e.lbt_attempts&&e.lbt_attempts>0),i=n.length,l=n.filter(e=>(e.lbt_attempts??0)>1).length,r=i>0?l/i*100:0,o=n.filter(e=>(e.lbt_attempts??0)>1),c=o.length>0?o.reduce((e,t)=>e+(t.lbt_attempts??0),0)/o.length:0,d=n.filter(e=>(e.lbt_attempts??0)>=5).length,m=i>0?d/i*100:0,u=[];for(const b of n){const e=st(b.lbt_backoff_delays_ms);u.push(...e)}const h=u.reduce((e,t)=>e+t,0),x=u.length>0?h/u.length:0,p=u.length>0?Math.min(...u):0,f=u.length>0?Math.max(...u):0,g=s/24,v=[],j=[];for(let b=0;b<24;b++){const e=a+b*g,t=e+g,s=n.filter(s=>s.timestamp>=e&&s.timestamp(e.lbt_attempts??0)>1).length,l=s.length>0?i/s.length*100:0,r=[];for(const a of s){const e=st(a.lbt_backoff_delays_ms);r.push(...e)}const o=r.length>0?r.reduce((e,t)=>e+t,0)/r.length:0;if(v.push(o),0===s.length)j.push(0);else{const e=s.filter(e=>(e.lbt_attempts??0)>=5).length,t=r.length>0?Math.max(...r):0,a=Math.min(s.length/5,1),n=.15,i=Math.log(1+l*n)/Math.log(1+100*n)*40,c=e/s.length*100,d=Math.min(.5*c,25);let m=0;o>100&&(m=Math.min(8*Math.log10(o/100),15));let u=0;t>500&&o>0&&t>2*o&&(u=Math.min((t-500)/200,5));const h=i+d+m+u;j.push(Math.min(h*a,85))}}return{totalPacketsWithLBT:i,packetsWithRetries:l,retryRate:r,avgRetries:c,channelBusyCount:d,channelBusyRate:m,avgBackoffMs:x,minBackoffMs:p,maxBackoffMs:f,totalBackoffMs:h,sparklineBackoff:v,sparklineCollisionRisk:j,windowHours:t,packetCount:e.length}}(i,d),[i,d]),x=(null==n?void 0:n.noise_floor_dbm)??null,p=e.useMemo(()=>at(x)?x:null,[x]),g=e.useMemo(()=>{var e;const t=null==(e=null==n?void 0:n.config)?void 0:e.radio;return t?{sf:t.spreading_factor??7,bwHz:t.bandwidth??125e3}:null},[null==(a=null==n?void 0:n.config)?void 0:a.radio]),[v,j]=e.useState([]),M=e.useRef({time:0,hours:0});e.useEffect(()=>{const e=async()=>{var e;const t=Date.now(),s=Math.ceil(d);if(0===M.current.time||M.current.hours!==s||t-M.current.time>=6e4){M.current={time:t,hours:s};try{const t=await k(Math.max(s,24));t.success&&(null==(e=t.data)?void 0:e.history)&&j(t.data.history)}catch{}}};e();const t=setInterval(e,6e4);return()=>clearInterval(t)},[d]);const C=e.useMemo(()=>function(e,t){if(0===e.length)return[];const s=e.reduce((e,t)=>Math.max(e,t.timestamp),0);if(0===s)return[];const a=3600*t,n=s-a,i=a/24,l=[];for(let r=0;r<24;r++){const t=n+r*i,s=t+i,a=e.filter(e=>e.timestamp>=t&&e.timestamp0){const e=a.reduce((e,t)=>e+t.noise_floor_dbm,0)/a.length;l.push(e)}else l.push(l.length>0?l[l.length-1]:-100)}return l}(v,d),[v,d]),L=null==n?void 0:n.neighbors,S=e.useMemo(()=>{const e=L??{};return Object.fromEntries(Object.entries(e).filter(([e])=>!r.has(e)))},[L,r]),_=e.useMemo(()=>l.filter(e=>!r.has(e.hash)),[l,r]),B=e.useMemo(()=>function(e){if(0===e.length)return{...Ze,computedAt:Math.floor(Date.now()/1e3)};const t=Math.floor(Date.now()/1e3),s=e.filter(e=>Number.isFinite(e)),a=e.length>0?[e[e.length-1]]:[],n=e.slice(-4).filter(e=>Number.isFinite(e)),i=tt(s),l=et(s,10),r=et(s,90),o=tt(a),c=null!==o&&null!==l?o-l:0,d=function(e){if(e.length<2)return 0;const t=e.length;let s=0,a=0,n=0,i=0;const l=e[0].timestamp;for(const o of e){const e=(o.timestamp-l)/3600,t=o.value;s+=e,a+=t,n+=e*t,i+=e*e}const r=t*i-s*s;return Math.abs(r)<1e-4?0:(t*n-s*a)/r}(n.map((e,s)=>({timestamp:t-3600*(n.length-1-s),value:e}))),m=function(e){if(e.length<2)return 0;const t=e.reduce((e,t)=>e+t,0)/e.length,s=e.map(e=>Math.pow(e-t,2)).reduce((e,t)=>e+t,0)/e.length;return Math.sqrt(s)}(n),u=s.length>=12,[h,x]=u?function(e,t,s){const a=Ye;return e>=a.DELTA_CRITICAL?[2,`Noise floor ${e.toFixed(1)} dB above baseline`]:t>=a.SLOPE_CRITICAL?[2,`Noise floor rising ${t.toFixed(1)} dB/hour`]:s>=a.JITTER_CRITICAL?[2,`Noise floor unstable (±${s.toFixed(1)} dB)`]:e>=a.DELTA_WARNING?[1,`Noise floor ${e.toFixed(1)} dB above baseline`]:t>=a.SLOPE_WARNING?[1,`Noise floor rising ${t.toFixed(1)} dB/hour`]:s>=a.JITTER_WARNING?[1,`Noise floor variable (±${s.toFixed(1)} dB)`]:[0,null]}(c,d,m):[0,null];return{baselineMedian:i,baselineP10:l,baselineP90:r,currentMedian:o,currentSampleCount:a.length,delta:c,slope:d,jitter:m,penalty:h,penaltyReason:x,computedAt:t,isReliable:u}}(C),[C]),T=e.useMemo(()=>function(e,t,s){if(0===e.length)return{neighbors:[],networkScore:0,neighborCount:0,bestLink:null,worstLink:null};const a=e.map(e=>{const a=function(e,t,s){const a=fe(e,t,s,0);if(a)switch(a.finalGrade){case"excellent":return 100;case"good":return 80;case"fair":return 60;case"poor":return 40;case"critical":return 20}const n=void 0===e?50:e>=10?100:e>=5?80:e>=0?60:e>=-5?40:20,i=void 0===t?50:t>=-70?100:t>=-80?80:t>=-90?60:t>=-100?40:20;return Math.round(.6*n+.4*i)}(e.avgSnr??void 0,e.avgRssi??void 0,s),n=t[e.hash];return{name:(null==n?void 0:n.name)||(null==n?void 0:n.node_name)||e.prefix,hash:e.hash,rssi:e.avgRssi??-100,snr:e.avgSnr??-10,score:a,advertCount:e.count}});a.sort((e,t)=>t.score-e.score);const n=a.length>0?a.reduce((e,t)=>e+t.score,0)/a.length:0;return{neighbors:a,networkScore:Math.round(n),neighborCount:a.length,bestLink:a.length>0?{name:a[0].name,score:a[0].score}:null,worstLink:a.length>0?{name:a[a.length-1].name,score:a[a.length-1].score}:null}}(_,S,g),[_,S,g]),R=e.useMemo(()=>function(e,t,s){const a=e?Math.max(0,Math.min(100,100-5*e.retryRate)):50;let n=50;null!==t&&(n=Math.max(0,Math.min(100,(t+120)/30*100)));const i=(null==s?void 0:s.networkScore)??50,l=Math.round(.35*a+.25*n+.4*i);let r;return r=l>=85?"excellent":l>=70?"good":l>=50?"fair":l>=30?"congested":"critical",{score:l,status:r,components:{lbtHealth:Math.round(a),noiseHealth:Math.round(n),linkHealth:Math.round(i)}}}(u,p,T),[u,p,T]),[F,D]=e.useState({noiseFloor:null,networkScore:null,channelHealth:null}),H=e.useRef(0);e.useEffect(()=>{const e=()=>{const e=Date.now();e-H.current>3e4&&(H.current=e,D({noiseFloor:p,networkScore:(null==T?void 0:T.networkScore)??null,channelHealth:(null==R?void 0:R.score)??null}))};e();const t=setInterval(e,5e3);return()=>clearInterval(t)},[p,null==T?void 0:T.networkScore,null==R?void 0:R.score]);const A=e.useMemo(()=>({noiseFloor:{current:p,previous:F.noiseFloor,trend:null!==p?nt(p,F.noiseFloor,2,!0):"stable"},networkScore:{current:(null==T?void 0:T.networkScore)??0,previous:F.networkScore,trend:nt((null==T?void 0:T.networkScore)??0,F.networkScore,3,!1)},channelHealth:{current:(null==R?void 0:R.score)??0,previous:F.channelHealth,trend:nt((null==R?void 0:R.score)??0,F.channelHealth,3,!1)}}),[p,null==T?void 0:T.networkScore,null==R?void 0:R.score,F]),P={lbtStats:u,noiseFloor:p,sparklineNoiseFloor:C,linkQuality:T,channelHealth:R,nfTrend:B,radioConfig:g,trends:A,stats:n,recentPackets:i,quickNeighbors:l,isLoading:m,error:null,refresh:async()=>{}};return t.jsx(lt.Provider,{value:P,children:s})}function ot(){const t=e.useContext(lt);if(void 0===t)throw new Error("useLBTData must be used within an LBTDataProvider");return t}function ct(e,t){return 0===e?"No backoffs":`${t.toFixed(0)}% retry rate`}function dt(){const{lbtStats:s,isLoading:a,error:n}=ot(),i=pe(),l=(null==s?void 0:s.avgBackoffMs)??0,r=(null==s?void 0:s.retryRate)??0,o=s?(c=l)<100?"excellent":c<250?"good":c<500?"fair":c<1e3?"congested":"critical":"unknown";var c;const d=null==s?void 0:s.sparklineBackoff,m=e.useMemo(()=>!d||d.length<2?[]:d.map((e,t)=>({timestamp:Date.now()-36e5*(d.length-1-t),count:e})),[d]);return t.jsx(Xe,{title:"LBT Backoff",icon:t.jsx(De,{className:"mini-widget-icon"}),value:Math.round(l),unit:"ms",status:o,subtitle:s?ct(l,r):void 0,isLoading:a,error:n,onClick:()=>i("/packets"),children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:m,width:9999,height:24,color:"var(--accent-primary)",isLoading:a,className:"w-full"})})})}function mt(e){return 0===e?"—":e<1?"<1":Math.round(e).toString()}function ut(){const{lbtStats:e,isLoading:s,error:a}=ot(),n=pe(),i=(null==e?void 0:e.channelBusyCount)??0,l=(null==e?void 0:e.totalPacketsWithLBT)??0,r=(null==e?void 0:e.channelBusyRate)??0,o=(null==e?void 0:e.retryRate)??0,c=(null==e?void 0:e.avgBackoffMs)??0,d=(null==e?void 0:e.minBackoffMs)??0,m=(null==e?void 0:e.maxBackoffMs)??0,u=o>0?Math.max(0,(o-r)/o*100):100;return t.jsx(Xe,{title:"Ch. Busy",icon:t.jsx(te,{className:"mini-widget-icon"}),isLoading:s,error:a,onClick:()=>n("/packets"),children:t.jsx("div",{className:"flex-1 flex items-end",children:t.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto_minmax(0,1fr)] gap-x-2 gap-y-2 w-full items-baseline",children:[t.jsx("span",{className:"data-box-label mb-0",title:`${i} packets exceeded max CAD attempts (5) out of ${l} total transmissions.`,children:"Failed:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`${i} packets exceeded max CAD attempts (5) out of ${l} total transmissions.`,children:[t.jsx(Ie,{children:i}),t.jsx("span",{className:"text-text-muted punc-slash",children:"/"}),t.jsx(Ie,{children:l})]}),t.jsx("span",{className:"data-box-label mb-0",title:`${u.toFixed(1)}% of packets that needed LBT retries were sent successfully.`,children:"Sent:"}),t.jsx("div",{className:"data-box justify-self-start",title:`${u.toFixed(1)}% of packets that needed LBT retries were sent successfully.`,children:t.jsxs(Ie,{children:[u.toFixed(0),"%"]})}),t.jsx("span",{className:"data-box-label mb-0",title:`Average LBT backoff delay: ${c.toFixed(0)}ms.`,children:"Mean:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`Average LBT backoff delay: ${c.toFixed(0)}ms.`,children:[t.jsx(Ie,{children:mt(c)}),t.jsx("span",{className:"text-text-muted text-xs",children:"ms"})]}),t.jsx("span",{className:"data-box-label mb-0",title:`Backoff range: ${d.toFixed(0)}ms min, ${m.toFixed(0)}ms max.`,children:"Range:"}),t.jsxs("div",{className:"data-box justify-self-start",title:`Backoff range: ${d.toFixed(0)}ms min, ${m.toFixed(0)}ms max.`,children:[t.jsx(Ie,{children:mt(d)}),t.jsx("span",{className:"text-text-muted punc-slash",children:"/"}),t.jsx(Ie,{children:mt(m)})]})]})})})}function ht(e){return null===e?"No reading":e<-115?"Very quiet":e<-105?"Quiet":e<-95?"Moderate":e<-85?"Elevated":"High interference"}function xt(){const{noiseFloor:s,sparklineNoiseFloor:a,trends:n,isLoading:i,error:l}=ot(),r=null===(o=s)||o<-110?"excellent":o<-100?"good":o<-90?"fair":o<-80?"congested":"critical";var o;const c=null==n?void 0:n.noiseFloor.trend,d=e.useMemo(()=>!a||a.length<2?[]:a.map((e,t)=>({timestamp:Date.now()-36e5*(a.length-1-t),count:-e})),[a]),m=null!==s?Math.round(s):"—";return t.jsx(Xe,{title:"Noise Floor",icon:t.jsx(Se,{className:"mini-widget-icon"}),value:m,unit:null!==s?"dBm":void 0,status:r,trend:c,subtitle:ht(s),isLoading:i,error:l,children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:d,width:9999,height:24,color:"var(--accent-primary)",isLoading:i,className:"w-full"})})})}function pt(){const s=pe(),a=b(),n=h(),i=f(),l=N(),r=60*w[l].minutes,o=M(),c=e.useMemo(()=>{if(0===o)return n;const e=o-r;return n.filter(t=>t.timestamp>=e)},[n,r,o]),d=null===i,m=(null==i?void 0:i.local_hash)?C(i.local_hash):"",u=(null==i?void 0:i.neighbors)??{},{neighborHashes:x,neighborNames:p}=e.useMemo(()=>{const e=new Set,t=new Map;for(const s of a){e.add(s.hash);const a=u[s.hash],n=(null==a?void 0:a.name)||(null==a?void 0:a.node_name)||s.prefix;t.set(s.hash,n)}return{neighborHashes:e,neighborNames:t}},[a,u]),g=e.useMemo(()=>{if(0===x.size||0===c.length||!m)return{champion:null,listener:null,loudest:null};const{scores:e}=Z(c,x,m),t=[];for(const[i,l]of e)0!==l.blendedScore&&t.push({...l,name:p.get(i)??C(i)});let s=null,a=null,n=null;for(const i of t)(!s||i.blendedScore>s.blendedScore)&&(s=i),(!a||i.listenerScore>a.listenerScore)&&(a=i),(!n||i.loudScore>n.loudScore)&&(n=i);return{champion:s,listener:a,loudest:n}},[c,x,m,p]),{champion:v,listener:j,loudest:y}=g,k=v||j||y?t.jsxs("div",{className:"flex flex-col gap-0.5 mt-auto",children:[v&&t.jsx(L,{content:(S=v,t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["🏆 Champion: ",S.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Blended Score: ",S.blendedScore,t.jsx("span",{className:"text-text-muted/60 ml-1",children:"(Listener + Loud)"})]}),t.jsxs("div",{className:"border-t border-border-subtle pt-1 mt-1 space-y-0.5",children:[t.jsxs("div",{children:["Listener: ",S.listenerScore,"/100 (",S.listenerCount," shared paths)"]}),t.jsxs("div",{children:["Loud: ",S.loudScore,"/100 (",S.loudCount," packets relayed)"]})]})]})),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(le,{className:"w-3 h-3 text-map-neighbor-color flex-shrink-0"}),t.jsx("span",{className:"font-semibold text-map-neighbor-color font-mono truncate flex-1 min-w-0",children:v.name}),t.jsx("span",{className:"text-map-neighbor-color pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:v.blendedScore})]})}),j&&t.jsx(L,{content:(e=>t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["👂 Best Listener: ",e.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Score: ",e.listenerScore,"/100"]}),t.jsx("div",{className:"border-t border-border-subtle pt-1 mt-1",children:t.jsxs("div",{children:[e.listenerCount," packets where they heard your transmissions"]})})]}))(j),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(_e,{className:"w-3 h-3 text-text-muted flex-shrink-0"}),t.jsx("span",{className:"text-text-muted font-mono truncate flex-1 min-w-0",children:j.name}),t.jsx("span",{className:"text-text-muted pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:j.listenerScore})]})}),y&&t.jsx(L,{content:(e=>t.jsxs("div",{className:"max-w-[220px]",children:[t.jsxs("div",{className:"font-semibold mb-1",children:["📢 Loudest: ",e.name]}),t.jsxs("div",{className:"text-text-muted mb-1",children:["Score: ",e.loudScore,"/100"]}),t.jsx("div",{className:"border-t border-border-subtle pt-1 mt-1",children:t.jsxs("div",{children:[e.loudCount," packets they relayed directly to you"]})})]}))(y),children:t.jsxs("div",{className:"flex items-center gap-1 text-sm radius-badge px-1 -mx-1 hover-bg transition-base cursor-default",children:[t.jsx(Be,{className:"w-3 h-3 text-text-muted flex-shrink-0"}),t.jsx("span",{className:"text-text-muted font-mono truncate flex-1 min-w-0",children:y.name}),t.jsx("span",{className:"text-text-muted pl-2 tabular-nums flex-shrink-0 w-9 text-right",children:y.loudScore})]})})]}):0===a.length?t.jsx("div",{className:"flex items-center justify-center text-sm text-text-muted mt-auto",children:"No direct neighbors"}):t.jsx("div",{className:"flex items-center justify-center text-sm text-text-muted mt-auto",children:"No routing data yet"});var S;return t.jsx(Xe,{title:"Link Leaders",icon:t.jsx(Re,{className:"mini-widget-icon"}),isLoading:d,onClick:()=>s("/contacts"),children:k})}function ft(){const{lbtStats:s,isLoading:a,error:n}=ot(),i=s?function(e){const{retryRate:t,channelBusyCount:s,totalPacketsWithLBT:a,avgBackoffMs:n,maxBackoffMs:i}=e;if(0===a)return 0;const l=Math.min(a/10,1),r=Math.log(1+.15*t)/Math.log(16)*40,o=s/a*100,c=Math.min(.5*o,25);let d=0;n>100&&(d=Math.min(8*Math.log10(n/100),15));let m=0;i>500&&n>0&&i>2*n&&(m=Math.min((i-500)/200,5));const u=(r+c+d+m)*l;return Math.min(u,85)}(s):0,l=s?(r=i)<15?"excellent":r<30?"good":r<45?"fair":r<60?"congested":"critical":"unknown";var r;const o=(null==s?void 0:s.maxBackoffMs)??0,c=s?o>200?`Max backoff: ${Math.round(o)}ms`:function(e){return e<15?"Clear channel":e<30?"Light traffic":e<45?"Moderate traffic":e<60?"Heavy traffic":e<75?"Congested":"Severe congestion"}(i):void 0,d=null==s?void 0:s.sparklineCollisionRisk,m=e.useMemo(()=>!d||d.length<2?[]:d.map((e,t)=>({timestamp:Date.now()-36e5*(d.length-1-t),count:e})),[d]),u=Math.round(10*i)/10;return t.jsx(Xe,{title:"Collision Risk",icon:t.jsx(ge,{className:"mini-widget-icon"}),value:u,unit:"%",status:l,subtitle:c,isLoading:a,error:n,children:t.jsx("div",{className:"mini-widget-sparkline w-full",children:t.jsx(de,{data:m,width:9999,height:24,color:"var(--accent-primary)",isLoading:a,className:"w-full"})})})}function gt(){const[s,a]=e.useState(!1),[n]=e.useState(0),{stats:i,lbtStats:l,isLoading:r}=ot(),o=e.useMemo(()=>{if(!i)return null;const e=i.airtime_used_ms??0,t=i.max_airtime_ms??1;return{usedMs:e,maxMs:t,remainingMs:i.airtime_remaining_ms??0,utilizationPercent:i.utilization_percent??(t>0?e/t*100:0)}},[i]),c=e.useMemo(()=>l&&0!==l.totalPacketsWithLBT?(l.totalPacketsWithLBT-l.packetsWithRetries)/l.totalPacketsWithLBT*100:100,[l]),d=(null==o?void 0:o.utilizationPercent)??0,m=(u=d)<30?"excellent":u<50?"good":u<70?"fair":u<90?"congested":"critical";var u;const h=(null==o?void 0:o.remainingMs)??0,x=c<95?`${c.toFixed(0)}% clean TX`:((p=h)<1e3?`${Math.round(p)}ms`:p<6e4?`${(p/1e3).toFixed(1)}s`:`${(p/6e4).toFixed(1)}m`)+" remaining";var p;const f=o?t.jsx("div",{className:"mini-widget-progress mt-auto",children:t.jsx("div",{className:`mini-widget-progress-bar ${m}`,style:{width:`${Math.min(d,100)}%`}})}):null;return t.jsx(Xe,{title:"Duty Cycle",icon:t.jsx(v,{className:"mini-widget-icon"}),value:d.toFixed(1),unit:"%",status:m,subtitle:x,isLoading:r,children:f})}function vt(){return t.jsxs("div",{className:"mini-widget",children:[t.jsxs("div",{className:"mini-widget-header",children:[t.jsx(V,{className:"w-4 h-4"}),t.jsx(V,{className:"h-3 w-16"})]}),t.jsx(V,{className:"h-7 w-12 mt-2"}),t.jsx(V,{className:"h-3 w-20 mt-2"})]})}function jt(){return t.jsx("div",{className:"widget-row",children:Array.from({length:6}).map((e,s)=>t.jsx(vt,{},s))})}function bt({className:e="",isLoaded:s=!0}){return t.jsxs("div",{className:`mesh-health-container relative ${e}`,children:[t.jsxs("div",{className:"mesh-health-header",children:[t.jsx(Fe,{className:"w-4 h-4 text-accent-primary"}),t.jsx("span",{className:"type-label text-text-muted",children:"MESH HEALTH"})]}),s?t.jsx(rt,{children:t.jsxs("div",{className:"widget-row",children:[t.jsx(dt,{}),t.jsx(ft,{}),t.jsx(xt,{}),t.jsx(gt,{}),t.jsx(ut,{}),t.jsx(pt,{})]})}):t.jsx(jt,{})]})}const yt={sm:{button:"w-3 h-3",icon:"w-1.5 h-1.5",stroke:"ring-1"},md:{button:"w-3.5 h-3.5",icon:"w-2 h-2",stroke:"ring-1"},lg:{button:"w-4 h-4",icon:"w-2.5 h-2.5",stroke:"ring-[1.5px]"}},Nt=e.forwardRef(function({size:e="md",showIconOnHover:a=!0,className:n,...i},l){const r=yt[e];return t.jsx("button",{ref:l,type:"button","aria-label":"Close",className:s("group relative inline-flex items-center justify-center rounded-full","transition-all duration-150 ease-out",r.button,"bg-[#FF5F57]",r.stroke,"ring-inset ring-[#E0443E]","hover:bg-[#FF6961]","active:bg-[#E04840] active:scale-95","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-[#FF5F57] focus-visible:ring-offset-bg-base",n),...i,children:a&&t.jsx("svg",{className:s(r.icon,"opacity-0 group-hover:opacity-100 transition-opacity duration-100","text-[#4A0000]"),fill:"none",viewBox:"0 0 10 10",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",children:t.jsx("path",{d:"M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5"})})})});let wt="",kt="",Mt="";function Ct(e){!function(){const e=new Date,t=e.toDateString();if(t!==Mt){Mt=t,wt=t;const s=new Date(e);s.setDate(s.getDate()-1),kt=s.toDateString()}}();const t=new Date(1e3*e).toDateString();return t===wt?"Today":t===kt?"Yesterday":new Date(1e3*e).toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"})}function Lt(e){const t=["#22c55e","#3b82f6","#f59e0b","#ec4899","#8b5cf6","#06b6d4","#f97316","#84cc16"];let s=0;for(let a=0;a0?{emoji:t[0],cleanName:e.replace(St,"").trim()||e}:{emoji:null,cleanName:e}}function Bt(e){const{cleanName:t}=_t(e),s=t.split(/[\s-_]+/).filter(Boolean);return s.length>=2?((Array.from(s[0])[0]||"")+(Array.from(s[1])[0]||"")).toUpperCase():Array.from(t).slice(0,2).join("").toUpperCase()}function Tt(e,t,s){return`${e||""}|${t}|${s}`}function Rt(e){const s=/@\[([^\]]+)\]/g,a=[];let n,i=0;for(;null!==(n=s.exec(e));)n.index>i&&a.push(e.slice(i,n.index)),a.push(t.jsx("span",{className:"font-extrabold text-white",children:n[1]},n.index)),i=n.index+n[0].length;return i0?a:e}const Ft=e.memo(function({message:e,onChannelClick:a,isChannelSelected:n}){const i=e.senderName||"Unknown",{emoji:l,cleanName:r}=_t(i),o=Lt(r),c=Bt(i),d=e.channelName||e.channelHash.slice(0,6);return t.jsxs("div",{className:"flex items-start gap-3 w-full",style:{transform:"translateZ(0)",willChange:"transform"},children:[t.jsxs("div",{className:"flex-shrink-0 w-9 flex flex-col items-center gap-1",children:[t.jsx("div",{className:s("w-9 h-9 rounded-full flex items-center justify-center","shadow-md ring-1 ring-white/10",l?"text-lg":"text-white text-[13px] font-bold tracking-tight"),style:{backgroundColor:o},children:l||c}),t.jsx("span",{className:"text-[10px] text-text-muted tabular-nums h-4 leading-4",children:(m=e.timestamp,new Date(1e3*m).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}))})]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2 h-5 mb-1",children:[t.jsx("span",{className:"text-[13px] font-medium truncate",style:{color:o,lineHeight:"20px"},children:r}),t.jsx("button",{onClick:()=>null==a?void 0:a(e.channelHash),className:s("px-2 rounded text-[10px] font-medium flex-shrink-0","ring-1 ring-inset h-5 leading-5",n?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:d})]}),t.jsx("div",{className:s("inline-block px-3.5 py-2.5 max-w-full","rounded-2xl rounded-tl-md","bg-[#007AFF]"),children:t.jsx("p",{className:"text-sm text-white leading-relaxed tracking-wide whitespace-pre-wrap break-words",children:Rt(e.text)})})]})]});var m},function(e,t){const s=e.message,a=t.message;return s.timestamp===a.timestamp&&s.text===a.text&&s.senderName===a.senderName&&s.channelHash===a.channelHash&&s.channelName===a.channelName&&e.isChannelSelected===t.isChannelSelected&&e.onChannelClick===t.onChannelClick});function Dt({open:a,onClose:n,messages:i,onLoadMore:l,hasMoreToLoad:r,isDecoding:o}){const c=e.useRef(null),d=e.useRef(!0),m=N(),u=H(),h=e.useRef(!1);e.useEffect(()=>{a?(h.current=!0,A.resume()):h.current&&A.pause()},[a]);const x=e.useMemo(()=>{const e=Date.now()/1e3-60*w[m].minutes;return[...i].filter(t=>t.timestamp>=e).sort((e,t)=>e.timestamp-t.timestamp)},[i,m]),p=e.useCallback(()=>{const e=c.current;e&&(d.current=e.scrollTop>=-50)},[]),f=e.useMemo(()=>{const e=new Map;for(const t of x){const s=t.channelHash,a=e.get(s);a?a.count++:e.set(s,{name:t.channelName||t.channelHash.slice(0,6),hash:t.channelHash,count:1})}return Array.from(e.values()).sort((e,t)=>t.count-e.count)},[x]),g=f.length,[v,j]=e.useState(null),[b,y]=e.useState(!1),k=e.useCallback(()=>{l(v,f)},[l,v,f]),M=e.useMemo(()=>v?x.filter(e=>e.channelHash===v):x,[x,v]),C=e.useMemo(()=>{const e=[];let t="";for(const s of M){const a=Ct(s.timestamp);a!==t&&(e.push({type:"date",date:a}),t=a),e.push({type:"message",message:s})}return e},[M]);e.useLayoutEffect(()=>{const e=c.current;e&&d.current&&(e.scrollTop=0)},[M.length]);const L=f.slice(0,19),S=f.slice(19),_=S.length>0;return t.jsxs(P,{open:a,onClose:n,size:"lg",motionPlus:!0,solid:!0,children:[t.jsx(Nt,{onClick:n,size:"md",style:{position:"absolute",top:12,right:12,zIndex:10}}),t.jsxs($,{className:"p-0 flex flex-col h-[80vh] max-h-[700px] rounded-2xl",children:[t.jsx("div",{className:"flex-shrink-0 px-5 py-4 pr-12",children:t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Te,{className:"size-5 text-icon-card-title flex-shrink-0"}),t.jsx("h2",{className:"text-base font-semibold text-text-primary",children:"Public Channels"})]}),t.jsx(se,{ranges:w,selectedIndex:m,onSelect:u,size:"micro"})]})}),t.jsx("div",{className:"flex-shrink-0 px-3 pb-2 relative z-10 isolate",style:{minHeight:g>0?void 0:0},children:g>0&&t.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.jsx("button",{onClick:()=>j(null),className:s("px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",null===v?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:"All"}),L.map(e=>t.jsx("button",{onClick:()=>j(e.hash),className:s("flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",v===e.hash?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:t.jsx("span",{className:"truncate max-w-[80px]",children:e.name})},e.hash)),_&&t.jsxs("div",{className:"relative",children:[t.jsxs("button",{onClick:()=>y(!b),className:s("flex items-center gap-0.5 px-2 py-0.5 rounded text-[10px] font-medium transition-all","ring-1 ring-inset",b||S.some(e=>e.hash===v)?"bg-accent-primary/20 text-accent-primary ring-accent-primary/30":"bg-white/5 text-text-secondary ring-white/10 hover:bg-white/10"),children:["+",S.length,t.jsx(z,{className:s("size-3 transition-transform",b&&"rotate-180")})]}),b&&t.jsx("div",{className:s("absolute top-full left-0 mt-1 z-50","min-w-[140px] max-h-[200px] overflow-y-auto","p-1 rounded-lg","bg-bg-elevated backdrop-blur-xl","ring-1 ring-border-subtle shadow-xl"),children:S.map(e=>t.jsxs("button",{onClick:()=>{j(e.hash),y(!1)},className:s("w-full flex items-center gap-1.5 px-2 py-1 rounded text-[10px] font-medium transition-all text-left",v===e.hash?"bg-accent-primary/20 text-accent-primary":"text-text-secondary hover:bg-white/10"),children:[t.jsx(ye,{className:"size-2.5 opacity-60 flex-shrink-0"}),t.jsx("span",{className:"truncate",children:e.name}),t.jsxs("span",{className:"opacity-60 ml-auto",children:["(",e.count,")"]})]},e.hash))})]})]})}),t.jsx("div",{ref:c,onScroll:p,className:s("flex-1 overflow-y-auto overflow-x-hidden","mx-3 mb-3 rounded-md","bg-bg-0","ring-1 ring-inset ring-white/10","flex flex-col-reverse"),children:o&&0===M.length?t.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[300px] text-text-muted px-4 py-4",children:[t.jsx(Ne,{className:"size-12 mb-4 text-accent-purple animate-spin"}),t.jsx("p",{className:"text-lg font-medium",children:"Loading messages..."})]}):0===M.length?t.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[300px] text-text-muted px-4 py-4",children:[t.jsx(me,{className:"size-16 mb-4 opacity-20"}),t.jsx("p",{className:"text-lg font-medium",children:"No messages yet"}),t.jsx("p",{className:"text-sm mt-1 opacity-70",children:v?"No messages in this channel":"Public channel messages will appear here"})]}):t.jsxs("div",{className:"px-4 py-4",children:[r&&t.jsx("div",{className:"flex justify-center mb-4",children:t.jsx("button",{onClick:k,disabled:o,className:s("px-4 py-1.5 rounded-full","text-[11px] font-medium","ring-1 ring-inset",o?"bg-white/5 text-text-muted ring-white/5 cursor-wait":"bg-accent-primary/10 text-accent-primary ring-accent-primary/20 hover:bg-accent-primary/20 hover:ring-accent-primary/30"),children:o?t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Ne,{className:"size-3 animate-spin"}),"Loading..."]}):"Load older messages"})}),C.map((e,a)=>{if("date"===e.type)return t.jsx("div",{className:"flex justify-center my-4",children:t.jsx("span",{className:s("px-3.5 py-1.5 rounded-full","bg-white/5 backdrop-blur-sm","text-[11px] text-text-muted/80 font-medium","ring-1 ring-white/5"),children:e.date})},`date-${e.date}-${a}`);const n=`msg-${e.message.timestamp}-${e.message.senderName||"anon"}-${e.message.channelHash}`;return t.jsx("div",{className:"mb-3",children:t.jsx(Ft,{message:e.message,onChannelClick:j,isChannelSelected:v===e.message.channelHash})},n)})]})}),t.jsx("div",{className:"flex-shrink-0 px-5 py-2 text-center",children:t.jsxs("p",{className:"text-[11px] text-text-muted",children:[M.length," messages · ",g," ",1===g?"channel":"channels",o&&t.jsxs("span",{className:"ml-2 text-accent-purple",children:[t.jsx(Ne,{className:"inline size-3 animate-spin mr-1"}),"Decrypting..."]})]})})]})]})}function Ht({isLoaded:a=!0}){const n=h(),[r,o]=e.useState(!1),c=N(),d=e.useCallback(()=>{o(!0),S.getState().queueDecryption(n)},[n]),m=_(),u=B(),x=T(),p=e.useMemo(()=>function(e){const t=[],s=new Set;for(const a of e.values()){const e=a.decoded;if(!e||!e.decrypted||e.macCorrupted||!e.text)continue;const n=Tt(e.senderName,e.channelHash,e.text);s.has(n)||(s.add(n),t.push({timestamp:a.timestamp,channelName:e.channelName,channelHash:e.channelHash,senderName:e.senderName,text:e.text,rssi:a.rssi,snr:a.snr}))}return t}(m),[m]),f=e.useMemo(()=>{const e=Date.now()/1e3-60*w[c].minutes;return p.filter(t=>t.timestamp>=e)},[p,c]),g=e.useMemo(()=>0===f.length?null:f.reduce((e,t)=>t.timestamp>e.timestamp?t:e),[f]),v=u.isDecoding,j=e.useMemo(()=>{const e=Date.now()/1e3-60*w[c].minutes,t=new Set;let s=0;for(const a of n)(a.type??a.payload_type)===R.GRP_TXT&&((a.timestamp??0){const e=Date.now()/1e3-60*w[c].minutes;for(const t of n)if((t.type??t.payload_type)===R.GRP_TXT&&!((t.timestamp??0){if(!v){if(e){const s=t.find(t=>t.hash===e);if(s)return void S.getState().queueChannelDecryption(n,s.name)}S.getState().queueDecryption(n)}},[n,v]);return a?t.jsxs(t.Fragment,{children:[t.jsx("div",{onClick:d,className:s("group cursor-pointer rounded-xl transition-all duration-150","ring-1 ring-inset ring-white/10 hover:ring-accent-primary/50","hover:bg-white/[0.02]","px-3 py-2.5 sm:px-4 sm:py-3"),children:t.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 flex-shrink-0",children:[t.jsx(Te,{className:"size-4 text-icon-card-title flex-shrink-0"}),t.jsx("span",{className:"type-micro",children:"CHAT ACTIVITY"}),j>0&&t.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm tabular-nums text-text-secondary",children:j}),t.jsx(be,{className:"size-4 text-text-muted group-hover:text-accent-purple transition-colors ml-auto sm:hidden"})]}),t.jsxs("div",{className:"flex items-center gap-2 sm:gap-1.5 min-w-0 overflow-hidden",children:[t.jsx(i,{mode:"wait",initial:!1,children:g?t.jsxs(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex items-center gap-2 sm:gap-1.5 min-w-0",children:[g.channelName&&t.jsxs("span",{className:"hidden sm:inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm text-text-secondary flex-shrink-0",children:["#",g.channelName.replace(/^#/,"")]}),t.jsx("div",{className:"hidden sm:flex w-[30px] h-[30px] rounded-full items-center justify-center flex-shrink-0 ring-1 ring-white/10",style:{backgroundColor:Lt(_t(g.senderName||"").cleanName)},children:_t(g.senderName||"").emoji?t.jsx("span",{className:"text-base",children:_t(g.senderName||"").emoji}):t.jsx("span",{className:"text-white text-xs font-bold tracking-tighter",children:Bt(g.senderName||"")})}),t.jsx("div",{className:"inline-flex items-center px-3 py-1.5 rounded-2xl rounded-tr-md bg-[#007AFF] shadow-sm min-w-0 flex-1 sm:flex-initial sm:max-w-xs sm:-ml-px",children:t.jsx("span",{className:"text-sm text-white truncate tracking-wide",children:Rt(g.text)})}),t.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-white/5 ring-1 ring-inset ring-white/10 text-sm tabular-nums text-text-secondary flex-shrink-0",children:D(g.timestamp)})]},`msg-${g.timestamp}-${g.senderName}-${g.channelHash}`):x?t.jsx(l.span,{initial:{opacity:0},animate:{opacity:1},className:"text-sm text-text-muted italic",children:"No messages yet"},"empty"):t.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-16},transition:{duration:.15},className:"flex items-center gap-2 sm:gap-1.5",children:[t.jsx("div",{className:"hidden sm:block w-8 h-4 rounded bg-white/10 animate-pulse"}),t.jsx("div",{className:"hidden sm:block w-[30px] h-[30px] rounded-full bg-white/10 animate-pulse"}),t.jsx("div",{className:"h-8 w-32 sm:w-48 rounded-2xl bg-white/10 animate-pulse"}),t.jsx("div",{className:"w-12 h-6 rounded-md bg-white/10 animate-pulse"})]},"skeleton")}),t.jsx(be,{className:"size-4 text-text-muted group-hover:text-accent-purple transition-colors flex-shrink-0 hidden sm:block ml-1"})]})]})}),t.jsx(Dt,{open:r,onClose:()=>o(!1),messages:p,onLoadMore:k,hasMoreToLoad:y,isDecoding:v})]}):t.jsx("div",{className:"h-14 rounded-xl bg-bg-elevated/50 animate-pulse"})}function At(){var s,a;const n=f(),i=E(),l=h(),r=I(),o=e.useRef(!1);r&&!o.current&&(o.current=!0);const c=o.current,d=N(),m=H(),x=q(),p=w[d],g=5===d&&!x.threeDayLoadComplete,v=6===d&&!x.sevenDayLoadComplete,j=7===d&&!x.fourteenDayLoadComplete,b=x.isBackgroundLoading&&(g||v||j),y=null==(s=null==n?void 0:n.config)?void 0:s.radio,k=e.useMemo(()=>y?{sf:y.spreading_factor??10,bw:y.bandwidth??25e4,cr:y.coding_rate??5,preamble:y.preamble_length??8}:null,[y]),M=l.length,C=e.useMemo(()=>M?O(p.minutes,p.buckets,l,n):null,[M,p.minutes,p.buckets,k]),L=e.useMemo(()=>{const e=e=>(null==e?void 0:e.reduce((e,t)=>e+t.count,0))??0,t=e(null==C?void 0:C.received),s=e(null==C?void 0:C.unique_received),a=e(null==C?void 0:C.forwarded),n=e(null==C?void 0:C.dropped),i=e(null==C?void 0:C.transmitted),l=((null==C?void 0:C.time_range_minutes)??p.minutes)/60;return{received:t,uniqueReceived:s,forwarded:a,dropped:n,transmitted:i,rxPerHour:l>0?Math.round(t/l):0,fwdPerHour:l>0?Math.round(a/l):0}},[C,p.minutes]),S=e.useMemo(()=>{if(!l.length)return{totalBytes:0,kbPerHour:0};const e=Date.now()/1e3,t=e-60*p.minutes;let s=0;for(const n of l)n.transmitted||n.timestampe||(s+=n.length??n.payload_length??0);const a=p.minutes/60;return{totalBytes:s,kbPerHour:a>0?Math.round(s/1024/a):0}},[l,p.minutes]),_=(null==n?void 0:n.node_name)??(null==(a=null==n?void 0:n.config)?void 0:a.node_name)??"Unknown Node";return e.useEffect(()=>{_&&"Unknown Node"!==_&&(document.title=`pyMC: ${_}`)},[_]),i?t.jsxs(U,{className:"p-8 text-center",children:[t.jsx("p",{className:"type-subheading text-accent-red mb-2",children:"Failed to connect to backend"}),t.jsx("p",{className:"type-body text-white/50",children:i}),t.jsx("p",{className:"type-data-sm text-white/40 mt-4",children:"Make sure the backend is running on port 8000"})]}):t.jsxs(J,{children:[t.jsx(K,{title:_,icon:t.jsx(we,{}),controls:t.jsx(se,{ranges:w,selectedIndex:d,onSelect:m,isPending:b})}),t.jsxs(Q,{children:[t.jsx(Ht,{isLoaded:c}),t.jsx(ke,{template:"hero-auto",children:t.jsxs(U,{compact:!0,children:[t.jsx(Ce,{icon:t.jsx(W,{}),title:"PACKETS RECEIVED",badge:p.label,badgeColor:"zinc",actions:c?t.jsxs("div",{className:"data-box",children:[S.kbPerHour," KB/hr"]}):t.jsx("div",{className:"data-box opacity-0",children:"0 KB/hr"})}),t.jsxs("div",{className:"flex flex-wrap gap-4 sm:gap-8",children:[t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:c?t.jsx(ee,{value:L.received,className:"font-mono tabular-nums",priority:"high"}):t.jsx("span",{className:"opacity-30",children:"—"})}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"Total Rx"})]}),t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:c?t.jsx(ee,{value:L.uniqueReceived,className:"font-mono tabular-nums",priority:"high"}):t.jsx("span",{className:"opacity-30",children:"—"})}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"Unique"})]})]}),t.jsxs("div",{className:"mt-2 packet-byte-chart-height relative",children:[t.jsx("div",{className:"absolute inset-0 flex items-end gap-1 transition-opacity duration-300 "+(c?"opacity-0 pointer-events-none":"opacity-100"),"aria-hidden":c,children:[45,72,33,58,80,42,65,28,55,75,38,62].map((e,s)=>t.jsx("div",{className:"flex-1 bg-subtle-fill rounded-sm animate-pulse",style:{height:`${e}%`}},s))}),t.jsx("div",{className:"h-full transition-opacity duration-300 "+(c?"opacity-100":"opacity-0"),children:t.jsx(He,{packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets})})]})]})}),t.jsxs(ke,{template:"compact",children:[t.jsx(Me,{span:6,lg:4,children:t.jsx(Pe,{value:L.forwarded,receivedCount:L.received,packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets,timeRangeLabel:p.label,icon:t.jsx(Le,{className:"w-4 h-4"}),isLoaded:c})}),t.jsx(Me,{span:6,lg:4,children:t.jsx($e,{value:L.dropped,receivedCount:L.received,packets:l,rangeMinutes:p.minutes,bucketCount:p.buckets,timeRangeLabel:p.label,icon:t.jsx(ve,{className:"w-4 h-4"}),isLoaded:c})}),t.jsx(Me,{span:12,lg:4,children:t.jsx(Ge,{stats:n,receivedBuckets:null==C?void 0:C.received,droppedBuckets:null==C?void 0:C.dropped,forwardedBuckets:null==C?void 0:C.forwarded,bucketDurationSeconds:null==C?void 0:C.bucket_duration_seconds,timeRangeLabel:p.label,isLoaded:c})})]}),t.jsx(bt,{isLoaded:c}),t.jsx(Ve,{}),n&&t.jsx(ke,{template:"auto",children:t.jsx(je,{nodeName:_,repeaterVersion:n.version,coreVersion:n.core_version,localHash:n.local_hash,publicKey:n.public_key})})]})]})}export{At as default}; diff --git a/frontend/dist/assets/DataBox-ihLFk7Um.js b/frontend/dist/assets/DataBox-sJHphnZd.js similarity index 97% rename from frontend/dist/assets/DataBox-ihLFk7Um.js rename to frontend/dist/assets/DataBox-sJHphnZd.js index 0a7e8556..17b606d0 100644 --- a/frontend/dist/assets/DataBox-ihLFk7Um.js +++ b/frontend/dist/assets/DataBox-sJHphnZd.js @@ -1 +1 @@ -import{r as e,j as t,c as o}from"./vendor-react-BKIq8k5U.js";import{c}from"./index-_WuEOacy.js";const a=c("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),n=c("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),s={standard:"w-3 h-3",compact:"w-2.5 h-2.5",responsive:"w-2.5 h-2.5 sm:w-3 sm:h-3"};function r({children:c,copyValue:r,copy:i=!1,size:l="standard",className:p,title:d,color:u,truncate:m}){const[h,x]=e.useState(!1),[y,w]=e.useState(!1),f=e.useRef(null),v=r??("string"==typeof c?c:""),b=s[l],g=(()=>{if(!m||"string"!=typeof c)return c;const e=c,[t,o]=!0===m?[6,4]:m;return e.length<=t+o+3?e:`${e.slice(0,t)}…${e.slice(-o)}`})(),j=e.useCallback(e=>{i&&(e.preventDefault(),e.stopPropagation(),f.current&&clearTimeout(f.current),function(e){var t;if("undefined"!=typeof window&&(window.isSecureContext||"https:"===window.location.protocol||"localhost"===window.location.hostname)&&(null==(t=navigator.clipboard)?void 0:t.writeText))return navigator.clipboard.writeText(e).catch(()=>{}),!0;try{const{scrollX:t,scrollY:o}=window,c=document.createElement("textarea");c.value=e,c.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",c.setAttribute("readonly",""),document.body.appendChild(c),c.focus({preventScroll:!0}),c.select(),c.setSelectionRange(0,e.length);const a=document.execCommand("copy");return document.body.removeChild(c),window.scrollTo(t,o),a}catch(o){return!1}}(v),x(!0),f.current=setTimeout(()=>x(!1),2e3))},[i,v]),C="compact"===l?"data-box-compact":"responsive"===l?"data-box-responsive":"",k=i?d||`Click to copy: ${v}`:d;return i?t.jsxs("button",{type:"button",onClick:j,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:o("data-box interactive",C,"cursor-pointer select-none gap-1","hover-bg",u,p),title:k,"aria-label":`Copy ${v}`,children:[t.jsx("span",{className:o("transition-colors duration-200",h?"text-accent-success":""),children:g}),t.jsx("span",{className:o("flex items-center justify-center","compact"===l?"w-3 h-3":"w-3.5 h-3.5"),children:h?t.jsx(a,{className:o("text-accent-success",b)}):t.jsx(n,{className:o("transition-opacity duration-200",y?"opacity-70":"opacity-40",b)})})]}):t.jsx("span",{className:o("data-box",C,u,p),title:k,children:g})}export{a as C,r as D,n as a}; +import{r as e,j as t,c as o}from"./vendor-react-BKIq8k5U.js";import{c}from"./index-CrU_Ps9k.js";const a=c("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),n=c("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),s={standard:"w-3 h-3",compact:"w-2.5 h-2.5",responsive:"w-2.5 h-2.5 sm:w-3 sm:h-3"};function r({children:c,copyValue:r,copy:i=!1,size:l="standard",className:p,title:d,color:u,truncate:m}){const[h,x]=e.useState(!1),[y,w]=e.useState(!1),f=e.useRef(null),v=r??("string"==typeof c?c:""),b=s[l],g=(()=>{if(!m||"string"!=typeof c)return c;const e=c,[t,o]=!0===m?[6,4]:m;return e.length<=t+o+3?e:`${e.slice(0,t)}…${e.slice(-o)}`})(),j=e.useCallback(e=>{i&&(e.preventDefault(),e.stopPropagation(),f.current&&clearTimeout(f.current),function(e){var t;if("undefined"!=typeof window&&(window.isSecureContext||"https:"===window.location.protocol||"localhost"===window.location.hostname)&&(null==(t=navigator.clipboard)?void 0:t.writeText))return navigator.clipboard.writeText(e).catch(()=>{}),!0;try{const{scrollX:t,scrollY:o}=window,c=document.createElement("textarea");c.value=e,c.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",c.setAttribute("readonly",""),document.body.appendChild(c),c.focus({preventScroll:!0}),c.select(),c.setSelectionRange(0,e.length);const a=document.execCommand("copy");return document.body.removeChild(c),window.scrollTo(t,o),a}catch(o){return!1}}(v),x(!0),f.current=setTimeout(()=>x(!1),2e3))},[i,v]),C="compact"===l?"data-box-compact":"responsive"===l?"data-box-responsive":"",k=i?d||`Click to copy: ${v}`:d;return i?t.jsxs("button",{type:"button",onClick:j,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:o("data-box interactive",C,"cursor-pointer select-none gap-1","hover-bg",u,p),title:k,"aria-label":`Copy ${v}`,children:[t.jsx("span",{className:o("transition-colors duration-200",h?"text-accent-success":""),children:g}),t.jsx("span",{className:o("flex items-center justify-center","compact"===l?"w-3 h-3":"w-3.5 h-3.5"),children:h?t.jsx(a,{className:o("text-accent-success",b)}):t.jsx(n,{className:o("transition-opacity duration-200",y?"opacity-70":"opacity-40",b)})})]}):t.jsx("span",{className:o("data-box",C,u,p),title:k,children:g})}export{a as C,r as D,n as a}; diff --git a/frontend/dist/assets/DeepAnalysisModal-Bs0eqWHM.js b/frontend/dist/assets/DeepAnalysisModal-DU5K5xVI.js similarity index 94% rename from frontend/dist/assets/DeepAnalysisModal-Bs0eqWHM.js rename to frontend/dist/assets/DeepAnalysisModal-DU5K5xVI.js index 3a29b118..c057a78d 100644 --- a/frontend/dist/assets/DeepAnalysisModal-Bs0eqWHM.js +++ b/frontend/dist/assets/DeepAnalysisModal-DU5K5xVI.js @@ -1 +1 @@ -import{c as e,aw as t,cW as a,cX as s,H as i,cY as n,I as c,m as r,at as o}from"./index-_WuEOacy.js";import{r as l,j as d,c as m}from"./vendor-react-BKIq8k5U.js";import{e as p,d as x}from"./config-C7QO3CEB.js";import{C as h}from"./DataBox-ihLFk7Um.js";import{G as g}from"./git-branch-BPL9j6g1.js";import{D as y}from"./database-DzqBwrzM.js";import{L as f}from"./loader-circle-E8BhCd6Y.js";const u=e("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),j=e("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),b=e("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),v={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:400,damping:15}},exit:{opacity:0,scale:.9,transition:{duration:x.fast}}},N={hidden:{opacity:0,y:"100%"},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:400,damping:30}},exit:{opacity:0,y:"100%",transition:{duration:x.medium,ease:p.easeIn}}};function k({label:e,icon:t,status:a,detail:s}){return d.jsxs("div",{className:m("flex items-center gap-3 py-3 px-4 radius-inset transition-base","active"===a&&"bg-accent-primary/10","complete"===a&&"bg-accent-primary/10 ring-2 ring-inset ring-accent-primary","pending"===a&&"opacity-40"),children:[d.jsx("div",{className:m("w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 transition-all duration-300","active"===a&&"bg-accent-primary/20","complete"===a&&"bg-accent-primary/20","pending"===a&&"bg-subtle-fill"),children:"complete"===a?d.jsx(h,{className:"w-4 h-4 text-accent-primary"}):"active"===a?d.jsx(f,{className:"w-4 h-4 animate-spin text-accent-primary"}):d.jsx("span",{className:"text-text-muted",children:t})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:m("text-sm font-medium transition-colors","active"===a&&"text-accent-primary","complete"===a&&"text-accent-primary","pending"===a&&"text-text-muted"),children:e}),s&&"pending"!==a&&d.jsx("div",{className:"text-xs text-text-muted mt-0.5 truncate",children:s})]})]})}const w=l.memo(function({isOpen:e,onClose:m}){const{packetCacheState:p,triggerDeepAnalysis:x}=t(),f=a(),j=s(),b=p.packetCount,[N,w]=l.useState("fetching");l.useEffect(()=>{e&&x()},[e,x]),l.useEffect(()=>{if(e)if(p.isTopologyLoading)w("fetching");else if(f)w("analyzing"),setTimeout(()=>w("building"),500),setTimeout(()=>w("discovering"),1e3);else if(j>0&&!p.isTopologyLoading){w("complete");const e=setTimeout(()=>{m()},1500);return()=>clearTimeout(e)}},[e,p.isTopologyLoading,f,j,m]);const M="complete"===N,T=p.loadProgress,z=l.useMemo(()=>T&&T.target>0?`Loading... ${(T.loaded/1e3).toFixed(1)}k / ${(T.target/1e3).toFixed(1)}k packets (${T.percent}%)`:b>0?`${b.toLocaleString()} packets loaded`:"Connecting to database...",[T,b]),C=e=>{const t=["fetching","analyzing","building","discovering","complete"],a=t.indexOf(N),s=t.indexOf(e);return s{};return d.jsx(i,{open:e,onClose:D,size:"sm",bottomSheet:!1,children:d.jsx(n,{isLoading:!M,borderRadius:16,children:d.jsx(c,{className:"p-6 radius-card overflow-hidden",children:M?d.jsxs("div",{className:"flex flex-col items-center py-6",children:[d.jsx(r.div,{variants:v,initial:"hidden",animate:"visible",className:"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-accent-primary/20",children:d.jsx(h,{className:"w-8 h-8 text-accent-primary"})}),d.jsx("h3",{className:"text-lg font-semibold text-accent-primary",children:"Ready!"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[d.jsx("div",{className:"w-10 h-10 radius-inset flex items-center justify-center bg-accent-primary/15",children:d.jsx(g,{className:"w-5 h-5 text-accent-primary"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-base font-semibold text-text-primary",children:"Deep Analysis"}),d.jsx("p",{className:"text-xs text-text-muted",children:"Building mesh topology"})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(k,{label:"Fetching Packets",icon:d.jsx(u,{className:"w-4 h-4"}),status:C("fetching"),detail:z}),d.jsx(k,{label:"Analyzing Database",icon:d.jsx(y,{className:"w-4 h-4"}),status:C("analyzing"),detail:"Processing packet paths"}),d.jsx(k,{label:"Building Topology",icon:d.jsx(g,{className:"w-4 h-4"}),status:C("building"),detail:"Computing mesh edges"}),d.jsx(k,{label:"Discovering Nodes",icon:d.jsx(o,{className:"w-4 h-4"}),status:C("discovering"),detail:"Viterbi HMM ghost detection"})]}),d.jsx("p",{className:"text-xs text-text-muted text-center mt-5",children:"This may take a few seconds..."})]})})})})});export{w as D,b as M,j as a,u as b,N as s}; +import{c as e,aw as t,cW as a,cX as s,H as i,cY as n,I as c,m as r,at as o}from"./index-CrU_Ps9k.js";import{r as l,j as d,c as m}from"./vendor-react-BKIq8k5U.js";import{e as p,d as x}from"./config-C7QO3CEB.js";import{C as h}from"./DataBox-sJHphnZd.js";import{G as g}from"./git-branch-CkXjQHb9.js";import{D as y}from"./database-lWroaxsL.js";import{L as f}from"./loader-circle-D6Apotf0.js";const u=e("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),j=e("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),b=e("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),v={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:400,damping:15}},exit:{opacity:0,scale:.9,transition:{duration:x.fast}}},N={hidden:{opacity:0,y:"100%"},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:400,damping:30}},exit:{opacity:0,y:"100%",transition:{duration:x.medium,ease:p.easeIn}}};function k({label:e,icon:t,status:a,detail:s}){return d.jsxs("div",{className:m("flex items-center gap-3 py-3 px-4 radius-inset transition-base","active"===a&&"bg-accent-primary/10","complete"===a&&"bg-accent-primary/10 ring-2 ring-inset ring-accent-primary","pending"===a&&"opacity-40"),children:[d.jsx("div",{className:m("w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 transition-all duration-300","active"===a&&"bg-accent-primary/20","complete"===a&&"bg-accent-primary/20","pending"===a&&"bg-subtle-fill"),children:"complete"===a?d.jsx(h,{className:"w-4 h-4 text-accent-primary"}):"active"===a?d.jsx(f,{className:"w-4 h-4 animate-spin text-accent-primary"}):d.jsx("span",{className:"text-text-muted",children:t})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:m("text-sm font-medium transition-colors","active"===a&&"text-accent-primary","complete"===a&&"text-accent-primary","pending"===a&&"text-text-muted"),children:e}),s&&"pending"!==a&&d.jsx("div",{className:"text-xs text-text-muted mt-0.5 truncate",children:s})]})]})}const w=l.memo(function({isOpen:e,onClose:m}){const{packetCacheState:p,triggerDeepAnalysis:x}=t(),f=a(),j=s(),b=p.packetCount,[N,w]=l.useState("fetching");l.useEffect(()=>{e&&x()},[e,x]),l.useEffect(()=>{if(e)if(p.isTopologyLoading)w("fetching");else if(f)w("analyzing"),setTimeout(()=>w("building"),500),setTimeout(()=>w("discovering"),1e3);else if(j>0&&!p.isTopologyLoading){w("complete");const e=setTimeout(()=>{m()},1500);return()=>clearTimeout(e)}},[e,p.isTopologyLoading,f,j,m]);const M="complete"===N,T=p.loadProgress,z=l.useMemo(()=>T&&T.target>0?`Loading... ${(T.loaded/1e3).toFixed(1)}k / ${(T.target/1e3).toFixed(1)}k packets (${T.percent}%)`:b>0?`${b.toLocaleString()} packets loaded`:"Connecting to database...",[T,b]),C=e=>{const t=["fetching","analyzing","building","discovering","complete"],a=t.indexOf(N),s=t.indexOf(e);return s{};return d.jsx(i,{open:e,onClose:D,size:"sm",bottomSheet:!1,children:d.jsx(n,{isLoading:!M,borderRadius:16,children:d.jsx(c,{className:"p-6 radius-card overflow-hidden",children:M?d.jsxs("div",{className:"flex flex-col items-center py-6",children:[d.jsx(r.div,{variants:v,initial:"hidden",animate:"visible",className:"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-accent-primary/20",children:d.jsx(h,{className:"w-8 h-8 text-accent-primary"})}),d.jsx("h3",{className:"text-lg font-semibold text-accent-primary",children:"Ready!"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[d.jsx("div",{className:"w-10 h-10 radius-inset flex items-center justify-center bg-accent-primary/15",children:d.jsx(g,{className:"w-5 h-5 text-accent-primary"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-base font-semibold text-text-primary",children:"Deep Analysis"}),d.jsx("p",{className:"text-xs text-text-muted",children:"Building mesh topology"})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(k,{label:"Fetching Packets",icon:d.jsx(u,{className:"w-4 h-4"}),status:C("fetching"),detail:z}),d.jsx(k,{label:"Analyzing Database",icon:d.jsx(y,{className:"w-4 h-4"}),status:C("analyzing"),detail:"Processing packet paths"}),d.jsx(k,{label:"Building Topology",icon:d.jsx(g,{className:"w-4 h-4"}),status:C("building"),detail:"Computing mesh edges"}),d.jsx(k,{label:"Discovering Nodes",icon:d.jsx(o,{className:"w-4 h-4"}),status:C("discovering"),detail:"Viterbi HMM ghost detection"})]}),d.jsx("p",{className:"text-xs text-text-muted text-center mt-5",children:"This may take a few seconds..."})]})})})})});export{w as D,b as M,j as a,u as b,N as s}; diff --git a/frontend/dist/assets/LightSparkline-CdHE3FTK.js b/frontend/dist/assets/LightSparkline-CE1rnNiF.js similarity index 97% rename from frontend/dist/assets/LightSparkline-CdHE3FTK.js rename to frontend/dist/assets/LightSparkline-CE1rnNiF.js index 4a90db65..e2dad3f6 100644 --- a/frontend/dist/assets/LightSparkline-CdHE3FTK.js +++ b/frontend/dist/assets/LightSparkline-CE1rnNiF.js @@ -1 +1 @@ -import{c as e}from"./index-_WuEOacy.js";import{r as t,j as n}from"./vendor-react-BKIq8k5U.js";const a=e("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),r=e("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),i=e("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),s=e("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),o="var(--sparkline-critical)",h="var(--sparkline-poor)",d="var(--sparkline-fair)",l="var(--sparkline-good)",c="var(--sparkline-excellent)",x=t.memo(function({data:e,width:a=48,height:r=16,color:i,isLoading:s=!1,className:x=""}){const u=t.useMemo(()=>function(e,t,n,a=2){if(e.length<2)return"";const r=e.map(e=>e.count),i=Math.max(...r,1),s=Math.min(...r),o=i-s||1,h=t-2*a,d=n-2*a,l=r.map((e,t)=>({x:a+t/(r.length-1)*h,y:a+d-(e-s)/o*d}));let c=`M ${l[0].x.toFixed(1)} ${l[0].y.toFixed(1)}`;for(let x=1;xi??(e.length>0?function(e){if(0===e.length)return o;const t=e.slice(-4),n=t.reduce((e,t)=>e+t.count,0),a=n/t.length,r=e.reduce((e,t)=>e+t.count,0)/e.length;if(0===n)return o;if(r>0){const e=a/r;return e>=1.2?c:e>=.8?l:e>=.4?d:e>=.1?h:o}return n>=10?c:n>=5?l:n>=2?d:n>=1?h:o}(e):"var(--text-muted)"),[i,e]);return s&&e.length<2?n.jsx("div",{className:`flex items-center justify-center ${x}`,style:{width:a,height:r},children:n.jsx("div",{className:"rounded animate-pulse bg-white/[0.06]",style:{width:a-8,height:r-6}})}):e.length<2?n.jsx("svg",{width:a,height:r,viewBox:`0 0 ${a} ${r}`,className:x,"aria-hidden":"true",children:n.jsx("line",{x1:4,y1:r/2,x2:a-4,y2:r/2,stroke:o,strokeWidth:1.5,strokeDasharray:"3,2"})}):n.jsx("svg",{width:a,height:r,viewBox:`0 0 ${a} ${r}`,preserveAspectRatio:"none",className:x,"aria-hidden":"true",style:{maxWidth:"100%"},children:n.jsx("path",{d:u,fill:"none",stroke:m,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})});export{x as L,r as M,s as T,i as a,a as b}; +import{c as e}from"./index-CrU_Ps9k.js";import{r as t,j as n}from"./vendor-react-BKIq8k5U.js";const a=e("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),r=e("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),i=e("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),s=e("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),o="var(--sparkline-critical)",h="var(--sparkline-poor)",d="var(--sparkline-fair)",l="var(--sparkline-good)",c="var(--sparkline-excellent)",x=t.memo(function({data:e,width:a=48,height:r=16,color:i,isLoading:s=!1,className:x=""}){const u=t.useMemo(()=>function(e,t,n,a=2){if(e.length<2)return"";const r=e.map(e=>e.count),i=Math.max(...r,1),s=Math.min(...r),o=i-s||1,h=t-2*a,d=n-2*a,l=r.map((e,t)=>({x:a+t/(r.length-1)*h,y:a+d-(e-s)/o*d}));let c=`M ${l[0].x.toFixed(1)} ${l[0].y.toFixed(1)}`;for(let x=1;xi??(e.length>0?function(e){if(0===e.length)return o;const t=e.slice(-4),n=t.reduce((e,t)=>e+t.count,0),a=n/t.length,r=e.reduce((e,t)=>e+t.count,0)/e.length;if(0===n)return o;if(r>0){const e=a/r;return e>=1.2?c:e>=.8?l:e>=.4?d:e>=.1?h:o}return n>=10?c:n>=5?l:n>=2?d:n>=1?h:o}(e):"var(--text-muted)"),[i,e]);return s&&e.length<2?n.jsx("div",{className:`flex items-center justify-center ${x}`,style:{width:a,height:r},children:n.jsx("div",{className:"rounded animate-pulse bg-white/[0.06]",style:{width:a-8,height:r-6}})}):e.length<2?n.jsx("svg",{width:a,height:r,viewBox:`0 0 ${a} ${r}`,className:x,"aria-hidden":"true",children:n.jsx("line",{x1:4,y1:r/2,x2:a-4,y2:r/2,stroke:o,strokeWidth:1.5,strokeDasharray:"3,2"})}):n.jsx("svg",{width:a,height:r,viewBox:`0 0 ${a} ${r}`,preserveAspectRatio:"none",className:x,"aria-hidden":"true",style:{maxWidth:"100%"},children:n.jsx("path",{d:u,fill:"none",stroke:m,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})});export{x as L,r as M,s as T,i as a,a as b}; diff --git a/frontend/dist/assets/Login-Cq--s1gM.js b/frontend/dist/assets/Login-CLMnOgmx.js similarity index 99% rename from frontend/dist/assets/Login-Cq--s1gM.js rename to frontend/dist/assets/Login-CLMnOgmx.js index 8f440982..f3dff86d 100644 --- a/frontend/dist/assets/Login-Cq--s1gM.js +++ b/frontend/dist/assets/Login-CLMnOgmx.js @@ -1 +1 @@ -import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{g as a,i,s as r,l as n,m as o,P as l,A as c}from"./index-_WuEOacy.js";import{s as d,a as m}from"./config-C7QO3CEB.js";import{b as h}from"./vendor-core-D1aqi_5O.js";import"./deckgl-DTsmDcfs.js";const x=e.memo(function({width:e,height:s,className:a="",fill:i="currentColor"}){return t.jsxs("svg",{viewBox:"0 0 134 15",width:e,height:s,className:a,role:"img","aria-label":"MeshCore",style:{fillRule:"evenodd",clipRule:"evenodd"},children:[t.jsx("path",{fill:i,d:"M3.277,0.053C2.829,0.053 2.401,0.41 2.321,0.851L0.013,13.623C-0.067,14.064 0.232,14.421 0.681,14.421L3.13,14.421C3.578,14.421 4.006,14.064 4.086,13.623L5.004,8.54L6.684,13.957C6.766,14.239 7.02,14.421 7.337,14.421L10.58,14.421C10.897,14.421 11.217,14.239 11.401,13.957L15.043,8.513L14.119,13.623C14.038,14.064 14.338,14.421 14.787,14.421L17.236,14.421C17.684,14.421 18.112,14.064 18.192,13.623L20.5,0.851C20.582,0.41 20.283,0.053 19.834,0.053L16.69,0.053C16.373,0.053 16.053,0.235 15.87,0.517L9.897,9.473C9.803,9.616 9.578,9.578 9.528,9.41L7.074,0.517C6.992,0.235 6.738,0.053 6.421,0.053L3.277,0.053Z"}),t.jsx("path",{fill:i,d:"M21.146,14.421C21.146,14.421 33.257,14.421 33.257,14.421C33.526,14.421 33.784,14.205 33.831,13.942L34.337,11.128C34.385,10.863 34.206,10.649 33.936,10.649L25.519,10.649C25.429,10.649 25.37,10.576 25.385,10.488L25.635,9.105C25.65,9.017 25.736,8.944 25.826,8.944L32.596,8.944C32.865,8.944 33.123,8.728 33.171,8.465L33.621,5.974C33.669,5.709 33.49,5.495 33.221,5.495L26.45,5.495C26.361,5.495 26.301,5.423 26.317,5.335L26.584,3.852C26.599,3.764 26.685,3.691 26.775,3.691L35.192,3.691C35.462,3.691 35.719,3.476 35.767,3.21L36.258,0.498C36.306,0.235 36.126,0.019 35.857,0.019L23.746,0.019C23.297,0.019 22.867,0.378 22.788,0.819L20.474,13.621C20.396,14.062 20.695,14.421 21.146,14.421Z"}),t.jsx("path",{fill:i,d:"M45.926,14.419L45.926,14.421L46.346,14.421C48.453,14.421 50.465,12.742 50.839,10.67L51.081,9.327C51.456,7.256 50.05,5.576 47.943,5.576L41.455,5.576C41.186,5.576 41.007,5.363 41.054,5.097L41.218,4.192C41.266,3.927 41.524,3.713 41.793,3.713L50.569,3.713C51.018,3.713 51.446,3.356 51.526,2.915L51.9,0.85C51.98,0.407 51.68,0.05 51.232,0.05L41.638,0.05C39.531,0.05 37.519,1.73 37.145,3.801L36.88,5.267C36.505,7.339 37.91,9.018 40.018,9.018L46.506,9.018C46.775,9.018 46.954,9.231 46.907,9.497L46.785,10.176C46.737,10.441 46.479,10.655 46.21,10.655L37.189,10.655C36.741,10.655 36.313,11.012 36.233,11.453L35.841,13.621C35.761,14.062 36.061,14.419 36.51,14.419L45.926,14.419Z"}),t.jsx("path",{fill:i,d:"M68.008,0.046C68.008,0.046 65.296,0.046 65.296,0.046C64.847,0.046 64.42,0.403 64.34,0.844L63.532,5.31C63.517,5.398 63.431,5.469 63.341,5.469L58.085,5.469C57.995,5.469 57.936,5.398 57.951,5.31L58.758,0.844C58.837,0.403 58.539,0.046 58.09,0.046L55.378,0.046C54.93,0.046 54.502,0.403 54.422,0.844L52.112,13.623C52.032,14.064 52.331,14.421 52.78,14.421L55.492,14.421C55.941,14.421 56.369,14.064 56.449,13.623L57.272,9.074C57.287,8.986 57.373,8.914 57.462,8.914L62.719,8.914C62.809,8.914 62.868,8.985 62.853,9.074L62.032,13.623C61.952,14.064 62.252,14.421 62.7,14.421L65.413,14.421C65.861,14.421 66.289,14.064 66.369,13.623L68.678,0.844C68.755,0.403 68.457,0.046 68.008,0.046Z"}),t.jsx("path",{fill:i,d:"M72.099,14.421C72.099,14.421 80.066,14.421 80.066,14.421C80.515,14.421 80.943,14.064 81.022,13.623L81.414,11.453C81.494,11.012 81.194,10.655 80.746,10.655L73.828,10.655C73.559,10.655 73.38,10.441 73.427,10.176L74.51,4.215C74.558,3.951 74.815,3.736 75.082,3.736L82,3.736C82.448,3.736 82.876,3.379 82.956,2.938L83.34,0.817C83.42,0.376 83.12,0.019 82.672,0.019L74.724,0.019C72.622,0.019 70.614,1.691 70.236,3.757L68.965,10.665C68.587,12.738 69.99,14.421 72.099,14.421Z"}),t.jsx("path",{fill:i,d:"M97.176,-0C97.176,0 88.882,0 88.882,0C86.775,0 84.763,1.68 84.389,3.751L83.139,10.67C82.765,12.741 84.169,14.421 86.277,14.421L94.571,14.421C96.678,14.421 98.69,12.741 99.064,10.67L100.314,3.751C100.689,1.68 99.284,-0 97.176,-0ZM94.798,10.178C94.75,10.443 94.492,10.657 94.223,10.657L87.978,10.657C87.709,10.657 87.529,10.443 87.577,10.178L88.659,4.192C88.707,3.927 88.964,3.713 89.234,3.713L95.477,3.713C95.747,3.713 95.926,3.927 95.878,4.192L94.798,10.178Z"}),t.jsx("path",{fill:i,d:"M101.284,14.421L103.995,14.421C104.443,14.421 104.871,14.065 104.951,13.624L105.43,10.97C105.446,10.882 105.531,10.81 105.621,10.81L108.902,10.806C109.064,10.806 109.2,10.886 109.267,11.018L110.813,14.035C110.992,14.392 111.319,14.434 112.303,14.419C112.88,14.426 113.756,14.382 115.169,14.382C115.623,14.382 115.902,13.907 115.678,13.51L113.989,10.569C113.945,10.491 113.993,10.386 114.086,10.34C115.39,9.707 116.423,8.477 116.681,7.055L117.27,3.785C117.646,1.713 116.242,0.033 114.134,0.033L103.884,0.033C103.436,0.033 103.008,0.39 102.928,0.831L100.616,13.623C100.536,14.064 100.836,14.421 101.284,14.421L101.284,14.421ZM106.73,3.791C106.745,3.703 106.831,3.631 106.921,3.631L112.225,3.631C112.626,3.631 112.891,3.949 112.821,4.343L112.431,6.494C112.359,6.885 111.979,7.204 111.58,7.204L106.276,7.204C106.186,7.204 106.127,7.133 106.142,7.043L106.73,3.791Z"}),t.jsx("path",{fill:i,d:"M118.277,14.421C118.277,14.421 130.388,14.421 130.388,14.421C130.657,14.421 130.915,14.205 130.963,13.942L131.468,11.128C131.516,10.863 131.337,10.649 131.068,10.649L122.65,10.649C122.56,10.649 122.501,10.576 122.516,10.488L122.766,9.105C122.781,9.017 122.867,8.944 122.957,8.944L129.728,8.944C129.997,8.944 130.254,8.728 130.302,8.465L130.753,5.974C130.801,5.709 130.621,5.495 130.352,5.495L123.581,5.495C123.492,5.495 123.432,5.423 123.448,5.335L123.715,3.852C123.73,3.764 123.816,3.691 123.906,3.691L132.324,3.691C132.593,3.691 132.851,3.476 132.898,3.21L133.389,0.498C133.437,0.235 133.257,0.019 132.988,0.019L120.877,0.019C120.428,0.019 119.999,0.378 119.919,0.819L117.605,13.621C117.527,14.062 117.827,14.421 118.277,14.421Z"})]})}),u="#9cf15b",p={container:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:d.normal,delayChildren:.1}}},item:{hidden:{opacity:0,y:12},visible:{opacity:1,y:0,transition:m.smooth}},footer:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{...m.gentle,delay:.4}}},error:{hidden:{opacity:0,height:0,marginTop:0},visible:{opacity:1,height:"auto",marginTop:24,transition:m.snappy},exit:{opacity:0,height:0,marginTop:0,transition:{duration:.15}}}},C=s("block font-mono text-xs font-medium uppercase tracking-wider text-text-secondary"),L=s("block w-full rounded-md px-3 py-2","font-mono text-sm font-semibold text-text-primary","border border-transparent outline-none","placeholder:text-text-muted/60 placeholder:font-normal","transition-shadow duration-150","surface-input"),f=s("flex w-full justify-center rounded-md px-3 py-2","font-mono text-sm font-semibold uppercase tracking-wide text-black shadow-sm","focus-visible:outline-2 focus-visible:outline-offset-2","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors duration-150"),j=e.memo(function({className:e}){return t.jsxs("svg",{className:s("animate-spin",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),g=e.memo(function({id:a,value:i,onChange:r,autoComplete:n="current-password",required:o=!1}){const[l,c]=e.useState(!1),d="×".repeat(i.length);return t.jsxs("div",{className:"relative",children:[t.jsx("input",{id:a,name:a,type:l?"text":"password",value:i,onChange:r,autoComplete:n,required:o,className:s(L,"pr-10",!l&&"password-mask"),style:l?void 0:{fontFamily:"var(--font-data)",color:"transparent",caretColor:"var(--text-primary)"}}),!l&&i.length>0&&t.jsx("div",{className:s("pointer-events-none absolute inset-0 flex items-center","px-3 font-mono text-sm font-semibold text-text-primary"),"aria-hidden":"true",children:d}),t.jsx("button",{type:"button",onClick:()=>c(e=>!e),className:s("absolute inset-y-0 right-0 flex items-center pr-3","text-text-muted hover:text-text-secondary transition-colors"),"aria-label":l?"Hide password":"Show password",children:l?t.jsx("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}):t.jsxs("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:[t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]})}),v=e.memo(function({id:e,checked:a,onChange:i,label:r}){return t.jsxs("div",{className:"flex gap-3",children:[t.jsx("div",{className:"flex h-6 shrink-0 items-center",children:t.jsxs("div",{className:"group grid size-4 grid-cols-1",children:[t.jsx("input",{id:e,name:e,type:"checkbox",checked:a,onChange:e=>i(e.target.checked),className:s("col-start-1 row-start-1 appearance-none rounded-sm","surface-checkbox","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-primary","forced-colors:appearance-auto")}),t.jsx("svg",{fill:"none",viewBox:"0 0 14 14","aria-hidden":"true",className:s("pointer-events-none col-start-1 row-start-1","size-3.5 self-center justify-self-center stroke-white","group-has-[:disabled]:stroke-gray-950/25"),children:t.jsx("path",{d:"M3 8L6 11L11 3.5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:s("transition-opacity",a?"opacity-100":"opacity-0")})})]})}),t.jsx("label",{htmlFor:e,className:"block font-mono text-xs uppercase tracking-wider text-text-secondary cursor-pointer select-none",children:r})]})}),b=e.memo(function({href:e,children:s}){return t.jsx(o.a,{href:e,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.98},className:"inline-flex items-center gap-1.5 opacity-60 hover:opacity-100 transition-opacity",children:s})}),y=()=>t.jsx("span",{className:"text-white/20 text-xs","aria-hidden":"true",children:"•"}),w=e.memo(function(){return t.jsx("div",{className:"fixed inset-0 -z-10",style:{backgroundColor:"#09090b"},"aria-hidden":"true"})}),k=e.memo(function(){return t.jsxs(o.footer,{variants:p.footer,initial:"hidden",animate:"visible",className:"fixed bottom-0 inset-x-0 px-4 py-6",children:[t.jsx("p",{className:"text-center font-mono text-[10px] uppercase tracking-widest text-white/40 mb-3",children:"Powered By"}),t.jsx("div",{className:"mx-auto max-w-xs",children:t.jsxs("div",{className:"flex items-center justify-center gap-4",children:[t.jsx(b,{href:"https://github.com/rightup/pyMC_Repeater",children:t.jsxs("span",{className:"font-mono text-sm font-semibold tracking-tight",children:[t.jsx("span",{style:{color:u},children:"py"}),t.jsx("span",{className:"text-white",children:"MC"})]})}),t.jsx(y,{}),t.jsx(b,{href:"https://meshcore.co.uk",children:t.jsx(x,{height:12,className:"text-white"})}),t.jsx(y,{}),t.jsxs(b,{href:"https://wcmesh.com",children:[t.jsx("div",{className:"size-6 overflow-hidden radius-badge border border-white/10",children:t.jsx("img",{src:"/assets/WCM_Waves-RN-_ocPH.gif",alt:"",className:"size-full object-cover"})}),t.jsx("span",{className:"font-mono text-sm font-semibold tracking-tight text-white",children:"WCM"})]})]})})]})});function N(){const s=h(),[d,m]=e.useState("admin"),[x,b]=e.useState(""),[y,N]=e.useState(a),[M,z]=e.useState(!1),[S,Z]=e.useState(null),T=d.length>0&&x.length>0&&!M;e.useEffect(()=>{i()&&s("/",{replace:!0})},[s]);const W=e.useCallback(()=>Z(null),[]),B=e.useCallback(e=>{m(e.target.value),S&&W()},[S,W]),F=e.useCallback(e=>{b(e.target.value),S&&W()},[S,W]),R=e.useCallback(e=>{N(e),r(e)},[]),A=e.useCallback(async e=>{if(e.preventDefault(),!T)return;z(!0),Z(null);const t=await n(d,x,y);z(!1),t.success?window.location.href="/":Z(t.error??"Login failed")},[T,d,x,y]);return t.jsxs(t.Fragment,{children:[t.jsx(w,{}),t.jsx("main",{className:"flex min-h-svh items-center justify-center px-4 py-12 sm:px-6 lg:px-8",children:t.jsxs(o.div,{variants:p.container,initial:"hidden",animate:"visible",className:"w-full max-w-sm space-y-10",children:[t.jsx(o.div,{variants:p.item,className:"flex justify-center",children:t.jsx(l,{height:32})}),t.jsxs(o.form,{variants:p.item,onSubmit:A,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:"username",className:C,children:"Username"}),t.jsx("div",{className:"mt-2",children:t.jsx("input",{id:"username",name:"username",type:"text",value:d,onChange:B,required:!0,autoComplete:"username",autoFocus:!0,className:L})})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"password",className:C,children:"Password"}),t.jsx("div",{className:"mt-2",children:t.jsx(g,{id:"password",value:x,onChange:F,required:!0})})]}),t.jsx(v,{id:"remember-me",checked:y,onChange:R,label:"Remember me"}),t.jsx(c,{mode:"wait",children:S&&t.jsx(o.div,{variants:p.error,initial:"hidden",animate:"visible",exit:"exit",role:"alert",className:"rounded-md bg-accent-danger/10 p-3 overflow-hidden",children:t.jsx("p",{className:"text-sm text-accent-danger text-center",children:S})},"error")}),t.jsx(o.div,{whileTap:T?{scale:.98}:void 0,children:t.jsx("button",{type:"submit",disabled:!T,className:f,style:{backgroundColor:u,"--tw-ring-color":u},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#8de04a",onMouseLeave:e=>e.currentTarget.style.backgroundColor=u,children:M?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(j,{className:"size-4"}),"Signing in…"]}):"Sign in"})})]}),t.jsxs(o.p,{variants:p.item,className:"text-center text-sm/6 text-text-muted",children:["A ",t.jsx("span",{style:{color:u},children:"@RightUp"})," X"," ",t.jsx("span",{style:{color:u},children:"@Treehouse⚡"})," Collab"]})]})}),t.jsx(k,{})]})}export{N as default}; +import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{g as a,i,s as r,l as n,m as o,P as l,A as c}from"./index-CrU_Ps9k.js";import{s as d,a as m}from"./config-C7QO3CEB.js";import{b as h}from"./vendor-core-D1aqi_5O.js";import"./deckgl-DTsmDcfs.js";const x=e.memo(function({width:e,height:s,className:a="",fill:i="currentColor"}){return t.jsxs("svg",{viewBox:"0 0 134 15",width:e,height:s,className:a,role:"img","aria-label":"MeshCore",style:{fillRule:"evenodd",clipRule:"evenodd"},children:[t.jsx("path",{fill:i,d:"M3.277,0.053C2.829,0.053 2.401,0.41 2.321,0.851L0.013,13.623C-0.067,14.064 0.232,14.421 0.681,14.421L3.13,14.421C3.578,14.421 4.006,14.064 4.086,13.623L5.004,8.54L6.684,13.957C6.766,14.239 7.02,14.421 7.337,14.421L10.58,14.421C10.897,14.421 11.217,14.239 11.401,13.957L15.043,8.513L14.119,13.623C14.038,14.064 14.338,14.421 14.787,14.421L17.236,14.421C17.684,14.421 18.112,14.064 18.192,13.623L20.5,0.851C20.582,0.41 20.283,0.053 19.834,0.053L16.69,0.053C16.373,0.053 16.053,0.235 15.87,0.517L9.897,9.473C9.803,9.616 9.578,9.578 9.528,9.41L7.074,0.517C6.992,0.235 6.738,0.053 6.421,0.053L3.277,0.053Z"}),t.jsx("path",{fill:i,d:"M21.146,14.421C21.146,14.421 33.257,14.421 33.257,14.421C33.526,14.421 33.784,14.205 33.831,13.942L34.337,11.128C34.385,10.863 34.206,10.649 33.936,10.649L25.519,10.649C25.429,10.649 25.37,10.576 25.385,10.488L25.635,9.105C25.65,9.017 25.736,8.944 25.826,8.944L32.596,8.944C32.865,8.944 33.123,8.728 33.171,8.465L33.621,5.974C33.669,5.709 33.49,5.495 33.221,5.495L26.45,5.495C26.361,5.495 26.301,5.423 26.317,5.335L26.584,3.852C26.599,3.764 26.685,3.691 26.775,3.691L35.192,3.691C35.462,3.691 35.719,3.476 35.767,3.21L36.258,0.498C36.306,0.235 36.126,0.019 35.857,0.019L23.746,0.019C23.297,0.019 22.867,0.378 22.788,0.819L20.474,13.621C20.396,14.062 20.695,14.421 21.146,14.421Z"}),t.jsx("path",{fill:i,d:"M45.926,14.419L45.926,14.421L46.346,14.421C48.453,14.421 50.465,12.742 50.839,10.67L51.081,9.327C51.456,7.256 50.05,5.576 47.943,5.576L41.455,5.576C41.186,5.576 41.007,5.363 41.054,5.097L41.218,4.192C41.266,3.927 41.524,3.713 41.793,3.713L50.569,3.713C51.018,3.713 51.446,3.356 51.526,2.915L51.9,0.85C51.98,0.407 51.68,0.05 51.232,0.05L41.638,0.05C39.531,0.05 37.519,1.73 37.145,3.801L36.88,5.267C36.505,7.339 37.91,9.018 40.018,9.018L46.506,9.018C46.775,9.018 46.954,9.231 46.907,9.497L46.785,10.176C46.737,10.441 46.479,10.655 46.21,10.655L37.189,10.655C36.741,10.655 36.313,11.012 36.233,11.453L35.841,13.621C35.761,14.062 36.061,14.419 36.51,14.419L45.926,14.419Z"}),t.jsx("path",{fill:i,d:"M68.008,0.046C68.008,0.046 65.296,0.046 65.296,0.046C64.847,0.046 64.42,0.403 64.34,0.844L63.532,5.31C63.517,5.398 63.431,5.469 63.341,5.469L58.085,5.469C57.995,5.469 57.936,5.398 57.951,5.31L58.758,0.844C58.837,0.403 58.539,0.046 58.09,0.046L55.378,0.046C54.93,0.046 54.502,0.403 54.422,0.844L52.112,13.623C52.032,14.064 52.331,14.421 52.78,14.421L55.492,14.421C55.941,14.421 56.369,14.064 56.449,13.623L57.272,9.074C57.287,8.986 57.373,8.914 57.462,8.914L62.719,8.914C62.809,8.914 62.868,8.985 62.853,9.074L62.032,13.623C61.952,14.064 62.252,14.421 62.7,14.421L65.413,14.421C65.861,14.421 66.289,14.064 66.369,13.623L68.678,0.844C68.755,0.403 68.457,0.046 68.008,0.046Z"}),t.jsx("path",{fill:i,d:"M72.099,14.421C72.099,14.421 80.066,14.421 80.066,14.421C80.515,14.421 80.943,14.064 81.022,13.623L81.414,11.453C81.494,11.012 81.194,10.655 80.746,10.655L73.828,10.655C73.559,10.655 73.38,10.441 73.427,10.176L74.51,4.215C74.558,3.951 74.815,3.736 75.082,3.736L82,3.736C82.448,3.736 82.876,3.379 82.956,2.938L83.34,0.817C83.42,0.376 83.12,0.019 82.672,0.019L74.724,0.019C72.622,0.019 70.614,1.691 70.236,3.757L68.965,10.665C68.587,12.738 69.99,14.421 72.099,14.421Z"}),t.jsx("path",{fill:i,d:"M97.176,-0C97.176,0 88.882,0 88.882,0C86.775,0 84.763,1.68 84.389,3.751L83.139,10.67C82.765,12.741 84.169,14.421 86.277,14.421L94.571,14.421C96.678,14.421 98.69,12.741 99.064,10.67L100.314,3.751C100.689,1.68 99.284,-0 97.176,-0ZM94.798,10.178C94.75,10.443 94.492,10.657 94.223,10.657L87.978,10.657C87.709,10.657 87.529,10.443 87.577,10.178L88.659,4.192C88.707,3.927 88.964,3.713 89.234,3.713L95.477,3.713C95.747,3.713 95.926,3.927 95.878,4.192L94.798,10.178Z"}),t.jsx("path",{fill:i,d:"M101.284,14.421L103.995,14.421C104.443,14.421 104.871,14.065 104.951,13.624L105.43,10.97C105.446,10.882 105.531,10.81 105.621,10.81L108.902,10.806C109.064,10.806 109.2,10.886 109.267,11.018L110.813,14.035C110.992,14.392 111.319,14.434 112.303,14.419C112.88,14.426 113.756,14.382 115.169,14.382C115.623,14.382 115.902,13.907 115.678,13.51L113.989,10.569C113.945,10.491 113.993,10.386 114.086,10.34C115.39,9.707 116.423,8.477 116.681,7.055L117.27,3.785C117.646,1.713 116.242,0.033 114.134,0.033L103.884,0.033C103.436,0.033 103.008,0.39 102.928,0.831L100.616,13.623C100.536,14.064 100.836,14.421 101.284,14.421L101.284,14.421ZM106.73,3.791C106.745,3.703 106.831,3.631 106.921,3.631L112.225,3.631C112.626,3.631 112.891,3.949 112.821,4.343L112.431,6.494C112.359,6.885 111.979,7.204 111.58,7.204L106.276,7.204C106.186,7.204 106.127,7.133 106.142,7.043L106.73,3.791Z"}),t.jsx("path",{fill:i,d:"M118.277,14.421C118.277,14.421 130.388,14.421 130.388,14.421C130.657,14.421 130.915,14.205 130.963,13.942L131.468,11.128C131.516,10.863 131.337,10.649 131.068,10.649L122.65,10.649C122.56,10.649 122.501,10.576 122.516,10.488L122.766,9.105C122.781,9.017 122.867,8.944 122.957,8.944L129.728,8.944C129.997,8.944 130.254,8.728 130.302,8.465L130.753,5.974C130.801,5.709 130.621,5.495 130.352,5.495L123.581,5.495C123.492,5.495 123.432,5.423 123.448,5.335L123.715,3.852C123.73,3.764 123.816,3.691 123.906,3.691L132.324,3.691C132.593,3.691 132.851,3.476 132.898,3.21L133.389,0.498C133.437,0.235 133.257,0.019 132.988,0.019L120.877,0.019C120.428,0.019 119.999,0.378 119.919,0.819L117.605,13.621C117.527,14.062 117.827,14.421 118.277,14.421Z"})]})}),u="#9cf15b",p={container:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:d.normal,delayChildren:.1}}},item:{hidden:{opacity:0,y:12},visible:{opacity:1,y:0,transition:m.smooth}},footer:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{...m.gentle,delay:.4}}},error:{hidden:{opacity:0,height:0,marginTop:0},visible:{opacity:1,height:"auto",marginTop:24,transition:m.snappy},exit:{opacity:0,height:0,marginTop:0,transition:{duration:.15}}}},C=s("block font-mono text-xs font-medium uppercase tracking-wider text-text-secondary"),L=s("block w-full rounded-md px-3 py-2","font-mono text-sm font-semibold text-text-primary","border border-transparent outline-none","placeholder:text-text-muted/60 placeholder:font-normal","transition-shadow duration-150","surface-input"),f=s("flex w-full justify-center rounded-md px-3 py-2","font-mono text-sm font-semibold uppercase tracking-wide text-black shadow-sm","focus-visible:outline-2 focus-visible:outline-offset-2","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors duration-150"),j=e.memo(function({className:e}){return t.jsxs("svg",{className:s("animate-spin",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),g=e.memo(function({id:a,value:i,onChange:r,autoComplete:n="current-password",required:o=!1}){const[l,c]=e.useState(!1),d="×".repeat(i.length);return t.jsxs("div",{className:"relative",children:[t.jsx("input",{id:a,name:a,type:l?"text":"password",value:i,onChange:r,autoComplete:n,required:o,className:s(L,"pr-10",!l&&"password-mask"),style:l?void 0:{fontFamily:"var(--font-data)",color:"transparent",caretColor:"var(--text-primary)"}}),!l&&i.length>0&&t.jsx("div",{className:s("pointer-events-none absolute inset-0 flex items-center","px-3 font-mono text-sm font-semibold text-text-primary"),"aria-hidden":"true",children:d}),t.jsx("button",{type:"button",onClick:()=>c(e=>!e),className:s("absolute inset-y-0 right-0 flex items-center pr-3","text-text-muted hover:text-text-secondary transition-colors"),"aria-label":l?"Hide password":"Show password",children:l?t.jsx("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}):t.jsxs("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:[t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]})}),v=e.memo(function({id:e,checked:a,onChange:i,label:r}){return t.jsxs("div",{className:"flex gap-3",children:[t.jsx("div",{className:"flex h-6 shrink-0 items-center",children:t.jsxs("div",{className:"group grid size-4 grid-cols-1",children:[t.jsx("input",{id:e,name:e,type:"checkbox",checked:a,onChange:e=>i(e.target.checked),className:s("col-start-1 row-start-1 appearance-none rounded-sm","surface-checkbox","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-primary","forced-colors:appearance-auto")}),t.jsx("svg",{fill:"none",viewBox:"0 0 14 14","aria-hidden":"true",className:s("pointer-events-none col-start-1 row-start-1","size-3.5 self-center justify-self-center stroke-white","group-has-[:disabled]:stroke-gray-950/25"),children:t.jsx("path",{d:"M3 8L6 11L11 3.5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:s("transition-opacity",a?"opacity-100":"opacity-0")})})]})}),t.jsx("label",{htmlFor:e,className:"block font-mono text-xs uppercase tracking-wider text-text-secondary cursor-pointer select-none",children:r})]})}),b=e.memo(function({href:e,children:s}){return t.jsx(o.a,{href:e,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.98},className:"inline-flex items-center gap-1.5 opacity-60 hover:opacity-100 transition-opacity",children:s})}),y=()=>t.jsx("span",{className:"text-white/20 text-xs","aria-hidden":"true",children:"•"}),w=e.memo(function(){return t.jsx("div",{className:"fixed inset-0 -z-10",style:{backgroundColor:"#09090b"},"aria-hidden":"true"})}),k=e.memo(function(){return t.jsxs(o.footer,{variants:p.footer,initial:"hidden",animate:"visible",className:"fixed bottom-0 inset-x-0 px-4 py-6",children:[t.jsx("p",{className:"text-center font-mono text-[10px] uppercase tracking-widest text-white/40 mb-3",children:"Powered By"}),t.jsx("div",{className:"mx-auto max-w-xs",children:t.jsxs("div",{className:"flex items-center justify-center gap-4",children:[t.jsx(b,{href:"https://github.com/rightup/pyMC_Repeater",children:t.jsxs("span",{className:"font-mono text-sm font-semibold tracking-tight",children:[t.jsx("span",{style:{color:u},children:"py"}),t.jsx("span",{className:"text-white",children:"MC"})]})}),t.jsx(y,{}),t.jsx(b,{href:"https://meshcore.co.uk",children:t.jsx(x,{height:12,className:"text-white"})}),t.jsx(y,{}),t.jsxs(b,{href:"https://wcmesh.com",children:[t.jsx("div",{className:"size-6 overflow-hidden radius-badge border border-white/10",children:t.jsx("img",{src:"/assets/WCM_Waves-RN-_ocPH.gif",alt:"",className:"size-full object-cover"})}),t.jsx("span",{className:"font-mono text-sm font-semibold tracking-tight text-white",children:"WCM"})]})]})})]})});function N(){const s=h(),[d,m]=e.useState("admin"),[x,b]=e.useState(""),[y,N]=e.useState(a),[M,z]=e.useState(!1),[S,Z]=e.useState(null),T=d.length>0&&x.length>0&&!M;e.useEffect(()=>{i()&&s("/",{replace:!0})},[s]);const W=e.useCallback(()=>Z(null),[]),B=e.useCallback(e=>{m(e.target.value),S&&W()},[S,W]),F=e.useCallback(e=>{b(e.target.value),S&&W()},[S,W]),R=e.useCallback(e=>{N(e),r(e)},[]),A=e.useCallback(async e=>{if(e.preventDefault(),!T)return;z(!0),Z(null);const t=await n(d,x,y);z(!1),t.success?window.location.href="/":Z(t.error??"Login failed")},[T,d,x,y]);return t.jsxs(t.Fragment,{children:[t.jsx(w,{}),t.jsx("main",{className:"flex min-h-svh items-center justify-center px-4 py-12 sm:px-6 lg:px-8",children:t.jsxs(o.div,{variants:p.container,initial:"hidden",animate:"visible",className:"w-full max-w-sm space-y-10",children:[t.jsx(o.div,{variants:p.item,className:"flex justify-center",children:t.jsx(l,{height:32})}),t.jsxs(o.form,{variants:p.item,onSubmit:A,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:"username",className:C,children:"Username"}),t.jsx("div",{className:"mt-2",children:t.jsx("input",{id:"username",name:"username",type:"text",value:d,onChange:B,required:!0,autoComplete:"username",autoFocus:!0,className:L})})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"password",className:C,children:"Password"}),t.jsx("div",{className:"mt-2",children:t.jsx(g,{id:"password",value:x,onChange:F,required:!0})})]}),t.jsx(v,{id:"remember-me",checked:y,onChange:R,label:"Remember me"}),t.jsx(c,{mode:"wait",children:S&&t.jsx(o.div,{variants:p.error,initial:"hidden",animate:"visible",exit:"exit",role:"alert",className:"rounded-md bg-accent-danger/10 p-3 overflow-hidden",children:t.jsx("p",{className:"text-sm text-accent-danger text-center",children:S})},"error")}),t.jsx(o.div,{whileTap:T?{scale:.98}:void 0,children:t.jsx("button",{type:"submit",disabled:!T,className:f,style:{backgroundColor:u,"--tw-ring-color":u},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#8de04a",onMouseLeave:e=>e.currentTarget.style.backgroundColor=u,children:M?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(j,{className:"size-4"}),"Signing in…"]}):"Sign in"})})]}),t.jsxs(o.p,{variants:p.item,className:"text-center text-sm/6 text-text-muted",children:["A ",t.jsx("span",{style:{color:u},children:"@RightUp"})," X"," ",t.jsx("span",{style:{color:u},children:"@Treehouse⚡"})," Collab"]})]})}),t.jsx(k,{})]})}export{N as default}; diff --git a/frontend/dist/assets/Logs-BwAIrcrO.js b/frontend/dist/assets/Logs-DOPaGEpF.js similarity index 95% rename from frontend/dist/assets/Logs-BwAIrcrO.js rename to frontend/dist/assets/Logs-DOPaGEpF.js index c97ba3e8..766bbbd3 100644 --- a/frontend/dist/assets/Logs-BwAIrcrO.js +++ b/frontend/dist/assets/Logs-DOPaGEpF.js @@ -1 +1 @@ -import{r as e,j as s,c as a}from"./vendor-react-BKIq8k5U.js";import{c as t,b9 as l,ba as r,h as c,bb as i,bc as n,bd as o,b1 as m,be as x}from"./index-_WuEOacy.js";import{u as d}from"./usePolling-_rZ6EKji.js";import{P as h,b as p,B as g,a as j,L as u}from"./PageLayout-C4LpOVqW.js";import{C as b}from"./Card-BSUcfChC.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const y=t("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),f=t("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]),v=e.memo(function({log:e}){return s.jsx("div",{className:"p-3 radius-card bg-subtle-fill hover:bg-subtle-fill-strong transition-base",children:s.jsxs("div",{className:"flex items-baseline gap-3",children:[s.jsx("span",{className:a("type-data-sm w-14 shrink-0",x(e.level)),children:e.level}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"type-data-sm text-text-primary break-words whitespace-pre-wrap",children:e.message}),s.jsx("p",{className:"type-data-xs text-text-muted mt-1",children:new Date(e.timestamp).toLocaleString()})]})]})})});function w({showDebug:e,onToggle:t}){return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:a("type-data-sm",e?"text-accent-tertiary":"text-accent-primary"),children:e?"DEBUG":"INFO"}),s.jsx("button",{onClick:t,className:a("relative w-10 h-5 rounded-full transition-base",e?"bg-accent-tertiary":"bg-accent-primary"),role:"switch","aria-checked":e,children:s.jsx("span",{className:a("absolute top-[2px] left-[2px] w-4 h-4 bg-white rounded-full shadow-sm transition-transform duration-200",e?"translate-x-5":"translate-x-0")})})]})}function N(){const t=l(),x=r(),N=c(),k=i(),C=n(),[D,L]=e.useState(!1),P=e.useCallback(()=>{L(e=>!e)},[]),B=D?t:t.filter(e=>"DEBUG"!==e.level);return d(k,m.logs,N),s.jsxs(h,{children:[s.jsx(p,{title:"System Logs",icon:s.jsx(o,{}),controls:s.jsx(w,{showDebug:D,onToggle:P})}),s.jsx(g,{children:s.jsxs(j,{noPadding:!0,children:[s.jsx(b,{listHeader:!0,icon:s.jsx(o,{className:"icon-sm"}),title:"Log Entries",actions:s.jsx("button",{onClick:()=>C(!N),className:a("transition-base",N?"text-signal-critical hover:text-signal-critical/80":"text-accent-primary hover:text-accent-primary/80 animate-pulse-slow"),title:N?"Pause":"Resume",children:N?s.jsx(f,{className:"w-5 h-5"}):s.jsx(y,{className:"w-5 h-5"})})}),s.jsx("div",{className:"space-y-2 max-h-[calc(100vh-300px)] sm:max-h-[calc(100vh-250px)] overflow-y-auto p-4",children:x&&0===t.length?s.jsx(u,{count:10}):0===B.length?s.jsx("div",{className:"text-center py-12 text-text-muted",children:0===t.length?"No logs available":"No logs match selected filters"}):B.map((e,a)=>s.jsx(v,{log:e},`${e.timestamp}-${a}`))})]})})]})}export{N as default}; +import{r as e,j as s,c as a}from"./vendor-react-BKIq8k5U.js";import{c as t,b9 as l,ba as r,h as c,bb as i,bc as n,bd as o,b1 as m,be as x}from"./index-CrU_Ps9k.js";import{u as d}from"./usePolling-_rZ6EKji.js";import{P as h,b as p,B as g,a as j,L as u}from"./PageLayout-BlXA3E6H.js";import{C as b}from"./Card-Cq7dyTi6.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const y=t("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),f=t("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]),v=e.memo(function({log:e}){return s.jsx("div",{className:"p-3 radius-card bg-subtle-fill hover:bg-subtle-fill-strong transition-base",children:s.jsxs("div",{className:"flex items-baseline gap-3",children:[s.jsx("span",{className:a("type-data-sm w-14 shrink-0",x(e.level)),children:e.level}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"type-data-sm text-text-primary break-words whitespace-pre-wrap",children:e.message}),s.jsx("p",{className:"type-data-xs text-text-muted mt-1",children:new Date(e.timestamp).toLocaleString()})]})]})})});function w({showDebug:e,onToggle:t}){return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:a("type-data-sm",e?"text-accent-tertiary":"text-accent-primary"),children:e?"DEBUG":"INFO"}),s.jsx("button",{onClick:t,className:a("relative w-10 h-5 rounded-full transition-base",e?"bg-accent-tertiary":"bg-accent-primary"),role:"switch","aria-checked":e,children:s.jsx("span",{className:a("absolute top-[2px] left-[2px] w-4 h-4 bg-white rounded-full shadow-sm transition-transform duration-200",e?"translate-x-5":"translate-x-0")})})]})}function N(){const t=l(),x=r(),N=c(),k=i(),C=n(),[D,L]=e.useState(!1),P=e.useCallback(()=>{L(e=>!e)},[]),B=D?t:t.filter(e=>"DEBUG"!==e.level);return d(k,m.logs,N),s.jsxs(h,{children:[s.jsx(p,{title:"System Logs",icon:s.jsx(o,{}),controls:s.jsx(w,{showDebug:D,onToggle:P})}),s.jsx(g,{children:s.jsxs(j,{noPadding:!0,children:[s.jsx(b,{listHeader:!0,icon:s.jsx(o,{className:"icon-sm"}),title:"Log Entries",actions:s.jsx("button",{onClick:()=>C(!N),className:a("transition-base",N?"text-signal-critical hover:text-signal-critical/80":"text-accent-primary hover:text-accent-primary/80 animate-pulse-slow"),title:N?"Pause":"Resume",children:N?s.jsx(f,{className:"w-5 h-5"}):s.jsx(y,{className:"w-5 h-5"})})}),s.jsx("div",{className:"space-y-2 max-h-[calc(100vh-300px)] sm:max-h-[calc(100vh-250px)] overflow-y-auto p-4",children:x&&0===t.length?s.jsx(u,{count:10}):0===B.length?s.jsx("div",{className:"text-center py-12 text-text-muted",children:0===t.length?"No logs available":"No logs match selected filters"}):B.map((e,a)=>s.jsx(v,{log:e},`${e.timestamp}-${a}`))})]})})]})}export{N as default}; diff --git a/frontend/dist/assets/MeshGraph-CQV_BObm.js b/frontend/dist/assets/MeshGraph-BcggNpqL.js similarity index 98% rename from frontend/dist/assets/MeshGraph-CQV_BObm.js rename to frontend/dist/assets/MeshGraph-BcggNpqL.js index 0ab35753..a6fbc95a 100644 --- a/frontend/dist/assets/MeshGraph-CQV_BObm.js +++ b/frontend/dist/assets/MeshGraph-BcggNpqL.js @@ -1 +1 @@ -import{r as e,j as t,m as s,i as a}from"./vendor-react-BKIq8k5U.js";import{c as n,aA as i,aZ as l,a_ as r,j as o,T as c,a$ as d,b0 as u,A as m,m as x,Y as p,aU as h,B as b,R as g,X as v}from"./index-_WuEOacy.js";import{M as y,a as j,D as f,s as k}from"./DeepAnalysisModal-Bs0eqWHM.js";import{D as w}from"./DataBox-ihLFk7Um.js";import{S as C,T as N}from"./target-SwsSSLmm.js";import{S}from"./settings-2-DSst-qFC.js";import{L}from"./loader-circle-E8BhCd6Y.js";import{N as M}from"./network-DFMZ0mT7.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./config-C7QO3CEB.js";import"./git-branch-BPL9j6g1.js";import"./database-DzqBwrzM.js";const z=n("focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]),O=n("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),D=!1,F=!0,B=!0,R=!0,P=!0,G=!0;let H=null;function A(){if(H)return H;const e=getComputedStyle(document.documentElement).getPropertyValue("--bg-body").trim();return H=e.startsWith("#")?e:"#171717",H}const T={local:"#FBBF24",hub:"#A78BFA",gateway:"#60A5FA",backbone:"#34D399",neighbor:"#F472B6",mobile:"#FB923C",ghost:"#6B7280",standard:"#9CA3AF"},E=e.memo(function({node:e,onClose:s}){return t.jsxs(x.div,{variants:k,initial:"hidden",animate:"visible",exit:"exit",className:"absolute inset-x-3 bottom-3 z-20 surface-elevated radius-inset shadow-xl",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-border-subtle/50",children:[t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:T[e.nodeClass]}}),t.jsx("code",{className:"text-sm font-semibold text-text-primary shrink-0",children:e.prefix}),e.name&&t.jsx("span",{className:"text-sm text-text-secondary truncate",children:e.name}),t.jsxs("div",{className:"flex gap-1 shrink-0",children:[e.isLocal&&t.jsx(b,{color:"yellow",compact:!0,children:"LOCAL"}),e.isHub&&t.jsx(b,{color:"violet",compact:!0,children:"HUB"}),e.isGateway&&t.jsx(b,{color:"sky",compact:!0,children:"GW"}),e.isBackbone&&t.jsx(b,{color:"emerald",compact:!0,children:"BONE"}),e.isMobile&&t.jsx(b,{color:"orange",compact:!0,children:"MOB"}),e.isZeroHop&&t.jsx(b,{color:"amber",compact:!0,children:"RF"})]})]}),t.jsx(v,{plain:!0,onClick:s,title:"Close",className:"shrink-0",children:t.jsx(p,{className:"size-4"})})]}),t.jsxs("div",{className:"p-3 font-mono text-[11px]",children:[t.jsx(w,{copy:!0,size:"compact",truncate:[10,6],className:"w-full mb-3",children:e.hash}),t.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Packets"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.packetCount.toLocaleString()})]}),t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Edges"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.edgeCount})]}),t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Degree"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.degree})]})]})]})]})});function Z(){return t.jsxs("div",{className:"flex flex-col items-center justify-center gap-6 text-center px-8",children:[t.jsx("div",{className:"p-4 radius-pill bg-subtle-fill",children:t.jsx(M,{className:"w-8 h-8 text-text-muted"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h2",{className:"type-subheading text-text-primary",children:"No Topology Data"}),t.jsx("p",{className:"type-body text-text-muted max-w-sm",children:"The mesh topology will appear here once packets are received and processed."})]}),t.jsxs("div",{className:"flex items-center gap-2 type-data-xs text-text-muted",children:[t.jsx(g,{className:"w-4 h-4 animate-pulse"}),t.jsx("span",{children:"Waiting for mesh traffic..."})]})]})}const W=e.memo(function({label:e,value:s,onChange:a,min:n,max:i,step:l}){return t.jsxs("div",{className:"space-y-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-[10px] text-text-muted",children:e}),t.jsx("span",{className:"text-[10px] text-text-secondary tabular-nums",children:s.toFixed(l<1?2:0)})]}),t.jsx("input",{type:"range",min:n,max:i,step:l,value:s,onChange:e=>a(parseFloat(e.target.value)),className:"w-full h-1 bg-white/10 rounded appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:bg-accent-primary [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:cursor-pointer"})]})}),V=e.memo(function({label:e,checked:s,onChange:a}){return t.jsxs("label",{className:"flex items-center justify-between cursor-pointer",children:[t.jsx("span",{className:"text-[10px] text-text-muted",children:e}),t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:"checkbox",checked:s,onChange:e=>a(e.target.checked),className:"sr-only"}),t.jsx("div",{className:"w-8 h-4 rounded-full transition-colors "+(s?"bg-accent-primary":"bg-white/20"),children:t.jsx("div",{className:"absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform "+(s?"translate-x-4":"translate-x-0.5")})})]})]})});function I(){var n;const g=i(),[v,k]=e.useState(!1),[w,M]=e.useState(!1),H=e.useRef(!1);e.useEffect(()=>{g&&!H.current&&(H.current=!0,M(!0))},[g]);const I=e.useCallback(()=>{M(!1),k(!0)},[]),$=l(),_=function(t,s=1e3){const[a,n]=e.useState(t),i=e.useRef(Date.now()),l=e.useRef(null);return e.useEffect(()=>{const e=Date.now(),a=s-(e-i.current);return a<=0?(n(t),i.current=e):(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{n(t),i.current=Date.now()},a)),()=>{l.current&&clearTimeout(l.current)}},[t,s]),a}(r(),2e3),q=o(),[K,U]=e.useState(!0),[J,X]=e.useState(null),[Y,Q]=e.useState(!1),[ee,te]=e.useState(""),[se,ae]=e.useState(!1),[ne,ie]=e.useState(!1),[le,re]=e.useState("simulation"),oe=e.useRef(null),ce=e.useRef(null),[de,ue]=e.useState(null),[me,xe]=e.useState(null),[pe,he]=e.useState({}),[be,ge]=e.useState({simulationDecay:2e4,simulationGravity:.02,simulationCenter:.05,simulationRepulsion:5,simulationRepulsionTheta:.4,simulationLinkSpring:.05,simulationLinkDistance:78,simulationFriction:.72,simulationRepulsionFromMouse:0,pointSizeScale:.4,pointOpacity:1,pointGreyoutOpacity:.1,linkWidthScale:.08,linkOpacity:.85,linkGreyoutOpacity:.1,curvedLinks:D,curvedLinkWeight:.8,linkDefaultArrows:F,linkArrowsSizeScale:1.7,scalePointsOnZoom:B,scaleLinksOnZoom:R,renderLinks:P,renderHoveredPointRing:G,spaceSize:4096}),ve=e.useCallback((e,t)=>{ge(s=>({...s,[e]:t}))},[]),ye=e.useCallback(()=>{ge({simulationDecay:2e4,simulationGravity:.02,simulationCenter:.05,simulationRepulsion:5,simulationRepulsionTheta:.4,simulationLinkSpring:.05,simulationLinkDistance:78,simulationFriction:.72,simulationRepulsionFromMouse:0,pointSizeScale:.4,pointOpacity:1,pointGreyoutOpacity:.1,linkWidthScale:.08,linkOpacity:.85,linkGreyoutOpacity:.1,curvedLinks:D,curvedLinkWeight:.8,linkDefaultArrows:F,linkArrowsSizeScale:1.7,scalePointsOnZoom:B,scaleLinksOnZoom:R,renderLinks:P,renderHoveredPointRing:G,spaceSize:4096})},[]);e.useEffect(()=>()=>{var e;try{null==(e=ce.current)||e.destroy()}catch{}ce.current=null},[]),e.useEffect(()=>{const e=e=>{var t,s;if(!(e.target instanceof HTMLInputElement))switch(e.key.toLowerCase()){case"f":e.metaKey||e.ctrlKey||(e.preventDefault(),null==(t=ce.current)||t.fitView(800));break;case"escape":se?(ae(!1),te("")):J&&(X(null),null==(s=ce.current)||s.unselectAllPoints());break;case"/":se||(e.preventDefault(),ae(!0),setTimeout(()=>{var e;return null==(e=oe.current)?void 0:e.focus()},50));break;case" ":e.preventDefault(),ce.current&&(K?ce.current.pause():ce.current.start(),U(e=>!e))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[se,J,K]);const je=e.useMemo(()=>{var e;if(!_||0===_.size||!v)return[];const t=[],s=(null==q?void 0:q.node_name)??(null==(e=null==q?void 0:q.config)?void 0:e.node_name)??null;for(const a of _.values()){const e=a.packetCount>0?Math.log10(a.packetCount+1):0,n=Math.log10(5001),i=6+18*Math.min(1,e/n),l=a.isLocal?s??a.name:a.name;t.push({id:a.hash,label:l?`${a.prefix} ${l}`:a.prefix,color:T[a.nodeClass],size:i,nodeClass:a.nodeClass,name:l,prefix:a.prefix,packetCount:a.packetCount,isLocal:a.isLocal,isHub:a.isHub,isGateway:a.isGateway,isBackbone:a.isBackbone,isMobile:a.isMobile,isZeroHop:a.isZeroHop,degree:a.degree,activityLevel:a.activityLevel})}return t},[_,v,null==q?void 0:q.node_name,null==(n=null==q?void 0:q.config)?void 0:n.node_name]),fe=e.useMemo(()=>new Set(je.map(e=>e.id)),[je]),ke=e.useMemo(()=>{const e=(null==$?void 0:$.edges)??[];if(!e.length||!v)return[];const t=[],s=Math.max(1,...e.map(e=>e.certainCount));for(const a of e){if(!fe.has(a.fromHash)||!fe.has(a.toHash))continue;const e=a.certainCount>0?Math.log10(a.certainCount+1):0,n=Math.log10(s+1),i=Math.min(1,e/n),l=.5+3*i,r=Math.round(100+155*i).toString(16).padStart(2,"0");t.push({source:a.fromHash,target:a.toHash,color:`#${r}${r}${r}`,width:l,packetCount:a.packetCount,certainCount:a.certainCount})}return t},[null==$?void 0:$.edges,v,fe]),we=e.useMemo(()=>{const e=new Map;for(const t of ke)e.set(t.source,(e.get(t.source)??0)+1),e.set(t.target,(e.get(t.target)??0)+1);return e},[ke]),Ce=e.useMemo(()=>{const e=new Map;for(const t of je)e.set(t.id,t);return e},[je]);e.useEffect(()=>{if(0===je.length)return ue(null),xe(null),void he({});let e=!1;const t=setTimeout(async()=>{try{const t=je.map(e=>({id:e.id,label:e.label,color:e.color,size:e.size})),s=ke.map(e=>({source:e.source,target:e.target,color:e.color,width:e.width})),n={points:{pointIdBy:"id",pointColorBy:"color",pointColorStrategy:"direct",pointDefaultColor:"#9CA3AF",pointLabelBy:"label",pointSizeBy:"size",pointSizeStrategy:"direct",pointDefaultSize:8,pointSizeScale:1,pointGreyoutOpacity:.3},links:{linkSourceBy:"source",linkTargetsBy:["target"],linkColorBy:"color",linkColorStrategy:"direct",linkDefaultColor:"#6B7280",linkWidthBy:"width",linkWidthStrategy:"direct",linkDefaultWidth:1,linkWidthScale:1,linkGreyoutOpacity:.1}},i=await a(n,t,s);if(e||!i)return;ue(i.points??null),xe(i.links??null),he(i.cosmographConfig??{})}catch(t){}},100);return()=>{e=!0,clearTimeout(t)}},[je,ke]);const Ne=e.useCallback(e=>{e&&(ce.current=e,e.start(),setTimeout(()=>{e.fitView(800)},1500))},[]),Se=e.useCallback(()=>{var e;null==(e=ce.current)||e.fitView(800)},[]),Le=e.useCallback(()=>{const e=ce.current;e&&(K?e.pause():e.start(),U(!K))},[K]),Me=e.useCallback(async e=>{const t=ce.current;if(t)try{const s=await t.getPointIndicesByIds([e]);s&&s.length>0&&void 0!==s[0]&&t.zoomToPoint(s[0],400,2.5)}catch{}},[]),ze=e.useCallback(async(e,t,s)=>{var a;if(void 0===e)return X(null),void(null==(a=ce.current)||a.unselectAllPoints());const n=ce.current;if(n)try{const t=await n.getPointIdsByIndices([e]);if(!t||0===t.length)return;const s=t[0],a=Ce.get(s);if(!a)return;n.selectPoint(e,!1,!0),X({hash:s,name:a.name,prefix:a.prefix,nodeClass:a.nodeClass,packetCount:a.packetCount,edgeCount:we.get(s)??0,degree:a.degree,isLocal:a.isLocal,isHub:a.isHub,isGateway:a.isGateway,isBackbone:a.isBackbone,isMobile:a.isMobile,isZeroHop:a.isZeroHop,activityLevel:a.activityLevel})}catch{}},[Ce,we]),Oe=e.useMemo(()=>{if(!se||!ee.trim())return[];const e=ee.toLowerCase();return je.filter(t=>{var s;return t.prefix.toLowerCase().includes(e)||(null==(s=t.name)?void 0:s.toLowerCase().includes(e))||t.id.toLowerCase().includes(e)}).slice(0,8)},[je,ee,se]),De=e.useCallback(e=>{Me(e.id),ae(!1),te(""),X({hash:e.id,name:e.name,prefix:e.prefix,nodeClass:e.nodeClass,packetCount:e.packetCount,edgeCount:we.get(e.id)??0,degree:e.degree,isLocal:e.isLocal,isHub:e.isHub,isGateway:e.isGateway,isBackbone:e.isBackbone,isMobile:e.isMobile,isZeroHop:e.isZeroHop,activityLevel:e.activityLevel})},[Me,we]),Fe=e.useCallback(()=>{Q(e=>!e)},[]),Be=t.jsx("div",{className:"absolute top-0 left-0 z-20 px-4 py-3 pointer-events-none",children:t.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2 sm:gap-3 pointer-events-auto",children:[t.jsx(h,{className:"w-5 h-5 sm:w-6 sm:h-6 text-icon-page-title"}),t.jsx("span",{children:"MeshGraph"}),t.jsx(b,{color:"sky",compact:!0,children:"Stock"})]})}),Re=t.jsxs("div",{className:"absolute top-12 right-3 z-10 flex items-center gap-1 surface-control radius-inner px-2 py-1.5",children:[t.jsxs("span",{className:"text-[10px] text-text-muted tabular-nums mr-2",children:[je.length," • ",ke.length]}),t.jsx(c,{content:"Search (/)",children:t.jsx("button",{onClick:()=>{ae(!0),setTimeout(()=>{var e;return null==(e=oe.current)?void 0:e.focus()},50)},className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:t.jsx(C,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:K?"Pause (Space)":"Play (Space)",children:t.jsx("button",{onClick:Le,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:K?t.jsx(d,{className:"w-4 h-4 text-accent-success"}):t.jsx(u,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:"Fit view (F)",children:t.jsx("button",{onClick:Se,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:t.jsx(z,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:"Settings",children:t.jsx("button",{onClick:()=>ie(e=>!e),className:"p-1.5 radius-inner transition-base "+(ne?"bg-accent-primary/20 text-accent-primary":"hover:bg-white/10 text-text-secondary"),children:t.jsx(S,{className:"w-4 h-4"})})}),t.jsx(c,{content:Y?"Exit fullscreen":"Fullscreen",children:t.jsx("button",{onClick:Fe,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:Y?t.jsx(y,{className:"w-4 h-4 text-text-secondary"}):t.jsx(j,{className:"w-4 h-4 text-text-secondary"})})})]}),Pe=t.jsx(m,{children:ne&&t.jsxs(x.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},className:"absolute top-24 right-3 z-10 w-72 surface-elevated radius-inset shadow-xl overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border-subtle",children:[t.jsx("span",{className:"text-xs font-medium text-text-primary",children:"Graph Settings"}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(c,{content:"Reset to defaults",children:t.jsx("button",{onClick:ye,className:"p-1 radius-badge hover:bg-white/10 transition-base",children:t.jsx(O,{className:"w-3.5 h-3.5 text-text-muted"})})}),t.jsx("button",{onClick:()=>ie(!1),className:"p-1 radius-badge hover:bg-white/10 transition-base",children:t.jsx(p,{className:"w-3.5 h-3.5 text-text-muted"})})]})]}),t.jsx("div",{className:"flex border-b border-border-subtle",children:["simulation","points","links","rendering"].map(e=>t.jsx("button",{onClick:()=>re(e),className:"flex-1 px-2 py-1.5 text-[10px] font-medium capitalize transition-colors "+(le===e?"text-accent-primary border-b-2 border-accent-primary":"text-text-muted hover:text-text-secondary"),children:e},e))}),t.jsxs("div",{className:"p-3 space-y-3 max-h-80 overflow-y-auto",children:["simulation"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Gravity",value:be.simulationGravity,onChange:e=>ve("simulationGravity",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Repulsion",value:be.simulationRepulsion,onChange:e=>ve("simulationRepulsion",e),min:0,max:5,step:.1}),t.jsx(W,{label:"Link Spring",value:be.simulationLinkSpring,onChange:e=>ve("simulationLinkSpring",e),min:0,max:2,step:.05}),t.jsx(W,{label:"Link Distance",value:be.simulationLinkDistance,onChange:e=>ve("simulationLinkDistance",e),min:1,max:100,step:1}),t.jsx(W,{label:"Friction",value:be.simulationFriction,onChange:e=>ve("simulationFriction",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Center Force",value:be.simulationCenter,onChange:e=>ve("simulationCenter",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Decay",value:be.simulationDecay,onChange:e=>ve("simulationDecay",e),min:100,max:2e4,step:100}),t.jsx(W,{label:"Repulsion Theta",value:be.simulationRepulsionTheta,onChange:e=>ve("simulationRepulsionTheta",e),min:.1,max:3,step:.05}),t.jsx(W,{label:"Mouse Repulsion",value:be.simulationRepulsionFromMouse,onChange:e=>ve("simulationRepulsionFromMouse",e),min:0,max:10,step:.5})]}),"points"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Size Scale",value:be.pointSizeScale,onChange:e=>ve("pointSizeScale",e),min:.1,max:5,step:.1}),t.jsx(W,{label:"Opacity",value:be.pointOpacity,onChange:e=>ve("pointOpacity",e),min:0,max:1,step:.05}),t.jsx(W,{label:"Greyout Opacity",value:be.pointGreyoutOpacity,onChange:e=>ve("pointGreyoutOpacity",e),min:0,max:1,step:.05}),t.jsx(V,{label:"Scale on Zoom",checked:be.scalePointsOnZoom,onChange:e=>ve("scalePointsOnZoom",e)}),t.jsx(V,{label:"Hover Ring",checked:be.renderHoveredPointRing,onChange:e=>ve("renderHoveredPointRing",e)})]}),"links"===le&&t.jsxs(t.Fragment,{children:[t.jsx(V,{label:"Show Links",checked:be.renderLinks,onChange:e=>ve("renderLinks",e)}),t.jsx(V,{label:"Curved Links",checked:be.curvedLinks,onChange:e=>ve("curvedLinks",e)}),t.jsx(V,{label:"Show Arrows",checked:be.linkDefaultArrows,onChange:e=>ve("linkDefaultArrows",e)}),t.jsx(W,{label:"Width Scale",value:be.linkWidthScale,onChange:e=>ve("linkWidthScale",e),min:.1,max:5,step:.1}),t.jsx(W,{label:"Opacity",value:be.linkOpacity,onChange:e=>ve("linkOpacity",e),min:0,max:1,step:.05}),t.jsx(W,{label:"Greyout Opacity",value:be.linkGreyoutOpacity,onChange:e=>ve("linkGreyoutOpacity",e),min:0,max:1,step:.05}),be.curvedLinks&&t.jsx(W,{label:"Curve Weight",value:be.curvedLinkWeight,onChange:e=>ve("curvedLinkWeight",e),min:0,max:1,step:.05}),be.linkDefaultArrows&&t.jsx(W,{label:"Arrow Size",value:be.linkArrowsSizeScale,onChange:e=>ve("linkArrowsSizeScale",e),min:.1,max:3,step:.1}),t.jsx(V,{label:"Scale on Zoom",checked:be.scaleLinksOnZoom,onChange:e=>ve("scaleLinksOnZoom",e)})]}),"rendering"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Space Size",value:be.spaceSize,onChange:e=>ve("spaceSize",e),min:1024,max:16384,step:512}),t.jsx("div",{className:"pt-2 border-t border-border-subtle/50",children:t.jsx("p",{className:"text-[9px] text-text-muted",children:"Space size defines the simulation boundary. Larger values allow more spread."})})]})]})]})}),Ge=t.jsx(m,{children:se&&t.jsx(x.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.15},className:"absolute top-4 left-1/2 -translate-x-1/2 z-30 w-80",children:t.jsxs("div",{className:"surface-elevated radius-inset shadow-2xl overflow-hidden",children:[t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border-subtle",children:[t.jsx(C,{className:"w-4 h-4 text-text-muted shrink-0"}),t.jsx("input",{ref:oe,type:"text",value:ee,onChange:e=>te(e.target.value),placeholder:"Search by name or prefix...",className:"flex-1 bg-transparent text-sm text-text-primary placeholder:text-text-muted focus:outline-none",onKeyDown:e=>{"Escape"===e.key?(ae(!1),te("")):"Enter"===e.key&&Oe.length>0&&De(Oe[0])}}),ee&&t.jsx("button",{onClick:()=>te(""),className:"p-0.5 radius-badge hover-bg transition-base",children:t.jsx(p,{className:"w-3 h-3 text-text-muted"})})]}),Oe.length>0&&t.jsx("div",{className:"max-h-64 overflow-y-auto",children:Oe.map((e,s)=>t.jsxs("button",{onClick:()=>De(e),className:"w-full flex items-center gap-3 px-3 py-2 text-left hover-bg transition-base "+(0===s?"bg-subtle-fill/50":""),children:[t.jsx("span",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:T[e.nodeClass]}}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm text-text-primary truncate",children:e.name||e.prefix}),e.name&&t.jsx("div",{className:"text-[10px] text-text-muted",children:e.prefix})]}),t.jsx(N,{className:"w-3 h-3 text-text-muted shrink-0"})]},e.id))}),ee&&0===Oe.length&&t.jsx("div",{className:"px-3 py-4 text-center text-sm text-text-muted",children:"No nodes found"}),!ee&&t.jsx("div",{className:"px-3 py-2 type-data-xs text-text-muted",children:"Type to search • Enter to select • Esc to close"})]})})});return v?0===je.length?t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsx("div",{className:"absolute inset-0 bg-bg-body flex items-center justify-center",children:t.jsx(Z,{})})]}):de?Y?t.jsxs("div",{className:"fixed inset-0 z-50 bg-bg-body flex flex-col overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 surface-header z-10",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(h,{className:"w-5 h-5 text-icon-page-title"}),t.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2",children:["MeshGraph",t.jsx(b,{color:"sky",compact:!0,children:"Stock"})]}),t.jsxs("span",{className:"text-[10px] text-text-muted tabular-nums",children:[je.length," nodes • ",ke.length," edges"]})]}),t.jsx(c,{content:"Exit fullscreen",children:t.jsx("button",{onClick:Fe,className:"p-1.5 radius-inner hover-bg transition-base",children:t.jsx(y,{className:"w-4 h-4 text-text-muted"})})})]}),t.jsxs("div",{className:"flex-1 relative min-h-0 m-2 surface-base radius-inset overflow-hidden border border-border-subtle",children:[t.jsx(s,{className:"absolute inset-0",points:de,links:me,...pe,...be,backgroundColor:A(),fitViewOnInit:!0,fitViewPadding:.15,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:50,showHoveredPointLabel:!0,onClick:ze,onMount:Ne,hoveredPointRingColor:"#FBBF24",hoveredPointCursor:"pointer"}),Ge,Re,Pe,t.jsx(m,{children:J&&t.jsx(E,{node:J,onClose:()=>{var e;X(null),null==(e=ce.current)||e.unselectAllPoints()}})})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0",children:[t.jsx(s,{className:"absolute inset-0",points:de,links:me,...pe,...be,backgroundColor:A(),fitViewOnInit:!0,fitViewPadding:.15,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:50,showHoveredPointLabel:!0,onClick:ze,onMount:Ne,hoveredPointRingColor:"#FBBF24",hoveredPointCursor:"pointer"}),Ge,Re,Pe,t.jsxs("div",{className:"absolute bottom-4 right-4 z-10 hidden lg:flex items-center gap-3 type-data-xs text-text-muted/60",children:[t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"/"})," Search"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"F"})," Fit"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"Space"})," Pause"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"Esc"})," Clear"]})]}),t.jsx(m,{children:J&&t.jsx(E,{node:J,onClose:()=>{var e;X(null),null==(e=ce.current)||e.unselectAllPoints()}})})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0 bg-bg-body flex flex-col items-center justify-center gap-3",children:[t.jsx(L,{className:"w-8 h-8 text-accent-primary animate-spin"}),t.jsx("span",{className:"type-body text-text-muted",children:"Preparing graph..."})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0 bg-bg-body flex items-center justify-center",children:[t.jsx(f,{isOpen:w,onClose:I}),!w&&t.jsx(L,{className:"w-8 h-8 text-accent-primary animate-spin"})]})]})}export{I as default}; +import{r as e,j as t,m as s,i as a}from"./vendor-react-BKIq8k5U.js";import{c as n,aA as i,aZ as l,a_ as r,j as o,T as c,a$ as d,b0 as u,A as m,m as x,Y as p,aU as h,B as b,R as g,X as v}from"./index-CrU_Ps9k.js";import{M as y,a as j,D as f,s as k}from"./DeepAnalysisModal-DU5K5xVI.js";import{D as w}from"./DataBox-sJHphnZd.js";import{S as C,T as N}from"./target-DsO2pqIH.js";import{S}from"./settings-2-D7yA0852.js";import{L}from"./loader-circle-D6Apotf0.js";import{N as M}from"./network-BfZEswvU.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./config-C7QO3CEB.js";import"./git-branch-CkXjQHb9.js";import"./database-lWroaxsL.js";const z=n("focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]),O=n("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),D=!1,F=!0,B=!0,R=!0,P=!0,G=!0;let H=null;function A(){if(H)return H;const e=getComputedStyle(document.documentElement).getPropertyValue("--bg-body").trim();return H=e.startsWith("#")?e:"#171717",H}const T={local:"#FBBF24",hub:"#A78BFA",gateway:"#60A5FA",backbone:"#34D399",neighbor:"#F472B6",mobile:"#FB923C",ghost:"#6B7280",standard:"#9CA3AF"},E=e.memo(function({node:e,onClose:s}){return t.jsxs(x.div,{variants:k,initial:"hidden",animate:"visible",exit:"exit",className:"absolute inset-x-3 bottom-3 z-20 surface-elevated radius-inset shadow-xl",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-border-subtle/50",children:[t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:T[e.nodeClass]}}),t.jsx("code",{className:"text-sm font-semibold text-text-primary shrink-0",children:e.prefix}),e.name&&t.jsx("span",{className:"text-sm text-text-secondary truncate",children:e.name}),t.jsxs("div",{className:"flex gap-1 shrink-0",children:[e.isLocal&&t.jsx(b,{color:"yellow",compact:!0,children:"LOCAL"}),e.isHub&&t.jsx(b,{color:"violet",compact:!0,children:"HUB"}),e.isGateway&&t.jsx(b,{color:"sky",compact:!0,children:"GW"}),e.isBackbone&&t.jsx(b,{color:"emerald",compact:!0,children:"BONE"}),e.isMobile&&t.jsx(b,{color:"orange",compact:!0,children:"MOB"}),e.isZeroHop&&t.jsx(b,{color:"amber",compact:!0,children:"RF"})]})]}),t.jsx(v,{plain:!0,onClick:s,title:"Close",className:"shrink-0",children:t.jsx(p,{className:"size-4"})})]}),t.jsxs("div",{className:"p-3 font-mono text-[11px]",children:[t.jsx(w,{copy:!0,size:"compact",truncate:[10,6],className:"w-full mb-3",children:e.hash}),t.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Packets"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.packetCount.toLocaleString()})]}),t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Edges"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.edgeCount})]}),t.jsxs("div",{children:[t.jsx("div",{className:"text-[9px] text-text-muted uppercase",children:"Degree"}),t.jsx("div",{className:"text-text-primary tabular-nums",children:e.degree})]})]})]})]})});function Z(){return t.jsxs("div",{className:"flex flex-col items-center justify-center gap-6 text-center px-8",children:[t.jsx("div",{className:"p-4 radius-pill bg-subtle-fill",children:t.jsx(M,{className:"w-8 h-8 text-text-muted"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h2",{className:"type-subheading text-text-primary",children:"No Topology Data"}),t.jsx("p",{className:"type-body text-text-muted max-w-sm",children:"The mesh topology will appear here once packets are received and processed."})]}),t.jsxs("div",{className:"flex items-center gap-2 type-data-xs text-text-muted",children:[t.jsx(g,{className:"w-4 h-4 animate-pulse"}),t.jsx("span",{children:"Waiting for mesh traffic..."})]})]})}const W=e.memo(function({label:e,value:s,onChange:a,min:n,max:i,step:l}){return t.jsxs("div",{className:"space-y-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-[10px] text-text-muted",children:e}),t.jsx("span",{className:"text-[10px] text-text-secondary tabular-nums",children:s.toFixed(l<1?2:0)})]}),t.jsx("input",{type:"range",min:n,max:i,step:l,value:s,onChange:e=>a(parseFloat(e.target.value)),className:"w-full h-1 bg-white/10 rounded appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:bg-accent-primary [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:cursor-pointer"})]})}),V=e.memo(function({label:e,checked:s,onChange:a}){return t.jsxs("label",{className:"flex items-center justify-between cursor-pointer",children:[t.jsx("span",{className:"text-[10px] text-text-muted",children:e}),t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:"checkbox",checked:s,onChange:e=>a(e.target.checked),className:"sr-only"}),t.jsx("div",{className:"w-8 h-4 rounded-full transition-colors "+(s?"bg-accent-primary":"bg-white/20"),children:t.jsx("div",{className:"absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform "+(s?"translate-x-4":"translate-x-0.5")})})]})]})});function I(){var n;const g=i(),[v,k]=e.useState(!1),[w,M]=e.useState(!1),H=e.useRef(!1);e.useEffect(()=>{g&&!H.current&&(H.current=!0,M(!0))},[g]);const I=e.useCallback(()=>{M(!1),k(!0)},[]),$=l(),_=function(t,s=1e3){const[a,n]=e.useState(t),i=e.useRef(Date.now()),l=e.useRef(null);return e.useEffect(()=>{const e=Date.now(),a=s-(e-i.current);return a<=0?(n(t),i.current=e):(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{n(t),i.current=Date.now()},a)),()=>{l.current&&clearTimeout(l.current)}},[t,s]),a}(r(),2e3),q=o(),[K,U]=e.useState(!0),[J,X]=e.useState(null),[Y,Q]=e.useState(!1),[ee,te]=e.useState(""),[se,ae]=e.useState(!1),[ne,ie]=e.useState(!1),[le,re]=e.useState("simulation"),oe=e.useRef(null),ce=e.useRef(null),[de,ue]=e.useState(null),[me,xe]=e.useState(null),[pe,he]=e.useState({}),[be,ge]=e.useState({simulationDecay:2e4,simulationGravity:.02,simulationCenter:.05,simulationRepulsion:5,simulationRepulsionTheta:.4,simulationLinkSpring:.05,simulationLinkDistance:78,simulationFriction:.72,simulationRepulsionFromMouse:0,pointSizeScale:.4,pointOpacity:1,pointGreyoutOpacity:.1,linkWidthScale:.08,linkOpacity:.85,linkGreyoutOpacity:.1,curvedLinks:D,curvedLinkWeight:.8,linkDefaultArrows:F,linkArrowsSizeScale:1.7,scalePointsOnZoom:B,scaleLinksOnZoom:R,renderLinks:P,renderHoveredPointRing:G,spaceSize:4096}),ve=e.useCallback((e,t)=>{ge(s=>({...s,[e]:t}))},[]),ye=e.useCallback(()=>{ge({simulationDecay:2e4,simulationGravity:.02,simulationCenter:.05,simulationRepulsion:5,simulationRepulsionTheta:.4,simulationLinkSpring:.05,simulationLinkDistance:78,simulationFriction:.72,simulationRepulsionFromMouse:0,pointSizeScale:.4,pointOpacity:1,pointGreyoutOpacity:.1,linkWidthScale:.08,linkOpacity:.85,linkGreyoutOpacity:.1,curvedLinks:D,curvedLinkWeight:.8,linkDefaultArrows:F,linkArrowsSizeScale:1.7,scalePointsOnZoom:B,scaleLinksOnZoom:R,renderLinks:P,renderHoveredPointRing:G,spaceSize:4096})},[]);e.useEffect(()=>()=>{var e;try{null==(e=ce.current)||e.destroy()}catch{}ce.current=null},[]),e.useEffect(()=>{const e=e=>{var t,s;if(!(e.target instanceof HTMLInputElement))switch(e.key.toLowerCase()){case"f":e.metaKey||e.ctrlKey||(e.preventDefault(),null==(t=ce.current)||t.fitView(800));break;case"escape":se?(ae(!1),te("")):J&&(X(null),null==(s=ce.current)||s.unselectAllPoints());break;case"/":se||(e.preventDefault(),ae(!0),setTimeout(()=>{var e;return null==(e=oe.current)?void 0:e.focus()},50));break;case" ":e.preventDefault(),ce.current&&(K?ce.current.pause():ce.current.start(),U(e=>!e))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[se,J,K]);const je=e.useMemo(()=>{var e;if(!_||0===_.size||!v)return[];const t=[],s=(null==q?void 0:q.node_name)??(null==(e=null==q?void 0:q.config)?void 0:e.node_name)??null;for(const a of _.values()){const e=a.packetCount>0?Math.log10(a.packetCount+1):0,n=Math.log10(5001),i=6+18*Math.min(1,e/n),l=a.isLocal?s??a.name:a.name;t.push({id:a.hash,label:l?`${a.prefix} ${l}`:a.prefix,color:T[a.nodeClass],size:i,nodeClass:a.nodeClass,name:l,prefix:a.prefix,packetCount:a.packetCount,isLocal:a.isLocal,isHub:a.isHub,isGateway:a.isGateway,isBackbone:a.isBackbone,isMobile:a.isMobile,isZeroHop:a.isZeroHop,degree:a.degree,activityLevel:a.activityLevel})}return t},[_,v,null==q?void 0:q.node_name,null==(n=null==q?void 0:q.config)?void 0:n.node_name]),fe=e.useMemo(()=>new Set(je.map(e=>e.id)),[je]),ke=e.useMemo(()=>{const e=(null==$?void 0:$.edges)??[];if(!e.length||!v)return[];const t=[],s=Math.max(1,...e.map(e=>e.certainCount));for(const a of e){if(!fe.has(a.fromHash)||!fe.has(a.toHash))continue;const e=a.certainCount>0?Math.log10(a.certainCount+1):0,n=Math.log10(s+1),i=Math.min(1,e/n),l=.5+3*i,r=Math.round(100+155*i).toString(16).padStart(2,"0");t.push({source:a.fromHash,target:a.toHash,color:`#${r}${r}${r}`,width:l,packetCount:a.packetCount,certainCount:a.certainCount})}return t},[null==$?void 0:$.edges,v,fe]),we=e.useMemo(()=>{const e=new Map;for(const t of ke)e.set(t.source,(e.get(t.source)??0)+1),e.set(t.target,(e.get(t.target)??0)+1);return e},[ke]),Ce=e.useMemo(()=>{const e=new Map;for(const t of je)e.set(t.id,t);return e},[je]);e.useEffect(()=>{if(0===je.length)return ue(null),xe(null),void he({});let e=!1;const t=setTimeout(async()=>{try{const t=je.map(e=>({id:e.id,label:e.label,color:e.color,size:e.size})),s=ke.map(e=>({source:e.source,target:e.target,color:e.color,width:e.width})),n={points:{pointIdBy:"id",pointColorBy:"color",pointColorStrategy:"direct",pointDefaultColor:"#9CA3AF",pointLabelBy:"label",pointSizeBy:"size",pointSizeStrategy:"direct",pointDefaultSize:8,pointSizeScale:1,pointGreyoutOpacity:.3},links:{linkSourceBy:"source",linkTargetsBy:["target"],linkColorBy:"color",linkColorStrategy:"direct",linkDefaultColor:"#6B7280",linkWidthBy:"width",linkWidthStrategy:"direct",linkDefaultWidth:1,linkWidthScale:1,linkGreyoutOpacity:.1}},i=await a(n,t,s);if(e||!i)return;ue(i.points??null),xe(i.links??null),he(i.cosmographConfig??{})}catch(t){}},100);return()=>{e=!0,clearTimeout(t)}},[je,ke]);const Ne=e.useCallback(e=>{e&&(ce.current=e,e.start(),setTimeout(()=>{e.fitView(800)},1500))},[]),Se=e.useCallback(()=>{var e;null==(e=ce.current)||e.fitView(800)},[]),Le=e.useCallback(()=>{const e=ce.current;e&&(K?e.pause():e.start(),U(!K))},[K]),Me=e.useCallback(async e=>{const t=ce.current;if(t)try{const s=await t.getPointIndicesByIds([e]);s&&s.length>0&&void 0!==s[0]&&t.zoomToPoint(s[0],400,2.5)}catch{}},[]),ze=e.useCallback(async(e,t,s)=>{var a;if(void 0===e)return X(null),void(null==(a=ce.current)||a.unselectAllPoints());const n=ce.current;if(n)try{const t=await n.getPointIdsByIndices([e]);if(!t||0===t.length)return;const s=t[0],a=Ce.get(s);if(!a)return;n.selectPoint(e,!1,!0),X({hash:s,name:a.name,prefix:a.prefix,nodeClass:a.nodeClass,packetCount:a.packetCount,edgeCount:we.get(s)??0,degree:a.degree,isLocal:a.isLocal,isHub:a.isHub,isGateway:a.isGateway,isBackbone:a.isBackbone,isMobile:a.isMobile,isZeroHop:a.isZeroHop,activityLevel:a.activityLevel})}catch{}},[Ce,we]),Oe=e.useMemo(()=>{if(!se||!ee.trim())return[];const e=ee.toLowerCase();return je.filter(t=>{var s;return t.prefix.toLowerCase().includes(e)||(null==(s=t.name)?void 0:s.toLowerCase().includes(e))||t.id.toLowerCase().includes(e)}).slice(0,8)},[je,ee,se]),De=e.useCallback(e=>{Me(e.id),ae(!1),te(""),X({hash:e.id,name:e.name,prefix:e.prefix,nodeClass:e.nodeClass,packetCount:e.packetCount,edgeCount:we.get(e.id)??0,degree:e.degree,isLocal:e.isLocal,isHub:e.isHub,isGateway:e.isGateway,isBackbone:e.isBackbone,isMobile:e.isMobile,isZeroHop:e.isZeroHop,activityLevel:e.activityLevel})},[Me,we]),Fe=e.useCallback(()=>{Q(e=>!e)},[]),Be=t.jsx("div",{className:"absolute top-0 left-0 z-20 px-4 py-3 pointer-events-none",children:t.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2 sm:gap-3 pointer-events-auto",children:[t.jsx(h,{className:"w-5 h-5 sm:w-6 sm:h-6 text-icon-page-title"}),t.jsx("span",{children:"MeshGraph"}),t.jsx(b,{color:"sky",compact:!0,children:"Stock"})]})}),Re=t.jsxs("div",{className:"absolute top-12 right-3 z-10 flex items-center gap-1 surface-control radius-inner px-2 py-1.5",children:[t.jsxs("span",{className:"text-[10px] text-text-muted tabular-nums mr-2",children:[je.length," • ",ke.length]}),t.jsx(c,{content:"Search (/)",children:t.jsx("button",{onClick:()=>{ae(!0),setTimeout(()=>{var e;return null==(e=oe.current)?void 0:e.focus()},50)},className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:t.jsx(C,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:K?"Pause (Space)":"Play (Space)",children:t.jsx("button",{onClick:Le,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:K?t.jsx(d,{className:"w-4 h-4 text-accent-success"}):t.jsx(u,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:"Fit view (F)",children:t.jsx("button",{onClick:Se,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:t.jsx(z,{className:"w-4 h-4 text-text-secondary"})})}),t.jsx(c,{content:"Settings",children:t.jsx("button",{onClick:()=>ie(e=>!e),className:"p-1.5 radius-inner transition-base "+(ne?"bg-accent-primary/20 text-accent-primary":"hover:bg-white/10 text-text-secondary"),children:t.jsx(S,{className:"w-4 h-4"})})}),t.jsx(c,{content:Y?"Exit fullscreen":"Fullscreen",children:t.jsx("button",{onClick:Fe,className:"p-1.5 radius-inner hover:bg-white/10 transition-base",children:Y?t.jsx(y,{className:"w-4 h-4 text-text-secondary"}):t.jsx(j,{className:"w-4 h-4 text-text-secondary"})})})]}),Pe=t.jsx(m,{children:ne&&t.jsxs(x.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},className:"absolute top-24 right-3 z-10 w-72 surface-elevated radius-inset shadow-xl overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border-subtle",children:[t.jsx("span",{className:"text-xs font-medium text-text-primary",children:"Graph Settings"}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(c,{content:"Reset to defaults",children:t.jsx("button",{onClick:ye,className:"p-1 radius-badge hover:bg-white/10 transition-base",children:t.jsx(O,{className:"w-3.5 h-3.5 text-text-muted"})})}),t.jsx("button",{onClick:()=>ie(!1),className:"p-1 radius-badge hover:bg-white/10 transition-base",children:t.jsx(p,{className:"w-3.5 h-3.5 text-text-muted"})})]})]}),t.jsx("div",{className:"flex border-b border-border-subtle",children:["simulation","points","links","rendering"].map(e=>t.jsx("button",{onClick:()=>re(e),className:"flex-1 px-2 py-1.5 text-[10px] font-medium capitalize transition-colors "+(le===e?"text-accent-primary border-b-2 border-accent-primary":"text-text-muted hover:text-text-secondary"),children:e},e))}),t.jsxs("div",{className:"p-3 space-y-3 max-h-80 overflow-y-auto",children:["simulation"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Gravity",value:be.simulationGravity,onChange:e=>ve("simulationGravity",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Repulsion",value:be.simulationRepulsion,onChange:e=>ve("simulationRepulsion",e),min:0,max:5,step:.1}),t.jsx(W,{label:"Link Spring",value:be.simulationLinkSpring,onChange:e=>ve("simulationLinkSpring",e),min:0,max:2,step:.05}),t.jsx(W,{label:"Link Distance",value:be.simulationLinkDistance,onChange:e=>ve("simulationLinkDistance",e),min:1,max:100,step:1}),t.jsx(W,{label:"Friction",value:be.simulationFriction,onChange:e=>ve("simulationFriction",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Center Force",value:be.simulationCenter,onChange:e=>ve("simulationCenter",e),min:0,max:1,step:.01}),t.jsx(W,{label:"Decay",value:be.simulationDecay,onChange:e=>ve("simulationDecay",e),min:100,max:2e4,step:100}),t.jsx(W,{label:"Repulsion Theta",value:be.simulationRepulsionTheta,onChange:e=>ve("simulationRepulsionTheta",e),min:.1,max:3,step:.05}),t.jsx(W,{label:"Mouse Repulsion",value:be.simulationRepulsionFromMouse,onChange:e=>ve("simulationRepulsionFromMouse",e),min:0,max:10,step:.5})]}),"points"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Size Scale",value:be.pointSizeScale,onChange:e=>ve("pointSizeScale",e),min:.1,max:5,step:.1}),t.jsx(W,{label:"Opacity",value:be.pointOpacity,onChange:e=>ve("pointOpacity",e),min:0,max:1,step:.05}),t.jsx(W,{label:"Greyout Opacity",value:be.pointGreyoutOpacity,onChange:e=>ve("pointGreyoutOpacity",e),min:0,max:1,step:.05}),t.jsx(V,{label:"Scale on Zoom",checked:be.scalePointsOnZoom,onChange:e=>ve("scalePointsOnZoom",e)}),t.jsx(V,{label:"Hover Ring",checked:be.renderHoveredPointRing,onChange:e=>ve("renderHoveredPointRing",e)})]}),"links"===le&&t.jsxs(t.Fragment,{children:[t.jsx(V,{label:"Show Links",checked:be.renderLinks,onChange:e=>ve("renderLinks",e)}),t.jsx(V,{label:"Curved Links",checked:be.curvedLinks,onChange:e=>ve("curvedLinks",e)}),t.jsx(V,{label:"Show Arrows",checked:be.linkDefaultArrows,onChange:e=>ve("linkDefaultArrows",e)}),t.jsx(W,{label:"Width Scale",value:be.linkWidthScale,onChange:e=>ve("linkWidthScale",e),min:.1,max:5,step:.1}),t.jsx(W,{label:"Opacity",value:be.linkOpacity,onChange:e=>ve("linkOpacity",e),min:0,max:1,step:.05}),t.jsx(W,{label:"Greyout Opacity",value:be.linkGreyoutOpacity,onChange:e=>ve("linkGreyoutOpacity",e),min:0,max:1,step:.05}),be.curvedLinks&&t.jsx(W,{label:"Curve Weight",value:be.curvedLinkWeight,onChange:e=>ve("curvedLinkWeight",e),min:0,max:1,step:.05}),be.linkDefaultArrows&&t.jsx(W,{label:"Arrow Size",value:be.linkArrowsSizeScale,onChange:e=>ve("linkArrowsSizeScale",e),min:.1,max:3,step:.1}),t.jsx(V,{label:"Scale on Zoom",checked:be.scaleLinksOnZoom,onChange:e=>ve("scaleLinksOnZoom",e)})]}),"rendering"===le&&t.jsxs(t.Fragment,{children:[t.jsx(W,{label:"Space Size",value:be.spaceSize,onChange:e=>ve("spaceSize",e),min:1024,max:16384,step:512}),t.jsx("div",{className:"pt-2 border-t border-border-subtle/50",children:t.jsx("p",{className:"text-[9px] text-text-muted",children:"Space size defines the simulation boundary. Larger values allow more spread."})})]})]})]})}),Ge=t.jsx(m,{children:se&&t.jsx(x.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.15},className:"absolute top-4 left-1/2 -translate-x-1/2 z-30 w-80",children:t.jsxs("div",{className:"surface-elevated radius-inset shadow-2xl overflow-hidden",children:[t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border-subtle",children:[t.jsx(C,{className:"w-4 h-4 text-text-muted shrink-0"}),t.jsx("input",{ref:oe,type:"text",value:ee,onChange:e=>te(e.target.value),placeholder:"Search by name or prefix...",className:"flex-1 bg-transparent text-sm text-text-primary placeholder:text-text-muted focus:outline-none",onKeyDown:e=>{"Escape"===e.key?(ae(!1),te("")):"Enter"===e.key&&Oe.length>0&&De(Oe[0])}}),ee&&t.jsx("button",{onClick:()=>te(""),className:"p-0.5 radius-badge hover-bg transition-base",children:t.jsx(p,{className:"w-3 h-3 text-text-muted"})})]}),Oe.length>0&&t.jsx("div",{className:"max-h-64 overflow-y-auto",children:Oe.map((e,s)=>t.jsxs("button",{onClick:()=>De(e),className:"w-full flex items-center gap-3 px-3 py-2 text-left hover-bg transition-base "+(0===s?"bg-subtle-fill/50":""),children:[t.jsx("span",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:T[e.nodeClass]}}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm text-text-primary truncate",children:e.name||e.prefix}),e.name&&t.jsx("div",{className:"text-[10px] text-text-muted",children:e.prefix})]}),t.jsx(N,{className:"w-3 h-3 text-text-muted shrink-0"})]},e.id))}),ee&&0===Oe.length&&t.jsx("div",{className:"px-3 py-4 text-center text-sm text-text-muted",children:"No nodes found"}),!ee&&t.jsx("div",{className:"px-3 py-2 type-data-xs text-text-muted",children:"Type to search • Enter to select • Esc to close"})]})})});return v?0===je.length?t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsx("div",{className:"absolute inset-0 bg-bg-body flex items-center justify-center",children:t.jsx(Z,{})})]}):de?Y?t.jsxs("div",{className:"fixed inset-0 z-50 bg-bg-body flex flex-col overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 surface-header z-10",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(h,{className:"w-5 h-5 text-icon-page-title"}),t.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2",children:["MeshGraph",t.jsx(b,{color:"sky",compact:!0,children:"Stock"})]}),t.jsxs("span",{className:"text-[10px] text-text-muted tabular-nums",children:[je.length," nodes • ",ke.length," edges"]})]}),t.jsx(c,{content:"Exit fullscreen",children:t.jsx("button",{onClick:Fe,className:"p-1.5 radius-inner hover-bg transition-base",children:t.jsx(y,{className:"w-4 h-4 text-text-muted"})})})]}),t.jsxs("div",{className:"flex-1 relative min-h-0 m-2 surface-base radius-inset overflow-hidden border border-border-subtle",children:[t.jsx(s,{className:"absolute inset-0",points:de,links:me,...pe,...be,backgroundColor:A(),fitViewOnInit:!0,fitViewPadding:.15,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:50,showHoveredPointLabel:!0,onClick:ze,onMount:Ne,hoveredPointRingColor:"#FBBF24",hoveredPointCursor:"pointer"}),Ge,Re,Pe,t.jsx(m,{children:J&&t.jsx(E,{node:J,onClose:()=>{var e;X(null),null==(e=ce.current)||e.unselectAllPoints()}})})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0",children:[t.jsx(s,{className:"absolute inset-0",points:de,links:me,...pe,...be,backgroundColor:A(),fitViewOnInit:!0,fitViewPadding:.15,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:50,showHoveredPointLabel:!0,onClick:ze,onMount:Ne,hoveredPointRingColor:"#FBBF24",hoveredPointCursor:"pointer"}),Ge,Re,Pe,t.jsxs("div",{className:"absolute bottom-4 right-4 z-10 hidden lg:flex items-center gap-3 type-data-xs text-text-muted/60",children:[t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"/"})," Search"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"F"})," Fit"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"Space"})," Pause"]}),t.jsxs("span",{children:[t.jsx("kbd",{className:"px-1 py-0.5 radius-badge bg-subtle-fill/50 font-mono",children:"Esc"})," Clear"]})]}),t.jsx(m,{children:J&&t.jsx(E,{node:J,onClose:()=>{var e;X(null),null==(e=ce.current)||e.unselectAllPoints()}})})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0 bg-bg-body flex flex-col items-center justify-center gap-3",children:[t.jsx(L,{className:"w-8 h-8 text-accent-primary animate-spin"}),t.jsx("span",{className:"type-body text-text-muted",children:"Preparing graph..."})]})]}):t.jsxs("div",{className:"relative h-[calc(100dvh-56px)] lg:h-dvh min-h-[500px] -mx-4 sm:-mx-6 lg:-mx-8 -mt-5 -mb-4 sm:-mb-6 lg:-mb-8 overflow-hidden",children:[Be,t.jsxs("div",{className:"absolute inset-0 bg-bg-body flex items-center justify-center",children:[t.jsx(f,{isOpen:w,onClose:I}),!w&&t.jsx(L,{className:"w-8 h-8 text-accent-primary animate-spin"})]})]})}export{I as default}; diff --git a/frontend/dist/assets/MeshGraphLabelTest-k3DKgt5_.js b/frontend/dist/assets/MeshGraphLabelTest-SejBKwwA.js similarity index 97% rename from frontend/dist/assets/MeshGraphLabelTest-k3DKgt5_.js rename to frontend/dist/assets/MeshGraphLabelTest-SejBKwwA.js index d2b29c7d..b2fcbb62 100644 --- a/frontend/dist/assets/MeshGraphLabelTest-k3DKgt5_.js +++ b/frontend/dist/assets/MeshGraphLabelTest-SejBKwwA.js @@ -1 +1 @@ -import{r as e,j as l,m as t,i as s}from"./vendor-react-BKIq8k5U.js";import{L as o}from"./loader-circle-E8BhCd6Y.js";import"./deckgl-DTsmDcfs.js";import"./index-_WuEOacy.js";import"./vendor-core-D1aqi_5O.js";const a=[{id:"node-1",label:"Alpha Hub",color:"#FFFFFF",size:20},{id:"node-2",label:"Beta Gateway",color:"#E0E0E0",size:15},{id:"node-3",label:"Gamma Relay",color:"#C0C0C0",size:12},{id:"node-4",label:"Delta Edge",color:"#A0A0A0",size:10},{id:"node-5",label:"Epsilon Leaf",color:"#808080",size:8}],n=[{source:"node-1",target:"node-2",color:"#666666",width:2},{source:"node-1",target:"node-3",color:"#666666",width:2},{source:"node-2",target:"node-4",color:"#444444",width:1},{source:"node-3",target:"node-5",color:"#444444",width:1}];function i(){const[i,r]=e.useState(null),[c,d]=e.useState(null),[m,p]=e.useState({}),[u,h]=e.useState([]),b=e.useRef(null),g=e.useCallback(e=>{h(l=>[...l.slice(-20),`${(new Date).toISOString().slice(11,19)} ${e}`])},[]);e.useEffect(()=>{(async()=>{var e,l,t;g("Starting data preparation..."),g(`Input nodes: ${JSON.stringify(a.map(e=>({id:e.id,label:e.label})))}`);try{const o=await s({points:{pointIdBy:"id",pointLabelBy:"label",pointColorBy:"color",pointColorStrategy:"direct",pointSizeBy:"size",pointSizeStrategy:"direct",pointDefaultSize:10,pointDefaultColor:"#FFFFFF",pointGreyoutOpacity:.3,pointSizeScale:1},links:{linkSourceBy:"source",linkTargetsBy:["target"],linkColorBy:"color",linkColorStrategy:"direct",linkWidthBy:"width",linkWidthStrategy:"direct",linkDefaultWidth:1,linkDefaultColor:"#444444",linkGreyoutOpacity:.1,linkWidthScale:1}},a,n);if(!o)return void g("ERROR: prepareCosmographData returned undefined");if(g("Preparation complete!"),g("result.points: "+(o.points?"present":"null")),g("result.links: "+(o.links?"present":"null")),g(`result.cosmographConfig keys: ${Object.keys(o.cosmographConfig??{}).join(", ")}`),o.points){const s=(null==(l=null==(e=o.points.schema)?void 0:e.fields)?void 0:l.map(e=>e.name))??[];g(`Arrow table columns: ${s.join(", ")}`);const a=s.includes("label");g("Has 'label' column in Arrow table: "+(a?"YES ✓":"NO ✗"));const n=null==(t=o.cosmographConfig)?void 0:t.pointLabelBy;g(`pointLabelBy in cosmographConfig: ${n??"NOT SET"}`)}r(o.points??null),d(o.links??null),p(o.cosmographConfig??{})}catch(o){g(`ERROR: ${o}`)}})()},[g]);const f=e.useCallback(e=>{b.current=e,g("Cosmograph mounted"),setTimeout(()=>{const e=document.querySelector(".css-label--labels-container"),l=document.querySelectorAll('[class*="css-label"]'),t=document.querySelectorAll('[class*="cosmograph"][class*="label"]');g("Label containers found: "+(e?"YES":"NO")),g(`Elements with css-label class: ${l.length}`),g(`Elements with cosmograph+label class: ${t.length}`),l.forEach((e,l)=>{});const s=document.querySelector(".cosmograph");if(s){const e=Array.from(s.children);g(`Cosmograph container children: ${e.map(e=>e.tagName+"."+e.className.split(" ")[0]).join(", ")}`)}},2e3)},[g]),x=e.useCallback(()=>{var e,l,t,s,o;g("Simulation ended"),null==(e=b.current)||e.fitView(500);const a=null==(l=b.current)?void 0:l._internalApi;if(a){g("Attempting to initialize labels via internal API...");try{null==(t=a.initializeLabels)||t.call(a),null==(o=null==(s=a.labels)?void 0:s.update)||o.call(s),g("Labels API called successfully")}catch(n){g(`Labels init error: ${n}`)}}else g("No internal API access")},[g]);return i?l.jsxs("div",{className:"h-screen flex flex-col bg-black text-white",children:[l.jsxs("div",{className:"px-4 py-2 border-b border-gray-800 flex items-center justify-between",children:[l.jsx("h1",{className:"text-lg font-semibold",children:"Label Rendering Test"}),l.jsxs("span",{className:"text-sm text-gray-400",children:[a.length," nodes • Check if labels appear below"]})]}),l.jsxs("div",{className:"flex-1 flex",children:[l.jsx("div",{className:"flex-1 relative",children:l.jsx(t,{className:"absolute inset-0",points:i,links:c,...m,backgroundColor:"#000000",fitViewOnInit:!0,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:10,showHoveredPointLabel:!0,pointLabelColor:"#FFFF00",pointLabelFontSize:14,onMount:f,onSimulationEnd:x})}),l.jsxs("div",{className:"w-80 border-l border-gray-800 p-4 overflow-auto",children:[l.jsx("h2",{className:"text-sm font-semibold mb-2",children:"Debug Log"}),l.jsx("div",{className:"space-y-1 text-xs font-mono text-gray-400",children:u.map((e,t)=>l.jsx("div",{children:e},t))}),l.jsx("h2",{className:"text-sm font-semibold mt-4 mb-2",children:"Config from prepareCosmographData"}),l.jsx("pre",{className:"text-xs font-mono text-gray-400 whitespace-pre-wrap",children:JSON.stringify(m,null,2)}),l.jsx("h2",{className:"text-sm font-semibold mt-4 mb-2",children:"Expected Labels"}),l.jsx("ul",{className:"text-xs space-y-1",children:a.map(e=>l.jsxs("li",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),l.jsx("span",{children:e.label})]},e.id))})]})]})]}):l.jsx("div",{className:"h-screen flex items-center justify-center bg-black",children:l.jsx(o,{className:"w-8 h-8 animate-spin text-white"})})}export{i as default}; +import{r as e,j as l,m as t,i as s}from"./vendor-react-BKIq8k5U.js";import{L as o}from"./loader-circle-D6Apotf0.js";import"./deckgl-DTsmDcfs.js";import"./index-CrU_Ps9k.js";import"./vendor-core-D1aqi_5O.js";const a=[{id:"node-1",label:"Alpha Hub",color:"#FFFFFF",size:20},{id:"node-2",label:"Beta Gateway",color:"#E0E0E0",size:15},{id:"node-3",label:"Gamma Relay",color:"#C0C0C0",size:12},{id:"node-4",label:"Delta Edge",color:"#A0A0A0",size:10},{id:"node-5",label:"Epsilon Leaf",color:"#808080",size:8}],n=[{source:"node-1",target:"node-2",color:"#666666",width:2},{source:"node-1",target:"node-3",color:"#666666",width:2},{source:"node-2",target:"node-4",color:"#444444",width:1},{source:"node-3",target:"node-5",color:"#444444",width:1}];function i(){const[i,r]=e.useState(null),[c,d]=e.useState(null),[m,p]=e.useState({}),[u,h]=e.useState([]),b=e.useRef(null),g=e.useCallback(e=>{h(l=>[...l.slice(-20),`${(new Date).toISOString().slice(11,19)} ${e}`])},[]);e.useEffect(()=>{(async()=>{var e,l,t;g("Starting data preparation..."),g(`Input nodes: ${JSON.stringify(a.map(e=>({id:e.id,label:e.label})))}`);try{const o=await s({points:{pointIdBy:"id",pointLabelBy:"label",pointColorBy:"color",pointColorStrategy:"direct",pointSizeBy:"size",pointSizeStrategy:"direct",pointDefaultSize:10,pointDefaultColor:"#FFFFFF",pointGreyoutOpacity:.3,pointSizeScale:1},links:{linkSourceBy:"source",linkTargetsBy:["target"],linkColorBy:"color",linkColorStrategy:"direct",linkWidthBy:"width",linkWidthStrategy:"direct",linkDefaultWidth:1,linkDefaultColor:"#444444",linkGreyoutOpacity:.1,linkWidthScale:1}},a,n);if(!o)return void g("ERROR: prepareCosmographData returned undefined");if(g("Preparation complete!"),g("result.points: "+(o.points?"present":"null")),g("result.links: "+(o.links?"present":"null")),g(`result.cosmographConfig keys: ${Object.keys(o.cosmographConfig??{}).join(", ")}`),o.points){const s=(null==(l=null==(e=o.points.schema)?void 0:e.fields)?void 0:l.map(e=>e.name))??[];g(`Arrow table columns: ${s.join(", ")}`);const a=s.includes("label");g("Has 'label' column in Arrow table: "+(a?"YES ✓":"NO ✗"));const n=null==(t=o.cosmographConfig)?void 0:t.pointLabelBy;g(`pointLabelBy in cosmographConfig: ${n??"NOT SET"}`)}r(o.points??null),d(o.links??null),p(o.cosmographConfig??{})}catch(o){g(`ERROR: ${o}`)}})()},[g]);const f=e.useCallback(e=>{b.current=e,g("Cosmograph mounted"),setTimeout(()=>{const e=document.querySelector(".css-label--labels-container"),l=document.querySelectorAll('[class*="css-label"]'),t=document.querySelectorAll('[class*="cosmograph"][class*="label"]');g("Label containers found: "+(e?"YES":"NO")),g(`Elements with css-label class: ${l.length}`),g(`Elements with cosmograph+label class: ${t.length}`),l.forEach((e,l)=>{});const s=document.querySelector(".cosmograph");if(s){const e=Array.from(s.children);g(`Cosmograph container children: ${e.map(e=>e.tagName+"."+e.className.split(" ")[0]).join(", ")}`)}},2e3)},[g]),x=e.useCallback(()=>{var e,l,t,s,o;g("Simulation ended"),null==(e=b.current)||e.fitView(500);const a=null==(l=b.current)?void 0:l._internalApi;if(a){g("Attempting to initialize labels via internal API...");try{null==(t=a.initializeLabels)||t.call(a),null==(o=null==(s=a.labels)?void 0:s.update)||o.call(s),g("Labels API called successfully")}catch(n){g(`Labels init error: ${n}`)}}else g("No internal API access")},[g]);return i?l.jsxs("div",{className:"h-screen flex flex-col bg-black text-white",children:[l.jsxs("div",{className:"px-4 py-2 border-b border-gray-800 flex items-center justify-between",children:[l.jsx("h1",{className:"text-lg font-semibold",children:"Label Rendering Test"}),l.jsxs("span",{className:"text-sm text-gray-400",children:[a.length," nodes • Check if labels appear below"]})]}),l.jsxs("div",{className:"flex-1 flex",children:[l.jsx("div",{className:"flex-1 relative",children:l.jsx(t,{className:"absolute inset-0",points:i,links:c,...m,backgroundColor:"#000000",fitViewOnInit:!0,showLabels:!0,showDynamicLabels:!0,showTopLabels:!0,showTopLabelsLimit:10,showHoveredPointLabel:!0,pointLabelColor:"#FFFF00",pointLabelFontSize:14,onMount:f,onSimulationEnd:x})}),l.jsxs("div",{className:"w-80 border-l border-gray-800 p-4 overflow-auto",children:[l.jsx("h2",{className:"text-sm font-semibold mb-2",children:"Debug Log"}),l.jsx("div",{className:"space-y-1 text-xs font-mono text-gray-400",children:u.map((e,t)=>l.jsx("div",{children:e},t))}),l.jsx("h2",{className:"text-sm font-semibold mt-4 mb-2",children:"Config from prepareCosmographData"}),l.jsx("pre",{className:"text-xs font-mono text-gray-400 whitespace-pre-wrap",children:JSON.stringify(m,null,2)}),l.jsx("h2",{className:"text-sm font-semibold mt-4 mb-2",children:"Expected Labels"}),l.jsx("ul",{className:"text-xs space-y-1",children:a.map(e=>l.jsxs("li",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),l.jsx("span",{children:e.label})]},e.id))})]})]})]}):l.jsx("div",{className:"h-screen flex items-center justify-center bg-black",children:l.jsx(o,{className:"w-8 h-8 animate-spin text-white"})})}export{i as default}; diff --git a/frontend/dist/assets/NodeInformationCard-Cdt6BsTw.js b/frontend/dist/assets/NodeInformationCard-BjZ_sk1b.js similarity index 90% rename from frontend/dist/assets/NodeInformationCard-Cdt6BsTw.js rename to frontend/dist/assets/NodeInformationCard-BjZ_sk1b.js index 00aeebdc..6c8ba316 100644 --- a/frontend/dist/assets/NodeInformationCard-Cdt6BsTw.js +++ b/frontend/dist/assets/NodeInformationCard-BjZ_sk1b.js @@ -1 +1 @@ -import{j as e}from"./vendor-react-BKIq8k5U.js";import{a as s}from"./PageLayout-C4LpOVqW.js";import{D as t}from"./DataBox-ihLFk7Um.js";import{R as a,bf as r}from"./index-_WuEOacy.js";import{C as l}from"./Card-BSUcfChC.js";function c({nodeName:c,repeaterVersion:m,coreVersion:i,localHash:n,publicKey:d}){return e.jsxs(s,{children:[e.jsx(l,{icon:e.jsx(a,{}),title:"Node Information",largeTitle:!0}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[e.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Node Name"}),e.jsx("p",{className:"type-body text-text-primary mt-0.5 sm:mt-1 truncate",title:c,children:c})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Repeater"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${m}`,children:["v",m]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Core"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${i}`,children:["v",i]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Console"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${r}`,children:["v",r]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Local Hash"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:n?e.jsx(t,{copy:!0,size:"compact",children:n}):e.jsx("span",{className:"type-data-sm text-text-secondary",children:"N/A"})})]})]}),d&&e.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-border-subtle",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Public Key"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:e.jsx(t,{copy:!0,size:"responsive",children:d})})]})]})}export{c as N}; +import{j as e}from"./vendor-react-BKIq8k5U.js";import{a as s}from"./PageLayout-BlXA3E6H.js";import{D as t}from"./DataBox-sJHphnZd.js";import{R as a,bf as r}from"./index-CrU_Ps9k.js";import{C as l}from"./Card-Cq7dyTi6.js";function c({nodeName:c,repeaterVersion:m,coreVersion:i,localHash:n,publicKey:d}){return e.jsxs(s,{children:[e.jsx(l,{icon:e.jsx(a,{}),title:"Node Information",largeTitle:!0}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[e.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Node Name"}),e.jsx("p",{className:"type-body text-text-primary mt-0.5 sm:mt-1 truncate",title:c,children:c})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Repeater"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${m}`,children:["v",m]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Core"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${i}`,children:["v",i]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Console"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${r}`,children:["v",r]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Local Hash"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:n?e.jsx(t,{copy:!0,size:"compact",children:n}):e.jsx("span",{className:"type-data-sm text-text-secondary",children:"N/A"})})]})]}),d&&e.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-border-subtle",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Public Key"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:e.jsx(t,{copy:!0,size:"responsive",children:d})})]})]})}export{c as N}; diff --git a/frontend/dist/assets/PacketList-BKgLb74Z.js b/frontend/dist/assets/PacketList-Q1pG-MMT.js similarity index 98% rename from frontend/dist/assets/PacketList-BKgLb74Z.js rename to frontend/dist/assets/PacketList-Q1pG-MMT.js index ee0a861e..480743a5 100644 --- a/frontend/dist/assets/PacketList-BKgLb74Z.js +++ b/frontend/dist/assets/PacketList-Q1pG-MMT.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PathMapMapLibre-CM9Tugko.js","assets/vendor-react-BKIq8k5U.js","assets/BasemapLayer-BldfARb5.js","assets/vendor-core-D1aqi_5O.js","assets/index-_WuEOacy.js","assets/house-BBcJvvl1.js","assets/payload-decoders-BC60O4FC.js","assets/SignalIndicator-BLxNXr0z.js","assets/arrow-up-Bfc4DrcP.js","assets/DataBox-ihLFk7Um.js","assets/chevron-right-DMrbDIps.js","assets/loader-circle-E8BhCd6Y.js","assets/map-pin-yDOfK60-.js","assets/triangle-alert-aHb4szMy.js","assets/route-C2p1jL3a.js","assets/activity-CYJ1WO67.js","assets/circle-check-COooBZCl.js","assets/database-DzqBwrzM.js","assets/index-DU6QWVJT.js","assets/maplibre-gl-B1CfjdFi.css","assets/index-B4-wugIc.css"])))=>i.map(i=>d[i]); -import{j as e,c as t,r as s}from"./vendor-react-BKIq8k5U.js";import{c as a,Z as n,_ as r,$ as i,a0 as l,X as c,a1 as o,a2 as d,a3 as x,B as m,a4 as h,a5 as p,a6 as u,a7 as g,a8 as f,r as y,a9 as j,aa as b,m as N,z as v,ab as w,ac as k,ad as C,ae as S,R as H,af as P,ag as M,ah as _,j as T,ai as B,aj as F,ak as L,al as z,H as D,I as A,A as E,am as R,J as U,an as $,ao as I,ap as V}from"./index-_WuEOacy.js";import{P as O,d as Q,a as W,b as G,c as q,e as K}from"./payload-decoders-BC60O4FC.js";import{D as Y,S as J,R as X,P as Z,a as ee,b as te,g as se,c as ae,Z as ne}from"./SignalIndicator-BLxNXr0z.js";import{a as re,A as ie}from"./arrow-up-Bfc4DrcP.js";import{a as le,D as ce}from"./DataBox-ihLFk7Um.js";import{C as oe}from"./chevron-right-DMrbDIps.js";import{L as de}from"./loader-circle-E8BhCd6Y.js";import{_ as xe}from"./deckgl-DTsmDcfs.js";import{M as me}from"./map-pin-yDOfK60-.js";import{T as he}from"./triangle-alert-aHb4szMy.js";import{L as pe,H as ue,R as ge}from"./route-C2p1jL3a.js";import{A as fe}from"./activity-CYJ1WO67.js";import{C as ye}from"./circle-check-COooBZCl.js";import{D as je}from"./database-DzqBwrzM.js";import{H as be}from"./house-BBcJvvl1.js";import{A as Ne}from"./index-DU6QWVJT.js";const ve=a("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),we=a("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ke=a("corner-down-right",[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]),Ce=a("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Se=a("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]),He=a("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Pe=a("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]),Me=a("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]),_e=a("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Te(e,t){[...t].reverse().forEach(s=>{const a=e.getVariant(s);a&&r(e,a),e.variantChildren&&e.variantChildren.forEach(e=>{Te(e,t)})})}function Be(){const e=new Set,t={subscribe:t=>(e.add(t),()=>{e.delete(t)}),start(t,s){const a=[];return e.forEach(e=>{a.push(n(e,t,{transitionOverride:s}))}),Promise.all(a)},set:t=>e.forEach(e=>{!function(e,t){Array.isArray(t)?Te(e,t):"string"==typeof t?Te(e,[t]):r(e,t)}(e,t)}),stop(){e.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>()=>{t.stop()}};return t}function Fe(){const e=i(Be);return l(e.mount,[]),e}function Le({"aria-label":s="Page navigation",className:a,...n}){return e.jsx("nav",{"aria-label":s,...n,className:t("flex gap-x-2",a)})}function ze({onClick:s,disabled:a=!1,className:n,children:r="Previous"}){return e.jsx("span",{className:t("grow basis-0",n),children:e.jsxs(c,{plain:!0,onClick:s,disabled:a,"aria-label":"Previous page",className:t("gap-1",a&&"invisible"),children:[e.jsx("svg",{className:"size-4 stroke-current",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M2.75 8H13.25M2.75 8L5.25 5.5M2.75 8L5.25 10.5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),r]})})}function De({onClick:s,disabled:a=!1,className:n,children:r="Next"}){return e.jsx("span",{className:t("flex grow basis-0 justify-end",n),children:e.jsxs(c,{plain:!0,onClick:s,disabled:a,"aria-label":"Next page",className:t("gap-1",a&&"invisible"),children:[r,e.jsx("svg",{className:"size-4 stroke-current",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M13.25 8L2.75 8M13.25 8L10.75 10.5M13.25 8L10.75 5.5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})]})})}function Ae({className:s,...a}){return e.jsx("span",{...a,className:t("hidden items-baseline gap-x-2 sm:flex",s)})}function Ee({page:s,current:a=!1,onClick:n,className:r,children:i}){return e.jsx(c,{plain:!a,outline:a,onClick:()=>null==n?void 0:n(s),"aria-label":`Page ${s}`,"aria-current":a?"page":void 0,className:t("min-w-[2.25rem] before:absolute before:-inset-px before:rounded-lg",a&&"before:bg-white/5",r),children:i??s})}function Re({className:s,...a}){return e.jsx("span",{"aria-hidden":"true",...a,className:t("w-[2.25rem] select-none text-center text-sm text-text-muted",s),children:"…"})}function Ue(e){if(!e||e.length<8)return null;const t=parseInt(e.slice(0,2),16),s=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),n=parseInt(e.slice(6,8),16);return isNaN(t)||isNaN(s)||isNaN(a)||isNaN(n)?null:((t|s<<8|a<<16|n<<24)>>>0).toString(16).toUpperCase().padStart(8,"0")}function $e(e){return e>=10?"excellent":e>=5?"good":e>=0?"fair":e>=-5?"poor":"critical"}function Ie(e){if(!e.payload)return null;try{const t=x(e.payload),s=function(e){const t=e.original_path||e.forwarded_path||[];if("string"==typeof t)try{const e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>parseInt(e,16))}catch{return[]}else if(Array.isArray(t))return t.map(e=>parseInt(e,16));return[]}(e),a=W(t,s);return a?{packet:e,decoded:a,timestamp:e.timestamp??0,hopCount:a.snrValues.length,rssi:e.rssi,snr:e.snr}:null}catch{return null}}const Ve={rx:{icon:ie,label:"Rx",badgeColor:Y.rx,avatarBg:"bg-emerald-500/15",avatarText:"text-emerald-400"},forward:{icon:ve,label:"Fwd",badgeColor:Y.forward,avatarBg:"bg-sky-500/15",avatarText:"text-sky-400"},duplicate:{icon:le,label:"Dupe",badgeColor:Y.duplicate,avatarBg:"bg-zinc-500/15",avatarText:"text-zinc-400"},tx:{icon:re,label:"Tx",badgeColor:Y.tx,avatarBg:"bg-violet-500/15",avatarText:"text-violet-400"},dropped:{icon:ke,label:"Drop",badgeColor:Y.dropped,avatarBg:"bg-amber-500/15",avatarText:"text-amber-400"}},Oe={sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4"},Qe={sm:"w-7 h-7",md:"w-8 h-8",lg:"w-9 h-9"};function We(e){return"tx_local"===e.packet_origin?"tx":"tx_forward"===e.packet_origin?"forward":e.is_duplicate?"duplicate":e.transmitted?"forward":e.drop_reason?"dropped":"rx"}const Ge=s.memo(function({packet:s,showLabel:a=!0,variant:n="avatar",size:r="sm"}){const i=We(s),l=Ve[i],c=l.icon;return"avatar"===n?e.jsx("div",{className:t("flex items-center justify-center rounded-full flex-shrink-0",l.avatarBg,Qe[r]),children:e.jsx(c,{className:t(Oe[r],l.avatarText)})}):e.jsxs(m,{color:l.badgeColor,children:[e.jsx(c,{className:Oe[r]}),a&&l.label]})}),qe=s.memo(function({path:s,localHash:a,className:n}){if(!s||0===s.length)return e.jsx("span",{className:t("text-white/30 text-[10px]",n),children:"—"});const r=a?(a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase():null;return e.jsx("span",{className:t("flex items-center gap-0.5 font-mono text-[10px] overflow-hidden",n),children:s.map((t,a)=>{const n=a===s.length-1,i=r&&t.toUpperCase()===r;return e.jsxs("span",{className:"flex items-center flex-shrink-0",children:[i?e.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-500/20 text-amber-400 text-[9px] font-medium",children:"You"}):e.jsx("span",{className:"px-1 py-0.5 rounded bg-white/[0.06] text-white/60",children:t.toUpperCase()}),!n&&e.jsx(oe,{className:"w-2.5 h-2.5 text-white/20 mx-0.5 flex-shrink-0"})]},`${t}-${a}`)})})}),Ke=s.memo(function({count:s,className:a}){const n=s>=2;return e.jsxs("span",{className:t("font-mono text-xs tabular-nums",n?"text-white/70":"text-white/30",a),children:[s,e.jsx("span",{className:"text-white/20",children:"→"})]})});function Ye(e){const t=e.payload_type_name||u(e.payload_type??e.type),s=e.route_type_name||g(e.route_type??e.route);return{payloadType:t,routeType:s,payloadColor:Z[t]??"zinc",routeColor:X[s]??"zinc"}}function Je(e){if(!e)return[];if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Xe(e,t){if(!e||!t)return null;const s=e.startsWith("0x")?e.slice(2):e;for(const[a,n]of Object.entries(t))if((a.startsWith("0x")?a.slice(2):a).toLowerCase().startsWith(s.toLowerCase()))return n.name||n.node_name||null;return null}const Ze=s.memo(function({packet:a,onClick:n,localHash:r,neighbors:i,isFlashing:l=!1,isPending:c,isTraceHighlighted:o,onTraceHover:d,traceTag:x,onViewTraceReport:u,dupeGroupPosition:g,isDupeGroupHovered:f=!1,onDupeGroupHover:y}){const j=h(a.is_duplicate),b=void 0!==g,{payloadType:N,routeType:v,payloadColor:w,routeColor:k}=Ye(a),C="tx_local"===a.packet_origin,S=c??a.isPending,H="TRACE"===N,P=Je(a.original_path),M=Je(a.forwarded_path),_=M.length>0?M:P,T=_.length,B=a.src_hash?(a.src_hash.startsWith("0x")?a.src_hash.slice(2,6):a.src_hash.slice(0,4)).toUpperCase():null,F=Xe(a.src_hash,i),L=a.payload_length??a.length??0;a.lbt_attempts;const z=s.useCallback(()=>{H&&x&&u?u(x):n(a)},[H,x,u,n,a]),D=s.useCallback(()=>{H&&x&&d&&d(x),b&&y&&a.packet_hash&&y(a.packet_hash)},[H,x,d,b,y,a.packet_hash]),A=s.useCallback(()=>{d&&d(null),y&&y(null)},[d,y]),E={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)",brown:"rgb(168, 133, 107)"},R=E[w]||E.zinc,U=f;return e.jsxs("div",{onClick:z,onMouseEnter:D,onMouseLeave:A,className:t("group relative cursor-pointer","hover:bg-white/[0.02]",j&&!f&&"opacity-40",l&&"flash-row",S&&"opacity-70",C&&"bg-violet-500/5",o&&"bg-teal-500/10"),children:[e.jsx("div",{className:t("absolute pointer-events-none transition-opacity duration-75",b?U?"opacity-100":"opacity-0":"opacity-0 group-hover:opacity-100"),style:(()=>{const e={pointerEvents:"none"};return"first"===g?{...e,borderTop:`2px solid ${R}`,borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:"none",borderRadius:"8px 8px 0 0",inset:"-2px -2px 0 -2px"}:"middle"===g?{...e,borderTop:"none",borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:"none",borderRadius:0,inset:"0 -2px"}:"last"===g?{...e,borderTop:"none",borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:`2px solid ${R}`,borderRadius:"0 0 8px 8px",inset:"0 -2px -2px -2px"}:{...e,border:`2px solid ${R}`,borderRadius:"8px",inset:"-2px"}})()}),e.jsxs("div",{className:"relative flex items-center gap-2 min-[600px]:gap-3 px-2 py-2 min-[600px]:px-3 min-[600px]:py-2.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx(Ge,{packet:a,variant:"avatar",size:"sm"}),S&&e.jsx(de,{className:"absolute -right-1 -bottom-1 w-3 h-3 text-amber-400 animate-spin"})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-bold text-[13px] text-white font-sans truncate",children:B||"—"}),F&&e.jsx("div",{className:"hidden min-[900px]:block text-[9px] text-white/40 truncate max-w-[70px]",children:F})]})]}),e.jsxs("div",{className:"flex-1 flex items-center gap-1 min-[600px]:gap-1.5 min-[900px]:gap-2 min-w-0",children:[e.jsx("span",{className:"text-[10px] min-[600px]:text-[11px] text-white/50 font-mono tabular-nums whitespace-nowrap flex-shrink-0",children:p(a.timestamp)}),e.jsx(m,{color:w,className:"flex-shrink-0",children:N}),e.jsx("span",{className:"min-[600px]:hidden text-[10px] font-mono text-white/40 flex-shrink-0",children:v.charAt(0)}),e.jsx(m,{color:k,className:"flex-shrink-0 hidden min-[600px]:inline-flex",children:v}),e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx(Ke,{count:T})}),e.jsxs("span",{className:"hidden min-[520px]:inline text-[10px] text-white/40 font-mono flex-shrink-0",children:[L,"B"]}),e.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:e.jsx(qe,{path:_,localHash:r})})]}),e.jsx("div",{className:"flex-shrink-0",children:e.jsx(J,{rssi:a.rssi,snr:a.snr,compact:!0,showValues:!0})})]})]})}),et=s.memo(function({packet:s,onClick:a,localHash:n,neighbors:r,isFlashing:i=!1,isPending:l,isTraceHighlighted:c,traceTag:o,onViewTraceReport:d,dupeGroupPosition:x,isDupeGroupHovered:u=!1,onDupeGroupHover:g}){const{payloadType:f,routeType:y,payloadColor:j,routeColor:b}=Ye(s),N="tx_local"===s.packet_origin,v=l??s.isPending,w="TRACE"===f,k=h(s.is_duplicate),C=Je(s.original_path),S=Je(s.forwarded_path),H=S.length>0?S:C,P=H.length,M=s.src_hash?(s.src_hash.startsWith("0x")?s.src_hash.slice(2,6):s.src_hash.slice(0,4)).toUpperCase():null,_=Xe(s.src_hash,r),T=s.payload_length??s.length??0,B=s.lbt_attempts??0,F={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)"},L=F[j]||F.zinc;return e.jsxs("div",{onClick:()=>{w&&o&&d?d(o):a(s)},className:t("relative pl-3 pr-2.5 py-2 cursor-pointer","active:bg-white/[0.04]",k&&"opacity-40",i&&"flash-row",v&&"opacity-70",N&&"bg-violet-500/5",c&&"bg-teal-500/10"),children:[e.jsx("div",{className:"absolute left-0 transition-all",style:(()=>{if(!x)return{opacity:0};const e=u?1:.4,t=u?"3px":"2px";return"first"===x?{backgroundColor:L,opacity:e,width:t,top:"6px",bottom:0,borderRadius:"0 9999px 0 0"}:"middle"===x?{backgroundColor:L,opacity:e,width:t,top:0,bottom:0,borderRadius:0}:"last"===x?{backgroundColor:L,opacity:e,width:t,top:0,bottom:"6px",borderRadius:"0 0 9999px 0"}:{backgroundColor:L,opacity:e,width:t,top:"6px",bottom:"6px",borderRadius:"9999px"}})()}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[e.jsx(Ge,{packet:s,variant:"avatar",size:"sm"}),v&&e.jsx(de,{className:"absolute -right-1 -bottom-1 w-2.5 h-2.5 text-amber-400 animate-spin"})]}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"font-semibold text-[14px] text-white tracking-tight",children:M||"—"}),_&&e.jsx("span",{className:"text-[12px] text-white/40 truncate max-w-[80px]",children:_}),e.jsx("div",{className:"flex-1"}),e.jsx(m,{color:j,className:"flex-shrink-0 !text-[9px] !px-1.5 !py-0",children:f}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[e.jsx("span",{className:"text-[10px] font-mono text-white/50 tabular-nums w-[28px] text-right",children:s.rssi}),e.jsx(J,{rssi:s.rssi,compact:!0,showValues:!1})]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-white/40 font-mono",children:[e.jsx("span",{className:"tabular-nums",children:p(s.timestamp)}),e.jsx(m,{color:b,className:"!text-[8px] !px-1 !py-0 !leading-none",children:y.charAt(0)}),P>0&&e.jsxs("span",{className:"text-white/30",children:[P,"h"]}),T>0&&e.jsxs("span",{className:"text-white/30",children:[T,"B"]}),B>0&&e.jsxs("span",{className:B>1?"text-amber-400/60":"text-white/30",children:["LBT:",B]}),null!=s.snr&&e.jsxs("span",{className:"text-white/30",children:[s.snr.toFixed(0),"dB"]})]}),P>0&&e.jsx("div",{className:"pt-0.5",children:e.jsx(qe,{path:H,localHash:n})})]})]})]})});function tt(e){if(e.contact_type){const t=e.contact_type.toLowerCase();if("repeater"===t||"rep"===t)return!0;if("companion"===t||"client"===t||"cli"===t)return!1;if("room server"===t||"room_server"===t||"room"===t||"server"===t)return!1}return!0===e.is_repeater||(e.is_repeater,!1)}const st=s.lazy(()=>xe(()=>import("./PathMapMapLibre-CM9Tugko.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function at(e){return`${(100*e).toFixed(0)}%`}function nt(e,t){const s=document.documentElement,a=getComputedStyle(s),n={success:a.getPropertyValue("--accent-success").trim()||"#39D98A",secondary:a.getPropertyValue("--accent-secondary").trim()||"#F9D26F",poor:a.getPropertyValue("--signal-poor").trim()||"#FF8A5C",danger:a.getPropertyValue("--accent-danger").trim()||"#FF5C7A",muted:a.getPropertyValue("--text-muted").trim()||"#767688"};let r;return r=0===t?n.muted:e>=1?n.success:e>=.5?n.secondary:e>=.25?n.poor:e>0?n.danger:n.muted,{color:r}}class rt extends s.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?e.jsxs("div",{className:"h-[200px] flex items-center justify-center text-text-muted",children:[e.jsx(he,{className:"w-4 h-4 mr-2"}),"Map failed to load"]}):this.props.children}}function it({path:a,neighbors:n,localNode:r,localHash:i,srcHash:l,dstHash:c,neighborAffinity:o,prefixLookup:d,hubNodes:x,traceSnr:m,advertiserSource:h}){const[p,u]=s.useState(null),g=s.useMemo(()=>{if(!h)return null;const e="wardrive"===h.nodeType;return{prefix:h.prefix||"??",candidates:[{hash:h.publicKey||h.prefix||"source",name:h.name,latitude:h.latitude,longitude:h.longitude,probability:1,isLocal:!1,isWardrive:e}],confidence:1,totalMatches:1,isSource:!0}},[h]),j=s.useMemo(()=>{if(h)return null;if(!l)return null;const e=y(l),t=n[l];if((null==t?void 0:t.latitude)&&(null==t?void 0:t.longitude)&&(0!==t.latitude||0!==t.longitude))return{prefix:e,candidates:[{hash:l,name:t.node_name||t.name||"Source",latitude:t.latitude,longitude:t.longitude,probability:1,isLocal:!1,isDirectNeighbor:!0===t.zero_hop}],confidence:1,totalMatches:1,isSource:!0};const s=(null==t?void 0:t.node_name)||(null==t?void 0:t.name)||l.slice(0,8);return{prefix:e,candidates:[{hash:l,name:s,latitude:0,longitude:0,probability:1,isLocal:!1}],confidence:1,totalMatches:1,isSource:!0}},[h,l,n]),b=s.useMemo(()=>{const e=(null==c?void 0:c.startsWith("0x"))?c.slice(2):c;if((!e||"00"===e||"0000000000000000"===e)&&r&&i){const e=y(i),t=0!==r.latitude||0!==r.longitude;return{prefix:e,candidates:[{hash:i,name:r.name||"Local Node",latitude:t?r.latitude:0,longitude:t?r.longitude:0,probability:1,isLocal:!0}],confidence:1,totalMatches:1,isDestination:!0}}if(!c)return null;const t=y(c);if(i&&c===i&&r){const e=0!==r.latitude||0!==r.longitude;return{prefix:t,candidates:[{hash:c,name:r.name||"Local Node",latitude:e?r.latitude:0,longitude:e?r.longitude:0,probability:1,isLocal:!0}],confidence:1,totalMatches:1,isDestination:!0}}const s=n[c];if((null==s?void 0:s.latitude)&&(null==s?void 0:s.longitude)&&(0!==s.latitude||0!==s.longitude))return{prefix:t,candidates:[{hash:c,name:s.node_name||s.name||"Destination",latitude:s.latitude,longitude:s.longitude,probability:1,isLocal:!1,isDirectNeighbor:!0===s.zero_hop}],confidence:1,totalMatches:1,isDestination:!0};const a=(null==s?void 0:s.node_name)||(null==s?void 0:s.name)||c.slice(0,8);return{prefix:t,candidates:[{hash:c,name:a,latitude:0,longitude:0,probability:1,isLocal:!1}],confidence:1,totalMatches:1,isDestination:!0}},[c,n,r,i]),N=s.useMemo(()=>function(e,t,s,a,n,r){if(!e||0===e.length)return{hops:[],overallConfidence:0,hasValidPath:!1};const i=e.length-1,l=e.map((l,c)=>{const o=c===i,d=e.length-c,{candidates:x,totalMatches:m}=function(e,t,s,a,n=!1,r,i,l){const c=function(e){const t={};for(const[s,a]of Object.entries(e))tt(a)&&(t[s]=a);return t}(t);let o;if(i){const t=function(e,t,s){const a=t.toUpperCase(),n=e.get(a);if(!n||0===n.candidates.length)return{hash:null,confidence:0};if(null==s?void 0:s.isLastHop)return{hash:n.bestMatch,confidence:n.confidence};if(1===(null==s?void 0:s.position))return{hash:n.bestMatch,confidence:n.confidence};if((null==s?void 0:s.position)&&n.bestMatchForPosition.has(s.position)){const e=n.bestMatchForPosition.get(s.position),t=Math.max(e.confidence,n.confidence);return{hash:e.hash,confidence:t}}if((null==s?void 0:s.adjacentPrefixes)&&s.adjacentPrefixes.length>0){let e=n.bestMatch,t=0;for(const a of n.candidates){let n=0;for(const e of s.adjacentPrefixes)n+=a.adjacentPrefixCounts.get(e.toUpperCase())||0;const r=a.combinedScore+n/Math.max(1,a.totalAdjacentObservations)*.3;r>t&&(t=r,e=a.hash)}return{hash:e,confidence:n.confidence}}return{hash:n.bestMatch,confidence:n.confidence}}(i,e,{position:l,isLastHop:n});o=t.confidence}const{matches:d,probability:x}=function(e,t,s,a,n=!1){const r=e.toUpperCase(),i=[],l=s&&f(r,s);l&&i.push(s);for(const h of Object.keys(t))f(r,h)&&i.push(h);if(n&&l&&s&&1===i.length)return{matches:i,probability:1,bestMatch:s};if(n&&l&&i.length>1){const e=i.filter(e=>e!==s);if(1===e.length)return{matches:i,probability:1,bestMatch:e[0]}}const c=i.length>0?1/i.length:0,o=[...i].sort();let d=null,x=-1;if(1===o.length)d=o[0];else if(o.length>1&&a){for(const e of o){const t=a.get(e),s=t?"number"==typeof t?t:t.combinedScore:0;s>x&&(x=s,d=e)}d||(d=o[0])}else o.length>0&&(d=o[0]);let m=c;if(i.length>1&&a&&x>0){let e=0;for(const t of i){const s=a.get(t);e+=s?"number"==typeof s?s:s.combinedScore:0}e>0&&(m=Math.min(.95,x/e))}return{matches:i,probability:m,bestMatch:d}}(e,c,a,r,n),m=d.length,h=[],p=e.toUpperCase(),u=s&&void 0!==s.latitude&&void 0!==s.longitude&&(0!==s.latitude||0!==s.longitude);for(const y of d){if(a&&f(p,a)&&y===a&&u&&s){h.push({hash:y,name:s.name||"Local Node",latitude:s.latitude,longitude:s.longitude,probability:n?1:x,isLocal:!0});continue}const e=c[y];(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(0!==e.latitude||0!==e.longitude)&&h.push({hash:y,name:e.node_name||e.name||"Unknown",latitude:e.latitude,longitude:e.longitude,probability:x,isLocal:!1,isDirectNeighbor:!0===e.zero_hop})}const g=h.length;if(1===g)h[0].probability=o??1;else if(g>1)if(void 0!==o&&o>0){h[0].probability=o;const e=1-o,t=g-1;h.slice(1).forEach(s=>{s.probability=e/t})}else{let e=0;const t=h.map(t=>{if(t.isLocal)return{candidate:t,score:1};const a=null==r?void 0:r.get(t.hash);let n=.5;var i;let l;return u&&s&&(n=(i=function(e,t,s,a){const n=(s-e)*Math.PI/180,r=(a-t)*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e*Math.PI/180)*Math.cos(s*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371e3}(s.latitude,s.longitude,t.latitude,t.longitude))<100?1:i<500?.9:i<1e3?.7:i<5e3?.5:i<1e4?.3:.1),a?l=.3*n+.3*a.hopConsistencyScore+.4*a.frequencyScore:(l=n,t.isDirectNeighbor&&(l=Math.max(l,.8))),e+=l,{candidate:t,score:l}});if(e>0)t.forEach(({candidate:t,score:s})=>{t.probability=Math.min(.95,s/e)});else{const e=1/g;h.forEach(t=>t.probability=e)}}return{candidates:h,totalMatches:m}}(l,t,s,a,o,n,r,d),h=x.length>0?Math.max(...x.map(e=>e.probability)):0;return{prefix:l,candidates:x,confidence:h,totalMatches:m}}),c=l.reduce((e,t)=>0===t.confidence?0:e*t.confidence,1),o=l.some(e=>e.candidates.length>0);return{hops:l,overallConfidence:c,hasValidPath:o}}(a,n,r,i,o,d),[a,n,r,i,o,d]),v=s.useMemo(()=>{const e=[];g?e.push(g):j&&e.push(j),e.push(...N.hops),b&&e.push(b);const t=e.reduce((e,t)=>0===t.confidence?0:e*t.confidence,1),s=e.some(e=>e.candidates.some(e=>0!==e.latitude||0!==e.longitude));return{hops:e,overallConfidence:t,hasValidPath:s}},[g,j,N,b]);return v.hasValidPath?e.jsxs("div",{className:"h-full flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-text-muted",children:"Path Confidence:"}),e.jsx("span",{className:(w=v.overallConfidence,w>=1?"text-accent-success":w>=.5?"text-accent-secondary":w>=.25?"text-signal-poor":w>0?"text-accent-danger":"text-text-muted"),children:at(v.overallConfidence)}),e.jsx("button",{className:"text-text-muted hover:text-text-secondary transition-colors",title:"Confidence is calculated based on how many known nodes match each path prefix. Multiple matches reduce confidence due to collision probability.",children:e.jsx(ee,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-accent-success"}),e.jsx("span",{className:"text-text-muted",children:"Exact"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-accent-secondary"}),e.jsx("span",{className:"text-text-muted",children:"Multi"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-text-muted"}),e.jsx("span",{className:"text-text-muted",children:"Unknown"})]})]})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:e.jsx(rt,{children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"h-full bg-bg-elevated flex items-center justify-center text-text-muted text-sm",children:"Loading map..."}),children:e.jsx(st,{resolvedPath:v,localNode:r,hubNodes:x,hoveredHopIndex:p,onHoverHop:u,traceSnr:m})})})}),e.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:v.hops.map((s,a)=>{var n,r,i;const l=!0===s.isSource,c=!0===s.isDestination,o=p===a;let d;return d=l?`Source: ${(null==(n=s.candidates[0])?void 0:n.name)||"Unknown"}`:c?`Destination: ${(null==(r=s.candidates[0])?void 0:r.name)||"Unknown"}`:0===s.totalMatches?"No matching nodes found":1===s.totalMatches?`Exact match: ${(null==(i=s.candidates[0])?void 0:i.name)||"Unknown"}`:`${s.totalMatches} possible matches (${(100*s.confidence).toFixed(0)}% confidence)`,e.jsxs("div",{className:t("flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-mono cursor-pointer transition-all",o?"bg-accent-primary/20 ring-1 ring-accent-primary/50":"bg-bg-elevated hover:bg-bg-subtle",l&&"border border-accent-success/30",c&&"border border-accent-primary/30"),title:d,onMouseEnter:()=>u(a),onMouseLeave:()=>u(null),children:[l&&e.jsx("span",{className:"text-accent-success text-[8px] mr-0.5",children:"SRC"}),c&&e.jsx("span",{className:"text-accent-primary text-[8px] mr-0.5",children:"DST"}),e.jsx("span",{style:nt(s.confidence,s.totalMatches),children:s.prefix}),!l&&!c&&s.totalMatches>1&&e.jsxs("span",{className:"text-text-muted",children:["×",s.totalMatches]}),!l&&!c&&0===s.totalMatches&&e.jsx("span",{className:"text-text-muted",children:"?"})]},a)})})]}):e.jsxs("div",{className:"flex items-center justify-center text-text-muted text-xs py-4",children:[e.jsx(me,{className:"w-3.5 h-3.5 mr-1.5 opacity-50"}),"No location data available for path nodes"]});var w}function lt(e){return e.match(/.{1,2}/g)||[]}function ct(e){return null!==e&&e.startsWith("payload:")}const ot={red:"var(--sys-red)",orange:"var(--sys-orange)",amber:"var(--sys-amber)",yellow:"var(--sys-yellow)",lime:"var(--sys-green)",green:"var(--sys-green)",emerald:"var(--sys-green)",teal:"var(--sys-teal)",cyan:"var(--sys-cyan)",sky:"var(--sys-cyan)",blue:"var(--sys-blue)",indigo:"var(--sys-indigo)",violet:"var(--sys-indigo)",purple:"var(--sys-purple)",fuchsia:"var(--sys-pink)",pink:"var(--sys-pink)",rose:"var(--sys-red)",brown:"var(--sys-brown)",zinc:"var(--text-muted)"},dt=15,xt="color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",mt="\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n ",ht=2,pt={type:"tween",duration:.25,ease:[.25,.1,.25,1]};function ut(e,t){return e?`inset 0 0 0 ${ht}px ${ot[t]}`:mt}function gt(e,t){return e?t:`color-mix(in srgb, ${t} ${dt}%, transparent)`}function ft({segments:t,selectedSegment:a,onSegmentClick:n}){const[r,i]=s.useState(null),[l,c]=s.useState(null),o=t.some(e=>void 0!==e.id)&&n,d=[];for(const e of t){const t=lt(e.hex);for(const s of t)d.push({byte:s.toUpperCase(),color:e.color,id:e.id})}const x=[];for(let e=0;e{const d=t.length<16;return e.jsx("div",{className:"flex rounded-md overflow-hidden",children:t.map(({byte:s,color:x,id:m},h)=>{const p=h===t.length-1,u=d&&p,g=ot[x],f=m?r===m:l===x,y=Boolean(m&&a===m),j=f||y;return e.jsx("span",{className:"w-[1.75rem] text-xs text-center py-0.5 font-mono select-none "+(o?"cursor-pointer":""),style:{backgroundColor:gt(j,g),color:j?"rgba(255,255,255,0.95)":g,transition:j?"none":"background-color 0.15s ease-out, color 0.15s ease-out",touchAction:"manipulation",...u?{borderRadius:"0 0.375rem 0.375rem 0"}:{}},onMouseEnter:()=>{m?i(m):c(x)},onMouseLeave:()=>{i(null),c(null)},onClick:()=>m&&(null==n?void 0:n(m)),onTouchStart:()=>{m?i(m):c(x)},onTouchEnd:()=>{i(null),c(null)},children:s},h)})},s)})})}function yt({bits:t,field:s,value:a,binary:n}){return e.jsxs("tr",{children:[e.jsx("td",{className:"py-1.5 text-xs text-text-muted tabular-nums",children:t}),e.jsx("td",{className:"py-1.5 text-sm text-text-secondary",children:s}),e.jsx("td",{className:"py-1.5",children:(()=>{if("Payload Type"===s){const t=Z[a]||"zinc";return e.jsx(m,{color:t,children:a})}if("Route Type"===s){const t=X[a]||"zinc";return e.jsx(m,{color:t,children:a})}return e.jsx("span",{className:"text-sm text-text-primary",children:a})})()}),e.jsx("td",{className:"py-1.5 font-mono text-xs text-sys-cyan",children:n})]})}function jt({id:t,title:s,color:a,hexBytes:n,startByte:r,endByte:i,isSelected:l,children:c}){const o=n?lt(n):[];return e.jsxs(N.div,{layout:"position",layoutId:t,transition:pt,className:"w-full min-w-0 overflow-hidden rounded-xl p-4 sm:p-5 space-y-4",style:{backgroundColor:xt,boxShadow:ut(l,a)},children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 min-w-0",children:[e.jsx(m,{color:a,children:s}),o.length>0&&o.length<=16&&o.map((t,s)=>e.jsx(m,{color:a,className:"font-mono",children:t.toUpperCase()},s))]}),e.jsxs("span",{className:"text-[10px] text-text-muted font-mono flex-shrink-0",children:["Bytes ",r,"-",i]})]}),e.jsx("div",{className:"min-w-0 overflow-hidden",children:c})]})}function bt({advert:t,timestamp:s}){const a=k(s||t.timestamp);return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-purple-500/10 dark:bg-purple-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-purple) 0%, var(--sys-blue) 100%)"},children:e.jsx(H,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.name||"Unknown Node"}),e.jsx("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:t.nodeType})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[void 0!==t.latitude&&void 0!==t.longitude&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(me,{className:"w-4 h-4 text-purple-600 dark:text-purple-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-mono",children:[t.latitude.toFixed(5),"°, ",t.longitude.toFixed(5),"°"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-purple-600 dark:text-purple-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]})]})]})})}function Nt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-teal-500/10 dark:bg-teal-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-teal) 0%, var(--sys-cyan) 100%)"},children:e.jsx(je,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.channelName||"Channel Data"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:[t.dataLength," bytes • ",t.decrypted?"Decrypted":"Encrypted"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ue,{className:"w-4 h-4 text-teal-600 dark:text-teal-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-sans",children:["Channel: ",e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-teal-600 dark:text-teal-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]}),t.decrypted&&t.decryptedHex&&e.jsxs("div",{className:"mt-2 pt-2 border-t border-black/10 dark:border-white/10",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mb-1 font-sans",children:"Decrypted Data"}),e.jsx("div",{className:"max-w-full overflow-x-auto",children:e.jsx(ce,{size:"compact",copy:!0,className:"inline-block",children:e.jsx("span",{className:"break-all text-xs",children:t.decryptedHex.toUpperCase()})})})]})]})]})})}function vt({decoded:t,timestamp:a,isLoading:n=!1,onDecrypted:r}){const i=a?k(a):"Unknown",[l,c]=s.useState(""),[o,d]=s.useState(!1),[m,h]=s.useState(null),[p,u]=s.useState(!1),g=s.useCallback(async()=>{if(l.trim()&&t.ciphertextHex&&t.macHex){d(!0),h(null);try{const e=parseInt(t.channelHash,16),s=x(t.macHex),a=x(t.ciphertextHex),n=await S(l.trim(),e,s,a);if(n.success){const e=n.result.plaintext,s=new TextDecoder("utf-8",{fatal:!1}).decode(e.slice(5)),a=s.indexOf(": "),i={...t,channelName:n.result.channelName,decrypted:!0,timestamp:e[0]|e[1]<<8|e[2]<<16|e[3]<<24,flags:e[4],senderName:a>0?s.slice(0,a):void 0,text:a>0?s.slice(a+2):s};null==r||r(i),c(""),u(!1)}else h(n.error)}catch(e){h(e instanceof Error?e.message:"Unknown error")}finally{d(!1)}}},[l,t,r]);return n?e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-xl p-4 sm:p-5",style:{backgroundColor:"color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",boxShadow:"\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n "},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 h-[15px]",children:[e.jsx("div",{className:"h-2.5 w-12 rounded bg-white/[0.08] animate-pulse"}),e.jsx("div",{className:"h-2.5 w-16 rounded bg-white/[0.08] animate-pulse"})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tl-md",style:{background:"color-mix(in srgb, var(--sys-blue) 30%, transparent)"},children:e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"h-3.5 w-48 rounded bg-white/[0.15] animate-pulse"}),e.jsx("div",{className:"h-3.5 w-32 rounded bg-white/[0.15] animate-pulse"})]})})]})}):t.decrypted?e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-xl p-4 sm:p-5",style:{backgroundColor:"color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",boxShadow:"\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n "},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.senderName&&e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["From ",e.jsx("span",{className:"text-text-secondary font-medium",children:t.senderName})]}),t.channelName&&e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["in ",e.jsx("span",{className:"text-sys-cyan font-medium",children:t.channelName})]})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tl-md",style:{background:"linear-gradient(135deg, var(--sys-blue) 0%, color-mix(in srgb, var(--sys-blue) 85%, var(--sys-cyan)) 100%)"},children:e.jsx("p",{className:"text-sm text-white font-sans leading-relaxed whitespace-pre-wrap break-words",children:t.text})})]})}):e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-zinc-500/10 dark:bg-zinc-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-zinc) 0%, color-mix(in srgb, var(--sys-zinc) 70%, black) 100%)"},children:e.jsx(Ce,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.isPublicHashChannel?"Public Hash Channel":"Encrypted Message"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:["Channel hash: ",e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:i})]}),t.ciphertextHex&&t.macHex&&e.jsx("div",{className:"space-y-2",children:p?e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"text",value:l,onChange:e=>c(e.target.value),placeholder:"Channel name (e.g. south-bay)",className:"flex-1 px-3 py-1.5 text-sm rounded-lg bg-black/20 border border-white/10 text-text-primary placeholder:text-text-muted focus:outline-none focus:border-zinc-500",onKeyDown:e=>"Enter"===e.key&&g(),disabled:o}),e.jsx("button",{onClick:g,disabled:o||!l.trim(),className:"px-3 py-1.5 text-sm font-medium rounded-lg bg-zinc-600 hover:bg-zinc-500 text-white disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"Testing...":"Try"}),e.jsx("button",{onClick:()=>{u(!1),h(null),c("")},className:"px-2 py-1.5 text-sm rounded-lg hover:bg-white/10 text-text-muted transition-colors",children:"×"})]}),m&&e.jsx("p",{className:"text-xs text-red-400",children:m})]}):e.jsx("button",{onClick:()=>u(!0),className:"text-xs text-zinc-400 hover:text-zinc-300 underline underline-offset-2 transition-colors",children:"Know the channel name? Try to decrypt"})}),!p&&e.jsx("p",{className:"text-xs text-text-muted",children:t.isPublicHashChannel?"Public hash channel message. Key not in common channel list.":"Unknown hash channel. Channel name required for decryption."})]})]})})}function wt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:"linear-gradient(135deg, var(--sys-green) 0%, var(--sys-teal) 100%)"},children:e.jsx(ye,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:"Acknowledgment"}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:["CRC: ",e.jsxs("span",{className:"font-mono text-sys-green",children:["0x",t.crc]})," · ",a]})]})]})}function kt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=t.path.length;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-amber-500/10 dark:bg-amber-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-amber) 0%, var(--sys-orange) 100%)"},children:e.jsx(ge,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:"Path Response"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:[n," ",1===n?"hop":"hops"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-amber-600 dark:text-amber-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]}),t.path.length>0&&e.jsx("div",{className:"mt-2 pt-2 border-t border-black/10 dark:border-white/10",children:e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:t.path.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[s>0&&e.jsx(ve,{className:"w-4 h-4 text-amber-500 dark:text-amber-400"}),e.jsx(m,{color:"amber",className:"font-mono",children:t})]},s))})})]})]})})}function Ct({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=t.pathHashes.length,r=t.snrValues.length;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-blue-500/10 dark:bg-blue-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-blue) 0%, var(--sys-indigo) 100%)"},children:e.jsx(fe,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("h3",{className:"text-lg font-medium text-text-primary truncate leading-tight",children:["Trace ",t.isComplete?"Complete":"In Progress"]}),e.jsxs("p",{className:"text-sm text-text-muted mt-0.5",children:["Tag: 0x",t.traceTag.slice(0,8),t.isComplete&&" • ✓"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary",children:a})]}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-text-muted",children:[e.jsxs("span",{children:[n," target ",1===n?"hop":"hops"]}),e.jsx("span",{children:"•"}),e.jsxs("span",{children:[r," SNR ",1===r?"sample":"samples"]}),0!==t.authCode&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsxs("span",{children:["Auth: ",t.authCode]})]})]}),t.pathHashes.length>0&&e.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:t.pathHashes.map((s,a)=>{const n=t.snrValues[a],r=void 0!==n?(e=>e>=7?"green":e>=0?"yellow":e>=-5?"orange":"red")(n):"zinc",i=void 0!==n;return e.jsxs("div",{className:"flex items-center gap-2",children:[a>0&&e.jsx(ve,{className:"w-4 h-4 text-blue-500 dark:text-blue-400 flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(m,{color:i?"blue":"zinc",className:"font-mono",children:s}),i&&e.jsxs(m,{color:r,className:"font-mono",children:[n>=0?"+":"",Number.isInteger(n)?n:n.toFixed(1),"dB"]})]})]},a)})})]})]})})}function St({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return t.encrypted?e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:"linear-gradient(135deg, var(--sys-purple) 0%, var(--sys-indigo) 100%)"},children:e.jsx(Ce,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:"Encrypted Message"}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:[t.srcHash," → ",t.destHash," · ",a]})]})]}):e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5 px-1",children:[e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:[e.jsx("span",{className:"font-mono text-text-secondary",children:t.srcHash})," → ",e.jsx("span",{className:"font-mono text-text-secondary",children:t.destHash})]}),e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["· ",a]})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tr-md ml-auto",style:{background:"linear-gradient(135deg, var(--sys-green) 0%, var(--sys-teal) 100%)"},children:e.jsx("p",{className:"text-sm text-white font-sans leading-relaxed whitespace-pre-wrap break-words",children:t.text})})]})}function Ht({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=(t.partNumber+1)/t.totalParts*100;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-yellow-500/10 dark:bg-yellow-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-yellow) 0%, var(--sys-amber) 100%)"},children:e.jsx(pe,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:"Multipart Segment"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:["Part ",t.partNumber+1," of ",t.totalParts]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsx("div",{children:e.jsx("div",{className:"h-2 bg-black/10 dark:bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${n}%`,background:"linear-gradient(90deg, var(--sys-yellow), var(--sys-amber))"}})})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ue,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-sans",children:["Message ID: ",e.jsx("span",{className:"font-mono",children:t.messageId})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]})]})]})})}function Pt({decoded:t,timestamp:s,payloadType:a}){const n=s?k(s):"Unknown",r=(()=>{switch(a){case v.REQ:return{icon:P,gradient:"var(--sys-orange), var(--sys-red)",bg:"rgba(249, 115, 22, 0.15)",label:"Request"};case v.RESPONSE:return{icon:Se,gradient:"var(--sys-green), var(--sys-teal)",bg:"rgba(34, 197, 94, 0.15)",label:"Response"};case v.ANON_REQ:return{icon:Ce,gradient:"var(--sys-purple), var(--sys-pink)",bg:"rgba(168, 85, 247, 0.15)",label:"Anonymous Request"};default:return{icon:te,gradient:"var(--sys-gray), var(--sys-slate)",bg:"rgba(107, 114, 128, 0.15)",label:t.payloadTypeName}}})(),i=r.icon;return e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:`linear-gradient(135deg, ${r.gradient})`},children:e.jsx(i,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:r.label}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:[t.length," bytes · ",n]})]})]})}function Mt({pathHex:t}){if(!t)return null;const s=lt(t);return e.jsx("div",{className:"flex flex-wrap items-center gap-2 py-2",children:s.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[s>0&&e.jsx(ve,{className:"w-4 h-4 text-sys-amber flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ce,{size:"compact",copy:!0,children:t.toUpperCase()}),e.jsx("span",{className:"text-[10px] text-text-muted font-sans tabular-nums w-4 text-left",children:s+1})]})]},s))})}function _t({decoded:t,payloadType:s}){const a=w[s]||`TYPE_${s}`;switch(t.type){case"advert":{const s="chat"===t.nodeType?"companion":t.nodeType.replace("_"," "),a=void 0!==t.latitude&&void 0!==t.longitude&&!(0===t.latitude&&0===t.longitude);return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Role:"})," ",s]}),t.name&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Name:"})," ",t.name]}),a&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Location:"})," ",t.latitude.toFixed(4),"°, ",t.longitude.toFixed(4),"°"]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Time:"})," ",k(t.timestamp)]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Flags:"})," ",t.flagsDescription]})]})}case"ack":return e.jsx("div",{className:"text-xs text-text-primary space-y-0.5",children:e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"CRC:"})," 0x",t.crc]})});case"path":return e.jsx("div",{className:"text-xs text-text-primary space-y-1",children:e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Path:"})," ",t.pathString||"(empty)"]})});case"trace":return e.jsxs("div",{className:"text-xs text-text-primary space-y-1",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Tag:"})," 0x",t.traceTag]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Target Path:"})," ",t.pathString||"(empty)"]}),t.snrValues.length>0&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"SNR:"})," ",t.snrValues.map(e=>`${e>=0?"+":""}${Number.isInteger(e)?e:e.toFixed(1)}dB`).join(" → ")]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Status:"})," ",t.isComplete?"✓ Complete":`In progress (${t.snrValues.length}/${t.pathHashes.length})`]})]});case"txt_msg":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Dest:"})," ",t.destHash]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Src:"})," ",t.srcHash]}),t.encrypted?e.jsx("p",{className:"text-text-muted italic",children:"Encrypted content"}):e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Text:"})," ",t.text]})]});case"grp_txt":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Channel:"})," ",t.channelName?e.jsx("span",{className:"text-accent-success",children:t.channelName}):t.isPublicHashChannel?e.jsx("span",{className:"text-accent-secondary",children:"Public Hash Channel"}):e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]}),t.decrypted?e.jsxs(e.Fragment,{children:[t.senderName&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"From:"})," ",t.senderName]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Text:"})," ",t.text]})]}):t.isPublicHashChannel?e.jsx("p",{className:"text-text-muted italic",children:"Encrypted (public hash channel)"}):e.jsx("p",{className:"text-text-muted italic",children:"Encrypted (unknown channel)"})]});case"grp_data":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Channel:"})," ",t.channelName?e.jsx("span",{className:"text-sys-teal",children:t.channelName}):e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Data:"})," ",t.dataLength," bytes ",t.decrypted?"(decrypted)":"(encrypted)"]})]});case"multipart":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Part:"})," ",t.partNumber+1,"/",t.totalParts]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Message ID:"})," ",t.messageId]})]});default:return e.jsxs("p",{className:"text-xs text-text-secondary",children:[a," (",t.length," bytes)"]})}}const Tt=s.memo(function({packet:t,decodedGrpTxt:a}){var n,r;const i=t.raw_packet||"",l=i.length/2,c=j(),[x,h]=s.useState(null),[p,u]=s.useState(null),[g,f]=s.useState(!1),[y,w]=s.useState(null),C=s.useCallback(e=>{w(t=>t===e?null:e)},[]),S=s.useMemo(()=>function(e){if(!e||e.length<4)return null;const t=O.fromHex(e);if(!t.success||!t.packet)return null;const s=t.packet,a=function(e){const t=3&e,s=e>>2&15,a=e>>6&3;return[{bits:"0-1",field:"Route Type",value:o(t),binary:(3&t).toString(2).padStart(2,"0")},{bits:"2-5",field:"Payload Type",value:d(s),binary:(15&s).toString(2).padStart(4,"0")},{bits:"6-7",field:"Version",value:a.toString(),binary:(3&a).toString(2).padStart(2,"0")}]}(s.header),n=e.slice(0,2);let r=2,i="";s.hasTransportCodes()&&(i=e.slice(2,10),r=10);const l=e.slice(r,r+2),c=r+2,x=c+2*s.pathLen,m=e.slice(c,x),h=e.slice(x),p=Q(s);return{packet:s,headerHex:n,headerFields:a,transportCodesHex:i,pathLengthHex:l,pathDataHex:m,payloadHex:h,payloadStartByte:Math.floor(x/2),decoded:p}}(i),[i]),H=null==(n=null==S?void 0:S.packet)?void 0:n.payloadType,P=(null==S?void 0:S.payloadHex)||"",M=null==(r=null==S?void 0:S.packet)?void 0:r.payload,_=H===v.GRP_TXT,T=H===v.GRP_DATA,B=_&&!a&&(!c||g);if(s.useEffect(()=>{if(h(null),f(!1),a)return;if(!_||!M||M.length<4)return;if(!c)return void f(!0);f(!0);let e=!1;return G(M).then(t=>{e||(h(t),f(!1))}),()=>{e=!0}},[P,_,c,a]),s.useEffect(()=>{if(u(null),!T||!M||M.length<4)return;if(!c)return;let e=!1;return q(M).then(t=>{e||u(t)}),()=>{e=!0}},[P,T,c]),!S||0===i.length)return e.jsx("div",{className:"p-4 text-center text-text-muted",children:e.jsx("p",{className:"text-sm",children:"No raw packet data available"})});const{packet:F}=S;let L=S.decoded;a&&"grp_txt"===S.decoded.type?L=a:x&&"grp_txt"===S.decoded.type?L=x:p&&"grp_data"===S.decoded.type&&(L=p);const z=s.useMemo(()=>function(t,s){switch(t.type){case"advert":return function(t,s){const a=[];let n=0;const r=s.slice(0,64);a.push({id:"payload:publicKey",title:"Public Key",color:"pink",hex:r,startByte:n,endByte:n+31,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:t.publicKey.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Ed25519 public key (32 bytes)"})]})}),n+=32;const i=s.slice(64,72);a.push({id:"payload:timestamp",title:"Timestamp",color:"orange",hex:i,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:i.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.timestamp," (",k(t.timestamp),")"]})]})}),n+=4;const l=s.slice(72,200);a.push({id:"payload:signature",title:"Signature",color:"teal",hex:l,startByte:n,endByte:n+63,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:t.signature.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Ed25519 signature (64 bytes)"})]})}),n+=64;const c=s.slice(200,202);if(a.push({id:"payload:flags",title:"Flags",color:"blue",hex:c,startByte:n,endByte:n,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.flags.toString(16).padStart(2,"0").toUpperCase()]}),e.jsx("p",{className:"text-xs text-text-primary mt-1",children:t.flagsDescription}),e.jsxs("p",{className:"text-xs text-text-muted",children:["Node Type: ",t.nodeType]})]})}),n+=1,void 0!==t.latitude){const r=s.slice(2*n,2*n+8);a.push({id:"payload:latitude",title:"Latitude",color:"green",hex:r,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.latitude.toFixed(6),"°"]})]})}),n+=4}if(void 0!==t.longitude){const r=s.slice(2*n,2*n+8);a.push({id:"payload:longitude",title:"Longitude",color:"purple",hex:r,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.longitude.toFixed(6),"°"]})]})}),n+=4}if(t.name){const r=s.slice(2*n),i=r.length/2;a.push({id:"payload:name",title:"Name",color:"amber",hex:r,startByte:n,endByte:n+i-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:['"',t.name,'"']})]})})}return a}(t,s);case"ack":return function(t,s){return[{id:"payload:crc",title:"CRC",color:"green",hex:s.slice(0,8),startByte:0,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.crc]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"CRC32 of acknowledged packet"})]})}]}(t,s);case"grp_txt":return function(t,s){const a=[];a.push({id:"payload:channelHash",title:"Channel Hash",color:"blue",hex:s.slice(0,2),startByte:0,endByte:0,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.channelHash]}),t.channelName&&e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:["Channel: ",t.channelName]})]})}),t.macHex&&a.push({id:"payload:mac",title:"MAC",color:"purple",hex:s.slice(2,6),startByte:1,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.macHex.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Truncated HMAC-SHA256"})]})});const n=s.slice(6);return n&&a.push({id:"payload:ciphertext",title:t.decrypted?"Message":"Ciphertext",color:t.decrypted?"green":"zinc",hex:n,startByte:3,endByte:3+n.length/2-1,decoded:t.decrypted?e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"text-sm text-text-primary",children:['"',t.text,'"']}),t.senderName&&e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:["From: ",t.senderName]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:n.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"AES-128-ECB encrypted"})]})}),a}(t,s);case"grp_data":return function(t,s){const a=[];a.push({id:"payload:channelHash",title:"Channel Hash",color:"blue",hex:s.slice(0,2),startByte:0,endByte:0,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.channelHash]}),t.channelName&&e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:["Channel: ",t.channelName]})]})}),t.macHex&&a.push({id:"payload:mac",title:"MAC",color:"purple",hex:s.slice(2,6),startByte:1,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.macHex.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Truncated HMAC-SHA256"})]})});const n=s.slice(6);return n&&a.push({id:"payload:ciphertext",title:t.decrypted?"Decrypted Data":"Encrypted Data",color:t.decrypted?"green":"zinc",hex:n,startByte:3,endByte:3+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:(t.decryptedHex||n).toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.dataLength," bytes",t.decrypted?"":" (AES-128-ECB encrypted)"]})]})}),a}(t,s);case"path":return function(t,s){return[{id:"payload:path",title:"Path Hops",color:"amber",hex:s,startByte:0,endByte:s.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-wrap items-center gap-1",children:t.path.map((t,s)=>e.jsxs("span",{className:"flex items-center gap-1",children:[s>0&&e.jsx(ve,{className:"w-3 h-3 text-text-muted"}),e.jsx(m,{color:"amber",className:"font-mono",children:t})]},s))}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.path.length," hops"]})]})}]}(t,s);case"trace":return function(t,s){const a=[];a.push({id:"payload:crc",title:"Trace Tag",color:"blue",hex:s.slice(0,8),startByte:0,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.traceTag]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Unique trace request identifier"})]})}),a.push({id:"payload:mac",title:"Auth Code",color:"purple",hex:s.slice(8,16),startByte:4,endByte:7,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.authCode}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Authentication/verification code"})]})}),a.push({id:"payload:flags",title:"Flags",color:"amber",hex:s.slice(16,18),startByte:8,endByte:8,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.flags.toString(16).toUpperCase().padStart(2,"0")]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:0===t.flags?"No flags set":`Flags: ${t.flags.toString(2).padStart(8,"0")}b`})]})});const n=s.slice(18);if(n){const s=e=>e>=7?"green":e>=0?"yellow":e>=-5?"orange":"red";a.push({id:"payload:path",title:"Target Path",color:"indigo",hex:n,startByte:9,endByte:9+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-wrap items-center gap-1",children:t.pathHashes.map((a,n)=>{const r=t.snrValues[n],i=void 0!==r?s(r):"zinc";return e.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&e.jsx(ve,{className:"w-3 h-3 text-text-muted"}),e.jsx(m,{color:"indigo",className:"font-mono",children:a}),void 0!==r&&e.jsxs(m,{color:i,className:"font-mono",children:[r>=0?"+":"",Number.isInteger(r)?r:r.toFixed(1),"dB"]})]},n)})}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.pathHashes.length," target ",1===t.pathHashes.length?"hop":"hops",t.snrValues.length>0&&` • ${t.snrValues.length} SNR ${1===t.snrValues.length?"value":"values"} collected`,t.isComplete&&" • ✓ Complete"]})]})})}return a}(t,s);case"multipart":return function(t,s){const a=[];a.push({id:"payload:msgId",title:"Message ID",color:"blue",hex:s.slice(0,4),startByte:0,endByte:1,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.messageId.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Unique message identifier"})]})}),a.push({id:"payload:partNum",title:"Part Number",color:"amber",hex:s.slice(4,6),startByte:2,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.partNumber}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"0-indexed part number"})]})}),a.push({id:"payload:totalParts",title:"Total Parts",color:"orange",hex:s.slice(6,8),startByte:3,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.totalParts}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:["Part ",t.partNumber+1," of ",t.totalParts]})]})});const n=s.slice(8);return n&&a.push({id:"payload:partData",title:"Part Data",color:"cyan",hex:n,startByte:4,endByte:4+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:n.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[n.length/2," bytes"]})]})}),a}(t,s);default:return[{id:"payload:ciphertext",title:"Raw Data",color:"zinc",hex:s,startByte:0,endByte:s.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:s.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[s.length/2," bytes"]})]})}]}}(L,S.payloadHex),[L,S.payloadHex]),D="payload"===y||ct(y),A=s.useMemo(()=>{const e=[{id:"header",hex:S.headerHex,color:"red"},...S.transportCodesHex?[{id:"transportCodes",hex:S.transportCodesHex,color:"purple"}]:[],{id:"pathLength",hex:S.pathLengthHex,color:"green"},...S.pathDataHex?[{id:"pathData",hex:S.pathDataHex,color:"amber"}]:[]];return D?[...e,...(t=z,t.map(e=>({id:e.id,hex:e.hex,color:e.color})))]:[...e,{id:"payload",hex:S.payloadHex,color:"cyan"}];var t},[S,D,z]);return e.jsxs("div",{className:"font-mono space-y-2 min-w-0 overflow-hidden",children:[(()=>{switch(L.type){case"advert":return e.jsx(bt,{advert:L,timestamp:t.timestamp});case"grp_data":return e.jsx(Nt,{decoded:L,timestamp:t.timestamp});case"grp_txt":return e.jsx(vt,{decoded:L,timestamp:t.timestamp,isLoading:B,onDecrypted:h});case"ack":return e.jsx(wt,{decoded:L,timestamp:t.timestamp});case"path":return e.jsx(kt,{decoded:L,timestamp:t.timestamp});case"trace":return e.jsx(Ct,{decoded:L,timestamp:t.timestamp});case"txt_msg":return e.jsx(St,{decoded:L,timestamp:t.timestamp});case"multipart":return e.jsx(Ht,{decoded:L,timestamp:t.timestamp});case"generic":return F.payloadType===v.REQ||F.payloadType===v.RESPONSE||F.payloadType===v.ANON_REQ?e.jsx(Pt,{decoded:L,timestamp:t.timestamp,payloadType:F.payloadType}):null;default:return null}})(),e.jsx("div",{className:"bg-black rounded-2xl p-6",children:e.jsx(ft,{segments:A,selectedSegment:y,onSegmentClick:C})}),e.jsx(b,{children:e.jsx(N.div,{layout:!0,transition:pt,className:"space-y-2 min-w-0",children:(()=>{var t,s,a,n;const r=[{id:"header",title:"Header",color:"red",startByte:0,endByte:0,hexBytes:`0x${S.headerHex.toUpperCase()}`,condition:!0,content:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-[10px] uppercase tracking-wide text-text-muted border-b border-border-subtle font-sans",children:[e.jsx("th",{className:"py-1 font-medium",children:"Bits"}),e.jsx("th",{className:"py-1 font-medium",children:"Field"}),e.jsx("th",{className:"py-1 font-medium",children:"Value"}),e.jsx("th",{className:"py-1 font-medium",children:"Binary"})]})}),e.jsx("tbody",{children:S.headerFields.map(t=>e.jsx(yt,{...t},t.bits))})]})},{id:"transportCodes",title:"Transport Codes",color:"purple",startByte:1,endByte:4,hexBytes:(null==(t=S.transportCodesHex)?void 0:t.toUpperCase())||"",condition:!!S.transportCodesHex,content:e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-text-muted",children:"Two 16-bit transport codes for encrypted routing"}),e.jsxs("div",{className:"mt-1 text-xs text-text-secondary",children:["Code 1: 0x",null==(s=S.transportCodesHex)?void 0:s.slice(0,4).toUpperCase()," | Code 2: 0x",null==(a=S.transportCodesHex)?void 0:a.slice(4,8).toUpperCase()]})]})},{id:"pathLength",title:"Path Length",color:"green",startByte:S.transportCodesHex?5:1,endByte:S.transportCodesHex?5:1,hexBytes:`0x${S.pathLengthHex.toUpperCase()}`,condition:!0,content:e.jsxs("p",{className:"text-xs text-text-muted pt-1",children:[F.pathLen," bytes showing route taken (increases as packet floods)"]})},{id:"pathData",title:"Path Data",color:"amber",startByte:S.transportCodesHex?6:2,endByte:(S.transportCodesHex?5:1)+F.pathLen,hexBytes:(null==(n=S.pathDataHex)?void 0:n.toUpperCase())||"",condition:F.pathLen>0,content:e.jsxs("div",{className:"space-y-3",children:[e.jsx(Mt,{pathHex:S.pathDataHex}),e.jsx("p",{className:"text-xs text-text-muted",children:"Historical route taken (bytes are added as packet floods through network)"})]})},{id:"payload",title:"Payload",color:"cyan",startByte:S.payloadStartByte,endByte:l-1,hexBytes:S.payloadHex.toUpperCase(),condition:!0,content:e.jsxs(e.Fragment,{children:[!ct(y)&&e.jsxs("div",{className:"p-3 rounded-lg bg-black",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mb-1.5 font-sans",children:"Decoded"}),e.jsx(_t,{decoded:L,payloadType:F.payloadType})]}),!ct(y)&&z.length>0&&e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mt-3 font-sans",children:"Click a field below to highlight its bytes"}),ct(y)&&e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted font-sans",children:"↑ Selected field above • Other fields below ↓"})]})}].filter(e=>e.condition),i=ct(y)?z.find(e=>e.id===y):null,c=ct(y)?[...r].sort((e,t)=>"payload"===e.id?-1:"payload"===t.id?1:0):[...r].sort((e,t)=>e.id===y?-1:t.id===y?1:0),o=ct(y)?z.filter(e=>e.id!==y):[];return e.jsxs(e.Fragment,{children:[i&&e.jsx(jt,{id:`subfield-${i.id}`,title:i.title,color:i.color,startByte:S.payloadStartByte+i.startByte,endByte:S.payloadStartByte+i.endByte,hexBytes:i.hex.toUpperCase(),isSelected:!0,children:i.decoded},i.id),c.map(t=>e.jsx(jt,{id:`section-${t.id}`,title:t.title,color:t.color,startByte:t.startByte,endByte:t.endByte,hexBytes:t.hexBytes,isSelected:t.id===y,children:t.content},t.id)),o.map(t=>e.jsxs(N.div,{layout:"position",layoutId:`subfield-${t.id}`,transition:pt,className:"w-full min-w-0 overflow-hidden rounded-xl p-4 sm:p-5 space-y-4",style:{backgroundColor:xt,boxShadow:mt},children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 min-w-0",children:[e.jsx(m,{color:t.color,children:t.title}),t.hex.length<=32&<(t.hex).map((s,a)=>e.jsx(m,{color:t.color,className:"font-mono",children:s.toUpperCase()},a))]}),e.jsxs("span",{className:"text-[10px] text-text-muted font-mono flex-shrink-0",children:["Bytes ",S.payloadStartByte+t.startByte,"-",S.payloadStartByte+t.endByte]})]}),e.jsx("div",{className:"min-w-0 overflow-hidden p-3 rounded-lg bg-black",children:t.decoded})]},t.id))]})})()})})]})});function Bt(e){if(!e)return[];if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Ft(e){return e?(e.startsWith("0x")?e.slice(2):e).slice(0,2).toUpperCase():""}function Lt({hop:a,compact:n=!1,index:r=0,highlightIndex:i=-1,isTrace:l=!1}){var c;const o=r===i,d=Fe();return s.useEffect(()=>{o&&l&&d.start({boxShadow:["0 0 0 0px rgba(113, 156, 223, 0)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 0px rgba(113, 156, 223, 0)"],transition:{duration:.5,times:[0,.2,.7,1],ease:"easeInOut"}})},[o,l,d]),e.jsxs(N.div,{className:t("flex items-center gap-1.5",n?"flex-row":"flex-col"),animate:{scale:o?1.05:1,opacity:o?1:.85},transition:{duration:.3,ease:"easeInOut"},children:[e.jsxs(N.div,{className:t("flex items-center gap-1.5 px-2.5 py-1 rounded-md","font-mono text-xs font-semibold",a.isLocal?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/30":"bg-zinc-700/50 text-zinc-200 ring-1 ring-zinc-600/50"),animate:d,initial:{boxShadow:"0 0 0 0px rgba(113, 156, 223, 0)"},children:[a.isLocal&&e.jsx(be,{className:"w-3 h-3"}),e.jsx("span",{children:a.prefix}),void 0!==a.confidence&&a.confidence<.9&&e.jsxs("span",{className:"text-[9px] opacity-70",children:[(100*a.confidence).toFixed(0),"%"]})]}),!n&&(null==(c=a.neighborInfo)?void 0:c.name)&&e.jsx("span",{className:"text-[10px] text-text-muted truncate max-w-[80px]",children:a.neighborInfo.name})]})}function zt({snr:t}){const s=_(t),a=M()[s]||"#6b7280",n=Number.isInteger(t)?t.toString():t.toFixed(1);return e.jsxs(m,{customColor:a,compact:!0,className:"font-mono",children:[t>=0?"+":"",n,"dB"]})}function Dt({hops:a,compact:n,isTrace:r=!1}){const[i,l]=s.useState(-1);return s.useEffect(()=>{if(0===a.length)return;const e=setTimeout(()=>{l(0)},400),t=setInterval(()=>{l(e=>{const s=e+1;return s>=a.length?(clearInterval(t),-1):s})},r?500:600);return()=>{clearTimeout(e),clearInterval(t)}},[a.length,r]),e.jsx("div",{className:"p-6",style:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"4px 8px"},children:a.map((s,l)=>{const c=l%2==0,o=l===a.length-1;return e.jsxs("div",{className:"contents",children:[e.jsx("div",{className:t("flex items-center","justify-end"),children:c&&e.jsx(Lt,{hop:s,compact:n,index:l,highlightIndex:i,isTrace:r})}),e.jsx("div",{className:"flex flex-col items-center justify-center min-h-[28px]",children:!o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px flex-1 bg-zinc-600/40 min-h-[8px]"}),void 0!==s.snr&&e.jsx(zt,{snr:s.snr}),e.jsx("svg",{className:"w-3 h-3 text-zinc-500 flex-shrink-0",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 2v8M3 7l3 3 3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),e.jsx("div",{className:t("flex items-center","justify-start"),children:!c&&e.jsx(Lt,{hop:s,compact:n,index:l,highlightIndex:i,isTrace:r})})]},`${s.prefix}-${l}`)})})}const At=s.memo(function({packet:a,neighbors:n,localHash:r,neighborAffinity:i,ghostPrefixes:l,direction:c="horizontal",compact:o=!1,traceSnr:d,overridePath:x}){const m=void 0!==d&&d.length>0,h=Bt(a.original_path),p=Bt(a.forwarded_path),u=x??(p.length>0?p:h),g=Ft(r),f=s.useMemo(()=>u.map((e,t)=>{const s=e.toUpperCase(),a=s===g,r=(null==l?void 0:l.has(s))??!1,c=function(e,t,s){const a=e.toUpperCase();if(s){let e=null,n=0;if(s.forEach((t,s)=>{if(Ft(s)===a){const a=t.combinedScore??0;a>n&&(n=a,e=s)}}),e&&t[e])return{hash:e,info:t[e],confidence:n}}for(const[n,r]of Object.entries(t))if(Ft(n)===a)return{hash:n,info:r,confidence:void 0};return null}(s,n,i);return{prefix:s,fullHash:null==c?void 0:c.hash,neighborInfo:null==c?void 0:c.info,isLocal:a,isGhost:r,confidence:null==c?void 0:c.confidence,snr:null==d?void 0:d[t]}}),[u,n,i,g,l,d]);if(0===f.length)return e.jsxs("div",{className:"flex items-center gap-2 text-text-muted text-xs",children:[e.jsx(H,{className:"w-4 h-4 opacity-50"}),e.jsx("span",{children:"Direct / No path data"})]});if("flowchart"===c)return e.jsx(Dt,{hops:f,compact:o,isTrace:m});const y="horizontal"===c?ve:ie;return e.jsx("div",{className:t("flex gap-1.5","horizontal"===c?"flex-row flex-wrap items-center":"flex-col items-start"),children:f.map((s,a)=>e.jsxs("div",{className:t("flex items-center gap-1.5","vertical"===c&&"flex-col"),children:[e.jsx(Lt,{hop:s,compact:o}),a0,l=ai&&n(a-1),disabled:!i,className:t("p-0.5 radius-badge transition-base",i?"text-text-muted hover:text-text-primary hover-bg":"text-white/20 cursor-not-allowed"),"aria-label":"Previous observation",children:e.jsx(we,{className:r?"size-3":"size-4"})}),e.jsx("div",{className:"flex items-center gap-0.5",children:s.map((s,i)=>{const l=i===a,c=new Date(1e3*s.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});return e.jsx(R,{color:l?"cyan":"zinc",filled:l,compact:r,onClick:()=>n(i),title:`Observation ${i+1} at ${c}`,className:t("transition-all duration-150",!l&&"opacity-60 hover:opacity-100"),children:r?e.jsx("span",{className:"tabular-nums",children:i+1}):e.jsxs("span",{className:"tabular-nums text-[10px]",children:["#",i+1,null!=s.rssi&&e.jsx("span",{className:"ml-1 opacity-70",children:s.rssi})]})},`${s.timestamp}_${i}`)})}),e.jsx("button",{onClick:()=>l&&n(a+1),disabled:!l,className:t("p-0.5 radius-badge transition-base",l?"text-text-muted hover:text-text-primary hover-bg":"text-white/20 cursor-not-allowed"),"aria-label":"Next observation",children:e.jsx(oe,{className:r?"size-3":"size-4"})}),e.jsxs("span",{className:t("text-text-muted ml-1",r?"text-[9px]":"text-[10px]"),children:[e.jsx(le,{className:"inline size-3 mr-0.5 opacity-50"}),s.length]})]})}function Ut({icon:s,label:a,disabled:n=!1}){return e.jsx(N.div,{className:"flex items-center gap-1 text-[10px]",title:a,animate:{opacity:n?.25:.6},transition:{duration:.15,ease:[.4,0,.2,1]},children:e.jsx("span",{className:t("flex items-center justify-center size-5 radius-badge border-control transition-base",n?"bg-white/[0.02] border-white/5":"bg-white/5"),children:s})})}function $t({hasDuplicates:t,hasPrev:s,hasNext:a,canPrevDupe:n,canNextDupe:r}){return e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(Ut,{icon:e.jsx(ae,{className:"size-3"}),label:"Previous packet (↑)",disabled:!s}),e.jsx(Ut,{icon:e.jsx(U,{className:"size-3"}),label:"Next packet (↓)",disabled:!a})]}),t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-3 bg-white/10"}),e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(Ut,{icon:e.jsx(we,{className:"size-3"}),label:"Previous observation (←)",disabled:!n}),e.jsx(Ut,{icon:e.jsx(oe,{className:"size-3"}),label:"Next observation (→)",disabled:!r})]})]})]})}const It=s.memo(function({packets:t,initialIndex:a=0,onClose:n,onNavigatePrev:r,onNavigateNext:i,hasPrev:l=!1,hasNext:c=!1}){const[o,d]=s.useState(a),h=t[o]??t[0],p=t.length>1,f=o>0,y=o{d(Math.max(0,Math.min(e,t.length-1)))},[t.length]);s.useEffect(()=>{const e=e=>{if(!(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement))switch(e.key){case"ArrowUp":e.preventDefault(),null==r||r();break;case"ArrowDown":e.preventDefault(),null==i||i();break;case"ArrowLeft":e.preventDefault(),f&&d(e=>e-1);break;case"ArrowRight":e.preventDefault(),y&&d(e=>e+1)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,i,f,y]);const b=T(),w=B(),k=F(),S=L(),P=s.useMemo(()=>new Set(S.map(e=>e.prefix.toUpperCase())),[S]),M=h.payload_type_name||u(h.payload_type??h.type),_=h.route_type_name||g(h.route_type??h.route),R=h.payload_length??h.length??0,U=Et(h.original_path),$=Et(h.forwarded_path),I=U.length>0||$.length>0,V=$.length>0?$:U,O=s.useMemo(()=>{var e;if(null==(e=null==b?void 0:b.config)?void 0:e.repeater)return{latitude:b.config.repeater.latitude,longitude:b.config.repeater.longitude,name:b.config.node_name||"Local Node"}},[b]),Q=(null==b?void 0:b.neighbors)??{},G=k.size>0?k:void 0,q=h.raw_packet&&h.raw_packet.length>0,Y=s.useMemo(()=>{if((h.payload_type??h.type)!==v.TRACE||!h.payload)return null;try{const e=x(h.payload),t=h.original_path||h.forwarded_path||[];let s=[];if("string"==typeof t)try{const e=JSON.parse(t);Array.isArray(e)&&(s=e.map(e=>parseInt(e,16)))}catch{s=[]}else Array.isArray(t)&&(s=t.map(e=>parseInt(e,16)));return W(e,s)}catch{return null}},[h]),X=null==Y?void 0:Y.snrValues,ee=s.useMemo(()=>{if((h.payload_type??h.type)!==v.ADVERT||!h.payload)return null;try{const e=x(h.payload),t=K(e);if(!t)return null;const s=t.publicKey.slice(0,2).toUpperCase();return{...t,prefix:s}}catch{return null}},[h]),te=s.useMemo(()=>{if((null==ee?void 0:ee.latitude)&&(null==ee?void 0:ee.longitude))return{latitude:ee.latitude,longitude:ee.longitude,name:ee.name||`Node ${ee.prefix||"??"}`,prefix:ee.prefix,publicKey:ee.publicKey}},[ee]),ae=e=>e&&0!==e?new Date(1e3*e).toLocaleString():"Unknown",ne=z(h.packet_hash),re=s.useMemo(()=>{if((h.payload_type??h.type)!==v.GRP_TXT)return null;if(!(null==ne?void 0:ne.decoded))return null;const e=ne.decoded;return{type:"grp_txt",channelHash:e.channelHash,channelName:e.channelName,text:e.text??"",decrypted:e.decrypted,senderName:e.senderName,timestamp:e.timestamp,flags:e.flags,macCorrupted:e.macCorrupted}},[h,ne]),ie=s.useCallback(e=>{if(!e)return null;const t=e.trim().match(/(-?\d+\.?\d*)\s*[,\s]\s*(-?\d+\.?\d*)/);if(!t)return null;const s=parseFloat(t[1]),a=parseFloat(t[2]);return isNaN(s)||isNaN(a)||s<-90||s>90||a<-180||a>180||0===s&&0===a?null:{lat:s,lon:a}},[]),le=s.useMemo(()=>{var e,t;if(!(null==re?void 0:re.decrypted))return;if(!(null==(e=re.channelName)?void 0:e.toLowerCase().includes("wardrive")))return;const s=ie(re.text);return s?{latitude:s.lat,longitude:s.lon,name:re.senderName||"Wardrive Ping",prefix:(null==(t=re.senderName)?void 0:t.slice(0,2).toUpperCase())||"WD",nodeType:"wardrive"}:void 0},[re,ie]),ce=(h.payload_type??h.type)===v.ADVERT&&(void 0!==te||I),oe=void 0!==le,de=te??le;if(0===V.length)return null;const xe=(null==b?void 0:b.local_hash)?(b.local_hash.startsWith("0x")?b.local_hash.slice(2,4):b.local_hash.slice(0,2)).toUpperCase():"";for(const e of V){const t=e.toUpperCase();if(t!==xe)if(G){let e=0,s=0;if(G.forEach((a,n)=>{(n.startsWith("0x")?n.slice(2,4):n.slice(0,2)).toUpperCase()===t&&(e++,s=Math.max(s,a.combinedScore??0))}),0===e)for(const a of Object.keys(Q))if((a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase()===t)break}else for(const e of Object.keys(Q))if((e.startsWith("0x")?e.slice(2,4):e.slice(0,2)).toUpperCase()===t)break}const he={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)"},pe=he[Z[M]??"zinc"]||he.zinc;return e.jsxs(D,{open:!0,onClose:n,size:"5xl",motionPlus:!0,className:"sm:h-[85vh] sm:max-h-[800px] md:h-[80vh] md:max-h-[900px]",children:[e.jsxs("div",{className:"sm:hidden",children:[e.jsx("div",{className:"flex justify-center pt-2 pb-1",children:e.jsx("div",{className:"w-9 h-1 rounded-full bg-white/30","aria-hidden":"true"})}),e.jsxs("div",{className:"flex items-center justify-between px-3 pb-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:Z[M]??"zinc",className:"!text-[9px] !px-1.5 !py-0",children:M}),e.jsx(m,{color:"DIRECT"===_||"T_DIRECT"===_?"cyan":"amber",className:"!text-[9px] !px-1.5 !py-0",children:_}),e.jsxs(m,{color:"zinc",className:"!text-[9px] !px-1.5 !py-0",children:[R,"B"]})]}),e.jsx("button",{onClick:n,className:"px-3 py-1.5 text-[15px] font-medium text-blue-400 active:text-blue-300 transition-base flex-shrink-0 radius-inner active:bg-white/5",children:"Done"})]}),p&&e.jsx("div",{className:"px-3 pb-2",children:e.jsx(Rt,{packets:t,selectedIndex:o,onSelect:j,compact:!0})})]}),e.jsx("div",{className:"hidden sm:block px-6 pt-5 pb-4",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{color:Z[M]??"zinc",children:M}),e.jsx(m,{color:"DIRECT"===_||"T_DIRECT"===_?"cyan":"amber",children:_}),e.jsxs(m,{color:"zinc",children:[R,"B"]}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-4 bg-white/10"}),e.jsx(Rt,{packets:t,selectedIndex:o,onSelect:j})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx($t,{hasDuplicates:p,hasPrev:l,hasNext:c,canPrevDupe:f,canNextDupe:y}),e.jsx("button",{onClick:n,className:"p-1.5 -m-1.5 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-elevated flex-shrink-0",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]})}),e.jsx("div",{className:"sm:hidden h-[2px]",style:{backgroundColor:pe,opacity:.6}}),e.jsxs(A,{className:"p-0 overflow-hidden flex-1 flex flex-col min-h-0",children:[e.jsx("div",{className:"md:hidden flex-1 overflow-y-auto overflow-x-hidden",children:e.jsxs("div",{className:"p-2 space-y-2",children:[(null!=h.rssi||null!=h.snr)&&e.jsxs("div",{className:"relative flex items-center justify-between px-2 py-1.5 radius-inner bg-white/[0.03]",children:[e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.div,{className:"flex items-center gap-3",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[e.jsx(J,{rssi:h.rssi,snr:h.snr,compact:!0,showValues:!0}),e.jsx("span",{className:"text-[11px] text-white/50",children:se(h.rssi)})]},o)}),V.length>0&&e.jsxs("span",{className:"text-[10px] font-mono text-white/40",children:[V.length," hop",1!==V.length?"s":""]})]}),(I&&V.length>0||ce||oe)&&e.jsx("div",{className:"overflow-hidden radius-inset",children:e.jsx("div",{className:"aspect-[4/3] w-full",children:e.jsx(it,{path:V,neighbors:Q,localNode:O,localHash:null==b?void 0:b.local_hash,srcHash:h.src_hash,dstHash:h.dst_hash,neighborAffinity:G,hubNodes:[...w],traceSnr:X,advertiserSource:de})})}),Y&&Y.pathHashes.length>0&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsx("div",{className:"px-3 py-2 space-y-1.5",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsx(m,{color:Y.isComplete?"green":"amber",compact:!0,children:Y.isComplete?"Complete":"In Progress"})})]})}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,overridePath:Y.pathHashes,traceSnr:Y.snrValues})]}),I&&!Y&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Path"}),e.jsxs(m,{color:"zinc",compact:!0,children:[V.length," hop",1!==V.length?"s":""]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,traceSnr:X})]}),ee&&e.jsxs("div",{className:"radius-inset bg-white/[0.03] overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Advertiser Info"}),e.jsx(m,{color:"lime",compact:!0,children:ee.nodeType})]}),e.jsxs("div",{className:"p-3 space-y-2",children:[ee.name&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:ee.name})]}),ee.latitude&&ee.longitude&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-xs font-mono text-text-secondary",children:[ee.latitude.toFixed(5),", ",ee.longitude.toFixed(5)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(He,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-[10px] font-mono text-text-muted truncate",children:[ee.publicKey.slice(0,16),"...",ee.publicKey.slice(-8)]})]}),ee.timestamp>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-xs text-text-muted",children:ae(ee.timestamp)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-[10px] text-text-muted",children:ee.flagsDescription||`Flags: 0x${ee.flags.toString(16).padStart(2,"0")}`})]})]})]}),q&&e.jsx("div",{className:"pt-1",children:e.jsx(Tt,{packet:h,decodedGrpTxt:re})})]})}),e.jsxs("div",{className:"hidden md:grid md:grid-cols-2 flex-1 overflow-hidden",children:[e.jsx("div",{className:"overflow-y-auto overflow-x-hidden scrollbar-none p-4 border-r border-border-subtle",children:q&&e.jsx(Tt,{packet:h,decodedGrpTxt:re})}),e.jsxs("div",{className:"grid overflow-hidden",style:{gridTemplateRows:"minmax(280px, 1fr) auto"},children:[e.jsx("div",{className:"overflow-hidden p-2",children:I&&V.length>0||ce||oe?e.jsx("div",{className:"h-full w-full",children:e.jsx(it,{path:V,neighbors:Q,localNode:O,localHash:null==b?void 0:b.local_hash,srcHash:h.src_hash,dstHash:h.dst_hash,neighborAffinity:G,hubNodes:[...w],traceSnr:X,advertiserSource:de})}):e.jsxs("div",{className:"h-full w-full flex flex-col items-center justify-center text-center px-4",children:[e.jsx(H,{className:"w-8 h-8 text-text-muted/50 mb-2"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Direct Reception"}),e.jsx("span",{className:"text-xs text-text-muted/70 mt-1",children:"Zero-hop packet — received directly from sender"})]})}),e.jsxs("div",{className:"overflow-y-auto max-h-[200px] p-2 space-y-2",children:[!Y&&V.length<=1&&(null!=h.rssi||null!=h.snr)&&e.jsx("div",{className:"surface-base radius-inset p-4",children:e.jsxs("dl",{className:"text-xs grid grid-cols-2 gap-2",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-text-muted mb-1",children:"Signal"}),e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.dd,{className:"flex items-center gap-2",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[e.jsx(J,{rssi:h.rssi,snr:h.snr}),e.jsx("span",{className:"font-medium text-text-primary",children:se(h.rssi)})]},o)})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-text-muted mb-1",children:"RF"}),e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.dd,{className:"font-mono text-text-secondary tabular-nums",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[null!=h.rssi&&`${h.rssi} dBm`,null!=h.snr&&` · ${h.snr.toFixed(1)} dB`]},o)})]})]})}),ee&&e.jsxs("div",{className:"radius-inset bg-white/[0.03] overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Advertiser"}),e.jsx(m,{color:"lime",compact:!0,children:ee.nodeType})]}),e.jsxs("div",{className:"p-4 space-y-2.5",children:[ee.name&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:ee.name})]}),ee.latitude&&ee.longitude&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-xs font-mono text-text-secondary",children:[ee.latitude.toFixed(5),", ",ee.longitude.toFixed(5)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(He,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-[11px] font-mono text-text-muted truncate",children:[ee.publicKey.slice(0,16),"...",ee.publicKey.slice(-8)]})]}),ee.timestamp>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-xs text-text-muted",children:ae(ee.timestamp)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-[11px] text-text-muted",children:ee.flagsDescription||`Flags: 0x${ee.flags.toString(16).padStart(2,"0")}`})]})]})]}),Y&&Y.pathHashes.length>0&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:Y.isComplete?"green":"amber",compact:!0,children:Y.isComplete?"Complete":"In Progress"}),e.jsxs(m,{color:"teal",compact:!0,children:[Y.pathHashes.length,"h"]})]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,overridePath:Y.pathHashes,traceSnr:Y.snrValues})]}),I&&!Y&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Path"}),e.jsxs(m,{color:"zinc",compact:!0,children:[V.length,"h"]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,traceSnr:X})]})]})]})]})]})]})}),Vt={type:"spring",visualDuration:.6,bounce:.25,opacity:{duration:.2,ease:"linear"}};function Ot({value:t,format:a,prefix:n,className:r}){const[i,l]=s.useState("waiting");if(s.useEffect(()=>{const e=setTimeout(()=>{l("mounted")},400);return()=>clearTimeout(e)},[]),s.useEffect(()=>{if("mounted"===i){const e=requestAnimationFrame(()=>{l("animating")});return()=>cancelAnimationFrame(e)}},[i]),"waiting"===i){const t=(0).toLocaleString(void 0,a);return e.jsxs("span",{className:r,children:[n,t]})}return e.jsx(Ne,{className:r,format:a,prefix:n,transition:Vt,children:"animating"===i?t:0})}function Qt({label:t,numericValue:s,unit:a,icon:n,subtext:r,showSign:i=!1}){return e.jsxs("div",{className:"radius-inner p-3 sm:radius-inset sm:p-4 bg-white/[0.03] ring-1 ring-inset ring-white/[0.06]",children:[e.jsx("div",{className:"mb-1.5 sm:mb-2",children:e.jsx("span",{className:"text-[10px] sm:text-[11px] font-medium uppercase tracking-wide text-text-muted",children:t})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ot,{value:s,format:{minimumFractionDigits:1,maximumFractionDigits:1,signDisplay:i?"always":"auto"},className:"font-mono text-xl sm:text-2xl font-semibold tabular-nums tracking-tight text-white"}),e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx(n,{className:"w-[14px] h-[14px] text-text-muted"}),a&&e.jsx("span",{className:"text-[10px] sm:text-xs font-medium leading-tight text-text-muted",children:a})]})]}),r&&e.jsx("p",{className:"mt-1.5 sm:mt-2 font-mono text-[10px] sm:text-[11px] text-text-muted/80 truncate",children:r})]})}function Wt({snr:s}){const a=s>=5?"bg-sys-teal":s>=0?"bg-sys-green":s>=-5?"bg-sys-amber":s>=-10?"bg-sys-orange":"bg-sys-red";return e.jsx("span",{className:t("w-1.5 h-1.5 rounded-full flex-shrink-0",a),title:`SNR: ${s.toFixed(1)} dB`})}function Gt({fromPrefix:s,toPrefix:a,fromName:n,toName:r,snr:i,maxSnr:l,isWeakest:c,isStrongest:o,index:d=0}){const x=Math.max(l+5,15),h=Math.max(0,Math.min(100,(i- -20)/(x- -20)*100)),p="bg-[#0074BE]",u=i>=5?"bg-sys-teal":i>=0?"bg-sys-green":i>=-5?"bg-sys-amber":i>=-10?"bg-sys-orange":"bg-sys-red",g=.3+.15*d;return e.jsxs("div",{className:"relative p-3 pl-5 radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06]",children:[e.jsx("span",{className:t("absolute left-0 top-1/2 -translate-y-1/2 h-4 w-0.5 rounded-full",u)}),e.jsx("span",{className:"absolute -top-0.5 -right-0.5",children:e.jsx(Wt,{snr:i})}),e.jsxs("div",{className:"sm:hidden",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[e.jsx("span",{className:"text-[13px] font-medium text-white/70 truncate",children:n||s}),e.jsx(ve,{className:"w-3 h-3 text-white/30 flex-shrink-0"}),e.jsx("span",{className:"text-[13px] font-semibold text-white truncate",children:r||a})]}),e.jsxs("div",{className:"flex items-center gap-1.5 ml-2 flex-shrink-0",children:[c&&e.jsx(m,{color:"red",compact:!0,children:"Low"}),o&&!c&&e.jsxs(m,{color:"amber",compact:!0,children:[e.jsx(Me,{className:"w-2.5 h-2.5"}),"Best"]}),e.jsxs("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[12px] font-mono font-bold tabular-nums bg-white/[0.06] text-text-primary ring-1 ring-inset ring-white/[0.1]",children:[i>=0?"+":"−",Math.abs(i).toFixed(1)]})]})]}),e.jsx("div",{className:"h-1.5 bg-white/10 rounded-full overflow-hidden",children:e.jsx(N.div,{className:t("h-full rounded-full",p),initial:{width:0},animate:{width:`${h}%`},transition:{duration:1.5,delay:g,ease:[.25,.1,.25,1]}})})]}),e.jsxs("div",{className:"hidden sm:block",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e.jsx("code",{className:"font-mono text-xs text-text-muted",children:s}),n&&e.jsx("span",{className:"text-xs text-text-secondary truncate max-w-[100px]",children:n})]}),e.jsx(ve,{className:"w-3 h-3 text-text-muted/40 flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e.jsx("code",{className:"font-mono text-xs font-semibold text-text-primary",children:a}),r&&e.jsx("span",{className:"text-xs text-text-secondary truncate max-w-[100px]",children:r})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[c&&e.jsx(m,{color:"red",compact:!0,children:"Bottleneck"}),o&&!c&&e.jsxs(m,{color:"amber",compact:!0,children:[e.jsx(Me,{className:"w-3 h-3"}),"Strongest"]}),e.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-sm font-mono font-semibold tabular-nums bg-white/[0.06] text-text-primary ring-1 ring-inset ring-white/[0.1]",children:[i>=0?"+":"−",Math.abs(i).toFixed(1)]})]})]}),e.jsx("div",{className:"h-1.5 bg-bg-elevated rounded-full overflow-hidden",children:e.jsx(N.div,{className:t("h-full rounded-full",p),initial:{width:0},animate:{width:`${h}%`},transition:{duration:1.5,delay:g,ease:[.25,.1,.25,1]}})})]})]})}function qt(e,t){if("You"===e)return"You";const s=e.toUpperCase();for(const[a,n]of Object.entries(t))if((a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase()===s)return n.name||n.node_name||void 0}const Kt=s.memo(function({report:t,onClose:s}){var a,n;const r=T(),i=(null==r?void 0:r.neighbors)??{},l=(null==(a=null==r?void 0:r.config)?void 0:a.repeater)?{latitude:r.config.repeater.latitude,longitude:r.config.repeater.longitude,name:r.config.node_name||"Local Node"}:void 0,c=null==(n=t.bestObservation)?void 0:n.decoded.snrValues,o=t.linkQuality?t.linkQuality.avgSnr>=5?"excellent":t.linkQuality.avgSnr>=0?"good":t.linkQuality.avgSnr>=-5?"fair":"poor":"unknown",d={excellent:"var(--signal-excellent)",good:"var(--signal-good)",fair:"var(--signal-fair)",poor:"var(--signal-poor)",unknown:"var(--text-muted)"}[o];return e.jsxs(D,{open:!0,onClose:s,size:"5xl",motionPlus:!0,children:[e.jsxs("div",{className:"sm:hidden",children:[e.jsx("div",{className:"flex justify-center pt-2 pb-1",children:e.jsx("div",{className:"w-9 h-1 rounded-full bg-white/30","aria-hidden":"true"})}),e.jsxs("div",{className:"flex items-center justify-between px-4 pb-2",children:[e.jsx("h2",{className:"font-semibold text-[17px] text-white",children:"Trace Report"}),e.jsx("button",{onClick:s,className:"text-[17px] font-medium text-blue-400 active:text-blue-300",children:"Done"})]})]}),e.jsx("div",{className:"sm:hidden h-[2px]",style:{backgroundColor:d,opacity:.6}}),e.jsx("div",{className:"hidden sm:block px-6 pt-5 pb-4",children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[e.jsx("h2",{className:"text-base sm:text-lg font-semibold text-text-primary",children:"Trace Report"}),e.jsxs(m,{color:"excellent"===o||"good"===o?"green":"fair"===o?"amber":"red",children:[e.jsx(Pe,{className:"w-3 h-3 mr-1"}),"excellent"===o?"Excellent":"good"===o?"Good":"fair"===o?"Fair":"Poor"]})]}),e.jsx("p",{className:"mt-1 text-xs sm:text-sm font-mono text-text-muted tabular-nums",children:t.traceTag})]}),e.jsx("button",{onClick:s,className:"p-1.5 -m-1.5 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-elevated flex-shrink-0",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),e.jsxs("div",{className:"hidden sm:flex flex-wrap items-center gap-1.5 sm:gap-2 px-4 sm:px-6 pb-3 sm:pb-4 border-b border-border-subtle",children:[e.jsxs(m,{color:"teal",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.targetHopCount}),e.jsxs("span",{className:"ml-1",children:["hop",1!==t.targetHopCount?"s":""]})]}),e.jsxs(m,{color:"zinc",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.observationCount}),e.jsx("span",{className:"ml-1",children:"obs"})]}),t.linkQuality&&e.jsxs(m,{color:"purple",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.avgSnr.toFixed(1)}),e.jsx("span",{className:"ml-1",children:"dB avg"})]}),e.jsx("span",{className:"font-mono text-xs text-text-muted tabular-nums",children:$(t.duration)}),t.linkQuality&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-text-muted/40",children:"•"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium bg-sys-red/15 text-sys-red ring-1 ring-inset ring-sys-red/25",children:[e.jsx("span",{className:"opacity-70",children:"Min"}),e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.minSnr.toFixed(1)})]}),e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium bg-sys-teal/15 text-sys-teal ring-1 ring-inset ring-sys-teal/25",children:[e.jsx("span",{className:"opacity-70",children:"Max"}),e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.maxSnr.toFixed(1)})]})]})]})]}),e.jsxs(A,{className:"p-0 overflow-hidden",children:[e.jsx("div",{className:"md:hidden h-[75vh] max-h-[calc(100vh-80px)] overflow-y-auto overflow-x-hidden",children:e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[t.linkQuality&&e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06] p-2.5 text-center",children:[e.jsx(Ot,{value:Math.abs(t.linkQuality.minSnr),format:{maximumFractionDigits:0,signDisplay:"never"},prefix:t.linkQuality.minSnr<0?"-":"",className:"text-[20px] font-bold font-mono tabular-nums flex items-center justify-center text-white"}),e.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1",children:[e.jsx(he,{className:"w-2.5 h-2.5 text-text-muted"}),e.jsx("span",{className:"text-[10px] text-white/40",children:"Min dB"})]})]}),e.jsxs("div",{className:"radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06] p-2.5 text-center",children:[e.jsx(Ot,{value:t.linkQuality.maxSnr,format:{maximumFractionDigits:0,signDisplay:"always"},className:"text-[20px] font-bold font-mono text-white tabular-nums flex items-center justify-center"}),e.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1",children:[e.jsx(ne,{className:"w-2.5 h-2.5 text-text-muted"}),e.jsx("span",{className:"text-[10px] text-white/40",children:"Max dB"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(m,{color:"excellent"===o||"good"===o?"green":"fair"===o?"amber":"red",compact:!0,children:[e.jsx(Pe,{className:"w-2.5 h-2.5 mr-0.5"}),"excellent"===o?"Excellent":"good"===o?"Good":"fair"===o?"Fair":"Poor"]}),e.jsxs(m,{color:"teal",compact:!0,children:[t.targetHopCount," hops"]}),e.jsxs(m,{color:"zinc",compact:!0,children:[t.observationCount," obs"]}),e.jsx("span",{className:"text-[10px] font-mono text-white/30 ml-auto",children:t.traceTag.slice(0,8)})]}),t.targetPath.length>0&&e.jsx("div",{className:"overflow-hidden radius-inset",children:e.jsx("div",{className:"aspect-[4/3] w-full",children:e.jsx(it,{path:t.targetPath,neighbors:i,localNode:l,localHash:null==r?void 0:r.local_hash,srcHash:t.srcHash,dstHash:t.dstHash,traceSnr:c})})}),e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-[11px] font-medium text-white/60",children:"Route Path"}),t.linkQuality&&e.jsxs("span",{className:"text-[10px] font-mono text-white/40",children:["SNR ",t.linkQuality.minSnr.toFixed(1)," → ",t.linkQuality.maxSnr.toFixed(1)," dB"]})]}),t.bestObservation?e.jsx(At,{packet:t.bestObservation.packet,neighbors:i,localHash:null==r?void 0:r.local_hash,direction:"flowchart",compact:!0,overridePath:t.targetPath,traceSnr:t.bestObservation.decoded.snrValues}):e.jsx("div",{className:"p-6 text-center text-text-muted text-[11px]",children:"No path data available"})]}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-[11px] font-medium uppercase tracking-wide text-white/40 mb-2",children:["Link Quality · ",t.hopStats.length," hops"]}),e.jsx("div",{className:"space-y-1.5",children:t.hopStats.length>0?t.hopStats.map((s,a)=>{var n,r,l;const c=a{const s=t.targetPath[t.linkQuality.weakestLinkPosition],a=t.targetPath[t.linkQuality.weakestLinkPosition+1]||"You",n=qt(s,i),r=qt(a,i),l=t.targetPath[t.linkQuality.strongestLinkPosition],c=t.targetPath[t.linkQuality.strongestLinkPosition+1]||"You",o=qt(l,i),d=qt(c,i);return e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(Qt,{label:"Weakest Link",numericValue:t.linkQuality.minSnr,unit:"dB",icon:he,subtext:`${n||s} → ${r||a}`}),e.jsx(Qt,{label:"Best Link",numericValue:t.linkQuality.maxSnr,showSign:!0,unit:"dB",icon:ne,subtext:`${o||l} → ${d||c}`})]})})(),e.jsxs("div",{children:[e.jsx("h3",{className:"text-[11px] font-medium uppercase tracking-wide text-text-muted mb-3",children:"Link Details"}),e.jsx("div",{className:"space-y-2",children:t.hopStats.length>0?t.hopStats.map((s,a)=>{var n,r,l;const c=a0&&e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"aspect-square w-full",children:e.jsx(it,{path:t.targetPath,neighbors:i,localNode:l,localHash:null==r?void 0:r.local_hash,srcHash:t.srcHash,dstHash:t.dstHash,traceSnr:c})})}),e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:t.isComplete?"green":"amber",compact:!0,children:t.isComplete?"Complete":`${t.maxHopsObserved}/${t.targetHopCount}`}),e.jsxs(m,{color:"teal",compact:!0,children:[t.targetHopCount," hop",1!==t.targetHopCount?"s":""]})]})]}),t.linkQuality&&t.bestObservation&&e.jsxs("div",{className:"flex items-center gap-4 px-4 pb-2 font-mono text-[10px] text-text-muted",children:[e.jsxs("span",{children:[e.jsx("span",{className:"opacity-60",children:"Tag"})," ",e.jsx("code",{className:"text-teal-400 tabular-nums",children:t.traceTag.slice(0,8)})]}),e.jsxs("span",{children:[e.jsx("span",{className:"opacity-60",children:"SNR"})," ",e.jsxs("code",{className:"text-accent-secondary tabular-nums",children:[t.linkQuality.minSnr.toFixed(1),"–",t.linkQuality.maxSnr.toFixed(1)]}),e.jsx("span",{className:"opacity-60",children:" dB"})]})]}),t.bestObservation?e.jsx(At,{packet:t.bestObservation.packet,neighbors:i,localHash:null==r?void 0:r.local_hash,direction:"flowchart",compact:!0,overridePath:t.targetPath,traceSnr:t.bestObservation.decoded.snrValues}):e.jsx("div",{className:"p-8 text-center text-text-muted text-xs",children:"No path data available"})]})]})]})]})]})}),Yt="(min-width: 640px)";let Jt=null;function Xt(e){return"undefined"==typeof window?()=>{}:(Jt||(Jt=window.matchMedia(Yt)),Jt.addEventListener("change",e),()=>null==Jt?void 0:Jt.removeEventListener("change",e))}function Zt(){return"undefined"==typeof window||(Jt||(Jt=window.matchMedia(Yt)),Jt.matches)}function es({message:t}){return e.jsxs("div",{className:"flex flex-col items-center justify-center py-14 text-center",children:[e.jsx(H,{className:"size-6 text-text-muted mb-2"}),e.jsx("p",{className:"text-sm text-text-primary",children:t}),e.jsx("p",{className:"text-xs text-text-muted",children:"Packets will appear here"})]})}function ts(){return e.jsx("div",{className:"py-14 text-center text-sm text-text-muted",children:"Loading packets…"})}function ss({showPagination:t,currentPage:s,perPage:a,displayCount:n,totalCount:r,action:i}){const l=t?(s-1)*a+1:1,c=t?Math.min(s*a,r):n;return e.jsxs("div",{className:"flex items-center justify-between gap-4 border-t border-white/5 px-4 py-3 text-xs text-text-muted sm:px-6",children:[e.jsxs("span",{children:["Showing"," ",e.jsx("span",{className:"font-medium text-text-secondary",children:t?`${l}–${c}`:n})," ","of"," ",e.jsx("span",{className:"font-medium text-text-secondary",children:r})," ","packets"]}),i]})}function as({packets:a,allPackets:n,localHash:r,neighbors:i,loading:l=!1,maxPackets:c,perPage:o=50,showPagination:d=!1,onPacketSelect:x,flashNewest:m=!1,emptyMessage:h="No packets found",className:p,footerAction:u}){const[g,f]=s.useState(null),[y,j]=s.useState(null),[b,N]=s.useState({traceTag:null,dupeGroup:null});s.useLayoutEffect(()=>{N({traceTag:null,dupeGroup:null})},[a]);const v=n??a,w=s.useMemo(()=>c&&c>0?a.slice(0,c):a,[a,c]),{currentPage:k,totalPages:C,goToPage:S,pageRange:H}=function(e,t,a){const[n,r]=s.useState(1),i=a?Math.ceil(e/t):1;s.useEffect(()=>{n>i&&i>0&&queueMicrotask(()=>r(1))},[i,n]);const l=s.useCallback(e=>r(Math.max(1,Math.min(e,i))),[i]),c=s.useMemo(()=>function(e,t,s=1){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const a=Math.max(e-s,1),n=Math.min(e+s,t),r=a>2,i=nt+1),"gap",t]}if(r&&!i){const e=3+2*s;return[1,"gap",...Array.from({length:e},(s,a)=>t-e+a+1)]}return[1,"gap",...Array.from({length:n-a+1},(e,t)=>a+t),"gap",t]}(n,i),[n,i]);return{currentPage:n,totalPages:i,goToPage:l,pageRange:c}}(w.length,o,d),P=s.useMemo(()=>{if(!d)return w;const e=(k-1)*o;return w.slice(e,e+o)},[w,d,k,o]),M=s.useMemo(()=>function(e){const t=new Map;for(const s of e)if((s.payload_type??s.type)===V.TRACE&&s.payload&&s.packet_hash){const e=Ue(s.payload);e&&t.set(s.packet_hash,e)}return t}(P),[P]),_=s.useMemo(()=>function(e){const t=new Map;if(0===e.length)return t;for(let s=0;s{var s,a;if(!t||!e.length)return;const i=(null==(s=e[0])?void 0:s.timestamp)??0,l=i>r.current&&r.current>0;if(r.current=i,!l)return;const c=null==(a=e[0])?void 0:a.packet_hash;if(!c)return;const o=requestAnimationFrame(()=>n(c)),d=setTimeout(()=>n(null),600);return()=>{cancelAnimationFrame(o),clearTimeout(d)}},[e,t]),a}(a,m),B=s.useCallback((e,t)=>{var s,a;const n=e.packet_hash;if(!n)return[e];let r=t;for(;r>0&&(null==(s=P[r-1])?void 0:s.packet_hash)===n;)r--;let i=t;for(;i{var t,s;const a=null==(t=P[e])?void 0:t.packet_hash;if(!a)return e;let n=e;for(;n>0&&(null==(s=P[n-1])?void 0:s.packet_hash)===a;)n--;return n},[P]),L=s.useCallback(e=>{var t,s;const a=null==(t=P[e])?void 0:t.packet_hash;if(!a)return e;let n=e;for(;n{if(x)x(e);else if(void 0!==t){const s=B(e,t),a=s.indexOf(e);f({packets:s,initialIndex:a>=0?a:0,rowIndex:t})}else f({packets:[e],initialIndex:0,rowIndex:0})},[x,B]),D=s.useCallback(()=>{if(!g)return;const e=F(g.rowIndex)-1;if(e<0)return;const t=P[e];if(!t)return;const s=B(t,e);f({packets:s,initialIndex:0,rowIndex:e})},[g,P,F,B]),A=s.useCallback(()=>{if(!g)return;const e=L(g.rowIndex)+1;if(e>=P.length)return;const t=P[e];if(!t)return;const s=B(t,e);f({packets:s,initialIndex:0,rowIndex:e})},[g,P,L,B]),E=s.useMemo(()=>!!g&&F(g.rowIndex)>0,[g,F]),R=s.useMemo(()=>!!g&&L(g.rowIndex)N(t=>({...t,traceTag:e})),[]),$=s.useCallback(e=>N(t=>({...t,dupeGroup:e})),[]),I=s.useCallback(()=>{N({traceTag:null,dupeGroup:null})},[]),O=s.useCallback(e=>{const t=v.filter(t=>(t.payload_type??t.type)===V.TRACE&&t.payload&&Ue(t.payload)===e);if(0===t.length)return;const s=function(e){const t=new Map;for(const s of e){const e=Ie(s);if(!e)continue;const a=e.decoded.traceTag,n=t.get(a)||[];n.push(e),t.set(a,n)}for(const[s,a]of t)a.sort((e,t)=>e.timestamp-t.timestamp),t.set(s,a);return t}(t),a=s.get(e);(null==a?void 0:a.length)&&j(function(e,t){if(0===t.length)return{traceTag:e,traceTagValue:0,targetPath:[],targetHopCount:0,observations:[],observationCount:0,firstSeen:0,lastSeen:0,duration:0,isComplete:!1,maxHopsObserved:0,progressPercent:0,bestObservation:null,hopStats:[],linkQuality:null};const s=[...t].sort((e,t)=>e.timestamp-t.timestamp),a=s.reduce((e,t)=>t.hopCount>e.hopCount?t:e,s[0]),n=s[0].timestamp,r=s[s.length-1].timestamp,i=a.decoded.pathHashes,l=i.length,c=a.hopCount,o=a.decoded.isComplete,d=[],x=a.decoded.snrValues;for(let h=0;h0){const e=Math.min(...x),t=Math.max(...x);m={minSnr:e,maxSnr:t,avgSnr:x.reduce((e,t)=>e+t,0)/x.length,weakestLinkPosition:x.indexOf(e),strongestLinkPosition:x.indexOf(t)}}return{traceTag:e,traceTagValue:a.decoded.traceTagValue,targetPath:i,targetHopCount:l,observations:s,observationCount:s.length,firstSeen:n,lastSeen:r,duration:r-n,isComplete:o,maxHopsObserved:c,progressPercent:l>0?Math.round(c/l*100):0,bestObservation:a,hopStats:d,linkQuality:m,srcHash:a.packet.src_hash,dstHash:a.packet.dst_hash}}(e,a))},[v]),Q=s.useCallback(e=>{const t=v.find(t=>t.packet_hash===e);t&&(j(null),z(t))},[v,z]),W=s.useSyncExternalStore(Xt,Zt,()=>!0);return e.jsxs("div",{className:t("flex flex-col",p),onMouseLeave:I,children:[e.jsx("div",{className:"divide-y divide-white/5 py-1",children:(()=>{if(l&&0===a.length)return e.jsx(ts,{});if(0===P.length)return e.jsx(es,{message:h});const t=W?Ze:et;return P.map((s,a)=>{const n=s.packet_hash?M.get(s.packet_hash):void 0,l=null!==b.traceTag&&n===b.traceTag,c=_.get(a),o=void 0!==c&&null!==b.dupeGroup&&s.packet_hash===b.dupeGroup;return e.jsx(t,{packet:s,onClick:e=>z(e,a),localHash:r,neighbors:i,isFlashing:m&&T===s.packet_hash,traceTag:n,isTraceHighlighted:l,onTraceHover:U,onViewTraceReport:O,dupeGroupPosition:c,isDupeGroupHovered:o,onDupeGroupHover:$},`${s.packet_hash}_${s.timestamp}_${a}`)})})()}),d&&C>1&&e.jsx("nav",{className:"border-t border-white/5 px-4 py-3",children:e.jsxs(Le,{className:"justify-center",children:[e.jsx(ze,{onClick:()=>S(k-1),disabled:1===k}),e.jsx(Ae,{children:H.map((t,s)=>"gap"===t?e.jsx(Re,{},`gap-${s}`):e.jsx(Ee,{page:t,current:t===k,onClick:S},t))}),e.jsx(De,{onClick:()=>S(k+1),disabled:k===C})]})}),e.jsx(ss,{showPagination:d,currentPage:k,perPage:o,displayCount:P.length,totalCount:d?w.length:a.length,action:u}),!x&&g&&e.jsx(It,{packets:g.packets,initialIndex:g.initialIndex,onClose:()=>f(null),onNavigatePrev:D,onNavigateNext:A,hasPrev:E,hasNext:R}),y&&e.jsx(Kt,{report:y,onClose:()=>j(null),onViewPacket:Q})]})}export{ve as A,as as P,Pe as S,Me as T,We as g,Fe as u}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PathMapMapLibre-CNx61kIu.js","assets/vendor-react-BKIq8k5U.js","assets/BasemapLayer-BldfARb5.js","assets/vendor-core-D1aqi_5O.js","assets/index-CrU_Ps9k.js","assets/house-DNrMSmBS.js","assets/payload-decoders-N5zeG9av.js","assets/SignalIndicator-DN65UHiA.js","assets/arrow-up-2wZY9TSM.js","assets/DataBox-sJHphnZd.js","assets/chevron-right-DBUqxZL-.js","assets/loader-circle-D6Apotf0.js","assets/map-pin-BUNSWVCM.js","assets/triangle-alert-DrmOKr32.js","assets/route-BsYhRSod.js","assets/activity-DIYCEspu.js","assets/circle-check-DH0TJtTq.js","assets/database-lWroaxsL.js","assets/index-n30bZfID.js","assets/maplibre-gl-B1CfjdFi.css","assets/index-B4-wugIc.css"])))=>i.map(i=>d[i]); +import{j as e,c as t,r as s}from"./vendor-react-BKIq8k5U.js";import{c as a,Z as n,_ as r,$ as i,a0 as l,X as c,a1 as o,a2 as d,a3 as x,B as m,a4 as h,a5 as p,a6 as u,a7 as g,a8 as f,r as y,a9 as j,aa as b,m as N,z as v,ab as w,ac as k,ad as C,ae as S,R as H,af as P,ag as M,ah as _,j as T,ai as B,aj as F,ak as L,al as z,H as D,I as A,A as E,am as R,J as U,an as $,ao as I,ap as V}from"./index-CrU_Ps9k.js";import{P as O,d as Q,a as W,b as G,c as q,e as K}from"./payload-decoders-N5zeG9av.js";import{D as Y,S as J,R as X,P as Z,a as ee,b as te,g as se,c as ae,Z as ne}from"./SignalIndicator-DN65UHiA.js";import{a as re,A as ie}from"./arrow-up-2wZY9TSM.js";import{a as le,D as ce}from"./DataBox-sJHphnZd.js";import{C as oe}from"./chevron-right-DBUqxZL-.js";import{L as de}from"./loader-circle-D6Apotf0.js";import{_ as xe}from"./deckgl-DTsmDcfs.js";import{M as me}from"./map-pin-BUNSWVCM.js";import{T as he}from"./triangle-alert-DrmOKr32.js";import{L as pe,H as ue,R as ge}from"./route-BsYhRSod.js";import{A as fe}from"./activity-DIYCEspu.js";import{C as ye}from"./circle-check-DH0TJtTq.js";import{D as je}from"./database-lWroaxsL.js";import{H as be}from"./house-DNrMSmBS.js";import{A as Ne}from"./index-n30bZfID.js";const ve=a("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),we=a("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ke=a("corner-down-right",[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]),Ce=a("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Se=a("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]),He=a("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Pe=a("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]),Me=a("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]),_e=a("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Te(e,t){[...t].reverse().forEach(s=>{const a=e.getVariant(s);a&&r(e,a),e.variantChildren&&e.variantChildren.forEach(e=>{Te(e,t)})})}function Be(){const e=new Set,t={subscribe:t=>(e.add(t),()=>{e.delete(t)}),start(t,s){const a=[];return e.forEach(e=>{a.push(n(e,t,{transitionOverride:s}))}),Promise.all(a)},set:t=>e.forEach(e=>{!function(e,t){Array.isArray(t)?Te(e,t):"string"==typeof t?Te(e,[t]):r(e,t)}(e,t)}),stop(){e.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>()=>{t.stop()}};return t}function Fe(){const e=i(Be);return l(e.mount,[]),e}function Le({"aria-label":s="Page navigation",className:a,...n}){return e.jsx("nav",{"aria-label":s,...n,className:t("flex gap-x-2",a)})}function ze({onClick:s,disabled:a=!1,className:n,children:r="Previous"}){return e.jsx("span",{className:t("grow basis-0",n),children:e.jsxs(c,{plain:!0,onClick:s,disabled:a,"aria-label":"Previous page",className:t("gap-1",a&&"invisible"),children:[e.jsx("svg",{className:"size-4 stroke-current",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M2.75 8H13.25M2.75 8L5.25 5.5M2.75 8L5.25 10.5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),r]})})}function De({onClick:s,disabled:a=!1,className:n,children:r="Next"}){return e.jsx("span",{className:t("flex grow basis-0 justify-end",n),children:e.jsxs(c,{plain:!0,onClick:s,disabled:a,"aria-label":"Next page",className:t("gap-1",a&&"invisible"),children:[r,e.jsx("svg",{className:"size-4 stroke-current",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M13.25 8L2.75 8M13.25 8L10.75 10.5M13.25 8L10.75 5.5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})]})})}function Ae({className:s,...a}){return e.jsx("span",{...a,className:t("hidden items-baseline gap-x-2 sm:flex",s)})}function Ee({page:s,current:a=!1,onClick:n,className:r,children:i}){return e.jsx(c,{plain:!a,outline:a,onClick:()=>null==n?void 0:n(s),"aria-label":`Page ${s}`,"aria-current":a?"page":void 0,className:t("min-w-[2.25rem] before:absolute before:-inset-px before:rounded-lg",a&&"before:bg-white/5",r),children:i??s})}function Re({className:s,...a}){return e.jsx("span",{"aria-hidden":"true",...a,className:t("w-[2.25rem] select-none text-center text-sm text-text-muted",s),children:"…"})}function Ue(e){if(!e||e.length<8)return null;const t=parseInt(e.slice(0,2),16),s=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),n=parseInt(e.slice(6,8),16);return isNaN(t)||isNaN(s)||isNaN(a)||isNaN(n)?null:((t|s<<8|a<<16|n<<24)>>>0).toString(16).toUpperCase().padStart(8,"0")}function $e(e){return e>=10?"excellent":e>=5?"good":e>=0?"fair":e>=-5?"poor":"critical"}function Ie(e){if(!e.payload)return null;try{const t=x(e.payload),s=function(e){const t=e.original_path||e.forwarded_path||[];if("string"==typeof t)try{const e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>parseInt(e,16))}catch{return[]}else if(Array.isArray(t))return t.map(e=>parseInt(e,16));return[]}(e),a=W(t,s);return a?{packet:e,decoded:a,timestamp:e.timestamp??0,hopCount:a.snrValues.length,rssi:e.rssi,snr:e.snr}:null}catch{return null}}const Ve={rx:{icon:ie,label:"Rx",badgeColor:Y.rx,avatarBg:"bg-emerald-500/15",avatarText:"text-emerald-400"},forward:{icon:ve,label:"Fwd",badgeColor:Y.forward,avatarBg:"bg-sky-500/15",avatarText:"text-sky-400"},duplicate:{icon:le,label:"Dupe",badgeColor:Y.duplicate,avatarBg:"bg-zinc-500/15",avatarText:"text-zinc-400"},tx:{icon:re,label:"Tx",badgeColor:Y.tx,avatarBg:"bg-violet-500/15",avatarText:"text-violet-400"},dropped:{icon:ke,label:"Drop",badgeColor:Y.dropped,avatarBg:"bg-amber-500/15",avatarText:"text-amber-400"}},Oe={sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4"},Qe={sm:"w-7 h-7",md:"w-8 h-8",lg:"w-9 h-9"};function We(e){return"tx_local"===e.packet_origin?"tx":"tx_forward"===e.packet_origin?"forward":e.is_duplicate?"duplicate":e.transmitted?"forward":e.drop_reason?"dropped":"rx"}const Ge=s.memo(function({packet:s,showLabel:a=!0,variant:n="avatar",size:r="sm"}){const i=We(s),l=Ve[i],c=l.icon;return"avatar"===n?e.jsx("div",{className:t("flex items-center justify-center rounded-full flex-shrink-0",l.avatarBg,Qe[r]),children:e.jsx(c,{className:t(Oe[r],l.avatarText)})}):e.jsxs(m,{color:l.badgeColor,children:[e.jsx(c,{className:Oe[r]}),a&&l.label]})}),qe=s.memo(function({path:s,localHash:a,className:n}){if(!s||0===s.length)return e.jsx("span",{className:t("text-white/30 text-[10px]",n),children:"—"});const r=a?(a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase():null;return e.jsx("span",{className:t("flex items-center gap-0.5 font-mono text-[10px] overflow-hidden",n),children:s.map((t,a)=>{const n=a===s.length-1,i=r&&t.toUpperCase()===r;return e.jsxs("span",{className:"flex items-center flex-shrink-0",children:[i?e.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-500/20 text-amber-400 text-[9px] font-medium",children:"You"}):e.jsx("span",{className:"px-1 py-0.5 rounded bg-white/[0.06] text-white/60",children:t.toUpperCase()}),!n&&e.jsx(oe,{className:"w-2.5 h-2.5 text-white/20 mx-0.5 flex-shrink-0"})]},`${t}-${a}`)})})}),Ke=s.memo(function({count:s,className:a}){const n=s>=2;return e.jsxs("span",{className:t("font-mono text-xs tabular-nums",n?"text-white/70":"text-white/30",a),children:[s,e.jsx("span",{className:"text-white/20",children:"→"})]})});function Ye(e){const t=e.payload_type_name||u(e.payload_type??e.type),s=e.route_type_name||g(e.route_type??e.route);return{payloadType:t,routeType:s,payloadColor:Z[t]??"zinc",routeColor:X[s]??"zinc"}}function Je(e){if(!e)return[];if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Xe(e,t){if(!e||!t)return null;const s=e.startsWith("0x")?e.slice(2):e;for(const[a,n]of Object.entries(t))if((a.startsWith("0x")?a.slice(2):a).toLowerCase().startsWith(s.toLowerCase()))return n.name||n.node_name||null;return null}const Ze=s.memo(function({packet:a,onClick:n,localHash:r,neighbors:i,isFlashing:l=!1,isPending:c,isTraceHighlighted:o,onTraceHover:d,traceTag:x,onViewTraceReport:u,dupeGroupPosition:g,isDupeGroupHovered:f=!1,onDupeGroupHover:y}){const j=h(a.is_duplicate),b=void 0!==g,{payloadType:N,routeType:v,payloadColor:w,routeColor:k}=Ye(a),C="tx_local"===a.packet_origin,S=c??a.isPending,H="TRACE"===N,P=Je(a.original_path),M=Je(a.forwarded_path),_=M.length>0?M:P,T=_.length,B=a.src_hash?(a.src_hash.startsWith("0x")?a.src_hash.slice(2,6):a.src_hash.slice(0,4)).toUpperCase():null,F=Xe(a.src_hash,i),L=a.payload_length??a.length??0;a.lbt_attempts;const z=s.useCallback(()=>{H&&x&&u?u(x):n(a)},[H,x,u,n,a]),D=s.useCallback(()=>{H&&x&&d&&d(x),b&&y&&a.packet_hash&&y(a.packet_hash)},[H,x,d,b,y,a.packet_hash]),A=s.useCallback(()=>{d&&d(null),y&&y(null)},[d,y]),E={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)",brown:"rgb(168, 133, 107)"},R=E[w]||E.zinc,U=f;return e.jsxs("div",{onClick:z,onMouseEnter:D,onMouseLeave:A,className:t("group relative cursor-pointer","hover:bg-white/[0.02]",j&&!f&&"opacity-40",l&&"flash-row",S&&"opacity-70",C&&"bg-violet-500/5",o&&"bg-teal-500/10"),children:[e.jsx("div",{className:t("absolute pointer-events-none transition-opacity duration-75",b?U?"opacity-100":"opacity-0":"opacity-0 group-hover:opacity-100"),style:(()=>{const e={pointerEvents:"none"};return"first"===g?{...e,borderTop:`2px solid ${R}`,borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:"none",borderRadius:"8px 8px 0 0",inset:"-2px -2px 0 -2px"}:"middle"===g?{...e,borderTop:"none",borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:"none",borderRadius:0,inset:"0 -2px"}:"last"===g?{...e,borderTop:"none",borderLeft:`2px solid ${R}`,borderRight:`2px solid ${R}`,borderBottom:`2px solid ${R}`,borderRadius:"0 0 8px 8px",inset:"0 -2px -2px -2px"}:{...e,border:`2px solid ${R}`,borderRadius:"8px",inset:"-2px"}})()}),e.jsxs("div",{className:"relative flex items-center gap-2 min-[600px]:gap-3 px-2 py-2 min-[600px]:px-3 min-[600px]:py-2.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx(Ge,{packet:a,variant:"avatar",size:"sm"}),S&&e.jsx(de,{className:"absolute -right-1 -bottom-1 w-3 h-3 text-amber-400 animate-spin"})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-bold text-[13px] text-white font-sans truncate",children:B||"—"}),F&&e.jsx("div",{className:"hidden min-[900px]:block text-[9px] text-white/40 truncate max-w-[70px]",children:F})]})]}),e.jsxs("div",{className:"flex-1 flex items-center gap-1 min-[600px]:gap-1.5 min-[900px]:gap-2 min-w-0",children:[e.jsx("span",{className:"text-[10px] min-[600px]:text-[11px] text-white/50 font-mono tabular-nums whitespace-nowrap flex-shrink-0",children:p(a.timestamp)}),e.jsx(m,{color:w,className:"flex-shrink-0",children:N}),e.jsx("span",{className:"min-[600px]:hidden text-[10px] font-mono text-white/40 flex-shrink-0",children:v.charAt(0)}),e.jsx(m,{color:k,className:"flex-shrink-0 hidden min-[600px]:inline-flex",children:v}),e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx(Ke,{count:T})}),e.jsxs("span",{className:"hidden min-[520px]:inline text-[10px] text-white/40 font-mono flex-shrink-0",children:[L,"B"]}),e.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:e.jsx(qe,{path:_,localHash:r})})]}),e.jsx("div",{className:"flex-shrink-0",children:e.jsx(J,{rssi:a.rssi,snr:a.snr,compact:!0,showValues:!0})})]})]})}),et=s.memo(function({packet:s,onClick:a,localHash:n,neighbors:r,isFlashing:i=!1,isPending:l,isTraceHighlighted:c,traceTag:o,onViewTraceReport:d,dupeGroupPosition:x,isDupeGroupHovered:u=!1,onDupeGroupHover:g}){const{payloadType:f,routeType:y,payloadColor:j,routeColor:b}=Ye(s),N="tx_local"===s.packet_origin,v=l??s.isPending,w="TRACE"===f,k=h(s.is_duplicate),C=Je(s.original_path),S=Je(s.forwarded_path),H=S.length>0?S:C,P=H.length,M=s.src_hash?(s.src_hash.startsWith("0x")?s.src_hash.slice(2,6):s.src_hash.slice(0,4)).toUpperCase():null,_=Xe(s.src_hash,r),T=s.payload_length??s.length??0,B=s.lbt_attempts??0,F={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)"},L=F[j]||F.zinc;return e.jsxs("div",{onClick:()=>{w&&o&&d?d(o):a(s)},className:t("relative pl-3 pr-2.5 py-2 cursor-pointer","active:bg-white/[0.04]",k&&"opacity-40",i&&"flash-row",v&&"opacity-70",N&&"bg-violet-500/5",c&&"bg-teal-500/10"),children:[e.jsx("div",{className:"absolute left-0 transition-all",style:(()=>{if(!x)return{opacity:0};const e=u?1:.4,t=u?"3px":"2px";return"first"===x?{backgroundColor:L,opacity:e,width:t,top:"6px",bottom:0,borderRadius:"0 9999px 0 0"}:"middle"===x?{backgroundColor:L,opacity:e,width:t,top:0,bottom:0,borderRadius:0}:"last"===x?{backgroundColor:L,opacity:e,width:t,top:0,bottom:"6px",borderRadius:"0 0 9999px 0"}:{backgroundColor:L,opacity:e,width:t,top:"6px",bottom:"6px",borderRadius:"9999px"}})()}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[e.jsx(Ge,{packet:s,variant:"avatar",size:"sm"}),v&&e.jsx(de,{className:"absolute -right-1 -bottom-1 w-2.5 h-2.5 text-amber-400 animate-spin"})]}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"font-semibold text-[14px] text-white tracking-tight",children:M||"—"}),_&&e.jsx("span",{className:"text-[12px] text-white/40 truncate max-w-[80px]",children:_}),e.jsx("div",{className:"flex-1"}),e.jsx(m,{color:j,className:"flex-shrink-0 !text-[9px] !px-1.5 !py-0",children:f}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[e.jsx("span",{className:"text-[10px] font-mono text-white/50 tabular-nums w-[28px] text-right",children:s.rssi}),e.jsx(J,{rssi:s.rssi,compact:!0,showValues:!1})]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-white/40 font-mono",children:[e.jsx("span",{className:"tabular-nums",children:p(s.timestamp)}),e.jsx(m,{color:b,className:"!text-[8px] !px-1 !py-0 !leading-none",children:y.charAt(0)}),P>0&&e.jsxs("span",{className:"text-white/30",children:[P,"h"]}),T>0&&e.jsxs("span",{className:"text-white/30",children:[T,"B"]}),B>0&&e.jsxs("span",{className:B>1?"text-amber-400/60":"text-white/30",children:["LBT:",B]}),null!=s.snr&&e.jsxs("span",{className:"text-white/30",children:[s.snr.toFixed(0),"dB"]})]}),P>0&&e.jsx("div",{className:"pt-0.5",children:e.jsx(qe,{path:H,localHash:n})})]})]})]})});function tt(e){if(e.contact_type){const t=e.contact_type.toLowerCase();if("repeater"===t||"rep"===t)return!0;if("companion"===t||"client"===t||"cli"===t)return!1;if("room server"===t||"room_server"===t||"room"===t||"server"===t)return!1}return!0===e.is_repeater||(e.is_repeater,!1)}const st=s.lazy(()=>xe(()=>import("./PathMapMapLibre-CNx61kIu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function at(e){return`${(100*e).toFixed(0)}%`}function nt(e,t){const s=document.documentElement,a=getComputedStyle(s),n={success:a.getPropertyValue("--accent-success").trim()||"#39D98A",secondary:a.getPropertyValue("--accent-secondary").trim()||"#F9D26F",poor:a.getPropertyValue("--signal-poor").trim()||"#FF8A5C",danger:a.getPropertyValue("--accent-danger").trim()||"#FF5C7A",muted:a.getPropertyValue("--text-muted").trim()||"#767688"};let r;return r=0===t?n.muted:e>=1?n.success:e>=.5?n.secondary:e>=.25?n.poor:e>0?n.danger:n.muted,{color:r}}class rt extends s.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?e.jsxs("div",{className:"h-[200px] flex items-center justify-center text-text-muted",children:[e.jsx(he,{className:"w-4 h-4 mr-2"}),"Map failed to load"]}):this.props.children}}function it({path:a,neighbors:n,localNode:r,localHash:i,srcHash:l,dstHash:c,neighborAffinity:o,prefixLookup:d,hubNodes:x,traceSnr:m,advertiserSource:h}){const[p,u]=s.useState(null),g=s.useMemo(()=>{if(!h)return null;const e="wardrive"===h.nodeType;return{prefix:h.prefix||"??",candidates:[{hash:h.publicKey||h.prefix||"source",name:h.name,latitude:h.latitude,longitude:h.longitude,probability:1,isLocal:!1,isWardrive:e}],confidence:1,totalMatches:1,isSource:!0}},[h]),j=s.useMemo(()=>{if(h)return null;if(!l)return null;const e=y(l),t=n[l];if((null==t?void 0:t.latitude)&&(null==t?void 0:t.longitude)&&(0!==t.latitude||0!==t.longitude))return{prefix:e,candidates:[{hash:l,name:t.node_name||t.name||"Source",latitude:t.latitude,longitude:t.longitude,probability:1,isLocal:!1,isDirectNeighbor:!0===t.zero_hop}],confidence:1,totalMatches:1,isSource:!0};const s=(null==t?void 0:t.node_name)||(null==t?void 0:t.name)||l.slice(0,8);return{prefix:e,candidates:[{hash:l,name:s,latitude:0,longitude:0,probability:1,isLocal:!1}],confidence:1,totalMatches:1,isSource:!0}},[h,l,n]),b=s.useMemo(()=>{const e=(null==c?void 0:c.startsWith("0x"))?c.slice(2):c;if((!e||"00"===e||"0000000000000000"===e)&&r&&i){const e=y(i),t=0!==r.latitude||0!==r.longitude;return{prefix:e,candidates:[{hash:i,name:r.name||"Local Node",latitude:t?r.latitude:0,longitude:t?r.longitude:0,probability:1,isLocal:!0}],confidence:1,totalMatches:1,isDestination:!0}}if(!c)return null;const t=y(c);if(i&&c===i&&r){const e=0!==r.latitude||0!==r.longitude;return{prefix:t,candidates:[{hash:c,name:r.name||"Local Node",latitude:e?r.latitude:0,longitude:e?r.longitude:0,probability:1,isLocal:!0}],confidence:1,totalMatches:1,isDestination:!0}}const s=n[c];if((null==s?void 0:s.latitude)&&(null==s?void 0:s.longitude)&&(0!==s.latitude||0!==s.longitude))return{prefix:t,candidates:[{hash:c,name:s.node_name||s.name||"Destination",latitude:s.latitude,longitude:s.longitude,probability:1,isLocal:!1,isDirectNeighbor:!0===s.zero_hop}],confidence:1,totalMatches:1,isDestination:!0};const a=(null==s?void 0:s.node_name)||(null==s?void 0:s.name)||c.slice(0,8);return{prefix:t,candidates:[{hash:c,name:a,latitude:0,longitude:0,probability:1,isLocal:!1}],confidence:1,totalMatches:1,isDestination:!0}},[c,n,r,i]),N=s.useMemo(()=>function(e,t,s,a,n,r){if(!e||0===e.length)return{hops:[],overallConfidence:0,hasValidPath:!1};const i=e.length-1,l=e.map((l,c)=>{const o=c===i,d=e.length-c,{candidates:x,totalMatches:m}=function(e,t,s,a,n=!1,r,i,l){const c=function(e){const t={};for(const[s,a]of Object.entries(e))tt(a)&&(t[s]=a);return t}(t);let o;if(i){const t=function(e,t,s){const a=t.toUpperCase(),n=e.get(a);if(!n||0===n.candidates.length)return{hash:null,confidence:0};if(null==s?void 0:s.isLastHop)return{hash:n.bestMatch,confidence:n.confidence};if(1===(null==s?void 0:s.position))return{hash:n.bestMatch,confidence:n.confidence};if((null==s?void 0:s.position)&&n.bestMatchForPosition.has(s.position)){const e=n.bestMatchForPosition.get(s.position),t=Math.max(e.confidence,n.confidence);return{hash:e.hash,confidence:t}}if((null==s?void 0:s.adjacentPrefixes)&&s.adjacentPrefixes.length>0){let e=n.bestMatch,t=0;for(const a of n.candidates){let n=0;for(const e of s.adjacentPrefixes)n+=a.adjacentPrefixCounts.get(e.toUpperCase())||0;const r=a.combinedScore+n/Math.max(1,a.totalAdjacentObservations)*.3;r>t&&(t=r,e=a.hash)}return{hash:e,confidence:n.confidence}}return{hash:n.bestMatch,confidence:n.confidence}}(i,e,{position:l,isLastHop:n});o=t.confidence}const{matches:d,probability:x}=function(e,t,s,a,n=!1){const r=e.toUpperCase(),i=[],l=s&&f(r,s);l&&i.push(s);for(const h of Object.keys(t))f(r,h)&&i.push(h);if(n&&l&&s&&1===i.length)return{matches:i,probability:1,bestMatch:s};if(n&&l&&i.length>1){const e=i.filter(e=>e!==s);if(1===e.length)return{matches:i,probability:1,bestMatch:e[0]}}const c=i.length>0?1/i.length:0,o=[...i].sort();let d=null,x=-1;if(1===o.length)d=o[0];else if(o.length>1&&a){for(const e of o){const t=a.get(e),s=t?"number"==typeof t?t:t.combinedScore:0;s>x&&(x=s,d=e)}d||(d=o[0])}else o.length>0&&(d=o[0]);let m=c;if(i.length>1&&a&&x>0){let e=0;for(const t of i){const s=a.get(t);e+=s?"number"==typeof s?s:s.combinedScore:0}e>0&&(m=Math.min(.95,x/e))}return{matches:i,probability:m,bestMatch:d}}(e,c,a,r,n),m=d.length,h=[],p=e.toUpperCase(),u=s&&void 0!==s.latitude&&void 0!==s.longitude&&(0!==s.latitude||0!==s.longitude);for(const y of d){if(a&&f(p,a)&&y===a&&u&&s){h.push({hash:y,name:s.name||"Local Node",latitude:s.latitude,longitude:s.longitude,probability:n?1:x,isLocal:!0});continue}const e=c[y];(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(0!==e.latitude||0!==e.longitude)&&h.push({hash:y,name:e.node_name||e.name||"Unknown",latitude:e.latitude,longitude:e.longitude,probability:x,isLocal:!1,isDirectNeighbor:!0===e.zero_hop})}const g=h.length;if(1===g)h[0].probability=o??1;else if(g>1)if(void 0!==o&&o>0){h[0].probability=o;const e=1-o,t=g-1;h.slice(1).forEach(s=>{s.probability=e/t})}else{let e=0;const t=h.map(t=>{if(t.isLocal)return{candidate:t,score:1};const a=null==r?void 0:r.get(t.hash);let n=.5;var i;let l;return u&&s&&(n=(i=function(e,t,s,a){const n=(s-e)*Math.PI/180,r=(a-t)*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e*Math.PI/180)*Math.cos(s*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371e3}(s.latitude,s.longitude,t.latitude,t.longitude))<100?1:i<500?.9:i<1e3?.7:i<5e3?.5:i<1e4?.3:.1),a?l=.3*n+.3*a.hopConsistencyScore+.4*a.frequencyScore:(l=n,t.isDirectNeighbor&&(l=Math.max(l,.8))),e+=l,{candidate:t,score:l}});if(e>0)t.forEach(({candidate:t,score:s})=>{t.probability=Math.min(.95,s/e)});else{const e=1/g;h.forEach(t=>t.probability=e)}}return{candidates:h,totalMatches:m}}(l,t,s,a,o,n,r,d),h=x.length>0?Math.max(...x.map(e=>e.probability)):0;return{prefix:l,candidates:x,confidence:h,totalMatches:m}}),c=l.reduce((e,t)=>0===t.confidence?0:e*t.confidence,1),o=l.some(e=>e.candidates.length>0);return{hops:l,overallConfidence:c,hasValidPath:o}}(a,n,r,i,o,d),[a,n,r,i,o,d]),v=s.useMemo(()=>{const e=[];g?e.push(g):j&&e.push(j),e.push(...N.hops),b&&e.push(b);const t=e.reduce((e,t)=>0===t.confidence?0:e*t.confidence,1),s=e.some(e=>e.candidates.some(e=>0!==e.latitude||0!==e.longitude));return{hops:e,overallConfidence:t,hasValidPath:s}},[g,j,N,b]);return v.hasValidPath?e.jsxs("div",{className:"h-full flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-text-muted",children:"Path Confidence:"}),e.jsx("span",{className:(w=v.overallConfidence,w>=1?"text-accent-success":w>=.5?"text-accent-secondary":w>=.25?"text-signal-poor":w>0?"text-accent-danger":"text-text-muted"),children:at(v.overallConfidence)}),e.jsx("button",{className:"text-text-muted hover:text-text-secondary transition-colors",title:"Confidence is calculated based on how many known nodes match each path prefix. Multiple matches reduce confidence due to collision probability.",children:e.jsx(ee,{className:"w-3 h-3"})})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-accent-success"}),e.jsx("span",{className:"text-text-muted",children:"Exact"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-accent-secondary"}),e.jsx("span",{className:"text-text-muted",children:"Multi"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-text-muted"}),e.jsx("span",{className:"text-text-muted",children:"Unknown"})]})]})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:e.jsx(rt,{children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"h-full bg-bg-elevated flex items-center justify-center text-text-muted text-sm",children:"Loading map..."}),children:e.jsx(st,{resolvedPath:v,localNode:r,hubNodes:x,hoveredHopIndex:p,onHoverHop:u,traceSnr:m})})})}),e.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:v.hops.map((s,a)=>{var n,r,i;const l=!0===s.isSource,c=!0===s.isDestination,o=p===a;let d;return d=l?`Source: ${(null==(n=s.candidates[0])?void 0:n.name)||"Unknown"}`:c?`Destination: ${(null==(r=s.candidates[0])?void 0:r.name)||"Unknown"}`:0===s.totalMatches?"No matching nodes found":1===s.totalMatches?`Exact match: ${(null==(i=s.candidates[0])?void 0:i.name)||"Unknown"}`:`${s.totalMatches} possible matches (${(100*s.confidence).toFixed(0)}% confidence)`,e.jsxs("div",{className:t("flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-mono cursor-pointer transition-all",o?"bg-accent-primary/20 ring-1 ring-accent-primary/50":"bg-bg-elevated hover:bg-bg-subtle",l&&"border border-accent-success/30",c&&"border border-accent-primary/30"),title:d,onMouseEnter:()=>u(a),onMouseLeave:()=>u(null),children:[l&&e.jsx("span",{className:"text-accent-success text-[8px] mr-0.5",children:"SRC"}),c&&e.jsx("span",{className:"text-accent-primary text-[8px] mr-0.5",children:"DST"}),e.jsx("span",{style:nt(s.confidence,s.totalMatches),children:s.prefix}),!l&&!c&&s.totalMatches>1&&e.jsxs("span",{className:"text-text-muted",children:["×",s.totalMatches]}),!l&&!c&&0===s.totalMatches&&e.jsx("span",{className:"text-text-muted",children:"?"})]},a)})})]}):e.jsxs("div",{className:"flex items-center justify-center text-text-muted text-xs py-4",children:[e.jsx(me,{className:"w-3.5 h-3.5 mr-1.5 opacity-50"}),"No location data available for path nodes"]});var w}function lt(e){return e.match(/.{1,2}/g)||[]}function ct(e){return null!==e&&e.startsWith("payload:")}const ot={red:"var(--sys-red)",orange:"var(--sys-orange)",amber:"var(--sys-amber)",yellow:"var(--sys-yellow)",lime:"var(--sys-green)",green:"var(--sys-green)",emerald:"var(--sys-green)",teal:"var(--sys-teal)",cyan:"var(--sys-cyan)",sky:"var(--sys-cyan)",blue:"var(--sys-blue)",indigo:"var(--sys-indigo)",violet:"var(--sys-indigo)",purple:"var(--sys-purple)",fuchsia:"var(--sys-pink)",pink:"var(--sys-pink)",rose:"var(--sys-red)",brown:"var(--sys-brown)",zinc:"var(--text-muted)"},dt=15,xt="color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",mt="\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n ",ht=2,pt={type:"tween",duration:.25,ease:[.25,.1,.25,1]};function ut(e,t){return e?`inset 0 0 0 ${ht}px ${ot[t]}`:mt}function gt(e,t){return e?t:`color-mix(in srgb, ${t} ${dt}%, transparent)`}function ft({segments:t,selectedSegment:a,onSegmentClick:n}){const[r,i]=s.useState(null),[l,c]=s.useState(null),o=t.some(e=>void 0!==e.id)&&n,d=[];for(const e of t){const t=lt(e.hex);for(const s of t)d.push({byte:s.toUpperCase(),color:e.color,id:e.id})}const x=[];for(let e=0;e{const d=t.length<16;return e.jsx("div",{className:"flex rounded-md overflow-hidden",children:t.map(({byte:s,color:x,id:m},h)=>{const p=h===t.length-1,u=d&&p,g=ot[x],f=m?r===m:l===x,y=Boolean(m&&a===m),j=f||y;return e.jsx("span",{className:"w-[1.75rem] text-xs text-center py-0.5 font-mono select-none "+(o?"cursor-pointer":""),style:{backgroundColor:gt(j,g),color:j?"rgba(255,255,255,0.95)":g,transition:j?"none":"background-color 0.15s ease-out, color 0.15s ease-out",touchAction:"manipulation",...u?{borderRadius:"0 0.375rem 0.375rem 0"}:{}},onMouseEnter:()=>{m?i(m):c(x)},onMouseLeave:()=>{i(null),c(null)},onClick:()=>m&&(null==n?void 0:n(m)),onTouchStart:()=>{m?i(m):c(x)},onTouchEnd:()=>{i(null),c(null)},children:s},h)})},s)})})}function yt({bits:t,field:s,value:a,binary:n}){return e.jsxs("tr",{children:[e.jsx("td",{className:"py-1.5 text-xs text-text-muted tabular-nums",children:t}),e.jsx("td",{className:"py-1.5 text-sm text-text-secondary",children:s}),e.jsx("td",{className:"py-1.5",children:(()=>{if("Payload Type"===s){const t=Z[a]||"zinc";return e.jsx(m,{color:t,children:a})}if("Route Type"===s){const t=X[a]||"zinc";return e.jsx(m,{color:t,children:a})}return e.jsx("span",{className:"text-sm text-text-primary",children:a})})()}),e.jsx("td",{className:"py-1.5 font-mono text-xs text-sys-cyan",children:n})]})}function jt({id:t,title:s,color:a,hexBytes:n,startByte:r,endByte:i,isSelected:l,children:c}){const o=n?lt(n):[];return e.jsxs(N.div,{layout:"position",layoutId:t,transition:pt,className:"w-full min-w-0 overflow-hidden rounded-xl p-4 sm:p-5 space-y-4",style:{backgroundColor:xt,boxShadow:ut(l,a)},children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 min-w-0",children:[e.jsx(m,{color:a,children:s}),o.length>0&&o.length<=16&&o.map((t,s)=>e.jsx(m,{color:a,className:"font-mono",children:t.toUpperCase()},s))]}),e.jsxs("span",{className:"text-[10px] text-text-muted font-mono flex-shrink-0",children:["Bytes ",r,"-",i]})]}),e.jsx("div",{className:"min-w-0 overflow-hidden",children:c})]})}function bt({advert:t,timestamp:s}){const a=k(s||t.timestamp);return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-purple-500/10 dark:bg-purple-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-purple) 0%, var(--sys-blue) 100%)"},children:e.jsx(H,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.name||"Unknown Node"}),e.jsx("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:t.nodeType})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[void 0!==t.latitude&&void 0!==t.longitude&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(me,{className:"w-4 h-4 text-purple-600 dark:text-purple-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-mono",children:[t.latitude.toFixed(5),"°, ",t.longitude.toFixed(5),"°"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-purple-600 dark:text-purple-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]})]})]})})}function Nt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-teal-500/10 dark:bg-teal-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-teal) 0%, var(--sys-cyan) 100%)"},children:e.jsx(je,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.channelName||"Channel Data"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:[t.dataLength," bytes • ",t.decrypted?"Decrypted":"Encrypted"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ue,{className:"w-4 h-4 text-teal-600 dark:text-teal-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-sans",children:["Channel: ",e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-teal-600 dark:text-teal-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]}),t.decrypted&&t.decryptedHex&&e.jsxs("div",{className:"mt-2 pt-2 border-t border-black/10 dark:border-white/10",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mb-1 font-sans",children:"Decrypted Data"}),e.jsx("div",{className:"max-w-full overflow-x-auto",children:e.jsx(ce,{size:"compact",copy:!0,className:"inline-block",children:e.jsx("span",{className:"break-all text-xs",children:t.decryptedHex.toUpperCase()})})})]})]})]})})}function vt({decoded:t,timestamp:a,isLoading:n=!1,onDecrypted:r}){const i=a?k(a):"Unknown",[l,c]=s.useState(""),[o,d]=s.useState(!1),[m,h]=s.useState(null),[p,u]=s.useState(!1),g=s.useCallback(async()=>{if(l.trim()&&t.ciphertextHex&&t.macHex){d(!0),h(null);try{const e=parseInt(t.channelHash,16),s=x(t.macHex),a=x(t.ciphertextHex),n=await S(l.trim(),e,s,a);if(n.success){const e=n.result.plaintext,s=new TextDecoder("utf-8",{fatal:!1}).decode(e.slice(5)),a=s.indexOf(": "),i={...t,channelName:n.result.channelName,decrypted:!0,timestamp:e[0]|e[1]<<8|e[2]<<16|e[3]<<24,flags:e[4],senderName:a>0?s.slice(0,a):void 0,text:a>0?s.slice(a+2):s};null==r||r(i),c(""),u(!1)}else h(n.error)}catch(e){h(e instanceof Error?e.message:"Unknown error")}finally{d(!1)}}},[l,t,r]);return n?e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-xl p-4 sm:p-5",style:{backgroundColor:"color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",boxShadow:"\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n "},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 h-[15px]",children:[e.jsx("div",{className:"h-2.5 w-12 rounded bg-white/[0.08] animate-pulse"}),e.jsx("div",{className:"h-2.5 w-16 rounded bg-white/[0.08] animate-pulse"})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tl-md",style:{background:"color-mix(in srgb, var(--sys-blue) 30%, transparent)"},children:e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"h-3.5 w-48 rounded bg-white/[0.15] animate-pulse"}),e.jsx("div",{className:"h-3.5 w-32 rounded bg-white/[0.15] animate-pulse"})]})})]})}):t.decrypted?e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-xl p-4 sm:p-5",style:{backgroundColor:"color-mix(in srgb, var(--bg-elevated) 60%, var(--bg-body))",boxShadow:"\n inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent),\n inset 0 1px 0 color-mix(in srgb, white 3%, transparent),\n 0 1px 2px color-mix(in srgb, black 5%, transparent)\n "},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.senderName&&e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["From ",e.jsx("span",{className:"text-text-secondary font-medium",children:t.senderName})]}),t.channelName&&e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["in ",e.jsx("span",{className:"text-sys-cyan font-medium",children:t.channelName})]})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tl-md",style:{background:"linear-gradient(135deg, var(--sys-blue) 0%, color-mix(in srgb, var(--sys-blue) 85%, var(--sys-cyan)) 100%)"},children:e.jsx("p",{className:"text-sm text-white font-sans leading-relaxed whitespace-pre-wrap break-words",children:t.text})})]})}):e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-zinc-500/10 dark:bg-zinc-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-zinc) 0%, color-mix(in srgb, var(--sys-zinc) 70%, black) 100%)"},children:e.jsx(Ce,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:t.isPublicHashChannel?"Public Hash Channel":"Encrypted Message"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:["Channel hash: ",e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:i})]}),t.ciphertextHex&&t.macHex&&e.jsx("div",{className:"space-y-2",children:p?e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"text",value:l,onChange:e=>c(e.target.value),placeholder:"Channel name (e.g. south-bay)",className:"flex-1 px-3 py-1.5 text-sm rounded-lg bg-black/20 border border-white/10 text-text-primary placeholder:text-text-muted focus:outline-none focus:border-zinc-500",onKeyDown:e=>"Enter"===e.key&&g(),disabled:o}),e.jsx("button",{onClick:g,disabled:o||!l.trim(),className:"px-3 py-1.5 text-sm font-medium rounded-lg bg-zinc-600 hover:bg-zinc-500 text-white disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"Testing...":"Try"}),e.jsx("button",{onClick:()=>{u(!1),h(null),c("")},className:"px-2 py-1.5 text-sm rounded-lg hover:bg-white/10 text-text-muted transition-colors",children:"×"})]}),m&&e.jsx("p",{className:"text-xs text-red-400",children:m})]}):e.jsx("button",{onClick:()=>u(!0),className:"text-xs text-zinc-400 hover:text-zinc-300 underline underline-offset-2 transition-colors",children:"Know the channel name? Try to decrypt"})}),!p&&e.jsx("p",{className:"text-xs text-text-muted",children:t.isPublicHashChannel?"Public hash channel message. Key not in common channel list.":"Unknown hash channel. Channel name required for decryption."})]})]})})}function wt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:"linear-gradient(135deg, var(--sys-green) 0%, var(--sys-teal) 100%)"},children:e.jsx(ye,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:"Acknowledgment"}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:["CRC: ",e.jsxs("span",{className:"font-mono text-sys-green",children:["0x",t.crc]})," · ",a]})]})]})}function kt({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=t.path.length;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-amber-500/10 dark:bg-amber-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-amber) 0%, var(--sys-orange) 100%)"},children:e.jsx(ge,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:"Path Response"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:[n," ",1===n?"hop":"hops"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-amber-600 dark:text-amber-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]}),t.path.length>0&&e.jsx("div",{className:"mt-2 pt-2 border-t border-black/10 dark:border-white/10",children:e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:t.path.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[s>0&&e.jsx(ve,{className:"w-4 h-4 text-amber-500 dark:text-amber-400"}),e.jsx(m,{color:"amber",className:"font-mono",children:t})]},s))})})]})]})})}function Ct({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=t.pathHashes.length,r=t.snrValues.length;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-blue-500/10 dark:bg-blue-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-blue) 0%, var(--sys-indigo) 100%)"},children:e.jsx(fe,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("h3",{className:"text-lg font-medium text-text-primary truncate leading-tight",children:["Trace ",t.isComplete?"Complete":"In Progress"]}),e.jsxs("p",{className:"text-sm text-text-muted mt-0.5",children:["Tag: 0x",t.traceTag.slice(0,8),t.isComplete&&" • ✓"]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary",children:a})]}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-text-muted",children:[e.jsxs("span",{children:[n," target ",1===n?"hop":"hops"]}),e.jsx("span",{children:"•"}),e.jsxs("span",{children:[r," SNR ",1===r?"sample":"samples"]}),0!==t.authCode&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsxs("span",{children:["Auth: ",t.authCode]})]})]}),t.pathHashes.length>0&&e.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:t.pathHashes.map((s,a)=>{const n=t.snrValues[a],r=void 0!==n?(e=>e>=7?"green":e>=0?"yellow":e>=-5?"orange":"red")(n):"zinc",i=void 0!==n;return e.jsxs("div",{className:"flex items-center gap-2",children:[a>0&&e.jsx(ve,{className:"w-4 h-4 text-blue-500 dark:text-blue-400 flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(m,{color:i?"blue":"zinc",className:"font-mono",children:s}),i&&e.jsxs(m,{color:r,className:"font-mono",children:[n>=0?"+":"",Number.isInteger(n)?n:n.toFixed(1),"dB"]})]})]},a)})})]})]})})}function St({decoded:t,timestamp:s}){const a=s?k(s):"Unknown";return t.encrypted?e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:"linear-gradient(135deg, var(--sys-purple) 0%, var(--sys-indigo) 100%)"},children:e.jsx(Ce,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:"Encrypted Message"}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:[t.srcHash," → ",t.destHash," · ",a]})]})]}):e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5 px-1",children:[e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:[e.jsx("span",{className:"font-mono text-text-secondary",children:t.srcHash})," → ",e.jsx("span",{className:"font-mono text-text-secondary",children:t.destHash})]}),e.jsxs("span",{className:"text-[11px] text-text-muted font-sans",children:["· ",a]})]}),e.jsx("div",{className:"inline-block max-w-[85%] px-3.5 py-2 rounded-2xl rounded-tr-md ml-auto",style:{background:"linear-gradient(135deg, var(--sys-green) 0%, var(--sys-teal) 100%)"},children:e.jsx("p",{className:"text-sm text-white font-sans leading-relaxed whitespace-pre-wrap break-words",children:t.text})})]})}function Ht({decoded:t,timestamp:s}){const a=s?k(s):"Unknown",n=(t.partNumber+1)/t.totalParts*100;return e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"rounded-2xl overflow-hidden bg-yellow-500/10 dark:bg-yellow-400/10",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, var(--sys-yellow) 0%, var(--sys-amber) 100%)"},children:e.jsx(pe,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary font-sans truncate leading-tight",children:"Multipart Segment"}),e.jsxs("p",{className:"text-sm text-text-muted font-sans mt-0.5",children:["Part ",t.partNumber+1," of ",t.totalParts]})]})]}),e.jsx("div",{className:"mx-4 border-t border-black/10 dark:border-white/10"}),e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[e.jsx("div",{children:e.jsx("div",{className:"h-2 bg-black/10 dark:bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${n}%`,background:"linear-gradient(90deg, var(--sys-yellow), var(--sys-amber))"}})})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ue,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-400 flex-shrink-0"}),e.jsxs("span",{className:"text-sm text-text-secondary font-sans",children:["Message ID: ",e.jsx("span",{className:"font-mono",children:t.messageId})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-text-secondary font-sans",children:a})]})]})]})})}function Pt({decoded:t,timestamp:s,payloadType:a}){const n=s?k(s):"Unknown",r=(()=>{switch(a){case v.REQ:return{icon:P,gradient:"var(--sys-orange), var(--sys-red)",bg:"rgba(249, 115, 22, 0.15)",label:"Request"};case v.RESPONSE:return{icon:Se,gradient:"var(--sys-green), var(--sys-teal)",bg:"rgba(34, 197, 94, 0.15)",label:"Response"};case v.ANON_REQ:return{icon:Ce,gradient:"var(--sys-purple), var(--sys-pink)",bg:"rgba(168, 85, 247, 0.15)",label:"Anonymous Request"};default:return{icon:te,gradient:"var(--sys-gray), var(--sys-slate)",bg:"rgba(107, 114, 128, 0.15)",label:t.payloadTypeName}}})(),i=r.icon;return e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shadow-md",style:{background:`linear-gradient(135deg, ${r.gradient})`},children:e.jsx(i,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-text-primary font-sans",children:r.label}),e.jsxs("p",{className:"text-xs text-text-muted font-sans mt-0.5",children:[t.length," bytes · ",n]})]})]})}function Mt({pathHex:t}){if(!t)return null;const s=lt(t);return e.jsx("div",{className:"flex flex-wrap items-center gap-2 py-2",children:s.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[s>0&&e.jsx(ve,{className:"w-4 h-4 text-sys-amber flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ce,{size:"compact",copy:!0,children:t.toUpperCase()}),e.jsx("span",{className:"text-[10px] text-text-muted font-sans tabular-nums w-4 text-left",children:s+1})]})]},s))})}function _t({decoded:t,payloadType:s}){const a=w[s]||`TYPE_${s}`;switch(t.type){case"advert":{const s="chat"===t.nodeType?"companion":t.nodeType.replace("_"," "),a=void 0!==t.latitude&&void 0!==t.longitude&&!(0===t.latitude&&0===t.longitude);return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Role:"})," ",s]}),t.name&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Name:"})," ",t.name]}),a&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Location:"})," ",t.latitude.toFixed(4),"°, ",t.longitude.toFixed(4),"°"]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Time:"})," ",k(t.timestamp)]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Flags:"})," ",t.flagsDescription]})]})}case"ack":return e.jsx("div",{className:"text-xs text-text-primary space-y-0.5",children:e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"CRC:"})," 0x",t.crc]})});case"path":return e.jsx("div",{className:"text-xs text-text-primary space-y-1",children:e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Path:"})," ",t.pathString||"(empty)"]})});case"trace":return e.jsxs("div",{className:"text-xs text-text-primary space-y-1",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Tag:"})," 0x",t.traceTag]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Target Path:"})," ",t.pathString||"(empty)"]}),t.snrValues.length>0&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"SNR:"})," ",t.snrValues.map(e=>`${e>=0?"+":""}${Number.isInteger(e)?e:e.toFixed(1)}dB`).join(" → ")]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Status:"})," ",t.isComplete?"✓ Complete":`In progress (${t.snrValues.length}/${t.pathHashes.length})`]})]});case"txt_msg":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Dest:"})," ",t.destHash]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Src:"})," ",t.srcHash]}),t.encrypted?e.jsx("p",{className:"text-text-muted italic",children:"Encrypted content"}):e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Text:"})," ",t.text]})]});case"grp_txt":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Channel:"})," ",t.channelName?e.jsx("span",{className:"text-accent-success",children:t.channelName}):t.isPublicHashChannel?e.jsx("span",{className:"text-accent-secondary",children:"Public Hash Channel"}):e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]}),t.decrypted?e.jsxs(e.Fragment,{children:[t.senderName&&e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"From:"})," ",t.senderName]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Text:"})," ",t.text]})]}):t.isPublicHashChannel?e.jsx("p",{className:"text-text-muted italic",children:"Encrypted (public hash channel)"}):e.jsx("p",{className:"text-text-muted italic",children:"Encrypted (unknown channel)"})]});case"grp_data":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Channel:"})," ",t.channelName?e.jsx("span",{className:"text-sys-teal",children:t.channelName}):e.jsxs("span",{className:"font-mono",children:["0x",t.channelHash]})]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Data:"})," ",t.dataLength," bytes ",t.decrypted?"(decrypted)":"(encrypted)"]})]});case"multipart":return e.jsxs("div",{className:"text-xs text-text-primary space-y-0.5",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Part:"})," ",t.partNumber+1,"/",t.totalParts]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-text-muted",children:"Message ID:"})," ",t.messageId]})]});default:return e.jsxs("p",{className:"text-xs text-text-secondary",children:[a," (",t.length," bytes)"]})}}const Tt=s.memo(function({packet:t,decodedGrpTxt:a}){var n,r;const i=t.raw_packet||"",l=i.length/2,c=j(),[x,h]=s.useState(null),[p,u]=s.useState(null),[g,f]=s.useState(!1),[y,w]=s.useState(null),C=s.useCallback(e=>{w(t=>t===e?null:e)},[]),S=s.useMemo(()=>function(e){if(!e||e.length<4)return null;const t=O.fromHex(e);if(!t.success||!t.packet)return null;const s=t.packet,a=function(e){const t=3&e,s=e>>2&15,a=e>>6&3;return[{bits:"0-1",field:"Route Type",value:o(t),binary:(3&t).toString(2).padStart(2,"0")},{bits:"2-5",field:"Payload Type",value:d(s),binary:(15&s).toString(2).padStart(4,"0")},{bits:"6-7",field:"Version",value:a.toString(),binary:(3&a).toString(2).padStart(2,"0")}]}(s.header),n=e.slice(0,2);let r=2,i="";s.hasTransportCodes()&&(i=e.slice(2,10),r=10);const l=e.slice(r,r+2),c=r+2,x=c+2*s.pathLen,m=e.slice(c,x),h=e.slice(x),p=Q(s);return{packet:s,headerHex:n,headerFields:a,transportCodesHex:i,pathLengthHex:l,pathDataHex:m,payloadHex:h,payloadStartByte:Math.floor(x/2),decoded:p}}(i),[i]),H=null==(n=null==S?void 0:S.packet)?void 0:n.payloadType,P=(null==S?void 0:S.payloadHex)||"",M=null==(r=null==S?void 0:S.packet)?void 0:r.payload,_=H===v.GRP_TXT,T=H===v.GRP_DATA,B=_&&!a&&(!c||g);if(s.useEffect(()=>{if(h(null),f(!1),a)return;if(!_||!M||M.length<4)return;if(!c)return void f(!0);f(!0);let e=!1;return G(M).then(t=>{e||(h(t),f(!1))}),()=>{e=!0}},[P,_,c,a]),s.useEffect(()=>{if(u(null),!T||!M||M.length<4)return;if(!c)return;let e=!1;return q(M).then(t=>{e||u(t)}),()=>{e=!0}},[P,T,c]),!S||0===i.length)return e.jsx("div",{className:"p-4 text-center text-text-muted",children:e.jsx("p",{className:"text-sm",children:"No raw packet data available"})});const{packet:F}=S;let L=S.decoded;a&&"grp_txt"===S.decoded.type?L=a:x&&"grp_txt"===S.decoded.type?L=x:p&&"grp_data"===S.decoded.type&&(L=p);const z=s.useMemo(()=>function(t,s){switch(t.type){case"advert":return function(t,s){const a=[];let n=0;const r=s.slice(0,64);a.push({id:"payload:publicKey",title:"Public Key",color:"pink",hex:r,startByte:n,endByte:n+31,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:t.publicKey.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Ed25519 public key (32 bytes)"})]})}),n+=32;const i=s.slice(64,72);a.push({id:"payload:timestamp",title:"Timestamp",color:"orange",hex:i,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:i.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.timestamp," (",k(t.timestamp),")"]})]})}),n+=4;const l=s.slice(72,200);a.push({id:"payload:signature",title:"Signature",color:"teal",hex:l,startByte:n,endByte:n+63,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:t.signature.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Ed25519 signature (64 bytes)"})]})}),n+=64;const c=s.slice(200,202);if(a.push({id:"payload:flags",title:"Flags",color:"blue",hex:c,startByte:n,endByte:n,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.flags.toString(16).padStart(2,"0").toUpperCase()]}),e.jsx("p",{className:"text-xs text-text-primary mt-1",children:t.flagsDescription}),e.jsxs("p",{className:"text-xs text-text-muted",children:["Node Type: ",t.nodeType]})]})}),n+=1,void 0!==t.latitude){const r=s.slice(2*n,2*n+8);a.push({id:"payload:latitude",title:"Latitude",color:"green",hex:r,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.latitude.toFixed(6),"°"]})]})}),n+=4}if(void 0!==t.longitude){const r=s.slice(2*n,2*n+8);a.push({id:"payload:longitude",title:"Longitude",color:"purple",hex:r,startByte:n,endByte:n+3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:[t.longitude.toFixed(6),"°"]})]})}),n+=4}if(t.name){const r=s.slice(2*n),i=r.length/2;a.push({id:"payload:name",title:"Name",color:"amber",hex:r,startByte:n,endByte:n+i-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:r.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:['"',t.name,'"']})]})})}return a}(t,s);case"ack":return function(t,s){return[{id:"payload:crc",title:"CRC",color:"green",hex:s.slice(0,8),startByte:0,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.crc]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"CRC32 of acknowledged packet"})]})}]}(t,s);case"grp_txt":return function(t,s){const a=[];a.push({id:"payload:channelHash",title:"Channel Hash",color:"blue",hex:s.slice(0,2),startByte:0,endByte:0,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.channelHash]}),t.channelName&&e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:["Channel: ",t.channelName]})]})}),t.macHex&&a.push({id:"payload:mac",title:"MAC",color:"purple",hex:s.slice(2,6),startByte:1,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.macHex.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Truncated HMAC-SHA256"})]})});const n=s.slice(6);return n&&a.push({id:"payload:ciphertext",title:t.decrypted?"Message":"Ciphertext",color:t.decrypted?"green":"zinc",hex:n,startByte:3,endByte:3+n.length/2-1,decoded:t.decrypted?e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"text-sm text-text-primary",children:['"',t.text,'"']}),t.senderName&&e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:["From: ",t.senderName]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:n.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"AES-128-ECB encrypted"})]})}),a}(t,s);case"grp_data":return function(t,s){const a=[];a.push({id:"payload:channelHash",title:"Channel Hash",color:"blue",hex:s.slice(0,2),startByte:0,endByte:0,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.channelHash]}),t.channelName&&e.jsxs("p",{className:"text-xs text-text-primary mt-1",children:["Channel: ",t.channelName]})]})}),t.macHex&&a.push({id:"payload:mac",title:"MAC",color:"purple",hex:s.slice(2,6),startByte:1,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.macHex.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Truncated HMAC-SHA256"})]})});const n=s.slice(6);return n&&a.push({id:"payload:ciphertext",title:t.decrypted?"Decrypted Data":"Encrypted Data",color:t.decrypted?"green":"zinc",hex:n,startByte:3,endByte:3+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:(t.decryptedHex||n).toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.dataLength," bytes",t.decrypted?"":" (AES-128-ECB encrypted)"]})]})}),a}(t,s);case"path":return function(t,s){return[{id:"payload:path",title:"Path Hops",color:"amber",hex:s,startByte:0,endByte:s.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-wrap items-center gap-1",children:t.path.map((t,s)=>e.jsxs("span",{className:"flex items-center gap-1",children:[s>0&&e.jsx(ve,{className:"w-3 h-3 text-text-muted"}),e.jsx(m,{color:"amber",className:"font-mono",children:t})]},s))}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.path.length," hops"]})]})}]}(t,s);case"trace":return function(t,s){const a=[];a.push({id:"payload:crc",title:"Trace Tag",color:"blue",hex:s.slice(0,8),startByte:0,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.traceTag]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Unique trace request identifier"})]})}),a.push({id:"payload:mac",title:"Auth Code",color:"purple",hex:s.slice(8,16),startByte:4,endByte:7,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.authCode}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Authentication/verification code"})]})}),a.push({id:"payload:flags",title:"Flags",color:"amber",hex:s.slice(16,18),startByte:8,endByte:8,decoded:e.jsxs(e.Fragment,{children:[e.jsxs(ce,{size:"standard",copy:!0,children:["0x",t.flags.toString(16).toUpperCase().padStart(2,"0")]}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:0===t.flags?"No flags set":`Flags: ${t.flags.toString(2).padStart(8,"0")}b`})]})});const n=s.slice(18);if(n){const s=e=>e>=7?"green":e>=0?"yellow":e>=-5?"orange":"red";a.push({id:"payload:path",title:"Target Path",color:"indigo",hex:n,startByte:9,endByte:9+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-wrap items-center gap-1",children:t.pathHashes.map((a,n)=>{const r=t.snrValues[n],i=void 0!==r?s(r):"zinc";return e.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&e.jsx(ve,{className:"w-3 h-3 text-text-muted"}),e.jsx(m,{color:"indigo",className:"font-mono",children:a}),void 0!==r&&e.jsxs(m,{color:i,className:"font-mono",children:[r>=0?"+":"",Number.isInteger(r)?r:r.toFixed(1),"dB"]})]},n)})}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[t.pathHashes.length," target ",1===t.pathHashes.length?"hop":"hops",t.snrValues.length>0&&` • ${t.snrValues.length} SNR ${1===t.snrValues.length?"value":"values"} collected`,t.isComplete&&" • ✓ Complete"]})]})})}return a}(t,s);case"multipart":return function(t,s){const a=[];a.push({id:"payload:msgId",title:"Message ID",color:"blue",hex:s.slice(0,4),startByte:0,endByte:1,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.messageId.toUpperCase()}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Unique message identifier"})]})}),a.push({id:"payload:partNum",title:"Part Number",color:"amber",hex:s.slice(4,6),startByte:2,endByte:2,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.partNumber}),e.jsx("p",{className:"text-xs text-text-muted mt-1",children:"0-indexed part number"})]})}),a.push({id:"payload:totalParts",title:"Total Parts",color:"orange",hex:s.slice(6,8),startByte:3,endByte:3,decoded:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:"standard",copy:!0,children:t.totalParts}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:["Part ",t.partNumber+1," of ",t.totalParts]})]})});const n=s.slice(8);return n&&a.push({id:"payload:partData",title:"Part Data",color:"cyan",hex:n,startByte:4,endByte:4+n.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:n.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[n.length/2," bytes"]})]})}),a}(t,s);default:return[{id:"payload:ciphertext",title:"Raw Data",color:"zinc",hex:s,startByte:0,endByte:s.length/2-1,decoded:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-[11px] text-text-secondary break-all p-2 rounded bg-bg-body/50 font-mono",children:s.toUpperCase()}),e.jsxs("p",{className:"text-xs text-text-muted mt-1",children:[s.length/2," bytes"]})]})}]}}(L,S.payloadHex),[L,S.payloadHex]),D="payload"===y||ct(y),A=s.useMemo(()=>{const e=[{id:"header",hex:S.headerHex,color:"red"},...S.transportCodesHex?[{id:"transportCodes",hex:S.transportCodesHex,color:"purple"}]:[],{id:"pathLength",hex:S.pathLengthHex,color:"green"},...S.pathDataHex?[{id:"pathData",hex:S.pathDataHex,color:"amber"}]:[]];return D?[...e,...(t=z,t.map(e=>({id:e.id,hex:e.hex,color:e.color})))]:[...e,{id:"payload",hex:S.payloadHex,color:"cyan"}];var t},[S,D,z]);return e.jsxs("div",{className:"font-mono space-y-2 min-w-0 overflow-hidden",children:[(()=>{switch(L.type){case"advert":return e.jsx(bt,{advert:L,timestamp:t.timestamp});case"grp_data":return e.jsx(Nt,{decoded:L,timestamp:t.timestamp});case"grp_txt":return e.jsx(vt,{decoded:L,timestamp:t.timestamp,isLoading:B,onDecrypted:h});case"ack":return e.jsx(wt,{decoded:L,timestamp:t.timestamp});case"path":return e.jsx(kt,{decoded:L,timestamp:t.timestamp});case"trace":return e.jsx(Ct,{decoded:L,timestamp:t.timestamp});case"txt_msg":return e.jsx(St,{decoded:L,timestamp:t.timestamp});case"multipart":return e.jsx(Ht,{decoded:L,timestamp:t.timestamp});case"generic":return F.payloadType===v.REQ||F.payloadType===v.RESPONSE||F.payloadType===v.ANON_REQ?e.jsx(Pt,{decoded:L,timestamp:t.timestamp,payloadType:F.payloadType}):null;default:return null}})(),e.jsx("div",{className:"bg-black rounded-2xl p-6",children:e.jsx(ft,{segments:A,selectedSegment:y,onSegmentClick:C})}),e.jsx(b,{children:e.jsx(N.div,{layout:!0,transition:pt,className:"space-y-2 min-w-0",children:(()=>{var t,s,a,n;const r=[{id:"header",title:"Header",color:"red",startByte:0,endByte:0,hexBytes:`0x${S.headerHex.toUpperCase()}`,condition:!0,content:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-[10px] uppercase tracking-wide text-text-muted border-b border-border-subtle font-sans",children:[e.jsx("th",{className:"py-1 font-medium",children:"Bits"}),e.jsx("th",{className:"py-1 font-medium",children:"Field"}),e.jsx("th",{className:"py-1 font-medium",children:"Value"}),e.jsx("th",{className:"py-1 font-medium",children:"Binary"})]})}),e.jsx("tbody",{children:S.headerFields.map(t=>e.jsx(yt,{...t},t.bits))})]})},{id:"transportCodes",title:"Transport Codes",color:"purple",startByte:1,endByte:4,hexBytes:(null==(t=S.transportCodesHex)?void 0:t.toUpperCase())||"",condition:!!S.transportCodesHex,content:e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-text-muted",children:"Two 16-bit transport codes for encrypted routing"}),e.jsxs("div",{className:"mt-1 text-xs text-text-secondary",children:["Code 1: 0x",null==(s=S.transportCodesHex)?void 0:s.slice(0,4).toUpperCase()," | Code 2: 0x",null==(a=S.transportCodesHex)?void 0:a.slice(4,8).toUpperCase()]})]})},{id:"pathLength",title:"Path Length",color:"green",startByte:S.transportCodesHex?5:1,endByte:S.transportCodesHex?5:1,hexBytes:`0x${S.pathLengthHex.toUpperCase()}`,condition:!0,content:e.jsxs("p",{className:"text-xs text-text-muted pt-1",children:[F.pathLen," bytes showing route taken (increases as packet floods)"]})},{id:"pathData",title:"Path Data",color:"amber",startByte:S.transportCodesHex?6:2,endByte:(S.transportCodesHex?5:1)+F.pathLen,hexBytes:(null==(n=S.pathDataHex)?void 0:n.toUpperCase())||"",condition:F.pathLen>0,content:e.jsxs("div",{className:"space-y-3",children:[e.jsx(Mt,{pathHex:S.pathDataHex}),e.jsx("p",{className:"text-xs text-text-muted",children:"Historical route taken (bytes are added as packet floods through network)"})]})},{id:"payload",title:"Payload",color:"cyan",startByte:S.payloadStartByte,endByte:l-1,hexBytes:S.payloadHex.toUpperCase(),condition:!0,content:e.jsxs(e.Fragment,{children:[!ct(y)&&e.jsxs("div",{className:"p-3 rounded-lg bg-black",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mb-1.5 font-sans",children:"Decoded"}),e.jsx(_t,{decoded:L,payloadType:F.payloadType})]}),!ct(y)&&z.length>0&&e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted mt-3 font-sans",children:"Click a field below to highlight its bytes"}),ct(y)&&e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-text-muted font-sans",children:"↑ Selected field above • Other fields below ↓"})]})}].filter(e=>e.condition),i=ct(y)?z.find(e=>e.id===y):null,c=ct(y)?[...r].sort((e,t)=>"payload"===e.id?-1:"payload"===t.id?1:0):[...r].sort((e,t)=>e.id===y?-1:t.id===y?1:0),o=ct(y)?z.filter(e=>e.id!==y):[];return e.jsxs(e.Fragment,{children:[i&&e.jsx(jt,{id:`subfield-${i.id}`,title:i.title,color:i.color,startByte:S.payloadStartByte+i.startByte,endByte:S.payloadStartByte+i.endByte,hexBytes:i.hex.toUpperCase(),isSelected:!0,children:i.decoded},i.id),c.map(t=>e.jsx(jt,{id:`section-${t.id}`,title:t.title,color:t.color,startByte:t.startByte,endByte:t.endByte,hexBytes:t.hexBytes,isSelected:t.id===y,children:t.content},t.id)),o.map(t=>e.jsxs(N.div,{layout:"position",layoutId:`subfield-${t.id}`,transition:pt,className:"w-full min-w-0 overflow-hidden rounded-xl p-4 sm:p-5 space-y-4",style:{backgroundColor:xt,boxShadow:mt},children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 min-w-0",children:[e.jsx(m,{color:t.color,children:t.title}),t.hex.length<=32&<(t.hex).map((s,a)=>e.jsx(m,{color:t.color,className:"font-mono",children:s.toUpperCase()},a))]}),e.jsxs("span",{className:"text-[10px] text-text-muted font-mono flex-shrink-0",children:["Bytes ",S.payloadStartByte+t.startByte,"-",S.payloadStartByte+t.endByte]})]}),e.jsx("div",{className:"min-w-0 overflow-hidden p-3 rounded-lg bg-black",children:t.decoded})]},t.id))]})})()})})]})});function Bt(e){if(!e)return[];if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Ft(e){return e?(e.startsWith("0x")?e.slice(2):e).slice(0,2).toUpperCase():""}function Lt({hop:a,compact:n=!1,index:r=0,highlightIndex:i=-1,isTrace:l=!1}){var c;const o=r===i,d=Fe();return s.useEffect(()=>{o&&l&&d.start({boxShadow:["0 0 0 0px rgba(113, 156, 223, 0)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 0px rgba(113, 156, 223, 0)"],transition:{duration:.5,times:[0,.2,.7,1],ease:"easeInOut"}})},[o,l,d]),e.jsxs(N.div,{className:t("flex items-center gap-1.5",n?"flex-row":"flex-col"),animate:{scale:o?1.05:1,opacity:o?1:.85},transition:{duration:.3,ease:"easeInOut"},children:[e.jsxs(N.div,{className:t("flex items-center gap-1.5 px-2.5 py-1 rounded-md","font-mono text-xs font-semibold",a.isLocal?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/30":"bg-zinc-700/50 text-zinc-200 ring-1 ring-zinc-600/50"),animate:d,initial:{boxShadow:"0 0 0 0px rgba(113, 156, 223, 0)"},children:[a.isLocal&&e.jsx(be,{className:"w-3 h-3"}),e.jsx("span",{children:a.prefix}),void 0!==a.confidence&&a.confidence<.9&&e.jsxs("span",{className:"text-[9px] opacity-70",children:[(100*a.confidence).toFixed(0),"%"]})]}),!n&&(null==(c=a.neighborInfo)?void 0:c.name)&&e.jsx("span",{className:"text-[10px] text-text-muted truncate max-w-[80px]",children:a.neighborInfo.name})]})}function zt({snr:t}){const s=_(t),a=M()[s]||"#6b7280",n=Number.isInteger(t)?t.toString():t.toFixed(1);return e.jsxs(m,{customColor:a,compact:!0,className:"font-mono",children:[t>=0?"+":"",n,"dB"]})}function Dt({hops:a,compact:n,isTrace:r=!1}){const[i,l]=s.useState(-1);return s.useEffect(()=>{if(0===a.length)return;const e=setTimeout(()=>{l(0)},400),t=setInterval(()=>{l(e=>{const s=e+1;return s>=a.length?(clearInterval(t),-1):s})},r?500:600);return()=>{clearTimeout(e),clearInterval(t)}},[a.length,r]),e.jsx("div",{className:"p-6",style:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"4px 8px"},children:a.map((s,l)=>{const c=l%2==0,o=l===a.length-1;return e.jsxs("div",{className:"contents",children:[e.jsx("div",{className:t("flex items-center","justify-end"),children:c&&e.jsx(Lt,{hop:s,compact:n,index:l,highlightIndex:i,isTrace:r})}),e.jsx("div",{className:"flex flex-col items-center justify-center min-h-[28px]",children:!o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px flex-1 bg-zinc-600/40 min-h-[8px]"}),void 0!==s.snr&&e.jsx(zt,{snr:s.snr}),e.jsx("svg",{className:"w-3 h-3 text-zinc-500 flex-shrink-0",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 2v8M3 7l3 3 3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),e.jsx("div",{className:t("flex items-center","justify-start"),children:!c&&e.jsx(Lt,{hop:s,compact:n,index:l,highlightIndex:i,isTrace:r})})]},`${s.prefix}-${l}`)})})}const At=s.memo(function({packet:a,neighbors:n,localHash:r,neighborAffinity:i,ghostPrefixes:l,direction:c="horizontal",compact:o=!1,traceSnr:d,overridePath:x}){const m=void 0!==d&&d.length>0,h=Bt(a.original_path),p=Bt(a.forwarded_path),u=x??(p.length>0?p:h),g=Ft(r),f=s.useMemo(()=>u.map((e,t)=>{const s=e.toUpperCase(),a=s===g,r=(null==l?void 0:l.has(s))??!1,c=function(e,t,s){const a=e.toUpperCase();if(s){let e=null,n=0;if(s.forEach((t,s)=>{if(Ft(s)===a){const a=t.combinedScore??0;a>n&&(n=a,e=s)}}),e&&t[e])return{hash:e,info:t[e],confidence:n}}for(const[n,r]of Object.entries(t))if(Ft(n)===a)return{hash:n,info:r,confidence:void 0};return null}(s,n,i);return{prefix:s,fullHash:null==c?void 0:c.hash,neighborInfo:null==c?void 0:c.info,isLocal:a,isGhost:r,confidence:null==c?void 0:c.confidence,snr:null==d?void 0:d[t]}}),[u,n,i,g,l,d]);if(0===f.length)return e.jsxs("div",{className:"flex items-center gap-2 text-text-muted text-xs",children:[e.jsx(H,{className:"w-4 h-4 opacity-50"}),e.jsx("span",{children:"Direct / No path data"})]});if("flowchart"===c)return e.jsx(Dt,{hops:f,compact:o,isTrace:m});const y="horizontal"===c?ve:ie;return e.jsx("div",{className:t("flex gap-1.5","horizontal"===c?"flex-row flex-wrap items-center":"flex-col items-start"),children:f.map((s,a)=>e.jsxs("div",{className:t("flex items-center gap-1.5","vertical"===c&&"flex-col"),children:[e.jsx(Lt,{hop:s,compact:o}),a0,l=ai&&n(a-1),disabled:!i,className:t("p-0.5 radius-badge transition-base",i?"text-text-muted hover:text-text-primary hover-bg":"text-white/20 cursor-not-allowed"),"aria-label":"Previous observation",children:e.jsx(we,{className:r?"size-3":"size-4"})}),e.jsx("div",{className:"flex items-center gap-0.5",children:s.map((s,i)=>{const l=i===a,c=new Date(1e3*s.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});return e.jsx(R,{color:l?"cyan":"zinc",filled:l,compact:r,onClick:()=>n(i),title:`Observation ${i+1} at ${c}`,className:t("transition-all duration-150",!l&&"opacity-60 hover:opacity-100"),children:r?e.jsx("span",{className:"tabular-nums",children:i+1}):e.jsxs("span",{className:"tabular-nums text-[10px]",children:["#",i+1,null!=s.rssi&&e.jsx("span",{className:"ml-1 opacity-70",children:s.rssi})]})},`${s.timestamp}_${i}`)})}),e.jsx("button",{onClick:()=>l&&n(a+1),disabled:!l,className:t("p-0.5 radius-badge transition-base",l?"text-text-muted hover:text-text-primary hover-bg":"text-white/20 cursor-not-allowed"),"aria-label":"Next observation",children:e.jsx(oe,{className:r?"size-3":"size-4"})}),e.jsxs("span",{className:t("text-text-muted ml-1",r?"text-[9px]":"text-[10px]"),children:[e.jsx(le,{className:"inline size-3 mr-0.5 opacity-50"}),s.length]})]})}function Ut({icon:s,label:a,disabled:n=!1}){return e.jsx(N.div,{className:"flex items-center gap-1 text-[10px]",title:a,animate:{opacity:n?.25:.6},transition:{duration:.15,ease:[.4,0,.2,1]},children:e.jsx("span",{className:t("flex items-center justify-center size-5 radius-badge border-control transition-base",n?"bg-white/[0.02] border-white/5":"bg-white/5"),children:s})})}function $t({hasDuplicates:t,hasPrev:s,hasNext:a,canPrevDupe:n,canNextDupe:r}){return e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(Ut,{icon:e.jsx(ae,{className:"size-3"}),label:"Previous packet (↑)",disabled:!s}),e.jsx(Ut,{icon:e.jsx(U,{className:"size-3"}),label:"Next packet (↓)",disabled:!a})]}),t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-3 bg-white/10"}),e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(Ut,{icon:e.jsx(we,{className:"size-3"}),label:"Previous observation (←)",disabled:!n}),e.jsx(Ut,{icon:e.jsx(oe,{className:"size-3"}),label:"Next observation (→)",disabled:!r})]})]})]})}const It=s.memo(function({packets:t,initialIndex:a=0,onClose:n,onNavigatePrev:r,onNavigateNext:i,hasPrev:l=!1,hasNext:c=!1}){const[o,d]=s.useState(a),h=t[o]??t[0],p=t.length>1,f=o>0,y=o{d(Math.max(0,Math.min(e,t.length-1)))},[t.length]);s.useEffect(()=>{const e=e=>{if(!(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement))switch(e.key){case"ArrowUp":e.preventDefault(),null==r||r();break;case"ArrowDown":e.preventDefault(),null==i||i();break;case"ArrowLeft":e.preventDefault(),f&&d(e=>e-1);break;case"ArrowRight":e.preventDefault(),y&&d(e=>e+1)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,i,f,y]);const b=T(),w=B(),k=F(),S=L(),P=s.useMemo(()=>new Set(S.map(e=>e.prefix.toUpperCase())),[S]),M=h.payload_type_name||u(h.payload_type??h.type),_=h.route_type_name||g(h.route_type??h.route),R=h.payload_length??h.length??0,U=Et(h.original_path),$=Et(h.forwarded_path),I=U.length>0||$.length>0,V=$.length>0?$:U,O=s.useMemo(()=>{var e;if(null==(e=null==b?void 0:b.config)?void 0:e.repeater)return{latitude:b.config.repeater.latitude,longitude:b.config.repeater.longitude,name:b.config.node_name||"Local Node"}},[b]),Q=(null==b?void 0:b.neighbors)??{},G=k.size>0?k:void 0,q=h.raw_packet&&h.raw_packet.length>0,Y=s.useMemo(()=>{if((h.payload_type??h.type)!==v.TRACE||!h.payload)return null;try{const e=x(h.payload),t=h.original_path||h.forwarded_path||[];let s=[];if("string"==typeof t)try{const e=JSON.parse(t);Array.isArray(e)&&(s=e.map(e=>parseInt(e,16)))}catch{s=[]}else Array.isArray(t)&&(s=t.map(e=>parseInt(e,16)));return W(e,s)}catch{return null}},[h]),X=null==Y?void 0:Y.snrValues,ee=s.useMemo(()=>{if((h.payload_type??h.type)!==v.ADVERT||!h.payload)return null;try{const e=x(h.payload),t=K(e);if(!t)return null;const s=t.publicKey.slice(0,2).toUpperCase();return{...t,prefix:s}}catch{return null}},[h]),te=s.useMemo(()=>{if((null==ee?void 0:ee.latitude)&&(null==ee?void 0:ee.longitude))return{latitude:ee.latitude,longitude:ee.longitude,name:ee.name||`Node ${ee.prefix||"??"}`,prefix:ee.prefix,publicKey:ee.publicKey}},[ee]),ae=e=>e&&0!==e?new Date(1e3*e).toLocaleString():"Unknown",ne=z(h.packet_hash),re=s.useMemo(()=>{if((h.payload_type??h.type)!==v.GRP_TXT)return null;if(!(null==ne?void 0:ne.decoded))return null;const e=ne.decoded;return{type:"grp_txt",channelHash:e.channelHash,channelName:e.channelName,text:e.text??"",decrypted:e.decrypted,senderName:e.senderName,timestamp:e.timestamp,flags:e.flags,macCorrupted:e.macCorrupted}},[h,ne]),ie=s.useCallback(e=>{if(!e)return null;const t=e.trim().match(/(-?\d+\.?\d*)\s*[,\s]\s*(-?\d+\.?\d*)/);if(!t)return null;const s=parseFloat(t[1]),a=parseFloat(t[2]);return isNaN(s)||isNaN(a)||s<-90||s>90||a<-180||a>180||0===s&&0===a?null:{lat:s,lon:a}},[]),le=s.useMemo(()=>{var e,t;if(!(null==re?void 0:re.decrypted))return;if(!(null==(e=re.channelName)?void 0:e.toLowerCase().includes("wardrive")))return;const s=ie(re.text);return s?{latitude:s.lat,longitude:s.lon,name:re.senderName||"Wardrive Ping",prefix:(null==(t=re.senderName)?void 0:t.slice(0,2).toUpperCase())||"WD",nodeType:"wardrive"}:void 0},[re,ie]),ce=(h.payload_type??h.type)===v.ADVERT&&(void 0!==te||I),oe=void 0!==le,de=te??le;if(0===V.length)return null;const xe=(null==b?void 0:b.local_hash)?(b.local_hash.startsWith("0x")?b.local_hash.slice(2,4):b.local_hash.slice(0,2)).toUpperCase():"";for(const e of V){const t=e.toUpperCase();if(t!==xe)if(G){let e=0,s=0;if(G.forEach((a,n)=>{(n.startsWith("0x")?n.slice(2,4):n.slice(0,2)).toUpperCase()===t&&(e++,s=Math.max(s,a.combinedScore??0))}),0===e)for(const a of Object.keys(Q))if((a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase()===t)break}else for(const e of Object.keys(Q))if((e.startsWith("0x")?e.slice(2,4):e.slice(0,2)).toUpperCase()===t)break}const he={lime:"rgb(132, 204, 22)",cyan:"rgb(34, 211, 238)",amber:"rgb(251, 191, 36)",violet:"rgb(167, 139, 250)",rose:"rgb(251, 113, 133)",emerald:"rgb(52, 211, 153)",sky:"rgb(56, 189, 248)",orange:"rgb(251, 146, 60)",pink:"rgb(244, 114, 182)",zinc:"rgb(161, 161, 170)",purple:"rgb(168, 85, 247)",indigo:"rgb(129, 140, 248)",teal:"rgb(45, 212, 191)",fuchsia:"rgb(232, 121, 249)",blue:"rgb(59, 130, 246)",green:"rgb(34, 197, 94)",yellow:"rgb(250, 204, 21)",red:"rgb(239, 68, 68)"},pe=he[Z[M]??"zinc"]||he.zinc;return e.jsxs(D,{open:!0,onClose:n,size:"5xl",motionPlus:!0,className:"sm:h-[85vh] sm:max-h-[800px] md:h-[80vh] md:max-h-[900px]",children:[e.jsxs("div",{className:"sm:hidden",children:[e.jsx("div",{className:"flex justify-center pt-2 pb-1",children:e.jsx("div",{className:"w-9 h-1 rounded-full bg-white/30","aria-hidden":"true"})}),e.jsxs("div",{className:"flex items-center justify-between px-3 pb-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:Z[M]??"zinc",className:"!text-[9px] !px-1.5 !py-0",children:M}),e.jsx(m,{color:"DIRECT"===_||"T_DIRECT"===_?"cyan":"amber",className:"!text-[9px] !px-1.5 !py-0",children:_}),e.jsxs(m,{color:"zinc",className:"!text-[9px] !px-1.5 !py-0",children:[R,"B"]})]}),e.jsx("button",{onClick:n,className:"px-3 py-1.5 text-[15px] font-medium text-blue-400 active:text-blue-300 transition-base flex-shrink-0 radius-inner active:bg-white/5",children:"Done"})]}),p&&e.jsx("div",{className:"px-3 pb-2",children:e.jsx(Rt,{packets:t,selectedIndex:o,onSelect:j,compact:!0})})]}),e.jsx("div",{className:"hidden sm:block px-6 pt-5 pb-4",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{color:Z[M]??"zinc",children:M}),e.jsx(m,{color:"DIRECT"===_||"T_DIRECT"===_?"cyan":"amber",children:_}),e.jsxs(m,{color:"zinc",children:[R,"B"]}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-4 bg-white/10"}),e.jsx(Rt,{packets:t,selectedIndex:o,onSelect:j})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx($t,{hasDuplicates:p,hasPrev:l,hasNext:c,canPrevDupe:f,canNextDupe:y}),e.jsx("button",{onClick:n,className:"p-1.5 -m-1.5 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-elevated flex-shrink-0",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]})}),e.jsx("div",{className:"sm:hidden h-[2px]",style:{backgroundColor:pe,opacity:.6}}),e.jsxs(A,{className:"p-0 overflow-hidden flex-1 flex flex-col min-h-0",children:[e.jsx("div",{className:"md:hidden flex-1 overflow-y-auto overflow-x-hidden",children:e.jsxs("div",{className:"p-2 space-y-2",children:[(null!=h.rssi||null!=h.snr)&&e.jsxs("div",{className:"relative flex items-center justify-between px-2 py-1.5 radius-inner bg-white/[0.03]",children:[e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.div,{className:"flex items-center gap-3",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[e.jsx(J,{rssi:h.rssi,snr:h.snr,compact:!0,showValues:!0}),e.jsx("span",{className:"text-[11px] text-white/50",children:se(h.rssi)})]},o)}),V.length>0&&e.jsxs("span",{className:"text-[10px] font-mono text-white/40",children:[V.length," hop",1!==V.length?"s":""]})]}),(I&&V.length>0||ce||oe)&&e.jsx("div",{className:"overflow-hidden radius-inset",children:e.jsx("div",{className:"aspect-[4/3] w-full",children:e.jsx(it,{path:V,neighbors:Q,localNode:O,localHash:null==b?void 0:b.local_hash,srcHash:h.src_hash,dstHash:h.dst_hash,neighborAffinity:G,hubNodes:[...w],traceSnr:X,advertiserSource:de})})}),Y&&Y.pathHashes.length>0&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsx("div",{className:"px-3 py-2 space-y-1.5",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsx(m,{color:Y.isComplete?"green":"amber",compact:!0,children:Y.isComplete?"Complete":"In Progress"})})]})}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,overridePath:Y.pathHashes,traceSnr:Y.snrValues})]}),I&&!Y&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Path"}),e.jsxs(m,{color:"zinc",compact:!0,children:[V.length," hop",1!==V.length?"s":""]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,traceSnr:X})]}),ee&&e.jsxs("div",{className:"radius-inset bg-white/[0.03] overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-[10px] font-medium text-text-muted uppercase tracking-wide",children:"Advertiser Info"}),e.jsx(m,{color:"lime",compact:!0,children:ee.nodeType})]}),e.jsxs("div",{className:"p-3 space-y-2",children:[ee.name&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:ee.name})]}),ee.latitude&&ee.longitude&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-xs font-mono text-text-secondary",children:[ee.latitude.toFixed(5),", ",ee.longitude.toFixed(5)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(He,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-[10px] font-mono text-text-muted truncate",children:[ee.publicKey.slice(0,16),"...",ee.publicKey.slice(-8)]})]}),ee.timestamp>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-xs text-text-muted",children:ae(ee.timestamp)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"w-3.5 h-3.5 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-[10px] text-text-muted",children:ee.flagsDescription||`Flags: 0x${ee.flags.toString(16).padStart(2,"0")}`})]})]})]}),q&&e.jsx("div",{className:"pt-1",children:e.jsx(Tt,{packet:h,decodedGrpTxt:re})})]})}),e.jsxs("div",{className:"hidden md:grid md:grid-cols-2 flex-1 overflow-hidden",children:[e.jsx("div",{className:"overflow-y-auto overflow-x-hidden scrollbar-none p-4 border-r border-border-subtle",children:q&&e.jsx(Tt,{packet:h,decodedGrpTxt:re})}),e.jsxs("div",{className:"grid overflow-hidden",style:{gridTemplateRows:"minmax(280px, 1fr) auto"},children:[e.jsx("div",{className:"overflow-hidden p-2",children:I&&V.length>0||ce||oe?e.jsx("div",{className:"h-full w-full",children:e.jsx(it,{path:V,neighbors:Q,localNode:O,localHash:null==b?void 0:b.local_hash,srcHash:h.src_hash,dstHash:h.dst_hash,neighborAffinity:G,hubNodes:[...w],traceSnr:X,advertiserSource:de})}):e.jsxs("div",{className:"h-full w-full flex flex-col items-center justify-center text-center px-4",children:[e.jsx(H,{className:"w-8 h-8 text-text-muted/50 mb-2"}),e.jsx("span",{className:"text-sm text-text-muted",children:"Direct Reception"}),e.jsx("span",{className:"text-xs text-text-muted/70 mt-1",children:"Zero-hop packet — received directly from sender"})]})}),e.jsxs("div",{className:"overflow-y-auto max-h-[200px] p-2 space-y-2",children:[!Y&&V.length<=1&&(null!=h.rssi||null!=h.snr)&&e.jsx("div",{className:"surface-base radius-inset p-4",children:e.jsxs("dl",{className:"text-xs grid grid-cols-2 gap-2",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-text-muted mb-1",children:"Signal"}),e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.dd,{className:"flex items-center gap-2",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[e.jsx(J,{rssi:h.rssi,snr:h.snr}),e.jsx("span",{className:"font-medium text-text-primary",children:se(h.rssi)})]},o)})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-text-muted mb-1",children:"RF"}),e.jsx(E,{mode:"popLayout",initial:!1,children:e.jsxs(N.dd,{className:"font-mono text-text-secondary tabular-nums",initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.15,ease:[.4,0,.2,1]},children:[null!=h.rssi&&`${h.rssi} dBm`,null!=h.snr&&` · ${h.snr.toFixed(1)} dB`]},o)})]})]})}),ee&&e.jsxs("div",{className:"radius-inset bg-white/[0.03] overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Advertiser"}),e.jsx(m,{color:"lime",compact:!0,children:ee.nodeType})]}),e.jsxs("div",{className:"p-4 space-y-2.5",children:[ee.name&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:ee.name})]}),ee.latitude&&ee.longitude&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-xs font-mono text-text-secondary",children:[ee.latitude.toFixed(5),", ",ee.longitude.toFixed(5)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(He,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsxs("span",{className:"text-[11px] font-mono text-text-muted truncate",children:[ee.publicKey.slice(0,16),"...",ee.publicKey.slice(-8)]})]}),ee.timestamp>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-xs text-text-muted",children:ae(ee.timestamp)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"w-4 h-4 text-text-muted flex-shrink-0"}),e.jsx("span",{className:"text-[11px] text-text-muted",children:ee.flagsDescription||`Flags: 0x${ee.flags.toString(16).padStart(2,"0")}`})]})]})]}),Y&&Y.pathHashes.length>0&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:Y.isComplete?"green":"amber",compact:!0,children:Y.isComplete?"Complete":"In Progress"}),e.jsxs(m,{color:"teal",compact:!0,children:[Y.pathHashes.length,"h"]})]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,overridePath:Y.pathHashes,traceSnr:Y.snrValues})]}),I&&!Y&&e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Path"}),e.jsxs(m,{color:"zinc",compact:!0,children:[V.length,"h"]})]}),e.jsx(At,{packet:h,neighbors:Q,localHash:null==b?void 0:b.local_hash,neighborAffinity:G,ghostPrefixes:P,direction:"flowchart",compact:!0,traceSnr:X})]})]})]})]})]})]})}),Vt={type:"spring",visualDuration:.6,bounce:.25,opacity:{duration:.2,ease:"linear"}};function Ot({value:t,format:a,prefix:n,className:r}){const[i,l]=s.useState("waiting");if(s.useEffect(()=>{const e=setTimeout(()=>{l("mounted")},400);return()=>clearTimeout(e)},[]),s.useEffect(()=>{if("mounted"===i){const e=requestAnimationFrame(()=>{l("animating")});return()=>cancelAnimationFrame(e)}},[i]),"waiting"===i){const t=(0).toLocaleString(void 0,a);return e.jsxs("span",{className:r,children:[n,t]})}return e.jsx(Ne,{className:r,format:a,prefix:n,transition:Vt,children:"animating"===i?t:0})}function Qt({label:t,numericValue:s,unit:a,icon:n,subtext:r,showSign:i=!1}){return e.jsxs("div",{className:"radius-inner p-3 sm:radius-inset sm:p-4 bg-white/[0.03] ring-1 ring-inset ring-white/[0.06]",children:[e.jsx("div",{className:"mb-1.5 sm:mb-2",children:e.jsx("span",{className:"text-[10px] sm:text-[11px] font-medium uppercase tracking-wide text-text-muted",children:t})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ot,{value:s,format:{minimumFractionDigits:1,maximumFractionDigits:1,signDisplay:i?"always":"auto"},className:"font-mono text-xl sm:text-2xl font-semibold tabular-nums tracking-tight text-white"}),e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx(n,{className:"w-[14px] h-[14px] text-text-muted"}),a&&e.jsx("span",{className:"text-[10px] sm:text-xs font-medium leading-tight text-text-muted",children:a})]})]}),r&&e.jsx("p",{className:"mt-1.5 sm:mt-2 font-mono text-[10px] sm:text-[11px] text-text-muted/80 truncate",children:r})]})}function Wt({snr:s}){const a=s>=5?"bg-sys-teal":s>=0?"bg-sys-green":s>=-5?"bg-sys-amber":s>=-10?"bg-sys-orange":"bg-sys-red";return e.jsx("span",{className:t("w-1.5 h-1.5 rounded-full flex-shrink-0",a),title:`SNR: ${s.toFixed(1)} dB`})}function Gt({fromPrefix:s,toPrefix:a,fromName:n,toName:r,snr:i,maxSnr:l,isWeakest:c,isStrongest:o,index:d=0}){const x=Math.max(l+5,15),h=Math.max(0,Math.min(100,(i- -20)/(x- -20)*100)),p="bg-[#0074BE]",u=i>=5?"bg-sys-teal":i>=0?"bg-sys-green":i>=-5?"bg-sys-amber":i>=-10?"bg-sys-orange":"bg-sys-red",g=.3+.15*d;return e.jsxs("div",{className:"relative p-3 pl-5 radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06]",children:[e.jsx("span",{className:t("absolute left-0 top-1/2 -translate-y-1/2 h-4 w-0.5 rounded-full",u)}),e.jsx("span",{className:"absolute -top-0.5 -right-0.5",children:e.jsx(Wt,{snr:i})}),e.jsxs("div",{className:"sm:hidden",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[e.jsx("span",{className:"text-[13px] font-medium text-white/70 truncate",children:n||s}),e.jsx(ve,{className:"w-3 h-3 text-white/30 flex-shrink-0"}),e.jsx("span",{className:"text-[13px] font-semibold text-white truncate",children:r||a})]}),e.jsxs("div",{className:"flex items-center gap-1.5 ml-2 flex-shrink-0",children:[c&&e.jsx(m,{color:"red",compact:!0,children:"Low"}),o&&!c&&e.jsxs(m,{color:"amber",compact:!0,children:[e.jsx(Me,{className:"w-2.5 h-2.5"}),"Best"]}),e.jsxs("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[12px] font-mono font-bold tabular-nums bg-white/[0.06] text-text-primary ring-1 ring-inset ring-white/[0.1]",children:[i>=0?"+":"−",Math.abs(i).toFixed(1)]})]})]}),e.jsx("div",{className:"h-1.5 bg-white/10 rounded-full overflow-hidden",children:e.jsx(N.div,{className:t("h-full rounded-full",p),initial:{width:0},animate:{width:`${h}%`},transition:{duration:1.5,delay:g,ease:[.25,.1,.25,1]}})})]}),e.jsxs("div",{className:"hidden sm:block",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e.jsx("code",{className:"font-mono text-xs text-text-muted",children:s}),n&&e.jsx("span",{className:"text-xs text-text-secondary truncate max-w-[100px]",children:n})]}),e.jsx(ve,{className:"w-3 h-3 text-text-muted/40 flex-shrink-0"}),e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e.jsx("code",{className:"font-mono text-xs font-semibold text-text-primary",children:a}),r&&e.jsx("span",{className:"text-xs text-text-secondary truncate max-w-[100px]",children:r})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[c&&e.jsx(m,{color:"red",compact:!0,children:"Bottleneck"}),o&&!c&&e.jsxs(m,{color:"amber",compact:!0,children:[e.jsx(Me,{className:"w-3 h-3"}),"Strongest"]}),e.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-sm font-mono font-semibold tabular-nums bg-white/[0.06] text-text-primary ring-1 ring-inset ring-white/[0.1]",children:[i>=0?"+":"−",Math.abs(i).toFixed(1)]})]})]}),e.jsx("div",{className:"h-1.5 bg-bg-elevated rounded-full overflow-hidden",children:e.jsx(N.div,{className:t("h-full rounded-full",p),initial:{width:0},animate:{width:`${h}%`},transition:{duration:1.5,delay:g,ease:[.25,.1,.25,1]}})})]})]})}function qt(e,t){if("You"===e)return"You";const s=e.toUpperCase();for(const[a,n]of Object.entries(t))if((a.startsWith("0x")?a.slice(2,4):a.slice(0,2)).toUpperCase()===s)return n.name||n.node_name||void 0}const Kt=s.memo(function({report:t,onClose:s}){var a,n;const r=T(),i=(null==r?void 0:r.neighbors)??{},l=(null==(a=null==r?void 0:r.config)?void 0:a.repeater)?{latitude:r.config.repeater.latitude,longitude:r.config.repeater.longitude,name:r.config.node_name||"Local Node"}:void 0,c=null==(n=t.bestObservation)?void 0:n.decoded.snrValues,o=t.linkQuality?t.linkQuality.avgSnr>=5?"excellent":t.linkQuality.avgSnr>=0?"good":t.linkQuality.avgSnr>=-5?"fair":"poor":"unknown",d={excellent:"var(--signal-excellent)",good:"var(--signal-good)",fair:"var(--signal-fair)",poor:"var(--signal-poor)",unknown:"var(--text-muted)"}[o];return e.jsxs(D,{open:!0,onClose:s,size:"5xl",motionPlus:!0,children:[e.jsxs("div",{className:"sm:hidden",children:[e.jsx("div",{className:"flex justify-center pt-2 pb-1",children:e.jsx("div",{className:"w-9 h-1 rounded-full bg-white/30","aria-hidden":"true"})}),e.jsxs("div",{className:"flex items-center justify-between px-4 pb-2",children:[e.jsx("h2",{className:"font-semibold text-[17px] text-white",children:"Trace Report"}),e.jsx("button",{onClick:s,className:"text-[17px] font-medium text-blue-400 active:text-blue-300",children:"Done"})]})]}),e.jsx("div",{className:"sm:hidden h-[2px]",style:{backgroundColor:d,opacity:.6}}),e.jsx("div",{className:"hidden sm:block px-6 pt-5 pb-4",children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[e.jsx("h2",{className:"text-base sm:text-lg font-semibold text-text-primary",children:"Trace Report"}),e.jsxs(m,{color:"excellent"===o||"good"===o?"green":"fair"===o?"amber":"red",children:[e.jsx(Pe,{className:"w-3 h-3 mr-1"}),"excellent"===o?"Excellent":"good"===o?"Good":"fair"===o?"Fair":"Poor"]})]}),e.jsx("p",{className:"mt-1 text-xs sm:text-sm font-mono text-text-muted tabular-nums",children:t.traceTag})]}),e.jsx("button",{onClick:s,className:"p-1.5 -m-1.5 text-text-muted hover:text-text-primary transition-base radius-inner hover:bg-bg-elevated flex-shrink-0",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),e.jsxs("div",{className:"hidden sm:flex flex-wrap items-center gap-1.5 sm:gap-2 px-4 sm:px-6 pb-3 sm:pb-4 border-b border-border-subtle",children:[e.jsxs(m,{color:"teal",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.targetHopCount}),e.jsxs("span",{className:"ml-1",children:["hop",1!==t.targetHopCount?"s":""]})]}),e.jsxs(m,{color:"zinc",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.observationCount}),e.jsx("span",{className:"ml-1",children:"obs"})]}),t.linkQuality&&e.jsxs(m,{color:"purple",children:[e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.avgSnr.toFixed(1)}),e.jsx("span",{className:"ml-1",children:"dB avg"})]}),e.jsx("span",{className:"font-mono text-xs text-text-muted tabular-nums",children:$(t.duration)}),t.linkQuality&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-text-muted/40",children:"•"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium bg-sys-red/15 text-sys-red ring-1 ring-inset ring-sys-red/25",children:[e.jsx("span",{className:"opacity-70",children:"Min"}),e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.minSnr.toFixed(1)})]}),e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium bg-sys-teal/15 text-sys-teal ring-1 ring-inset ring-sys-teal/25",children:[e.jsx("span",{className:"opacity-70",children:"Max"}),e.jsx("span",{className:"font-mono tabular-nums",children:t.linkQuality.maxSnr.toFixed(1)})]})]})]})]}),e.jsxs(A,{className:"p-0 overflow-hidden",children:[e.jsx("div",{className:"md:hidden h-[75vh] max-h-[calc(100vh-80px)] overflow-y-auto overflow-x-hidden",children:e.jsxs("div",{className:"px-4 py-3 space-y-3",children:[t.linkQuality&&e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06] p-2.5 text-center",children:[e.jsx(Ot,{value:Math.abs(t.linkQuality.minSnr),format:{maximumFractionDigits:0,signDisplay:"never"},prefix:t.linkQuality.minSnr<0?"-":"",className:"text-[20px] font-bold font-mono tabular-nums flex items-center justify-center text-white"}),e.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1",children:[e.jsx(he,{className:"w-2.5 h-2.5 text-text-muted"}),e.jsx("span",{className:"text-[10px] text-white/40",children:"Min dB"})]})]}),e.jsxs("div",{className:"radius-inner bg-white/[0.03] ring-1 ring-inset ring-white/[0.06] p-2.5 text-center",children:[e.jsx(Ot,{value:t.linkQuality.maxSnr,format:{maximumFractionDigits:0,signDisplay:"always"},className:"text-[20px] font-bold font-mono text-white tabular-nums flex items-center justify-center"}),e.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1",children:[e.jsx(ne,{className:"w-2.5 h-2.5 text-text-muted"}),e.jsx("span",{className:"text-[10px] text-white/40",children:"Max dB"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(m,{color:"excellent"===o||"good"===o?"green":"fair"===o?"amber":"red",compact:!0,children:[e.jsx(Pe,{className:"w-2.5 h-2.5 mr-0.5"}),"excellent"===o?"Excellent":"good"===o?"Good":"fair"===o?"Fair":"Poor"]}),e.jsxs(m,{color:"teal",compact:!0,children:[t.targetHopCount," hops"]}),e.jsxs(m,{color:"zinc",compact:!0,children:[t.observationCount," obs"]}),e.jsx("span",{className:"text-[10px] font-mono text-white/30 ml-auto",children:t.traceTag.slice(0,8)})]}),t.targetPath.length>0&&e.jsx("div",{className:"overflow-hidden radius-inset",children:e.jsx("div",{className:"aspect-[4/3] w-full",children:e.jsx(it,{path:t.targetPath,neighbors:i,localNode:l,localHash:null==r?void 0:r.local_hash,srcHash:t.srcHash,dstHash:t.dstHash,traceSnr:c})})}),e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-white/5",children:[e.jsx("span",{className:"text-[11px] font-medium text-white/60",children:"Route Path"}),t.linkQuality&&e.jsxs("span",{className:"text-[10px] font-mono text-white/40",children:["SNR ",t.linkQuality.minSnr.toFixed(1)," → ",t.linkQuality.maxSnr.toFixed(1)," dB"]})]}),t.bestObservation?e.jsx(At,{packet:t.bestObservation.packet,neighbors:i,localHash:null==r?void 0:r.local_hash,direction:"flowchart",compact:!0,overridePath:t.targetPath,traceSnr:t.bestObservation.decoded.snrValues}):e.jsx("div",{className:"p-6 text-center text-text-muted text-[11px]",children:"No path data available"})]}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-[11px] font-medium uppercase tracking-wide text-white/40 mb-2",children:["Link Quality · ",t.hopStats.length," hops"]}),e.jsx("div",{className:"space-y-1.5",children:t.hopStats.length>0?t.hopStats.map((s,a)=>{var n,r,l;const c=a{const s=t.targetPath[t.linkQuality.weakestLinkPosition],a=t.targetPath[t.linkQuality.weakestLinkPosition+1]||"You",n=qt(s,i),r=qt(a,i),l=t.targetPath[t.linkQuality.strongestLinkPosition],c=t.targetPath[t.linkQuality.strongestLinkPosition+1]||"You",o=qt(l,i),d=qt(c,i);return e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(Qt,{label:"Weakest Link",numericValue:t.linkQuality.minSnr,unit:"dB",icon:he,subtext:`${n||s} → ${r||a}`}),e.jsx(Qt,{label:"Best Link",numericValue:t.linkQuality.maxSnr,showSign:!0,unit:"dB",icon:ne,subtext:`${o||l} → ${d||c}`})]})})(),e.jsxs("div",{children:[e.jsx("h3",{className:"text-[11px] font-medium uppercase tracking-wide text-text-muted mb-3",children:"Link Details"}),e.jsx("div",{className:"space-y-2",children:t.hopStats.length>0?t.hopStats.map((s,a)=>{var n,r,l;const c=a0&&e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"aspect-square w-full",children:e.jsx(it,{path:t.targetPath,neighbors:i,localNode:l,localHash:null==r?void 0:r.local_hash,srcHash:t.srcHash,dstHash:t.dstHash,traceSnr:c})})}),e.jsxs("div",{className:"radius-inset bg-black overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[e.jsx("span",{className:"text-xs font-medium text-text-muted uppercase tracking-wide",children:"Trace Route"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(m,{color:t.isComplete?"green":"amber",compact:!0,children:t.isComplete?"Complete":`${t.maxHopsObserved}/${t.targetHopCount}`}),e.jsxs(m,{color:"teal",compact:!0,children:[t.targetHopCount," hop",1!==t.targetHopCount?"s":""]})]})]}),t.linkQuality&&t.bestObservation&&e.jsxs("div",{className:"flex items-center gap-4 px-4 pb-2 font-mono text-[10px] text-text-muted",children:[e.jsxs("span",{children:[e.jsx("span",{className:"opacity-60",children:"Tag"})," ",e.jsx("code",{className:"text-teal-400 tabular-nums",children:t.traceTag.slice(0,8)})]}),e.jsxs("span",{children:[e.jsx("span",{className:"opacity-60",children:"SNR"})," ",e.jsxs("code",{className:"text-accent-secondary tabular-nums",children:[t.linkQuality.minSnr.toFixed(1),"–",t.linkQuality.maxSnr.toFixed(1)]}),e.jsx("span",{className:"opacity-60",children:" dB"})]})]}),t.bestObservation?e.jsx(At,{packet:t.bestObservation.packet,neighbors:i,localHash:null==r?void 0:r.local_hash,direction:"flowchart",compact:!0,overridePath:t.targetPath,traceSnr:t.bestObservation.decoded.snrValues}):e.jsx("div",{className:"p-8 text-center text-text-muted text-xs",children:"No path data available"})]})]})]})]})]})}),Yt="(min-width: 640px)";let Jt=null;function Xt(e){return"undefined"==typeof window?()=>{}:(Jt||(Jt=window.matchMedia(Yt)),Jt.addEventListener("change",e),()=>null==Jt?void 0:Jt.removeEventListener("change",e))}function Zt(){return"undefined"==typeof window||(Jt||(Jt=window.matchMedia(Yt)),Jt.matches)}function es({message:t}){return e.jsxs("div",{className:"flex flex-col items-center justify-center py-14 text-center",children:[e.jsx(H,{className:"size-6 text-text-muted mb-2"}),e.jsx("p",{className:"text-sm text-text-primary",children:t}),e.jsx("p",{className:"text-xs text-text-muted",children:"Packets will appear here"})]})}function ts(){return e.jsx("div",{className:"py-14 text-center text-sm text-text-muted",children:"Loading packets…"})}function ss({showPagination:t,currentPage:s,perPage:a,displayCount:n,totalCount:r,action:i}){const l=t?(s-1)*a+1:1,c=t?Math.min(s*a,r):n;return e.jsxs("div",{className:"flex items-center justify-between gap-4 border-t border-white/5 px-4 py-3 text-xs text-text-muted sm:px-6",children:[e.jsxs("span",{children:["Showing"," ",e.jsx("span",{className:"font-medium text-text-secondary",children:t?`${l}–${c}`:n})," ","of"," ",e.jsx("span",{className:"font-medium text-text-secondary",children:r})," ","packets"]}),i]})}function as({packets:a,allPackets:n,localHash:r,neighbors:i,loading:l=!1,maxPackets:c,perPage:o=50,showPagination:d=!1,onPacketSelect:x,flashNewest:m=!1,emptyMessage:h="No packets found",className:p,footerAction:u}){const[g,f]=s.useState(null),[y,j]=s.useState(null),[b,N]=s.useState({traceTag:null,dupeGroup:null});s.useLayoutEffect(()=>{N({traceTag:null,dupeGroup:null})},[a]);const v=n??a,w=s.useMemo(()=>c&&c>0?a.slice(0,c):a,[a,c]),{currentPage:k,totalPages:C,goToPage:S,pageRange:H}=function(e,t,a){const[n,r]=s.useState(1),i=a?Math.ceil(e/t):1;s.useEffect(()=>{n>i&&i>0&&queueMicrotask(()=>r(1))},[i,n]);const l=s.useCallback(e=>r(Math.max(1,Math.min(e,i))),[i]),c=s.useMemo(()=>function(e,t,s=1){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const a=Math.max(e-s,1),n=Math.min(e+s,t),r=a>2,i=nt+1),"gap",t]}if(r&&!i){const e=3+2*s;return[1,"gap",...Array.from({length:e},(s,a)=>t-e+a+1)]}return[1,"gap",...Array.from({length:n-a+1},(e,t)=>a+t),"gap",t]}(n,i),[n,i]);return{currentPage:n,totalPages:i,goToPage:l,pageRange:c}}(w.length,o,d),P=s.useMemo(()=>{if(!d)return w;const e=(k-1)*o;return w.slice(e,e+o)},[w,d,k,o]),M=s.useMemo(()=>function(e){const t=new Map;for(const s of e)if((s.payload_type??s.type)===V.TRACE&&s.payload&&s.packet_hash){const e=Ue(s.payload);e&&t.set(s.packet_hash,e)}return t}(P),[P]),_=s.useMemo(()=>function(e){const t=new Map;if(0===e.length)return t;for(let s=0;s{var s,a;if(!t||!e.length)return;const i=(null==(s=e[0])?void 0:s.timestamp)??0,l=i>r.current&&r.current>0;if(r.current=i,!l)return;const c=null==(a=e[0])?void 0:a.packet_hash;if(!c)return;const o=requestAnimationFrame(()=>n(c)),d=setTimeout(()=>n(null),600);return()=>{cancelAnimationFrame(o),clearTimeout(d)}},[e,t]),a}(a,m),B=s.useCallback((e,t)=>{var s,a;const n=e.packet_hash;if(!n)return[e];let r=t;for(;r>0&&(null==(s=P[r-1])?void 0:s.packet_hash)===n;)r--;let i=t;for(;i{var t,s;const a=null==(t=P[e])?void 0:t.packet_hash;if(!a)return e;let n=e;for(;n>0&&(null==(s=P[n-1])?void 0:s.packet_hash)===a;)n--;return n},[P]),L=s.useCallback(e=>{var t,s;const a=null==(t=P[e])?void 0:t.packet_hash;if(!a)return e;let n=e;for(;n{if(x)x(e);else if(void 0!==t){const s=B(e,t),a=s.indexOf(e);f({packets:s,initialIndex:a>=0?a:0,rowIndex:t})}else f({packets:[e],initialIndex:0,rowIndex:0})},[x,B]),D=s.useCallback(()=>{if(!g)return;const e=F(g.rowIndex)-1;if(e<0)return;const t=P[e];if(!t)return;const s=B(t,e);f({packets:s,initialIndex:0,rowIndex:e})},[g,P,F,B]),A=s.useCallback(()=>{if(!g)return;const e=L(g.rowIndex)+1;if(e>=P.length)return;const t=P[e];if(!t)return;const s=B(t,e);f({packets:s,initialIndex:0,rowIndex:e})},[g,P,L,B]),E=s.useMemo(()=>!!g&&F(g.rowIndex)>0,[g,F]),R=s.useMemo(()=>!!g&&L(g.rowIndex)N(t=>({...t,traceTag:e})),[]),$=s.useCallback(e=>N(t=>({...t,dupeGroup:e})),[]),I=s.useCallback(()=>{N({traceTag:null,dupeGroup:null})},[]),O=s.useCallback(e=>{const t=v.filter(t=>(t.payload_type??t.type)===V.TRACE&&t.payload&&Ue(t.payload)===e);if(0===t.length)return;const s=function(e){const t=new Map;for(const s of e){const e=Ie(s);if(!e)continue;const a=e.decoded.traceTag,n=t.get(a)||[];n.push(e),t.set(a,n)}for(const[s,a]of t)a.sort((e,t)=>e.timestamp-t.timestamp),t.set(s,a);return t}(t),a=s.get(e);(null==a?void 0:a.length)&&j(function(e,t){if(0===t.length)return{traceTag:e,traceTagValue:0,targetPath:[],targetHopCount:0,observations:[],observationCount:0,firstSeen:0,lastSeen:0,duration:0,isComplete:!1,maxHopsObserved:0,progressPercent:0,bestObservation:null,hopStats:[],linkQuality:null};const s=[...t].sort((e,t)=>e.timestamp-t.timestamp),a=s.reduce((e,t)=>t.hopCount>e.hopCount?t:e,s[0]),n=s[0].timestamp,r=s[s.length-1].timestamp,i=a.decoded.pathHashes,l=i.length,c=a.hopCount,o=a.decoded.isComplete,d=[],x=a.decoded.snrValues;for(let h=0;h0){const e=Math.min(...x),t=Math.max(...x);m={minSnr:e,maxSnr:t,avgSnr:x.reduce((e,t)=>e+t,0)/x.length,weakestLinkPosition:x.indexOf(e),strongestLinkPosition:x.indexOf(t)}}return{traceTag:e,traceTagValue:a.decoded.traceTagValue,targetPath:i,targetHopCount:l,observations:s,observationCount:s.length,firstSeen:n,lastSeen:r,duration:r-n,isComplete:o,maxHopsObserved:c,progressPercent:l>0?Math.round(c/l*100):0,bestObservation:a,hopStats:d,linkQuality:m,srcHash:a.packet.src_hash,dstHash:a.packet.dst_hash}}(e,a))},[v]),Q=s.useCallback(e=>{const t=v.find(t=>t.packet_hash===e);t&&(j(null),z(t))},[v,z]),W=s.useSyncExternalStore(Xt,Zt,()=>!0);return e.jsxs("div",{className:t("flex flex-col",p),onMouseLeave:I,children:[e.jsx("div",{className:"divide-y divide-white/5 py-1",children:(()=>{if(l&&0===a.length)return e.jsx(ts,{});if(0===P.length)return e.jsx(es,{message:h});const t=W?Ze:et;return P.map((s,a)=>{const n=s.packet_hash?M.get(s.packet_hash):void 0,l=null!==b.traceTag&&n===b.traceTag,c=_.get(a),o=void 0!==c&&null!==b.dupeGroup&&s.packet_hash===b.dupeGroup;return e.jsx(t,{packet:s,onClick:e=>z(e,a),localHash:r,neighbors:i,isFlashing:m&&T===s.packet_hash,traceTag:n,isTraceHighlighted:l,onTraceHover:U,onViewTraceReport:O,dupeGroupPosition:c,isDupeGroupHovered:o,onDupeGroupHover:$},`${s.packet_hash}_${s.timestamp}_${a}`)})})()}),d&&C>1&&e.jsx("nav",{className:"border-t border-white/5 px-4 py-3",children:e.jsxs(Le,{className:"justify-center",children:[e.jsx(ze,{onClick:()=>S(k-1),disabled:1===k}),e.jsx(Ae,{children:H.map((t,s)=>"gap"===t?e.jsx(Re,{},`gap-${s}`):e.jsx(Ee,{page:t,current:t===k,onClick:S},t))}),e.jsx(De,{onClick:()=>S(k+1),disabled:k===C})]})}),e.jsx(ss,{showPagination:d,currentPage:k,perPage:o,displayCount:P.length,totalCount:d?w.length:a.length,action:u}),!x&&g&&e.jsx(It,{packets:g.packets,initialIndex:g.initialIndex,onClose:()=>f(null),onNavigatePrev:D,onNavigateNext:A,hasPrev:E,hasNext:R}),y&&e.jsx(Kt,{report:y,onClose:()=>j(null),onViewPacket:Q})]})}export{ve as A,as as P,Pe as S,Me as T,We as g,Fe as u}; diff --git a/frontend/dist/assets/Packets-CnekH9QD.js b/frontend/dist/assets/Packets-DNl0vhne.js similarity index 92% rename from frontend/dist/assets/Packets-CnekH9QD.js rename to frontend/dist/assets/Packets-DNl0vhne.js index bf24906f..f28a1b8f 100644 --- a/frontend/dist/assets/Packets-CnekH9QD.js +++ b/frontend/dist/assets/Packets-DNl0vhne.js @@ -1 +1 @@ -import{r as e,j as a,H as s,c as l,k as t,B as i,U as r,g as n}from"./vendor-react-BKIq8k5U.js";import{J as o,e as c,j as d,V as m,W as u,L as p,X as x,R as h,Y as b}from"./index-_WuEOacy.js";import{C as j,a as v}from"./DataBox-ihLFk7Um.js";import{g,A as f,P as y}from"./PacketList-BKgLb74Z.js";import{A as N}from"./arrow-up-Bfc4DrcP.js";import{C as w}from"./SignalIndicator-BLxNXr0z.js";import{U as k,F as C}from"./users-DMMZTLQq.js";import{P as S,b as R,B as P,a as L}from"./PageLayout-C4LpOVqW.js";import{C as M}from"./Card-BSUcfChC.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./payload-decoders-BC60O4FC.js";import"./chevron-right-DMrbDIps.js";import"./loader-circle-E8BhCd6Y.js";import"./map-pin-yDOfK60-.js";import"./triangle-alert-aHb4szMy.js";import"./route-C2p1jL3a.js";import"./activity-CYJ1WO67.js";import"./circle-check-COooBZCl.js";import"./database-DzqBwrzM.js";import"./house-BBcJvvl1.js";import"./index-DU6QWVJT.js";function F({options:n,value:c,onChange:d,defaultValue:m,displayValue:u,filter:p,placeholder:x,disabled:h,invalid:b,name:j,"aria-label":v,className:g,children:f}){const[y,N]=e.useState(""),w=u??(e=>null!=e?String(e):""),k=p??((e,a)=>w(e).toLowerCase().includes(a.toLowerCase())),C=e.useMemo(()=>y?n.filter(e=>k(e,y)):n,[n,y,k]);return a.jsx(s,{value:c,onChange:d,defaultValue:m,disabled:h,name:j,onClose:()=>N(""),children:a.jsxs("div",{className:l("relative",g),children:[a.jsxs("div",{className:"relative",children:[a.jsx(t,{"aria-label":v,displayValue:w,onChange:e=>N(e.target.value),placeholder:x,className:l(["w-full radius-inner py-2 pl-3 pr-10","text-sm text-text-primary placeholder:text-text-muted","bg-bg-subtle",b?"border border-accent-danger":"border-control","ring-focus-inset","hover:border-border-strong","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-colors"])}),a.jsx(i,{className:"absolute inset-y-0 right-0 flex items-center pr-3 group",children:a.jsx(o,{className:"w-4 h-4 text-text-muted transition-transform duration-200 group-data-[open]:rotate-180"})})]}),a.jsx(r,{anchor:"bottom start",transition:!0,className:l(["w-[var(--input-width)] min-w-[180px]","max-h-60 overflow-y-auto overscroll-contain scroll-py-1","radius-inset p-1 mt-1","surface-elevated","focus:outline-none","transition-opacity","data-[closed]:opacity-0","data-[enter]:duration-150 data-[leave]:duration-100","z-50"]),children:0===C.length&&""!==y?a.jsx("div",{className:"px-3 py-2 text-sm text-text-muted",children:"No results found"}):C.map((s,l)=>a.jsx(e.Fragment,{children:f(s)},l))})]})})}function A({value:s,disabled:t,className:i,children:r}){return a.jsx(n,{as:e.Fragment,value:s,disabled:t,children:({selected:e,focus:s})=>a.jsxs("div",{className:l("flex items-center gap-2 px-3 py-2 radius-control cursor-default","text-sm",s&&"bg-accent-primary text-white",!s&&"text-text-primary",e&&!s&&"text-accent-primary",t&&"opacity-50 cursor-not-allowed",i),children:[a.jsx("span",{className:"w-4 flex-shrink-0",children:e&&a.jsx(j,{className:"w-4 h-4"})}),a.jsx("span",{className:"truncate flex-1",children:r})]})})}function _({className:e,...s}){return a.jsx("span",{...s,className:l("truncate",e)})}function D({value:e,onChange:s,options:l,placeholder:t,disabled:i,className:r,"aria-label":n}){const o=l.find(a=>a.value===e);return a.jsx(F,{options:l,value:o,onChange:e=>{e&&s(e.value)},displayValue:e=>(null==e?void 0:e.label)??"",filter:(e,a)=>e.label.toLowerCase().includes(a.toLowerCase()),placeholder:t,disabled:i,className:r,"aria-label":n,children:e=>a.jsx(A,{value:e,disabled:e.disabled,children:a.jsx(_,{children:e.label})})})}function V({icon:e,label:s,value:t,color:i,percentage:r}){return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:l("p-1.5 rounded-md",i),children:e}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-sm font-semibold text-text-primary",children:t.toLocaleString()}),a.jsxs("span",{className:"text-[10px] text-text-muted leading-tight",children:[s,void 0!==r&&a.jsxs("span",{className:"ml-1 opacity-70",children:["(",r,"%)"]})]})]})]})}const B=e.memo(function({packets:s}){const l=e.useMemo(()=>{let e=0,a=0,l=0;const t=new Set;let i=0,r=0;for(const c of s){switch(g(c)){case"forward":e++;break;case"dropped":a++;break;case"duplicate":l++}c.src_hash&&t.add(c.src_hash),c.rssi&&(i+=c.rssi,r++)}const n=s.length,o=r>0?Math.round(i/r):0;return{total:n,rx:n,fwd:e,dropped:a,duplicate:l,uniqueSources:t.size,avgRssi:o,rxPercent:100,fwdPercent:n>0?Math.round(e/n*100):0,droppedPercent:n>0?Math.round(a/n*100):0}},[s]);return 0===s.length?null:a.jsx("div",{className:"surface-base rounded-2xl p-3 pr-4",children:a.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:flex sm:items-center sm:justify-between sm:gap-6",children:[a.jsx(V,{icon:a.jsx(N,{className:"w-3.5 h-3.5 text-accent-primary"}),label:"Received",value:l.rx,color:"bg-accent-primary/10",percentage:l.rxPercent}),a.jsx(V,{icon:a.jsx(f,{className:"w-3.5 h-3.5 text-accent-success"}),label:"Forwarded",value:l.fwd,color:"bg-accent-success/10",percentage:l.fwdPercent}),a.jsx(V,{icon:a.jsx(w,{className:"w-3.5 h-3.5 text-accent-danger"}),label:"Dropped",value:l.dropped,color:"bg-accent-danger/10",percentage:l.droppedPercent}),a.jsx(V,{icon:a.jsx(v,{className:"w-3.5 h-3.5 text-text-muted"}),label:"Duplicates",value:l.duplicate,color:"bg-white/5"}),a.jsxs("div",{className:"hidden sm:flex items-center gap-6 ml-auto",children:[a.jsx(V,{icon:a.jsx(k,{className:"w-3.5 h-3.5 text-accent-secondary"}),label:"Sources",value:l.uniqueSources,color:"bg-accent-secondary/10"}),a.jsxs("div",{className:"flex flex-col items-end pr-1",children:[a.jsxs("span",{className:"text-sm font-mono text-text-secondary",children:[l.avgRssi," dBm"]}),a.jsx("span",{className:"text-[10px] text-text-muted",children:"Avg Signal"})]})]})]})})});function H(){const s=c(),t=d(),i=null==t?void 0:t.local_hash,r=null==t?void 0:t.neighbors,[n,o]=e.useState(!1),[j,v]=e.useState({limit:500,status:"all"}),[f,N]=e.useState(Date.now);e.useEffect(()=>{j.timeRange&&j.timeRange>0&&queueMicrotask(()=>N(Date.now()))},[j.timeRange,s]);const w=e.useMemo(()=>{const e=j.limit??500;return[...s.length<=e?s:s.slice(-e)].sort((e,a)=>(a.timestamp??0)-(e.timestamp??0))},[s,j.limit]),k=0===s.length,F=e.useMemo(()=>{let e=w;if(void 0!==j.type){const a=m[j.type];e=e.filter(e=>{const s=e.type??e.payload_type,l=e.payload_type_name;return s===j.type||l===a})}if(void 0!==j.route){const a=u[j.route];e=e.filter(e=>{const s=e.route??e.route_type,l=e.route_type_name;return s===j.route||l===a})}if(j.status&&"all"!==j.status&&(e=e.filter(e=>g(e)===j.status)),void 0!==j.signalMin&&(e=e.filter(e=>e.rssi>=j.signalMin)),j.timeRange&&j.timeRange>0){const a=f/1e3-3600*j.timeRange;e=e.filter(e=>e.timestamp>=a)}return e},[w,j.type,j.route,j.status,j.signalMin,j.timeRange,f]),A=(e,a)=>v(s=>({...s,[e]:a})),_=void 0!==j.type||void 0!==j.route||j.status&&"all"!==j.status||void 0!==j.signalMin||j.timeRange&&j.timeRange>0;return a.jsxs(S,{children:[a.jsx(R,{title:"Packet History",icon:a.jsx(h,{}),controls:a.jsxs(a.Fragment,{children:[a.jsx(p,{showLabel:!0}),a.jsxs(x,{outline:!0,color:_?"primary":"muted",onClick:()=>o(!n),className:"sm:hidden",children:[a.jsx(C,{"data-slot":"icon"}),_&&a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent-primary"})]})]})}),a.jsxs(P,{children:[a.jsxs(L,{noPadding:!0,className:l("overflow-hidden transition-all duration-200",n?"max-h-96 opacity-100":"max-h-0 opacity-0 sm:max-h-96 sm:opacity-100"),children:[a.jsx(M,{listHeader:!0,icon:a.jsx(C,{className:"icon-sm"}),title:"Filters",actions:_?a.jsxs(x,{plain:!0,color:"muted",onClick:()=>v({limit:j.limit,status:"all"}),className:"!text-xs !py-0.5 !px-1.5",children:[a.jsx(b,{"data-slot":"icon",className:"!w-3 !h-3"}),"Clear"]}):void 0}),a.jsx("div",{className:"p-3 sm:p-4",children:a.jsxs("div",{className:"grid grid-cols-2 sm:flex sm:flex-wrap gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Type"}),a.jsx(D,{value:j.type??"",onChange:e=>A("type",""===e?void 0:Number(e)),options:[{value:"",label:"All Types"},...Object.entries(m).map(([e,a])=>({value:Number(e),label:a}))],placeholder:"Search types...","aria-label":"Filter by packet type"})]}),a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Route"}),a.jsx(D,{value:j.route??"",onChange:e=>A("route",""===e?void 0:Number(e)),options:[{value:"",label:"All Routes"},...Object.entries(u).map(([e,a])=>({value:Number(e),label:a}))],placeholder:"Search routes...","aria-label":"Filter by route type"})]}),a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Status"}),a.jsx(D,{value:j.status??"all",onChange:e=>A("status",e),options:[{value:"all",label:"All Status"},{value:"rx",label:"Received"},{value:"forward",label:"Forwarded"},{value:"dropped",label:"Dropped"},{value:"duplicate",label:"Duplicate"}],placeholder:"Search status...","aria-label":"Filter by status"})]}),a.jsxs("div",{className:"flex-1 min-w-[120px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Time"}),a.jsx(D,{value:j.timeRange??0,onChange:e=>A("timeRange",0===e?void 0:e),options:[{value:0,label:"All Time"},{value:1,label:"Last 1h"},{value:6,label:"Last 6h"},{value:24,label:"Last 24h"},{value:168,label:"Last 7d"}],placeholder:"Search time...","aria-label":"Filter by time range"})]}),a.jsxs("div",{className:"flex-1 min-w-[130px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Signal"}),a.jsx(D,{value:j.signalMin??"",onChange:e=>A("signalMin",""===e?void 0:Number(e)),options:[{value:"",label:"Any Signal"},{value:-90,label:"Strong (≥-90)"},{value:-100,label:"Good (≥-100)"},{value:-110,label:"Fair (≥-110)"},{value:-120,label:"Weak (≥-120)"}],placeholder:"Search signal...","aria-label":"Filter by signal strength"})]}),a.jsxs("div",{className:"flex-1 min-w-[100px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Limit"}),a.jsx(D,{value:j.limit??500,onChange:e=>A("limit",e),options:[{value:100,label:"100"},{value:200,label:"200"},{value:500,label:"500"},{value:1e3,label:"1000"},{value:2e3,label:"2000"}],placeholder:"Limit...","aria-label":"Packet limit"})]})]})})]}),a.jsx(B,{packets:F}),a.jsx(L,{noPadding:!0,className:"!overflow-visible",children:a.jsx(y,{packets:F,allPackets:s,localHash:i,neighbors:r,loading:k,showPagination:!0,perPage:50,emptyMessage:"No packets found"})})]})]})}export{H as default}; +import{r as e,j as a,H as s,c as l,k as t,B as i,U as r,g as n}from"./vendor-react-BKIq8k5U.js";import{J as o,e as c,j as d,V as m,W as u,L as p,X as x,R as h,Y as b}from"./index-CrU_Ps9k.js";import{C as j,a as v}from"./DataBox-sJHphnZd.js";import{g,A as f,P as y}from"./PacketList-Q1pG-MMT.js";import{A as N}from"./arrow-up-2wZY9TSM.js";import{C as w}from"./SignalIndicator-DN65UHiA.js";import{U as k,F as C}from"./users-DHRSX58V.js";import{P as S,b as R,B as P,a as L}from"./PageLayout-BlXA3E6H.js";import{C as M}from"./Card-Cq7dyTi6.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./payload-decoders-N5zeG9av.js";import"./chevron-right-DBUqxZL-.js";import"./loader-circle-D6Apotf0.js";import"./map-pin-BUNSWVCM.js";import"./triangle-alert-DrmOKr32.js";import"./route-BsYhRSod.js";import"./activity-DIYCEspu.js";import"./circle-check-DH0TJtTq.js";import"./database-lWroaxsL.js";import"./house-DNrMSmBS.js";import"./index-n30bZfID.js";function F({options:n,value:c,onChange:d,defaultValue:m,displayValue:u,filter:p,placeholder:x,disabled:h,invalid:b,name:j,"aria-label":v,className:g,children:f}){const[y,N]=e.useState(""),w=u??(e=>null!=e?String(e):""),k=p??((e,a)=>w(e).toLowerCase().includes(a.toLowerCase())),C=e.useMemo(()=>y?n.filter(e=>k(e,y)):n,[n,y,k]);return a.jsx(s,{value:c,onChange:d,defaultValue:m,disabled:h,name:j,onClose:()=>N(""),children:a.jsxs("div",{className:l("relative",g),children:[a.jsxs("div",{className:"relative",children:[a.jsx(t,{"aria-label":v,displayValue:w,onChange:e=>N(e.target.value),placeholder:x,className:l(["w-full radius-inner py-2 pl-3 pr-10","text-sm text-text-primary placeholder:text-text-muted","bg-bg-subtle",b?"border border-accent-danger":"border-control","ring-focus-inset","hover:border-border-strong","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-colors"])}),a.jsx(i,{className:"absolute inset-y-0 right-0 flex items-center pr-3 group",children:a.jsx(o,{className:"w-4 h-4 text-text-muted transition-transform duration-200 group-data-[open]:rotate-180"})})]}),a.jsx(r,{anchor:"bottom start",transition:!0,className:l(["w-[var(--input-width)] min-w-[180px]","max-h-60 overflow-y-auto overscroll-contain scroll-py-1","radius-inset p-1 mt-1","surface-elevated","focus:outline-none","transition-opacity","data-[closed]:opacity-0","data-[enter]:duration-150 data-[leave]:duration-100","z-50"]),children:0===C.length&&""!==y?a.jsx("div",{className:"px-3 py-2 text-sm text-text-muted",children:"No results found"}):C.map((s,l)=>a.jsx(e.Fragment,{children:f(s)},l))})]})})}function A({value:s,disabled:t,className:i,children:r}){return a.jsx(n,{as:e.Fragment,value:s,disabled:t,children:({selected:e,focus:s})=>a.jsxs("div",{className:l("flex items-center gap-2 px-3 py-2 radius-control cursor-default","text-sm",s&&"bg-accent-primary text-white",!s&&"text-text-primary",e&&!s&&"text-accent-primary",t&&"opacity-50 cursor-not-allowed",i),children:[a.jsx("span",{className:"w-4 flex-shrink-0",children:e&&a.jsx(j,{className:"w-4 h-4"})}),a.jsx("span",{className:"truncate flex-1",children:r})]})})}function _({className:e,...s}){return a.jsx("span",{...s,className:l("truncate",e)})}function D({value:e,onChange:s,options:l,placeholder:t,disabled:i,className:r,"aria-label":n}){const o=l.find(a=>a.value===e);return a.jsx(F,{options:l,value:o,onChange:e=>{e&&s(e.value)},displayValue:e=>(null==e?void 0:e.label)??"",filter:(e,a)=>e.label.toLowerCase().includes(a.toLowerCase()),placeholder:t,disabled:i,className:r,"aria-label":n,children:e=>a.jsx(A,{value:e,disabled:e.disabled,children:a.jsx(_,{children:e.label})})})}function V({icon:e,label:s,value:t,color:i,percentage:r}){return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:l("p-1.5 rounded-md",i),children:e}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-sm font-semibold text-text-primary",children:t.toLocaleString()}),a.jsxs("span",{className:"text-[10px] text-text-muted leading-tight",children:[s,void 0!==r&&a.jsxs("span",{className:"ml-1 opacity-70",children:["(",r,"%)"]})]})]})]})}const B=e.memo(function({packets:s}){const l=e.useMemo(()=>{let e=0,a=0,l=0;const t=new Set;let i=0,r=0;for(const c of s){switch(g(c)){case"forward":e++;break;case"dropped":a++;break;case"duplicate":l++}c.src_hash&&t.add(c.src_hash),c.rssi&&(i+=c.rssi,r++)}const n=s.length,o=r>0?Math.round(i/r):0;return{total:n,rx:n,fwd:e,dropped:a,duplicate:l,uniqueSources:t.size,avgRssi:o,rxPercent:100,fwdPercent:n>0?Math.round(e/n*100):0,droppedPercent:n>0?Math.round(a/n*100):0}},[s]);return 0===s.length?null:a.jsx("div",{className:"surface-base rounded-2xl p-3 pr-4",children:a.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:flex sm:items-center sm:justify-between sm:gap-6",children:[a.jsx(V,{icon:a.jsx(N,{className:"w-3.5 h-3.5 text-accent-primary"}),label:"Received",value:l.rx,color:"bg-accent-primary/10",percentage:l.rxPercent}),a.jsx(V,{icon:a.jsx(f,{className:"w-3.5 h-3.5 text-accent-success"}),label:"Forwarded",value:l.fwd,color:"bg-accent-success/10",percentage:l.fwdPercent}),a.jsx(V,{icon:a.jsx(w,{className:"w-3.5 h-3.5 text-accent-danger"}),label:"Dropped",value:l.dropped,color:"bg-accent-danger/10",percentage:l.droppedPercent}),a.jsx(V,{icon:a.jsx(v,{className:"w-3.5 h-3.5 text-text-muted"}),label:"Duplicates",value:l.duplicate,color:"bg-white/5"}),a.jsxs("div",{className:"hidden sm:flex items-center gap-6 ml-auto",children:[a.jsx(V,{icon:a.jsx(k,{className:"w-3.5 h-3.5 text-accent-secondary"}),label:"Sources",value:l.uniqueSources,color:"bg-accent-secondary/10"}),a.jsxs("div",{className:"flex flex-col items-end pr-1",children:[a.jsxs("span",{className:"text-sm font-mono text-text-secondary",children:[l.avgRssi," dBm"]}),a.jsx("span",{className:"text-[10px] text-text-muted",children:"Avg Signal"})]})]})]})})});function H(){const s=c(),t=d(),i=null==t?void 0:t.local_hash,r=null==t?void 0:t.neighbors,[n,o]=e.useState(!1),[j,v]=e.useState({limit:500,status:"all"}),[f,N]=e.useState(Date.now);e.useEffect(()=>{j.timeRange&&j.timeRange>0&&queueMicrotask(()=>N(Date.now()))},[j.timeRange,s]);const w=e.useMemo(()=>{const e=j.limit??500;return[...s.length<=e?s:s.slice(-e)].sort((e,a)=>(a.timestamp??0)-(e.timestamp??0))},[s,j.limit]),k=0===s.length,F=e.useMemo(()=>{let e=w;if(void 0!==j.type){const a=m[j.type];e=e.filter(e=>{const s=e.type??e.payload_type,l=e.payload_type_name;return s===j.type||l===a})}if(void 0!==j.route){const a=u[j.route];e=e.filter(e=>{const s=e.route??e.route_type,l=e.route_type_name;return s===j.route||l===a})}if(j.status&&"all"!==j.status&&(e=e.filter(e=>g(e)===j.status)),void 0!==j.signalMin&&(e=e.filter(e=>e.rssi>=j.signalMin)),j.timeRange&&j.timeRange>0){const a=f/1e3-3600*j.timeRange;e=e.filter(e=>e.timestamp>=a)}return e},[w,j.type,j.route,j.status,j.signalMin,j.timeRange,f]),A=(e,a)=>v(s=>({...s,[e]:a})),_=void 0!==j.type||void 0!==j.route||j.status&&"all"!==j.status||void 0!==j.signalMin||j.timeRange&&j.timeRange>0;return a.jsxs(S,{children:[a.jsx(R,{title:"Packet History",icon:a.jsx(h,{}),controls:a.jsxs(a.Fragment,{children:[a.jsx(p,{showLabel:!0}),a.jsxs(x,{outline:!0,color:_?"primary":"muted",onClick:()=>o(!n),className:"sm:hidden",children:[a.jsx(C,{"data-slot":"icon"}),_&&a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent-primary"})]})]})}),a.jsxs(P,{children:[a.jsxs(L,{noPadding:!0,className:l("overflow-hidden transition-all duration-200",n?"max-h-96 opacity-100":"max-h-0 opacity-0 sm:max-h-96 sm:opacity-100"),children:[a.jsx(M,{listHeader:!0,icon:a.jsx(C,{className:"icon-sm"}),title:"Filters",actions:_?a.jsxs(x,{plain:!0,color:"muted",onClick:()=>v({limit:j.limit,status:"all"}),className:"!text-xs !py-0.5 !px-1.5",children:[a.jsx(b,{"data-slot":"icon",className:"!w-3 !h-3"}),"Clear"]}):void 0}),a.jsx("div",{className:"p-3 sm:p-4",children:a.jsxs("div",{className:"grid grid-cols-2 sm:flex sm:flex-wrap gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Type"}),a.jsx(D,{value:j.type??"",onChange:e=>A("type",""===e?void 0:Number(e)),options:[{value:"",label:"All Types"},...Object.entries(m).map(([e,a])=>({value:Number(e),label:a}))],placeholder:"Search types...","aria-label":"Filter by packet type"})]}),a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Route"}),a.jsx(D,{value:j.route??"",onChange:e=>A("route",""===e?void 0:Number(e)),options:[{value:"",label:"All Routes"},...Object.entries(u).map(([e,a])=>({value:Number(e),label:a}))],placeholder:"Search routes...","aria-label":"Filter by route type"})]}),a.jsxs("div",{className:"flex-1 min-w-[140px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Status"}),a.jsx(D,{value:j.status??"all",onChange:e=>A("status",e),options:[{value:"all",label:"All Status"},{value:"rx",label:"Received"},{value:"forward",label:"Forwarded"},{value:"dropped",label:"Dropped"},{value:"duplicate",label:"Duplicate"}],placeholder:"Search status...","aria-label":"Filter by status"})]}),a.jsxs("div",{className:"flex-1 min-w-[120px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Time"}),a.jsx(D,{value:j.timeRange??0,onChange:e=>A("timeRange",0===e?void 0:e),options:[{value:0,label:"All Time"},{value:1,label:"Last 1h"},{value:6,label:"Last 6h"},{value:24,label:"Last 24h"},{value:168,label:"Last 7d"}],placeholder:"Search time...","aria-label":"Filter by time range"})]}),a.jsxs("div",{className:"flex-1 min-w-[130px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Signal"}),a.jsx(D,{value:j.signalMin??"",onChange:e=>A("signalMin",""===e?void 0:Number(e)),options:[{value:"",label:"Any Signal"},{value:-90,label:"Strong (≥-90)"},{value:-100,label:"Good (≥-100)"},{value:-110,label:"Fair (≥-110)"},{value:-120,label:"Weak (≥-120)"}],placeholder:"Search signal...","aria-label":"Filter by signal strength"})]}),a.jsxs("div",{className:"flex-1 min-w-[100px]",children:[a.jsx("label",{className:"type-micro block mb-1",children:"Limit"}),a.jsx(D,{value:j.limit??500,onChange:e=>A("limit",e),options:[{value:100,label:"100"},{value:200,label:"200"},{value:500,label:"500"},{value:1e3,label:"1000"},{value:2e3,label:"2000"}],placeholder:"Limit...","aria-label":"Packet limit"})]})]})})]}),a.jsx(B,{packets:F}),a.jsx(L,{noPadding:!0,className:"!overflow-visible",children:a.jsx(y,{packets:F,allPackets:s,localHash:i,neighbors:r,loading:k,showPagination:!0,perPage:50,emptyMessage:"No packets found"})})]})]})}export{H as default}; diff --git a/frontend/dist/assets/PageLayout-C4LpOVqW.js b/frontend/dist/assets/PageLayout-BlXA3E6H.js similarity index 98% rename from frontend/dist/assets/PageLayout-C4LpOVqW.js rename to frontend/dist/assets/PageLayout-BlXA3E6H.js index d590b624..cc7f743e 100644 --- a/frontend/dist/assets/PageLayout-C4LpOVqW.js +++ b/frontend/dist/assets/PageLayout-BlXA3E6H.js @@ -1 +1 @@ -import{j as s,c as e}from"./vendor-react-BKIq8k5U.js";import"./index-_WuEOacy.js";const a=[45,72,33,58,80,42,65,28,55,75,38,62];function l({className:a,style:l}){return s.jsx("div",{className:e("animate-pulse bg-subtle-fill radius-badge",a),style:l})}function c(){return s.jsx("div",{className:"p-3 radius-inner border-card bg-bg-subtle",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(l,{className:"w-14 h-6 rounded shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[s.jsx(l,{className:"h-4 w-full"}),s.jsx(l,{className:"h-4 w-3/4"}),s.jsx(l,{className:"h-3 w-32 mt-1"})]})]})})}function r({count:e=8}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((e,a)=>s.jsx(c,{},a))})}function i(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx(l,{className:"h-8 w-20"}),s.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-2",children:[s.jsx(l,{className:"h-3 w-full"}),s.jsx(l,{className:"h-3 w-3/4"})]})]})}function n(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx("div",{className:"flex-1 flex items-end gap-1",children:a.slice(0,8).map((e,a)=>s.jsx(l,{className:"flex-1",style:{height:`${e}%`}},a))})]})}function t({rows:e=5}){return s.jsxs("div",{className:"flex flex-col h-full","aria-hidden":"true",children:[s.jsx("div",{className:"pb-3 border-b border-border-subtle",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]})}),s.jsx("div",{className:"flex-1 pt-3 flex flex-col gap-3",children:Array.from({length:e}).map((e,a)=>s.jsx(l,{className:"h-6 w-full"},a))})]})}function d({children:a,className:l}){return s.jsx("div",{className:e("section-gap",l),children:a})}function x({children:a,className:l}){return s.jsx("div",{className:e("bento-section",l),children:a})}function m({title:e,icon:a,controls:l,subtitle:c}){return s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3",children:[s.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2 sm:gap-3 h-9 min-w-0",children:[a&&s.jsx("span",{className:"w-5 h-5 sm:w-6 sm:h-6 text-icon-page-title flex-shrink-0",children:a}),s.jsx("span",{className:"truncate",children:e})]}),l&&s.jsx("div",{className:"flex items-center gap-2 sm:gap-3 h-9 flex-shrink-0",children:l})]}),c&&s.jsx("div",{children:c})]})}const h={sm:"card-sm",md:"card-md",lg:"card-lg",hero:"card-hero",auto:"card-auto"};function f({children:a,size:l,compact:c,noPadding:r,className:d,style:x,onClick:m,isLoaded:f=!0,skeletonType:o="card"}){return s.jsxs("div",{className:e("surface-base rounded-2xl h-full flex flex-col relative",!r&&(c?"card-padding-sm":"card-padding"),l&&h[l],d),style:x,onClick:m,children:[a,!f&&(()=>{switch(o){case"chart":return s.jsx(n,{});case"list":return s.jsx(t,{});default:return s.jsx(i,{})}})()]})}export{x as B,i as C,r as L,d as P,l as S,f as a,m as b}; +import{j as s,c as e}from"./vendor-react-BKIq8k5U.js";import"./index-CrU_Ps9k.js";const a=[45,72,33,58,80,42,65,28,55,75,38,62];function l({className:a,style:l}){return s.jsx("div",{className:e("animate-pulse bg-subtle-fill radius-badge",a),style:l})}function c(){return s.jsx("div",{className:"p-3 radius-inner border-card bg-bg-subtle",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(l,{className:"w-14 h-6 rounded shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[s.jsx(l,{className:"h-4 w-full"}),s.jsx(l,{className:"h-4 w-3/4"}),s.jsx(l,{className:"h-3 w-32 mt-1"})]})]})})}function r({count:e=8}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((e,a)=>s.jsx(c,{},a))})}function i(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx(l,{className:"h-8 w-20"}),s.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-2",children:[s.jsx(l,{className:"h-3 w-full"}),s.jsx(l,{className:"h-3 w-3/4"})]})]})}function n(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx("div",{className:"flex-1 flex items-end gap-1",children:a.slice(0,8).map((e,a)=>s.jsx(l,{className:"flex-1",style:{height:`${e}%`}},a))})]})}function t({rows:e=5}){return s.jsxs("div",{className:"flex flex-col h-full","aria-hidden":"true",children:[s.jsx("div",{className:"pb-3 border-b border-border-subtle",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]})}),s.jsx("div",{className:"flex-1 pt-3 flex flex-col gap-3",children:Array.from({length:e}).map((e,a)=>s.jsx(l,{className:"h-6 w-full"},a))})]})}function d({children:a,className:l}){return s.jsx("div",{className:e("section-gap",l),children:a})}function x({children:a,className:l}){return s.jsx("div",{className:e("bento-section",l),children:a})}function m({title:e,icon:a,controls:l,subtitle:c}){return s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3",children:[s.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2 sm:gap-3 h-9 min-w-0",children:[a&&s.jsx("span",{className:"w-5 h-5 sm:w-6 sm:h-6 text-icon-page-title flex-shrink-0",children:a}),s.jsx("span",{className:"truncate",children:e})]}),l&&s.jsx("div",{className:"flex items-center gap-2 sm:gap-3 h-9 flex-shrink-0",children:l})]}),c&&s.jsx("div",{children:c})]})}const h={sm:"card-sm",md:"card-md",lg:"card-lg",hero:"card-hero",auto:"card-auto"};function f({children:a,size:l,compact:c,noPadding:r,className:d,style:x,onClick:m,isLoaded:f=!0,skeletonType:o="card"}){return s.jsxs("div",{className:e("surface-base rounded-2xl h-full flex flex-col relative",!r&&(c?"card-padding-sm":"card-padding"),l&&h[l],d),style:x,onClick:m,children:[a,!f&&(()=>{switch(o){case"chart":return s.jsx(n,{});case"list":return s.jsx(t,{});default:return s.jsx(i,{})}})()]})}export{x as B,i as C,r as L,d as P,l as S,f as a,m as b}; diff --git a/frontend/dist/assets/PathMapMapLibre-CM9Tugko.js b/frontend/dist/assets/PathMapMapLibre-CNx61kIu.js similarity index 93% rename from frontend/dist/assets/PathMapMapLibre-CM9Tugko.js rename to frontend/dist/assets/PathMapMapLibre-CNx61kIu.js index f23f3816..1b7b0951 100644 --- a/frontend/dist/assets/PathMapMapLibre-CM9Tugko.js +++ b/frontend/dist/assets/PathMapMapLibre-CNx61kIu.js @@ -1 +1 @@ -import{r as e,j as t,c as o}from"./vendor-react-BKIq8k5U.js";import{u as r,M as i,B as n,S as a,L as s,a as l,P as d}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{c,a9 as u,ci as m,ah as p,B as h,m as x,cj as g}from"./index-_WuEOacy.js";import{H as f}from"./house-BBcJvvl1.js";import{u as b}from"./PacketList-BKgLb74Z.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./payload-decoders-BC60O4FC.js";import"./SignalIndicator-BLxNXr0z.js";import"./arrow-up-Bfc4DrcP.js";import"./DataBox-ihLFk7Um.js";import"./chevron-right-DMrbDIps.js";import"./loader-circle-E8BhCd6Y.js";import"./map-pin-yDOfK60-.js";import"./triangle-alert-aHb4szMy.js";import"./route-C2p1jL3a.js";import"./activity-CYJ1WO67.js";import"./circle-check-COooBZCl.js";import"./database-DzqBwrzM.js";import"./index-DU6QWVJT.js";const y=c("car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]),v={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},j={nodeColor:"#4338CA",localColor:"#4F46E5",hubColor:"#6366F1",edgeColor:"#3B3F4A",ambiguousColor:"#F9D26F",highlightColor:"#B49DFF",sourceColor:"#39D98A",destinationColor:"#B49DFF"};function C(e,t){if(!e)return t;if(e.startsWith("#"))return e;const o=g(e);return o?`#${o.r.toString(16).padStart(2,"0")}${o.g.toString(16).padStart(2,"0")}${o.b.toString(16).padStart(2,"0")}`:t}function k(){if("undefined"==typeof document)return j;const e=document.documentElement,t=getComputedStyle(e);return{nodeColor:C(t.getPropertyValue("--map-node-stroke").trim(),j.nodeColor),localColor:C(t.getPropertyValue("--map-local-color").trim(),j.localColor),hubColor:C(t.getPropertyValue("--map-hub-color").trim(),j.hubColor),edgeColor:C(t.getPropertyValue("--map-edge-rest").trim(),j.edgeColor),ambiguousColor:C(t.getPropertyValue("--accent-secondary").trim(),j.ambiguousColor),highlightColor:C(t.getPropertyValue("--accent-primary").trim(),j.highlightColor),sourceColor:C(t.getPropertyValue("--accent-success").trim(),j.sourceColor),destinationColor:C(t.getPropertyValue("--accent-primary").trim(),j.destinationColor)}}function N({prefix:r,isLocal:i,isSource:n,isDestination:a,isLastHop:s,isHighlighted:l,isAnimating:d,isWardrive:c,candidate:u,onHover:m,onLeave:p,onClick:g}){const v=b(),[j,C]=e.useState(!1);e.useEffect(()=>{d&&v.start({boxShadow:["0 0 0 0px rgba(113, 156, 223, 0)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 0px rgba(113, 156, 223, 0)"],transition:{duration:.5,times:[0,.2,.7,1],ease:"easeInOut"}})},[d,v]);const k=e.useCallback(()=>{C(!0),m()},[m]),N=e.useCallback(()=>{C(!1),p()},[p]);return c?t.jsxs(x.div,{className:o("flex items-center cursor-pointer","transition-all duration-150",l&&"ring-2 ring-accent-primary/50 rounded-full",j&&"relative z-50"),animate:v,initial:{boxShadow:"0 0 0 0px rgba(249, 115, 22, 0)"},onMouseEnter:k,onMouseLeave:N,onClick:g,style:{pointerEvents:"auto"},children:[t.jsx("div",{className:o("flex items-center justify-center","w-7 h-7 rounded-full","bg-orange-500 text-white","shadow-lg border-2 border-orange-300/50","transition-transform duration-150",j&&"scale-110"),children:t.jsx(y,{className:"w-4 h-4",strokeWidth:2.5})}),j&&t.jsxs(h,{color:"orange",filled:!0,className:"ml-1 text-[10px] font-mono shadow-lg",children:[r,u.name&&t.jsx("span",{className:"ml-1 opacity-75",children:u.name})]})]}):t.jsx(x.div,{className:o("flex items-center cursor-pointer","transition-all duration-150",l&&"ring-2 ring-accent-primary/50 rounded",j&&"relative z-50"),animate:v,initial:{boxShadow:"0 0 0 0px rgba(113, 156, 223, 0)"},onMouseEnter:k,onMouseLeave:N,onClick:g,style:{pointerEvents:"auto"},children:t.jsxs(h,{color:c?"orange":i?"amber":n?"green":s?"amber":a?"purple":"blue",filled:!0,className:"font-mono text-[10px] shadow-lg border border-current/30",children:[i&&t.jsx(f,{className:"w-2.5 h-2.5 mr-1"}),r,j&&u.name&&t.jsx("span",{className:"ml-1 opacity-75",children:u.name})]})})}function S({hopNumber:e,snr:o,edgeColor:r}){return t.jsxs("div",{className:"flex flex-col items-center gap-0.5 pointer-events-none",children:[t.jsx("span",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center font-mono font-bold tabular-nums shadow-md",style:{backgroundColor:r||"#71717a",color:"#fff",fontSize:"8px",lineHeight:1,textShadow:"0 1px 1px rgba(0,0,0,0.4)"},children:e}),void 0!==o&&t.jsx(h,{color:"zinc",compact:!0,className:"!text-[9px] font-mono tabular-nums shadow-sm",children:o.toFixed(1)})]})}function w({resolvedPath:c,localNode:h,hubNodes:x=[],hoveredHopIndex:g,onHoverHop:f,traceSnr:b}){const y=void 0!==b&&b.length>0,j=e.useRef(null),C=r(),w=e.useMemo(()=>new Set(x),[x]),[F,L]=e.useState(null),D=u(),[E,M]=e.useState(!1),[P,H]=e.useState(0);e.useEffect(()=>{var e;const t=null==(e=j.current)?void 0:e.getMap();if(!t)return;const o=t.getCanvas();if(!o)return;const r=e=>{e.preventDefault()},i=()=>{H(e=>e+1)};return o.addEventListener("webglcontextlost",r),o.addEventListener("webglcontextrestored",i),()=>{o.removeEventListener("webglcontextlost",r),o.removeEventListener("webglcontextrestored",i)}},[P]);const{positions:$,markers:B,edges:A}=e.useMemo(()=>{const e=[],t=[],o=[],r=[];let i=0,n=!1;return c.hops.forEach((a,s)=>{const l=a.candidates.filter(e=>{return t=e.latitude,o=e.longitude,0!==t||0!==o;var t,o});if(0===l.length)return;const d=[...l].sort((e,t)=>t.probability-e.probability)[0],c=[d.longitude,d.latitude];if(r.push(c),r.length>=2){const e=r[r.length-2],t=r.length-2,i=null==b?void 0:b[t],a=c[0]-e[0],s=c[1]-e[1],l=Math.atan2(a,s)*(180/Math.PI),d=k();let u;u=n?"#F97316":void 0!==i?m()[p(i)]||"#71717a":d.edgeColor,o.push({from:e,to:c,snrFwd:i,midpoint:[(e[0]+c[0])/2,(e[1]+c[1])/2],bearing:l,color:u,isFromWardrive:n})}const u=!0===a.isSource,h=!0===a.isDestination,x=!0===d.isWardrive;n=x,l.forEach((o,r)=>{const n=[o.latitude,o.longitude];e.push(n);const d=0===r;t.push({position:n,prefix:a.prefix,confidence:a.confidence,candidateCount:l.length,hopIndex:s,candidate:o,isHub:w.has(o.hash),isPrimary:d,isSource:u,isDestination:h,validIndex:i})}),i++}),{positions:e,markers:t,edges:o}},[c,w,b]),I=e.useMemo(()=>{const e=B.filter(e=>e.isPrimary&&(e.confidence>=.5||e.isSource||e.isDestination));if(0===e.length)return null;let t=1/0,o=-1/0,r=1/0,i=-1/0;for(const n of e){const[e,a]=n.position;eo&&(o=e),ai&&(i=a)}return[[r,t],[i,o]]},[B]),V=e.useMemo(()=>{if(0===$.length)return h?[h.longitude,h.latitude]:[0,0];let e=0,t=0;for(const[o,r]of $)e+=o,t+=r;return[t/$.length,e/$.length]},[$,h]),W=e.useCallback(()=>{var e;const t=null==(e=j.current)?void 0:e.getMap();t&&I?(t.fitBounds(I,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:15,duration:0}),setTimeout(()=>{M(!0)},50)):M(!0)},[I]),z=e.useMemo(()=>I?`${I[0][0].toFixed(5)},${I[0][1].toFixed(5)},${I[1][0].toFixed(5)},${I[1][1].toFixed(5)}`:"",[I]);e.useEffect(()=>{var e;if(!E)return;const t=null==(e=j.current)?void 0:e.getMap();t&&I&&t.fitBounds(I,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:15,duration:300})},[z,E,I]);const R=D&&E,O=e.useCallback(e=>{L({longitude:e.position[1],latitude:e.position[0],marker:e})},[]);return 0===$.length?t.jsx("div",{className:"h-full flex items-center justify-center text-text-muted text-sm bg-bg-elevated",children:"No mappable path data"}):t.jsxs("div",{className:"h-full w-full relative",children:[t.jsx("div",{className:o("absolute inset-0 bg-bg-elevated flex items-center justify-center","transition-opacity duration-200 ease-out pointer-events-none",R?"opacity-0":"opacity-100"),children:t.jsx("div",{className:"w-5 h-5 border-2 border-text-muted/30 border-t-text-muted rounded-full animate-spin"})}),t.jsx("div",{className:"h-full w-full transition-opacity duration-300 ease-out",style:{opacity:R?1:0},children:t.jsxs(i,{ref:j,initialViewState:{longitude:V[0],latitude:V[1],zoom:10},onLoad:W,style:{height:"100%",width:"100%"},mapStyle:v,attributionControl:!1,children:[t.jsx(n,{mode:C}),A.map((e,o)=>{const r={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:[e.from,e.to]}}]};return t.jsx(a,{id:`edge-${o}`,type:"geojson",data:r,children:t.jsx(s,{id:`edge-line-${o}`,type:"line",paint:{"line-color":e.color,"line-width":4,"line-opacity":1},layout:{"line-cap":"round","line-join":"round"}})},`edge-${o}`)}),A.map((e,o)=>t.jsx(l,{longitude:e.midpoint[0],latitude:e.midpoint[1],anchor:"center",children:t.jsx(S,{hopNumber:o+1,snr:y?e.snrFwd:void 0,edgeColor:e.color})},`hop-${o}`)),(()=>{const e=B.filter(e=>e.isPrimary),o=e.length>1?e.length-2:-1;return e.map((e,r)=>{const i=g===e.hopIndex,n=r===o&&!e.candidate.isLocal&&!e.isDestination;return t.jsx(l,{longitude:e.position[1],latitude:e.position[0],anchor:"center",children:t.jsx(N,{prefix:e.prefix,isLocal:e.candidate.isLocal||!1,isSource:e.isSource,isDestination:e.isDestination,isLastHop:n,isHighlighted:i,isAnimating:!1,isWardrive:e.candidate.isWardrive||!1,candidate:e.candidate,onHover:()=>null==f?void 0:f(e.hopIndex),onLeave:()=>null==f?void 0:f(null),onClick:()=>O(e)})},`${e.hopIndex}-${e.candidate.hash}`)})})(),F&&t.jsx(d,{longitude:F.longitude,latitude:F.latitude,anchor:"bottom",offset:[0,-12],closeOnClick:!1,onClose:()=>L(null),className:"maplibre-popup",children:t.jsxs("div",{className:"text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-semibold",children:F.marker.candidate.name}),(()=>{const e=k();return t.jsxs(t.Fragment,{children:[F.marker.isSource&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.sourceColor,color:"#000"},children:"SRC"}),F.marker.isDestination&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.destinationColor,color:"#000"},children:"DST"}),F.marker.isHub&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.hubColor,color:"#000"},children:"HUB"}),F.marker.candidate.isLocal&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.localColor,color:"#fff"},children:"LOCAL"}),F.marker.candidate.isWardrive&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:"#F97316",color:"#fff"},children:"WARDRIVE"})]})})()]}),t.jsxs("div",{className:"text-text-muted font-mono text-[10px]",children:[F.marker.prefix," • ",F.marker.candidate.hash.slice(0,10),"..."]}),!F.marker.isPrimary&&F.marker.candidateCount>1&&t.jsxs("div",{style:{color:k().ambiguousColor},children:["Alternative (",(100*F.marker.candidate.probability).toFixed(0),"%)"]}),F.marker.isPrimary&&F.marker.candidateCount>1&&t.jsxs("div",{className:"text-text-muted",children:[F.marker.candidateCount," candidates"]})]})})]},P)})]})}export{w as default}; +import{r as e,j as t,c as o}from"./vendor-react-BKIq8k5U.js";import{u as r,M as i,B as n,S as a,L as s,a as l,P as d}from"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import{c,a9 as u,ci as m,ah as p,B as h,m as x,cj as g}from"./index-CrU_Ps9k.js";import{H as f}from"./house-DNrMSmBS.js";import{u as b}from"./PacketList-Q1pG-MMT.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./payload-decoders-N5zeG9av.js";import"./SignalIndicator-DN65UHiA.js";import"./arrow-up-2wZY9TSM.js";import"./DataBox-sJHphnZd.js";import"./chevron-right-DBUqxZL-.js";import"./loader-circle-D6Apotf0.js";import"./map-pin-BUNSWVCM.js";import"./triangle-alert-DrmOKr32.js";import"./route-BsYhRSod.js";import"./activity-DIYCEspu.js";import"./circle-check-DH0TJtTq.js";import"./database-lWroaxsL.js";import"./index-n30bZfID.js";const y=c("car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]),v={version:8,sources:{},layers:[],glyphs:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},j={nodeColor:"#4338CA",localColor:"#4F46E5",hubColor:"#6366F1",edgeColor:"#3B3F4A",ambiguousColor:"#F9D26F",highlightColor:"#B49DFF",sourceColor:"#39D98A",destinationColor:"#B49DFF"};function C(e,t){if(!e)return t;if(e.startsWith("#"))return e;const o=g(e);return o?`#${o.r.toString(16).padStart(2,"0")}${o.g.toString(16).padStart(2,"0")}${o.b.toString(16).padStart(2,"0")}`:t}function k(){if("undefined"==typeof document)return j;const e=document.documentElement,t=getComputedStyle(e);return{nodeColor:C(t.getPropertyValue("--map-node-stroke").trim(),j.nodeColor),localColor:C(t.getPropertyValue("--map-local-color").trim(),j.localColor),hubColor:C(t.getPropertyValue("--map-hub-color").trim(),j.hubColor),edgeColor:C(t.getPropertyValue("--map-edge-rest").trim(),j.edgeColor),ambiguousColor:C(t.getPropertyValue("--accent-secondary").trim(),j.ambiguousColor),highlightColor:C(t.getPropertyValue("--accent-primary").trim(),j.highlightColor),sourceColor:C(t.getPropertyValue("--accent-success").trim(),j.sourceColor),destinationColor:C(t.getPropertyValue("--accent-primary").trim(),j.destinationColor)}}function N({prefix:r,isLocal:i,isSource:n,isDestination:a,isLastHop:s,isHighlighted:l,isAnimating:d,isWardrive:c,candidate:u,onHover:m,onLeave:p,onClick:g}){const v=b(),[j,C]=e.useState(!1);e.useEffect(()=>{d&&v.start({boxShadow:["0 0 0 0px rgba(113, 156, 223, 0)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 2px rgba(113, 156, 223, 0.5)","0 0 0 0px rgba(113, 156, 223, 0)"],transition:{duration:.5,times:[0,.2,.7,1],ease:"easeInOut"}})},[d,v]);const k=e.useCallback(()=>{C(!0),m()},[m]),N=e.useCallback(()=>{C(!1),p()},[p]);return c?t.jsxs(x.div,{className:o("flex items-center cursor-pointer","transition-all duration-150",l&&"ring-2 ring-accent-primary/50 rounded-full",j&&"relative z-50"),animate:v,initial:{boxShadow:"0 0 0 0px rgba(249, 115, 22, 0)"},onMouseEnter:k,onMouseLeave:N,onClick:g,style:{pointerEvents:"auto"},children:[t.jsx("div",{className:o("flex items-center justify-center","w-7 h-7 rounded-full","bg-orange-500 text-white","shadow-lg border-2 border-orange-300/50","transition-transform duration-150",j&&"scale-110"),children:t.jsx(y,{className:"w-4 h-4",strokeWidth:2.5})}),j&&t.jsxs(h,{color:"orange",filled:!0,className:"ml-1 text-[10px] font-mono shadow-lg",children:[r,u.name&&t.jsx("span",{className:"ml-1 opacity-75",children:u.name})]})]}):t.jsx(x.div,{className:o("flex items-center cursor-pointer","transition-all duration-150",l&&"ring-2 ring-accent-primary/50 rounded",j&&"relative z-50"),animate:v,initial:{boxShadow:"0 0 0 0px rgba(113, 156, 223, 0)"},onMouseEnter:k,onMouseLeave:N,onClick:g,style:{pointerEvents:"auto"},children:t.jsxs(h,{color:c?"orange":i?"amber":n?"green":s?"amber":a?"purple":"blue",filled:!0,className:"font-mono text-[10px] shadow-lg border border-current/30",children:[i&&t.jsx(f,{className:"w-2.5 h-2.5 mr-1"}),r,j&&u.name&&t.jsx("span",{className:"ml-1 opacity-75",children:u.name})]})})}function S({hopNumber:e,snr:o,edgeColor:r}){return t.jsxs("div",{className:"flex flex-col items-center gap-0.5 pointer-events-none",children:[t.jsx("span",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center font-mono font-bold tabular-nums shadow-md",style:{backgroundColor:r||"#71717a",color:"#fff",fontSize:"8px",lineHeight:1,textShadow:"0 1px 1px rgba(0,0,0,0.4)"},children:e}),void 0!==o&&t.jsx(h,{color:"zinc",compact:!0,className:"!text-[9px] font-mono tabular-nums shadow-sm",children:o.toFixed(1)})]})}function w({resolvedPath:c,localNode:h,hubNodes:x=[],hoveredHopIndex:g,onHoverHop:f,traceSnr:b}){const y=void 0!==b&&b.length>0,j=e.useRef(null),C=r(),w=e.useMemo(()=>new Set(x),[x]),[F,L]=e.useState(null),D=u(),[E,M]=e.useState(!1),[P,H]=e.useState(0);e.useEffect(()=>{var e;const t=null==(e=j.current)?void 0:e.getMap();if(!t)return;const o=t.getCanvas();if(!o)return;const r=e=>{e.preventDefault()},i=()=>{H(e=>e+1)};return o.addEventListener("webglcontextlost",r),o.addEventListener("webglcontextrestored",i),()=>{o.removeEventListener("webglcontextlost",r),o.removeEventListener("webglcontextrestored",i)}},[P]);const{positions:$,markers:B,edges:A}=e.useMemo(()=>{const e=[],t=[],o=[],r=[];let i=0,n=!1;return c.hops.forEach((a,s)=>{const l=a.candidates.filter(e=>{return t=e.latitude,o=e.longitude,0!==t||0!==o;var t,o});if(0===l.length)return;const d=[...l].sort((e,t)=>t.probability-e.probability)[0],c=[d.longitude,d.latitude];if(r.push(c),r.length>=2){const e=r[r.length-2],t=r.length-2,i=null==b?void 0:b[t],a=c[0]-e[0],s=c[1]-e[1],l=Math.atan2(a,s)*(180/Math.PI),d=k();let u;u=n?"#F97316":void 0!==i?m()[p(i)]||"#71717a":d.edgeColor,o.push({from:e,to:c,snrFwd:i,midpoint:[(e[0]+c[0])/2,(e[1]+c[1])/2],bearing:l,color:u,isFromWardrive:n})}const u=!0===a.isSource,h=!0===a.isDestination,x=!0===d.isWardrive;n=x,l.forEach((o,r)=>{const n=[o.latitude,o.longitude];e.push(n);const d=0===r;t.push({position:n,prefix:a.prefix,confidence:a.confidence,candidateCount:l.length,hopIndex:s,candidate:o,isHub:w.has(o.hash),isPrimary:d,isSource:u,isDestination:h,validIndex:i})}),i++}),{positions:e,markers:t,edges:o}},[c,w,b]),I=e.useMemo(()=>{const e=B.filter(e=>e.isPrimary&&(e.confidence>=.5||e.isSource||e.isDestination));if(0===e.length)return null;let t=1/0,o=-1/0,r=1/0,i=-1/0;for(const n of e){const[e,a]=n.position;eo&&(o=e),ai&&(i=a)}return[[r,t],[i,o]]},[B]),V=e.useMemo(()=>{if(0===$.length)return h?[h.longitude,h.latitude]:[0,0];let e=0,t=0;for(const[o,r]of $)e+=o,t+=r;return[t/$.length,e/$.length]},[$,h]),W=e.useCallback(()=>{var e;const t=null==(e=j.current)?void 0:e.getMap();t&&I?(t.fitBounds(I,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:15,duration:0}),setTimeout(()=>{M(!0)},50)):M(!0)},[I]),z=e.useMemo(()=>I?`${I[0][0].toFixed(5)},${I[0][1].toFixed(5)},${I[1][0].toFixed(5)},${I[1][1].toFixed(5)}`:"",[I]);e.useEffect(()=>{var e;if(!E)return;const t=null==(e=j.current)?void 0:e.getMap();t&&I&&t.fitBounds(I,{padding:{top:50,bottom:50,left:50,right:50},maxZoom:15,duration:300})},[z,E,I]);const R=D&&E,O=e.useCallback(e=>{L({longitude:e.position[1],latitude:e.position[0],marker:e})},[]);return 0===$.length?t.jsx("div",{className:"h-full flex items-center justify-center text-text-muted text-sm bg-bg-elevated",children:"No mappable path data"}):t.jsxs("div",{className:"h-full w-full relative",children:[t.jsx("div",{className:o("absolute inset-0 bg-bg-elevated flex items-center justify-center","transition-opacity duration-200 ease-out pointer-events-none",R?"opacity-0":"opacity-100"),children:t.jsx("div",{className:"w-5 h-5 border-2 border-text-muted/30 border-t-text-muted rounded-full animate-spin"})}),t.jsx("div",{className:"h-full w-full transition-opacity duration-300 ease-out",style:{opacity:R?1:0},children:t.jsxs(i,{ref:j,initialViewState:{longitude:V[0],latitude:V[1],zoom:10},onLoad:W,style:{height:"100%",width:"100%"},mapStyle:v,attributionControl:!1,children:[t.jsx(n,{mode:C}),A.map((e,o)=>{const r={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:[e.from,e.to]}}]};return t.jsx(a,{id:`edge-${o}`,type:"geojson",data:r,children:t.jsx(s,{id:`edge-line-${o}`,type:"line",paint:{"line-color":e.color,"line-width":4,"line-opacity":1},layout:{"line-cap":"round","line-join":"round"}})},`edge-${o}`)}),A.map((e,o)=>t.jsx(l,{longitude:e.midpoint[0],latitude:e.midpoint[1],anchor:"center",children:t.jsx(S,{hopNumber:o+1,snr:y?e.snrFwd:void 0,edgeColor:e.color})},`hop-${o}`)),(()=>{const e=B.filter(e=>e.isPrimary),o=e.length>1?e.length-2:-1;return e.map((e,r)=>{const i=g===e.hopIndex,n=r===o&&!e.candidate.isLocal&&!e.isDestination;return t.jsx(l,{longitude:e.position[1],latitude:e.position[0],anchor:"center",children:t.jsx(N,{prefix:e.prefix,isLocal:e.candidate.isLocal||!1,isSource:e.isSource,isDestination:e.isDestination,isLastHop:n,isHighlighted:i,isAnimating:!1,isWardrive:e.candidate.isWardrive||!1,candidate:e.candidate,onHover:()=>null==f?void 0:f(e.hopIndex),onLeave:()=>null==f?void 0:f(null),onClick:()=>O(e)})},`${e.hopIndex}-${e.candidate.hash}`)})})(),F&&t.jsx(d,{longitude:F.longitude,latitude:F.latitude,anchor:"bottom",offset:[0,-12],closeOnClick:!1,onClose:()=>L(null),className:"maplibre-popup",children:t.jsxs("div",{className:"text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-semibold",children:F.marker.candidate.name}),(()=>{const e=k();return t.jsxs(t.Fragment,{children:[F.marker.isSource&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.sourceColor,color:"#000"},children:"SRC"}),F.marker.isDestination&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.destinationColor,color:"#000"},children:"DST"}),F.marker.isHub&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.hubColor,color:"#000"},children:"HUB"}),F.marker.candidate.isLocal&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:e.localColor,color:"#fff"},children:"LOCAL"}),F.marker.candidate.isWardrive&&t.jsx("span",{className:"px-1 py-0.5 text-[8px] font-bold rounded",style:{backgroundColor:"#F97316",color:"#fff"},children:"WARDRIVE"})]})})()]}),t.jsxs("div",{className:"text-text-muted font-mono text-[10px]",children:[F.marker.prefix," • ",F.marker.candidate.hash.slice(0,10),"..."]}),!F.marker.isPrimary&&F.marker.candidateCount>1&&t.jsxs("div",{style:{color:k().ambiguousColor},children:["Alternative (",(100*F.marker.candidate.probability).toFixed(0),"%)"]}),F.marker.isPrimary&&F.marker.candidateCount>1&&t.jsxs("div",{className:"text-text-muted",children:[F.marker.candidateCount," candidates"]})]})})]},P)})]})}export{w as default}; diff --git a/frontend/dist/assets/SignalIndicator-BLxNXr0z.js b/frontend/dist/assets/SignalIndicator-DN65UHiA.js similarity index 99% rename from frontend/dist/assets/SignalIndicator-BLxNXr0z.js rename to frontend/dist/assets/SignalIndicator-DN65UHiA.js index f991c2cd..8804b6a9 100644 --- a/frontend/dist/assets/SignalIndicator-BLxNXr0z.js +++ b/frontend/dist/assets/SignalIndicator-DN65UHiA.js @@ -1 +1 @@ -import{c as e}from"./index-_WuEOacy.js";import{r as a,c as n,j as r}from"./vendor-react-BKIq8k5U.js";const t=e("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),s=e("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),i=e("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),o=e("signal-high",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]]),l=e("signal-low",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]]),c=e("signal-medium",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]),u=e("signal-zero",[["path",{d:"M2 20h.01",key:"4haj6o"}]]),d=e("signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]),p=e("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),x={ADVERT:"purple",ACK:"emerald",REQ:"sky",RESPONSE:"sky",TXT_MSG:"teal",GRP_TXT:"teal",FLOOD:"sky",GRP_DATA:"indigo",PATH:"amber",MULTIPART:"violet",TRACE:"orange",ANON_REQ:"pink",RAW_CUSTOM:"fuchsia"},h={FLOOD:"sky",T_FLOOD:"sky",DIRECT:"cyan",T_DIRECT:"cyan"},f={rx:"sky",forward:"teal",duplicate:"zinc",tx:"amber",dropped:"rose"},g={neighbor:"amber",hub:"purple",gateway:"indigo",backbone:"purple",repeater:"teal",room:"pink",companion:"blue",client:"indigo",mobile:"orange"},m={hub:"amber",backbone:"purple",relay:"cyan",edge:"brown"},y={high:"green",medium:"amber",low:"orange",insufficient:"brown"},k={direct:"amber",multihop:"brown"},M={5:-2.5,6:-5,7:-7.5,8:-10,9:-12.5,10:-15,11:-17.5,12:-20},b={62500:{5:-123,6:-125,7:-127,8:-130,9:-133,10:-136,11:-138,12:-140},125e3:{5:-120,6:-122,7:-124,8:-127,9:-130,10:-133,11:-135,12:-137},25e4:{5:-117,6:-119,7:-121,8:-124,9:-127,10:-130,11:-132,12:-134},5e5:{5:-114,6:-116,7:-118,8:-121,9:-124,10:-127,11:-129,12:-131}};function w(e,a,n){if(null==e||!Number.isFinite(e))return null;if(null==a||!Number.isFinite(a))return null;const{sf:r,bwHz:t}=n,s=function(e){const a=Math.max(5,Math.min(12,Math.round(e)));return M[a]??M[7]}(r),i=function(e,a){let n=62500;n=e>=375e3?5e5:e>=187500?25e4:e>=93750?125e3:62500;const r=b[n];return r[Math.max(5,Math.min(12,Math.round(a)))]??r[7]}(t,r),o=e-s,l=a-i;return{snrMargin:o,rssiMargin:l,worstMargin:Math.min(o,l)}}const j={EXCELLENT:6,GOOD:3,FAIR:0},N={EXCELLENT:10,GOOD:6,FAIR:2},v=["excellent","good","fair","poor","critical"];function A(e,a){return e>=a.EXCELLENT?"excellent":e>=a.GOOD?"good":e>=a.FAIR?"fair":e>=a.FAIR-3?"poor":"critical"}function E(e,a){if(0===a)return e;const n=v.indexOf(e),r=Math.min(n+a,v.length-1);return v[r]}function O(e,a,n,r){const t=(s=A(e.snrMargin,j),i=A(e.rssiMargin,N),v.indexOf(s)>=v.indexOf(i)?s:i);var s,i;const o=E(t,a);return{baseGrade:t,finalGrade:o,snrMargin:e.snrMargin,rssiMargin:e.rssiMargin,worstMargin:e.worstMargin,nfPenalty:a,wasDowngraded:a>0&&o!==t,confidence:n,isMarginBased:r}}function T(e,a,n,r=0){return n&&null!=e?function(e,a,n,r=0){const t=w(e,a,n);return t?O(t,r,"high",!0):null}(e,a,n,r):null!=e&&null!=a?function(e,a,n=0){const r=function(e,a){return w(e,a,{sf:7,bwHz:62500})}(e,a);return r?O(r,n,"low",!0):null}(e,a,r):function(e,a=0){if(null==e||!Number.isFinite(e))return null;const n=function(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"poor":"critical"}(e),r=E(n,a);return{baseGrade:n,finalGrade:r,snrMargin:null,rssiMargin:null,worstMargin:null,nfPenalty:a,wasDowngraded:a>0&&r!==n,confidence:"low",isMarginBased:!1}}(a,r)}const C={excellent:"color(display-p3 0.00 1.00 0.00)",good:"color(display-p3 0.55 0.90 0.15)",fair:"color(display-p3 1.00 0.85 0.00)",weak:"color(display-p3 1.00 0.55 0.15)",poor:"color(display-p3 1.00 0.20 0.20)"},R={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function D(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function F(e,a){return a?{backgroundColor:R[e],"--p3-color":C[e]}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function G(e){return e?"signal-bar-active":""}function L({rssi:e,className:a="w-4 h-4"}){const t=D(e),s=function(e){switch(e){case"excellent":return"text-signal-excellent";case"good":return"text-signal-good";case"fair":return"text-signal-fair";case"weak":return"text-signal-poor";case"poor":return"text-signal-critical";default:return"text-text-muted"}}(t),i=n(s,a);switch(t){case"excellent":return r.jsx(d,{className:i});case"good":return r.jsx(o,{className:i});case"fair":return r.jsx(c,{className:i});case"weak":return r.jsx(l,{className:i});default:return r.jsx(u,{className:i})}}const z=a.memo(function({rssi:e,snr:a,compact:t=!1,showValues:s=!0,radioConfig:i,nfPenalty:o=0}){const l=void 0!==a?function(e,a,n,r=0){const t=T(a,e,n,r);return t?function(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}(t.finalGrade):D(e)}(e,a,i,o):D(e),c={excellent:4,good:3,fair:2,weak:1,poor:0}[l];return t?r.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&r.jsx("span",{className:"text-[10px] font-mono text-text-secondary tabular-nums w-[32px] text-left",children:e}),r.jsx("div",{className:"flex items-end gap-[2px] h-3 w-[14px]",children:Array.from({length:4}).map((e,a)=>r.jsx("div",{className:n("w-[3px] rounded-[1px] transition-colors",G(ar.jsx("div",{className:n("w-[3px] rounded-[1px] transition-colors",G(a=375e3?5e5:e>=187500?25e4:e>=93750?125e3:62500;const r=b[n];return r[Math.max(5,Math.min(12,Math.round(a)))]??r[7]}(t,r),o=e-s,l=a-i;return{snrMargin:o,rssiMargin:l,worstMargin:Math.min(o,l)}}const j={EXCELLENT:6,GOOD:3,FAIR:0},N={EXCELLENT:10,GOOD:6,FAIR:2},v=["excellent","good","fair","poor","critical"];function A(e,a){return e>=a.EXCELLENT?"excellent":e>=a.GOOD?"good":e>=a.FAIR?"fair":e>=a.FAIR-3?"poor":"critical"}function E(e,a){if(0===a)return e;const n=v.indexOf(e),r=Math.min(n+a,v.length-1);return v[r]}function O(e,a,n,r){const t=(s=A(e.snrMargin,j),i=A(e.rssiMargin,N),v.indexOf(s)>=v.indexOf(i)?s:i);var s,i;const o=E(t,a);return{baseGrade:t,finalGrade:o,snrMargin:e.snrMargin,rssiMargin:e.rssiMargin,worstMargin:e.worstMargin,nfPenalty:a,wasDowngraded:a>0&&o!==t,confidence:n,isMarginBased:r}}function T(e,a,n,r=0){return n&&null!=e?function(e,a,n,r=0){const t=w(e,a,n);return t?O(t,r,"high",!0):null}(e,a,n,r):null!=e&&null!=a?function(e,a,n=0){const r=function(e,a){return w(e,a,{sf:7,bwHz:62500})}(e,a);return r?O(r,n,"low",!0):null}(e,a,r):function(e,a=0){if(null==e||!Number.isFinite(e))return null;const n=function(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"poor":"critical"}(e),r=E(n,a);return{baseGrade:n,finalGrade:r,snrMargin:null,rssiMargin:null,worstMargin:null,nfPenalty:a,wasDowngraded:a>0&&r!==n,confidence:"low",isMarginBased:!1}}(a,r)}const C={excellent:"color(display-p3 0.00 1.00 0.00)",good:"color(display-p3 0.55 0.90 0.15)",fair:"color(display-p3 1.00 0.85 0.00)",weak:"color(display-p3 1.00 0.55 0.15)",poor:"color(display-p3 1.00 0.20 0.20)"},R={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function D(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function F(e,a){return a?{backgroundColor:R[e],"--p3-color":C[e]}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function G(e){return e?"signal-bar-active":""}function L({rssi:e,className:a="w-4 h-4"}){const t=D(e),s=function(e){switch(e){case"excellent":return"text-signal-excellent";case"good":return"text-signal-good";case"fair":return"text-signal-fair";case"weak":return"text-signal-poor";case"poor":return"text-signal-critical";default:return"text-text-muted"}}(t),i=n(s,a);switch(t){case"excellent":return r.jsx(d,{className:i});case"good":return r.jsx(o,{className:i});case"fair":return r.jsx(c,{className:i});case"weak":return r.jsx(l,{className:i});default:return r.jsx(u,{className:i})}}const z=a.memo(function({rssi:e,snr:a,compact:t=!1,showValues:s=!0,radioConfig:i,nfPenalty:o=0}){const l=void 0!==a?function(e,a,n,r=0){const t=T(a,e,n,r);return t?function(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}(t.finalGrade):D(e)}(e,a,i,o):D(e),c={excellent:4,good:3,fair:2,weak:1,poor:0}[l];return t?r.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&r.jsx("span",{className:"text-[10px] font-mono text-text-secondary tabular-nums w-[32px] text-left",children:e}),r.jsx("div",{className:"flex items-end gap-[2px] h-3 w-[14px]",children:Array.from({length:4}).map((e,a)=>r.jsx("div",{className:n("w-[3px] rounded-[1px] transition-colors",G(ar.jsx("div",{className:n("w-[3px] rounded-[1px] transition-colors",G(ae-t);return{median:ke(t,50),p90:ke(t,90),p95:ke(t,95),p99:ke(t,99),max:t[t.length-1],min:t[0]}}function Me(e,t,s){const a=s-t;if(0===a)return"moderate";const n=(e-t)/a;return n>.66?"critical":n>.33?"severe":"moderate"}function Se({sortedTypes:a,highlightedType:n,onTypeHover:l,aggregateShares:r,hoverData:o}){const c=e.useMemo(()=>{if(!o)return null;const e=new Map;for(const t of o.items)e.set(t.key,t.value);return e},[o]),m=null!==c;return t.jsx("div",{className:"flex-shrink-0 pt-3 mt-2",children:t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-xs ml-9",onMouseLeave:()=>l(null),children:a.map(e=>{const a=i(e.typeNum),o=(null==c?void 0:c.get(e.key))??0,d=r.get(e.key)??0,u=m?o:d,h=u>1e-4,x=n===e.key,p=n&&!x||m&&o<=1e-4;return t.jsxs("div",{className:s("flex items-center gap-1.5 transition-opacity cursor-pointer hover:opacity-80",p&&"opacity-30"),onMouseEnter:()=>l(e.key),children:[t.jsx("div",{className:"shrink-0 w-3 h-3 rounded-xs",style:{backgroundColor:a}}),t.jsx("span",{className:"text-text-secondary whitespace-nowrap",children:e.label}),h&&t.jsxs("span",{className:s("tabular-nums",m?"text-text-primary":"text-text-muted"),children:[(100*u).toFixed(1),"%"]})]},e.key)})})})}const Ce='ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace';function Te({x:e,y:s,width:a,height:n,name:l,size:r,index:o,depth:c,hoveredIndex:m,onHover:d,total:u,typeNum:h}){if(1!==c)return null;const x=null!==m&&!(m===o),p=i(h),g=u>0?r/u*100:0,f=a>36&&n>20,y=a>36&&n>32;return t.jsxs("g",{onMouseEnter:e=>d(o,e),onMouseLeave:()=>d(null),style:{cursor:"default"},children:[t.jsx("rect",{x:e,y:s,width:a,height:n,fill:p,opacity:x?.4:1,stroke:"rgba(0,0,0,0.2)",strokeWidth:1,rx:3,style:{transition:"opacity 150ms ease"}}),f&&t.jsxs(t.Fragment,{children:[y&&t.jsxs("text",{x:e+4,y:s+n-4-11,textAnchor:"start",dominantBaseline:"auto",fill:"rgba(0,0,0,0.6)",fontSize:8,fontFamily:Ce,fontWeight:500,style:{pointerEvents:"none"},children:[g.toFixed(1),"%"]}),t.jsx("text",{x:e+4,y:s+n-4,textAnchor:"start",dominantBaseline:"auto",fill:"rgba(0,0,0,0.85)",fontSize:9,fontFamily:Ce,fontWeight:600,style:{pointerEvents:"none"},children:l})]})]})}function Ae({data:e,total:s,color:a,position:n,containerWidth:l}){if(!e||!n)return null;const i=(e.value/s*100).toFixed(1),r=l-n.x<184?Math.max(8,n.x-160-8):n.x+16;return t.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:r,top:Math.max(8,n.y-60)},children:t.jsxs("div",{className:"bg-tooltip-bg border border-border-subtle rounded-lg px-3 py-2 shadow-xl min-w-[140px]",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.jsx("span",{className:"w-2.5 h-2.5 rounded-sm flex-shrink-0",style:{backgroundColor:a}}),t.jsx("span",{className:"type-data-sm font-semibold text-text-primary",children:e.name})]}),t.jsxs("div",{className:"space-y-0.5 type-data-xs text-text-muted",children:[t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Count"}),t.jsx("span",{className:"text-text-primary tabular-nums font-medium",children:e.value.toLocaleString()})]}),t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Share"}),t.jsxs("span",{className:"text-text-primary tabular-nums font-medium",children:[i,"%"]})]}),t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Total"}),t.jsx("span",{className:"text-text-primary tabular-nums font-medium",children:s.toLocaleString()})]})]})]})})}function Fe({sortedTypes:s,aggregateShares:l}){var r,o,c;const[m,d]=e.useState(null),[u,h]=e.useState(null),[x,p]=e.useState(0),[g,f]=e.useState(null),y=e.useRef(null),b=e.useMemo(()=>s.reduce((e,t)=>e+t.totalCount,0),[s]),j=e.useMemo(()=>s.map((e,t)=>({name:e.label,size:e.totalCount,index:t,typeNum:e.typeNum,key:e.key})),[s]),v=e.useCallback((e,t)=>{if(d(e),t&&null!==e){const e=y.current;if(e){const s=e.getBoundingClientRect();p(s.width),h({x:t.clientX-s.left,y:t.clientY-s.top})}}else h(null)},[]),N=e.useCallback(e=>{if(f(e),e){const t=j.findIndex(t=>t.key===e);d(t>=0?t:null)}else d(null)},[j]),k=null!==m?{name:(null==(r=j[m])?void 0:r.name)??"",value:(null==(o=j[m])?void 0:o.size)??0}:null,w=null!==m?i(null==(c=j[m])?void 0:c.typeNum):"";return 0===s.length||0===b?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet type data available"})]}):t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",ref:y,children:[t.jsx(a,{width:"100%",height:"100%",children:t.jsx(n,{data:j,dataKey:"size",aspectRatio:4/3,stroke:"none",isAnimationActive:!1,content:t.jsx(Te,{x:0,y:0,width:0,height:0,name:"",size:0,index:0,depth:0,hoveredIndex:m,onHover:v,total:b,typeNum:0})})}),t.jsx(Ae,{data:k,total:b,color:w,position:u,containerWidth:x})]}),t.jsx(Se,{sortedTypes:s,highlightedType:g,onTypeHover:N,aggregateShares:l})]})}function Pe(e){return e>=1e9?`${(e/1e9).toFixed(1)} Gb`:e>=1e6?`${(e/1e6).toFixed(1)} Mb`:e>=1e3?`${(e/1e3).toFixed(1)} Kb`:`${e.toFixed(0)} B`}function Le({packets:s,mode:a,startTs:n,endTs:l,radioConfig:i,bucketCount:h}){const x=e.useMemo(()=>r(),[]),p=x.blue,g=x.red,f=x.yellow,[y,b]=e.useState(null),{trendData:j,totals:v}=e.useMemo(()=>{if(0===s.length)return{trendData:[],totals:{rxBytes:0,txBytes:0,rxAirtime:0,txAirtime:0}};const e=l-n,t=Math.min(Math.ceil(e/300),h),r=e/t,m=[];let d=0,u=0,x=0,p=0;for(const a of s){const e=a.timestamp;if(e=l)continue;const t=o(a),s=c(a,{spreadingFactor:i.sf,bandwidthHz:i.bw,codingRate:i.cr,preambleLength:i.preamble}),r={timestamp:e,rxAirtime:0,txAirtime:0,rxBytes:0,txBytes:0};a.transmitted?(r.txAirtime=s,r.txBytes=t,u+=t,p+=s):(r.rxAirtime=s,r.rxBytes=t,d+=t,x+=s),m.push(r)}m.sort((e,t)=>e.timestamp-t.timestamp);const g=new Float64Array(m.length+1),f=new Float64Array(m.length+1),y=new Float64Array(m.length+1),b=new Float64Array(m.length+1),j=new Float64Array(m.length);for(let s=0;s{let t=0,s=j.length;for(;t>>1;j[a]0?t:null,tx:s>0?s:null})}else{const t=(g[i]-g[l])/k*100,s=(f[i]-f[l])/k*100;N.push({timestamp:e,rx:t>0?t:null,tx:s>0?s:null})}}const w=2/31;let M=null;return{trendData:N.map(e=>{const t=e.rx;return null!==t&&t>0&&(M=null===M?t:w*t+(1-w)*M),{...e,rxSmooth:null!==M&&M>0?M:null}}),totals:{rxBytes:d,txBytes:u,rxAirtime:x,txAirtime:p}}},[s,n,l,h,a,i]),N=e.useMemo(()=>{if(0===j.length)return"share"===a?100:10;let e=0;for(const s of j){const t=s.rx??0,a=s.tx??0;t>e&&(e=t),a>e&&(e=a)}const t=1.1*e;return"share"===a?t<=100?100:t<=500?100*Math.ceil(t/100):t<=1e3?200*Math.ceil(t/200):t<=5e3?500*Math.ceil(t/500):t<=1e4?1e3*Math.ceil(t/1e3):5e3*Math.ceil(t/5e3):Math.max(1,Math.ceil(t))},[j,a]),k=e.useMemo(()=>{if(null!==y&&j[y]){const e=j[y],t=e.rx??0,s=e.tx??0;return"share"===a?{rx:Pe(t),tx:Pe(s),total:Pe(t+s),isHovered:!0}:{rx:`${t.toFixed(2)}%`,tx:`${s.toFixed(2)}%`,total:`${(t+s).toFixed(2)}%`,isHovered:!0}}if("share"===a)return{rx:Pe(v.rxBytes),tx:Pe(v.txBytes),total:Pe(v.rxBytes+v.txBytes),isHovered:!1};{let e=0,t=0,s=0;for(const l of j)null===l.rx&&null===l.tx||(e+=l.rx??0,t+=l.tx??0,s++);const a=s>0?e/s:0,n=s>0?t/s:0;return{rx:`${a.toFixed(2)}%`,tx:`${n.toFixed(2)}%`,total:`${(a+n).toFixed(2)}%`,isHovered:!1}}},[y,j,v,a]),w=e.useMemo(()=>{const e=l-n,t=e/3600;return[0,.25,.5,.75,1].map(s=>{const a=new Date(1e3*(n+e*s)),l=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),i=a.toLocaleDateString([],{weekday:"short"});return{pct:s,label:t>24?`${i} ${l}`:l,mobileHidden:.25===s||.75===s}})},[n,l]),M=e.useCallback(e=>{b(e)},[]);return 0===j.length?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]}):t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",children:[t.jsx("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center text-text-secondary",style:{height:20,paddingLeft:44,paddingRight:8},children:t.jsx("div",{className:"relative w-full h-full flex items-center",children:w.map((e,s)=>t.jsxs("div",{className:"absolute flex items-center gap-0.5 sm:gap-1 type-data-xs "+(e.mobileHidden?"hidden sm:flex":""),style:{left:100*e.pct+"%",transform:0===e.pct?"translateX(0)":1===e.pct?"translateX(-100%)":"translateX(-50%)"},children:[t.jsx(m,{className:"w-2.5 h-2.5 opacity-60 hidden sm:block"}),t.jsx("span",{className:"tabular-nums",children:e.label})]},s))})}),t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",style:{paddingTop:20},children:t.jsx(d,{data:j,yAxisMode:"share"===a?"share":"airtime",yMax:N,onHover:M})})]}),t.jsxs("div",{className:"flex items-center justify-between mt-1.5 sm:mt-2",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 text-xs font-mono pl-2 sm:pl-11",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("div",{className:"w-3 sm:w-4 h-0.5",style:{backgroundColor:p}}),t.jsx("span",{className:"text-text-secondary",children:"RX"})]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("div",{className:"w-3 sm:w-4 h-0.5",style:{backgroundColor:g}}),t.jsx("span",{className:"text-text-secondary",children:"TX"})]}),t.jsxs("div",{className:"hidden sm:flex items-center gap-1.5",children:[t.jsx("div",{className:"w-4 h-0.5",style:{backgroundColor:f}}),t.jsx("span",{className:"text-text-secondary",children:"Avg"})]})]}),t.jsxs("div",{className:"flex flex-wrap gap-4 sm:gap-8",children:[t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:k.rx}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"RX"})]}),t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:k.tx}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"TX"})]})]})]})]})}const $e=h;function Re({mode:s,packets:a,startTs:n,endTs:l,radioConfig:i,sortedTypes:r,aggregateShares:m,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h=.5}){const[p,g]=e.useState(null),[f,y]=e.useState(null),b=e.useMemo(()=>(l-n)/3600,[n,l]),j=e.useCallback(e=>{y(e)},[]),v=function(t,s,a,n,l){return e.useMemo(()=>{if(0===t.length||!l)return null;const e=t.filter(e=>e.timestamp>=s&&e.timestamp<=a);if(0===e.length)return null;const i=[],r=new Map;for(const t of e){const e=t.type??t.payload_type??-1,a=o(t);let m;if(m="airtime"===n?c(t,{spreadingFactor:l.sf,bandwidthHz:l.bw,codingRate:l.cr,preambleLength:l.preamble}):1,a<=0)continue;const d=Math.floor((t.timestamp-s)/300),u={timestamp:t.timestamp,airtimeMs:m,byteSize:a,packetType:e,bucketIndex:d};i.push(u),r.has(d)||r.set(d,[]),r.get(d).push(u)}if(0===i.length)return null;const m=[],d=[],u=[],h=new Map;if("share"===n)for(const[,t]of r)for(const e of t)h.set(e,e.byteSize);else for(const[,t]of r){const e=t.reduce((e,t)=>e+t.airtimeMs,0)/3e5*100;let s=0;for(const a of t)a.airtimeMs>s&&(s=a.airtimeMs);for(const a of t){const t=a.airtimeMs/s*e;h.set(a,t)}}for(const t of i){const e=h.get(t);void 0!==e&&(m.push(e),d.push(t.timestamp),u.push(t.packetType))}let x=d[0],p=d[0];for(let t=1;tp&&(p=d[t]);const g=p-x||1,f=[...m].sort((e,t)=>e-t),y=f[0],b=f[f.length-1],j=Math.floor(.05*f.length),v=Math.floor(.5*f.length),N=Math.min(Math.ceil(.95*f.length),f.length-1),k=f[j],w=f[v],M=f[N],S=new Map;for(const t of m){const e=Math.round(100*t)/100;S.set(e,(S.get(e)??0)+1)}const C=S.size,T=[...S.entries()].sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e,t])=>({value:e,count:t,percent:t/m.length*100}));let A;if("share"===n)A=200;else{const e=5,t=Math.ceil(b/e)*e;A=t<=10?10:t+e}const F=new Float32Array(2*m.length),P=new Float32Array(m.length),L=new Uint8Array(m.length),$=new Float32Array(m.length);for(let t=0;t=0?u[t]:255,$[t]=d[t]}return{points:F,rawValues:P,packetTypes:L,timestamps:$,count:m.length,minTime:x,maxTime:p,minValue:0,maxValue:A,rawMinValue:y,rawMaxValue:b,unit:"%",stats:{p5:k,p50:w,p95:M,uniqueValues:C,topValues:T}}},[t,s,a,n,l])}(a,n,l,"share"===s?"share":"airtime",i),[N,k]=e.useState(null),w=e.useCallback((e,t)=>{g(e),k(t??null)},[]),M=e.useMemo(()=>{if(null===N||!v||0===v.count)return null;const e=v.maxTime-v.minTime||1,t=v.minTime+N*e;let s;s=b>=168?75:b>=72?35:b>=24?15:b>=3?10:5;const a=60*s/2;return{start:t-a,end:t+a}},[N,v,b]),S=e.useMemo(()=>M?new Date((M.start+M.end)/2*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}):null,[M]),C=e.useMemo(()=>{if(null===p||!M)return null;const e=S??"",{start:t,end:n}=M,l=a.filter(e=>e.timestamp>=t&&e.timestamp({key:e.key,label:e.label,value:0,color:$e(e.typeNum)}))};const o=new Map,m=new Map;let d=0,u=0;for(const s of l){const e=`TYPE_${s.type??s.payload_type??-1}`;if(o.set(e,(o.get(e)??0)+1),d++,i){const t=c(s,{spreadingFactor:i.sf,bandwidthHz:i.bw,codingRate:i.cr,preambleLength:i.preamble});m.set(e,(m.get(e)??0)+t),u+=t}}const h=r.map(e=>{let t;return t="airtime"===s?u>0?(m.get(e.key)??0)/u:0:d>0?(o.get(e.key)??0)/d:0,{key:e.key,label:e.label,value:t,color:$e(e.typeNum)}});return{timestamp:(t+n)/2,timeLabel:e,items:h}},[p,M,S,a,r,s,i]);return v&&0!==v.count?t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",children:[t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",children:t.jsx(x,{scatterData:v,yAxisMode:"share"===s?"share":"airtime",onHover:w,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h,highlightedType:f,timeRangeHours:b})}),S&&t.jsx("div",{className:"absolute top-1 right-1 px-2 py-0.5 bg-bg-elevated/90 rounded text-xs text-accent-secondary font-mono pointer-events-none",children:S})]}),t.jsx(Se,{sortedTypes:r,highlightedType:f,onTypeHover:j,aggregateShares:m,hoverData:C})]}):t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]})}function De({mode:e,onChange:s}){return t.jsxs("div",{className:"toggle-group toggle-group-sm",children:[t.jsx("button",{onClick:()=>s("share"),className:"toggle-group-item "+("share"===e?"active":""),children:"Total"}),t.jsx("button",{onClick:()=>s("airtime"),className:"toggle-group-item "+("airtime"===e?"active":""),children:"Airtime"})]})}function ze({smoothing:e,onChange:s}){return t.jsxs("div",{className:"toggle-group toggle-group-sm",children:[t.jsx("button",{onClick:()=>s("stats"),className:"toggle-group-item "+("stats"===e?"active":""),title:"Statistics view (scatter plot)",children:t.jsx(fe,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("trend"),className:"toggle-group-item "+("trend"===e?"active":""),title:"Trend line chart",children:t.jsx(xe,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("ema"),className:"toggle-group-item "+("ema"===e?"active":""),title:"Stacked area (moderate smoothing)",children:t.jsx(X,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("ultra"),className:"toggle-group-item "+("ultra"===e?"active":""),title:"Stacked area (heavy smoothing)",children:t.jsx(ve,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("mosaic"),className:"toggle-group-item "+("mosaic"===e?"active":""),title:"Mosaic view (treemap)",children:t.jsx(ge,{className:"w-3.5 h-3.5"})})]})}function Be({enabled:e,onChange:s,anomalyCount:a=0,showTuning:n=!1,onTuningChange:l}){return t.jsxs("div",{className:"relative inline-flex items-center gap-1",children:[e&&l&&t.jsx("button",{onClick:()=>l(!n),className:"toggle-group toggle-group-sm "+(n?"active":""),title:n?"Hide tuning panel":"Show tuning panel",children:t.jsx("span",{className:"toggle-group-item "+(n?"active":""),children:t.jsx(ue,{className:"w-3.5 h-3.5"})})}),t.jsx("button",{onClick:()=>s(!e),className:"toggle-group toggle-group-sm "+(e?"active":""),title:e?"Hide noise floor anomalies":"Show noise floor anomalies",children:t.jsx("span",{className:"toggle-group-item "+(e?"active":""),children:t.jsx(K,{className:"w-3.5 h-3.5"})})}),a>0&&t.jsx("span",{className:"absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 rounded-full bg-accent-danger text-white text-[10px] font-bold flex items-center justify-center pointer-events-none z-10",children:a>99?"99+":a})]})}const Ee={sf:10,bw:25e4,cr:5,preamble:8};function _e(e){return f[e]??`TYPE_${e.toString(16).toUpperCase()}`}function He(e,t,s,a){const n=2*a+1;let l=0;for(let i=0;i<=a;i++)l+=e[Math.min(i,s-1)];for(let i=0;i{const e=Math.abs(s.length-w.current);if(0===e&&v.length>0)return;k.current&&clearTimeout(k.current);const t=e>100?50:500;return k.current=setTimeout(()=>{w.current=s.length,N(s)},t),()=>{k.current&&clearTimeout(k.current)}},[s,v.length]);const M=e.useMemo(()=>function(e,t){const s=new Map;for(const n of e){const e=n.type??n.payload_type??-1,a=c(n,{spreadingFactor:t.sf,bandwidthHz:t.bw,codingRate:t.cr,preambleLength:t.preamble}),l=s.get(e)??{count:0,airtime:0};s.set(e,{count:l.count+1,airtime:l.airtime+a})}const a=[];for(const[n,l]of s)a.push({typeNum:n,key:`TYPE_${n}`,label:_e(n),totalCount:l.count,totalAirtime:l.airtime});return a.sort((e,t)=>t.totalCount-e.totalCount)}(v,r),[v,r]),S=e.useMemo(()=>{if("ema"!==m&&"ultra"!==m)return 0;const e=(n-a)/l,{handleSize:t}=We(m,e,l);return t},[m,a,n,l]),C=e.useMemo(()=>function(e,t,s,a,n,l,i=0){const r=s-t,o=r/a,m=1e3*o,d=r/3600,u=t-i*o,h=s+i*o,x=a+2*i,p=[];for(let c=0;c24?t.toLocaleDateString([],{weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}):t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),counts:{},shares:{},airtimes:{},total:0,totalAirtime:0,bucketDurationMs:m};for(const a of l)s.counts[a.key]=0,s.airtimes[a.key]=0;p.push(s)}for(const g of e){const e=g.timestamp;if(e=h)continue;const t=Math.min(Math.floor((e-u)/o),x-1),s=`TYPE_${g.type??g.payload_type??-1}`;p[t].counts[s]=(p[t].counts[s]??0)+1,p[t].total++;const a=c(g,{spreadingFactor:n.sf,bandwidthHz:n.bw,codingRate:n.cr,preambleLength:n.preamble});p[t].airtimes[s]=(p[t].airtimes[s]??0)+a,p[t].totalAirtime+=a}for(const c of p)for(const e of l)c.shares[e.key]=c.total>0?c.counts[e.key]/c.total*100:0;return{buckets:p,visibleStart:i,visibleEnd:i+a}}(v,a,n,l,r,M,S),[v,a,n,l,r,M,S]),T=e.useMemo(()=>M.reduce((e,t)=>e+t.totalCount,0),[M]),A=e.useMemo(()=>M.reduce((e,t)=>e+t.totalAirtime,0),[M]),{sortedTypes:F,aggregateShares:P}=e.useMemo(()=>{const e=new Map,t="share"===o?T:A;if(t>0)for(const s of M){const a="share"===o?s.totalCount:s.totalAirtime;e.set(s.key,a/t)}return{sortedTypes:[...M].sort((t,s)=>(e.get(s.key)??0)-(e.get(t.key)??0)),aggregateShares:e}},[M,T,A,o]),L=e.useMemo(()=>function(e,t,s,a="ultra",n,l,i){var r;const{buckets:o,visibleStart:c,visibleEnd:m}=e,d=o.length,u=s.length,h=m-c;if(0===d||0===u)return[];const x=i&&void 0!==n&&void 0!==l?(l-n)/i:(null==(r=o[0])?void 0:r.bucketDurationMs)?o[0].bucketDurationMs/1e3:240,p=Array.from({length:u},()=>new Array(d).fill(0));for(let N=0;N0)for(let t=0;t0)for(let a=0;a0?p.map(e=>function(e,t){const s=e.length;if(0===s)return[];if(t<.5)return[...e];const a=Math.sqrt(12*t*t/3+1);let n=Math.floor(a);n%2==0&&n--;const l=n+2,i=(12*t*t-3*n*n-12*n-9)/(-4*n-4),r=Math.round(i),o=[r>0?n:l,r>1?n:l,r>2?n:l];let c=new Float32Array(e);const m=new Float32Array(s);for(const d of o){He(c,m,s,(d-1)/2);const e=c;c=m,m.set(e)}return Array.from(c)}(e,g)):p.map(e=>function(e,t){if(0===e.length)return[];if(t<=1)return[...e];const s=e.length,a=new Float32Array(s),n=Math.floor(t/2);let l=0,i=0;for(let r=0;r<=Math.min(n,s-1);r++)l+=e[r],i++;for(let r=0;r=0&&(l-=e[t],i--),o0){const t=1/e;for(let e=0;e360?Math.ceil(h/360):1,j=Math.ceil(h/b),v=[];for(let N=0;N0){const e=1/l;for(let t=0;ty(e),[]),R=e.useCallback(e=>j(e),[]),D=e.useCallback(e=>y(e),[]),z=e.useMemo(()=>{if(null===b||!L[b])return null;const e=L[b];return{timestamp:e.timestamp,timeLabel:e.time,items:F.map(t=>({key:t.key,label:t.label,value:e[t.key]??0,color:i(t.typeNum)}))}},[b,L,F]),B=e.useMemo(()=>({timestamps:L.map(e=>e.timestamp),series:F.map(e=>({key:e.key,label:e.label,color:i(e.typeNum),values:L.map(t=>t[e.key]??0)}))}),[L,F]);return 0===v.length?0===s.length?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]}):null:"mosaic"===m?t.jsx(Fe,{sortedTypes:F,aggregateShares:P}):"stats"===m?t.jsx(Re,{mode:o,packets:v,startTs:a,endTs:n,radioConfig:r,sortedTypes:F,aggregateShares:P,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h}):"trend"===m?t.jsx(Le,{packets:v,mode:o,startTs:a,endTs:n,radioConfig:r,bucketCount:l}):t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"analyzer-chart-height relative flex-shrink-0",children:t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",children:t.jsx(g,{timestamps:B.timestamps,series:B.series,highlightedKey:f,cursorColor:x.cursor,onHover:R,onSeriesHover:D,overlayLine:null})})}),t.jsx(Se,{sortedTypes:F,highlightedType:f,onTypeHover:$,aggregateShares:P,hoverData:z})]})}),Ie={"1x":1,"2x":2,"4x":4,"8x":8,"16x":16,"36x":36},Xe=[1,5,10,25,50,100,150];function Ye(e,t,s,a){const n=Math.PI/180,l=(a-t)*n,i=e*n,r=s*n,o=Math.sin(l)*Math.cos(r),c=Math.cos(i)*Math.sin(r)-Math.sin(i)*Math.cos(r)*Math.cos(l);return(180*Math.atan2(o,c)/Math.PI+360)%360}function Ve(e,t,s,a){const n=Math.PI/180,l=(s-e)*n,i=(a-t)*n,r=Math.sin(l/2)**2+Math.cos(e*n)*Math.cos(s*n)*Math.sin(i/2)**2;return 12742*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))}const Qe=[{min:10,label:"Excellent"},{min:7,label:"Very Good"},{min:4,label:"Good"},{min:1,label:"Fair+"},{min:-2,label:"Fair"},{min:-5,label:"Fair-"},{min:-8,label:"Poor"},{min:-11,label:"Bad"},{min:-1/0,label:"Critical"}];function Ke(e,t){return t[w(e)]||"#808080"}const Ue=e.memo(function({neighbors:s,quickNeighbors:a,localLat:n,localLon:l,onStatsChange:i}){const[r,o]=e.useState(null),[c,m]=e.useState(new Set),[d,u]=e.useState({width:0,height:0}),[h,x]=e.useState("1x"),[p,g]=e.useState(1),f=e.useRef(null),w=e.useRef({}),M=e.useRef(null),S=e.useRef(null),C=e.useRef(p);C.current=p;const T=y(),A=b(),F=j(),P=v(),L=N(),$=L?P.secondary:P.primary,R=L?.4:.15,D=L?.25:.08,z=L?P.primary:A.primary;e.useEffect(()=>{const e=S.current;if(!e)return;const t=new ResizeObserver(e=>{for(const t of e){const{width:e,height:s}=t.contentRect;e>0&&s>0&&u({width:e,height:s})}});t.observe(e);const s=e.getBoundingClientRect();return s.width>0&&s.height>0&&u({width:s.width,height:s.height}),()=>t.disconnect()},[]);const B=e.useMemo(()=>{const e=new Set;if(a)for(const t of a)e.add(t.hash);return e},[a]),E=e.useMemo(()=>{const e=new Map;if(a)for(const t of a)e.set(t.hash,{snr:t.avgSnr,rssi:t.avgRssi});return e},[a]),{processedNeighbors:_,maxDistance:H,totalNeighbors:q,zeroHopCount:O}=e.useMemo(()=>{const e=[];for(const[a,i]of Object.entries(s)){if(!i.latitude||!i.longitude||0===i.latitude||0===i.longitude)continue;if(!B.has(a))continue;const t=Ye(n,l,i.latitude,i.longitude),s=Ve(n,l,i.latitude,i.longitude),r=E.get(a);e.push({hash:a.slice(0,8),name:i.node_name||i.name||"Unknown",snr:(null==r?void 0:r.snr)??i.snr??null,rssi:(null==r?void 0:r.rssi)??i.rssi??null,bearing:t,distance:s,normalizedDistance:0,lastSeen:i.last_seen,isZeroHop:!0})}const t=1.08*(e.length>0?Math.max(...e.map(e=>e.distance)):0);return e.sort((e,t)=>(e.snr??-1/0)-(t.snr??-1/0)),{processedNeighbors:e,maxDistance:t,totalNeighbors:e.length,zeroHopCount:e.length}},[s,n,l,B,E]);e.useEffect(()=>{null==i||i({zeroHopCount:O,totalCount:q,maxDistanceKm:H})},[O,q,H]),e.useEffect(()=>{const e=Ie[h],t=C.current;f.current&&cancelAnimationFrame(f.current);const s=performance.now(),a=n=>{const l=n-s,i=Math.min(l/400,1),r=(o=i)<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2;var o;g(t+(e-t)*r),f.current=i<1?requestAnimationFrame(a):null};return f.current=requestAnimationFrame(a),()=>{f.current&&cancelAnimationFrame(f.current)}},[h]);const W=H/p,G=e.useMemo(()=>Xe.filter(e=>e<=1.1*W),[W]);e.useEffect(()=>{const e=[];for(const s of _){const t=w.current[s.hash];void 0!==t&&t!==s.lastSeen&&e.push(s.hash),w.current[s.hash]=s.lastSeen}if(0===e.length)return;queueMicrotask(()=>{m(t=>new Set([...t,...e]))});const t=setTimeout(()=>{m(t=>{const s=new Set(t);return e.forEach(e=>s.delete(e)),s})},600);return()=>clearTimeout(t)},[_]);const I=0!==n&&0!==l,X=e.useMemo(()=>{const{width:e,height:t}=d,s=e/2,a=t/2,n=Math.max(10,e/2-12),l=Math.max(10,t/2-12),i=Math.max(10,n-16),r=Math.max(10,l-16);return{width:e,height:t,centerX:s,centerY:a,maxRadiusX:i,maxRadiusY:r,labelRadiusX:n,labelRadiusY:l,cornerRadius:.2*Math.min(i,r)}},[d]),{width:Y,height:V,centerX:K,centerY:U,maxRadiusX:Z,maxRadiusY:J,labelRadiusX:ee,labelRadiusY:te,cornerRadius:se}=X,ae=e.useCallback((e,t=1)=>{const s=Z*t,a=J*t,n=Math.min(se*t,s,a),l=(e%360+360)%360,i=l*Math.PI/180,r=180*Math.atan2(a-n,s-n)/Math.PI;let o,c;if(l<=45-r||l>315+r){const e=Math.tan(i);o=Math.max(K-s+n,Math.min(K+s-n,K+a*e*(s/a))),c=U-a}else if(l>45-r&&l<=45+r)o=K+s-n+n*Math.sin(i),c=U-a+n-n*Math.cos(i);else if(l>45+r&&l<=135-r){const e=1/Math.tan(i);c=Math.max(U-a+n,Math.min(U+a-n,U-s*e*(a/s))),o=K+s}else if(l>135-r&&l<=135+r)o=K+s-n+n*Math.sin(i),c=U+a-n-n*Math.cos(i);else if(l>135+r&&l<=225-r){const e=Math.tan(i);o=Math.max(K-s+n,Math.min(K+s-n,K-a*e*(s/a))),c=U+a}else if(l>225-r&&l<=225+r)o=K-s+n+n*Math.sin(i),c=U+a-n-n*Math.cos(i);else if(l>225+r&&l<=315-r){const e=1/Math.tan(i);c=Math.max(U-a+n,Math.min(U+a-n,U-s*e*(a/s))),o=K-s}else o=K-s+n+n*Math.sin(i),c=U-a+n-n*Math.cos(i);return{x:o,y:c}},[K,U,Z,J,se]),ne=e.useCallback((e,t)=>{const s=ae(e,1);return{x:K+(s.x-K)*t,y:U+(s.y-U)*t}},[ae,K,U]),le=e.useCallback(e=>({N:{x:K,y:U-te},S:{x:K,y:U+te},E:{x:K+ee,y:U},W:{x:K-ee,y:U},NE:{x:K+ee,y:U-te},SE:{x:K+ee,y:U+te},SW:{x:K-ee,y:U+te},NW:{x:K-ee,y:U-te}}[e]),[K,U,ee,te]),ie=e.useCallback(e=>{const t=Z*e,s=J*e,a=Math.min(se*e,t,s),n=K-t,l=K+t,i=U-s,r=U+s;return[`M ${n+a} ${i}`,`L ${l-a} ${i}`,`Q ${l} ${i} ${l} ${i+a}`,`L ${l} ${r-a}`,`Q ${l} ${r} ${l-a} ${r}`,`L ${n+a} ${r}`,`Q ${n} ${r} ${n} ${r-a}`,`L ${n} ${i+a}`,`Q ${n} ${i} ${n+a} ${i}`,"Z"].join(" ")},[K,U,Z,J,se]),re=e.useCallback(e=>{o(e)},[]),oe=e.useCallback(e=>{x(e)},[]),ce=e.useCallback(e=>H<=0?0:e/H*p,[H,p]),me=e=>`${e}km`,de=e.useMemo(()=>{const e=G.map(e=>{const t=e/H*p;return{km:e,scale:t,labelY:U-J*t*.71}}).filter(e=>e.scale<=1.05&&e.scale>=.02).sort((e,t)=>t.km-e.km),t=[];for(const s of e)t.some(e=>Math.abs(e.labelY-s.labelY)<28)||t.push(s);return t},[G,H,p,U,J]),ue=d.width>0&&d.height>0;return I?0===q?t.jsxs("div",{ref:M,className:"flex flex-col items-center justify-center h-full text-text-secondary",children:[t.jsx(Q,{className:"w-8 h-8 mb-2 opacity-50"}),t.jsx("p",{children:"No nodes with location data"})]}):t.jsxs("div",{ref:M,className:"relative h-full w-full flex overflow-hidden",children:[t.jsx("div",{ref:S,className:"relative flex-1 min-w-0 h-full",children:ue&&t.jsxs("svg",{width:Y,height:V,className:"absolute inset-0 z-0",children:[t.jsxs("defs",{children:[t.jsx("style",{children:"\n @keyframes neighbor-blink-scale {\n 0%, 100% {\n transform: scale(1);\n opacity: 0;\n }\n 50% {\n transform: scale(1.3);\n opacity: 0.8;\n }\n }\n .neighbor-blink-ring {\n transform-origin: center;\n animation: neighbor-blink-scale 600ms ease-out forwards;\n }\n "}),t.jsx("clipPath",{id:"radar-clip",children:t.jsx("path",{d:ie(1)})})]}),G.map(e=>{const s=ce(e);if(s>1.05||s<.02)return null;const a=de.some(t=>t.km===e),n=K+Z*s*.71,l=U-J*s*.71;return t.jsxs("g",{children:[t.jsx("path",{d:ie(s),fill:"none",stroke:$,strokeOpacity:R,strokeWidth:1}),a&&t.jsx("text",{x:n+4,y:l-2,textAnchor:"start",dominantBaseline:"auto",className:"fill-text-secondary",fontSize:10,fontFamily:k,children:me(e)})]},`ring-${e}`)}),["N","E","S","W"].map(e=>{const s="N"===e||"S"===e,a=s?K:"E"===e?K+Z:K-Z,n=s?"N"===e?U-J:U+J:U;return t.jsx("line",{x1:K,y1:U,x2:a,y2:n,stroke:$,strokeOpacity:R,strokeWidth:1,strokeDasharray:"4 4"},e)}),["NE","SE","SW","NW"].map(e=>{const s=le(e);return t.jsx("line",{x1:K,y1:U,x2:s.x,y2:s.y,stroke:$,strokeOpacity:D,strokeWidth:1,strokeDasharray:"4 4"},`diag-${e}`)}),["N","E","S","W"].map(e=>{const s=le(e),a="E"===e?"end":"W"===e?"start":"middle",n="N"===e?"hanging":"S"===e?"auto":"middle";return t.jsx("text",{x:s.x,y:s.y,textAnchor:a,dominantBaseline:n,fill:z,fontSize:16,fontWeight:600,fontFamily:k,"aria-hidden":"true",children:e},e)}),["NE","SE","SW","NW"].map(e=>{const s=le(e),a="NE"===e||"SE"===e?"end":"start",n="NE"===e||"NW"===e?"hanging":"auto";return t.jsx("text",{x:s.x,y:s.y,textAnchor:a,dominantBaseline:n,fill:z,fontSize:16,fontWeight:600,fontFamily:k,"aria-hidden":"true",children:e},e)}),t.jsx("circle",{cx:K,cy:U,r:5,fill:F.chart6,stroke:"rgba(255,255,255,0.3)",strokeWidth:1,role:"img","aria-label":"Local node"}),t.jsx("g",{clipPath:"url(#radar-clip)",children:_.map(e=>{const s=H>0?e.distance/H*p:0;if(s>1)return null;const{x:a,y:n}=ne(e.bearing,s),l=null!==e.snr?Ke(e.snr,T):"#808080",i=(null==r?void 0:r.hash)===e.hash,o=c.has(e.hash);return t.jsxs("g",{role:"img","aria-label":`${e.name}: ${e.distance.toFixed(1)}km ${e.bearing.toFixed(0)}°`,children:[o&&t.jsx("circle",{cx:a,cy:n,r:10.5,fill:"none",stroke:"rgba(255,255,255,0.9)",strokeWidth:2,className:"neighbor-blink-ring"}),i&&t.jsx("circle",{cx:a,cy:n,r:10.5,fill:l,opacity:.3}),t.jsx("circle",{cx:a,cy:n,r:i?7:5,fill:l,stroke:"rgba(0,0,0,0.5)",strokeWidth:1,style:{cursor:"pointer",transition:"r 0.15s"},onMouseEnter:()=>re(e),onMouseLeave:()=>re(null)})]},e.hash)})})]})}),t.jsx("div",{className:"flex flex-col h-full items-stretch gap-1 py-2 pl-2 flex-shrink-0",role:"group","aria-label":"Zoom level",children:["1x","2x","4x","8x","16x","36x"].map(e=>t.jsx("button",{onClick:()=>oe(e),"aria-pressed":h===e,className:"flex flex-1 items-center justify-center px-1.5 text-xs font-medium rounded transition-colors "+(h===e?"bg-accent-primary/20 text-accent-primary":"bg-white/5 text-text-secondary hover:bg-white/10 hover:text-text-primary"),children:e},e))}),r&&t.jsxs("div",{className:"absolute bg-tooltip-bg border border-border-subtle rounded-lg px-3 py-2 text-sm pointer-events-none z-10 shadow-xl",style:{left:"50%",bottom:8,transform:"translateX(-50%)"},children:[t.jsx("div",{className:"font-medium text-text-primary",children:r.name}),t.jsx("div",{className:"text-text-secondary text-xs font-mono",children:r.hash}),null!==r.snr?t.jsx("div",{className:"flex gap-3 mt-1 text-xs",children:t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"SNR:"})," ",t.jsxs("span",{className:"tabular-nums",style:{color:Ke(r.snr,T)},children:[r.snr.toFixed(1)," dB"]}),t.jsxs("span",{className:"text-text-secondary ml-1",children:["(",(he=r.snr,(null==(xe=Qe.find(e=>he>=e.min))?void 0:xe.label)??"Critical"),")"]})]})}):t.jsx("div",{className:"text-xs text-text-secondary mt-1",children:"No SNR data"}),t.jsxs("div",{className:"flex gap-3 text-xs",children:[t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"Distance:"})," ",t.jsxs("span",{className:"tabular-nums text-text-primary",children:[r.distance.toFixed(2)," km"]})]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"Bearing:"})," ",t.jsxs("span",{className:"tabular-nums text-text-primary",children:[r.bearing.toFixed(0),"°"]})]})]})]})]}):t.jsxs("div",{ref:M,className:"flex flex-col items-center justify-center h-full text-text-secondary",children:[t.jsx(Q,{className:"w-8 h-8 mb-2 opacity-50"}),t.jsx("p",{children:"Local node coordinates not configured"}),t.jsx("p",{className:"text-xs mt-1",children:"Set latitude/longitude in config to enable"})]});var he,xe}),Ze={repeater:"var(--accent-primary)",companion:"var(--accent-tertiary)",room_server:"var(--accent-secondary)"};function Je(e){if(e.contact_type){const t=e.contact_type.toLowerCase();if("repeater"===t||"rep"===t)return"repeater";if("room server"===t||"room_server"===t||"room"===t||"server"===t)return"room_server";if("companion"===t||"client"===t||"cli"===t)return"companion"}return e.is_repeater?"repeater":"companion"}const et=e.memo(function({neighbors:s}){const a=e.useMemo(()=>{const e={repeater:0,companion:0,room_server:0};for(const a of Object.values(s)){const t=Je(a);e[t]=(e[t]||0)+1}const t=Object.values(e).reduce((e,t)=>e+t,0);return{items:[{label:"Repeaters",count:e.repeater,percent:0,color:Ze.repeater},{label:"Companions",count:e.companion,percent:0,color:Ze.companion},{label:"Room Servers",count:e.room_server,percent:0,color:Ze.room_server}].map(e=>({...e,percent:t>0?e.count/t*100:0})).filter(e=>e.count>0).sort((e,t)=>t.count-e.count),total:t}},[s]);return 0===a.total?t.jsx("div",{className:"h-full flex items-center justify-center text-text-muted type-body-sm",children:"No neighbors discovered yet"}):t.jsxs("div",{className:"h-full flex flex-col",children:[t.jsx("div",{className:"flex-1 flex flex-col justify-evenly",children:a.items.map(e=>t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-data-sm text-text-secondary",children:e.label}),t.jsxs("span",{className:"type-data-sm text-text-secondary tabular-nums",children:[e.count," ",t.jsxs("span",{className:"text-text-secondary/60",children:["(",e.percent.toFixed(0),"%)"]})]})]}),t.jsx("div",{className:"h-2.5 bg-bg-elevated overflow-hidden",children:t.jsx("div",{className:"h-full transition-all duration-500 ease-out",style:{width:`${e.percent}%`,backgroundColor:e.color,minWidth:e.count>0?"4px":"0"}})})]},e.label))}),t.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-border-subtle",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Total Nodes"}),t.jsx("span",{className:"type-data-sm text-text-primary font-medium tabular-nums",children:a.total})]})]})});function tt({children:s,minHeight:a="100%",rootMargin:n="200px 0px",keepMounted:l=!0,className:i=""}){const r=e.useRef(null),[o,c]=e.useState(!1),[m,d]=e.useState(!1);e.useEffect(()=>{const e=r.current;if(!e)return;const t=new IntersectionObserver(([e])=>{const t=e.isIntersecting;d(t),t&&c(!0)},{rootMargin:n,threshold:0});return t.observe(e),()=>{t.disconnect()}},[n]);const u=m||l&&o;return t.jsx("div",{ref:r,className:`h-full w-full ${i}`,style:{minHeight:a},children:u?s:t.jsx("div",{className:"h-full w-full flex items-center justify-center text-text-muted/50",children:t.jsx("div",{className:"animate-pulse text-xs",children:"Loading chart..."})})})}const st={excellent:"text-signal-excellent",good:"text-signal-good",fair:"text-signal-fair",poor:"text-accent-primary"},at={excellent:"bg-signal-excellent/10",good:"bg-signal-good/10",fair:"bg-signal-fair/10",poor:"bg-accent-primary/10"};function nt(){const s=M(),a=S(),[n,l]=e.useState(null),i=e.useCallback((e,t)=>{l({prefix:e,candidateHashes:t})},[]),r=e.useCallback(()=>{l(null)},[]);if(!a)return t.jsxs(J,{children:[t.jsx(le,{icon:t.jsx(Y,{}),title:"Prefix Conflicts",largeTitle:!0}),t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-center text-text-secondary",children:[t.jsx(re,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),t.jsx("p",{className:"type-data-xs",children:"No topology data available"}),t.jsx("p",{className:"type-data-xs opacity-70",children:"Run deep analysis to see stats"})]})})]});const o=(c=s.avgConfidence)>=.9?"excellent":c>=.7?"good":c>=.5?"fair":"poor";var c;const m=(d=s.collisionRate)<=10?"excellent":d<=25?"good":"poor";var d;const u="poor"===o||"poor"===m?"poor":"fair"===o||"fair"===m?"fair":"good"===o||"good"===m?"good":"excellent",h="excellent"===u||"good"===u?pe:oe;return t.jsxs(J,{className:"flex flex-col overflow-hidden",children:[t.jsx(le,{icon:t.jsx(Y,{}),title:"Prefix Conflicts",largeTitle:!0,actions:t.jsxs("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full ${at[u]}`,children:[t.jsx(h,{className:`w-3.5 h-3.5 ${st[u]}`}),t.jsx("span",{className:`type-data-xs font-medium ${st[u]}`,children:"excellent"===u?"Excellent":"good"===u?"Good":"fair"===u?"Fair":"Needs Attention"})]})}),t.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[t.jsxs("div",{className:"grid grid-cols-3 gap-1.5 sm:gap-2 py-3 sm:py-4",children:[t.jsxs("div",{className:"flex flex-col items-center cursor-help bg-white/5 radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2",title:"Total unique 2-character prefixes observed in packet paths.",children:[t.jsx(U,{value:s.totalPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums text-text-primary",priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm text-text-secondary mt-0.5 sm:mt-1",children:"Prefixes"})]}),t.jsxs("div",{className:"flex flex-col items-center cursor-help bg-white/5 radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2",title:"Prefixes that map to exactly one known node. No disambiguation needed.",children:[t.jsx(U,{value:s.unambiguousPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums text-text-primary",priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm text-text-secondary mt-0.5 sm:mt-1",children:"Unique"})]}),t.jsxs("div",{className:"flex flex-col items-center cursor-help radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2 "+(s.collisionPrefixes>0?"bg-accent-primary/15":"bg-white/5"),title:"Prefixes matching multiple known nodes. Click a prefix below to explore candidates.",children:[t.jsx(U,{value:s.collisionPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums "+(s.collisionPrefixes>0?"text-accent-primary":"text-text-primary"),priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm mt-0.5 sm:mt-1 "+(s.collisionPrefixes>0?"text-accent-primary":"text-text-secondary"),children:"Conflicts"})]})]}),s.highCollisionPrefixes.length>0&&t.jsxs("div",{children:[t.jsx("div",{className:"type-data-xs text-text-secondary mb-1.5",children:"Problem Prefixes"}),t.jsx("div",{className:"flex flex-wrap gap-1.5 content-start",children:s.highCollisionPrefixes.map(({prefix:e,candidateCount:s,candidateHashes:a})=>t.jsxs("button",{type:"button",onClick:()=>i(e,a),className:"inline-flex items-center gap-0.5 group",title:`${s} candidates - click to explore`,children:[t.jsx(ae,{children:e}),t.jsxs("span",{className:"text-text-muted type-data-xs group-hover:text-text-secondary transition-colors",children:["×",s]})]},e))})]}),0===s.lowConfidencePrefixes.length&&0===s.collisionPrefixes&&t.jsx("div",{className:"flex-1 flex items-center",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pe,{className:"w-3.5 h-3.5 text-signal-excellent"}),t.jsx("span",{className:"type-data-xs text-signal-excellent",children:"All prefixes uniquely identified"})]})}),t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-auto pt-3",children:[t.jsxs("div",{className:"flex items-center gap-2 cursor-help",title:"Average confidence score across all disambiguated prefixes. Higher = more certain node identification.",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Confidence"}),t.jsxs("span",{className:`data-box ${st[o]}`,children:[(100*s.avgConfidence).toFixed(1),"%"]})]}),t.jsxs("div",{className:"flex items-center gap-2 cursor-help",title:"Percentage of 2-character prefixes that match multiple known nodes. Lower is better.",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Collisions"}),t.jsxs("span",{className:`data-box ${st[m]}`,children:[s.collisionRate.toFixed(1),"%"]})]})]})]}),t.jsx(ne,{isOpen:!!n,prefix:(null==n?void 0:n.prefix)||"",candidateHashes:(null==n?void 0:n.candidateHashes)||[],onClose:r})]})}function lt({icon:e,label:s,value:a,sublabel:n,highlight:l,tooltip:i}){return t.jsxs("div",{className:"flex items-center justify-between gap-2 py-1.5 "+(i?"cursor-help":""),title:i,children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 min-w-0",children:[t.jsx("span",{className:"icon-xs text-icon-widget flex-shrink-0",children:e}),t.jsx("span",{className:"type-body-sm text-text-secondary truncate",children:s})]}),t.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5 flex-shrink-0",children:[t.jsx("span",{className:"data-box",style:l?{"--data-box-color":"var(--accent-primary)"}:void 0,children:a}),n&&t.jsx("span",{className:"type-data-xs text-text-secondary hidden sm:inline",children:n})]})]})}function it(){const e=C(),s=T().length;if(!e||0===e.totalPaths)return null;const{totalPaths:a,pathsWithGhosts:n,observationOverrideCount:l,tracePacketsProcessed:i,pathPacketsProcessed:r,distantEdgesDiscovered:o,duplicateGroupsFound:c,duplicatePathsUnique:m,echolocationEdgesInferred:d}=e,u=a>0?((a-n)/a*100).toFixed(1):"0",h=a>0?(l/a*100).toFixed(1):"0",x=i+r,p=x>0||o>0,g=c>0||d>0;return t.jsxs(J,{children:[t.jsx(le,{title:"Path Decoder",icon:t.jsx(V,{}),largeTitle:!0,badge:s>0?`${s} hidden`:void 0}),t.jsxs(ie,{children:[t.jsxs("div",{children:[t.jsx(lt,{icon:t.jsx(ye,{className:"w-3.5 h-3.5"}),label:"Traceable",value:`${u}%`,sublabel:`of ${a.toLocaleString()} paths`,tooltip:"Percentage of packet journeys where every hop was identified. Higher = better visibility into how traffic flows through your mesh."}),t.jsx(lt,{icon:t.jsx(je,{className:"w-3.5 h-3.5"}),label:"Learning Rate",value:`${h}%`,sublabel:"adapted",tooltip:"How often real traffic patterns improved our predictions over geography alone. Higher values mean the decoder is learning your mesh's actual behavior — which routes are preferred, which nodes are most active."})]}),p&&t.jsxs("div",{className:"mt-3",children:[t.jsx("p",{className:"type-micro mb-2",children:"Beyond Line-of-Sight"}),t.jsxs("div",{children:[t.jsx(lt,{icon:t.jsx(be,{className:"w-3.5 h-3.5"}),label:"Route Reports",value:x.toLocaleString(),sublabel:i>0?`(${i} TRACE)`:void 0,tooltip:"TRACE/PATH packets from distant nodes share their routing tables. This reveals connections we can't directly observe — mapping parts of the mesh we don't touch."}),t.jsx(lt,{icon:t.jsx(ce,{className:"w-3.5 h-3.5"}),label:"Remote Links",value:o.toLocaleString(),highlight:o>0,tooltip:"Node-to-node connections discovered from route reports. These links exist outside our RF range but help complete the topology picture."})]})]}),g&&t.jsx(lt,{icon:t.jsx(A,{className:"w-3.5 h-3.5"}),label:"Multi-Path Packets",value:c.toLocaleString(),sublabel:m>0?`(${m} routes)`:void 0,tooltip:"Packets received via multiple paths simultaneously. Like sonar, these 'echoes' reveal redundant routes — important for understanding mesh resilience."}),s>0&&t.jsx(lt,{icon:t.jsx(F,{className:"w-3.5 h-3.5 text-accent-primary"}),label:"Ghost Repeaters",value:s,highlight:!0,tooltip:"High-confidence hidden repeaters: appear in 10+ paths, have 2+ known neighbors, ≥30% confidence, and plausible location. View them on the Contacts map."})]})]})}function rt(){var s,a,n,l,i,r,o,c,m,d,u,h,x,p,g,f,y;const b=P(),j=L(),v=$(),N=R(),k=D(),w=z(),M=B(),S=E(),[C,T]=e.useState([]),[A,F]=e.useState(null),[Y,V]=e.useState(null),[K,U]=e.useState(!0),[ae,ne]=e.useState(null),[ie,re]=e.useState(()=>{const e=localStorage.getItem("statistics-view-mode");return"share"===e||"airtime"===e?e:"airtime"});e.useEffect(()=>{localStorage.setItem("statistics-view-mode",ie)},[ie]);const[oe,ce]=e.useState(()=>{const e=localStorage.getItem("statistics-smoothing-mode");return["ema","ultra","mosaic","stats","trend"].includes(e)?e:"stats"});e.useEffect(()=>{localStorage.setItem("statistics-smoothing-mode",oe)},[oe]);const[ue,xe]=e.useState(!1),[pe,ge]=e.useState(!1),[fe,ye]=e.useState(Ne),[be,je]=e.useState(.5),ve=e.useMemo(()=>({0:0,1:0,2:1,3:2,4:3,5:4,6:5,7:6}[M]??3),[M]),Se=_[ve].hours,Ce=60*Se,Te=_[ve],Ae=q(Se),Fe=w.isBackgroundLoading,Pe=e.useCallback(e=>{S({0:1,1:2,2:3,3:4,4:5,5:6,6:7}[e]??4)},[S]),Le=e.useMemo(()=>{var e;if(!(null==(e=null==b?void 0:b.config)?void 0:e.radio))return null;const t=b.config.radio;return{sf:t.spreading_factor??10,bw:t.bandwidth??25e4,cr:t.coding_rate??5,preamble:t.preamble_length??8}},[null==(a=null==(s=null==b?void 0:b.config)?void 0:s.radio)?void 0:a.spreading_factor,null==(l=null==(n=null==b?void 0:b.config)?void 0:n.radio)?void 0:l.bandwidth,null==(r=null==(i=null==b?void 0:b.config)?void 0:i.radio)?void 0:r.coding_rate,null==(c=null==(o=null==b?void 0:b.config)?void 0:o.radio)?void 0:c.preamble_length]);e.useEffect(()=>{!async function(){var e;ne(null);try{const t=await H(Se);t.success&&(null==(e=t.data)?void 0:e.history)&&T(t.data.history)}catch(t){ne(t instanceof Error?t.message:"Failed to load chart data")}finally{U(!1)}}()},[Se]);const $e=e.useMemo(()=>72===Se?6e5:168===Se?18e5:336===Se?36e5:3e5,[Se]),Re=e.useCallback(async()=>{var e;try{const t=await H(Se);t.success&&(null==(e=t.data)?void 0:e.history)&&T(t.data.history)}catch{}},[Se]);I(Re,$e,!0,!0);const Ee=e.useMemo(()=>0===C.length?{timestamps:[],values:[]}:{timestamps:C.map(e=>e.timestamp),values:C.map(e=>e.noise_floor_dbm)},[C]),_e=e.useMemo(()=>{if(C.length<10)return{anomalies:[],debug:void 0};const e=function(e,t={}){const s={...Ne,...t};if(e.length<10)return{anomalies:[],thresholds:we([]),totalSamples:e.length,anomalySamples:0};const a=e.map(e=>e.noise_floor_dbm),n=we(a),l=[...a].sort((e,t)=>e-t);let i,r;s.useAbsoluteThresholds?(i=s.baselineDbm,r=s.spikeDbm):(i=ke(l,s.baselinePercentile),r=ke(l,s.spikePercentile));const o=[...e].sort((e,t)=>e.timestamp-t.timestamp),c=[];let m=null,d=0;for(const u of o)if(u.noise_floor_dbm>i&&u.noise_floor_dbme+t,0)/m.values.length):(m.values.length>=s.minSequenceLength&&c.push(m),m={startTs:u.timestamp,endTs:u.timestamp,values:[u.noise_floor_dbm],timestamps:[u.timestamp],rollingAvg:u.noise_floor_dbm})}else m={startTs:u.timestamp,endTs:u.timestamp,values:[u.noise_floor_dbm],timestamps:[u.timestamp],rollingAvg:u.noise_floor_dbm};else m&&m.values.length>=s.minSequenceLength&&c.push(m),m=null;return m&&m.values.length>=s.minSequenceLength&&c.push(m),0===c.length?{anomalies:[],thresholds:n,totalSamples:e.length,anomalySamples:d,debug:{baselineCutoff:i,spikeCutoff:r,midBandSamples:d}}:{anomalies:c.map(e=>{const t=Math.max(...e.values),s=e.values.reduce((e,t)=>e+t,0)/e.values.length;return{startTs:e.startTs,endTs:e.endTs,peakValue:t,avgValue:s,severity:Me(s,i,r),sampleCount:e.values.length}}),thresholds:n,totalSamples:e.length,anomalySamples:d,debug:{baselineCutoff:i,spikeCutoff:r,midBandSamples:d}}}(C,fe);return{anomalies:e.anomalies,debug:e.debug}},[C,fe]),He=_e.anomalies,qe=e.useMemo(()=>{const e=(null==b?void 0:b.neighbors)??{};return Object.fromEntries(Object.entries(e).filter(([e])=>!j.has(e)))},[null==b?void 0:b.neighbors,j]),Oe=e.useMemo(()=>{const e=Date.now()/1e3-3600*Se;return Object.fromEntries(Object.entries(qe).filter(([,t])=>t.last_seen>=e))},[qe,Se]),We=e.useMemo(()=>{const e=60*Ce/Ae,t=Math.floor(Date.now()/1e3),s=Math.floor(t/e)*e;return{start:s-60*Ce,end:s}},[Ce,Ae]);return t.jsxs(ee,{children:[t.jsx(te,{title:"Statistics",icon:t.jsx(O,{}),controls:t.jsx(Z,{ranges:_,selectedIndex:ve,onSelect:Pe,isPending:Fe})}),ae&&t.jsx(J,{className:"border border-accent-red/50 bg-accent-red/10",children:t.jsx("p",{className:"text-accent-red",children:ae})}),ue&&pe&&t.jsxs(J,{className:"border border-accent-purple/30 bg-glass-surface/50",children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"type-label",children:"Anomaly Detection Tuning"}),t.jsxs("span",{className:"type-data-xs text-text-muted",children:["(",Te.label,")"]})]}),t.jsx("button",{onClick:()=>ye(e=>({...e,useAbsoluteThresholds:!e.useAbsoluteThresholds})),className:"type-data-xs px-2 py-1 rounded transition-colors "+(fe.useAbsoluteThresholds?"bg-accent-purple/30 text-accent-purple":"bg-glass-elevated text-text-muted hover:text-text-secondary"),children:fe.useAbsoluteThresholds?"Absolute dBm":"Percentile"})]}),t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Baseline"}),t.jsxs("span",{className:"ml-2 type-data-sm text-status-warning",children:[(null==(d=null==(m=_e.debug)?void 0:m.baselineCutoff)?void 0:d.toFixed(1))??"—"," dBm"]})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Spike"}),t.jsxs("span",{className:"ml-2 type-data-sm text-status-warning",children:[(null==(h=null==(u=_e.debug)?void 0:u.spikeCutoff)?void 0:h.toFixed(1))??"—"," dBm"]})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Mid-band"}),t.jsx("span",{className:"ml-2 type-data-sm text-accent-purple",children:(null==(x=_e.debug)?void 0:x.midBandSamples)??0})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Anomalies"}),t.jsx("span",{className:"ml-2 type-data-sm text-status-danger",children:He.length})]})]}),t.jsxs("div",{className:"mt-4 pt-4 border-t border-border-subtle space-y-4",children:[fe.useAbsoluteThresholds?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Baseline (",fe.baselineDbm," dBm)"]}),t.jsx("input",{type:"range",min:"-120",max:"-60",value:fe.baselineDbm,onChange:e=>ye(t=>({...t,baselineDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Spike (",fe.spikeDbm," dBm)"]}),t.jsx("input",{type:"range",min:"-100",max:"-20",value:fe.spikeDbm,onChange:e=>ye(t=>({...t,spikeDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Merge Gap (",fe.mergeGapSeconds,"s)"]}),t.jsx("input",{type:"range",min:"5",max:"120",step:"5",value:fe.mergeGapSeconds,onChange:e=>ye(t=>({...t,mergeGapSeconds:Number(e.target.value)})),className:"w-full accent-accent-purple"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Min Sequence (",fe.minSequenceLength,")"]}),t.jsx("input",{type:"range",min:"2",max:"20",value:fe.minSequenceLength,onChange:e=>ye(t=>({...t,minSequenceLength:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Similarity (±",fe.similarityToleranceDbm," dBm)"]}),t.jsx("input",{type:"range",min:"1",max:"15",value:fe.similarityToleranceDbm,onChange:e=>ye(t=>({...t,similarityToleranceDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Opacity (",Math.round(100*be),"%)"]}),t.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:be,onChange:e=>je(Number(e.target.value)),className:"w-full accent-accent-purple"})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Baseline (P",fe.baselinePercentile,")"]}),t.jsx("input",{type:"range",min:"1",max:"50",value:fe.baselinePercentile,onChange:e=>ye(t=>({...t,baselinePercentile:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Spike (P",fe.spikePercentile,")"]}),t.jsx("input",{type:"range",min:"50",max:"99",value:fe.spikePercentile,onChange:e=>ye(t=>({...t,spikePercentile:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Merge Gap (",fe.mergeGapSeconds,"s)"]}),t.jsx("input",{type:"range",min:"5",max:"120",step:"5",value:fe.mergeGapSeconds,onChange:e=>ye(t=>({...t,mergeGapSeconds:Number(e.target.value)})),className:"w-full accent-accent-purple"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Min Sequence (",fe.minSequenceLength,")"]}),t.jsx("input",{type:"range",min:"2",max:"20",value:fe.minSequenceLength,onChange:e=>ye(t=>({...t,minSequenceLength:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Similarity (±",fe.similarityToleranceDbm," dBm)"]}),t.jsx("input",{type:"range",min:"1",max:"15",value:fe.similarityToleranceDbm,onChange:e=>ye(t=>({...t,similarityToleranceDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Opacity (",Math.round(100*be),"%)"]}),t.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:be,onChange:e=>je(Number(e.target.value)),className:"w-full accent-accent-purple"})]})]})]}),t.jsxs("div",{className:"mt-4 p-3 bg-glass-elevated radius-inner",children:[t.jsx("div",{className:"type-micro mb-1",children:"Config output"}),t.jsxs("div",{className:"type-data-sm text-status-success",children:[fe.useAbsoluteThresholds?`useAbsoluteThresholds: true, baselineDbm: ${fe.baselineDbm}, spikeDbm: ${fe.spikeDbm}`:`useAbsoluteThresholds: false, baselinePercentile: ${fe.baselinePercentile}, spikePercentile: ${fe.spikePercentile}`,", mergeGapSeconds: ",fe.mergeGapSeconds,", minSequenceLength: ",fe.minSequenceLength,", similarityToleranceDbm: ",fe.similarityToleranceDbm]})]})]})]}),t.jsxs(se,{children:[Fe&&t.jsx(me,{template:"auto",children:t.jsx(J,{className:"border border-accent-primary/30 bg-accent-primary/5",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("div",{className:"relative flex h-3 w-3",children:[t.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-primary opacity-75"}),t.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-accent-primary"})]}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("p",{className:"type-body-sm text-text-primary",children:["Loading ",Te.label," data..."]}),w.loadProgress&&t.jsxs("p",{className:"type-data-xs text-text-muted mt-0.5",children:[w.loadProgress.loaded.toLocaleString()," packets (",w.loadProgress.percent,"%)"]})]})]})})}),K?t.jsx(me,{template:"auto",children:t.jsx(J,{className:"text-center py-12",children:t.jsx("div",{className:"animate-pulse text-text-muted",children:"Loading statistics..."})})}):t.jsxs(t.Fragment,{children:[t.jsx(me,{template:"hero-auto",children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(X,{}),title:"Packet Analyzer",badge:Te.label,largeTitle:!0,stackActionsOnMobile:!0,actions:t.jsxs("div",{className:"flex flex-wrap items-center gap-2 justify-end",children:["stats"===oe&&t.jsx(Be,{enabled:ue,onChange:xe,anomalyCount:He.length,showTuning:pe,onTuningChange:ge}),t.jsx(ze,{smoothing:oe,onChange:ce}),t.jsx(De,{mode:ie,onChange:re})]})}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(Ge,{packets:N,startTs:We.start,endTs:We.end,bucketCount:Ae,radioConfig:Le??void 0,mode:ie,smoothing:oe,noiseFloorAnomalies:He,showNoiseFloorOverlay:ue,overlayOpacity:be})})]})})}),t.jsxs(me,{template:"panel",children:[t.jsx(de,{span:12,md:6,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(Q,{}),title:"Link Quality",badge:Te.label,largeTitle:!0,actions:Y?t.jsxs("div",{className:"flex items-center gap-3 type-data-xs text-text-muted",children:[t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.zeroHopCount})," nbr"]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.totalCount})," obs"]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.maxDistanceKm.toFixed(0)})," km"]})]}):null}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(Ue,{neighbors:Oe,quickNeighbors:v,localLat:(null==(g=null==(p=null==b?void 0:b.config)?void 0:p.repeater)?void 0:g.latitude)??0,localLon:(null==(y=null==(f=null==b?void 0:b.config)?void 0:f.repeater)?void 0:y.longitude)??0,onStatsChange:V})})})]})})}),t.jsx(de,{span:12,md:6,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(he,{}),title:"Network Composition",badge:Te.label,largeTitle:!0}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(et,{neighbors:Oe})})})]})})})]}),t.jsxs(me,{template:"panel",children:[t.jsx(de,{span:12,md:6,children:t.jsx(nt,{})}),t.jsx(de,{span:12,md:6,children:t.jsx(it,{})})]}),t.jsx(me,{template:"panel",children:t.jsx(de,{span:12,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(W,{}),title:"RF Noise Floor",largeTitle:!0,stackActionsOnMobile:!0,actions:A?t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["min ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.min.toFixed(0)})]}),t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["avg ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.avg.toFixed(0)})]}),t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["max ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.max.toFixed(0)})]}),t.jsx("span",{className:"type-data-xs text-text-muted",children:"dBm"})]}):t.jsx("span",{className:"type-data-xs text-text-muted",children:"dBm"})}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(G,{timestamps:Ee.timestamps,values:Ee.values,onStatsChange:F})})})]})})})})]})]})]})}export{rt as default}; +import{r as e,j as t,c as s,R as a,T as n}from"./vendor-react-BKIq8k5U.js";import{c as l,b as i,aE as r,aF as o,aG as c,ad as m,aH as d,B as u,aI as h,aJ as x,u as p,aK as g,V as f,aL as y,aM as b,aN as j,aO as v,aP as N,aQ as k,ah as w,aR as M,aS as S,as as C,aT as T,aU as A,at as F,j as P,n as L,k as $,e as R,aA as D,N as z,o as B,F as E,aV as _,p as H,aW as q,Q as O,R as W,aX as G}from"./index-CrU_Ps9k.js";import{u as I}from"./usePolling-_rZ6EKji.js";import{L as X,H as Y,R as V}from"./route-BsYhRSod.js";import{C as Q}from"./compass-88H432HX.js";import{E as K,A as U,T as Z}from"./TimeRangeSelector-BzCEWjlJ.js";import{a as J,P as ee,b as te,B as se}from"./PageLayout-BlXA3E6H.js";import{D as ae}from"./DataBox-sJHphnZd.js";import{C as ne}from"./CollisionExplorerModal-Bgt7baHs.js";import{C as le,a as ie}from"./Card-Cq7dyTi6.js";import{I as re}from"./info-KKRXPMHC.js";import{T as oe}from"./triangle-alert-DrmOKr32.js";import{G as ce}from"./git-branch-CkXjQHb9.js";import{R as me,C as de}from"./Grid-BkE6UU8f.js";import{S as ue}from"./settings-2-D7yA0852.js";import{N as he}from"./network-BfZEswvU.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";import"./index-n30bZfID.js";import"./BasemapLayer-BldfARb5.js";import"./maplibre-gl-Bk5DsYkB.js";import"./map-pin-BUNSWVCM.js";const xe=l("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),pe=l("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),ge=l("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),fe=l("grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]),ye=l("id-card",[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]),be=l("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]),je=l("sparkle",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}]]),ve=l("waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]),Ne={useAbsoluteThresholds:!0,baselinePercentile:6,spikePercentile:50,baselineDbm:-107,spikeDbm:-100,mergeGapSeconds:45,minSequenceLength:16,similarityToleranceDbm:5};function ke(e,t){if(0===e.length)return 0;const s=t/100*(e.length-1),a=Math.floor(s),n=Math.ceil(s);return a===n?e[a]:e[a]+(e[n]-e[a])*(s-a)}function we(e){if(0===e.length)return{median:0,p90:0,p95:0,p99:0,max:0,min:0};const t=[...e].sort((e,t)=>e-t);return{median:ke(t,50),p90:ke(t,90),p95:ke(t,95),p99:ke(t,99),max:t[t.length-1],min:t[0]}}function Me(e,t,s){const a=s-t;if(0===a)return"moderate";const n=(e-t)/a;return n>.66?"critical":n>.33?"severe":"moderate"}function Se({sortedTypes:a,highlightedType:n,onTypeHover:l,aggregateShares:r,hoverData:o}){const c=e.useMemo(()=>{if(!o)return null;const e=new Map;for(const t of o.items)e.set(t.key,t.value);return e},[o]),m=null!==c;return t.jsx("div",{className:"flex-shrink-0 pt-3 mt-2",children:t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-xs ml-9",onMouseLeave:()=>l(null),children:a.map(e=>{const a=i(e.typeNum),o=(null==c?void 0:c.get(e.key))??0,d=r.get(e.key)??0,u=m?o:d,h=u>1e-4,x=n===e.key,p=n&&!x||m&&o<=1e-4;return t.jsxs("div",{className:s("flex items-center gap-1.5 transition-opacity cursor-pointer hover:opacity-80",p&&"opacity-30"),onMouseEnter:()=>l(e.key),children:[t.jsx("div",{className:"shrink-0 w-3 h-3 rounded-xs",style:{backgroundColor:a}}),t.jsx("span",{className:"text-text-secondary whitespace-nowrap",children:e.label}),h&&t.jsxs("span",{className:s("tabular-nums",m?"text-text-primary":"text-text-muted"),children:[(100*u).toFixed(1),"%"]})]},e.key)})})})}const Ce='ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace';function Te({x:e,y:s,width:a,height:n,name:l,size:r,index:o,depth:c,hoveredIndex:m,onHover:d,total:u,typeNum:h}){if(1!==c)return null;const x=null!==m&&!(m===o),p=i(h),g=u>0?r/u*100:0,f=a>36&&n>20,y=a>36&&n>32;return t.jsxs("g",{onMouseEnter:e=>d(o,e),onMouseLeave:()=>d(null),style:{cursor:"default"},children:[t.jsx("rect",{x:e,y:s,width:a,height:n,fill:p,opacity:x?.4:1,stroke:"rgba(0,0,0,0.2)",strokeWidth:1,rx:3,style:{transition:"opacity 150ms ease"}}),f&&t.jsxs(t.Fragment,{children:[y&&t.jsxs("text",{x:e+4,y:s+n-4-11,textAnchor:"start",dominantBaseline:"auto",fill:"rgba(0,0,0,0.6)",fontSize:8,fontFamily:Ce,fontWeight:500,style:{pointerEvents:"none"},children:[g.toFixed(1),"%"]}),t.jsx("text",{x:e+4,y:s+n-4,textAnchor:"start",dominantBaseline:"auto",fill:"rgba(0,0,0,0.85)",fontSize:9,fontFamily:Ce,fontWeight:600,style:{pointerEvents:"none"},children:l})]})]})}function Ae({data:e,total:s,color:a,position:n,containerWidth:l}){if(!e||!n)return null;const i=(e.value/s*100).toFixed(1),r=l-n.x<184?Math.max(8,n.x-160-8):n.x+16;return t.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:r,top:Math.max(8,n.y-60)},children:t.jsxs("div",{className:"bg-tooltip-bg border border-border-subtle rounded-lg px-3 py-2 shadow-xl min-w-[140px]",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.jsx("span",{className:"w-2.5 h-2.5 rounded-sm flex-shrink-0",style:{backgroundColor:a}}),t.jsx("span",{className:"type-data-sm font-semibold text-text-primary",children:e.name})]}),t.jsxs("div",{className:"space-y-0.5 type-data-xs text-text-muted",children:[t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Count"}),t.jsx("span",{className:"text-text-primary tabular-nums font-medium",children:e.value.toLocaleString()})]}),t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Share"}),t.jsxs("span",{className:"text-text-primary tabular-nums font-medium",children:[i,"%"]})]}),t.jsxs("div",{className:"flex justify-between gap-4",children:[t.jsx("span",{children:"Total"}),t.jsx("span",{className:"text-text-primary tabular-nums font-medium",children:s.toLocaleString()})]})]})]})})}function Fe({sortedTypes:s,aggregateShares:l}){var r,o,c;const[m,d]=e.useState(null),[u,h]=e.useState(null),[x,p]=e.useState(0),[g,f]=e.useState(null),y=e.useRef(null),b=e.useMemo(()=>s.reduce((e,t)=>e+t.totalCount,0),[s]),j=e.useMemo(()=>s.map((e,t)=>({name:e.label,size:e.totalCount,index:t,typeNum:e.typeNum,key:e.key})),[s]),v=e.useCallback((e,t)=>{if(d(e),t&&null!==e){const e=y.current;if(e){const s=e.getBoundingClientRect();p(s.width),h({x:t.clientX-s.left,y:t.clientY-s.top})}}else h(null)},[]),N=e.useCallback(e=>{if(f(e),e){const t=j.findIndex(t=>t.key===e);d(t>=0?t:null)}else d(null)},[j]),k=null!==m?{name:(null==(r=j[m])?void 0:r.name)??"",value:(null==(o=j[m])?void 0:o.size)??0}:null,w=null!==m?i(null==(c=j[m])?void 0:c.typeNum):"";return 0===s.length||0===b?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet type data available"})]}):t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",ref:y,children:[t.jsx(a,{width:"100%",height:"100%",children:t.jsx(n,{data:j,dataKey:"size",aspectRatio:4/3,stroke:"none",isAnimationActive:!1,content:t.jsx(Te,{x:0,y:0,width:0,height:0,name:"",size:0,index:0,depth:0,hoveredIndex:m,onHover:v,total:b,typeNum:0})})}),t.jsx(Ae,{data:k,total:b,color:w,position:u,containerWidth:x})]}),t.jsx(Se,{sortedTypes:s,highlightedType:g,onTypeHover:N,aggregateShares:l})]})}function Pe(e){return e>=1e9?`${(e/1e9).toFixed(1)} Gb`:e>=1e6?`${(e/1e6).toFixed(1)} Mb`:e>=1e3?`${(e/1e3).toFixed(1)} Kb`:`${e.toFixed(0)} B`}function Le({packets:s,mode:a,startTs:n,endTs:l,radioConfig:i,bucketCount:h}){const x=e.useMemo(()=>r(),[]),p=x.blue,g=x.red,f=x.yellow,[y,b]=e.useState(null),{trendData:j,totals:v}=e.useMemo(()=>{if(0===s.length)return{trendData:[],totals:{rxBytes:0,txBytes:0,rxAirtime:0,txAirtime:0}};const e=l-n,t=Math.min(Math.ceil(e/300),h),r=e/t,m=[];let d=0,u=0,x=0,p=0;for(const a of s){const e=a.timestamp;if(e=l)continue;const t=o(a),s=c(a,{spreadingFactor:i.sf,bandwidthHz:i.bw,codingRate:i.cr,preambleLength:i.preamble}),r={timestamp:e,rxAirtime:0,txAirtime:0,rxBytes:0,txBytes:0};a.transmitted?(r.txAirtime=s,r.txBytes=t,u+=t,p+=s):(r.rxAirtime=s,r.rxBytes=t,d+=t,x+=s),m.push(r)}m.sort((e,t)=>e.timestamp-t.timestamp);const g=new Float64Array(m.length+1),f=new Float64Array(m.length+1),y=new Float64Array(m.length+1),b=new Float64Array(m.length+1),j=new Float64Array(m.length);for(let s=0;s{let t=0,s=j.length;for(;t>>1;j[a]0?t:null,tx:s>0?s:null})}else{const t=(g[i]-g[l])/k*100,s=(f[i]-f[l])/k*100;N.push({timestamp:e,rx:t>0?t:null,tx:s>0?s:null})}}const w=2/31;let M=null;return{trendData:N.map(e=>{const t=e.rx;return null!==t&&t>0&&(M=null===M?t:w*t+(1-w)*M),{...e,rxSmooth:null!==M&&M>0?M:null}}),totals:{rxBytes:d,txBytes:u,rxAirtime:x,txAirtime:p}}},[s,n,l,h,a,i]),N=e.useMemo(()=>{if(0===j.length)return"share"===a?100:10;let e=0;for(const s of j){const t=s.rx??0,a=s.tx??0;t>e&&(e=t),a>e&&(e=a)}const t=1.1*e;return"share"===a?t<=100?100:t<=500?100*Math.ceil(t/100):t<=1e3?200*Math.ceil(t/200):t<=5e3?500*Math.ceil(t/500):t<=1e4?1e3*Math.ceil(t/1e3):5e3*Math.ceil(t/5e3):Math.max(1,Math.ceil(t))},[j,a]),k=e.useMemo(()=>{if(null!==y&&j[y]){const e=j[y],t=e.rx??0,s=e.tx??0;return"share"===a?{rx:Pe(t),tx:Pe(s),total:Pe(t+s),isHovered:!0}:{rx:`${t.toFixed(2)}%`,tx:`${s.toFixed(2)}%`,total:`${(t+s).toFixed(2)}%`,isHovered:!0}}if("share"===a)return{rx:Pe(v.rxBytes),tx:Pe(v.txBytes),total:Pe(v.rxBytes+v.txBytes),isHovered:!1};{let e=0,t=0,s=0;for(const l of j)null===l.rx&&null===l.tx||(e+=l.rx??0,t+=l.tx??0,s++);const a=s>0?e/s:0,n=s>0?t/s:0;return{rx:`${a.toFixed(2)}%`,tx:`${n.toFixed(2)}%`,total:`${(a+n).toFixed(2)}%`,isHovered:!1}}},[y,j,v,a]),w=e.useMemo(()=>{const e=l-n,t=e/3600;return[0,.25,.5,.75,1].map(s=>{const a=new Date(1e3*(n+e*s)),l=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),i=a.toLocaleDateString([],{weekday:"short"});return{pct:s,label:t>24?`${i} ${l}`:l,mobileHidden:.25===s||.75===s}})},[n,l]),M=e.useCallback(e=>{b(e)},[]);return 0===j.length?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]}):t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",children:[t.jsx("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center text-text-secondary",style:{height:20,paddingLeft:44,paddingRight:8},children:t.jsx("div",{className:"relative w-full h-full flex items-center",children:w.map((e,s)=>t.jsxs("div",{className:"absolute flex items-center gap-0.5 sm:gap-1 type-data-xs "+(e.mobileHidden?"hidden sm:flex":""),style:{left:100*e.pct+"%",transform:0===e.pct?"translateX(0)":1===e.pct?"translateX(-100%)":"translateX(-50%)"},children:[t.jsx(m,{className:"w-2.5 h-2.5 opacity-60 hidden sm:block"}),t.jsx("span",{className:"tabular-nums",children:e.label})]},s))})}),t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",style:{paddingTop:20},children:t.jsx(d,{data:j,yAxisMode:"share"===a?"share":"airtime",yMax:N,onHover:M})})]}),t.jsxs("div",{className:"flex items-center justify-between mt-1.5 sm:mt-2",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 text-xs font-mono pl-2 sm:pl-11",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("div",{className:"w-3 sm:w-4 h-0.5",style:{backgroundColor:p}}),t.jsx("span",{className:"text-text-secondary",children:"RX"})]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("div",{className:"w-3 sm:w-4 h-0.5",style:{backgroundColor:g}}),t.jsx("span",{className:"text-text-secondary",children:"TX"})]}),t.jsxs("div",{className:"hidden sm:flex items-center gap-1.5",children:[t.jsx("div",{className:"w-4 h-0.5",style:{backgroundColor:f}}),t.jsx("span",{className:"text-text-secondary",children:"Avg"})]})]}),t.jsxs("div",{className:"flex flex-wrap gap-4 sm:gap-8",children:[t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:k.rx}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"RX"})]}),t.jsxs("div",{className:"flex items-end gap-2",children:[t.jsx("div",{className:"type-data-xl text-text-primary",children:k.tx}),t.jsx(u,{color:"zinc",className:"mb-0.5 sm:mb-1",children:"TX"})]})]})]})]})}const $e=h;function Re({mode:s,packets:a,startTs:n,endTs:l,radioConfig:i,sortedTypes:r,aggregateShares:m,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h=.5}){const[p,g]=e.useState(null),[f,y]=e.useState(null),b=e.useMemo(()=>(l-n)/3600,[n,l]),j=e.useCallback(e=>{y(e)},[]),v=function(t,s,a,n,l){return e.useMemo(()=>{if(0===t.length||!l)return null;const e=t.filter(e=>e.timestamp>=s&&e.timestamp<=a);if(0===e.length)return null;const i=[],r=new Map;for(const t of e){const e=t.type??t.payload_type??-1,a=o(t);let m;if(m="airtime"===n?c(t,{spreadingFactor:l.sf,bandwidthHz:l.bw,codingRate:l.cr,preambleLength:l.preamble}):1,a<=0)continue;const d=Math.floor((t.timestamp-s)/300),u={timestamp:t.timestamp,airtimeMs:m,byteSize:a,packetType:e,bucketIndex:d};i.push(u),r.has(d)||r.set(d,[]),r.get(d).push(u)}if(0===i.length)return null;const m=[],d=[],u=[],h=new Map;if("share"===n)for(const[,t]of r)for(const e of t)h.set(e,e.byteSize);else for(const[,t]of r){const e=t.reduce((e,t)=>e+t.airtimeMs,0)/3e5*100;let s=0;for(const a of t)a.airtimeMs>s&&(s=a.airtimeMs);for(const a of t){const t=a.airtimeMs/s*e;h.set(a,t)}}for(const t of i){const e=h.get(t);void 0!==e&&(m.push(e),d.push(t.timestamp),u.push(t.packetType))}let x=d[0],p=d[0];for(let t=1;tp&&(p=d[t]);const g=p-x||1,f=[...m].sort((e,t)=>e-t),y=f[0],b=f[f.length-1],j=Math.floor(.05*f.length),v=Math.floor(.5*f.length),N=Math.min(Math.ceil(.95*f.length),f.length-1),k=f[j],w=f[v],M=f[N],S=new Map;for(const t of m){const e=Math.round(100*t)/100;S.set(e,(S.get(e)??0)+1)}const C=S.size,T=[...S.entries()].sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e,t])=>({value:e,count:t,percent:t/m.length*100}));let A;if("share"===n)A=200;else{const e=5,t=Math.ceil(b/e)*e;A=t<=10?10:t+e}const F=new Float32Array(2*m.length),P=new Float32Array(m.length),L=new Uint8Array(m.length),$=new Float32Array(m.length);for(let t=0;t=0?u[t]:255,$[t]=d[t]}return{points:F,rawValues:P,packetTypes:L,timestamps:$,count:m.length,minTime:x,maxTime:p,minValue:0,maxValue:A,rawMinValue:y,rawMaxValue:b,unit:"%",stats:{p5:k,p50:w,p95:M,uniqueValues:C,topValues:T}}},[t,s,a,n,l])}(a,n,l,"share"===s?"share":"airtime",i),[N,k]=e.useState(null),w=e.useCallback((e,t)=>{g(e),k(t??null)},[]),M=e.useMemo(()=>{if(null===N||!v||0===v.count)return null;const e=v.maxTime-v.minTime||1,t=v.minTime+N*e;let s;s=b>=168?75:b>=72?35:b>=24?15:b>=3?10:5;const a=60*s/2;return{start:t-a,end:t+a}},[N,v,b]),S=e.useMemo(()=>M?new Date((M.start+M.end)/2*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}):null,[M]),C=e.useMemo(()=>{if(null===p||!M)return null;const e=S??"",{start:t,end:n}=M,l=a.filter(e=>e.timestamp>=t&&e.timestamp({key:e.key,label:e.label,value:0,color:$e(e.typeNum)}))};const o=new Map,m=new Map;let d=0,u=0;for(const s of l){const e=`TYPE_${s.type??s.payload_type??-1}`;if(o.set(e,(o.get(e)??0)+1),d++,i){const t=c(s,{spreadingFactor:i.sf,bandwidthHz:i.bw,codingRate:i.cr,preambleLength:i.preamble});m.set(e,(m.get(e)??0)+t),u+=t}}const h=r.map(e=>{let t;return t="airtime"===s?u>0?(m.get(e.key)??0)/u:0:d>0?(o.get(e.key)??0)/d:0,{key:e.key,label:e.label,value:t,color:$e(e.typeNum)}});return{timestamp:(t+n)/2,timeLabel:e,items:h}},[p,M,S,a,r,s,i]);return v&&0!==v.count?t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"analyzer-chart-height relative flex-shrink-0",children:[t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",children:t.jsx(x,{scatterData:v,yAxisMode:"share"===s?"share":"airtime",onHover:w,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h,highlightedType:f,timeRangeHours:b})}),S&&t.jsx("div",{className:"absolute top-1 right-1 px-2 py-0.5 bg-bg-elevated/90 rounded text-xs text-accent-secondary font-mono pointer-events-none",children:S})]}),t.jsx(Se,{sortedTypes:r,highlightedType:f,onTypeHover:j,aggregateShares:m,hoverData:C})]}):t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]})}function De({mode:e,onChange:s}){return t.jsxs("div",{className:"toggle-group toggle-group-sm",children:[t.jsx("button",{onClick:()=>s("share"),className:"toggle-group-item "+("share"===e?"active":""),children:"Total"}),t.jsx("button",{onClick:()=>s("airtime"),className:"toggle-group-item "+("airtime"===e?"active":""),children:"Airtime"})]})}function ze({smoothing:e,onChange:s}){return t.jsxs("div",{className:"toggle-group toggle-group-sm",children:[t.jsx("button",{onClick:()=>s("stats"),className:"toggle-group-item "+("stats"===e?"active":""),title:"Statistics view (scatter plot)",children:t.jsx(fe,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("trend"),className:"toggle-group-item "+("trend"===e?"active":""),title:"Trend line chart",children:t.jsx(xe,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("ema"),className:"toggle-group-item "+("ema"===e?"active":""),title:"Stacked area (moderate smoothing)",children:t.jsx(X,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("ultra"),className:"toggle-group-item "+("ultra"===e?"active":""),title:"Stacked area (heavy smoothing)",children:t.jsx(ve,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>s("mosaic"),className:"toggle-group-item "+("mosaic"===e?"active":""),title:"Mosaic view (treemap)",children:t.jsx(ge,{className:"w-3.5 h-3.5"})})]})}function Be({enabled:e,onChange:s,anomalyCount:a=0,showTuning:n=!1,onTuningChange:l}){return t.jsxs("div",{className:"relative inline-flex items-center gap-1",children:[e&&l&&t.jsx("button",{onClick:()=>l(!n),className:"toggle-group toggle-group-sm "+(n?"active":""),title:n?"Hide tuning panel":"Show tuning panel",children:t.jsx("span",{className:"toggle-group-item "+(n?"active":""),children:t.jsx(ue,{className:"w-3.5 h-3.5"})})}),t.jsx("button",{onClick:()=>s(!e),className:"toggle-group toggle-group-sm "+(e?"active":""),title:e?"Hide noise floor anomalies":"Show noise floor anomalies",children:t.jsx("span",{className:"toggle-group-item "+(e?"active":""),children:t.jsx(K,{className:"w-3.5 h-3.5"})})}),a>0&&t.jsx("span",{className:"absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 rounded-full bg-accent-danger text-white text-[10px] font-bold flex items-center justify-center pointer-events-none z-10",children:a>99?"99+":a})]})}const Ee={sf:10,bw:25e4,cr:5,preamble:8};function _e(e){return f[e]??`TYPE_${e.toString(16).toUpperCase()}`}function He(e,t,s,a){const n=2*a+1;let l=0;for(let i=0;i<=a;i++)l+=e[Math.min(i,s-1)];for(let i=0;i{const e=Math.abs(s.length-w.current);if(0===e&&v.length>0)return;k.current&&clearTimeout(k.current);const t=e>100?50:500;return k.current=setTimeout(()=>{w.current=s.length,N(s)},t),()=>{k.current&&clearTimeout(k.current)}},[s,v.length]);const M=e.useMemo(()=>function(e,t){const s=new Map;for(const n of e){const e=n.type??n.payload_type??-1,a=c(n,{spreadingFactor:t.sf,bandwidthHz:t.bw,codingRate:t.cr,preambleLength:t.preamble}),l=s.get(e)??{count:0,airtime:0};s.set(e,{count:l.count+1,airtime:l.airtime+a})}const a=[];for(const[n,l]of s)a.push({typeNum:n,key:`TYPE_${n}`,label:_e(n),totalCount:l.count,totalAirtime:l.airtime});return a.sort((e,t)=>t.totalCount-e.totalCount)}(v,r),[v,r]),S=e.useMemo(()=>{if("ema"!==m&&"ultra"!==m)return 0;const e=(n-a)/l,{handleSize:t}=We(m,e,l);return t},[m,a,n,l]),C=e.useMemo(()=>function(e,t,s,a,n,l,i=0){const r=s-t,o=r/a,m=1e3*o,d=r/3600,u=t-i*o,h=s+i*o,x=a+2*i,p=[];for(let c=0;c24?t.toLocaleDateString([],{weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}):t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),counts:{},shares:{},airtimes:{},total:0,totalAirtime:0,bucketDurationMs:m};for(const a of l)s.counts[a.key]=0,s.airtimes[a.key]=0;p.push(s)}for(const g of e){const e=g.timestamp;if(e=h)continue;const t=Math.min(Math.floor((e-u)/o),x-1),s=`TYPE_${g.type??g.payload_type??-1}`;p[t].counts[s]=(p[t].counts[s]??0)+1,p[t].total++;const a=c(g,{spreadingFactor:n.sf,bandwidthHz:n.bw,codingRate:n.cr,preambleLength:n.preamble});p[t].airtimes[s]=(p[t].airtimes[s]??0)+a,p[t].totalAirtime+=a}for(const c of p)for(const e of l)c.shares[e.key]=c.total>0?c.counts[e.key]/c.total*100:0;return{buckets:p,visibleStart:i,visibleEnd:i+a}}(v,a,n,l,r,M,S),[v,a,n,l,r,M,S]),T=e.useMemo(()=>M.reduce((e,t)=>e+t.totalCount,0),[M]),A=e.useMemo(()=>M.reduce((e,t)=>e+t.totalAirtime,0),[M]),{sortedTypes:F,aggregateShares:P}=e.useMemo(()=>{const e=new Map,t="share"===o?T:A;if(t>0)for(const s of M){const a="share"===o?s.totalCount:s.totalAirtime;e.set(s.key,a/t)}return{sortedTypes:[...M].sort((t,s)=>(e.get(s.key)??0)-(e.get(t.key)??0)),aggregateShares:e}},[M,T,A,o]),L=e.useMemo(()=>function(e,t,s,a="ultra",n,l,i){var r;const{buckets:o,visibleStart:c,visibleEnd:m}=e,d=o.length,u=s.length,h=m-c;if(0===d||0===u)return[];const x=i&&void 0!==n&&void 0!==l?(l-n)/i:(null==(r=o[0])?void 0:r.bucketDurationMs)?o[0].bucketDurationMs/1e3:240,p=Array.from({length:u},()=>new Array(d).fill(0));for(let N=0;N0)for(let t=0;t0)for(let a=0;a0?p.map(e=>function(e,t){const s=e.length;if(0===s)return[];if(t<.5)return[...e];const a=Math.sqrt(12*t*t/3+1);let n=Math.floor(a);n%2==0&&n--;const l=n+2,i=(12*t*t-3*n*n-12*n-9)/(-4*n-4),r=Math.round(i),o=[r>0?n:l,r>1?n:l,r>2?n:l];let c=new Float32Array(e);const m=new Float32Array(s);for(const d of o){He(c,m,s,(d-1)/2);const e=c;c=m,m.set(e)}return Array.from(c)}(e,g)):p.map(e=>function(e,t){if(0===e.length)return[];if(t<=1)return[...e];const s=e.length,a=new Float32Array(s),n=Math.floor(t/2);let l=0,i=0;for(let r=0;r<=Math.min(n,s-1);r++)l+=e[r],i++;for(let r=0;r=0&&(l-=e[t],i--),o0){const t=1/e;for(let e=0;e360?Math.ceil(h/360):1,j=Math.ceil(h/b),v=[];for(let N=0;N0){const e=1/l;for(let t=0;ty(e),[]),R=e.useCallback(e=>j(e),[]),D=e.useCallback(e=>y(e),[]),z=e.useMemo(()=>{if(null===b||!L[b])return null;const e=L[b];return{timestamp:e.timestamp,timeLabel:e.time,items:F.map(t=>({key:t.key,label:t.label,value:e[t.key]??0,color:i(t.typeNum)}))}},[b,L,F]),B=e.useMemo(()=>({timestamps:L.map(e=>e.timestamp),series:F.map(e=>({key:e.key,label:e.label,color:i(e.typeNum),values:L.map(t=>t[e.key]??0)}))}),[L,F]);return 0===v.length?0===s.length?t.jsxs("div",{className:"h-full flex items-center justify-center text-text-muted",children:[t.jsx(X,{className:"w-6 h-6 mr-2 opacity-50"}),t.jsx("span",{children:"No packet data available"})]}):null:"mosaic"===m?t.jsx(Fe,{sortedTypes:F,aggregateShares:P}):"stats"===m?t.jsx(Re,{mode:o,packets:v,startTs:a,endTs:n,radioConfig:r,sortedTypes:F,aggregateShares:P,noiseFloorAnomalies:d,showNoiseFloorOverlay:u,overlayOpacity:h}):"trend"===m?t.jsx(Le,{packets:v,mode:o,startTs:a,endTs:n,radioConfig:r,bucketCount:l}):t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"analyzer-chart-height relative flex-shrink-0",children:t.jsx("div",{className:"absolute inset-0 rounded-lg overflow-hidden",children:t.jsx(g,{timestamps:B.timestamps,series:B.series,highlightedKey:f,cursorColor:x.cursor,onHover:R,onSeriesHover:D,overlayLine:null})})}),t.jsx(Se,{sortedTypes:F,highlightedType:f,onTypeHover:$,aggregateShares:P,hoverData:z})]})}),Ie={"1x":1,"2x":2,"4x":4,"8x":8,"16x":16,"36x":36},Xe=[1,5,10,25,50,100,150];function Ye(e,t,s,a){const n=Math.PI/180,l=(a-t)*n,i=e*n,r=s*n,o=Math.sin(l)*Math.cos(r),c=Math.cos(i)*Math.sin(r)-Math.sin(i)*Math.cos(r)*Math.cos(l);return(180*Math.atan2(o,c)/Math.PI+360)%360}function Ve(e,t,s,a){const n=Math.PI/180,l=(s-e)*n,i=(a-t)*n,r=Math.sin(l/2)**2+Math.cos(e*n)*Math.cos(s*n)*Math.sin(i/2)**2;return 12742*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))}const Qe=[{min:10,label:"Excellent"},{min:7,label:"Very Good"},{min:4,label:"Good"},{min:1,label:"Fair+"},{min:-2,label:"Fair"},{min:-5,label:"Fair-"},{min:-8,label:"Poor"},{min:-11,label:"Bad"},{min:-1/0,label:"Critical"}];function Ke(e,t){return t[w(e)]||"#808080"}const Ue=e.memo(function({neighbors:s,quickNeighbors:a,localLat:n,localLon:l,onStatsChange:i}){const[r,o]=e.useState(null),[c,m]=e.useState(new Set),[d,u]=e.useState({width:0,height:0}),[h,x]=e.useState("1x"),[p,g]=e.useState(1),f=e.useRef(null),w=e.useRef({}),M=e.useRef(null),S=e.useRef(null),C=e.useRef(p);C.current=p;const T=y(),A=b(),F=j(),P=v(),L=N(),$=L?P.secondary:P.primary,R=L?.4:.15,D=L?.25:.08,z=L?P.primary:A.primary;e.useEffect(()=>{const e=S.current;if(!e)return;const t=new ResizeObserver(e=>{for(const t of e){const{width:e,height:s}=t.contentRect;e>0&&s>0&&u({width:e,height:s})}});t.observe(e);const s=e.getBoundingClientRect();return s.width>0&&s.height>0&&u({width:s.width,height:s.height}),()=>t.disconnect()},[]);const B=e.useMemo(()=>{const e=new Set;if(a)for(const t of a)e.add(t.hash);return e},[a]),E=e.useMemo(()=>{const e=new Map;if(a)for(const t of a)e.set(t.hash,{snr:t.avgSnr,rssi:t.avgRssi});return e},[a]),{processedNeighbors:_,maxDistance:H,totalNeighbors:q,zeroHopCount:O}=e.useMemo(()=>{const e=[];for(const[a,i]of Object.entries(s)){if(!i.latitude||!i.longitude||0===i.latitude||0===i.longitude)continue;if(!B.has(a))continue;const t=Ye(n,l,i.latitude,i.longitude),s=Ve(n,l,i.latitude,i.longitude),r=E.get(a);e.push({hash:a.slice(0,8),name:i.node_name||i.name||"Unknown",snr:(null==r?void 0:r.snr)??i.snr??null,rssi:(null==r?void 0:r.rssi)??i.rssi??null,bearing:t,distance:s,normalizedDistance:0,lastSeen:i.last_seen,isZeroHop:!0})}const t=1.08*(e.length>0?Math.max(...e.map(e=>e.distance)):0);return e.sort((e,t)=>(e.snr??-1/0)-(t.snr??-1/0)),{processedNeighbors:e,maxDistance:t,totalNeighbors:e.length,zeroHopCount:e.length}},[s,n,l,B,E]);e.useEffect(()=>{null==i||i({zeroHopCount:O,totalCount:q,maxDistanceKm:H})},[O,q,H]),e.useEffect(()=>{const e=Ie[h],t=C.current;f.current&&cancelAnimationFrame(f.current);const s=performance.now(),a=n=>{const l=n-s,i=Math.min(l/400,1),r=(o=i)<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2;var o;g(t+(e-t)*r),f.current=i<1?requestAnimationFrame(a):null};return f.current=requestAnimationFrame(a),()=>{f.current&&cancelAnimationFrame(f.current)}},[h]);const W=H/p,G=e.useMemo(()=>Xe.filter(e=>e<=1.1*W),[W]);e.useEffect(()=>{const e=[];for(const s of _){const t=w.current[s.hash];void 0!==t&&t!==s.lastSeen&&e.push(s.hash),w.current[s.hash]=s.lastSeen}if(0===e.length)return;queueMicrotask(()=>{m(t=>new Set([...t,...e]))});const t=setTimeout(()=>{m(t=>{const s=new Set(t);return e.forEach(e=>s.delete(e)),s})},600);return()=>clearTimeout(t)},[_]);const I=0!==n&&0!==l,X=e.useMemo(()=>{const{width:e,height:t}=d,s=e/2,a=t/2,n=Math.max(10,e/2-12),l=Math.max(10,t/2-12),i=Math.max(10,n-16),r=Math.max(10,l-16);return{width:e,height:t,centerX:s,centerY:a,maxRadiusX:i,maxRadiusY:r,labelRadiusX:n,labelRadiusY:l,cornerRadius:.2*Math.min(i,r)}},[d]),{width:Y,height:V,centerX:K,centerY:U,maxRadiusX:Z,maxRadiusY:J,labelRadiusX:ee,labelRadiusY:te,cornerRadius:se}=X,ae=e.useCallback((e,t=1)=>{const s=Z*t,a=J*t,n=Math.min(se*t,s,a),l=(e%360+360)%360,i=l*Math.PI/180,r=180*Math.atan2(a-n,s-n)/Math.PI;let o,c;if(l<=45-r||l>315+r){const e=Math.tan(i);o=Math.max(K-s+n,Math.min(K+s-n,K+a*e*(s/a))),c=U-a}else if(l>45-r&&l<=45+r)o=K+s-n+n*Math.sin(i),c=U-a+n-n*Math.cos(i);else if(l>45+r&&l<=135-r){const e=1/Math.tan(i);c=Math.max(U-a+n,Math.min(U+a-n,U-s*e*(a/s))),o=K+s}else if(l>135-r&&l<=135+r)o=K+s-n+n*Math.sin(i),c=U+a-n-n*Math.cos(i);else if(l>135+r&&l<=225-r){const e=Math.tan(i);o=Math.max(K-s+n,Math.min(K+s-n,K-a*e*(s/a))),c=U+a}else if(l>225-r&&l<=225+r)o=K-s+n+n*Math.sin(i),c=U+a-n-n*Math.cos(i);else if(l>225+r&&l<=315-r){const e=1/Math.tan(i);c=Math.max(U-a+n,Math.min(U+a-n,U-s*e*(a/s))),o=K-s}else o=K-s+n+n*Math.sin(i),c=U-a+n-n*Math.cos(i);return{x:o,y:c}},[K,U,Z,J,se]),ne=e.useCallback((e,t)=>{const s=ae(e,1);return{x:K+(s.x-K)*t,y:U+(s.y-U)*t}},[ae,K,U]),le=e.useCallback(e=>({N:{x:K,y:U-te},S:{x:K,y:U+te},E:{x:K+ee,y:U},W:{x:K-ee,y:U},NE:{x:K+ee,y:U-te},SE:{x:K+ee,y:U+te},SW:{x:K-ee,y:U+te},NW:{x:K-ee,y:U-te}}[e]),[K,U,ee,te]),ie=e.useCallback(e=>{const t=Z*e,s=J*e,a=Math.min(se*e,t,s),n=K-t,l=K+t,i=U-s,r=U+s;return[`M ${n+a} ${i}`,`L ${l-a} ${i}`,`Q ${l} ${i} ${l} ${i+a}`,`L ${l} ${r-a}`,`Q ${l} ${r} ${l-a} ${r}`,`L ${n+a} ${r}`,`Q ${n} ${r} ${n} ${r-a}`,`L ${n} ${i+a}`,`Q ${n} ${i} ${n+a} ${i}`,"Z"].join(" ")},[K,U,Z,J,se]),re=e.useCallback(e=>{o(e)},[]),oe=e.useCallback(e=>{x(e)},[]),ce=e.useCallback(e=>H<=0?0:e/H*p,[H,p]),me=e=>`${e}km`,de=e.useMemo(()=>{const e=G.map(e=>{const t=e/H*p;return{km:e,scale:t,labelY:U-J*t*.71}}).filter(e=>e.scale<=1.05&&e.scale>=.02).sort((e,t)=>t.km-e.km),t=[];for(const s of e)t.some(e=>Math.abs(e.labelY-s.labelY)<28)||t.push(s);return t},[G,H,p,U,J]),ue=d.width>0&&d.height>0;return I?0===q?t.jsxs("div",{ref:M,className:"flex flex-col items-center justify-center h-full text-text-secondary",children:[t.jsx(Q,{className:"w-8 h-8 mb-2 opacity-50"}),t.jsx("p",{children:"No nodes with location data"})]}):t.jsxs("div",{ref:M,className:"relative h-full w-full flex overflow-hidden",children:[t.jsx("div",{ref:S,className:"relative flex-1 min-w-0 h-full",children:ue&&t.jsxs("svg",{width:Y,height:V,className:"absolute inset-0 z-0",children:[t.jsxs("defs",{children:[t.jsx("style",{children:"\n @keyframes neighbor-blink-scale {\n 0%, 100% {\n transform: scale(1);\n opacity: 0;\n }\n 50% {\n transform: scale(1.3);\n opacity: 0.8;\n }\n }\n .neighbor-blink-ring {\n transform-origin: center;\n animation: neighbor-blink-scale 600ms ease-out forwards;\n }\n "}),t.jsx("clipPath",{id:"radar-clip",children:t.jsx("path",{d:ie(1)})})]}),G.map(e=>{const s=ce(e);if(s>1.05||s<.02)return null;const a=de.some(t=>t.km===e),n=K+Z*s*.71,l=U-J*s*.71;return t.jsxs("g",{children:[t.jsx("path",{d:ie(s),fill:"none",stroke:$,strokeOpacity:R,strokeWidth:1}),a&&t.jsx("text",{x:n+4,y:l-2,textAnchor:"start",dominantBaseline:"auto",className:"fill-text-secondary",fontSize:10,fontFamily:k,children:me(e)})]},`ring-${e}`)}),["N","E","S","W"].map(e=>{const s="N"===e||"S"===e,a=s?K:"E"===e?K+Z:K-Z,n=s?"N"===e?U-J:U+J:U;return t.jsx("line",{x1:K,y1:U,x2:a,y2:n,stroke:$,strokeOpacity:R,strokeWidth:1,strokeDasharray:"4 4"},e)}),["NE","SE","SW","NW"].map(e=>{const s=le(e);return t.jsx("line",{x1:K,y1:U,x2:s.x,y2:s.y,stroke:$,strokeOpacity:D,strokeWidth:1,strokeDasharray:"4 4"},`diag-${e}`)}),["N","E","S","W"].map(e=>{const s=le(e),a="E"===e?"end":"W"===e?"start":"middle",n="N"===e?"hanging":"S"===e?"auto":"middle";return t.jsx("text",{x:s.x,y:s.y,textAnchor:a,dominantBaseline:n,fill:z,fontSize:16,fontWeight:600,fontFamily:k,"aria-hidden":"true",children:e},e)}),["NE","SE","SW","NW"].map(e=>{const s=le(e),a="NE"===e||"SE"===e?"end":"start",n="NE"===e||"NW"===e?"hanging":"auto";return t.jsx("text",{x:s.x,y:s.y,textAnchor:a,dominantBaseline:n,fill:z,fontSize:16,fontWeight:600,fontFamily:k,"aria-hidden":"true",children:e},e)}),t.jsx("circle",{cx:K,cy:U,r:5,fill:F.chart6,stroke:"rgba(255,255,255,0.3)",strokeWidth:1,role:"img","aria-label":"Local node"}),t.jsx("g",{clipPath:"url(#radar-clip)",children:_.map(e=>{const s=H>0?e.distance/H*p:0;if(s>1)return null;const{x:a,y:n}=ne(e.bearing,s),l=null!==e.snr?Ke(e.snr,T):"#808080",i=(null==r?void 0:r.hash)===e.hash,o=c.has(e.hash);return t.jsxs("g",{role:"img","aria-label":`${e.name}: ${e.distance.toFixed(1)}km ${e.bearing.toFixed(0)}°`,children:[o&&t.jsx("circle",{cx:a,cy:n,r:10.5,fill:"none",stroke:"rgba(255,255,255,0.9)",strokeWidth:2,className:"neighbor-blink-ring"}),i&&t.jsx("circle",{cx:a,cy:n,r:10.5,fill:l,opacity:.3}),t.jsx("circle",{cx:a,cy:n,r:i?7:5,fill:l,stroke:"rgba(0,0,0,0.5)",strokeWidth:1,style:{cursor:"pointer",transition:"r 0.15s"},onMouseEnter:()=>re(e),onMouseLeave:()=>re(null)})]},e.hash)})})]})}),t.jsx("div",{className:"flex flex-col h-full items-stretch gap-1 py-2 pl-2 flex-shrink-0",role:"group","aria-label":"Zoom level",children:["1x","2x","4x","8x","16x","36x"].map(e=>t.jsx("button",{onClick:()=>oe(e),"aria-pressed":h===e,className:"flex flex-1 items-center justify-center px-1.5 text-xs font-medium rounded transition-colors "+(h===e?"bg-accent-primary/20 text-accent-primary":"bg-white/5 text-text-secondary hover:bg-white/10 hover:text-text-primary"),children:e},e))}),r&&t.jsxs("div",{className:"absolute bg-tooltip-bg border border-border-subtle rounded-lg px-3 py-2 text-sm pointer-events-none z-10 shadow-xl",style:{left:"50%",bottom:8,transform:"translateX(-50%)"},children:[t.jsx("div",{className:"font-medium text-text-primary",children:r.name}),t.jsx("div",{className:"text-text-secondary text-xs font-mono",children:r.hash}),null!==r.snr?t.jsx("div",{className:"flex gap-3 mt-1 text-xs",children:t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"SNR:"})," ",t.jsxs("span",{className:"tabular-nums",style:{color:Ke(r.snr,T)},children:[r.snr.toFixed(1)," dB"]}),t.jsxs("span",{className:"text-text-secondary ml-1",children:["(",(he=r.snr,(null==(xe=Qe.find(e=>he>=e.min))?void 0:xe.label)??"Critical"),")"]})]})}):t.jsx("div",{className:"text-xs text-text-secondary mt-1",children:"No SNR data"}),t.jsxs("div",{className:"flex gap-3 text-xs",children:[t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"Distance:"})," ",t.jsxs("span",{className:"tabular-nums text-text-primary",children:[r.distance.toFixed(2)," km"]})]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary",children:"Bearing:"})," ",t.jsxs("span",{className:"tabular-nums text-text-primary",children:[r.bearing.toFixed(0),"°"]})]})]})]})]}):t.jsxs("div",{ref:M,className:"flex flex-col items-center justify-center h-full text-text-secondary",children:[t.jsx(Q,{className:"w-8 h-8 mb-2 opacity-50"}),t.jsx("p",{children:"Local node coordinates not configured"}),t.jsx("p",{className:"text-xs mt-1",children:"Set latitude/longitude in config to enable"})]});var he,xe}),Ze={repeater:"var(--accent-primary)",companion:"var(--accent-tertiary)",room_server:"var(--accent-secondary)"};function Je(e){if(e.contact_type){const t=e.contact_type.toLowerCase();if("repeater"===t||"rep"===t)return"repeater";if("room server"===t||"room_server"===t||"room"===t||"server"===t)return"room_server";if("companion"===t||"client"===t||"cli"===t)return"companion"}return e.is_repeater?"repeater":"companion"}const et=e.memo(function({neighbors:s}){const a=e.useMemo(()=>{const e={repeater:0,companion:0,room_server:0};for(const a of Object.values(s)){const t=Je(a);e[t]=(e[t]||0)+1}const t=Object.values(e).reduce((e,t)=>e+t,0);return{items:[{label:"Repeaters",count:e.repeater,percent:0,color:Ze.repeater},{label:"Companions",count:e.companion,percent:0,color:Ze.companion},{label:"Room Servers",count:e.room_server,percent:0,color:Ze.room_server}].map(e=>({...e,percent:t>0?e.count/t*100:0})).filter(e=>e.count>0).sort((e,t)=>t.count-e.count),total:t}},[s]);return 0===a.total?t.jsx("div",{className:"h-full flex items-center justify-center text-text-muted type-body-sm",children:"No neighbors discovered yet"}):t.jsxs("div",{className:"h-full flex flex-col",children:[t.jsx("div",{className:"flex-1 flex flex-col justify-evenly",children:a.items.map(e=>t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"type-data-sm text-text-secondary",children:e.label}),t.jsxs("span",{className:"type-data-sm text-text-secondary tabular-nums",children:[e.count," ",t.jsxs("span",{className:"text-text-secondary/60",children:["(",e.percent.toFixed(0),"%)"]})]})]}),t.jsx("div",{className:"h-2.5 bg-bg-elevated overflow-hidden",children:t.jsx("div",{className:"h-full transition-all duration-500 ease-out",style:{width:`${e.percent}%`,backgroundColor:e.color,minWidth:e.count>0?"4px":"0"}})})]},e.label))}),t.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-border-subtle",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Total Nodes"}),t.jsx("span",{className:"type-data-sm text-text-primary font-medium tabular-nums",children:a.total})]})]})});function tt({children:s,minHeight:a="100%",rootMargin:n="200px 0px",keepMounted:l=!0,className:i=""}){const r=e.useRef(null),[o,c]=e.useState(!1),[m,d]=e.useState(!1);e.useEffect(()=>{const e=r.current;if(!e)return;const t=new IntersectionObserver(([e])=>{const t=e.isIntersecting;d(t),t&&c(!0)},{rootMargin:n,threshold:0});return t.observe(e),()=>{t.disconnect()}},[n]);const u=m||l&&o;return t.jsx("div",{ref:r,className:`h-full w-full ${i}`,style:{minHeight:a},children:u?s:t.jsx("div",{className:"h-full w-full flex items-center justify-center text-text-muted/50",children:t.jsx("div",{className:"animate-pulse text-xs",children:"Loading chart..."})})})}const st={excellent:"text-signal-excellent",good:"text-signal-good",fair:"text-signal-fair",poor:"text-accent-primary"},at={excellent:"bg-signal-excellent/10",good:"bg-signal-good/10",fair:"bg-signal-fair/10",poor:"bg-accent-primary/10"};function nt(){const s=M(),a=S(),[n,l]=e.useState(null),i=e.useCallback((e,t)=>{l({prefix:e,candidateHashes:t})},[]),r=e.useCallback(()=>{l(null)},[]);if(!a)return t.jsxs(J,{children:[t.jsx(le,{icon:t.jsx(Y,{}),title:"Prefix Conflicts",largeTitle:!0}),t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-center text-text-secondary",children:[t.jsx(re,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),t.jsx("p",{className:"type-data-xs",children:"No topology data available"}),t.jsx("p",{className:"type-data-xs opacity-70",children:"Run deep analysis to see stats"})]})})]});const o=(c=s.avgConfidence)>=.9?"excellent":c>=.7?"good":c>=.5?"fair":"poor";var c;const m=(d=s.collisionRate)<=10?"excellent":d<=25?"good":"poor";var d;const u="poor"===o||"poor"===m?"poor":"fair"===o||"fair"===m?"fair":"good"===o||"good"===m?"good":"excellent",h="excellent"===u||"good"===u?pe:oe;return t.jsxs(J,{className:"flex flex-col overflow-hidden",children:[t.jsx(le,{icon:t.jsx(Y,{}),title:"Prefix Conflicts",largeTitle:!0,actions:t.jsxs("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full ${at[u]}`,children:[t.jsx(h,{className:`w-3.5 h-3.5 ${st[u]}`}),t.jsx("span",{className:`type-data-xs font-medium ${st[u]}`,children:"excellent"===u?"Excellent":"good"===u?"Good":"fair"===u?"Fair":"Needs Attention"})]})}),t.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[t.jsxs("div",{className:"grid grid-cols-3 gap-1.5 sm:gap-2 py-3 sm:py-4",children:[t.jsxs("div",{className:"flex flex-col items-center cursor-help bg-white/5 radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2",title:"Total unique 2-character prefixes observed in packet paths.",children:[t.jsx(U,{value:s.totalPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums text-text-primary",priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm text-text-secondary mt-0.5 sm:mt-1",children:"Prefixes"})]}),t.jsxs("div",{className:"flex flex-col items-center cursor-help bg-white/5 radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2",title:"Prefixes that map to exactly one known node. No disambiguation needed.",children:[t.jsx(U,{value:s.unambiguousPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums text-text-primary",priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm text-text-secondary mt-0.5 sm:mt-1",children:"Unique"})]}),t.jsxs("div",{className:"flex flex-col items-center cursor-help radius-inner sm:radius-inset py-2 sm:py-3 px-1.5 sm:px-2 "+(s.collisionPrefixes>0?"bg-accent-primary/15":"bg-white/5"),title:"Prefixes matching multiple known nodes. Click a prefix below to explore candidates.",children:[t.jsx(U,{value:s.collisionPrefixes,className:"font-mono text-2xl sm:text-3xl font-semibold tabular-nums "+(s.collisionPrefixes>0?"text-accent-primary":"text-text-primary"),priority:"low"}),t.jsx("span",{className:"type-data-xs sm:type-data-sm mt-0.5 sm:mt-1 "+(s.collisionPrefixes>0?"text-accent-primary":"text-text-secondary"),children:"Conflicts"})]})]}),s.highCollisionPrefixes.length>0&&t.jsxs("div",{children:[t.jsx("div",{className:"type-data-xs text-text-secondary mb-1.5",children:"Problem Prefixes"}),t.jsx("div",{className:"flex flex-wrap gap-1.5 content-start",children:s.highCollisionPrefixes.map(({prefix:e,candidateCount:s,candidateHashes:a})=>t.jsxs("button",{type:"button",onClick:()=>i(e,a),className:"inline-flex items-center gap-0.5 group",title:`${s} candidates - click to explore`,children:[t.jsx(ae,{children:e}),t.jsxs("span",{className:"text-text-muted type-data-xs group-hover:text-text-secondary transition-colors",children:["×",s]})]},e))})]}),0===s.lowConfidencePrefixes.length&&0===s.collisionPrefixes&&t.jsx("div",{className:"flex-1 flex items-center",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pe,{className:"w-3.5 h-3.5 text-signal-excellent"}),t.jsx("span",{className:"type-data-xs text-signal-excellent",children:"All prefixes uniquely identified"})]})}),t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-auto pt-3",children:[t.jsxs("div",{className:"flex items-center gap-2 cursor-help",title:"Average confidence score across all disambiguated prefixes. Higher = more certain node identification.",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Confidence"}),t.jsxs("span",{className:`data-box ${st[o]}`,children:[(100*s.avgConfidence).toFixed(1),"%"]})]}),t.jsxs("div",{className:"flex items-center gap-2 cursor-help",title:"Percentage of 2-character prefixes that match multiple known nodes. Lower is better.",children:[t.jsx("span",{className:"type-data-xs text-text-secondary",children:"Collisions"}),t.jsxs("span",{className:`data-box ${st[m]}`,children:[s.collisionRate.toFixed(1),"%"]})]})]})]}),t.jsx(ne,{isOpen:!!n,prefix:(null==n?void 0:n.prefix)||"",candidateHashes:(null==n?void 0:n.candidateHashes)||[],onClose:r})]})}function lt({icon:e,label:s,value:a,sublabel:n,highlight:l,tooltip:i}){return t.jsxs("div",{className:"flex items-center justify-between gap-2 py-1.5 "+(i?"cursor-help":""),title:i,children:[t.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 min-w-0",children:[t.jsx("span",{className:"icon-xs text-icon-widget flex-shrink-0",children:e}),t.jsx("span",{className:"type-body-sm text-text-secondary truncate",children:s})]}),t.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5 flex-shrink-0",children:[t.jsx("span",{className:"data-box",style:l?{"--data-box-color":"var(--accent-primary)"}:void 0,children:a}),n&&t.jsx("span",{className:"type-data-xs text-text-secondary hidden sm:inline",children:n})]})]})}function it(){const e=C(),s=T().length;if(!e||0===e.totalPaths)return null;const{totalPaths:a,pathsWithGhosts:n,observationOverrideCount:l,tracePacketsProcessed:i,pathPacketsProcessed:r,distantEdgesDiscovered:o,duplicateGroupsFound:c,duplicatePathsUnique:m,echolocationEdgesInferred:d}=e,u=a>0?((a-n)/a*100).toFixed(1):"0",h=a>0?(l/a*100).toFixed(1):"0",x=i+r,p=x>0||o>0,g=c>0||d>0;return t.jsxs(J,{children:[t.jsx(le,{title:"Path Decoder",icon:t.jsx(V,{}),largeTitle:!0,badge:s>0?`${s} hidden`:void 0}),t.jsxs(ie,{children:[t.jsxs("div",{children:[t.jsx(lt,{icon:t.jsx(ye,{className:"w-3.5 h-3.5"}),label:"Traceable",value:`${u}%`,sublabel:`of ${a.toLocaleString()} paths`,tooltip:"Percentage of packet journeys where every hop was identified. Higher = better visibility into how traffic flows through your mesh."}),t.jsx(lt,{icon:t.jsx(je,{className:"w-3.5 h-3.5"}),label:"Learning Rate",value:`${h}%`,sublabel:"adapted",tooltip:"How often real traffic patterns improved our predictions over geography alone. Higher values mean the decoder is learning your mesh's actual behavior — which routes are preferred, which nodes are most active."})]}),p&&t.jsxs("div",{className:"mt-3",children:[t.jsx("p",{className:"type-micro mb-2",children:"Beyond Line-of-Sight"}),t.jsxs("div",{children:[t.jsx(lt,{icon:t.jsx(be,{className:"w-3.5 h-3.5"}),label:"Route Reports",value:x.toLocaleString(),sublabel:i>0?`(${i} TRACE)`:void 0,tooltip:"TRACE/PATH packets from distant nodes share their routing tables. This reveals connections we can't directly observe — mapping parts of the mesh we don't touch."}),t.jsx(lt,{icon:t.jsx(ce,{className:"w-3.5 h-3.5"}),label:"Remote Links",value:o.toLocaleString(),highlight:o>0,tooltip:"Node-to-node connections discovered from route reports. These links exist outside our RF range but help complete the topology picture."})]})]}),g&&t.jsx(lt,{icon:t.jsx(A,{className:"w-3.5 h-3.5"}),label:"Multi-Path Packets",value:c.toLocaleString(),sublabel:m>0?`(${m} routes)`:void 0,tooltip:"Packets received via multiple paths simultaneously. Like sonar, these 'echoes' reveal redundant routes — important for understanding mesh resilience."}),s>0&&t.jsx(lt,{icon:t.jsx(F,{className:"w-3.5 h-3.5 text-accent-primary"}),label:"Ghost Repeaters",value:s,highlight:!0,tooltip:"High-confidence hidden repeaters: appear in 10+ paths, have 2+ known neighbors, ≥30% confidence, and plausible location. View them on the Contacts map."})]})]})}function rt(){var s,a,n,l,i,r,o,c,m,d,u,h,x,p,g,f,y;const b=P(),j=L(),v=$(),N=R(),k=D(),w=z(),M=B(),S=E(),[C,T]=e.useState([]),[A,F]=e.useState(null),[Y,V]=e.useState(null),[K,U]=e.useState(!0),[ae,ne]=e.useState(null),[ie,re]=e.useState(()=>{const e=localStorage.getItem("statistics-view-mode");return"share"===e||"airtime"===e?e:"airtime"});e.useEffect(()=>{localStorage.setItem("statistics-view-mode",ie)},[ie]);const[oe,ce]=e.useState(()=>{const e=localStorage.getItem("statistics-smoothing-mode");return["ema","ultra","mosaic","stats","trend"].includes(e)?e:"stats"});e.useEffect(()=>{localStorage.setItem("statistics-smoothing-mode",oe)},[oe]);const[ue,xe]=e.useState(!1),[pe,ge]=e.useState(!1),[fe,ye]=e.useState(Ne),[be,je]=e.useState(.5),ve=e.useMemo(()=>({0:0,1:0,2:1,3:2,4:3,5:4,6:5,7:6}[M]??3),[M]),Se=_[ve].hours,Ce=60*Se,Te=_[ve],Ae=q(Se),Fe=w.isBackgroundLoading,Pe=e.useCallback(e=>{S({0:1,1:2,2:3,3:4,4:5,5:6,6:7}[e]??4)},[S]),Le=e.useMemo(()=>{var e;if(!(null==(e=null==b?void 0:b.config)?void 0:e.radio))return null;const t=b.config.radio;return{sf:t.spreading_factor??10,bw:t.bandwidth??25e4,cr:t.coding_rate??5,preamble:t.preamble_length??8}},[null==(a=null==(s=null==b?void 0:b.config)?void 0:s.radio)?void 0:a.spreading_factor,null==(l=null==(n=null==b?void 0:b.config)?void 0:n.radio)?void 0:l.bandwidth,null==(r=null==(i=null==b?void 0:b.config)?void 0:i.radio)?void 0:r.coding_rate,null==(c=null==(o=null==b?void 0:b.config)?void 0:o.radio)?void 0:c.preamble_length]);e.useEffect(()=>{!async function(){var e;ne(null);try{const t=await H(Se);t.success&&(null==(e=t.data)?void 0:e.history)&&T(t.data.history)}catch(t){ne(t instanceof Error?t.message:"Failed to load chart data")}finally{U(!1)}}()},[Se]);const $e=e.useMemo(()=>72===Se?6e5:168===Se?18e5:336===Se?36e5:3e5,[Se]),Re=e.useCallback(async()=>{var e;try{const t=await H(Se);t.success&&(null==(e=t.data)?void 0:e.history)&&T(t.data.history)}catch{}},[Se]);I(Re,$e,!0,!0);const Ee=e.useMemo(()=>0===C.length?{timestamps:[],values:[]}:{timestamps:C.map(e=>e.timestamp),values:C.map(e=>e.noise_floor_dbm)},[C]),_e=e.useMemo(()=>{if(C.length<10)return{anomalies:[],debug:void 0};const e=function(e,t={}){const s={...Ne,...t};if(e.length<10)return{anomalies:[],thresholds:we([]),totalSamples:e.length,anomalySamples:0};const a=e.map(e=>e.noise_floor_dbm),n=we(a),l=[...a].sort((e,t)=>e-t);let i,r;s.useAbsoluteThresholds?(i=s.baselineDbm,r=s.spikeDbm):(i=ke(l,s.baselinePercentile),r=ke(l,s.spikePercentile));const o=[...e].sort((e,t)=>e.timestamp-t.timestamp),c=[];let m=null,d=0;for(const u of o)if(u.noise_floor_dbm>i&&u.noise_floor_dbme+t,0)/m.values.length):(m.values.length>=s.minSequenceLength&&c.push(m),m={startTs:u.timestamp,endTs:u.timestamp,values:[u.noise_floor_dbm],timestamps:[u.timestamp],rollingAvg:u.noise_floor_dbm})}else m={startTs:u.timestamp,endTs:u.timestamp,values:[u.noise_floor_dbm],timestamps:[u.timestamp],rollingAvg:u.noise_floor_dbm};else m&&m.values.length>=s.minSequenceLength&&c.push(m),m=null;return m&&m.values.length>=s.minSequenceLength&&c.push(m),0===c.length?{anomalies:[],thresholds:n,totalSamples:e.length,anomalySamples:d,debug:{baselineCutoff:i,spikeCutoff:r,midBandSamples:d}}:{anomalies:c.map(e=>{const t=Math.max(...e.values),s=e.values.reduce((e,t)=>e+t,0)/e.values.length;return{startTs:e.startTs,endTs:e.endTs,peakValue:t,avgValue:s,severity:Me(s,i,r),sampleCount:e.values.length}}),thresholds:n,totalSamples:e.length,anomalySamples:d,debug:{baselineCutoff:i,spikeCutoff:r,midBandSamples:d}}}(C,fe);return{anomalies:e.anomalies,debug:e.debug}},[C,fe]),He=_e.anomalies,qe=e.useMemo(()=>{const e=(null==b?void 0:b.neighbors)??{};return Object.fromEntries(Object.entries(e).filter(([e])=>!j.has(e)))},[null==b?void 0:b.neighbors,j]),Oe=e.useMemo(()=>{const e=Date.now()/1e3-3600*Se;return Object.fromEntries(Object.entries(qe).filter(([,t])=>t.last_seen>=e))},[qe,Se]),We=e.useMemo(()=>{const e=60*Ce/Ae,t=Math.floor(Date.now()/1e3),s=Math.floor(t/e)*e;return{start:s-60*Ce,end:s}},[Ce,Ae]);return t.jsxs(ee,{children:[t.jsx(te,{title:"Statistics",icon:t.jsx(O,{}),controls:t.jsx(Z,{ranges:_,selectedIndex:ve,onSelect:Pe,isPending:Fe})}),ae&&t.jsx(J,{className:"border border-accent-red/50 bg-accent-red/10",children:t.jsx("p",{className:"text-accent-red",children:ae})}),ue&&pe&&t.jsxs(J,{className:"border border-accent-purple/30 bg-glass-surface/50",children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"type-label",children:"Anomaly Detection Tuning"}),t.jsxs("span",{className:"type-data-xs text-text-muted",children:["(",Te.label,")"]})]}),t.jsx("button",{onClick:()=>ye(e=>({...e,useAbsoluteThresholds:!e.useAbsoluteThresholds})),className:"type-data-xs px-2 py-1 rounded transition-colors "+(fe.useAbsoluteThresholds?"bg-accent-purple/30 text-accent-purple":"bg-glass-elevated text-text-muted hover:text-text-secondary"),children:fe.useAbsoluteThresholds?"Absolute dBm":"Percentile"})]}),t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Baseline"}),t.jsxs("span",{className:"ml-2 type-data-sm text-status-warning",children:[(null==(d=null==(m=_e.debug)?void 0:m.baselineCutoff)?void 0:d.toFixed(1))??"—"," dBm"]})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Spike"}),t.jsxs("span",{className:"ml-2 type-data-sm text-status-warning",children:[(null==(h=null==(u=_e.debug)?void 0:u.spikeCutoff)?void 0:h.toFixed(1))??"—"," dBm"]})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Mid-band"}),t.jsx("span",{className:"ml-2 type-data-sm text-accent-purple",children:(null==(x=_e.debug)?void 0:x.midBandSamples)??0})]}),t.jsxs("div",{children:[t.jsx("span",{className:"type-micro",children:"Anomalies"}),t.jsx("span",{className:"ml-2 type-data-sm text-status-danger",children:He.length})]})]}),t.jsxs("div",{className:"mt-4 pt-4 border-t border-border-subtle space-y-4",children:[fe.useAbsoluteThresholds?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Baseline (",fe.baselineDbm," dBm)"]}),t.jsx("input",{type:"range",min:"-120",max:"-60",value:fe.baselineDbm,onChange:e=>ye(t=>({...t,baselineDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Spike (",fe.spikeDbm," dBm)"]}),t.jsx("input",{type:"range",min:"-100",max:"-20",value:fe.spikeDbm,onChange:e=>ye(t=>({...t,spikeDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Merge Gap (",fe.mergeGapSeconds,"s)"]}),t.jsx("input",{type:"range",min:"5",max:"120",step:"5",value:fe.mergeGapSeconds,onChange:e=>ye(t=>({...t,mergeGapSeconds:Number(e.target.value)})),className:"w-full accent-accent-purple"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Min Sequence (",fe.minSequenceLength,")"]}),t.jsx("input",{type:"range",min:"2",max:"20",value:fe.minSequenceLength,onChange:e=>ye(t=>({...t,minSequenceLength:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Similarity (±",fe.similarityToleranceDbm," dBm)"]}),t.jsx("input",{type:"range",min:"1",max:"15",value:fe.similarityToleranceDbm,onChange:e=>ye(t=>({...t,similarityToleranceDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Opacity (",Math.round(100*be),"%)"]}),t.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:be,onChange:e=>je(Number(e.target.value)),className:"w-full accent-accent-purple"})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Baseline (P",fe.baselinePercentile,")"]}),t.jsx("input",{type:"range",min:"1",max:"50",value:fe.baselinePercentile,onChange:e=>ye(t=>({...t,baselinePercentile:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Spike (P",fe.spikePercentile,")"]}),t.jsx("input",{type:"range",min:"50",max:"99",value:fe.spikePercentile,onChange:e=>ye(t=>({...t,spikePercentile:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Merge Gap (",fe.mergeGapSeconds,"s)"]}),t.jsx("input",{type:"range",min:"5",max:"120",step:"5",value:fe.mergeGapSeconds,onChange:e=>ye(t=>({...t,mergeGapSeconds:Number(e.target.value)})),className:"w-full accent-accent-purple"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Min Sequence (",fe.minSequenceLength,")"]}),t.jsx("input",{type:"range",min:"2",max:"20",value:fe.minSequenceLength,onChange:e=>ye(t=>({...t,minSequenceLength:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Similarity (±",fe.similarityToleranceDbm," dBm)"]}),t.jsx("input",{type:"range",min:"1",max:"15",value:fe.similarityToleranceDbm,onChange:e=>ye(t=>({...t,similarityToleranceDbm:Number(e.target.value)})),className:"w-full accent-accent-purple"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"type-micro block mb-1",children:["Opacity (",Math.round(100*be),"%)"]}),t.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:be,onChange:e=>je(Number(e.target.value)),className:"w-full accent-accent-purple"})]})]})]}),t.jsxs("div",{className:"mt-4 p-3 bg-glass-elevated radius-inner",children:[t.jsx("div",{className:"type-micro mb-1",children:"Config output"}),t.jsxs("div",{className:"type-data-sm text-status-success",children:[fe.useAbsoluteThresholds?`useAbsoluteThresholds: true, baselineDbm: ${fe.baselineDbm}, spikeDbm: ${fe.spikeDbm}`:`useAbsoluteThresholds: false, baselinePercentile: ${fe.baselinePercentile}, spikePercentile: ${fe.spikePercentile}`,", mergeGapSeconds: ",fe.mergeGapSeconds,", minSequenceLength: ",fe.minSequenceLength,", similarityToleranceDbm: ",fe.similarityToleranceDbm]})]})]})]}),t.jsxs(se,{children:[Fe&&t.jsx(me,{template:"auto",children:t.jsx(J,{className:"border border-accent-primary/30 bg-accent-primary/5",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("div",{className:"relative flex h-3 w-3",children:[t.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-primary opacity-75"}),t.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-accent-primary"})]}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("p",{className:"type-body-sm text-text-primary",children:["Loading ",Te.label," data..."]}),w.loadProgress&&t.jsxs("p",{className:"type-data-xs text-text-muted mt-0.5",children:[w.loadProgress.loaded.toLocaleString()," packets (",w.loadProgress.percent,"%)"]})]})]})})}),K?t.jsx(me,{template:"auto",children:t.jsx(J,{className:"text-center py-12",children:t.jsx("div",{className:"animate-pulse text-text-muted",children:"Loading statistics..."})})}):t.jsxs(t.Fragment,{children:[t.jsx(me,{template:"hero-auto",children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(X,{}),title:"Packet Analyzer",badge:Te.label,largeTitle:!0,stackActionsOnMobile:!0,actions:t.jsxs("div",{className:"flex flex-wrap items-center gap-2 justify-end",children:["stats"===oe&&t.jsx(Be,{enabled:ue,onChange:xe,anomalyCount:He.length,showTuning:pe,onTuningChange:ge}),t.jsx(ze,{smoothing:oe,onChange:ce}),t.jsx(De,{mode:ie,onChange:re})]})}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(Ge,{packets:N,startTs:We.start,endTs:We.end,bucketCount:Ae,radioConfig:Le??void 0,mode:ie,smoothing:oe,noiseFloorAnomalies:He,showNoiseFloorOverlay:ue,overlayOpacity:be})})]})})}),t.jsxs(me,{template:"panel",children:[t.jsx(de,{span:12,md:6,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(Q,{}),title:"Link Quality",badge:Te.label,largeTitle:!0,actions:Y?t.jsxs("div",{className:"flex items-center gap-3 type-data-xs text-text-muted",children:[t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.zeroHopCount})," nbr"]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.totalCount})," obs"]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-text-secondary tabular-nums font-medium",children:Y.maxDistanceKm.toFixed(0)})," km"]})]}):null}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(Ue,{neighbors:Oe,quickNeighbors:v,localLat:(null==(g=null==(p=null==b?void 0:b.config)?void 0:p.repeater)?void 0:g.latitude)??0,localLon:(null==(y=null==(f=null==b?void 0:b.config)?void 0:f.repeater)?void 0:y.longitude)??0,onStatsChange:V})})})]})})}),t.jsx(de,{span:12,md:6,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(he,{}),title:"Network Composition",badge:Te.label,largeTitle:!0}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(et,{neighbors:Oe})})})]})})})]}),t.jsxs(me,{template:"panel",children:[t.jsx(de,{span:12,md:6,children:t.jsx(nt,{})}),t.jsx(de,{span:12,md:6,children:t.jsx(it,{})})]}),t.jsx(me,{template:"panel",children:t.jsx(de,{span:12,children:t.jsx(J,{isLoaded:k,skeletonType:"chart",children:k&&t.jsxs(t.Fragment,{children:[t.jsx(le,{icon:t.jsx(W,{}),title:"RF Noise Floor",largeTitle:!0,stackActionsOnMobile:!0,actions:A?t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["min ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.min.toFixed(0)})]}),t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["avg ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.avg.toFixed(0)})]}),t.jsxs("span",{className:"type-data-xs text-text-muted whitespace-nowrap",children:["max ",t.jsx("span",{className:"text-text-secondary tabular-nums",children:A.max.toFixed(0)})]}),t.jsx("span",{className:"type-data-xs text-text-muted",children:"dBm"})]}):t.jsx("span",{className:"type-data-xs text-text-muted",children:"dBm"})}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(tt,{children:t.jsx(G,{timestamps:Ee.timestamps,values:Ee.values,onStatsChange:F})})})]})})})})]})]})]})}export{rt as default}; diff --git a/frontend/dist/assets/System-CtoOYGp_.js b/frontend/dist/assets/System-ZsL3Sv4K.js similarity index 98% rename from frontend/dist/assets/System-CtoOYGp_.js rename to frontend/dist/assets/System-ZsL3Sv4K.js index 18b0d92c..b1449f3a 100644 --- a/frontend/dist/assets/System-CtoOYGp_.js +++ b/frontend/dist/assets/System-ZsL3Sv4K.js @@ -1 +1 @@ -import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as r,a,d as n,b1 as o,b2 as c,b3 as l,b4 as i,b5 as m,b6 as d,aM as x,aE as u,b7 as h,b8 as p}from"./index-_WuEOacy.js";import{a as f,P as g,b as y,B as j}from"./PageLayout-C4LpOVqW.js";import{T as b}from"./triangle-alert-aHb4szMy.js";import{C as v}from"./Card-BSUcfChC.js";import{a as w,A as M}from"./arrow-up-Bfc4DrcP.js";import{N}from"./network-DFMZ0mT7.js";import{A as k}from"./activity-CYJ1WO67.js";import{R}from"./refresh-cw-J1p21ufp.js";import{R as C,C as S}from"./Grid-BkE6UU8f.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const F=r("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),_=r("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),T=r("thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]),B=n.hero;function P(){const e=getComputedStyle(document.documentElement);return{fontFamily:e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',textPrimary:e.getPropertyValue("--text-primary").trim()||"#FFFFFF",textMuted:e.getPropertyValue("--text-muted").trim()||"#727272",gridColor:e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)"}}function $(e){const t=Math.max(0,Math.min(1,e)),s=[{pos:0,color:{r:142,g:78,b:198}},{pos:.25,color:{r:91,g:91,b:214}},{pos:.5,color:{r:0,g:162,b:199}},{pos:.75,color:{r:255,g:178,b:36}},{pos:1,color:{r:229,g:72,b:77}}];let r=s[0],a=s[s.length-1];for(let c=0;c=s[c].pos&&t<=s[c+1].pos){r=s[c],a=s[c+1];break}const n=a.pos-r.pos,o=n>0?(t-r.pos)/n:0;return function(e,t,s){const r=2.2,a=1/r,n=Math.pow(e.r/255,r),o=Math.pow(e.g/255,r),c=Math.pow(e.b/255,r),l=Math.pow(t.r/255,r),i=Math.pow(t.g/255,r),m=Math.pow(t.b/255,r),d=255*Math.pow(n+s*(l-n),a),x=255*Math.pow(o+s*(i-o),a),u=255*Math.pow(c+s*(m-c),a);return{r:Math.round(Math.max(0,Math.min(255,d))),g:Math.round(Math.max(0,Math.min(255,x))),b:Math.round(Math.max(0,Math.min(255,u)))}}(r.color,a.color,o)}const E=e.memo(function({data:s,cpuColor:r,memoryColor:n}){const c=e.useRef(null),l=e.useRef(null),i=e.useRef([]),m=e.useRef(r),d=e.useRef(n),x=e.useRef(null),u=e.useRef(s.length);e.useLayoutEffect(()=>{m.current=r,d.current=n}),e.useEffect(()=>{x.current=P()},[]);const h=e.useMemo(()=>function(e){const t=[],s=Math.max(0,B-e.length),r=Date.now(),a=o.system;for(let o=0;o{i.current=h},[h]);const p=e.useMemo(()=>[h.map(e=>e.timestamp),new Array(h.length).fill(1)],[h]),f=e.useMemo(()=>({hooks:{draw:e=>{const t=x.current||P();!function(e,t,s,r,a){if(0===t.length)return;const n=e.ctx,{left:o,top:c,width:l,height:i}=e.bbox,m=window.devicePixelRatio||1;if(l<=0||i<=0)return;const d=e.data[0],x=d.length;if(0===x)return;const u=d[0],h=d[x-1]-u||1,p=e=>o+(e-u)/h*l,f=e=>{const t=Math.min(Math.max(e/100,0),1);return c+i*(1-t)};n.save(),n.strokeStyle=a.textPrimary,n.globalAlpha=.1,n.lineWidth=1*m,n.setLineDash([4*m,4*m]);for(const w of[25,50,75]){const e=Math.round(f(w))+.5;n.beginPath(),n.moveTo(Math.round(o),e),n.lineTo(Math.round(o+l),e),n.stroke()}n.restore(),n.save(),n.font=`bold ${10*m}px ${a.fontFamily}`,n.fillStyle=a.textMuted,n.textBaseline="middle",n.textAlign="left";const g=8*m;for(const w of[0,25,50,75,100]){const e=f(w),t=Math.max(c+g,Math.min(c+i-g,e));n.fillText(`${w}%`,4*m,t)}n.restore(),n.save();const y=l/x;for(let w=0;w0){const e=t[x-1],s=d[x-1];e&&(n.textAlign="right",n.fillText(e.time,p(s),c+i+6*m))}n.restore()}(e,i.current,m.current,d.current,t)}}}),[]),g=e.useMemo(()=>({width:400,height:240,padding:[8,8,24,36],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,100]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[f]}),[f]);return e.useEffect(()=>{const e=c.current;if(!e||0===h.length)return;const t=u.current,r=s.length,n=Math.abs(r-t);if(!(!l.current||n>50||t>0&&n/t>.2)&&l.current)return l.current.setData(p),void(u.current=r);l.current&&l.current.destroy();const o=e.getBoundingClientRect(),i=Math.floor(o.width)||400,m=Math.floor(o.height)||240,d=new a({...g,width:i,height:m},p,e);return l.current=d,u.current=r,()=>{d.destroy(),l.current=null}},[g,p,h.length,s.length]),e.useEffect(()=>{const e=c.current;if(!e)return;const t=new ResizeObserver(e=>{const t=e[0];if(!t||!l.current)return;const{width:s,height:r}=t.contentRect;s>0&&r>0&&l.current.setSize({width:Math.floor(s),height:Math.floor(r)})});return t.observe(e),()=>{t.disconnect()}},[]),e.useEffect(()=>{l.current&&l.current.redraw()},[r,n,h]),0===s.length?t.jsx("div",{className:"h-[240px] flex items-center justify-center text-text-muted",children:"Collecting data..."}):t.jsx("div",{ref:c,className:"w-full h-[240px] rounded-lg overflow-hidden"})});function A(e){const t=Math.max(0,Math.min(1,e)),s=[{pos:0,color:{r:142,g:78,b:198}},{pos:.25,color:{r:91,g:91,b:214}},{pos:.5,color:{r:0,g:162,b:199}},{pos:.75,color:{r:255,g:178,b:36}},{pos:1,color:{r:229,g:72,b:77}}];let r=s[0],a=s[s.length-1];for(let c=0;c=s[c].pos&&t<=s[c+1].pos){r=s[c],a=s[c+1];break}const n=a.pos-r.pos,o=n>0?(t-r.pos)/n:0;return function(e,t,s){const r=2.2,a=1/r,n=Math.pow(e.r/255,r),o=Math.pow(e.g/255,r),c=Math.pow(e.b/255,r),l=Math.pow(t.r/255,r),i=Math.pow(t.g/255,r),m=Math.pow(t.b/255,r),d=255*Math.pow(n+s*(l-n),a),x=255*Math.pow(o+s*(i-o),a),u=255*Math.pow(c+s*(m-c),a);return{r:Math.round(Math.max(0,Math.min(255,d))),g:Math.round(Math.max(0,Math.min(255,x))),b:Math.round(Math.max(0,Math.min(255,u)))}}(r.color,a.color,o)}const D=e.memo(function({data:s,color:r,flipped:n=!1,fixedSlots:o}){const c=e.useRef(null),l=e.useRef(null),i=e.useRef(s),m=e.useRef(r),d=e.useRef(n),x=e.useRef(o);e.useLayoutEffect(()=>{i.current=s,m.current=r,d.current=n,x.current=o});const u=e.useMemo(()=>[Array.from({length:o},(e,t)=>t),new Array(o).fill(1)],[o]),h=e.useMemo(()=>({hooks:{draw:e=>{!function(e,t,s,r,a){const n=e.ctx,{left:o,top:c,width:l,height:i}=e.bbox;if(l<=0||i<=0)return;const m=[...Array(Math.max(0,a-t.length)).fill(0),...t.slice(-a)],d=Math.max(...m,1),x=m.length,u=l/x,h=.03*i;n.save();for(let p=0;p({width:400,height:40,padding:[0,0,0,0],legend:{show:!1},cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1,label:""}],plugins:[h]}),[h]);return e.useEffect(()=>{const e=c.current;if(!e)return;l.current&&l.current.destroy();const t=e.getBoundingClientRect(),s=Math.floor(t.width)||400,r=Math.floor(t.height)||40,n=new a({...p,width:s,height:r},u,e);return l.current=n,()=>{n.destroy(),l.current=null}},[p,u]),e.useEffect(()=>{const e=c.current;if(!e)return;const t=new ResizeObserver(e=>{const t=e[0];if(!t||!l.current)return;const{width:s,height:r}=t.contentRect;s>0&&r>0&&l.current.setSize({width:Math.floor(s),height:Math.floor(r)})});return t.observe(e),()=>{t.disconnect()}},[]),e.useEffect(()=>{l.current&&l.current.redraw()},[s,r,n]),t.jsx("div",{ref:c,className:"w-full h-full"})}),L={warning:80,danger:95},z={warning:85,danger:95},U={warning:70,danger:85},H=[{threshold:30,color:"var(--accent-tertiary)"},{threshold:50,color:"var(--accent-primary)"},{threshold:65,color:"var(--accent-secondary)"},{threshold:80,color:"var(--signal-poor)"}];function G(e,t,s){const r=s-t,a={cold:(30-t)/r*100,normal:(50-t)/r*100,warm:(65-t)/r*100,hot:(80-t)/r*100};return`linear-gradient(to right, ${[{pos:0,color:"var(--accent-tertiary)"},{pos:a.cold,color:"var(--accent-tertiary)"},{pos:a.cold,color:"var(--accent-primary)"},{pos:a.normal,color:"var(--accent-primary)"},{pos:a.normal,color:"var(--accent-secondary)"},{pos:a.warm,color:"var(--accent-secondary)"},{pos:a.warm,color:"var(--signal-poor)"},{pos:a.hot,color:"var(--signal-poor)"},{pos:a.hot,color:"var(--accent-danger)"},{pos:100,color:"var(--accent-danger)"}].map(t=>{const s=e>0?t.pos/e*100:0;return`${t.color} ${Math.min(s,100)}%`}).join(", ")})`}function O(e,t){return e>=t.danger?"danger":e>=t.warning?"warning":"none"}function V(e){let t="none";for(const s of Object.values(e)){const e=O(s,U);if("danger"===e)return"danger";"warning"===e&&(t="warning")}return t}function W(e){let t,s,r;return e>=1073741824?(t=e/1073741824,s="GB/s"):e>=1048576?(t=e/1048576,s="MB/s"):e>=1024?(t=e/1024,s="KB/s"):(t=e,s="B/s"),r=t>=100?t.toFixed(0):t.toFixed(1),`${r} ${s}`}function I(e){return e>=1073741824?{value:(e/1073741824).toFixed(1),unit:"GiB"}:e>=1048576?{value:(e/1048576).toFixed(1),unit:"MiB"}:e>=1024?{value:(e/1024).toFixed(1),unit:"KiB"}:{value:String(e),unit:"B"}}const J=e.memo(function({level:e}){return"none"===e?null:t.jsxs("span",{className:s("inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium","danger"===e&&"bg-accent-danger/20 text-accent-danger","warning"===e&&"bg-accent-secondary/20 text-accent-secondary"),children:[t.jsx(b,{className:"w-3 h-3"}),"danger"===e?"High":"Warn"]})}),K=e.memo(function({value:e,max:s=100,width:r=10,color:a="primary"}){const n=Math.min(e/s,1),o=Math.round(n*r),c=r-o,l="■".repeat(o),i="·".repeat(c),m={primary:"text-accent-primary",secondary:"text-accent-secondary",success:"text-accent-success",danger:"text-accent-danger"}[a];return t.jsxs("span",{className:"font-mono text-[10px] tracking-tight",children:[t.jsx("span",{className:m,children:l}),t.jsx("span",{className:"text-text-muted/40",children:i})]})}),X=e.memo(function({index:e,usage:r}){const a=r>90?"danger":r>70?"secondary":"primary";return t.jsxs("div",{className:"flex items-center gap-1 text-xs font-mono",children:[t.jsxs("span",{className:"text-text-muted w-5",children:["C",e]}),t.jsx(K,{value:r,width:8,color:a}),t.jsxs("span",{className:s("w-7 text-right tabular-nums",r>90?"text-accent-danger":r>70?"text-accent-secondary":"text-accent-success"),children:[r.toFixed(0),"%"]})]})}),q=e.memo(function({pid:e,name:r,cpu:a,mem:n,isTopCpu:o=!1,isTopMem:c=!1}){return t.jsxs("div",{className:"flex items-center gap-2 py-1 text-sm font-mono hover:bg-subtle-fill -mx-1 px-1 rounded",children:[t.jsx("span",{className:"text-text-muted w-14 tabular-nums",children:e}),t.jsx("span",{className:"flex-1 truncate text-text-primary",children:r}),t.jsx(K,{value:a,max:100,width:6,color:a>50?"danger":a>20?"secondary":"success"}),t.jsx("span",{className:s("w-12 text-right tabular-nums",o?"text-text-primary":a>50?"text-accent-danger":a>20?"text-accent-secondary":"text-text-muted"),children:a.toFixed(1)}),t.jsx("span",{className:s("w-12 text-right tabular-nums",c?"text-text-primary":n>50?"text-accent-danger":n>20?"text-accent-secondary":"text-text-muted"),children:n.toFixed(1)})]})}),Y=e.memo(function({value:e,label:s,min:r=20,max:a=100}){const n=Math.min(Math.max((e-r)/(a-r)*100,0),100),o=function(e){return e<30?{text:"Cool",color:"text-accent-tertiary"}:e<50?{text:"Normal",color:"text-accent-primary"}:e<65?{text:"Warm",color:"text-accent-secondary"}:e<80?{text:"Hot",color:"text-signal-poor"}:{text:"Danger",color:"text-accent-danger"}}(e),c=a-r;return t.jsxs("div",{className:"space-y-1.5",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:s}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:o.text}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded text-sm font-mono tabular-nums",children:[t.jsx("span",{className:o.color,children:e.toFixed(1)}),t.jsx("span",{className:"text-text-primary",children:"°C"})]})]})]}),t.jsxs("div",{className:"relative h-3 bg-subtle-fill overflow-hidden",children:[t.jsx("div",{className:"absolute inset-y-0 left-0 transition-all duration-300 ease-out",style:{background:G(n,r,a),width:`${n}%`}}),t.jsx("div",{className:"absolute inset-0 flex items-center pointer-events-none",children:H.map(({threshold:e,color:s})=>{const a=(e-r)/c*100;return a<0||a>100?null:t.jsx("div",{className:"absolute w-px h-full",style:{left:`${a}%`,backgroundColor:s}},e)})})]})]})});e.memo(function({data:e,color:s,flipped:r=!1,fixedSlots:a}){const n=[...Array(Math.max(0,a-e.length)).fill(0),...e.slice(-a)],o=Math.max(...n,1),c=n.map(e=>0===e?0:Math.max(e/o*100,3));return t.jsx("div",{className:"w-full h-full flex items-end",style:{transform:r?"scaleY(-1)":void 0},children:c.map((e,r)=>t.jsx("div",{className:"flex-1 min-w-0",style:{height:e>0?`${e}%`:"0%",backgroundColor:e>0?s:"transparent"}},r))})});const Z=e.memo(function({networkHistory:e,txRate:s,rxRate:r,totalBytesSent:a,totalBytesRecv:n,cpuColor:o,memoryColor:c,networkSlots:l}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(N,{}),title:"Network",largeTitle:!0,actions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(w,{className:"w-3.5 h-3.5",style:{color:c}}),t.jsx("span",{className:"text-xs font-mono",style:{color:c},children:"TX"}),t.jsx("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded text-sm font-mono tabular-nums text-text-primary",children:W(s)})]})}),t.jsxs("div",{className:"flex flex-col h-[120px]",children:[t.jsx("div",{className:"h-[60px]",children:t.jsx(D,{data:e.map((e,t,s)=>{if(0===t)return 0;const r=(e.timestamp-s[t-1].timestamp)/1e3;return r>0?(e.bytesSent-s[t-1].bytesSent)/r:0}),color:c,fixedSlots:l})}),t.jsx("div",{className:"h-[60px]",children:t.jsx(D,{data:e.map((e,t,s)=>{if(0===t)return 0;const r=(e.timestamp-s[t-1].timestamp)/1e3;return r>0?(e.bytesRecv-s[t-1].bytesRecv)/r:0}),color:o,flipped:!0,fixedSlots:l})})]}),t.jsxs("div",{className:"pt-2 flex justify-between items-center text-sm font-mono",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-text-muted",children:"Total"}),t.jsxs("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums",children:[t.jsx("span",{className:"text-accent-tertiary",children:I(a).value})," ",t.jsx("span",{className:"text-text-muted",children:I(a).unit})]}),t.jsxs("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums",children:[t.jsx("span",{className:"text-accent-primary",children:I(n).value})," ",t.jsx("span",{className:"text-text-muted",children:I(n).unit})]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(M,{className:"w-3.5 h-3.5",style:{color:o}}),t.jsx("span",{className:"text-xs font-mono",style:{color:o},children:"RX"}),t.jsx("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:W(r)})]})]})]})}),Q=e.memo(function({temperatures:e}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(T,{}),title:"Temperature",largeTitle:!0,actions:e&&t.jsx(J,{level:V(e)})}),t.jsx("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:e&&Object.keys(e).length>0?t.jsxs("div",{className:"space-y-3",children:[void 0!==e.cpu_thermal&&t.jsx(Y,{value:e.cpu_thermal,label:"CPU",min:20,max:100}),Object.entries(e).filter(([e])=>"cpu_thermal"!==e).slice(0,2).map(([e,s])=>t.jsx(Y,{value:s,label:e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),min:20,max:100},e))]}):t.jsxs("div",{className:"flex items-center justify-center text-text-muted text-sm",children:[t.jsx(k,{className:"w-4 h-4 mr-2"}),"No sensors"]})})]})}),ee=e.memo(function({usagePercent:e,used:s,available:r,memoryColor:a}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(k,{}),title:"Memory",largeTitle:!0,actions:t.jsxs("span",{className:"px-2 py-0.5 bg-subtle-fill-strong rounded text-base font-mono tabular-nums",style:{color:a},children:[e.toFixed(0),"%"]})}),t.jsxs("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:[t.jsxs("div",{className:"flex gap-1 h-12",children:[t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-primary",style:{width:`${e}%`}}),t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-tertiary",style:{width:100-e+"%"}})]}),t.jsxs("div",{className:"flex items-center justify-between text-xs font-mono pt-2",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-primary"}),t.jsx("span",{className:"text-text-muted",children:"Used"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:[(s/1048576).toFixed(0)," MB"]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-tertiary"}),t.jsx("span",{className:"text-text-muted",children:"Avail"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-muted",children:[(r/1048576).toFixed(0)," MB"]})]})]})]})]})}),te=e.memo(function({usagePercent:e,used:s,free:r,cpuColor:a}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(_,{}),title:"Disk",largeTitle:!0,actions:t.jsxs("span",{className:"px-2 py-0.5 bg-subtle-fill-strong rounded text-base font-mono tabular-nums",style:{color:a},children:[e.toFixed(0),"%"]})}),t.jsxs("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:[t.jsxs("div",{className:"flex gap-1 h-12",children:[t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-primary",style:{width:`${e}%`}}),t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-tertiary",style:{width:100-e+"%"}})]}),t.jsxs("div",{className:"flex items-center justify-between text-xs font-mono pt-2",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-primary"}),t.jsx("span",{className:"text-text-muted",children:"Used"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:[(s/1073741824).toFixed(1)," GB"]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-tertiary"}),t.jsx("span",{className:"text-text-muted",children:"Free"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-muted",children:[(r/1073741824).toFixed(1)," GB"]})]})]})]})]})}),se=e.memo(function({processes:e}){if(0===e.length)return null;const s=e.slice(0,10),r=Math.max(...s.map(e=>e.cpu_percent)),a=Math.max(...s.map(e=>e.memory_percent));return t.jsx(f,{noPadding:!0,children:t.jsxs("div",{className:"px-4 py-3",children:[t.jsx(v,{icon:t.jsx(k,{}),title:"Processes",largeTitle:!0}),t.jsxs("div",{className:"flex items-center gap-2 py-1.5 text-sm text-text-muted border-b border-border-subtle font-mono",children:[t.jsx("span",{className:"w-14",children:"PID"}),t.jsx("span",{className:"flex-1",children:"Program"}),t.jsx("span",{className:"w-[52px]"}),t.jsx("span",{className:"w-12 text-right",children:"CPU%"}),t.jsx("span",{className:"w-12 text-right",children:"MEM%"})]}),s.map(e=>t.jsx(q,{pid:e.pid,name:e.name,cpu:e.cpu_percent,mem:e.memory_percent,isTopCpu:e.cpu_percent===r&&r>0,isTopMem:e.memory_percent===a&&a>0},e.pid))]})})}),re=n.hero;function ae(){var r;const a=c(),o=l(),b=i(),w=m(),M=d(),[N,_]=e.useState([]),[T,B]=e.useState(!1),[P,$]=e.useState([]),[A,D]=e.useState(0),[U,H]=e.useState(0),G=e.useRef(null),V=x().primary,W=u().amber,I=function(){const[t,s]=e.useState("undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches);return e.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)");s(e.matches);const t=e=>s(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),t?n.hero:40}();return e.useEffect(()=>{if(!a)return;const e=Date.now(),t={timestamp:e,bytesRecv:a.network.bytes_recv,bytesSent:a.network.bytes_sent};if(G.current){const s=(e-G.current.timestamp)/1e3;if(s>0){const e=(t.bytesRecv-G.current.bytesRecv)/s,r=(t.bytesSent-G.current.bytesSent)/s;e>=0&&r>=0&&(D(e),H(r))}}G.current=t,$(e=>[...e,t].slice(-re))},[a]),e.useEffect(()=>{let e=!0;const t=async()=>{var t;const s=await p();e&&s.success&&(null==(t=s.data)?void 0:t.processes)&&_(s.data.processes)};t();const s=setInterval(t,5e3);return()=>{e=!1,clearInterval(s)}},[]),t.jsxs(g,{children:[t.jsx(y,{title:"System Stats",icon:t.jsx(F,{}),controls:t.jsxs("button",{onClick:async()=>{var e;B(!0),await w();const t=await p();t.success&&(null==(e=t.data)?void 0:e.processes)&&_(t.data.processes),B(!1)},disabled:T,className:"flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 bg-bg-subtle hover:bg-bg-elevated radius-inner transition-base text-sm text-text-muted hover:text-text-primary self-start sm:self-auto",children:[t.jsx(R,{className:s("w-4 h-4",T&&"animate-spin")}),"Refresh"]})}),t.jsxs(j,{children:[b&&t.jsx(f,{className:"border border-accent-danger/50 bg-accent-danger/10",children:t.jsx("p",{className:"text-accent-danger",children:b})}),o?t.jsx(f,{className:"p-12 text-center",children:t.jsx("div",{className:"animate-pulse text-text-muted",children:"Loading system stats..."})}):a?t.jsxs(t.Fragment,{children:[t.jsx(C,{template:"hero",children:t.jsxs(f,{children:[t.jsx(v,{icon:t.jsx(k,{}),title:"System Resources",largeTitle:!0,actions:t.jsxs("div",{className:"flex items-center gap-4",children:[(null==(r=a.system)?void 0:r.uptime)&&t.jsx("span",{className:"px-2 py-0.5 bg-white/[0.04] rounded text-sm font-mono tabular-nums text-text-primary",children:h(a.system.uptime)}),t.jsx(J,{level:O(a.cpu.usage_percent,L)}),t.jsx(J,{level:O(a.memory.usage_percent,z)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:"CPU"}),t.jsxs("span",{className:"text-base font-mono font-semibold tabular-nums",style:{color:V},children:[a.cpu.usage_percent.toFixed(0),"%"]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:"MEM"}),t.jsxs("span",{className:"text-base font-mono font-semibold tabular-nums",style:{color:W},children:[a.memory.usage_percent.toFixed(0),"%"]})]})]})}),t.jsx("div",{className:"flex-1 min-h-0 mt-2",children:t.jsx(E,{data:M,cpuColor:V,memoryColor:W})}),a.cpu.per_core_percent&&a.cpu.per_core_percent.length>0&&t.jsx("div",{className:"mt-3 pt-3 border-t border-border-subtle",children:t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-x-3 gap-y-0.5",children:a.cpu.per_core_percent.map((e,s)=>t.jsx(X,{index:s,usage:e},s))})})]})}),t.jsxs(C,{template:"compact",children:[t.jsx(S,{span:12,md:6,children:t.jsx(Z,{networkHistory:P,txRate:U,rxRate:A,totalBytesSent:a.network.bytes_sent,totalBytesRecv:a.network.bytes_recv,cpuColor:V,memoryColor:W,networkSlots:I})}),t.jsx(S,{span:12,md:6,children:t.jsx(Q,{temperatures:a.temperatures})})]}),t.jsxs(C,{template:"compact",children:[t.jsx(S,{span:6,children:t.jsx(ee,{usagePercent:a.memory.usage_percent,used:a.memory.used,available:a.memory.available,memoryColor:W})}),t.jsx(S,{span:6,children:t.jsx(te,{usagePercent:a.disk.usage_percent,used:a.disk.used,free:a.disk.free,cpuColor:V})})]}),t.jsx(C,{template:"auto",children:t.jsx(se,{processes:N})})]}):null]})]})}export{ae as default}; +import{r as e,j as t,c as s}from"./vendor-react-BKIq8k5U.js";import{c as r,a,d as n,b1 as o,b2 as c,b3 as l,b4 as i,b5 as m,b6 as d,aM as x,aE as u,b7 as h,b8 as p}from"./index-CrU_Ps9k.js";import{a as f,P as g,b as y,B as j}from"./PageLayout-BlXA3E6H.js";import{T as b}from"./triangle-alert-DrmOKr32.js";import{C as v}from"./Card-Cq7dyTi6.js";import{a as w,A as M}from"./arrow-up-2wZY9TSM.js";import{N}from"./network-BfZEswvU.js";import{A as k}from"./activity-DIYCEspu.js";import{R}from"./refresh-cw-C1m-5omb.js";import{R as C,C as S}from"./Grid-BkE6UU8f.js";import"./deckgl-DTsmDcfs.js";import"./vendor-core-D1aqi_5O.js";const F=r("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),_=r("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),T=r("thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]),B=n.hero;function P(){const e=getComputedStyle(document.documentElement);return{fontFamily:e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',textPrimary:e.getPropertyValue("--text-primary").trim()||"#FFFFFF",textMuted:e.getPropertyValue("--text-muted").trim()||"#727272",gridColor:e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)"}}function $(e){const t=Math.max(0,Math.min(1,e)),s=[{pos:0,color:{r:142,g:78,b:198}},{pos:.25,color:{r:91,g:91,b:214}},{pos:.5,color:{r:0,g:162,b:199}},{pos:.75,color:{r:255,g:178,b:36}},{pos:1,color:{r:229,g:72,b:77}}];let r=s[0],a=s[s.length-1];for(let c=0;c=s[c].pos&&t<=s[c+1].pos){r=s[c],a=s[c+1];break}const n=a.pos-r.pos,o=n>0?(t-r.pos)/n:0;return function(e,t,s){const r=2.2,a=1/r,n=Math.pow(e.r/255,r),o=Math.pow(e.g/255,r),c=Math.pow(e.b/255,r),l=Math.pow(t.r/255,r),i=Math.pow(t.g/255,r),m=Math.pow(t.b/255,r),d=255*Math.pow(n+s*(l-n),a),x=255*Math.pow(o+s*(i-o),a),u=255*Math.pow(c+s*(m-c),a);return{r:Math.round(Math.max(0,Math.min(255,d))),g:Math.round(Math.max(0,Math.min(255,x))),b:Math.round(Math.max(0,Math.min(255,u)))}}(r.color,a.color,o)}const E=e.memo(function({data:s,cpuColor:r,memoryColor:n}){const c=e.useRef(null),l=e.useRef(null),i=e.useRef([]),m=e.useRef(r),d=e.useRef(n),x=e.useRef(null),u=e.useRef(s.length);e.useLayoutEffect(()=>{m.current=r,d.current=n}),e.useEffect(()=>{x.current=P()},[]);const h=e.useMemo(()=>function(e){const t=[],s=Math.max(0,B-e.length),r=Date.now(),a=o.system;for(let o=0;o{i.current=h},[h]);const p=e.useMemo(()=>[h.map(e=>e.timestamp),new Array(h.length).fill(1)],[h]),f=e.useMemo(()=>({hooks:{draw:e=>{const t=x.current||P();!function(e,t,s,r,a){if(0===t.length)return;const n=e.ctx,{left:o,top:c,width:l,height:i}=e.bbox,m=window.devicePixelRatio||1;if(l<=0||i<=0)return;const d=e.data[0],x=d.length;if(0===x)return;const u=d[0],h=d[x-1]-u||1,p=e=>o+(e-u)/h*l,f=e=>{const t=Math.min(Math.max(e/100,0),1);return c+i*(1-t)};n.save(),n.strokeStyle=a.textPrimary,n.globalAlpha=.1,n.lineWidth=1*m,n.setLineDash([4*m,4*m]);for(const w of[25,50,75]){const e=Math.round(f(w))+.5;n.beginPath(),n.moveTo(Math.round(o),e),n.lineTo(Math.round(o+l),e),n.stroke()}n.restore(),n.save(),n.font=`bold ${10*m}px ${a.fontFamily}`,n.fillStyle=a.textMuted,n.textBaseline="middle",n.textAlign="left";const g=8*m;for(const w of[0,25,50,75,100]){const e=f(w),t=Math.max(c+g,Math.min(c+i-g,e));n.fillText(`${w}%`,4*m,t)}n.restore(),n.save();const y=l/x;for(let w=0;w0){const e=t[x-1],s=d[x-1];e&&(n.textAlign="right",n.fillText(e.time,p(s),c+i+6*m))}n.restore()}(e,i.current,m.current,d.current,t)}}}),[]),g=e.useMemo(()=>({width:400,height:240,padding:[8,8,24,36],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,100]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[f]}),[f]);return e.useEffect(()=>{const e=c.current;if(!e||0===h.length)return;const t=u.current,r=s.length,n=Math.abs(r-t);if(!(!l.current||n>50||t>0&&n/t>.2)&&l.current)return l.current.setData(p),void(u.current=r);l.current&&l.current.destroy();const o=e.getBoundingClientRect(),i=Math.floor(o.width)||400,m=Math.floor(o.height)||240,d=new a({...g,width:i,height:m},p,e);return l.current=d,u.current=r,()=>{d.destroy(),l.current=null}},[g,p,h.length,s.length]),e.useEffect(()=>{const e=c.current;if(!e)return;const t=new ResizeObserver(e=>{const t=e[0];if(!t||!l.current)return;const{width:s,height:r}=t.contentRect;s>0&&r>0&&l.current.setSize({width:Math.floor(s),height:Math.floor(r)})});return t.observe(e),()=>{t.disconnect()}},[]),e.useEffect(()=>{l.current&&l.current.redraw()},[r,n,h]),0===s.length?t.jsx("div",{className:"h-[240px] flex items-center justify-center text-text-muted",children:"Collecting data..."}):t.jsx("div",{ref:c,className:"w-full h-[240px] rounded-lg overflow-hidden"})});function A(e){const t=Math.max(0,Math.min(1,e)),s=[{pos:0,color:{r:142,g:78,b:198}},{pos:.25,color:{r:91,g:91,b:214}},{pos:.5,color:{r:0,g:162,b:199}},{pos:.75,color:{r:255,g:178,b:36}},{pos:1,color:{r:229,g:72,b:77}}];let r=s[0],a=s[s.length-1];for(let c=0;c=s[c].pos&&t<=s[c+1].pos){r=s[c],a=s[c+1];break}const n=a.pos-r.pos,o=n>0?(t-r.pos)/n:0;return function(e,t,s){const r=2.2,a=1/r,n=Math.pow(e.r/255,r),o=Math.pow(e.g/255,r),c=Math.pow(e.b/255,r),l=Math.pow(t.r/255,r),i=Math.pow(t.g/255,r),m=Math.pow(t.b/255,r),d=255*Math.pow(n+s*(l-n),a),x=255*Math.pow(o+s*(i-o),a),u=255*Math.pow(c+s*(m-c),a);return{r:Math.round(Math.max(0,Math.min(255,d))),g:Math.round(Math.max(0,Math.min(255,x))),b:Math.round(Math.max(0,Math.min(255,u)))}}(r.color,a.color,o)}const D=e.memo(function({data:s,color:r,flipped:n=!1,fixedSlots:o}){const c=e.useRef(null),l=e.useRef(null),i=e.useRef(s),m=e.useRef(r),d=e.useRef(n),x=e.useRef(o);e.useLayoutEffect(()=>{i.current=s,m.current=r,d.current=n,x.current=o});const u=e.useMemo(()=>[Array.from({length:o},(e,t)=>t),new Array(o).fill(1)],[o]),h=e.useMemo(()=>({hooks:{draw:e=>{!function(e,t,s,r,a){const n=e.ctx,{left:o,top:c,width:l,height:i}=e.bbox;if(l<=0||i<=0)return;const m=[...Array(Math.max(0,a-t.length)).fill(0),...t.slice(-a)],d=Math.max(...m,1),x=m.length,u=l/x,h=.03*i;n.save();for(let p=0;p({width:400,height:40,padding:[0,0,0,0],legend:{show:!1},cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1,label:""}],plugins:[h]}),[h]);return e.useEffect(()=>{const e=c.current;if(!e)return;l.current&&l.current.destroy();const t=e.getBoundingClientRect(),s=Math.floor(t.width)||400,r=Math.floor(t.height)||40,n=new a({...p,width:s,height:r},u,e);return l.current=n,()=>{n.destroy(),l.current=null}},[p,u]),e.useEffect(()=>{const e=c.current;if(!e)return;const t=new ResizeObserver(e=>{const t=e[0];if(!t||!l.current)return;const{width:s,height:r}=t.contentRect;s>0&&r>0&&l.current.setSize({width:Math.floor(s),height:Math.floor(r)})});return t.observe(e),()=>{t.disconnect()}},[]),e.useEffect(()=>{l.current&&l.current.redraw()},[s,r,n]),t.jsx("div",{ref:c,className:"w-full h-full"})}),L={warning:80,danger:95},z={warning:85,danger:95},U={warning:70,danger:85},H=[{threshold:30,color:"var(--accent-tertiary)"},{threshold:50,color:"var(--accent-primary)"},{threshold:65,color:"var(--accent-secondary)"},{threshold:80,color:"var(--signal-poor)"}];function G(e,t,s){const r=s-t,a={cold:(30-t)/r*100,normal:(50-t)/r*100,warm:(65-t)/r*100,hot:(80-t)/r*100};return`linear-gradient(to right, ${[{pos:0,color:"var(--accent-tertiary)"},{pos:a.cold,color:"var(--accent-tertiary)"},{pos:a.cold,color:"var(--accent-primary)"},{pos:a.normal,color:"var(--accent-primary)"},{pos:a.normal,color:"var(--accent-secondary)"},{pos:a.warm,color:"var(--accent-secondary)"},{pos:a.warm,color:"var(--signal-poor)"},{pos:a.hot,color:"var(--signal-poor)"},{pos:a.hot,color:"var(--accent-danger)"},{pos:100,color:"var(--accent-danger)"}].map(t=>{const s=e>0?t.pos/e*100:0;return`${t.color} ${Math.min(s,100)}%`}).join(", ")})`}function O(e,t){return e>=t.danger?"danger":e>=t.warning?"warning":"none"}function V(e){let t="none";for(const s of Object.values(e)){const e=O(s,U);if("danger"===e)return"danger";"warning"===e&&(t="warning")}return t}function W(e){let t,s,r;return e>=1073741824?(t=e/1073741824,s="GB/s"):e>=1048576?(t=e/1048576,s="MB/s"):e>=1024?(t=e/1024,s="KB/s"):(t=e,s="B/s"),r=t>=100?t.toFixed(0):t.toFixed(1),`${r} ${s}`}function I(e){return e>=1073741824?{value:(e/1073741824).toFixed(1),unit:"GiB"}:e>=1048576?{value:(e/1048576).toFixed(1),unit:"MiB"}:e>=1024?{value:(e/1024).toFixed(1),unit:"KiB"}:{value:String(e),unit:"B"}}const J=e.memo(function({level:e}){return"none"===e?null:t.jsxs("span",{className:s("inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium","danger"===e&&"bg-accent-danger/20 text-accent-danger","warning"===e&&"bg-accent-secondary/20 text-accent-secondary"),children:[t.jsx(b,{className:"w-3 h-3"}),"danger"===e?"High":"Warn"]})}),K=e.memo(function({value:e,max:s=100,width:r=10,color:a="primary"}){const n=Math.min(e/s,1),o=Math.round(n*r),c=r-o,l="■".repeat(o),i="·".repeat(c),m={primary:"text-accent-primary",secondary:"text-accent-secondary",success:"text-accent-success",danger:"text-accent-danger"}[a];return t.jsxs("span",{className:"font-mono text-[10px] tracking-tight",children:[t.jsx("span",{className:m,children:l}),t.jsx("span",{className:"text-text-muted/40",children:i})]})}),X=e.memo(function({index:e,usage:r}){const a=r>90?"danger":r>70?"secondary":"primary";return t.jsxs("div",{className:"flex items-center gap-1 text-xs font-mono",children:[t.jsxs("span",{className:"text-text-muted w-5",children:["C",e]}),t.jsx(K,{value:r,width:8,color:a}),t.jsxs("span",{className:s("w-7 text-right tabular-nums",r>90?"text-accent-danger":r>70?"text-accent-secondary":"text-accent-success"),children:[r.toFixed(0),"%"]})]})}),q=e.memo(function({pid:e,name:r,cpu:a,mem:n,isTopCpu:o=!1,isTopMem:c=!1}){return t.jsxs("div",{className:"flex items-center gap-2 py-1 text-sm font-mono hover:bg-subtle-fill -mx-1 px-1 rounded",children:[t.jsx("span",{className:"text-text-muted w-14 tabular-nums",children:e}),t.jsx("span",{className:"flex-1 truncate text-text-primary",children:r}),t.jsx(K,{value:a,max:100,width:6,color:a>50?"danger":a>20?"secondary":"success"}),t.jsx("span",{className:s("w-12 text-right tabular-nums",o?"text-text-primary":a>50?"text-accent-danger":a>20?"text-accent-secondary":"text-text-muted"),children:a.toFixed(1)}),t.jsx("span",{className:s("w-12 text-right tabular-nums",c?"text-text-primary":n>50?"text-accent-danger":n>20?"text-accent-secondary":"text-text-muted"),children:n.toFixed(1)})]})}),Y=e.memo(function({value:e,label:s,min:r=20,max:a=100}){const n=Math.min(Math.max((e-r)/(a-r)*100,0),100),o=function(e){return e<30?{text:"Cool",color:"text-accent-tertiary"}:e<50?{text:"Normal",color:"text-accent-primary"}:e<65?{text:"Warm",color:"text-accent-secondary"}:e<80?{text:"Hot",color:"text-signal-poor"}:{text:"Danger",color:"text-accent-danger"}}(e),c=a-r;return t.jsxs("div",{className:"space-y-1.5",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:s}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:o.text}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded text-sm font-mono tabular-nums",children:[t.jsx("span",{className:o.color,children:e.toFixed(1)}),t.jsx("span",{className:"text-text-primary",children:"°C"})]})]})]}),t.jsxs("div",{className:"relative h-3 bg-subtle-fill overflow-hidden",children:[t.jsx("div",{className:"absolute inset-y-0 left-0 transition-all duration-300 ease-out",style:{background:G(n,r,a),width:`${n}%`}}),t.jsx("div",{className:"absolute inset-0 flex items-center pointer-events-none",children:H.map(({threshold:e,color:s})=>{const a=(e-r)/c*100;return a<0||a>100?null:t.jsx("div",{className:"absolute w-px h-full",style:{left:`${a}%`,backgroundColor:s}},e)})})]})]})});e.memo(function({data:e,color:s,flipped:r=!1,fixedSlots:a}){const n=[...Array(Math.max(0,a-e.length)).fill(0),...e.slice(-a)],o=Math.max(...n,1),c=n.map(e=>0===e?0:Math.max(e/o*100,3));return t.jsx("div",{className:"w-full h-full flex items-end",style:{transform:r?"scaleY(-1)":void 0},children:c.map((e,r)=>t.jsx("div",{className:"flex-1 min-w-0",style:{height:e>0?`${e}%`:"0%",backgroundColor:e>0?s:"transparent"}},r))})});const Z=e.memo(function({networkHistory:e,txRate:s,rxRate:r,totalBytesSent:a,totalBytesRecv:n,cpuColor:o,memoryColor:c,networkSlots:l}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(N,{}),title:"Network",largeTitle:!0,actions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(w,{className:"w-3.5 h-3.5",style:{color:c}}),t.jsx("span",{className:"text-xs font-mono",style:{color:c},children:"TX"}),t.jsx("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded text-sm font-mono tabular-nums text-text-primary",children:W(s)})]})}),t.jsxs("div",{className:"flex flex-col h-[120px]",children:[t.jsx("div",{className:"h-[60px]",children:t.jsx(D,{data:e.map((e,t,s)=>{if(0===t)return 0;const r=(e.timestamp-s[t-1].timestamp)/1e3;return r>0?(e.bytesSent-s[t-1].bytesSent)/r:0}),color:c,fixedSlots:l})}),t.jsx("div",{className:"h-[60px]",children:t.jsx(D,{data:e.map((e,t,s)=>{if(0===t)return 0;const r=(e.timestamp-s[t-1].timestamp)/1e3;return r>0?(e.bytesRecv-s[t-1].bytesRecv)/r:0}),color:o,flipped:!0,fixedSlots:l})})]}),t.jsxs("div",{className:"pt-2 flex justify-between items-center text-sm font-mono",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-text-muted",children:"Total"}),t.jsxs("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums",children:[t.jsx("span",{className:"text-accent-tertiary",children:I(a).value})," ",t.jsx("span",{className:"text-text-muted",children:I(a).unit})]}),t.jsxs("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums",children:[t.jsx("span",{className:"text-accent-primary",children:I(n).value})," ",t.jsx("span",{className:"text-text-muted",children:I(n).unit})]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(M,{className:"w-3.5 h-3.5",style:{color:o}}),t.jsx("span",{className:"text-xs font-mono",style:{color:o},children:"RX"}),t.jsx("span",{className:"px-2 py-1 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:W(r)})]})]})]})}),Q=e.memo(function({temperatures:e}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(T,{}),title:"Temperature",largeTitle:!0,actions:e&&t.jsx(J,{level:V(e)})}),t.jsx("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:e&&Object.keys(e).length>0?t.jsxs("div",{className:"space-y-3",children:[void 0!==e.cpu_thermal&&t.jsx(Y,{value:e.cpu_thermal,label:"CPU",min:20,max:100}),Object.entries(e).filter(([e])=>"cpu_thermal"!==e).slice(0,2).map(([e,s])=>t.jsx(Y,{value:s,label:e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),min:20,max:100},e))]}):t.jsxs("div",{className:"flex items-center justify-center text-text-muted text-sm",children:[t.jsx(k,{className:"w-4 h-4 mr-2"}),"No sensors"]})})]})}),ee=e.memo(function({usagePercent:e,used:s,available:r,memoryColor:a}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(k,{}),title:"Memory",largeTitle:!0,actions:t.jsxs("span",{className:"px-2 py-0.5 bg-subtle-fill-strong rounded text-base font-mono tabular-nums",style:{color:a},children:[e.toFixed(0),"%"]})}),t.jsxs("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:[t.jsxs("div",{className:"flex gap-1 h-12",children:[t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-primary",style:{width:`${e}%`}}),t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-tertiary",style:{width:100-e+"%"}})]}),t.jsxs("div",{className:"flex items-center justify-between text-xs font-mono pt-2",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-primary"}),t.jsx("span",{className:"text-text-muted",children:"Used"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:[(s/1048576).toFixed(0)," MB"]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-tertiary"}),t.jsx("span",{className:"text-text-muted",children:"Avail"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-muted",children:[(r/1048576).toFixed(0)," MB"]})]})]})]})]})}),te=e.memo(function({usagePercent:e,used:s,free:r,cpuColor:a}){return t.jsxs(f,{className:"flex flex-col",children:[t.jsx(v,{icon:t.jsx(_,{}),title:"Disk",largeTitle:!0,actions:t.jsxs("span",{className:"px-2 py-0.5 bg-subtle-fill-strong rounded text-base font-mono tabular-nums",style:{color:a},children:[e.toFixed(0),"%"]})}),t.jsxs("div",{className:"flex-1 flex flex-col justify-center min-h-0",children:[t.jsxs("div",{className:"flex gap-1 h-12",children:[t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-primary",style:{width:`${e}%`}}),t.jsx("div",{className:"h-full transition-all duration-300 bg-accent-tertiary",style:{width:100-e+"%"}})]}),t.jsxs("div",{className:"flex items-center justify-between text-xs font-mono pt-2",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-primary"}),t.jsx("span",{className:"text-text-muted",children:"Used"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-primary",children:[(s/1073741824).toFixed(1)," GB"]})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-2.5 h-2.5 rounded-sm bg-accent-tertiary"}),t.jsx("span",{className:"text-text-muted",children:"Free"}),t.jsxs("span",{className:"px-1.5 py-0.5 bg-subtle-fill-strong rounded tabular-nums text-text-muted",children:[(r/1073741824).toFixed(1)," GB"]})]})]})]})]})}),se=e.memo(function({processes:e}){if(0===e.length)return null;const s=e.slice(0,10),r=Math.max(...s.map(e=>e.cpu_percent)),a=Math.max(...s.map(e=>e.memory_percent));return t.jsx(f,{noPadding:!0,children:t.jsxs("div",{className:"px-4 py-3",children:[t.jsx(v,{icon:t.jsx(k,{}),title:"Processes",largeTitle:!0}),t.jsxs("div",{className:"flex items-center gap-2 py-1.5 text-sm text-text-muted border-b border-border-subtle font-mono",children:[t.jsx("span",{className:"w-14",children:"PID"}),t.jsx("span",{className:"flex-1",children:"Program"}),t.jsx("span",{className:"w-[52px]"}),t.jsx("span",{className:"w-12 text-right",children:"CPU%"}),t.jsx("span",{className:"w-12 text-right",children:"MEM%"})]}),s.map(e=>t.jsx(q,{pid:e.pid,name:e.name,cpu:e.cpu_percent,mem:e.memory_percent,isTopCpu:e.cpu_percent===r&&r>0,isTopMem:e.memory_percent===a&&a>0},e.pid))]})})}),re=n.hero;function ae(){var r;const a=c(),o=l(),b=i(),w=m(),M=d(),[N,_]=e.useState([]),[T,B]=e.useState(!1),[P,$]=e.useState([]),[A,D]=e.useState(0),[U,H]=e.useState(0),G=e.useRef(null),V=x().primary,W=u().amber,I=function(){const[t,s]=e.useState("undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches);return e.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)");s(e.matches);const t=e=>s(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),t?n.hero:40}();return e.useEffect(()=>{if(!a)return;const e=Date.now(),t={timestamp:e,bytesRecv:a.network.bytes_recv,bytesSent:a.network.bytes_sent};if(G.current){const s=(e-G.current.timestamp)/1e3;if(s>0){const e=(t.bytesRecv-G.current.bytesRecv)/s,r=(t.bytesSent-G.current.bytesSent)/s;e>=0&&r>=0&&(D(e),H(r))}}G.current=t,$(e=>[...e,t].slice(-re))},[a]),e.useEffect(()=>{let e=!0;const t=async()=>{var t;const s=await p();e&&s.success&&(null==(t=s.data)?void 0:t.processes)&&_(s.data.processes)};t();const s=setInterval(t,5e3);return()=>{e=!1,clearInterval(s)}},[]),t.jsxs(g,{children:[t.jsx(y,{title:"System Stats",icon:t.jsx(F,{}),controls:t.jsxs("button",{onClick:async()=>{var e;B(!0),await w();const t=await p();t.success&&(null==(e=t.data)?void 0:e.processes)&&_(t.data.processes),B(!1)},disabled:T,className:"flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 bg-bg-subtle hover:bg-bg-elevated radius-inner transition-base text-sm text-text-muted hover:text-text-primary self-start sm:self-auto",children:[t.jsx(R,{className:s("w-4 h-4",T&&"animate-spin")}),"Refresh"]})}),t.jsxs(j,{children:[b&&t.jsx(f,{className:"border border-accent-danger/50 bg-accent-danger/10",children:t.jsx("p",{className:"text-accent-danger",children:b})}),o?t.jsx(f,{className:"p-12 text-center",children:t.jsx("div",{className:"animate-pulse text-text-muted",children:"Loading system stats..."})}):a?t.jsxs(t.Fragment,{children:[t.jsx(C,{template:"hero",children:t.jsxs(f,{children:[t.jsx(v,{icon:t.jsx(k,{}),title:"System Resources",largeTitle:!0,actions:t.jsxs("div",{className:"flex items-center gap-4",children:[(null==(r=a.system)?void 0:r.uptime)&&t.jsx("span",{className:"px-2 py-0.5 bg-white/[0.04] rounded text-sm font-mono tabular-nums text-text-primary",children:h(a.system.uptime)}),t.jsx(J,{level:O(a.cpu.usage_percent,L)}),t.jsx(J,{level:O(a.memory.usage_percent,z)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:"CPU"}),t.jsxs("span",{className:"text-base font-mono font-semibold tabular-nums",style:{color:V},children:[a.cpu.usage_percent.toFixed(0),"%"]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-mono text-text-muted",children:"MEM"}),t.jsxs("span",{className:"text-base font-mono font-semibold tabular-nums",style:{color:W},children:[a.memory.usage_percent.toFixed(0),"%"]})]})]})}),t.jsx("div",{className:"flex-1 min-h-0 mt-2",children:t.jsx(E,{data:M,cpuColor:V,memoryColor:W})}),a.cpu.per_core_percent&&a.cpu.per_core_percent.length>0&&t.jsx("div",{className:"mt-3 pt-3 border-t border-border-subtle",children:t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-x-3 gap-y-0.5",children:a.cpu.per_core_percent.map((e,s)=>t.jsx(X,{index:s,usage:e},s))})})]})}),t.jsxs(C,{template:"compact",children:[t.jsx(S,{span:12,md:6,children:t.jsx(Z,{networkHistory:P,txRate:U,rxRate:A,totalBytesSent:a.network.bytes_sent,totalBytesRecv:a.network.bytes_recv,cpuColor:V,memoryColor:W,networkSlots:I})}),t.jsx(S,{span:12,md:6,children:t.jsx(Q,{temperatures:a.temperatures})})]}),t.jsxs(C,{template:"compact",children:[t.jsx(S,{span:6,children:t.jsx(ee,{usagePercent:a.memory.usage_percent,used:a.memory.used,available:a.memory.available,memoryColor:W})}),t.jsx(S,{span:6,children:t.jsx(te,{usagePercent:a.disk.usage_percent,used:a.disk.used,free:a.disk.free,cpuColor:V})})]}),t.jsx(C,{template:"auto",children:t.jsx(se,{processes:N})})]}):null]})]})}export{ae as default}; diff --git a/frontend/dist/assets/Terminal-CV8ay32y.js b/frontend/dist/assets/Terminal-Val-2gFV.js similarity index 99% rename from frontend/dist/assets/Terminal-CV8ay32y.js rename to frontend/dist/assets/Terminal-Val-2gFV.js index e6f8816d..ecf4faf7 100644 --- a/frontend/dist/assets/Terminal-CV8ay32y.js +++ b/frontend/dist/assets/Terminal-Val-2gFV.js @@ -1 +1 @@ -import{r as e,j as t,c as a}from"./vendor-react-BKIq8k5U.js";import{bf as r,a3 as s,bg as n,W as o,V as i,j as l,e as c,bh as d,bi as p,bj as m,bk as u,bl as y,bm as g,bn as h}from"./index-_WuEOacy.js";import{a as f}from"./ping-BaWqaU2w.js";import{c as v}from"./vendor-core-D1aqi_5O.js";import{P as b,d as x}from"./payload-decoders-BC60O4FC.js";import{P as w,b as _,B as S,a as O}from"./PageLayout-C4LpOVqW.js";import"./deckgl-DTsmDcfs.js";function k(){const e=new Date;return`${e.toISOString().slice(0,10)}_${e.toTimeString().slice(0,8).replace(/:/g,"-")}`}function $(e,t){return`pymc-${e.toISOString().slice(0,10)}-${e.toTimeString().slice(0,5).replace(":","")}-${t}s.json`}const P=v((e,t)=>({isCapturing:!1,captureStartTime:null,captureStartPacketHashes:new Set,captureTimer:null,reports:[],startCapture:a=>{const{captureTimer:r}=t();r&&clearTimeout(r),e({isCapturing:!0,captureStartTime:new Date,captureStartPacketHashes:new Set(a.map(e=>e.packet_hash))})},stopCapture:a=>{const{isCapturing:r,captureStartTime:s,captureStartPacketHashes:n,captureTimer:o}=t();if(!r||!s)return null;o&&clearTimeout(o);const i=new Date,l=Math.round((i.getTime()-s.getTime())/1e3),c=s.getTime()/1e3,d=a.filter(e=>!n.has(e.packet_hash)&&e.timestamp>=c).sort((e,t)=>e.timestamp-t.timestamp),p={id:k(),filename:$(s,l),startTime:s,endTime:i,durationSec:l,packetCount:d.length,packets:d,sizeBytes:500*d.length};return e(e=>({isCapturing:!1,captureStartTime:null,captureStartPacketHashes:new Set,captureTimer:null,reports:[p,...e.reports].slice(0,10)})),p},getReport:e=>t().reports.find(t=>t.id===e),_setTimer:t=>e({captureTimer:t})}));function C(e){var t;return(null==(t=e.match(/.{1,2}/g))?void 0:t.join(" ").toUpperCase())||""}function T(e){return void 0===e?"UNKNOWN":i[e]??`TYPE_${e}`}function E(e){return void 0===e?"UNKNOWN":o[e]??`ROUTE_${e}`}function N(e,t){switch(e){case 4:return function(e){const t=[];let a=0;if(e.length>=32&&(t.push({name:"public_key",offset:a,length:32,bytes:C(n(e.slice(a,a+32))),decoded:{value:n(e.slice(a,a+32))}}),a+=32),e.length>=a+4){const r=e.slice(a,a+4),s=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;t.push({name:"timestamp",offset:a,length:4,bytes:C(n(r)),decoded:{value:s>>>0,iso:new Date(1e3*s).toISOString()}}),a+=4}if(e.length>=a+64&&(t.push({name:"signature",offset:a,length:64,bytes:C(n(e.slice(a,a+64))),decoded:{value:n(e.slice(a,a+64))}}),a+=64),e.length>a){const r=e[a],s=[];if(1&r&&s.push("CHAT_NODE"),2&r&&s.push("REPEATER"),3&r&&s.push("ROOM_SERVER"),16&r&&s.push("HAS_LOCATION"),128&r&&s.push("HAS_NAME"),t.push({name:"flags",offset:a,length:1,bytes:C(n(e.slice(a,a+1))),decoded:{value:r,binary:r.toString(2).padStart(8,"0"),flags:s}}),a+=1,16&r&&e.length>=a+8){const r=e.slice(a,a+8),s=new ArrayBuffer(8);new Uint8Array(s).set(r);const o=new DataView(s),i=o.getInt32(0,!0),l=o.getInt32(4,!0);t.push({name:"location",offset:a,length:8,bytes:C(n(r)),decoded:{lat_raw:i,lon_raw:l,latitude:i/1e6,longitude:l/1e6}}),a+=8}if(128&r&&e.length>a){const r=e.slice(a);let s=r.indexOf(0);-1===s&&(s=r.length);const o=(new TextDecoder).decode(r.slice(0,s));t.push({name:"name",offset:a,length:s+(0===r[s]?1:0),bytes:C(n(r.slice(0,s+1))),decoded:{value:o,encoding:"utf-8",null_terminated:0===r[s]}})}}return t}(t);case 3:return function(e){if(e.length<4)return[];const t=e.slice(0,4),a=t[0]|t[1]<<8|t[2]<<16|t[3]<<24;return[{name:"crc",offset:0,length:4,bytes:C(n(t)),decoded:{value:a>>>0,hex:(a>>>0).toString(16).toUpperCase().padStart(8,"0"),note:"CRC of the acknowledged packet (little-endian)"}}]}(t);case 9:return function(e){const t=[];if(e.length<9)return t;const a=e.slice(0,4),r=a[0]|a[1]<<8|a[2]<<16|a[3]<<24;t.push({name:"trace_tag",offset:0,length:4,bytes:C(n(a)),decoded:{value:r>>>0,hex:(r>>>0).toString(16).toUpperCase().padStart(8,"0")}});const s=e.slice(4,8),o=s[0]|s[1]<<8|s[2]<<16|s[3]<<24;if(t.push({name:"auth_code",offset:4,length:4,bytes:C(n(s)),decoded:{value:o>>>0}}),t.push({name:"flags",offset:8,length:1,bytes:C(n(e.slice(8,9))),decoded:{value:e[8],binary:e[8].toString(2).padStart(8,"0")}}),e.length>9){const a=e.slice(9),r=Array.from(a).map(e=>e.toString(16).toUpperCase().padStart(2,"0"));t.push({name:"target_path",offset:9,length:a.length,bytes:C(n(a)),decoded:{hops:r,path_string:r.join("->")}})}return t}(t);case 8:return function(e){if(0===e.length)return[];const t=Array.from(e).map(e=>e.toString(16).toUpperCase().padStart(2,"0"));return[{name:"path_hops",offset:0,length:e.length,bytes:C(n(e)),decoded:{hops:t,path_string:t.join("->")}}]}(t);case 5:return function(e){const t=[];if(e.length<1)return t;if(t.push({name:"channel_hash",offset:0,length:1,bytes:C(n(e.slice(0,1))),decoded:{value:e[0].toString(16).toUpperCase().padStart(2,"0")}}),e.length>13){const a=12,r=e.length-1-a;t.push({name:"ciphertext",offset:1,length:r,bytes:C(n(e.slice(1,1+r))),decoded:{length:r,note:"Encrypted message content"}}),t.push({name:"mac",offset:1+r,length:a,bytes:C(n(e.slice(-a))),decoded:{note:"Message authentication code"}})}return t}(t);default:return function(e){return 0===e.length?[]:[{name:"raw_data",offset:0,length:e.length,bytes:C(n(e)),decoded:{length:e.length}}]}(t)}}function j(e){const t=e.type??e.payload_type??0,a=e.route??e.route_type??0,r=e.raw_packet||"";let o,i=null;if(r){const t=b.fromHex(r);if(t.success&&t.packet){const e=t.packet;try{i=x(e)}catch{i=null}const a=s(r);let l=0;const c={offset:0,length:1,bytes:C(r.slice(0,2)),decoded:{route_type:e.routeType,route_name:e.routeTypeName,payload_type:e.payloadType,payload_name:e.payloadTypeName,version:e.payloadVersion}};l+=1,e.hasTransportCodes()&&(l+=4);const d={offset:l,length:1,bytes:C(n(a.slice(l,l+1))),decoded:{value:e.pathLen}};l+=1;const p=l,m=a.slice(l,l+e.pathLen),u=Array.from(e.path).map(e=>e.toString(16).toUpperCase().padStart(2,"0")),y=9===e.payloadType,g={offset:p,length:e.pathLen,bytes:C(n(m)),decoded:{hops:u,path_string:u.length>0?u.join("->"):"(direct)",...y&&{note:"For TRACE packets, path bytes are SNR×4 values, not node hashes",snr_values:Array.from(e.path).map(e=>{let t=e;return t>127&&(t-=256),t/4})}}};l+=e.pathLen,o={header:c,path_length:d,path:g,payload:{offset:l,length:e.payload.length,bytes:C(e.payloadHex),sections:N(e.payloadType,e.payload)}}}else o=D(e)}else o=D(e);return{timestamp:e.timestamp,packet_hash:e.packet_hash,type:t,type_name:T(t),route:a,route_name:E(a),rssi:e.rssi,snr:e.snr,length:e.length??0,src_hash:e.src_hash,dst_hash:e.dst_hash,transmitted:e.transmitted,drop_reason:e.drop_reason,is_duplicate:e.is_duplicate,lbt_attempts:e.lbt_attempts,lbt_backoff_delays_ms:e.lbt_backoff_delays_ms,lbt_channel_busy:e.lbt_channel_busy,raw_packet:r,structure:o,decoded:i}}function D(e){var t;const a=e.type??e.payload_type??0,r=e.route??e.route_type??0,n=e.original_path??e.forwarded_path??[];return{header:{offset:0,length:1,bytes:"??",decoded:{route_type:r,route_name:E(r),payload_type:a,payload_name:T(a),version:0}},path_length:{offset:1,length:1,bytes:n.length.toString(16).toUpperCase().padStart(2,"0"),decoded:{value:n.length}},path:{offset:2,length:n.length,bytes:n.join(" "),decoded:{hops:n,path_string:n.length>0?n.join("->"):"(direct)"}},payload:{offset:2+n.length,length:(null==(t=e.payload)?void 0:t.length)??0,bytes:e.payload??"",sections:e.payload?N(a,s(e.payload)):[]}}}function R(e,t){const a=function(e,t){var a;return{capture:{start:e.startTime.toISOString(),end:e.endTime.toISOString(),duration_sec:e.durationSec,packet_count:e.packetCount,node_name:(null==t?void 0:t.node_name)??"unknown",local_hash:(null==t?void 0:t.local_hash)??"unknown",pymc_console_version:r,pymc_repeater_version:(null==t?void 0:t.version)??"unknown",radio_config:(null==(a=null==t?void 0:t.config)?void 0:a.radio)?{frequency:t.config.radio.frequency,tx_power:t.config.radio.tx_power,bandwidth:t.config.radio.bandwidth,spreading_factor:t.config.radio.spreading_factor}:null},packets:e.packets.map(j)}}(e,t),s=JSON.stringify(a,null,2),n=new Blob([s],{type:"application/json"}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.download=e.filename,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}function I(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}const G=v(e=>({entries:[],commandHistory:[],isInitialized:!1,addEntry:t=>{const a="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),r={...t,id:a,timestamp:Date.now()};return e(e=>({entries:[...e.entries,r]})),a},updateEntry:(t,a)=>{e(e=>({entries:e.entries.map(e=>e.id===t?{...e,...a}:e)}))},addCommand:t=>{e(e=>({commandHistory:[...e.commandHistory,t]}))},clearEntries:()=>{e({entries:[],commandHistory:[]})},setInitialized:t=>{e({isInitialized:t})}})),A=new Set(["start ota","erase","reboot"]),L=["gps","sensor"],W=[{cmd:"help",desc:"Show available commands"},{cmd:"clear",desc:"Clear terminal screen"},{cmd:"status",desc:"Get repeater status summary"},{cmd:"uptime",desc:"Show system uptime"},{cmd:"packets",desc:"Show packet statistics"},{cmd:"board",desc:"Show board/platform info"},{cmd:"ping",desc:"Ping neighbor (name or 0xXX)",params:"{target} [timeout]",required:!0},{cmd:"convert hex",desc:"Hex → base64 (for config.yaml)",params:"{hex}",required:!0},{cmd:"convert base64",desc:"Base64 → hex",params:"{base64}",required:!0},{cmd:"cap",desc:"Show capture help"},{cmd:"start cap",desc:"Start packet capture (default 120s)",params:"[seconds]"},{cmd:"end cap",desc:"Stop current capture"},{cmd:"list cap",desc:"List capture reports (clickable download)"},{cmd:"export cap",desc:"Download a capture report",params:"{id}"},...[{name:"get adc.multiplier",category:"get",params:[],description:"Get ADC multiplier for battery",serialOnly:!1,hasParam:!1},{name:"get advert.interval",category:"get",params:[],description:"Get local advert interval (minutes)",serialOnly:!1,hasParam:!1},{name:"get af",category:"get",params:[],description:"Get airtime factor",serialOnly:!1,hasParam:!1},{name:"get agc.reset.interval",category:"get",params:[],description:"Get AGC reset interval (seconds)",serialOnly:!1,hasParam:!1},{name:"get allow.read.only",category:"get",params:[],description:"Get read-only access setting",serialOnly:!1,hasParam:!1},{name:"get bridge.baud",category:"get",params:[],description:"Get bridge baud rate",serialOnly:!1,hasParam:!1},{name:"get bridge.channel",category:"get",params:[],description:"Get bridge channel (ESP-NOW)",serialOnly:!1,hasParam:!1},{name:"get bridge.delay",category:"get",params:[],description:"Get bridge delay (ms)",serialOnly:!1,hasParam:!1},{name:"get bridge.enabled",category:"get",params:[],description:"Get bridge enabled status",serialOnly:!1,hasParam:!1},{name:"get bridge.secret",category:"get",params:[],description:"Get bridge encryption secret",serialOnly:!1,hasParam:!1},{name:"get bridge.source",category:"get",params:[],description:"Get bridge packet source",serialOnly:!1,hasParam:!1},{name:"get bridge.type",category:"get",params:[],description:"Get bridge type (rs232/espnow/none)",serialOnly:!1,hasParam:!1},{name:"get direct.txdelay",category:"get",params:[],description:"Get direct TX delay factor",serialOnly:!1,hasParam:!1},{name:"get flood.advert.interval",category:"get",params:[],description:"Get flood advert interval (hours)",serialOnly:!1,hasParam:!1},{name:"get flood.max",category:"get",params:[],description:"Get max flood hops",serialOnly:!1,hasParam:!1},{name:"get freq",category:"get",params:[],description:"Get frequency (MHz)",serialOnly:!1,hasParam:!1},{name:"get guest.password",category:"get",params:[],description:"Get guest password",serialOnly:!1,hasParam:!1},{name:"get int.thresh",category:"get",params:[],description:"Get interference threshold",serialOnly:!1,hasParam:!1},{name:"get lat",category:"get",params:[],description:"Get latitude",serialOnly:!1,hasParam:!1},{name:"get lon",category:"get",params:[],description:"Get longitude",serialOnly:!1,hasParam:!1},{name:"get multi.acks",category:"get",params:[],description:"Get multi-ack setting",serialOnly:!1,hasParam:!1},{name:"get name",category:"get",params:[],description:"Get node name",serialOnly:!1,hasParam:!1},{name:"get prv.key",category:"get",params:[],description:"Get private key (hex)",serialOnly:!1,hasParam:!1},{name:"get public.key",category:"get",params:[],description:"Get public key (hex)",serialOnly:!1,hasParam:!1},{name:"get radio",category:"get",params:[],description:"Get radio params (freq,bw,sf,cr)",serialOnly:!1,hasParam:!1},{name:"get repeat",category:"get",params:[],description:"Get repeat/forward status (on/off)",serialOnly:!1,hasParam:!1},{name:"get role",category:"get",params:[],description:"Get device role",serialOnly:!1,hasParam:!1},{name:"get rxdelay",category:"get",params:[],description:"Get RX delay base",serialOnly:!1,hasParam:!1},{name:"get tx",category:"get",params:[],description:"Get TX power (dBm)",serialOnly:!1,hasParam:!1},{name:"get txdelay",category:"get",params:[],description:"Get TX delay factor",serialOnly:!1,hasParam:!1},{name:"gps",category:"gps",params:[],description:"Show GPS status",serialOnly:!1,hasParam:!1},{name:"gps advert",category:"gps",params:[],description:"Get/set GPS advert location policy",serialOnly:!1,hasParam:!0},{name:"gps off",category:"gps",params:[],description:"Disable GPS",serialOnly:!1,hasParam:!0},{name:"gps on",category:"gps",params:[],description:"Enable GPS",serialOnly:!1,hasParam:!0},{name:"gps setloc",category:"gps",params:[],description:"Set node location from GPS",serialOnly:!1,hasParam:!0},{name:"gps sync",category:"gps",params:[],description:"Sync time from GPS",serialOnly:!1,hasParam:!0},{name:"log",category:"logging",params:[],description:"Dump log file (serial only)",serialOnly:!0,hasParam:!1},{name:"log erase",category:"logging",params:[],description:"Erase log file",serialOnly:!1,hasParam:!0},{name:"log start",category:"logging",params:[],description:"Start packet logging",serialOnly:!1,hasParam:!0},{name:"log stop",category:"logging",params:[],description:"Stop packet logging",serialOnly:!1,hasParam:!0},{name:"neighbor.remove",category:"neighbor",params:[],description:"Remove neighbor by pubkey",serialOnly:!1,hasParam:!0},{name:"neighbors",category:"neighbor",params:[],description:"List neighbors",serialOnly:!1,hasParam:!1},{name:"get",category:"other",params:[],description:"Execute get command",serialOnly:!1,hasParam:!0},{name:"set",category:"other",params:[{name:"value",type:"float"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Execute set command",serialOnly:!1,hasParam:!0},{name:"tempradio",category:"radio",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Apply temporary radio params (freq bw sf cr timeout_mins)",serialOnly:!1,hasParam:!0},{name:"sensor get",category:"sensor",params:[],description:"Get sensor/custom variable value",serialOnly:!1,hasParam:!0},{name:"sensor list",category:"sensor",params:[{name:"value",type:"int"}],description:"List all sensor/custom variables",serialOnly:!1,hasParam:!0},{name:"sensor set",category:"sensor",params:[],description:"Set sensor/custom variable value",serialOnly:!1,hasParam:!0},{name:"set adc.multiplier",category:"set",params:[{name:"value",type:"float"}],description:"Set ADC multiplier",serialOnly:!1,hasParam:!0},{name:"set advert.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"string"}],description:"Set local advert interval (1-10080 min, 0=off)",serialOnly:!1,hasParam:!0},{name:"set af",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set airtime factor (0-9)",serialOnly:!1,hasParam:!0},{name:"set agc.reset.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set AGC reset interval (seconds, rounded to 4)",serialOnly:!1,hasParam:!0},{name:"set allow.read.only",category:"set",params:[{name:"value",type:"int"}],description:"Set read-only access (on/off)",serialOnly:!1,hasParam:!0},{name:"set bridge.baud",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set bridge baud (9600-115200)",serialOnly:!1,hasParam:!0},{name:"set bridge.channel",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"string"}],description:"Set bridge channel (1-14)",serialOnly:!1,hasParam:!0},{name:"set bridge.delay",category:"set",params:[{name:"value",type:"int"}],description:"Set bridge delay (0-10000 ms)",serialOnly:!1,hasParam:!0},{name:"set bridge.enabled",category:"set",params:[{name:"value",type:"int"}],description:"Enable/disable bridge",serialOnly:!1,hasParam:!0},{name:"set bridge.secret",category:"set",params:[{name:"value",type:"string"},{name:"value",type:"float"}],description:"Set bridge encryption secret",serialOnly:!1,hasParam:!0},{name:"set bridge.source",category:"set",params:[{name:"value",type:"int"}],description:"Set bridge source (rx/tx)",serialOnly:!1,hasParam:!0},{name:"set direct.txdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set direct TX delay factor",serialOnly:!1,hasParam:!0},{name:"set flood.advert.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set flood advert interval (3-48 hours, 0=off)",serialOnly:!1,hasParam:!0},{name:"set flood.max",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"float"}],description:"Set max flood hops (0-64)",serialOnly:!1,hasParam:!0},{name:"set freq",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set frequency MHz (serial only, reboot required)",serialOnly:!0,hasParam:!0},{name:"set guest.password",category:"set",params:[{name:"value",type:"string"}],description:"Set guest password",serialOnly:!1,hasParam:!0},{name:"set int.thresh",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set interference threshold",serialOnly:!1,hasParam:!0},{name:"set lat",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set latitude",serialOnly:!1,hasParam:!0},{name:"set lon",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set longitude",serialOnly:!1,hasParam:!0},{name:"set multi.acks",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set multi-ack (0/1)",serialOnly:!1,hasParam:!0},{name:"set name",category:"set",params:[{name:"value",type:"string"},{name:"value",type:"int"}],description:"Set node name",serialOnly:!1,hasParam:!0},{name:"set prv.key",category:"set",params:[{name:"value",type:"string"}],description:"Set private key (hex, restart required)",serialOnly:!1,hasParam:!0},{name:"set radio",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set radio params (freq bw sf cr)",serialOnly:!1,hasParam:!0},{name:"set repeat",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set repeat/forward (on/off)",serialOnly:!1,hasParam:!0},{name:"set rxdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set RX delay base",serialOnly:!1,hasParam:!0},{name:"set tx",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"float"}],description:"Set TX power (dBm)",serialOnly:!1,hasParam:!0},{name:"set txdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set TX delay factor",serialOnly:!1,hasParam:!0},{name:"stats-core",category:"stats",params:[],description:"Show core statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"stats-packets",category:"stats",params:[],description:"Show packet statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"stats-radio",category:"stats",params:[],description:"Show radio statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"advert",category:"system",params:[],description:"Send self advertisement",serialOnly:!1,hasParam:!1},{name:"board",category:"system",params:[],description:"Show board/manufacturer name",serialOnly:!1,hasParam:!1},{name:"clear stats",category:"system",params:[],description:"Reset statistics counters",serialOnly:!1,hasParam:!0},{name:"clock",category:"system",params:[{name:"value",type:"int"}],description:"Display current time",serialOnly:!1,hasParam:!0},{name:"clock sync",category:"system",params:[],description:"Sync clock from sender timestamp",serialOnly:!1,hasParam:!0},{name:"password",category:"system",params:[{name:"value",type:"string"}],description:"Change admin password",serialOnly:!1,hasParam:!0},{name:"reboot",category:"system",params:[],description:"Reboot the device",serialOnly:!1,hasParam:!1},{name:"start ota",category:"system",params:[{name:"value",type:"int"}],description:"Start OTA firmware update",serialOnly:!1,hasParam:!0},{name:"time",category:"system",params:[{name:"value",type:"int"}],description:"Set time to epoch seconds",serialOnly:!1,hasParam:!0},{name:"ver",category:"system",params:[],description:"Show firmware version and build date",serialOnly:!1,hasParam:!1}].filter(e=>!e.serialOnly&&!A.has(e.name)&&!L.some(t=>e.name.startsWith(t))).map(e=>({cmd:e.name,desc:e.description,params:e.hasParam?"{value}":void 0,required:e.hasParam}))],U={"set mode":["forward","monitor"],"set duty":["on","off"],"set repeat":["on","off"],"set tx":["10","14","17","20","22"],"set sf":["7","8","9","10","11","12"],"set bw":["125","250","500"],"set af":["0.5","1.0","1.5","2.0"],"set txdelay":["0.5","0.7","1.0","1.5"],"set direct.txdelay":["0.3","0.5","0.7"],"set log":["debug","info","warning"],"start cap":["30","60","120","300"]};function F(e){switch(e){case"success":return"text-accent-success";case"error":return"text-accent-danger";case"warning":return"text-amber-400";case"info":return"text-accent-tertiary";case"value":return"text-accent-primary";case"system":return"text-text-muted";default:return"text-text-secondary"}}const H=e.memo(function({entry:r}){const s=P(),n=l(),o=e.useCallback(e=>{const t=s.getReport(e);t?R(t,n):alert("Report no longer available. Captures are stored in session memory only.")},[s,n]);return"command"===r.type?t.jsxs("div",{className:"flex items-center gap-2 py-1",children:[t.jsx("span",{className:"text-text-muted font-medium select-none",children:"$"}),t.jsx("span",{className:"text-text-primary font-semibold",children:r.content})]}):"system"===r.type?t.jsx("div",{className:a("py-0.5",F(r.outputType||"system")),children:r.content}):r.content.includes("██")?t.jsx("pre",{className:a("terminal-ascii font-mono leading-none py-2 whitespace-pre",F(r.outputType||"value")),children:r.content}):t.jsx("div",{className:"ml-4 font-mono text-[13px] py-1",children:r.content.split("\n").map((e,a)=>{const s=function(e,t){if(e.startsWith("REC:::"))return[{text:"●",color:"text-red-500 animate-pulse",isRecording:!0},{text:` ${e.slice(6)}`,color:"text-text-muted"}];const a=e.trimStart();if(a.startsWith("DOWNLOAD:::")){const t=e.slice(0,e.length-a.length),r=a.slice(11).split(":::"),[s,n]=r;return[{text:`${t}⇓ download "${n}"`,color:"text-accent-primary underline cursor-pointer hover:text-accent-secondary",isDownload:!0,downloadId:s,downloadFilename:n}]}if(e.startsWith("HELP_HEADER:::"))return[{text:e.slice(14),color:"text-text-primary font-bold"}];if(e.startsWith("HELP_NOTE:::"))return[{text:e.slice(12),color:"text-text-muted italic"}];const r=e.match(/^([a-z][a-z0-9.]*(?:\s+[a-z][a-z0-9.]*)?):::(.+)$/);if(r){const[,e,t]=r,a=e.split(" "),s=a[0];let n="text-accent-tertiary";"get"===s?n="text-accent-success":"set"===s&&(n="text-amber-400");const o=[{text:` ${s}`,color:`${n} font-semibold`}];a.length>1&&o.push({text:` ${a.slice(1).join(" ")}`,color:"text-accent-primary"});const i=" ".repeat(Math.max(1,22-e.length));return o.push({text:`${i}${t}`,color:"text-text-muted"}),o}if("error"===t||"warning"===t)return[{text:e,color:F(t)}];if("value"===t)return[{text:e,color:F("value")}];const s=e.match(/^([\w\s.]+):\s*(.+)$/);if(s){const[,e,t]=s;return[{text:`${e}: `,color:"text-text-muted"},{text:t,color:"text-accent-primary font-semibold"}]}return e.startsWith("OK")?[{text:e,color:F("success")}]:[{text:e,color:F(t)}]}(e,r.outputType||"default");return t.jsx("div",{className:"leading-relaxed",children:s.map((e,a)=>e.isDownload?t.jsx("span",{className:e.color,onClick:()=>o(e.downloadId),role:"button",tabIndex:0,onKeyDown:t=>"Enter"===t.key&&o(e.downloadId),children:e.text},a):t.jsx("span",{className:e.color,children:e.text},a))},a)})})});function M(){const r=l(),s=c(),n=P(),o=G(e=>e.entries),i=G(e=>e.commandHistory),v=G(e=>e.isInitialized),{addEntry:b,updateEntry:x,addCommand:k,clearEntries:$,setInitialized:C}=G(),[T,E]=e.useState(""),[N,j]=e.useState(-1),[D,A]=e.useState(!1),[L,F]=e.useState([]),[M,q]=e.useState(0),[z,K]=e.useState(0),[B,X]=e.useState(!1),V=e.useRef(null),J=e.useRef(null),Q=e.useRef(null),Y=e.useRef(s);e.useEffect(()=>{Y.current=s},[s]),e.useEffect(()=>{v||(async()=>{b({type:"output",content:"██████ ██ ██ ███ ███ ██████\n██ ██ ██ ██ ████ ████ ██ \n██████ ████ ██ ████ ██ ██ \n██ ██ ██ ██ ██ ██ \n██ ██ ██ ██ ██████",outputType:"value"}),await new Promise(e=>setTimeout(e,200));const e=b({type:"system",content:"● Initializing terminal...",outputType:"system"});await new Promise(e=>setTimeout(e,400)),x(e,{content:"✓ Initializing terminal...",outputType:"success"});const t=b({type:"system",content:"● Connecting to repeater...",outputType:"system"});await new Promise(e=>setTimeout(e,600)),x(t,{content:"✓ Connected to repeater",outputType:"success"}),b({type:"system",content:"Ready. Type 'help' for commands.",outputType:"system"}),C(!0)})()},[v,b,x,C]),e.useEffect(()=>{J.current&&(J.current.scrollTop=J.current.scrollHeight)},[o]);const Z=e.useCallback(()=>{var e;const t=window.getSelection();t&&t.toString().length>0||null==(e=V.current)||e.focus()},[]),ee=e.useMemo(()=>(null==r?void 0:r.neighbors)?Object.values(r.neighbors).map(e=>e.node_name||e.name).filter(e=>!!e).sort():[],[null==r?void 0:r.neighbors]),te=e.useCallback(e=>{const t=e.trim().toLowerCase();if(!t)return A(!1),void F([]);const a=W.filter(e=>e.cmd.toLowerCase().startsWith(t));if(a.length>0)return F(a),q(0),void A(!0);if(t.includes(" ")){const e=t.lastIndexOf(" "),a=t.substring(0,e),r=t.substring(e+1);if("ping"===a&&ee.length>0){const e=ee.filter(e=>e.toLowerCase().startsWith(r)).slice(0,10).map(e=>({cmd:`ping ${e}`,desc:`→ ${e}`}));if(e.length>0)return F(e),q(0),void A(!0)}if("export cap"===a&&n.reports.length>0){const e=n.reports.map((e,t)=>({id:e.id,index:String(t+1),pkts:e.packetCount,duration:e.durationSec})).filter(e=>e.id.toLowerCase().startsWith(r)||e.index.startsWith(r)).slice(0,10).map(e=>({cmd:`export cap ${e.index}`,desc:`${e.pkts} pkts • ${e.duration}s`}));if(e.length>0)return F(e),q(0),void A(!0)}const s=W.find(e=>e.cmd.toLowerCase()===a);if(s&&U[s.cmd]){const e=U[s.cmd].filter(e=>e.toLowerCase().startsWith(r)).map(e=>({cmd:`${s.cmd} ${e}`,desc:`→ ${e}`}));if(e.length>0)return F(e),q(0),void A(!0)}}A(!1),F([])},[ee,n.reports]),ae=e.useCallback(e=>{var t;const a=L[e];a&&(a.required&&a.params?(E(a.cmd+" "),te(a.cmd+" ")):(E(a.cmd),A(!1)),null==(t=V.current)||t.focus())},[L,te]),re=e.useCallback(async e=>{var t,a,o,i,l,c,h,v,w;const _=e.trim();if(!_)return;const S=_.toLowerCase();if(k(_),b({type:"command",content:_}),"clear"===S)return void $();if("help"===S){const e=W.map(e=>`${e.cmd}:::${e.desc}`).join("\n");return void b({type:"output",content:`HELP_HEADER:::Available commands\n${e}\nHELP_NOTE:::Some MeshCore commands not available via HTTP.`,outputType:"default"})}const O=b({type:"output",content:"processing...",outputType:"system"});try{const e=await d();let k="",$="info";const E=e=>{const t=Math.floor(e/86400),a=Math.floor(e%86400/3600),r=Math.floor(e%3600/60);return t>0?`${t}d ${a}h ${r}m`:a>0?`${a}h ${r}m`:`${r}m`};if("status"===S){k=`Mode: ${(null==(a=null==(t=e.config)?void 0:t.repeater)?void 0:a.mode)||"unknown"} | Neighbors: ${Object.keys(e.neighbors||{}).length} | Uptime: ${E(e.uptime_seconds||0)}`}else if("uptime"===S)k=E(e.uptime_seconds||0),$="value";else if("packets"===S)k=`rx: ${e.rx_count??0}\ntx: ${e.tx_count??0}\nfwd: ${e.forwarded_count??0}\ndrop: ${e.dropped_count??0}`;else if("neighbors"===S){const t=e.neighbors||{},a=Object.entries(t);if(0===a.length)k="No neighbors discovered yet.",$="warning";else{const e=a.map(([e,t])=>{const a=t.name||t.node_name||"Unknown";return` ${e.slice(0,8)} ${a}`});k=`Neighbors (${a.length}):\n${e.join("\n")}`}}else if("board"===S)k="pyMC_Repeater (Linux/RPi)",$="value";else if(S.startsWith("get ")){const t=S.slice(4).trim(),a=null==(o=e.config)?void 0:o.delays,r=null==(i=e.config)?void 0:i.radio,s=null==(l=e.config)?void 0:l.repeater,n=null==(c=e.config)?void 0:c.duty_cycle;switch(t){case"name":k=(null==(h=e.config)?void 0:h.node_name)||"Unknown";break;case"role":k="repeater";break;case"lat":k=null!=(null==s?void 0:s.latitude)?String(s.latitude):"not set";break;case"lon":k=null!=(null==s?void 0:s.longitude)?String(s.longitude):"not set";break;case"freq":k=(null==r?void 0:r.frequency)?(r.frequency/1e6).toFixed(3):"?";break;case"tx":k=String((null==r?void 0:r.tx_power)??"?");break;case"bw":k=(null==r?void 0:r.bandwidth)?String(r.bandwidth/1e3):"?";break;case"sf":k=String((null==r?void 0:r.spreading_factor)??"?");break;case"cr":k=String((null==r?void 0:r.coding_rate)??"?");break;case"radio":k=r?`freq: ${(r.frequency/1e6).toFixed(3)} MHz\nbw: ${r.bandwidth/1e3} kHz\nsf: ${r.spreading_factor}\ncr: 4/${r.coding_rate}`:"?";break;case"af":case"txdelay":k=String((null==a?void 0:a.tx_delay_factor)??"1.0");break;case"direct.txdelay":k=String((null==a?void 0:a.direct_tx_delay_factor)??"0.5");break;case"mode":k=(null==s?void 0:s.mode)||"forward";break;case"repeat":k="forward"===(null==s?void 0:s.mode)?"on":"off";break;case"flood.max":k=String((null==s?void 0:s.max_flood_hops)??"3");break;case"flood.advert.interval":k=null!=(null==s?void 0:s.send_advert_interval_hours)?`${s.send_advert_interval_hours}h`:"?";break;case"advert.interval":k=null!=(null==s?void 0:s.advert_interval_minutes)?`${s.advert_interval_minutes}m`:"120m";break;case"rxdelay":k=String((null==a?void 0:a.rx_delay_base)??"0.0");break;case"duty":case"duty.enabled":k=(null==n?void 0:n.enforcement_enabled)?"on":"off";break;case"duty.max":k=null!=(null==n?void 0:n.max_airtime_percent)?`${n.max_airtime_percent}%`:"?";break;case"public.key":k=e.public_key||"not available";break;case"prv.key":k="Private key stored in /etc/pymc_repeater/config.yaml\n\nTo view: sudo grep identity_key /etc/pymc_repeater/config.yaml\nTo set: sudo ./convert_firmware_key.sh <64-byte-hex>",$="info";break;case"guest.password":case"allow.read.only":k="Security settings not exposed via stats API.\nCheck /etc/pymc_repeater/config.yaml",$="warning";break;default:k=`Unknown parameter: ${t}\nAvailable: name, role, lat, lon, freq, tx, bw, sf, cr, radio, af, txdelay, direct.txdelay, rxdelay, mode, repeat, flood.max, advert.interval, duty, public.key`,$="error"}"error"!==$&&($="value")}else if("advert"===S){const e=await p();k=e.success?"OK - Advert sent":`Error: ${e.error||"Failed"}`,$=e.success?"success":"error"}else if(S.startsWith("set mode ")){const e=S.split(" ")[2];if("forward"!==e&&"monitor"!==e)k='Error: Mode must be "forward" or "monitor"',$="error";else{const t=await m(e);k=t.success?`OK - Mode set to ${e}`:"Error: Failed",$=t.success?"success":"error"}}else if(S.startsWith("set duty ")){const e=S.split(" ")[2],t="on"===e||"1"===e,a=await u(t);k=a.success?"OK - Duty cycle "+(t?"enabled":"disabled"):"Error: Failed",$=a.success?"success":"error"}else if(S.startsWith("set tx ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||e<2||e>22)k="Error: TX power must be 2-22 dBm (SX1262 chip max)",$="error";else{const t=await y({tx_power:e});k=t.success?`OK - TX power set to ${e}dBm`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set af ")||S.startsWith("set txdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0||e>5)k="Error: TX delay factor must be 0.0-5.0",$="error";else{const t=await y({tx_delay_factor:e});k=t.success?`OK - TX delay set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set direct.txdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0||e>5)k="Error: Direct TX delay must be 0.0-5.0",$="error";else{const t=await y({direct_tx_delay_factor:e});k=t.success?`OK - Direct TX delay set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set log ")){const e=null==(v=S.split(" ")[2])?void 0:v.toUpperCase();if(["DEBUG","INFO","WARNING","ERROR"].includes(e)){const t=await g(e);k=t.success?`OK - Log level set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}else k="Error: Level must be debug, info, warning, or error",$="error"}else if(S.startsWith("set rxdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0)k="Error: RX delay must be >= 0",$="error";else{const t=await y({rx_delay_base:e});k=t.success?`OK - RX delay base set to ${e}s`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set name ")){const e=_.substring(9).trim();if(e){const t=await y({node_name:e});k=t.success?`OK - Node name set to "${e}"`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}else k="Error: Node name cannot be empty",$="error"}else if(S.startsWith("set lat ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<-90||e>90)k="Error: Latitude must be -90 to 90",$="error";else{const t=await y({latitude:e});k=t.success?`OK - Latitude set to ${e}°`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set lon ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<-180||e>180)k="Error: Longitude must be -180 to 180",$="error";else{const t=await y({longitude:e});k=t.success?`OK - Longitude set to ${e}°`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set flood.max ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||e<0||e>64)k="Error: Max flood hops must be 0-64",$="error";else{const t=await y({max_flood_hops:e});k=t.success?`OK - Max flood hops set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set flood.advert.interval ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||0!==e&&(e<3||e>48))k="Error: Flood advert interval must be 0 (off) or 3-48 hours",$="error";else{const t=await y({flood_advert_interval_hours:e});k=t.success?0===e?"OK - Flood adverts disabled":`OK - Flood advert interval set to ${e}h`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set advert.interval ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||0!==e&&(e<1||e>10080))k="Error: Advert interval must be 0 (off) or 1-10080 minutes",$="error";else{const t=await y({advert_interval_minutes:e});k=t.success?0===e?"OK - Local adverts disabled":`OK - Local advert interval set to ${e}m`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set prv.key ")){const e=_.substring(12).trim();e?/^[0-9a-fA-F]+$/.test(e)?128!==e.length?(k=`Error: Key must be 64 bytes (128 hex chars), got ${e.length} chars`,$="error"):(k=`To set this key, run on the Pi:\n\n sudo ./convert_firmware_key.sh ${e}\n\nThen restart: sudo systemctl restart pymc-repeater`,$="info"):(k="Error: Private key must be a hex string",$="error"):(k="Error: Private key cannot be empty",$="error")}else if(S.startsWith("convert hex ")){const e=_.substring(12).trim();if(e)if(/^[0-9a-fA-F]+$/.test(e))if(e.length%2!=0)k="Error: Hex string must have even length",$="error";else try{const t=new Uint8Array(e.length/2);for(let s=0;s1&&!isNaN(r)&&r>0,n=s?t.slice(0,-1).join(" "):e,o=s?r:30;if(n){let e=1;const t=setInterval(()=>{e=e%3+1,x(O,{content:`Pinging ${n}${".".repeat(e)}`,outputType:"system"})},800);try{const e=await f(n,o);if(clearInterval(t),e.success&&e.data){const t=e.data,a=(null==(w=t.path)?void 0:w.length)?t.path.join(" → "):"direct";k=`Reply from ${t.target_id}\n RTT: ${t.rtt_ms.toFixed(1)}ms\n RSSI: ${t.rssi}dBm\n SNR: ${t.snr_db}dB\n Path: ${a}\n Quality: ${t.quality}`,$="success"}else k=e.error||"Ping failed",$="error"}catch(T){throw clearInterval(t),T}}else k="Usage: ping [timeout]",$="error"}else if("cap"===S||"cap help"===S){const e=n.isCapturing?'\nREC:::Recording in progress... use "end cap" to stop':"",t=n.reports.length;k=`HELP_HEADER:::Packet Capture\n\nstart cap:::Start capture (default: 120s)\nend cap:::Stop capture early\nlist cap:::List saved captures${t>0?` (${t} saved)`:""}\nexport cap:::Download capture by ID\n\nHELP_NOTE:::Captures stored in session memory. JSON includes decoded payloads.${e}`,$="info"}else if("start cap"===S||S.startsWith("start cap ")){const e=S.slice(10).trim(),t=e?parseInt(e):120;if(isNaN(t)||t<1||t>3600)k="Error: Duration must be 1-3600 seconds",$="error";else{if(!n.isCapturing){n.startCapture(s);let e=t;x(O,{content:`REC:::Capturing... ${e}s remaining`,outputType:"system"});const a=setInterval(()=>{e--;const t=P.getState();if(e>=0&&t.isCapturing){const a=Y.current.filter(e=>{if(!t.captureStartTime)return!1;const a=t.captureStartTime.getTime()/1e3;return e.timestamp>=a&&!t.captureStartPacketHashes.has(e.packet_hash)}).length;x(O,{content:`REC:::Capturing... ${e>0?`${e}s remaining`:"finishing..."} (${a} captured)`,outputType:"system"})}},1e3),r=setTimeout(()=>{clearInterval(a);const e=P.getState();if(e.isCapturing){const t=Y.current,a=e.stopCapture(t);b(a?{type:"output",content:`✓ Capture complete!\n Captured: ${a.packetCount} packets\n Duration: ${a.durationSec}s\n Size: ~${I(a.sizeBytes)}\n\nDOWNLOAD:::${a.id}:::${a.filename}`,outputType:"success"}:{type:"output",content:"Capture completed with no packets.",outputType:"warning"})}},1e3*t);return void n._setTimer(r)}k='Error: Capture already in progress. Use "end cap" first.',$="error"}}else if("end cap"===S)if(n.isCapturing){const e=n.stopCapture(s);e?(k=`✓ Capture complete!\n Captured: ${e.packetCount} packets\n Duration: ${e.durationSec}s\n Size: ~${I(e.sizeBytes)}\n\nDOWNLOAD:::${e.id}:::${e.filename}`,$="success"):(k="Capture stopped with no packets.",$="warning")}else k="No capture in progress.",$="warning";else if("list cap"===S){const e=n.reports;if(0===e.length)k="No capture reports available.\nStart a capture with: start cap [seconds]",$="info";else{const t=e.map((e,t)=>` ${t+1}. ${e.packetCount} pkts • ${e.durationSec}s • ~${I(e.sizeBytes)}\n DOWNLOAD:::${e.id}:::${e.filename}`);k=`Capture Reports (${e.length}):\n${t.join("\n")}`,$="info"}}else if("export cap"===S||S.startsWith("export cap ")){const e=S.slice(11).trim();if(e){const t=n.getReport(e);if(t)R(t,r),k=`✓ Downloading ${t.filename}...`,$="success";else{const t=parseInt(e)-1,a=n.reports[t];a?(R(a,r),k=`✓ Downloading ${a.filename}...`,$="success"):(k=`Error: Report "${e}" not found.\nUse "list cap" to see available reports.`,$="error")}}else{const e=n.reports;0===e.length?(k="No capture reports available.\nStart a capture with: start cap [seconds]",$="info"):(k=`Usage: export cap \n\nAvailable reports:\n${e.map((e,t)=>` ${t+1}. ${e.id}`).join("\n")}`,$="info")}}else k=`Unknown command: ${_}\nType 'help' for available commands.`,$="error";x(O,{content:k,outputType:$})}catch(E){x(O,{content:`Error: ${E instanceof Error?E.message:"Command failed"}`,outputType:"error"})}},[b,k,x,$,n,s,r]),se=e.useCallback(e=>{var t,a,r,s,n,o;if(D&&L.length>0){if("ArrowDown"===e.key){e.preventDefault();const s=Math.min(M+1,L.length-1);return q(s),void(null==(r=null==(a=null==(t=Q.current)?void 0:t.children[0])?void 0:a.children[s])||r.scrollIntoView({block:"nearest"}))}if("ArrowUp"===e.key){e.preventDefault();const t=Math.max(M-1,0);return q(t),void(null==(o=null==(n=null==(s=Q.current)?void 0:s.children[0])?void 0:n.children[t])||o.scrollIntoView({block:"nearest"}))}if("Tab"===e.key)return e.preventDefault(),void ae(M);if("Escape"===e.key)return e.preventDefault(),void A(!1)}if("Enter"===e.key){if(e.preventDefault(),D&&L.length>0){const e=L[M].cmd;return E(""),j(-1),A(!1),void re(e)}const t=T;return E(""),j(-1),A(!1),void re(t)}if("ArrowUp"!==e.key||D)if("ArrowDown"!==e.key||D);else if(e.preventDefault(),N>0){const e=N-1;j(e),E(i[i.length-1-e]||"")}else 0===N&&(j(-1),E(""));else if(e.preventDefault(),i.length>0&&N{E(e.target.value),K(e.target.selectionStart||e.target.value.length),te(e.target.value)},[te]),oe=e.useCallback(e=>{const t=e.target;K(t.selectionStart||0)},[]);return t.jsxs(w,{children:[t.jsx(_,{title:"Terminal",icon:t.jsx(h,{})}),t.jsx(S,{children:t.jsxs(O,{noPadding:!0,className:"terminal-card overflow-hidden flex flex-col isolate",onClick:Z,children:[t.jsx("div",{ref:J,className:"flex-1 overflow-y-auto font-mono text-sm p-3 sm:p-4 md:p-5 surface-themed","data-theme":"terminal",children:o.map(e=>t.jsx(H,{entry:e},e.id))}),t.jsxs("div",{className:"relative surface-themed","data-theme":"terminal-input",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 px-3 sm:px-4 py-2 sm:py-3",children:[t.jsx("span",{className:"text-text-muted font-mono font-bold select-none",children:"$"}),t.jsxs("div",{className:"flex-1 relative font-mono text-sm",children:[t.jsx("input",{ref:V,type:"text",value:T,onChange:ne,onKeyDown:se,onSelect:oe,onFocus:()=>X(!0),onBlur:()=>X(!1),disabled:!v,className:"absolute inset-0 w-full bg-transparent text-transparent outline-none disabled:opacity-50 selection:bg-transparent",style:{caretColor:"transparent"},autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}),t.jsx("div",{className:"relative pointer-events-none select-none","aria-hidden":!0,children:v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-text-primary",children:T.slice(0,z)}),t.jsx("span",{className:a("inline-block w-[0.6em] h-[1.2em] align-text-bottom",B?"bg-accent-primary":"bg-text-muted/30"),style:{marginBottom:"-0.1em"},children:t.jsx("span",{className:"text-bg-primary",children:T[z]||""})}),t.jsx("span",{className:"text-text-primary",children:T.slice(z+1)})]}):t.jsx("span",{className:"text-text-muted",children:"Connecting..."})})]})]}),t.jsxs("div",{className:"px-3 sm:px-4 py-1 flex justify-between text-[10px] text-text-muted surface-themed","data-theme":"terminal-status",children:[t.jsx("span",{className:"hidden sm:inline",children:"↑↓ History"}),t.jsx("span",{className:"sm:hidden",children:"Terminal"}),(null==r?void 0:r.version)&&t.jsxs("span",{children:["pyMC v",r.version]})]})]}),D&&L.length>0&&t.jsxs("div",{ref:Q,className:"absolute left-2 right-2 bottom-[72px] radius-inset overflow-hidden z-50 surface-themed","data-theme":"terminal-autocomplete",children:[t.jsx("div",{className:"max-h-64 overflow-y-auto",children:L.map((e,r)=>t.jsxs("div",{onClick:()=>ae(r),className:a("px-4 py-2.5 cursor-pointer last:border-b-0 transition-colors surface-divider-bottom",r===M?"bg-accent-primary/25":""),"data-theme":"terminal",onMouseEnter:e=>{r!==M&&(e.currentTarget.style.background="var(--terminal-autocomplete-hover)")},onMouseLeave:e=>{r!==M&&(e.currentTarget.style.background="transparent")},children:[t.jsx("span",{className:a("font-mono text-sm",r===M?"text-accent-primary":"text-text-primary"),children:e.cmd}),t.jsx("span",{className:"text-xs text-text-muted ml-4",children:e.desc})]},e.cmd))}),t.jsx("div",{className:"px-3 py-1.5 text-[10px] text-text-muted text-right surface-divider-top","data-theme":"terminal",style:{backgroundColor:"var(--terminal-autocomplete-hover)"},children:"Tab to select"})]})]})})]})}export{M as default}; +import{r as e,j as t,c as a}from"./vendor-react-BKIq8k5U.js";import{bf as r,a3 as s,bg as n,W as o,V as i,j as l,e as c,bh as d,bi as p,bj as m,bk as u,bl as y,bm as g,bn as h}from"./index-CrU_Ps9k.js";import{a as f}from"./ping-t2L803PH.js";import{c as v}from"./vendor-core-D1aqi_5O.js";import{P as b,d as x}from"./payload-decoders-N5zeG9av.js";import{P as w,b as _,B as S,a as O}from"./PageLayout-BlXA3E6H.js";import"./deckgl-DTsmDcfs.js";function k(){const e=new Date;return`${e.toISOString().slice(0,10)}_${e.toTimeString().slice(0,8).replace(/:/g,"-")}`}function $(e,t){return`pymc-${e.toISOString().slice(0,10)}-${e.toTimeString().slice(0,5).replace(":","")}-${t}s.json`}const P=v((e,t)=>({isCapturing:!1,captureStartTime:null,captureStartPacketHashes:new Set,captureTimer:null,reports:[],startCapture:a=>{const{captureTimer:r}=t();r&&clearTimeout(r),e({isCapturing:!0,captureStartTime:new Date,captureStartPacketHashes:new Set(a.map(e=>e.packet_hash))})},stopCapture:a=>{const{isCapturing:r,captureStartTime:s,captureStartPacketHashes:n,captureTimer:o}=t();if(!r||!s)return null;o&&clearTimeout(o);const i=new Date,l=Math.round((i.getTime()-s.getTime())/1e3),c=s.getTime()/1e3,d=a.filter(e=>!n.has(e.packet_hash)&&e.timestamp>=c).sort((e,t)=>e.timestamp-t.timestamp),p={id:k(),filename:$(s,l),startTime:s,endTime:i,durationSec:l,packetCount:d.length,packets:d,sizeBytes:500*d.length};return e(e=>({isCapturing:!1,captureStartTime:null,captureStartPacketHashes:new Set,captureTimer:null,reports:[p,...e.reports].slice(0,10)})),p},getReport:e=>t().reports.find(t=>t.id===e),_setTimer:t=>e({captureTimer:t})}));function C(e){var t;return(null==(t=e.match(/.{1,2}/g))?void 0:t.join(" ").toUpperCase())||""}function T(e){return void 0===e?"UNKNOWN":i[e]??`TYPE_${e}`}function E(e){return void 0===e?"UNKNOWN":o[e]??`ROUTE_${e}`}function N(e,t){switch(e){case 4:return function(e){const t=[];let a=0;if(e.length>=32&&(t.push({name:"public_key",offset:a,length:32,bytes:C(n(e.slice(a,a+32))),decoded:{value:n(e.slice(a,a+32))}}),a+=32),e.length>=a+4){const r=e.slice(a,a+4),s=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;t.push({name:"timestamp",offset:a,length:4,bytes:C(n(r)),decoded:{value:s>>>0,iso:new Date(1e3*s).toISOString()}}),a+=4}if(e.length>=a+64&&(t.push({name:"signature",offset:a,length:64,bytes:C(n(e.slice(a,a+64))),decoded:{value:n(e.slice(a,a+64))}}),a+=64),e.length>a){const r=e[a],s=[];if(1&r&&s.push("CHAT_NODE"),2&r&&s.push("REPEATER"),3&r&&s.push("ROOM_SERVER"),16&r&&s.push("HAS_LOCATION"),128&r&&s.push("HAS_NAME"),t.push({name:"flags",offset:a,length:1,bytes:C(n(e.slice(a,a+1))),decoded:{value:r,binary:r.toString(2).padStart(8,"0"),flags:s}}),a+=1,16&r&&e.length>=a+8){const r=e.slice(a,a+8),s=new ArrayBuffer(8);new Uint8Array(s).set(r);const o=new DataView(s),i=o.getInt32(0,!0),l=o.getInt32(4,!0);t.push({name:"location",offset:a,length:8,bytes:C(n(r)),decoded:{lat_raw:i,lon_raw:l,latitude:i/1e6,longitude:l/1e6}}),a+=8}if(128&r&&e.length>a){const r=e.slice(a);let s=r.indexOf(0);-1===s&&(s=r.length);const o=(new TextDecoder).decode(r.slice(0,s));t.push({name:"name",offset:a,length:s+(0===r[s]?1:0),bytes:C(n(r.slice(0,s+1))),decoded:{value:o,encoding:"utf-8",null_terminated:0===r[s]}})}}return t}(t);case 3:return function(e){if(e.length<4)return[];const t=e.slice(0,4),a=t[0]|t[1]<<8|t[2]<<16|t[3]<<24;return[{name:"crc",offset:0,length:4,bytes:C(n(t)),decoded:{value:a>>>0,hex:(a>>>0).toString(16).toUpperCase().padStart(8,"0"),note:"CRC of the acknowledged packet (little-endian)"}}]}(t);case 9:return function(e){const t=[];if(e.length<9)return t;const a=e.slice(0,4),r=a[0]|a[1]<<8|a[2]<<16|a[3]<<24;t.push({name:"trace_tag",offset:0,length:4,bytes:C(n(a)),decoded:{value:r>>>0,hex:(r>>>0).toString(16).toUpperCase().padStart(8,"0")}});const s=e.slice(4,8),o=s[0]|s[1]<<8|s[2]<<16|s[3]<<24;if(t.push({name:"auth_code",offset:4,length:4,bytes:C(n(s)),decoded:{value:o>>>0}}),t.push({name:"flags",offset:8,length:1,bytes:C(n(e.slice(8,9))),decoded:{value:e[8],binary:e[8].toString(2).padStart(8,"0")}}),e.length>9){const a=e.slice(9),r=Array.from(a).map(e=>e.toString(16).toUpperCase().padStart(2,"0"));t.push({name:"target_path",offset:9,length:a.length,bytes:C(n(a)),decoded:{hops:r,path_string:r.join("->")}})}return t}(t);case 8:return function(e){if(0===e.length)return[];const t=Array.from(e).map(e=>e.toString(16).toUpperCase().padStart(2,"0"));return[{name:"path_hops",offset:0,length:e.length,bytes:C(n(e)),decoded:{hops:t,path_string:t.join("->")}}]}(t);case 5:return function(e){const t=[];if(e.length<1)return t;if(t.push({name:"channel_hash",offset:0,length:1,bytes:C(n(e.slice(0,1))),decoded:{value:e[0].toString(16).toUpperCase().padStart(2,"0")}}),e.length>13){const a=12,r=e.length-1-a;t.push({name:"ciphertext",offset:1,length:r,bytes:C(n(e.slice(1,1+r))),decoded:{length:r,note:"Encrypted message content"}}),t.push({name:"mac",offset:1+r,length:a,bytes:C(n(e.slice(-a))),decoded:{note:"Message authentication code"}})}return t}(t);default:return function(e){return 0===e.length?[]:[{name:"raw_data",offset:0,length:e.length,bytes:C(n(e)),decoded:{length:e.length}}]}(t)}}function j(e){const t=e.type??e.payload_type??0,a=e.route??e.route_type??0,r=e.raw_packet||"";let o,i=null;if(r){const t=b.fromHex(r);if(t.success&&t.packet){const e=t.packet;try{i=x(e)}catch{i=null}const a=s(r);let l=0;const c={offset:0,length:1,bytes:C(r.slice(0,2)),decoded:{route_type:e.routeType,route_name:e.routeTypeName,payload_type:e.payloadType,payload_name:e.payloadTypeName,version:e.payloadVersion}};l+=1,e.hasTransportCodes()&&(l+=4);const d={offset:l,length:1,bytes:C(n(a.slice(l,l+1))),decoded:{value:e.pathLen}};l+=1;const p=l,m=a.slice(l,l+e.pathLen),u=Array.from(e.path).map(e=>e.toString(16).toUpperCase().padStart(2,"0")),y=9===e.payloadType,g={offset:p,length:e.pathLen,bytes:C(n(m)),decoded:{hops:u,path_string:u.length>0?u.join("->"):"(direct)",...y&&{note:"For TRACE packets, path bytes are SNR×4 values, not node hashes",snr_values:Array.from(e.path).map(e=>{let t=e;return t>127&&(t-=256),t/4})}}};l+=e.pathLen,o={header:c,path_length:d,path:g,payload:{offset:l,length:e.payload.length,bytes:C(e.payloadHex),sections:N(e.payloadType,e.payload)}}}else o=D(e)}else o=D(e);return{timestamp:e.timestamp,packet_hash:e.packet_hash,type:t,type_name:T(t),route:a,route_name:E(a),rssi:e.rssi,snr:e.snr,length:e.length??0,src_hash:e.src_hash,dst_hash:e.dst_hash,transmitted:e.transmitted,drop_reason:e.drop_reason,is_duplicate:e.is_duplicate,lbt_attempts:e.lbt_attempts,lbt_backoff_delays_ms:e.lbt_backoff_delays_ms,lbt_channel_busy:e.lbt_channel_busy,raw_packet:r,structure:o,decoded:i}}function D(e){var t;const a=e.type??e.payload_type??0,r=e.route??e.route_type??0,n=e.original_path??e.forwarded_path??[];return{header:{offset:0,length:1,bytes:"??",decoded:{route_type:r,route_name:E(r),payload_type:a,payload_name:T(a),version:0}},path_length:{offset:1,length:1,bytes:n.length.toString(16).toUpperCase().padStart(2,"0"),decoded:{value:n.length}},path:{offset:2,length:n.length,bytes:n.join(" "),decoded:{hops:n,path_string:n.length>0?n.join("->"):"(direct)"}},payload:{offset:2+n.length,length:(null==(t=e.payload)?void 0:t.length)??0,bytes:e.payload??"",sections:e.payload?N(a,s(e.payload)):[]}}}function R(e,t){const a=function(e,t){var a;return{capture:{start:e.startTime.toISOString(),end:e.endTime.toISOString(),duration_sec:e.durationSec,packet_count:e.packetCount,node_name:(null==t?void 0:t.node_name)??"unknown",local_hash:(null==t?void 0:t.local_hash)??"unknown",pymc_console_version:r,pymc_repeater_version:(null==t?void 0:t.version)??"unknown",radio_config:(null==(a=null==t?void 0:t.config)?void 0:a.radio)?{frequency:t.config.radio.frequency,tx_power:t.config.radio.tx_power,bandwidth:t.config.radio.bandwidth,spreading_factor:t.config.radio.spreading_factor}:null},packets:e.packets.map(j)}}(e,t),s=JSON.stringify(a,null,2),n=new Blob([s],{type:"application/json"}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.download=e.filename,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}function I(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}const G=v(e=>({entries:[],commandHistory:[],isInitialized:!1,addEntry:t=>{const a="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),r={...t,id:a,timestamp:Date.now()};return e(e=>({entries:[...e.entries,r]})),a},updateEntry:(t,a)=>{e(e=>({entries:e.entries.map(e=>e.id===t?{...e,...a}:e)}))},addCommand:t=>{e(e=>({commandHistory:[...e.commandHistory,t]}))},clearEntries:()=>{e({entries:[],commandHistory:[]})},setInitialized:t=>{e({isInitialized:t})}})),A=new Set(["start ota","erase","reboot"]),L=["gps","sensor"],W=[{cmd:"help",desc:"Show available commands"},{cmd:"clear",desc:"Clear terminal screen"},{cmd:"status",desc:"Get repeater status summary"},{cmd:"uptime",desc:"Show system uptime"},{cmd:"packets",desc:"Show packet statistics"},{cmd:"board",desc:"Show board/platform info"},{cmd:"ping",desc:"Ping neighbor (name or 0xXX)",params:"{target} [timeout]",required:!0},{cmd:"convert hex",desc:"Hex → base64 (for config.yaml)",params:"{hex}",required:!0},{cmd:"convert base64",desc:"Base64 → hex",params:"{base64}",required:!0},{cmd:"cap",desc:"Show capture help"},{cmd:"start cap",desc:"Start packet capture (default 120s)",params:"[seconds]"},{cmd:"end cap",desc:"Stop current capture"},{cmd:"list cap",desc:"List capture reports (clickable download)"},{cmd:"export cap",desc:"Download a capture report",params:"{id}"},...[{name:"get adc.multiplier",category:"get",params:[],description:"Get ADC multiplier for battery",serialOnly:!1,hasParam:!1},{name:"get advert.interval",category:"get",params:[],description:"Get local advert interval (minutes)",serialOnly:!1,hasParam:!1},{name:"get af",category:"get",params:[],description:"Get airtime factor",serialOnly:!1,hasParam:!1},{name:"get agc.reset.interval",category:"get",params:[],description:"Get AGC reset interval (seconds)",serialOnly:!1,hasParam:!1},{name:"get allow.read.only",category:"get",params:[],description:"Get read-only access setting",serialOnly:!1,hasParam:!1},{name:"get bridge.baud",category:"get",params:[],description:"Get bridge baud rate",serialOnly:!1,hasParam:!1},{name:"get bridge.channel",category:"get",params:[],description:"Get bridge channel (ESP-NOW)",serialOnly:!1,hasParam:!1},{name:"get bridge.delay",category:"get",params:[],description:"Get bridge delay (ms)",serialOnly:!1,hasParam:!1},{name:"get bridge.enabled",category:"get",params:[],description:"Get bridge enabled status",serialOnly:!1,hasParam:!1},{name:"get bridge.secret",category:"get",params:[],description:"Get bridge encryption secret",serialOnly:!1,hasParam:!1},{name:"get bridge.source",category:"get",params:[],description:"Get bridge packet source",serialOnly:!1,hasParam:!1},{name:"get bridge.type",category:"get",params:[],description:"Get bridge type (rs232/espnow/none)",serialOnly:!1,hasParam:!1},{name:"get direct.txdelay",category:"get",params:[],description:"Get direct TX delay factor",serialOnly:!1,hasParam:!1},{name:"get flood.advert.interval",category:"get",params:[],description:"Get flood advert interval (hours)",serialOnly:!1,hasParam:!1},{name:"get flood.max",category:"get",params:[],description:"Get max flood hops",serialOnly:!1,hasParam:!1},{name:"get freq",category:"get",params:[],description:"Get frequency (MHz)",serialOnly:!1,hasParam:!1},{name:"get guest.password",category:"get",params:[],description:"Get guest password",serialOnly:!1,hasParam:!1},{name:"get int.thresh",category:"get",params:[],description:"Get interference threshold",serialOnly:!1,hasParam:!1},{name:"get lat",category:"get",params:[],description:"Get latitude",serialOnly:!1,hasParam:!1},{name:"get lon",category:"get",params:[],description:"Get longitude",serialOnly:!1,hasParam:!1},{name:"get multi.acks",category:"get",params:[],description:"Get multi-ack setting",serialOnly:!1,hasParam:!1},{name:"get name",category:"get",params:[],description:"Get node name",serialOnly:!1,hasParam:!1},{name:"get prv.key",category:"get",params:[],description:"Get private key (hex)",serialOnly:!1,hasParam:!1},{name:"get public.key",category:"get",params:[],description:"Get public key (hex)",serialOnly:!1,hasParam:!1},{name:"get radio",category:"get",params:[],description:"Get radio params (freq,bw,sf,cr)",serialOnly:!1,hasParam:!1},{name:"get repeat",category:"get",params:[],description:"Get repeat/forward status (on/off)",serialOnly:!1,hasParam:!1},{name:"get role",category:"get",params:[],description:"Get device role",serialOnly:!1,hasParam:!1},{name:"get rxdelay",category:"get",params:[],description:"Get RX delay base",serialOnly:!1,hasParam:!1},{name:"get tx",category:"get",params:[],description:"Get TX power (dBm)",serialOnly:!1,hasParam:!1},{name:"get txdelay",category:"get",params:[],description:"Get TX delay factor",serialOnly:!1,hasParam:!1},{name:"gps",category:"gps",params:[],description:"Show GPS status",serialOnly:!1,hasParam:!1},{name:"gps advert",category:"gps",params:[],description:"Get/set GPS advert location policy",serialOnly:!1,hasParam:!0},{name:"gps off",category:"gps",params:[],description:"Disable GPS",serialOnly:!1,hasParam:!0},{name:"gps on",category:"gps",params:[],description:"Enable GPS",serialOnly:!1,hasParam:!0},{name:"gps setloc",category:"gps",params:[],description:"Set node location from GPS",serialOnly:!1,hasParam:!0},{name:"gps sync",category:"gps",params:[],description:"Sync time from GPS",serialOnly:!1,hasParam:!0},{name:"log",category:"logging",params:[],description:"Dump log file (serial only)",serialOnly:!0,hasParam:!1},{name:"log erase",category:"logging",params:[],description:"Erase log file",serialOnly:!1,hasParam:!0},{name:"log start",category:"logging",params:[],description:"Start packet logging",serialOnly:!1,hasParam:!0},{name:"log stop",category:"logging",params:[],description:"Stop packet logging",serialOnly:!1,hasParam:!0},{name:"neighbor.remove",category:"neighbor",params:[],description:"Remove neighbor by pubkey",serialOnly:!1,hasParam:!0},{name:"neighbors",category:"neighbor",params:[],description:"List neighbors",serialOnly:!1,hasParam:!1},{name:"get",category:"other",params:[],description:"Execute get command",serialOnly:!1,hasParam:!0},{name:"set",category:"other",params:[{name:"value",type:"float"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Execute set command",serialOnly:!1,hasParam:!0},{name:"tempradio",category:"radio",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Apply temporary radio params (freq bw sf cr timeout_mins)",serialOnly:!1,hasParam:!0},{name:"sensor get",category:"sensor",params:[],description:"Get sensor/custom variable value",serialOnly:!1,hasParam:!0},{name:"sensor list",category:"sensor",params:[{name:"value",type:"int"}],description:"List all sensor/custom variables",serialOnly:!1,hasParam:!0},{name:"sensor set",category:"sensor",params:[],description:"Set sensor/custom variable value",serialOnly:!1,hasParam:!0},{name:"set adc.multiplier",category:"set",params:[{name:"value",type:"float"}],description:"Set ADC multiplier",serialOnly:!1,hasParam:!0},{name:"set advert.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"string"}],description:"Set local advert interval (1-10080 min, 0=off)",serialOnly:!1,hasParam:!0},{name:"set af",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set airtime factor (0-9)",serialOnly:!1,hasParam:!0},{name:"set agc.reset.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set AGC reset interval (seconds, rounded to 4)",serialOnly:!1,hasParam:!0},{name:"set allow.read.only",category:"set",params:[{name:"value",type:"int"}],description:"Set read-only access (on/off)",serialOnly:!1,hasParam:!0},{name:"set bridge.baud",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set bridge baud (9600-115200)",serialOnly:!1,hasParam:!0},{name:"set bridge.channel",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"string"}],description:"Set bridge channel (1-14)",serialOnly:!1,hasParam:!0},{name:"set bridge.delay",category:"set",params:[{name:"value",type:"int"}],description:"Set bridge delay (0-10000 ms)",serialOnly:!1,hasParam:!0},{name:"set bridge.enabled",category:"set",params:[{name:"value",type:"int"}],description:"Enable/disable bridge",serialOnly:!1,hasParam:!0},{name:"set bridge.secret",category:"set",params:[{name:"value",type:"string"},{name:"value",type:"float"}],description:"Set bridge encryption secret",serialOnly:!1,hasParam:!0},{name:"set bridge.source",category:"set",params:[{name:"value",type:"int"}],description:"Set bridge source (rx/tx)",serialOnly:!1,hasParam:!0},{name:"set direct.txdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set direct TX delay factor",serialOnly:!1,hasParam:!0},{name:"set flood.advert.interval",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set flood advert interval (3-48 hours, 0=off)",serialOnly:!1,hasParam:!0},{name:"set flood.max",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"float"}],description:"Set max flood hops (0-64)",serialOnly:!1,hasParam:!0},{name:"set freq",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set frequency MHz (serial only, reboot required)",serialOnly:!0,hasParam:!0},{name:"set guest.password",category:"set",params:[{name:"value",type:"string"}],description:"Set guest password",serialOnly:!1,hasParam:!0},{name:"set int.thresh",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set interference threshold",serialOnly:!1,hasParam:!0},{name:"set lat",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set latitude",serialOnly:!1,hasParam:!0},{name:"set lon",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set longitude",serialOnly:!1,hasParam:!0},{name:"set multi.acks",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set multi-ack (0/1)",serialOnly:!1,hasParam:!0},{name:"set name",category:"set",params:[{name:"value",type:"string"},{name:"value",type:"int"}],description:"Set node name",serialOnly:!1,hasParam:!0},{name:"set prv.key",category:"set",params:[{name:"value",type:"string"}],description:"Set private key (hex, restart required)",serialOnly:!1,hasParam:!0},{name:"set radio",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set radio params (freq bw sf cr)",serialOnly:!1,hasParam:!0},{name:"set repeat",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"int"}],description:"Set repeat/forward (on/off)",serialOnly:!1,hasParam:!0},{name:"set rxdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"float"}],description:"Set RX delay base",serialOnly:!1,hasParam:!0},{name:"set tx",category:"set",params:[{name:"value",type:"int"},{name:"value",type:"float"}],description:"Set TX power (dBm)",serialOnly:!1,hasParam:!0},{name:"set txdelay",category:"set",params:[{name:"value",type:"float"},{name:"value",type:"int"}],description:"Set TX delay factor",serialOnly:!1,hasParam:!0},{name:"stats-core",category:"stats",params:[],description:"Show core statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"stats-packets",category:"stats",params:[],description:"Show packet statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"stats-radio",category:"stats",params:[],description:"Show radio statistics (serial only)",serialOnly:!0,hasParam:!1},{name:"advert",category:"system",params:[],description:"Send self advertisement",serialOnly:!1,hasParam:!1},{name:"board",category:"system",params:[],description:"Show board/manufacturer name",serialOnly:!1,hasParam:!1},{name:"clear stats",category:"system",params:[],description:"Reset statistics counters",serialOnly:!1,hasParam:!0},{name:"clock",category:"system",params:[{name:"value",type:"int"}],description:"Display current time",serialOnly:!1,hasParam:!0},{name:"clock sync",category:"system",params:[],description:"Sync clock from sender timestamp",serialOnly:!1,hasParam:!0},{name:"password",category:"system",params:[{name:"value",type:"string"}],description:"Change admin password",serialOnly:!1,hasParam:!0},{name:"reboot",category:"system",params:[],description:"Reboot the device",serialOnly:!1,hasParam:!1},{name:"start ota",category:"system",params:[{name:"value",type:"int"}],description:"Start OTA firmware update",serialOnly:!1,hasParam:!0},{name:"time",category:"system",params:[{name:"value",type:"int"}],description:"Set time to epoch seconds",serialOnly:!1,hasParam:!0},{name:"ver",category:"system",params:[],description:"Show firmware version and build date",serialOnly:!1,hasParam:!1}].filter(e=>!e.serialOnly&&!A.has(e.name)&&!L.some(t=>e.name.startsWith(t))).map(e=>({cmd:e.name,desc:e.description,params:e.hasParam?"{value}":void 0,required:e.hasParam}))],U={"set mode":["forward","monitor"],"set duty":["on","off"],"set repeat":["on","off"],"set tx":["10","14","17","20","22"],"set sf":["7","8","9","10","11","12"],"set bw":["125","250","500"],"set af":["0.5","1.0","1.5","2.0"],"set txdelay":["0.5","0.7","1.0","1.5"],"set direct.txdelay":["0.3","0.5","0.7"],"set log":["debug","info","warning"],"start cap":["30","60","120","300"]};function F(e){switch(e){case"success":return"text-accent-success";case"error":return"text-accent-danger";case"warning":return"text-amber-400";case"info":return"text-accent-tertiary";case"value":return"text-accent-primary";case"system":return"text-text-muted";default:return"text-text-secondary"}}const H=e.memo(function({entry:r}){const s=P(),n=l(),o=e.useCallback(e=>{const t=s.getReport(e);t?R(t,n):alert("Report no longer available. Captures are stored in session memory only.")},[s,n]);return"command"===r.type?t.jsxs("div",{className:"flex items-center gap-2 py-1",children:[t.jsx("span",{className:"text-text-muted font-medium select-none",children:"$"}),t.jsx("span",{className:"text-text-primary font-semibold",children:r.content})]}):"system"===r.type?t.jsx("div",{className:a("py-0.5",F(r.outputType||"system")),children:r.content}):r.content.includes("██")?t.jsx("pre",{className:a("terminal-ascii font-mono leading-none py-2 whitespace-pre",F(r.outputType||"value")),children:r.content}):t.jsx("div",{className:"ml-4 font-mono text-[13px] py-1",children:r.content.split("\n").map((e,a)=>{const s=function(e,t){if(e.startsWith("REC:::"))return[{text:"●",color:"text-red-500 animate-pulse",isRecording:!0},{text:` ${e.slice(6)}`,color:"text-text-muted"}];const a=e.trimStart();if(a.startsWith("DOWNLOAD:::")){const t=e.slice(0,e.length-a.length),r=a.slice(11).split(":::"),[s,n]=r;return[{text:`${t}⇓ download "${n}"`,color:"text-accent-primary underline cursor-pointer hover:text-accent-secondary",isDownload:!0,downloadId:s,downloadFilename:n}]}if(e.startsWith("HELP_HEADER:::"))return[{text:e.slice(14),color:"text-text-primary font-bold"}];if(e.startsWith("HELP_NOTE:::"))return[{text:e.slice(12),color:"text-text-muted italic"}];const r=e.match(/^([a-z][a-z0-9.]*(?:\s+[a-z][a-z0-9.]*)?):::(.+)$/);if(r){const[,e,t]=r,a=e.split(" "),s=a[0];let n="text-accent-tertiary";"get"===s?n="text-accent-success":"set"===s&&(n="text-amber-400");const o=[{text:` ${s}`,color:`${n} font-semibold`}];a.length>1&&o.push({text:` ${a.slice(1).join(" ")}`,color:"text-accent-primary"});const i=" ".repeat(Math.max(1,22-e.length));return o.push({text:`${i}${t}`,color:"text-text-muted"}),o}if("error"===t||"warning"===t)return[{text:e,color:F(t)}];if("value"===t)return[{text:e,color:F("value")}];const s=e.match(/^([\w\s.]+):\s*(.+)$/);if(s){const[,e,t]=s;return[{text:`${e}: `,color:"text-text-muted"},{text:t,color:"text-accent-primary font-semibold"}]}return e.startsWith("OK")?[{text:e,color:F("success")}]:[{text:e,color:F(t)}]}(e,r.outputType||"default");return t.jsx("div",{className:"leading-relaxed",children:s.map((e,a)=>e.isDownload?t.jsx("span",{className:e.color,onClick:()=>o(e.downloadId),role:"button",tabIndex:0,onKeyDown:t=>"Enter"===t.key&&o(e.downloadId),children:e.text},a):t.jsx("span",{className:e.color,children:e.text},a))},a)})})});function M(){const r=l(),s=c(),n=P(),o=G(e=>e.entries),i=G(e=>e.commandHistory),v=G(e=>e.isInitialized),{addEntry:b,updateEntry:x,addCommand:k,clearEntries:$,setInitialized:C}=G(),[T,E]=e.useState(""),[N,j]=e.useState(-1),[D,A]=e.useState(!1),[L,F]=e.useState([]),[M,q]=e.useState(0),[z,K]=e.useState(0),[B,X]=e.useState(!1),V=e.useRef(null),J=e.useRef(null),Q=e.useRef(null),Y=e.useRef(s);e.useEffect(()=>{Y.current=s},[s]),e.useEffect(()=>{v||(async()=>{b({type:"output",content:"██████ ██ ██ ███ ███ ██████\n██ ██ ██ ██ ████ ████ ██ \n██████ ████ ██ ████ ██ ██ \n██ ██ ██ ██ ██ ██ \n██ ██ ██ ██ ██████",outputType:"value"}),await new Promise(e=>setTimeout(e,200));const e=b({type:"system",content:"● Initializing terminal...",outputType:"system"});await new Promise(e=>setTimeout(e,400)),x(e,{content:"✓ Initializing terminal...",outputType:"success"});const t=b({type:"system",content:"● Connecting to repeater...",outputType:"system"});await new Promise(e=>setTimeout(e,600)),x(t,{content:"✓ Connected to repeater",outputType:"success"}),b({type:"system",content:"Ready. Type 'help' for commands.",outputType:"system"}),C(!0)})()},[v,b,x,C]),e.useEffect(()=>{J.current&&(J.current.scrollTop=J.current.scrollHeight)},[o]);const Z=e.useCallback(()=>{var e;const t=window.getSelection();t&&t.toString().length>0||null==(e=V.current)||e.focus()},[]),ee=e.useMemo(()=>(null==r?void 0:r.neighbors)?Object.values(r.neighbors).map(e=>e.node_name||e.name).filter(e=>!!e).sort():[],[null==r?void 0:r.neighbors]),te=e.useCallback(e=>{const t=e.trim().toLowerCase();if(!t)return A(!1),void F([]);const a=W.filter(e=>e.cmd.toLowerCase().startsWith(t));if(a.length>0)return F(a),q(0),void A(!0);if(t.includes(" ")){const e=t.lastIndexOf(" "),a=t.substring(0,e),r=t.substring(e+1);if("ping"===a&&ee.length>0){const e=ee.filter(e=>e.toLowerCase().startsWith(r)).slice(0,10).map(e=>({cmd:`ping ${e}`,desc:`→ ${e}`}));if(e.length>0)return F(e),q(0),void A(!0)}if("export cap"===a&&n.reports.length>0){const e=n.reports.map((e,t)=>({id:e.id,index:String(t+1),pkts:e.packetCount,duration:e.durationSec})).filter(e=>e.id.toLowerCase().startsWith(r)||e.index.startsWith(r)).slice(0,10).map(e=>({cmd:`export cap ${e.index}`,desc:`${e.pkts} pkts • ${e.duration}s`}));if(e.length>0)return F(e),q(0),void A(!0)}const s=W.find(e=>e.cmd.toLowerCase()===a);if(s&&U[s.cmd]){const e=U[s.cmd].filter(e=>e.toLowerCase().startsWith(r)).map(e=>({cmd:`${s.cmd} ${e}`,desc:`→ ${e}`}));if(e.length>0)return F(e),q(0),void A(!0)}}A(!1),F([])},[ee,n.reports]),ae=e.useCallback(e=>{var t;const a=L[e];a&&(a.required&&a.params?(E(a.cmd+" "),te(a.cmd+" ")):(E(a.cmd),A(!1)),null==(t=V.current)||t.focus())},[L,te]),re=e.useCallback(async e=>{var t,a,o,i,l,c,h,v,w;const _=e.trim();if(!_)return;const S=_.toLowerCase();if(k(_),b({type:"command",content:_}),"clear"===S)return void $();if("help"===S){const e=W.map(e=>`${e.cmd}:::${e.desc}`).join("\n");return void b({type:"output",content:`HELP_HEADER:::Available commands\n${e}\nHELP_NOTE:::Some MeshCore commands not available via HTTP.`,outputType:"default"})}const O=b({type:"output",content:"processing...",outputType:"system"});try{const e=await d();let k="",$="info";const E=e=>{const t=Math.floor(e/86400),a=Math.floor(e%86400/3600),r=Math.floor(e%3600/60);return t>0?`${t}d ${a}h ${r}m`:a>0?`${a}h ${r}m`:`${r}m`};if("status"===S){k=`Mode: ${(null==(a=null==(t=e.config)?void 0:t.repeater)?void 0:a.mode)||"unknown"} | Neighbors: ${Object.keys(e.neighbors||{}).length} | Uptime: ${E(e.uptime_seconds||0)}`}else if("uptime"===S)k=E(e.uptime_seconds||0),$="value";else if("packets"===S)k=`rx: ${e.rx_count??0}\ntx: ${e.tx_count??0}\nfwd: ${e.forwarded_count??0}\ndrop: ${e.dropped_count??0}`;else if("neighbors"===S){const t=e.neighbors||{},a=Object.entries(t);if(0===a.length)k="No neighbors discovered yet.",$="warning";else{const e=a.map(([e,t])=>{const a=t.name||t.node_name||"Unknown";return` ${e.slice(0,8)} ${a}`});k=`Neighbors (${a.length}):\n${e.join("\n")}`}}else if("board"===S)k="pyMC_Repeater (Linux/RPi)",$="value";else if(S.startsWith("get ")){const t=S.slice(4).trim(),a=null==(o=e.config)?void 0:o.delays,r=null==(i=e.config)?void 0:i.radio,s=null==(l=e.config)?void 0:l.repeater,n=null==(c=e.config)?void 0:c.duty_cycle;switch(t){case"name":k=(null==(h=e.config)?void 0:h.node_name)||"Unknown";break;case"role":k="repeater";break;case"lat":k=null!=(null==s?void 0:s.latitude)?String(s.latitude):"not set";break;case"lon":k=null!=(null==s?void 0:s.longitude)?String(s.longitude):"not set";break;case"freq":k=(null==r?void 0:r.frequency)?(r.frequency/1e6).toFixed(3):"?";break;case"tx":k=String((null==r?void 0:r.tx_power)??"?");break;case"bw":k=(null==r?void 0:r.bandwidth)?String(r.bandwidth/1e3):"?";break;case"sf":k=String((null==r?void 0:r.spreading_factor)??"?");break;case"cr":k=String((null==r?void 0:r.coding_rate)??"?");break;case"radio":k=r?`freq: ${(r.frequency/1e6).toFixed(3)} MHz\nbw: ${r.bandwidth/1e3} kHz\nsf: ${r.spreading_factor}\ncr: 4/${r.coding_rate}`:"?";break;case"af":case"txdelay":k=String((null==a?void 0:a.tx_delay_factor)??"1.0");break;case"direct.txdelay":k=String((null==a?void 0:a.direct_tx_delay_factor)??"0.5");break;case"mode":k=(null==s?void 0:s.mode)||"forward";break;case"repeat":k="forward"===(null==s?void 0:s.mode)?"on":"off";break;case"flood.max":k=String((null==s?void 0:s.max_flood_hops)??"3");break;case"flood.advert.interval":k=null!=(null==s?void 0:s.send_advert_interval_hours)?`${s.send_advert_interval_hours}h`:"?";break;case"advert.interval":k=null!=(null==s?void 0:s.advert_interval_minutes)?`${s.advert_interval_minutes}m`:"120m";break;case"rxdelay":k=String((null==a?void 0:a.rx_delay_base)??"0.0");break;case"duty":case"duty.enabled":k=(null==n?void 0:n.enforcement_enabled)?"on":"off";break;case"duty.max":k=null!=(null==n?void 0:n.max_airtime_percent)?`${n.max_airtime_percent}%`:"?";break;case"public.key":k=e.public_key||"not available";break;case"prv.key":k="Private key stored in /etc/pymc_repeater/config.yaml\n\nTo view: sudo grep identity_key /etc/pymc_repeater/config.yaml\nTo set: sudo ./convert_firmware_key.sh <64-byte-hex>",$="info";break;case"guest.password":case"allow.read.only":k="Security settings not exposed via stats API.\nCheck /etc/pymc_repeater/config.yaml",$="warning";break;default:k=`Unknown parameter: ${t}\nAvailable: name, role, lat, lon, freq, tx, bw, sf, cr, radio, af, txdelay, direct.txdelay, rxdelay, mode, repeat, flood.max, advert.interval, duty, public.key`,$="error"}"error"!==$&&($="value")}else if("advert"===S){const e=await p();k=e.success?"OK - Advert sent":`Error: ${e.error||"Failed"}`,$=e.success?"success":"error"}else if(S.startsWith("set mode ")){const e=S.split(" ")[2];if("forward"!==e&&"monitor"!==e)k='Error: Mode must be "forward" or "monitor"',$="error";else{const t=await m(e);k=t.success?`OK - Mode set to ${e}`:"Error: Failed",$=t.success?"success":"error"}}else if(S.startsWith("set duty ")){const e=S.split(" ")[2],t="on"===e||"1"===e,a=await u(t);k=a.success?"OK - Duty cycle "+(t?"enabled":"disabled"):"Error: Failed",$=a.success?"success":"error"}else if(S.startsWith("set tx ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||e<2||e>22)k="Error: TX power must be 2-22 dBm (SX1262 chip max)",$="error";else{const t=await y({tx_power:e});k=t.success?`OK - TX power set to ${e}dBm`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set af ")||S.startsWith("set txdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0||e>5)k="Error: TX delay factor must be 0.0-5.0",$="error";else{const t=await y({tx_delay_factor:e});k=t.success?`OK - TX delay set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set direct.txdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0||e>5)k="Error: Direct TX delay must be 0.0-5.0",$="error";else{const t=await y({direct_tx_delay_factor:e});k=t.success?`OK - Direct TX delay set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set log ")){const e=null==(v=S.split(" ")[2])?void 0:v.toUpperCase();if(["DEBUG","INFO","WARNING","ERROR"].includes(e)){const t=await g(e);k=t.success?`OK - Log level set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}else k="Error: Level must be debug, info, warning, or error",$="error"}else if(S.startsWith("set rxdelay ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<0)k="Error: RX delay must be >= 0",$="error";else{const t=await y({rx_delay_base:e});k=t.success?`OK - RX delay base set to ${e}s`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set name ")){const e=_.substring(9).trim();if(e){const t=await y({node_name:e});k=t.success?`OK - Node name set to "${e}"`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}else k="Error: Node name cannot be empty",$="error"}else if(S.startsWith("set lat ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<-90||e>90)k="Error: Latitude must be -90 to 90",$="error";else{const t=await y({latitude:e});k=t.success?`OK - Latitude set to ${e}°`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set lon ")){const e=parseFloat(S.split(" ")[2]);if(isNaN(e)||e<-180||e>180)k="Error: Longitude must be -180 to 180",$="error";else{const t=await y({longitude:e});k=t.success?`OK - Longitude set to ${e}°`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set flood.max ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||e<0||e>64)k="Error: Max flood hops must be 0-64",$="error";else{const t=await y({max_flood_hops:e});k=t.success?`OK - Max flood hops set to ${e}`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set flood.advert.interval ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||0!==e&&(e<3||e>48))k="Error: Flood advert interval must be 0 (off) or 3-48 hours",$="error";else{const t=await y({flood_advert_interval_hours:e});k=t.success?0===e?"OK - Flood adverts disabled":`OK - Flood advert interval set to ${e}h`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set advert.interval ")){const e=parseInt(S.split(" ")[2]);if(isNaN(e)||0!==e&&(e<1||e>10080))k="Error: Advert interval must be 0 (off) or 1-10080 minutes",$="error";else{const t=await y({advert_interval_minutes:e});k=t.success?0===e?"OK - Local adverts disabled":`OK - Local advert interval set to ${e}m`:`Error: ${t.error||"Failed"}`,$=t.success?"success":"error"}}else if(S.startsWith("set prv.key ")){const e=_.substring(12).trim();e?/^[0-9a-fA-F]+$/.test(e)?128!==e.length?(k=`Error: Key must be 64 bytes (128 hex chars), got ${e.length} chars`,$="error"):(k=`To set this key, run on the Pi:\n\n sudo ./convert_firmware_key.sh ${e}\n\nThen restart: sudo systemctl restart pymc-repeater`,$="info"):(k="Error: Private key must be a hex string",$="error"):(k="Error: Private key cannot be empty",$="error")}else if(S.startsWith("convert hex ")){const e=_.substring(12).trim();if(e)if(/^[0-9a-fA-F]+$/.test(e))if(e.length%2!=0)k="Error: Hex string must have even length",$="error";else try{const t=new Uint8Array(e.length/2);for(let s=0;s1&&!isNaN(r)&&r>0,n=s?t.slice(0,-1).join(" "):e,o=s?r:30;if(n){let e=1;const t=setInterval(()=>{e=e%3+1,x(O,{content:`Pinging ${n}${".".repeat(e)}`,outputType:"system"})},800);try{const e=await f(n,o);if(clearInterval(t),e.success&&e.data){const t=e.data,a=(null==(w=t.path)?void 0:w.length)?t.path.join(" → "):"direct";k=`Reply from ${t.target_id}\n RTT: ${t.rtt_ms.toFixed(1)}ms\n RSSI: ${t.rssi}dBm\n SNR: ${t.snr_db}dB\n Path: ${a}\n Quality: ${t.quality}`,$="success"}else k=e.error||"Ping failed",$="error"}catch(T){throw clearInterval(t),T}}else k="Usage: ping [timeout]",$="error"}else if("cap"===S||"cap help"===S){const e=n.isCapturing?'\nREC:::Recording in progress... use "end cap" to stop':"",t=n.reports.length;k=`HELP_HEADER:::Packet Capture\n\nstart cap:::Start capture (default: 120s)\nend cap:::Stop capture early\nlist cap:::List saved captures${t>0?` (${t} saved)`:""}\nexport cap:::Download capture by ID\n\nHELP_NOTE:::Captures stored in session memory. JSON includes decoded payloads.${e}`,$="info"}else if("start cap"===S||S.startsWith("start cap ")){const e=S.slice(10).trim(),t=e?parseInt(e):120;if(isNaN(t)||t<1||t>3600)k="Error: Duration must be 1-3600 seconds",$="error";else{if(!n.isCapturing){n.startCapture(s);let e=t;x(O,{content:`REC:::Capturing... ${e}s remaining`,outputType:"system"});const a=setInterval(()=>{e--;const t=P.getState();if(e>=0&&t.isCapturing){const a=Y.current.filter(e=>{if(!t.captureStartTime)return!1;const a=t.captureStartTime.getTime()/1e3;return e.timestamp>=a&&!t.captureStartPacketHashes.has(e.packet_hash)}).length;x(O,{content:`REC:::Capturing... ${e>0?`${e}s remaining`:"finishing..."} (${a} captured)`,outputType:"system"})}},1e3),r=setTimeout(()=>{clearInterval(a);const e=P.getState();if(e.isCapturing){const t=Y.current,a=e.stopCapture(t);b(a?{type:"output",content:`✓ Capture complete!\n Captured: ${a.packetCount} packets\n Duration: ${a.durationSec}s\n Size: ~${I(a.sizeBytes)}\n\nDOWNLOAD:::${a.id}:::${a.filename}`,outputType:"success"}:{type:"output",content:"Capture completed with no packets.",outputType:"warning"})}},1e3*t);return void n._setTimer(r)}k='Error: Capture already in progress. Use "end cap" first.',$="error"}}else if("end cap"===S)if(n.isCapturing){const e=n.stopCapture(s);e?(k=`✓ Capture complete!\n Captured: ${e.packetCount} packets\n Duration: ${e.durationSec}s\n Size: ~${I(e.sizeBytes)}\n\nDOWNLOAD:::${e.id}:::${e.filename}`,$="success"):(k="Capture stopped with no packets.",$="warning")}else k="No capture in progress.",$="warning";else if("list cap"===S){const e=n.reports;if(0===e.length)k="No capture reports available.\nStart a capture with: start cap [seconds]",$="info";else{const t=e.map((e,t)=>` ${t+1}. ${e.packetCount} pkts • ${e.durationSec}s • ~${I(e.sizeBytes)}\n DOWNLOAD:::${e.id}:::${e.filename}`);k=`Capture Reports (${e.length}):\n${t.join("\n")}`,$="info"}}else if("export cap"===S||S.startsWith("export cap ")){const e=S.slice(11).trim();if(e){const t=n.getReport(e);if(t)R(t,r),k=`✓ Downloading ${t.filename}...`,$="success";else{const t=parseInt(e)-1,a=n.reports[t];a?(R(a,r),k=`✓ Downloading ${a.filename}...`,$="success"):(k=`Error: Report "${e}" not found.\nUse "list cap" to see available reports.`,$="error")}}else{const e=n.reports;0===e.length?(k="No capture reports available.\nStart a capture with: start cap [seconds]",$="info"):(k=`Usage: export cap \n\nAvailable reports:\n${e.map((e,t)=>` ${t+1}. ${e.id}`).join("\n")}`,$="info")}}else k=`Unknown command: ${_}\nType 'help' for available commands.`,$="error";x(O,{content:k,outputType:$})}catch(E){x(O,{content:`Error: ${E instanceof Error?E.message:"Command failed"}`,outputType:"error"})}},[b,k,x,$,n,s,r]),se=e.useCallback(e=>{var t,a,r,s,n,o;if(D&&L.length>0){if("ArrowDown"===e.key){e.preventDefault();const s=Math.min(M+1,L.length-1);return q(s),void(null==(r=null==(a=null==(t=Q.current)?void 0:t.children[0])?void 0:a.children[s])||r.scrollIntoView({block:"nearest"}))}if("ArrowUp"===e.key){e.preventDefault();const t=Math.max(M-1,0);return q(t),void(null==(o=null==(n=null==(s=Q.current)?void 0:s.children[0])?void 0:n.children[t])||o.scrollIntoView({block:"nearest"}))}if("Tab"===e.key)return e.preventDefault(),void ae(M);if("Escape"===e.key)return e.preventDefault(),void A(!1)}if("Enter"===e.key){if(e.preventDefault(),D&&L.length>0){const e=L[M].cmd;return E(""),j(-1),A(!1),void re(e)}const t=T;return E(""),j(-1),A(!1),void re(t)}if("ArrowUp"!==e.key||D)if("ArrowDown"!==e.key||D);else if(e.preventDefault(),N>0){const e=N-1;j(e),E(i[i.length-1-e]||"")}else 0===N&&(j(-1),E(""));else if(e.preventDefault(),i.length>0&&N{E(e.target.value),K(e.target.selectionStart||e.target.value.length),te(e.target.value)},[te]),oe=e.useCallback(e=>{const t=e.target;K(t.selectionStart||0)},[]);return t.jsxs(w,{children:[t.jsx(_,{title:"Terminal",icon:t.jsx(h,{})}),t.jsx(S,{children:t.jsxs(O,{noPadding:!0,className:"terminal-card overflow-hidden flex flex-col isolate",onClick:Z,children:[t.jsx("div",{ref:J,className:"flex-1 overflow-y-auto font-mono text-sm p-3 sm:p-4 md:p-5 surface-themed","data-theme":"terminal",children:o.map(e=>t.jsx(H,{entry:e},e.id))}),t.jsxs("div",{className:"relative surface-themed","data-theme":"terminal-input",children:[t.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 px-3 sm:px-4 py-2 sm:py-3",children:[t.jsx("span",{className:"text-text-muted font-mono font-bold select-none",children:"$"}),t.jsxs("div",{className:"flex-1 relative font-mono text-sm",children:[t.jsx("input",{ref:V,type:"text",value:T,onChange:ne,onKeyDown:se,onSelect:oe,onFocus:()=>X(!0),onBlur:()=>X(!1),disabled:!v,className:"absolute inset-0 w-full bg-transparent text-transparent outline-none disabled:opacity-50 selection:bg-transparent",style:{caretColor:"transparent"},autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}),t.jsx("div",{className:"relative pointer-events-none select-none","aria-hidden":!0,children:v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-text-primary",children:T.slice(0,z)}),t.jsx("span",{className:a("inline-block w-[0.6em] h-[1.2em] align-text-bottom",B?"bg-accent-primary":"bg-text-muted/30"),style:{marginBottom:"-0.1em"},children:t.jsx("span",{className:"text-bg-primary",children:T[z]||""})}),t.jsx("span",{className:"text-text-primary",children:T.slice(z+1)})]}):t.jsx("span",{className:"text-text-muted",children:"Connecting..."})})]})]}),t.jsxs("div",{className:"px-3 sm:px-4 py-1 flex justify-between text-[10px] text-text-muted surface-themed","data-theme":"terminal-status",children:[t.jsx("span",{className:"hidden sm:inline",children:"↑↓ History"}),t.jsx("span",{className:"sm:hidden",children:"Terminal"}),(null==r?void 0:r.version)&&t.jsxs("span",{children:["pyMC v",r.version]})]})]}),D&&L.length>0&&t.jsxs("div",{ref:Q,className:"absolute left-2 right-2 bottom-[72px] radius-inset overflow-hidden z-50 surface-themed","data-theme":"terminal-autocomplete",children:[t.jsx("div",{className:"max-h-64 overflow-y-auto",children:L.map((e,r)=>t.jsxs("div",{onClick:()=>ae(r),className:a("px-4 py-2.5 cursor-pointer last:border-b-0 transition-colors surface-divider-bottom",r===M?"bg-accent-primary/25":""),"data-theme":"terminal",onMouseEnter:e=>{r!==M&&(e.currentTarget.style.background="var(--terminal-autocomplete-hover)")},onMouseLeave:e=>{r!==M&&(e.currentTarget.style.background="transparent")},children:[t.jsx("span",{className:a("font-mono text-sm",r===M?"text-accent-primary":"text-text-primary"),children:e.cmd}),t.jsx("span",{className:"text-xs text-text-muted ml-4",children:e.desc})]},e.cmd))}),t.jsx("div",{className:"px-3 py-1.5 text-[10px] text-text-muted text-right surface-divider-top","data-theme":"terminal",style:{backgroundColor:"var(--terminal-autocomplete-hover)"},children:"Tab to select"})]})]})})]})}export{M as default}; diff --git a/frontend/dist/assets/TimeRangeSelector-DuDkpPdY.js b/frontend/dist/assets/TimeRangeSelector-BzCEWjlJ.js similarity index 91% rename from frontend/dist/assets/TimeRangeSelector-DuDkpPdY.js rename to frontend/dist/assets/TimeRangeSelector-BzCEWjlJ.js index ae542826..13c542ea 100644 --- a/frontend/dist/assets/TimeRangeSelector-DuDkpPdY.js +++ b/frontend/dist/assets/TimeRangeSelector-BzCEWjlJ.js @@ -1 +1 @@ -import{c as e,aY as a}from"./index-_WuEOacy.js";import{r as s,j as o,c as t}from"./vendor-react-BKIq8k5U.js";import{A as i}from"./index-DU6QWVJT.js";const r=e("ear-off",[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),n={type:"spring",visualDuration:.4,bounce:.15,opacity:{duration:.15,ease:"linear"}},c=s.memo(function({value:e,format:t,prefix:r,suffix:c,className:l,priority:m="medium"}){const[u,f]=s.useState(!1),[p,d]=s.useState(e);s.useEffect(()=>a(()=>{f(!0),d(0)},m),[m]),s.useEffect(()=>{u&&d(e)},[u,e]);const g=`${r??""}${e.toLocaleString(void 0,t)}${c??""}`;return u?o.jsx(i,{className:`${l??""} overflow-hidden`,format:t,prefix:r,suffix:c,transition:n,children:p}):o.jsx("span",{className:l,children:g})}),l=s.memo(function({ranges:e,selectedIndex:a,onSelect:s,isPending:i,size:r="default"}){const n="sm"===r?"toggle-group-sm":"micro"===r?"toggle-group-micro":"";return o.jsx("div",{className:t("toggle-group flex-shrink-0 overflow-x-auto",n,i&&"opacity-70"),children:e.map((e,i)=>o.jsx("button",{onClick:()=>s(i),className:t("toggle-group-item",a===i&&"active"),children:e.label},e.label))})});export{c as A,r as E,l as T}; +import{c as e,aY as a}from"./index-CrU_Ps9k.js";import{r as s,j as o,c as t}from"./vendor-react-BKIq8k5U.js";import{A as i}from"./index-n30bZfID.js";const r=e("ear-off",[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),n={type:"spring",visualDuration:.4,bounce:.15,opacity:{duration:.15,ease:"linear"}},c=s.memo(function({value:e,format:t,prefix:r,suffix:c,className:l,priority:m="medium"}){const[u,f]=s.useState(!1),[p,d]=s.useState(e);s.useEffect(()=>a(()=>{f(!0),d(0)},m),[m]),s.useEffect(()=>{u&&d(e)},[u,e]);const g=`${r??""}${e.toLocaleString(void 0,t)}${c??""}`;return u?o.jsx(i,{className:`${l??""} overflow-hidden`,format:t,prefix:r,suffix:c,transition:n,children:p}):o.jsx("span",{className:l,children:g})}),l=s.memo(function({ranges:e,selectedIndex:a,onSelect:s,isPending:i,size:r="default"}){const n="sm"===r?"toggle-group-sm":"micro"===r?"toggle-group-micro":"";return o.jsx("div",{className:t("toggle-group flex-shrink-0 overflow-x-auto",n,i&&"opacity-70"),children:e.map((e,i)=>o.jsx("button",{onClick:()=>s(i),className:t("toggle-group-item",a===i&&"active"),children:e.label},e.label))})});export{c as A,r as E,l as T}; diff --git a/frontend/dist/assets/activity-CYJ1WO67.js b/frontend/dist/assets/activity-DIYCEspu.js similarity index 72% rename from frontend/dist/assets/activity-CYJ1WO67.js rename to frontend/dist/assets/activity-DIYCEspu.js index d0987f49..d60b7e75 100644 --- a/frontend/dist/assets/activity-CYJ1WO67.js +++ b/frontend/dist/assets/activity-DIYCEspu.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const t=a("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);export{t as A}; +import{c as a}from"./index-CrU_Ps9k.js";const t=a("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);export{t as A}; diff --git a/frontend/dist/assets/arrow-up-Bfc4DrcP.js b/frontend/dist/assets/arrow-up-2wZY9TSM.js similarity index 75% rename from frontend/dist/assets/arrow-up-Bfc4DrcP.js rename to frontend/dist/assets/arrow-up-2wZY9TSM.js index 8a090cb5..9087f229 100644 --- a/frontend/dist/assets/arrow-up-Bfc4DrcP.js +++ b/frontend/dist/assets/arrow-up-2wZY9TSM.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const e=a("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),r=a("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);export{e as A,r as a}; +import{c as a}from"./index-CrU_Ps9k.js";const e=a("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),r=a("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);export{e as A,r as a}; diff --git a/frontend/dist/assets/chevron-right-DBUqxZL-.js b/frontend/dist/assets/chevron-right-DBUqxZL-.js new file mode 100644 index 00000000..82993bc9 --- /dev/null +++ b/frontend/dist/assets/chevron-right-DBUqxZL-.js @@ -0,0 +1 @@ +import{c as t}from"./index-CrU_Ps9k.js";const h=t("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);export{h as C}; diff --git a/frontend/dist/assets/chevron-right-DMrbDIps.js b/frontend/dist/assets/chevron-right-DMrbDIps.js deleted file mode 100644 index 92f95ab0..00000000 --- a/frontend/dist/assets/chevron-right-DMrbDIps.js +++ /dev/null @@ -1 +0,0 @@ -import{c as t}from"./index-_WuEOacy.js";const h=t("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);export{h as C}; diff --git a/frontend/dist/assets/circle-check-COooBZCl.js b/frontend/dist/assets/circle-check-DH0TJtTq.js similarity index 62% rename from frontend/dist/assets/circle-check-COooBZCl.js rename to frontend/dist/assets/circle-check-DH0TJtTq.js index 56f7b2b0..dfcfb4e7 100644 --- a/frontend/dist/assets/circle-check-COooBZCl.js +++ b/frontend/dist/assets/circle-check-DH0TJtTq.js @@ -1 +1 @@ -import{c}from"./index-_WuEOacy.js";const e=c("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{e as C}; +import{c}from"./index-CrU_Ps9k.js";const e=c("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{e as C}; diff --git a/frontend/dist/assets/compass-BKAMqa2d.js b/frontend/dist/assets/compass-88H432HX.js similarity index 74% rename from frontend/dist/assets/compass-BKAMqa2d.js rename to frontend/dist/assets/compass-88H432HX.js index e094777a..cb278020 100644 --- a/frontend/dist/assets/compass-BKAMqa2d.js +++ b/frontend/dist/assets/compass-88H432HX.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const c=a("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);export{c as C}; +import{c as a}from"./index-CrU_Ps9k.js";const c=a("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);export{c as C}; diff --git a/frontend/dist/assets/database-DzqBwrzM.js b/frontend/dist/assets/database-lWroaxsL.js similarity index 73% rename from frontend/dist/assets/database-DzqBwrzM.js rename to frontend/dist/assets/database-lWroaxsL.js index 890647d6..c6745262 100644 --- a/frontend/dist/assets/database-DzqBwrzM.js +++ b/frontend/dist/assets/database-lWroaxsL.js @@ -1 +1 @@ -import{c as e}from"./index-_WuEOacy.js";const s=e("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);export{s as D}; +import{c as e}from"./index-CrU_Ps9k.js";const s=e("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);export{s as D}; diff --git a/frontend/dist/assets/git-branch-BPL9j6g1.js b/frontend/dist/assets/git-branch-CkXjQHb9.js similarity index 76% rename from frontend/dist/assets/git-branch-BPL9j6g1.js rename to frontend/dist/assets/git-branch-CkXjQHb9.js index a90244b8..2c940032 100644 --- a/frontend/dist/assets/git-branch-BPL9j6g1.js +++ b/frontend/dist/assets/git-branch-CkXjQHb9.js @@ -1 +1 @@ -import{c}from"./index-_WuEOacy.js";const e=c("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);export{e as G}; +import{c}from"./index-CrU_Ps9k.js";const e=c("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);export{e as G}; diff --git a/frontend/dist/assets/house-BBcJvvl1.js b/frontend/dist/assets/house-DNrMSmBS.js similarity index 76% rename from frontend/dist/assets/house-BBcJvvl1.js rename to frontend/dist/assets/house-DNrMSmBS.js index 79bbd0f2..781bf830 100644 --- a/frontend/dist/assets/house-BBcJvvl1.js +++ b/frontend/dist/assets/house-DNrMSmBS.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const s=a("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);export{s as H}; +import{c as a}from"./index-CrU_Ps9k.js";const s=a("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);export{s as H}; diff --git a/frontend/dist/assets/index-CrU_Ps9k.js b/frontend/dist/assets/index-CrU_Ps9k.js new file mode 100644 index 00000000..edb4f7c8 --- /dev/null +++ b/frontend/dist/assets/index-CrU_Ps9k.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-CLMnOgmx.js","assets/vendor-react-BKIq8k5U.js","assets/config-C7QO3CEB.js","assets/vendor-core-D1aqi_5O.js","assets/Dashboard-0Mm3av1O.js","assets/PageLayout-BlXA3E6H.js","assets/link-scoring-CpsMpD17.js","assets/TimeRangeSelector-BzCEWjlJ.js","assets/index-n30bZfID.js","assets/PacketList-Q1pG-MMT.js","assets/payload-decoders-N5zeG9av.js","assets/SignalIndicator-DN65UHiA.js","assets/arrow-up-2wZY9TSM.js","assets/DataBox-sJHphnZd.js","assets/chevron-right-DBUqxZL-.js","assets/loader-circle-D6Apotf0.js","assets/map-pin-BUNSWVCM.js","assets/triangle-alert-DrmOKr32.js","assets/route-BsYhRSod.js","assets/activity-DIYCEspu.js","assets/circle-check-DH0TJtTq.js","assets/database-lWroaxsL.js","assets/house-DNrMSmBS.js","assets/LightSparkline-CE1rnNiF.js","assets/NodeInformationCard-BjZ_sk1b.js","assets/Card-Cq7dyTi6.js","assets/Grid-BkE6UU8f.js","assets/Packets-DNl0vhne.js","assets/users-DHRSX58V.js","assets/Contacts-BZbynpbU.js","assets/ping-t2L803PH.js","assets/git-branch-CkXjQHb9.js","assets/ConfirmModal-CVFVRQC0.js","assets/CollisionExplorerModal-Bgt7baHs.js","assets/BasemapLayer-BldfARb5.js","assets/network-BfZEswvU.js","assets/target-DsO2pqIH.js","assets/maplibre-gl-B1CfjdFi.css","assets/Statistics-D_MqXTgr.js","assets/usePolling-_rZ6EKji.js","assets/compass-88H432HX.js","assets/info-KKRXPMHC.js","assets/settings-2-D7yA0852.js","assets/MeshGraph-BcggNpqL.js","assets/DeepAnalysisModal-DU5K5xVI.js","assets/MeshGraphLabelTest-SejBKwwA.js","assets/System-ZsL3Sv4K.js","assets/refresh-cw-C1m-5omb.js","assets/Logs-DOPaGEpF.js","assets/Terminal-Val-2gFV.js","assets/Configuration-DnJo15di.js","assets/font-loader-jlbdh9Fw.js"])))=>i.map(i=>d[i]); +var a,e,n=Object.defineProperty,t=(a,e,t)=>((a,e,t)=>e in a?n(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t)(a,"symbol"!=typeof e?e+"":e,t);import{r as o,j as r,b as s,c as i,L as l,h as c,z as d,Q as u,y as h,x as m,X as p,d as g,e as b,f}from"./vendor-react-BKIq8k5U.js";import{_ as y}from"./deckgl-DTsmDcfs.js";import{L as v,c as w,u as k,R as x,a as j,N as z,B as C}from"./vendor-core-D1aqi_5O.js";!function(){const a=document.createElement("link").relList;if(!(a&&a.supports&&a.supports("modulepreload"))){for(const a of document.querySelectorAll('link[rel="modulepreload"]'))e(a);new MutationObserver(a=>{for(const n of a)if("childList"===n.type)for(const a of n.addedNodes)"LINK"===a.tagName&&"modulepreload"===a.rel&&e(a)}).observe(document,{childList:!0,subtree:!0})}function e(a){if(a.ep)return;a.ep=!0;const e=function(a){const e={};return a.integrity&&(e.integrity=a.integrity),a.referrerPolicy&&(e.referrerPolicy=a.referrerPolicy),"use-credentials"===a.crossOrigin?e.credentials="include":"anonymous"===a.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(a);fetch(a.href,e)}}();const A={surfaces:{glass:{tint:"#252525",light:"#ffffff",dark:"#000000",reflexLight:.15,reflexDark:.8,blur:6,blurElevated:8,brightness:1,opacity:8,opacityElevated:12},card:{radius:"1.125rem",padding:"1.25rem",paddingCompact:"0.75rem"},sidebar:{tint:"rgba(113, 156, 223, 0.06)",width:"16rem",drawerWidth:"85vw"},modal:{radius:"1.125rem",backdropBlur:"8px",backdropColor:"rgba(0, 0, 0, 0.6)"}},colors:{bg:{body:"#171717",surface:"#252525",elevated:"#333233",subtle:"#3F3F3F"},border:{subtle:"#4B4B4B",strong:"#616161"},text:{primary:"#E1E1E1",secondary:"#BFBFBF",muted:"#727272",inverse:"#171717"},accent:{primary:"#719CDF",secondary:"#DFBC72",tertiary:"#6FBCBD",success:"#719872",danger:"#E12672"},signal:{excellent:"#00FF00",good:"#8CE619",fair:"#FFD900",poor:"#FF8C26",critical:"#FF3333",unknown:"#616161"},status:{success:"#719872",warning:"#DFBC72",danger:"#E12672",info:"#6FBCBD",muted:"#616161"},chart:{c1:"#719CDF",c2:"#0074BE",c3:"#6FBCBD",c4:"#DFBC72",c5:"#719872",c6:"#E12672",c7:"#E17899",c8:"#999ABD",grid:"rgba(255, 255, 255, 0.06)",axis:"rgba(255, 255, 255, 0.4)",cursor:"rgba(255, 255, 255, 0.2)"},metric:{received:"#719872",forwarded:"#0074BE",transmitted:"#DFBC72",dropped:"#E12672"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#8E4EC6",local:"#FFB224",neighbor:"#46A758",mobile:"#F76B15",room:"#D6409F",edge:"#4B4B4B",edgeHover:"#6FBCBD"}},typography:{font:{title:"'Inter', system-ui, sans-serif",display:"'Inter', system-ui, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Monaco, monospace"},size:{xs:"0.64rem",sm:"0.8rem",base:"1rem",md:"1.125rem",lg:"1.25rem",xl:"1.563rem",xxl:"1.953rem",hero:"3.052rem"},weight:{normal:400,medium:500,semibold:600,bold:700},leading:{tight:1.1,snug:1.25,normal:1.5},tracking:{tight:"-0.02em",normal:"0",wide:"0.05em"}},spacing:{space:{gap:"1.5rem",gapMobile:"0.75rem",page:"1.5rem",pageMobile:"1rem",section:"2rem"},radius:{sm:"0.5rem",md:"0.875rem",lg:"1.125rem",xl:"1.5rem",pill:"9999px"}},motion:{fast:"0.1s",normal:"0.15s",slow:"0.4s",easing:"ease-out"}};function D(a){const e=a.replace("#","");if(6!==e.length&&3!==e.length)return a;let n,t,o;return 3===e.length?(n=parseInt(e[0]+e[0],16)/255,t=parseInt(e[1]+e[1],16)/255,o=parseInt(e[2]+e[2],16)/255):(n=parseInt(e.slice(0,2),16)/255,t=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255),`color(display-p3 ${n.toFixed(3)} ${t.toFixed(3)} ${o.toFixed(3)})`}function E(){return"undefined"!=typeof window&&CSS.supports("color","color(display-p3 1 1 1)")}function B(a,e){const n={...a};for(const t of Object.keys(e)){const o=e[t],r=a[t];void 0!==o&&("object"!=typeof o||null===o||Array.isArray(o)||"object"!=typeof r||null===r||Array.isArray(r)?n[t]=o:n[t]=B(r,o))}return n}function F(a){return{meta:a.meta,display:a.display,surfaces:a.surfaces?B(A.surfaces,a.surfaces):A.surfaces,colors:a.colors?B(A.colors,a.colors):A.colors,typography:a.typography?B(A.typography,a.typography):A.typography,spacing:a.spacing?B(A.spacing,a.spacing):A.spacing,motion:a.motion?B(A.motion,a.motion):A.motion}}function q(a){const e=a.replace("#","");return 6===e.length?`${parseInt(e.slice(0,2),16)}, ${parseInt(e.slice(2,4),16)}, ${parseInt(e.slice(4,6),16)}`:"255, 255, 255"}function S(a){return{id:a.meta.id,colorScheme:{name:a.meta.name,dataTheme:a.meta.dataTheme,previewColor:a.meta.previewColor},background:{src:a.meta.backgroundImage,suggestedBrightness:a.meta.backgroundBrightness},display:{font:a.display.font,color:a.display.color,size:a.display.size,paletteColors:a.display.palette}}}const M="#fafafa",T="#a1a1aa",P="#71717a",L="#3f3f46",R="#27272a",N="#18181b",I="#09090b",_="#ef4444",V="#f97316",O="#f59e0b",$="#eab308",W="#22c55e",U="#10b981",H="#06b6d4",Y="#3b82f6",G="#8b5cf6",K=F({meta:{id:"",name:"",dataTheme:"",previewColor:Y,backgroundImage:"",backgroundBrightness:100,isDark:!0},display:{font:"Inter, sans-serif",color:T,size:1,palette:[[Y,W,$,V,_],[I,N,R,L,M]]},typography:{font:{title:"Inter, sans-serif",display:"Inter, sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},weight:{normal:400,medium:500,semibold:600,bold:700,badge:700},tracking:{tight:"-0.02em",normal:"0",wide:"0.025em"},badge:{textTransform:"capitalize"}},surfaces:{glass:{tint:N,light:L,dark:I,reflexLight:0,reflexDark:0,blur:0,blurElevated:0,brightness:1,opacity:100,opacityElevated:100,catalystMode:!0},sidebar:{tint:`${R}80`},card:{radius:"0.5rem"},modal:{radius:"0.75rem"}},colors:{bg:{body:I,surface:N,elevated:R,subtle:R},border:{subtle:R,strong:"#52525b"},text:{primary:"#fff",secondary:T,muted:P,inverse:I},accent:{primary:Y,secondary:$,tertiary:H,success:W,danger:_},signal:{excellent:W,good:"#84cc16",fair:$,poor:V,critical:_,unknown:P},status:{success:W,warning:O,danger:_,info:Y,muted:P},chart:{c1:Y,c2:U,c3:O,c4:V,c5:"#f43f5e",c6:G,c7:H,c8:P,grid:`${M}0d`,axis:`${M}33`,cursor:`${Y}33`},metric:{received:Y,forwarded:U,transmitted:V,dropped:_},map:{nodeFill:Y,nodeStroke:`${M}e6`,hub:G,local:O,neighbor:U,mobile:V,room:"#ec4899",edge:L,edgeHover:Y}}}),X=K;S(K);const J=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#B39DF3",backgroundImage:"/assets/sand.jpg",backgroundBrightness:80,isDark:!0},display:{font:"'Rubik Mono One', monospace",color:"#4A4A52",size:.8,palette:[["#B49DFF","#F9D26F","#71F8E5","#39D98A","#FF5C7A"],["#4CFFB5","#FF8A5C","#A78BFA","#60A5FA","#F472B6"]]},typography:{font:{title:"'Rubik Mono One', monospace"}},surfaces:{glass:{tint:"#252525",blur:6,blurElevated:8},sidebar:{tint:"rgba(113, 156, 223, 0.06)"}}}),Z=J;S(J);const Q=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#fabd2f",backgroundImage:"/assets/magma.webp",backgroundBrightness:50,isDark:!0},display:{font:"'Jacquard 12', serif",color:"#fe8019",size:1.75,palette:[["#fabd2f","#fb4934","#8ec07c","#b8bb26","#d3869b"],["#fe8019","#83a598","#d65d0e","#928374","#ebdbb2"]]},typography:{font:{title:"'Jacquard 12', serif"},size:{xxl:"2.344rem"}},surfaces:{glass:{tint:"#282828"},sidebar:{tint:"rgba(250, 189, 47, 0.06)"}},colors:{accent:{primary:"#fabd2f",secondary:"#fb4934",tertiary:"#8ec07c",success:"#b8bb26",danger:"#fb4934"},signal:{excellent:"#b8bb26",good:"#8ec07c",fair:"#fabd2f",poor:"#fe8019",critical:"#fb4934",unknown:"#928374"},status:{success:"#b8bb26",warning:"#fabd2f",danger:"#fb4934",info:"#83a598",muted:"#928374"},chart:{c1:"#fabd2f",c2:"#fe8019",c3:"#fb4934",c4:"#d3869b",c5:"#b8bb26",c6:"#8ec07c",c7:"#83a598",c8:"#d65d0e",grid:"rgba(251, 241, 199, 0.06)",axis:"rgba(251, 241, 199, 0.4)",cursor:"rgba(251, 241, 199, 0.2)"},metric:{received:"#b8bb26",forwarded:"#83a598",transmitted:"#fabd2f",dropped:"#fb4934"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b16286",local:"#fabd2f",neighbor:"#fabd2f",mobile:"#fe8019",room:"#d3869b",edge:"#665c54",edgeHover:"#8ec07c"}}}),aa=Q;S(Q);const ea=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#83a598",backgroundImage:"/assets/water.webp",backgroundBrightness:40,isDark:!0},display:{font:"'Cantora One', sans-serif",color:"#83a598",size:1.25,palette:[["#83a598","#a89984","#8ec07c","#d79921","#b16286"],["#fe8019","#cc241d","#7c6f64","#bdae93","#ebdbb2"]]},typography:{font:{title:"'Cantora One', sans-serif"},size:{xxl:"2.148rem"},weight:{semibold:500}},surfaces:{glass:{tint:"#1e1e1e"},sidebar:{tint:"rgba(131, 165, 152, 0.06)"}},colors:{accent:{primary:"#83a598",secondary:"#a89984",tertiary:"#8ec07c",success:"#8ec07c",danger:"#cc241d"},signal:{excellent:"#8ec07c",good:"#b8bb26",fair:"#d79921",poor:"#fe8019",critical:"#cc241d",unknown:"#7c6f64"},status:{success:"#8ec07c",warning:"#d79921",danger:"#cc241d",info:"#83a598",muted:"#7c6f64"},chart:{c1:"#83a598",c2:"#8ec07c",c3:"#d79921",c4:"#b16286",c5:"#fe8019",c6:"#cc241d",c7:"#a89984",c8:"#7c6f64",grid:"rgba(213, 196, 161, 0.06)",axis:"rgba(213, 196, 161, 0.4)",cursor:"rgba(213, 196, 161, 0.2)"},metric:{received:"#8ec07c",forwarded:"#83a598",transmitted:"#d79921",dropped:"#cc241d"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b16286",local:"#d79921",neighbor:"#d79921",mobile:"#fe8019",room:"#b16286",edge:"#504945",edgeHover:"#83a598"}}}),na=ea;S(ea);const ta=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#33859d",backgroundImage:"/assets/stars.jpg",backgroundBrightness:100,isDark:!0},display:{font:"'IBM Plex Mono', monospace",color:"#c23127",size:1.25,palette:[["#33859d","#edb54b","#26a98b","#c23127","#888ca6"],["#195465","#d26939","#99d1ce","#4e5165","#0c1014"]]},typography:{font:{title:"'IBM Plex Mono', monospace"}},surfaces:{glass:{tint:"#0a0e14",blur:1,blurElevated:2},sidebar:{tint:"rgba(51, 133, 157, 0.06)"}},colors:{accent:{primary:"#33859d",secondary:"#edb54b",tertiary:"#26a98b",success:"#26a98b",danger:"#c33027"},signal:{excellent:"#26a98b",good:"#7ec07c",fair:"#edb54b",poor:"#d26939",critical:"#c33027",unknown:"#195465"},status:{success:"#26a98b",warning:"#edb54b",danger:"#c33027",info:"#599caa",muted:"#195465"},chart:{c1:"#33859d",c2:"#edb54b",c3:"#26a98b",c4:"#599caa",c5:"#d26939",c6:"#c33027",c7:"#888ba5",c8:"#195465",grid:"rgba(153, 209, 206, 0.06)",axis:"rgba(153, 209, 206, 0.4)",cursor:"rgba(153, 209, 206, 0.2)"},metric:{received:"#26a98b",forwarded:"#33859d",transmitted:"#edb54b",dropped:"#c33027"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#888ba5",local:"#edb54b",neighbor:"#edb54b",mobile:"#d26939",room:"#888ba5",edge:"#245361",edgeHover:"#26a98b"}}}),oa=ta;S(ta);const ra="#2D2D2D",sa="#4A4A4A",ia="#7A7A7A",la=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#9ed072",backgroundImage:"",backgroundColor:"#F5F5F5",backgroundBrightness:100,isDark:!1},display:{font:"'JetBrains Mono', monospace",color:"#2D2D2D",size:1,palette:[["#9ed072","#fc5d7c","#76cce0","#e7c664","#b39df3"],["#f39660","#7f8490","#e2e2e3","#55575e","#2c2e34"]]},typography:{font:{title:"'JetBrains Mono', 'SF Mono', Monaco, monospace",display:"'Instrument Sans', system-ui, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Monaco, monospace",cardTitle:"'JetBrains Mono', 'SF Mono', Monaco, monospace"},size:{xxl:"1.875rem",cardTitle:"1rem"},weight:{normal:400,medium:500,semibold:600,bold:600,cardTitle:600}},surfaces:{glass:{tint:"#FFFFFF",light:"rgba(255, 255, 255, 1)",dark:"rgba(0, 0, 0, 0.1)",reflexLight:0,reflexDark:0,blur:0,blurElevated:0,brightness:1,opacity:0,opacityElevated:0,ribbonMode:!0,ribbonBorderWidth:2,ribbonBorderColor:ia},sidebar:{tint:"rgba(0, 0, 0, 0.02)"}},colors:{bg:{body:"#F5F5F5",surface:"#FFFFFF",elevated:"#FFFFFF",subtle:"#EBEBEB"},border:{subtle:"#E0E0E0",strong:"#BFBFBF"},text:{primary:ra,secondary:sa,muted:ia,inverse:"#FFFFFF"},accent:{primary:"#9ed072",secondary:"#e7c664",tertiary:"#76cce0",success:"#9ed072",danger:"#fc5d7c"},signal:{excellent:"#9ed072",good:"#c5d93d",fair:"#e7c664",poor:"#f39660",critical:"#fc5d7c",unknown:"#7f8490"},status:{success:"#9ed072",warning:"#e7c664",danger:"#fc5d7c",info:"#76cce0",muted:"#7f8490"},chart:{c1:"#2E8B57",c2:"#E14D6B",c3:"#D4A832",c4:"#4A9EA0",c5:"#8B6BAE",c6:"#D97A4A",c7:ia,c8:sa,grid:"rgba(45, 45, 45, 0.08)",axis:"rgba(45, 45, 45, 0.5)",cursor:"rgba(45, 45, 45, 0.15)"},metric:{received:"#9ed072",forwarded:"#76cce0",transmitted:"#e7c664",dropped:"#fc5d7c"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b39df3",local:"#e7c664",neighbor:"#e7c664",mobile:"#f39660",room:"#fc5d7c",edge:ia,edgeHover:"#76cce0"},icon:{pageTitle:ra,cardTitle:ra,widget:sa,action:sa,nav:ia,navActive:ra},sidebar:{bg:"rgba(0, 0, 0, 0.02)",navHoverBg:"rgba(0, 0, 0, 0.04)",navActiveBg:"rgba(0, 0, 0, 0.06)",navActiveText:ra}}}),ca=la;S(la);const da=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#7E9CD8",backgroundImage:"/assets/folds.webp",backgroundBrightness:50,isDark:!0},display:{font:"'Inter', sans-serif",color:"#7E9CD8",size:1.25,palette:[["#7E9CD8","#E46876","#7AA89F","#DCA561","#957FB8"],["#7FB4CA","#D27E99","#98BB6C","#727169","#1F1F28"]]},typography:{font:{title:"'Inter', sans-serif"}},surfaces:{glass:{tint:"#1F1F28"},sidebar:{tint:"rgba(126, 156, 216, 0.06)"}},colors:{accent:{primary:"#7E9CD8",secondary:"#E6C384",tertiary:"#7FB4CA",success:"#98BB6C",danger:"#E46876"},signal:{excellent:"#98BB6C",good:"#B8CC5C",fair:"#E6C384",poor:"#FFA066",critical:"#E46876",unknown:"#54546D"},status:{success:"#98BB6C",warning:"#E6C384",danger:"#E46876",info:"#7FB4CA",muted:"#727169"},chart:{c1:"#7E9CD8",c2:"#E6C384",c3:"#98BB6C",c4:"#957FB8",c5:"#7FB4CA",c6:"#E46876",c7:"#FFA066",c8:"#D27E99",grid:"rgba(220, 215, 186, 0.06)",axis:"rgba(220, 215, 186, 0.4)",cursor:"rgba(220, 215, 186, 0.2)"},metric:{received:"#98BB6C",forwarded:"#7E9CD8",transmitted:"#E6C384",dropped:"#E46876"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#957FB8",local:"#E6C384",neighbor:"#E6C384",mobile:"#FFA066",room:"#D27E99",edge:"#54546D",edgeHover:"#7AA89F"}}}),ua=da;S(da);const ha={"KDE Breeze":X,Magma:aa,Folds:ua,Ribbon:ca,BLKSAND:Z,Waves:na,Stars:oa};function ma(a,e){const n=a.toLowerCase();return{...e,meta:{...e.meta,id:n,name:a,dataTheme:n}}}const pa=Object.fromEntries(Object.entries(ha).map(([a,e])=>[a,ma(a,e)])),ga=Object.fromEntries(Object.entries(pa).map(([a,e])=>[a,S(e)])),ba=Object.values(pa);function fa(a){return ba.find(e=>e.meta.id===a)}new Map(Object.entries(pa));const ya=Object.values(ga);new Map(Object.entries(ga));const va=Object.entries(ga).map(([a,e])=>function(a,e){return{id:a.id,name:a.colorScheme.name,displayName:e,colorScheme:a.id,backgroundImage:a.background.src,paletteColors:a.display.paletteColors,displayFont:a.display.font,displayColor:a.display.color,displaySize:a.display.size}}(e,a)),wa=ya.map(function(a){return{id:a.id,name:a.colorScheme.name,dataTheme:a.colorScheme.dataTheme,previewColor:a.colorScheme.previewColor}}),ka=ya.map(function(a){return{id:a.id,src:a.background.src,suggestedScheme:a.id,suggestedBrightness:a.background.suggestedBrightness}}),xa=pa["KDE Breeze"];ga["KDE Breeze"];const ja=xa.meta.id,za=xa.meta.backgroundImage,Ca=xa.meta.backgroundBrightness,Aa=wa,Da=ka,Ea=va,Ba={colorScheme:ja,backgroundImage:za,brightness:Ca},Fa="pymc-color-scheme",qa="pymc-background-image",Sa="pymc-bg-brightness",Ma="pymc-background";function Ta(a){(new Image).src=a}const Pa={50:.97,100:.92,200:.84,300:.73,400:.62,500:.5,600:.4,700:.32,800:.24,900:.16},La=[50,100,200,300,400,500,600,700,800,900],Ra=["red","orange","yellow","green","aqua","blue","purple"];function Na(a,e,n){const t=a=>Math.round(Math.max(0,Math.min(255,a))).toString(16).padStart(2,"0");return`#${t(a)}${t(e)}${t(n)}`}function Ia(a){const e=a/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _a(a){const e=a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055;return Math.round(255*e)}function Va(a,e,n){const t=n*(Math.PI/180),o=e*Math.cos(t),r=e*Math.sin(t),s=a+.3963377774*o+.2158037573*r,i=a-.1055613458*o-.0638541728*r,l=a-.0894841775*o-1.291485548*r,c=s*s*s,d=i*i*i,u=l*l*l,h=-1.2684380046*c+2.6097574011*d-.3413193965*u,m=-.0041960863*c-.7034186147*d+1.707614701*u;return[_a(4.0767416621*c-3.3077115913*d+.2309699292*u),_a(h),_a(m)]}function Oa(a){const[e,n,t]=function(a){const e=a.replace("#","");return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}(a),[,o,r]=function(a,e,n){const t=Ia(a),o=Ia(e),r=Ia(n),s=.4122214708*t+.5363325363*o+.0514459929*r,i=.2119034982*t+.6806995451*o+.1073969566*r,l=.0883024619*t+.2817188376*o+.6299787005*r,c=Math.cbrt(s),d=Math.cbrt(i),u=Math.cbrt(l),h=.2104542553*c+.793617785*d-.0040720468*u,m=1.9779984951*c-2.428592205*d+.4505937099*u,p=.0259040371*c+.7827717662*d-.808675766*u,g=Math.sqrt(m*m+p*p);let b=Math.atan2(p,m)*(180/Math.PI);return b<0&&(b+=360),[h,g,b]}(e,n,t),s={};for(const i of La){const a=Pa[i],e=o*(1-.3*Math.abs(a-.5)),[n,t,l]=Va(a,e,r);s[i]=Na(n,t,l)}return s}function $a(a){return"undefined"==typeof window?"":getComputedStyle(document.documentElement).getPropertyValue(a).trim()}function Wa(a,e){"undefined"!=typeof document&&document.documentElement.style.setProperty(a,e)}const Ua="u-off",Ha="u-label",Ya="width",Ga="height",Ka="top",Xa="bottom",Ja="left",Za="right",Qa="#000",ae=Qa+"0",ee="mousemove",ne="mousedown",te="mouseup",oe="mouseenter",re="mouseleave",se="dblclick",ie="change",le="dppxchange",ce="--",de="undefined"!=typeof window,ue=de?document:null,he=de?window:null,me=de?navigator:null;let pe,ge;function be(a,e){if(null!=e){let n=a.classList;!n.contains(e)&&n.add(e)}}function fe(a,e){let n=a.classList;n.contains(e)&&n.remove(e)}function ye(a,e,n){a.style[e]=n+"px"}function ve(a,e,n,t){let o=ue.createElement(a);return null!=e&&be(o,e),null!=n&&n.insertBefore(o,t),o}function we(a,e){return ve("div",a,e)}const ke=new WeakMap;function xe(a,e,n,t,o){let r="translate("+e+"px,"+n+"px)";r!=ke.get(a)&&(a.style.transform=r,ke.set(a,r),e<0||n<0||e>t||n>o?be(a,Ua):fe(a,Ua))}const je=new WeakMap;function ze(a,e,n){let t=e+n;t!=je.get(a)&&(je.set(a,t),a.style.background=e,a.style.borderColor=n)}const Ce=new WeakMap;function Ae(a,e,n,t){let o=e+""+n;o!=Ce.get(a)&&(Ce.set(a,o),a.style.height=n+"px",a.style.width=e+"px",a.style.marginLeft=t?-e/2+"px":0,a.style.marginTop=t?-n/2+"px":0)}const De={passive:!0},Ee={...De,capture:!0};function Be(a,e,n,t){e.addEventListener(a,n,t?Ee:De)}function Fe(a,e,n,t){e.removeEventListener(a,n,De)}function qe(a,e,n,t){let o;n=n||0;let r=(t=t||e.length-1)<=2147483647;for(;t-n>1;)o=r?n+t>>1:Xe((n+t)/2),e[o]{let o=-1,r=-1;for(let s=n;s<=t;s++)if(a(e[s])){o=s;break}for(let s=t;s>=n;s--)if(a(e[s])){r=s;break}return[o,r]}}de&&function a(){let e=devicePixelRatio;pe!=e&&(pe=e,ge&&Fe(ie,ge,a),ge=matchMedia(`(min-resolution: ${pe-.001}dppx) and (max-resolution: ${pe+.001}dppx)`),Be(ie,ge,a),he.dispatchEvent(new CustomEvent(le)))}();const Me=a=>null!=a,Te=a=>null!=a&&a>0,Pe=Se(Me),Le=Se(Te);function Re(a,e,n,t){let o=nn(a),r=nn(e);a==e&&(-1==o?(a*=n,e/=n):(a/=n,e*=n));let s=10==n?tn:on,i=1==r?Ze:Xe,l=(1==o?Xe:Ze)(s(Ke(a))),c=i(s(Ke(e))),d=en(n,l),u=en(n,c);return 10==n&&(l<0&&(d=xn(d,-l)),c<0&&(u=xn(u,-c))),t||2==n?(a=d*o,e=u*r):(a=kn(a,d),e=wn(e,u)),[a,e]}function Ne(a,e,n,t){let o=Re(a,e,n,t);return 0==a&&(o[0]=0),0==e&&(o[1]=0),o}const Ie={mode:3,pad:.1},_e={pad:0,soft:null,mode:0},Ve={min:_e,max:_e};function Oe(a,e,n,t){return Sn(n)?We(a,e,n):(_e.pad=n,_e.soft=t?0:null,_e.mode=t?3:0,We(a,e,Ve))}function $e(a,e){return null==a?e:a}function We(a,e,n){let t=n.min,o=n.max,r=$e(t.pad,0),s=$e(o.pad,0),i=$e(t.hard,-sn),l=$e(o.hard,sn),c=$e(t.soft,sn),d=$e(o.soft,-sn),u=$e(t.mode,0),h=$e(o.mode,0),m=e-a,p=tn(m),g=an(Ke(a),Ke(e)),b=tn(g),f=Ke(b-p);(m<1e-24||f>10)&&(m=0,0!=a&&0!=e||(m=1e-24,2==u&&c!=sn&&(r=0),2==h&&d!=-sn&&(s=0)));let y=m||g||1e3,v=tn(y),w=en(10,Xe(v)),k=xn(kn(a-y*(0==m?0==a?.1:1:r),w/10),24),x=a>=c&&(1==u||3==u&&k<=c||2==u&&k>=c)?c:sn,j=an(i,k=x?x:Qe(x,k)),z=xn(wn(e+y*(0==m?0==e?.1:1:s),w/10),24),C=e<=d&&(1==h||3==h&&z>=d||2==h&&z<=d)?d:-sn,A=Qe(l,z>C&&e<=C?C:an(C,z));return j==A&&0==j&&(A=100),[j,A]}const Ue=new Intl.NumberFormat(de?me.language:"en-US"),He=a=>Ue.format(a),Ye=Math,Ge=Ye.PI,Ke=Ye.abs,Xe=Ye.floor,Je=Ye.round,Ze=Ye.ceil,Qe=Ye.min,an=Ye.max,en=Ye.pow,nn=Ye.sign,tn=Ye.log10,on=Ye.log2,rn=(a,e=1)=>Ye.asinh(a/e),sn=1/0;function ln(a){return 1+(0|tn((a^a>>31)-(a>>31)))}function cn(a,e,n){return Qe(an(a,e),n)}function dn(a){return"function"==typeof a}function un(a){return dn(a)?a:()=>a}const hn=a=>a,mn=(a,e)=>e,pn=a=>null,gn=a=>!0,bn=(a,e)=>a==e,fn=/\.\d*?(?=9{6,}|0{6,})/gm,yn=a=>{if(Fn(a)||jn.has(a))return a;const e=`${a}`,n=e.match(fn);if(null==n)return a;let t=n[0].length-1;if(-1!=e.indexOf("e-")){let[a,n]=e.split("e");return+`${yn(a)}e${n}`}return xn(a,t)};function vn(a,e){return yn(xn(yn(a/e))*e)}function wn(a,e){return yn(Ze(yn(a/e))*e)}function kn(a,e){return yn(Xe(yn(a/e))*e)}function xn(a,e=0){if(Fn(a))return a;let n=10**e,t=a*n*(1+Number.EPSILON);return Je(t)/n}const jn=new Map;function zn(a){return((""+a).split(".")[1]||"").length}function Cn(a,e,n,t){let o=[],r=t.map(zn);for(let s=e;s=0?0:e)+(s>=r[i]?0:r[i]),d=10==a?l:xn(l,c);o.push(d),jn.set(d,c)}}return o}const An={},Dn=[],En=[null,null],Bn=Array.isArray,Fn=Number.isInteger;function qn(a){return"string"==typeof a}function Sn(a){let e=!1;if(null!=a){let n=a.constructor;e=null==n||n==Object}return e}function Mn(a){return null!=a&&"object"==typeof a}const Tn=Object.getPrototypeOf(Uint8Array),Pn="__proto__";function Ln(a,e=Sn){let n;if(Bn(a)){let t=a.find(a=>null!=a);if(Bn(t)||e(t)){n=Array(a.length);for(let t=0;tr){for(t=s-1;t>=0&&null==a[t];)a[t--]=null;for(t=s+1;tPromise.resolve().then(a):queueMicrotask,_n=["January","February","March","April","May","June","July","August","September","October","November","December"],Vn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function On(a){return a.slice(0,3)}const $n=Vn.map(On),Wn=_n.map(On),Un={MMMM:_n,MMM:Wn,WWWW:Vn,WWW:$n};function Hn(a){return(a<10?"0":"")+a}const Yn={YYYY:a=>a.getFullYear(),YY:a=>(a.getFullYear()+"").slice(2),MMMM:(a,e)=>e.MMMM[a.getMonth()],MMM:(a,e)=>e.MMM[a.getMonth()],MM:a=>Hn(a.getMonth()+1),M:a=>a.getMonth()+1,DD:a=>Hn(a.getDate()),D:a=>a.getDate(),WWWW:(a,e)=>e.WWWW[a.getDay()],WWW:(a,e)=>e.WWW[a.getDay()],HH:a=>Hn(a.getHours()),H:a=>a.getHours(),h:a=>{let e=a.getHours();return 0==e?12:e>12?e-12:e},AA:a=>a.getHours()>=12?"PM":"AM",aa:a=>a.getHours()>=12?"pm":"am",a:a=>a.getHours()>=12?"p":"a",mm:a=>Hn(a.getMinutes()),m:a=>a.getMinutes(),ss:a=>Hn(a.getSeconds()),s:a=>a.getSeconds(),fff:a=>{return((e=a.getMilliseconds())<10?"00":e<100?"0":"")+e;var e}};function Gn(a,e){e=e||Un;let n,t=[],o=/\{([a-z]+)\}|[^{]+/gi;for(;n=o.exec(a);)t.push("{"==n[0][0]?Yn[n[1]]:n[0]);return a=>{let n="";for(let o=0;oa%1==0,Jn=[1,2,2.5,5],Zn=Cn(10,-32,0,Jn),Qn=Cn(10,0,32,Jn),at=Qn.filter(Xn),et=Zn.concat(Qn),nt="{YYYY}",tt="\n"+nt,ot="{M}/{D}",rt="\n"+ot,st=rt+"/{YY}",it="{aa}",lt="{h}:{mm}"+it,ct="\n"+lt,dt=":{ss}",ut=null;function ht(a){let e=1e3*a,n=60*e,t=60*n,o=24*t,r=30*o,s=365*o;return[(1==a?Cn(10,0,3,Jn).filter(Xn):Cn(10,-3,0,Jn)).concat([e,5*e,10*e,15*e,30*e,n,5*n,10*n,15*n,30*n,t,2*t,3*t,4*t,6*t,8*t,12*t,o,2*o,3*o,4*o,5*o,6*o,7*o,8*o,9*o,10*o,15*o,r,2*r,3*r,4*r,6*r,s,2*s,5*s,10*s,25*s,50*s,100*s]),[[s,nt,ut,ut,ut,ut,ut,ut,1],[28*o,"{MMM}",tt,ut,ut,ut,ut,ut,1],[o,ot,tt,ut,ut,ut,ut,ut,1],[t,"{h}"+it,st,ut,rt,ut,ut,ut,1],[n,lt,st,ut,rt,ut,ut,ut,1],[e,dt,st+" "+lt,ut,rt+" "+lt,ut,ct,ut,1],[a,dt+".{fff}",st+" "+lt,ut,rt+" "+lt,ut,ct,ut,1]],function(e){return(i,l,c,d,u,h)=>{let m=[],p=u>=s,g=u>=r&&u=o?o:u,s=v+(Xe(c)-Xe(f))+wn(f-v,r);m.push(s);let p=e(s),g=p.getHours()+p.getMinutes()/n+p.getSeconds()/t,b=u/t,y=h/i.axes[l]._space;for(;s=xn(s+u,1==a?0:3),!(s>d);)if(b>1){let a=Xe(xn(g+b,6))%24,n=e(s).getHours()-a;n>1&&(n=-1),s-=n*t,g=(g+b)%24,xn((s-m[m.length-1])/u,3)*y>=.7&&m.push(s)}else m.push(s)}return m}}]}const[mt,pt,gt]=ht(1),[bt,ft,yt]=ht(.001);function vt(a,e){return a.map(a=>a.map((n,t)=>0==t||8==t||null==n?n:e(1==t||0==a[8]?n:a[1]+n)))}function wt(a,e){return(n,t,o,r,s)=>{let i,l,c,d,u,h,m=e.find(a=>s>=a[0])||e[e.length-1];return t.map(e=>{let n=a(e),t=n.getFullYear(),o=n.getMonth(),r=n.getDate(),s=n.getHours(),p=n.getMinutes(),g=n.getSeconds(),b=t!=i&&m[2]||o!=l&&m[3]||r!=c&&m[4]||s!=d&&m[5]||p!=u&&m[6]||g!=h&&m[7]||m[1];return i=t,l=o,c=r,d=s,u=p,h=g,b(n)})}}function kt(a,e,n){return new Date(a,e,n)}function xt(a,e){return e(a)}function jt(a,e){return(n,t,o,r)=>null==r?ce:e(a(t))}Cn(2,-53,53,[1]);const zt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(a,e){let n=a.series[e];return n.width?n.stroke(a,e):n.points.width?n.points.stroke(a,e):null},fill:function(a,e){return a.series[e].fill(a,e)},dash:"solid"},idx:null,idxs:null,values:[]},Ct=[0,0];function At(a,e,n,t=!0){return a=>{0==a.button&&(!t||a.target==e)&&n(a)}}function Dt(a,e,n,t=!0){return a=>{(!t||a.target==e)&&n(a)}}const Et={show:!0,x:!0,y:!0,lock:!1,move:function(a,e,n){return Ct[0]=e,Ct[1]=n,Ct},points:{one:!1,show:function(a,e){let n=a.cursor.points,t=we(),o=n.size(a,e);ye(t,Ya,o),ye(t,Ga,o);let r=o/-2;ye(t,"marginLeft",r),ye(t,"marginTop",r);let s=n.width(a,e,o);return s&&ye(t,"borderWidth",s),t},size:function(a,e){return a.series[e].points.size},width:0,stroke:function(a,e){let n=a.series[e].points;return n._stroke||n._fill},fill:function(a,e){let n=a.series[e].points;return n._fill||n._stroke}},bind:{mousedown:At,mouseup:At,click:At,dblclick:At,mousemove:Dt,mouseleave:Dt,mouseenter:Dt},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(a,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(a,e,n,t,o)=>t-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Bt={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ft=Rn({},Bt,{filter:mn}),qt=Rn({},Ft,{size:10}),St=Rn({},Bt,{show:!1}),Mt='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Tt="bold "+Mt,Pt={show:!0,scale:"x",stroke:Qa,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tt,side:2,grid:Ft,ticks:qt,border:St,font:Mt,lineGap:1.5,rotate:0},Lt={show:!0,scale:"x",auto:!1,sorted:1,min:sn,max:-sn,idxs:[]};function Rt(a,e,n,t,o){return e.map(a=>null==a?"":He(a))}function Nt(a,e,n,t,o,r,s){let i=[],l=jn.get(o)||0;for(let c=n=s?n:xn(wn(n,o),l);c<=t;c=xn(c+o,l))i.push(Object.is(c,-0)?0:c);return i}function It(a,e,n,t,o,r,s){const i=[],l=a.scales[a.axes[e].scale].log,c=Xe((10==l?tn:on)(n));o=en(l,c),10==l&&(o=et[qe(o,et)]);let d=n,u=o*l;10==l&&(u=et[qe(u,et)]);do{i.push(d),d+=o,10!=l||jn.has(d)||(d=xn(d,jn.get(o))),d>=u&&(u=(o=d)*l,10==l&&(u=et[qe(u,et)]))}while(d<=t);return i}function _t(a,e,n,t,o,r,s){let i=a.scales[a.axes[e].scale].asinh,l=t>i?It(a,e,an(i,n),t,o):[i],c=t>=0&&n<=0?[0]:[];return(n<-i?It(a,e,an(i,-t),-n,o):[i]).reverse().map(a=>-a).concat(c,l)}const Vt=/./,Ot=/[12357]/,$t=/[125]/,Wt=/1/,Ut=(a,e,n,t)=>a.map((a,o)=>4==e&&0==a||o%t==0&&n.test(a.toExponential()[a<0?1:0])?a:null);function Ht(a,e,n,t,o){let r=a.axes[n],s=r.scale,i=a.scales[s],l=a.valToPos,c=r._space,d=l(10,s),u=l(9,s)-d>=c?Vt:l(7,s)-d>=c?Ot:l(5,s)-d>=c?$t:Wt;if(u==Wt){let a=Ke(l(1,s)-d);if(ao,Zt={show:!0,auto:!0,sorted:0,gaps:Jt,alpha:1,facets:[Rn({},Xt,{scale:"x"}),Rn({},Xt,{scale:"y"})]},Qt={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Jt,alpha:1,points:{show:function(a,e){let{scale:n,idxs:t}=a.series[0],o=a._data[0],r=a.valToPos(o[t[0]],n,!0),s=a.valToPos(o[t[1]],n,!0),i=Ke(s-r)/(a.series[e].points.space*pe);return t[1]-t[0]<=i},filter:null},values:null,min:sn,max:-sn,idxs:[],path:null,clip:null};function ao(a,e,n,t,o){return n/10}const eo={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},no=Rn({},eo,{time:!1,ori:1}),to={};function oo(a,e){let n=to[a];return n||(n={key:a,plots:[],sub(a){n.plots.push(a)},unsub(a){n.plots=n.plots.filter(e=>e!=a)},pub(a,e,t,o,r,s,i){for(let l=0;l{let g=a.pxRound;const b=i.dir*(0==i.ori?1:-1),f=0==i.ori?bo:fo;let y,v;1==b?(y=n,v=t):(y=t,v=n);let w=g(c(e[y],i,m,u)),k=g(d(s[y],l,p,h)),x=g(c(e[v],i,m,u)),j=g(d(1==r?l.max:l.min,l,p,h)),z=new Path2D(o);return f(z,x,j),f(z,w,j),f(z,w,k),z})}function co(a,e,n,t,o,r){let s=null;if(a.length>0){s=new Path2D;const i=0==e?yo:vo;let l=n;for(let e=0;en[0]){let a=n[0]-l;a>0&&i(s,l,t,a,t+r),l=n[1]}}let c=n+o-l,d=10;c>0&&i(s,l,t-d/2,c,t+r+d)}return s}function uo(a,e,n,t,o,r,s){let i=[],l=a.length;for(let c=1==o?n:t;c>=n&&c<=t;c+=o)if(null===e[c]){let d=c,u=c;if(1==o)for(;++c<=t&&null===e[c];)u=c;else for(;--c>=n&&null===e[c];)u=c;let h=r(a[d]),m=u==d?h:r(a[u]),p=d-o;h=s<=0&&p>=0&&p=0&&g>=0&&g=h&&i.push([h,m])}return i}function ho(a){return 0==a?hn:1==a?Je:e=>vn(e,a)}function mo(a){let e=0==a?po:go,n=0==a?(a,e,n,t,o,r)=>{a.arcTo(e,n,t,o,r)}:(a,e,n,t,o,r)=>{a.arcTo(n,e,o,t,r)},t=0==a?(a,e,n,t,o)=>{a.rect(e,n,t,o)}:(a,e,n,t,o)=>{a.rect(n,e,o,t)};return(a,o,r,s,i,l=0,c=0)=>{0==l&&0==c?t(a,o,r,s,i):(l=Qe(l,s/2,i/2),c=Qe(c,s/2,i/2),e(a,o+l,r),n(a,o+s,r,o+s,r+i,l),n(a,o+s,r+i,o,r+i,c),n(a,o,r+i,o,r,c),n(a,o,r,o+s,r,l),a.closePath())}}const po=(a,e,n)=>{a.moveTo(e,n)},go=(a,e,n)=>{a.moveTo(n,e)},bo=(a,e,n)=>{a.lineTo(e,n)},fo=(a,e,n)=>{a.lineTo(n,e)},yo=mo(0),vo=mo(1),wo=(a,e,n,t,o,r)=>{a.arc(e,n,t,o,r)},ko=(a,e,n,t,o,r)=>{a.arc(n,e,t,o,r)},xo=(a,e,n,t,o,r,s)=>{a.bezierCurveTo(e,n,t,o,r,s)},jo=(a,e,n,t,o,r,s)=>{a.bezierCurveTo(n,e,o,t,s,r)};function zo(a){return(a,e,n,t,o)=>ro(a,e,(e,r,s,i,l,c,d,u,h,m,p)=>{let g,b,{pxRound:f,points:y}=e;0==i.ori?(g=po,b=wo):(g=go,b=ko);const v=xn(y.width*pe,3);let w=(y.size-y.width)/2*pe,k=xn(2*w,3),x=new Path2D,j=new Path2D,{left:z,top:C,width:A,height:D}=a.bbox;yo(j,z-k,C-k,A+2*k,D+2*k);const E=a=>{if(null!=s[a]){let e=f(c(r[a],i,m,u)),n=f(d(s[a],l,p,h));g(x,e+w,n),b(x,e,n,w,0,2*Ge)}};if(o)o.forEach(E);else for(let a=n;a<=t;a++)E(a);return{stroke:v>0?x:null,fill:x,clip:j,flags:3}})}function Co(a){return(e,n,t,o,r,s)=>{t!=o&&(r!=t&&s!=t&&a(e,n,t),r!=o&&s!=o&&a(e,n,o),a(e,n,s))}}const Ao=Co(bo),Do=Co(fo);function Eo(a){const e=$e(null==a?void 0:a.alignGaps,0);return(a,n,t,o)=>ro(a,n,(r,s,i,l,c,d,u,h,m,p,g)=>{[t,o]=Pe(i,t,o);let b,f,y=r.pxRound,v=a=>y(d(a,l,p,h)),w=a=>y(u(a,c,g,m));0==l.ori?(b=bo,f=Ao):(b=fo,f=Do);const k=l.dir*(0==l.ori?1:-1),x={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},j=x.stroke;let z=!1;if(o-t>=4*p){let e,n,r,c=e=>a.posToVal(e,l.key,!0),d=null,u=null,h=v(s[1==k?t:o]),m=v(s[t]),p=v(s[o]),g=c(1==k?m+1:p-1);for(let a=1==k?t:o;a>=t&&a<=o;a+=k){let t=s[a],o=(1==k?tg)?h:v(t),r=i[a];o==h?null!=r?(n=r,null==d?(b(j,o,w(n)),e=d=u=n):nu&&(u=n)):null===r&&(z=!0):(null!=d&&f(j,h,w(d),w(u),w(e),w(n)),null!=r?(n=r,b(j,o,w(n)),d=u=e=n):(d=u=null,null===r&&(z=!0)),h=o,g=c(h+k))}null!=d&&d!=u&&r!=h&&f(j,h,w(d),w(u),w(e),w(n))}else for(let a=1==k?t:o;a>=t&&a<=o;a+=k){let e=i[a];null===e?z=!0:null!=e&&b(j,v(s[a]),w(e))}let[C,A]=so(a,n);if(null!=r.fill||0!=C){let e=x.fill=new Path2D(j),i=w(r.fillTo(a,n,r.min,r.max,C)),l=v(s[t]),c=v(s[o]);-1==k&&([c,l]=[l,c]),b(e,c,i),b(e,l,i)}if(!r.spanGaps){let c=[];z&&c.push(...uo(s,i,t,o,k,v,e)),x.gaps=c=r.gaps(a,n,t,o,c),x.clip=co(c,l.ori,h,m,p,g)}return 0!=A&&(x.band=2==A?[lo(a,n,t,o,j,-1),lo(a,n,t,o,j,1)]:lo(a,n,t,o,j,A)),x})}function Bo(a,e,n,t,o,r,s=sn){if(a.length>1){let i=null;for(let l=0,c=1/0;l0!=t[a]>0?n[a]=0:(n[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/t[a-1]+(l[a]+2*l[a-1])/t[a]),isFinite(n[a])||(n[a]=0));n[s-1]=t[s-2];for(let c=0;c{Ho.pxRatio=pe}));const Mo=Eo(),To=zo();function Po(a,e,n,t){return(t?[a[0],a[1]].concat(a.slice(2)):[a[0]].concat(a.slice(1))).map((a,t)=>Lo(a,t,e,n))}function Lo(a,e,n,t){return Rn({},0==e?n:t,a)}function Ro(a,e,n){return null==e?En:[e,n]}const No=Ro;function Io(a,e,n){return null==e?En:Oe(e,n,.1,!0)}function _o(a,e,n,t){return null==e?En:Re(e,n,a.scales[t].log,!1)}const Vo=_o;function Oo(a,e,n,t){return null==e?En:Ne(e,n,a.scales[t].log,!1)}const $o=Oo;function Wo(a){let e,n;return[a=a.replace(/(\d+)px/,(a,t)=>(e=Je((n=+t)*pe))+"px"),e,n]}function Uo(a){a.show&&[a.font,a.labelFont].forEach(a=>{let e=xn(a[2]*pe,1);a[0]=a[0].replace(/[0-9.]+px/,e+"px"),a[1]=e})}function Ho(a,e,n){const t={mode:$e(a.mode,1)},o=t.mode;function r(a,e,n,t){let o=e.valToPct(a);return t+n*(-1==e.dir?1-o:o)}function s(a,e,n,t){let o=e.valToPct(a);return t+n*(-1==e.dir?o:1-o)}function i(a,e,n,t){return 0==e.ori?r(a,e,n,t):s(a,e,n,t)}t.valToPosH=r,t.valToPosV=s;let l=!1;t.status=0;const c=t.root=we("uplot");null!=a.id&&(c.id=a.id),be(c,a.class),a.title&&(we("u-title",c).textContent=a.title);const d=ve("canvas"),u=t.ctx=d.getContext("2d"),h=we("u-wrap",c);Be("click",h,a=>{a.target===p&&(Jn!=Hn||Zn!=Yn)&&ct.click(t,a)},!0);const m=t.under=we("u-under",h);h.appendChild(d);const p=t.over=we("u-over",h),g=+$e((a=Ln(a)).pxAlign,1),b=ho(g);(a.plugins||[]).forEach(e=>{e.opts&&(a=e.opts(t,a)||a)});const f=a.ms||.001,y=t.series=1==o?Po(a.series||[],Lt,Qt,!1):(v=a.series||[null],w=Zt,v.map((a,e)=>0==e?{}:Rn({},w,a)));var v,w;const k=t.axes=Po(a.axes||[],Pt,Kt,!0),x=t.scales={},j=t.bands=a.bands||[];j.forEach(a=>{a.fill=un(a.fill||null),a.dir=$e(a.dir,-1)});const z=2==o?y[1].facets[0].scale:y[0].scale,C={axes:function(){for(let a=0;a_e[a]):f,v=2==m.distr?_e[f[1]]-_e[f[0]]:d,w=e.ticks,j=e.border,z=w.show?w.size:0,C=Je(z*pe),A=Je((2==e.alignTo?e._size-z-e.gap:e.gap)*pe),D=e._rotate*-Ge/180,E=b(e._pos*pe),B=E+(C+A)*c;o=0==s?B:0,n=1==s?B:0,Xe(e.font[0],l,1==e.align?Ja:2==e.align?Za:D>0?Ja:D<0?Za:0==s?"center":3==r?Za:Ja,D||1==s?"middle":2==r?Ka:Xa);let F=e.font[1]*e.lineGap,q=f.map(a=>b(i(a,m,p,g))),S=e._values;for(let a=0;a0){let a=y.some(a=>a._focus)&&Se!=Fa.alpha;a&&(u.globalAlpha=Se=Fa.alpha),y.forEach((a,n)=>{if(n>0&&a.show&&(hn(n,!1),hn(n,!0),null==a._paths)){let r=Se;Se!=a.alpha&&(u.globalAlpha=Se=a.alpha);let s=2==o?[0,e[n][0].length-1]:function(a){let e=cn($a-1,0,Oa-1),n=cn(Wa+1,0,Oa-1);for(;null==a[e]&&e>0;)e--;for(;null==a[n]&&n{if(e>0&&a.show){let n=Se;Se!=a.alpha&&(u.globalAlpha=Se=a.alpha),null!=a._paths&&fn(e,!1);{let n=null!=a._paths?a._paths.gaps:null,o=a.points.show(t,e,$a,Wa,n),r=a.points.filter(t,e,o,n);(o||r)&&(a.points._paths=a.points.paths(t,e,$a,Wa,r),fn(e,!0))}Se!=n&&(u.globalAlpha=Se=n),xo("drawSeries",e)}}),a&&(u.globalAlpha=Se=1)}}},A=(a.drawOrder||["axes","series"]).map(a=>C[a]);function D(a){const e=3==a.distr?e=>tn(e>0?e:a.clamp(t,e,a.min,a.max,a.key)):4==a.distr?e=>rn(e,a.asinh):100==a.distr?e=>a.fwd(e):a=>a;return n=>{let t=e(n),{_min:o,_max:r}=a;return(t-o)/(r-o)}}function E(e){let n=x[e];if(null==n){let t=(a.scales||An)[e]||An;if(null!=t.from){E(t.from);let a=Rn({},x[t.from],t,{key:e});a.valToPct=D(a),x[e]=a}else{n=x[e]=Rn({},e==z?eo:no,t),n.key=e;let a=n.time,r=n.range,s=Bn(r);if((e!=z||2==o&&!a)&&(!s||null!=r[0]&&null!=r[1]||(r={min:null==r[0]?Ie:{mode:1,hard:r[0],soft:r[0]},max:null==r[1]?Ie:{mode:1,hard:r[1],soft:r[1]}},s=!1),!s&&Sn(r))){let a=r;r=(e,n,t)=>null==n?En:Oe(n,t,a)}n.range=un(r||(a?No:e==z?3==n.distr?Vo:4==n.distr?$o:Ro:3==n.distr?_o:4==n.distr?Oo:Io)),n.auto=un(!s&&n.auto),n.clamp=un(n.clamp||ao),n._min=n._max=null,n.valToPct=D(n)}}}E("x"),E("y"),1==o&&y.forEach(a=>{E(a.scale)}),k.forEach(a=>{E(a.scale)});for(let Ua in a.scales)E(Ua);const B=x[z],F=B.distr;let q,S;0==B.ori?(be(c,"u-hz"),q=r,S=s):(be(c,"u-vt"),q=s,S=r);const M={};for(let Ua in x){let a=x[Ua];null==a.min&&null==a.max||(M[Ua]={min:a.min,max:a.max},a.min=a.max=null)}const T=a.tzDate||(a=>new Date(Je(a/f))),P=a.fmtDate||Gn,L=1==f?gt(T):yt(T),R=wt(T,vt(1==f?pt:ft,P)),N=jt(T,xt("{YYYY}-{MM}-{DD} {h}:{mm}{aa}",P)),I=[],_=t.legend=Rn({},zt,a.legend),V=t.cursor=Rn({},Et,{drag:{y:2==o}},a.cursor),O=_.show,$=V.show,W=_.markers;let U,H,Y;_.idxs=I,W.width=un(W.width),W.dash=un(W.dash),W.stroke=un(W.stroke),W.fill=un(W.fill);let G,K=[],X=[],J=!1,Z={};if(_.live){const a=y[1]?y[1].values:null;J=null!=a,G=J?a(t,1,0):{_:0};for(let e in G)Z[e]=ce}if(O)if(U=ve("table","u-legend",c),Y=ve("tbody",null,U),_.mount(t,U),J){H=ve("thead",null,U,Y);let a=ve("tr",null,H);for(var Q in ve("th",null,a),G)ve("th",Ha,a).textContent=Q}else be(U,"u-inline"),_.live&&be(U,"u-live");const aa={show:!0},ea={show:!1},na=new Map;function ta(a,e,n,o=!0){const r=na.get(e)||{},s=V.bind[a](t,e,n,o);s&&(Be(a,e,r[a]=s),na.set(e,r))}function oa(a,e,n){const t=na.get(e)||{};for(let o in t)null!=a&&o!=a||(Fe(o,e,t[o]),delete t[o]);null==a&&na.delete(e)}let ra=0,sa=0,ia=0,la=0,ca=0,da=0,ua=ca,ha=da,ma=ia,pa=la,ga=0,ba=0,fa=0,ya=0;t.bbox={};let va=!1,wa=!1,ka=!1,xa=!1,ja=!1,za=!1;function Ca(a,e,n){(n||a!=t.width||e!=t.height)&&Aa(a,e),Nn(!1),ka=!0,wa=!0,rt()}function Aa(a,e){t.width=ra=ia=a,t.height=sa=la=e,ca=da=0,function(){let a=!1,e=!1,n=!1,t=!1;k.forEach((o,r)=>{if(o.show&&o._show){let{side:r,_size:s}=o,i=r%2,l=s+(null!=o.label?o.labelSize:0);l>0&&(i?(ia-=l,3==r?(ca+=l,t=!0):n=!0):(la-=l,0==r?(da+=l,a=!0):e=!0))}}),Na[0]=a,Na[1]=n,Na[2]=e,Na[3]=t,ia-=Va[1]+Va[3],ca+=Va[3],la-=Va[2]+Va[0],da+=Va[0]}(),function(){let a=ca+ia,e=da+la,n=ca,t=da;function o(o,r){switch(o){case 1:return a+=r,a-r;case 2:return e+=r,e-r;case 3:return n-=r,n+r;case 0:return t-=r,t+r}}k.forEach((a,e)=>{if(a.show&&a._show){let e=a.side;a._pos=o(e,a._size),null!=a.label&&(a._lpos=o(e,a.labelSize))}})}();let n=t.bbox;ga=n.left=vn(ca*pe,.5),ba=n.top=vn(da*pe,.5),fa=n.width=vn(ia*pe,.5),ya=n.height=vn(la*pe,.5)}const Da=3;if(t.setSize=function({width:a,height:e}){Ca(a,e)},null==V.dataIdx){let a=V.hover,n=a.skip=new Set(a.skip??[]);n.add(void 0);let t=a.prox=un(a.prox),o=a.bias??(a.bias=0);V.dataIdx=(a,r,s,i)=>{if(0==r)return s;let l=s,c=t(a,r,s,i)??sn,d=c>=0&&c0;)n.has(p[a])||(e=a);if(0==o||1==o)for(a=s;null==t&&a++c&&(l=null);return l}}const Ea=a=>{V.event=a};V.idxs=I,V._lock=!1;let Ba=V.points;Ba.show=un(Ba.show),Ba.size=un(Ba.size),Ba.stroke=un(Ba.stroke),Ba.width=un(Ba.width),Ba.fill=un(Ba.fill);const Fa=t.focus=Rn({},a.focus||{alpha:.3},V.focus),qa=Fa.prox>=0,Sa=qa&&Ba.one;let Ma=[],Ta=[],Pa=[];function La(a,e){let n=Ba.show(t,e);if(n instanceof HTMLElement)return be(n,"u-cursor-pt"),be(n,a.class),xe(n,-10,-10,ia,la),p.insertBefore(n,Ma[e]),n}function Ra(a,e){if(1==o||e>0){let e=1==o&&x[a.scale].time,n=a.value;a.value=e?qn(n)?jt(T,xt(n,P)):n||N:n||Gt,a.label=a.label||(e?"Time":"Value")}if(Sa||e>0){a.width=null==a.width?1:a.width,a.paths=a.paths||Mo||pn,a.fillTo=un(a.fillTo||io),a.pxAlign=+$e(a.pxAlign,g),a.pxRound=ho(a.pxAlign),a.stroke=un(a.stroke||null),a.fill=un(a.fill||null),a._stroke=a._fill=a._paths=a._focus=null;let e=xn(1*(3+2*(an(1,a.width)||1)),3),n=a.points=Rn({},{size:e,width:an(1,.2*e),stroke:a.stroke,space:2*e,paths:To,_stroke:null,_fill:null},a.points);n.show=un(n.show),n.filter=un(n.filter),n.fill=un(n.fill),n.stroke=un(n.stroke),n.paths=un(n.paths),n.pxAlign=a.pxAlign}if(O){let n=function(a,e){if(0==e&&(J||!_.live||2==o))return En;let n=[],r=ve("tr","u-series",Y,Y.childNodes[e]);be(r,a.class),a.show||be(r,Ua);let s=ve("th",null,r);if(W.show){let a=we("u-marker",s);if(e>0){let n=W.width(t,e);n&&(a.style.border=n+"px "+W.dash(t,e)+" "+W.stroke(t,e)),a.style.background=W.fill(t,e)}}let i=we(Ha,s);for(var l in a.label instanceof HTMLElement?i.appendChild(a.label):i.textContent=a.label,e>0&&(W.show||(i.style.color=a.width>0?W.stroke(t,e):W.fill(t,e)),ta("click",s,e=>{if(V._lock)return;Ea(e);let n=y.indexOf(a);if((e.ctrlKey||e.metaKey)!=_.isolate){let a=y.some((a,e)=>e>0&&e!=n&&a.show);y.forEach((e,t)=>{t>0&&Dt(t,a?t==n?aa:ea:aa,!0,zo.setSeries)})}else Dt(n,{show:!a.show},!0,zo.setSeries)},!1),qa&&ta(oe,s,e=>{V._lock||(Ea(e),Dt(y.indexOf(a),St,!0,zo.setSeries))},!1)),G){let a=ve("td","u-value",r);a.textContent="--",n.push(a)}return[r,n]}(a,e);K.splice(e,0,n[0]),X.splice(e,0,n[1]),_.values.push(null)}if($){I.splice(e,0,null);let n=null;Sa?0==e&&(n=La(a,e)):e>0&&(n=La(a,e)),Ma.splice(e,0,n),Ta.splice(e,0,0),Pa.splice(e,0,0)}xo("addSeries",e)}t.addSeries=function(a,e){e=null==e?y.length:e,a=1==o?Lo(a,e,Lt,Qt):Lo(a,e,{},Zt),y.splice(e,0,a),Ra(y[e],e)},t.delSeries=function(a){if(y.splice(a,1),O){_.values.splice(a,1),X.splice(a,1);let e=K.splice(a,1)[0];oa(null,e.firstChild),e.remove()}$&&(I.splice(a,1),Ma.splice(a,1)[0].remove(),Ta.splice(a,1),Pa.splice(a,1)),xo("delSeries",a)};const Na=[!1,!1,!1,!1];function Ia(a,e,n,t){let[o,r,s,i]=n,l=e%2,c=0;return 0==l&&(i||r)&&(c=0==e&&!o||2==e&&!s?Je(Pt.size/3):0),1==l&&(o||s)&&(c=1==e&&!r||3==e&&!i?Je(Kt.size/2):0),c}const _a=t.padding=(a.padding||[Ia,Ia,Ia,Ia]).map(a=>un($e(a,Ia))),Va=t._padding=_a.map((a,e)=>a(t,e,Na,0));let Oa,$a=null,Wa=null;const Qa=1==o?y[0].idxs:null;let ie,de,me,ge,ke,je,Ce,De,Ee,Se,_e=null,Ve=!1;function We(a,n){if(e=null==a?[]:a,t.data=t._data=e,2==o){Oa=0;for(let a=1;a=0,za=!0,rt()}}function Ue(){let a,n;Ve=!0,1==o&&(Oa>0?($a=Qa[0]=0,Wa=Qa[1]=Oa-1,a=e[0][$a],n=e[0][Wa],2==F?(a=$a,n=Wa):a==n&&(3==F?[a,n]=Re(a,a,B.log,!1):4==F?[a,n]=Ne(a,a,B.log,!1):B.time?n=a+Je(86400/f):[a,n]=Oe(a,n,.1,!0))):($a=Qa[0]=a=null,Wa=Qa[1]=n=null)),At(z,a,n)}function He(a,e,n,t,o,r){a??(a=ae),n??(n=Dn),t??(t="butt"),o??(o=ae),r??(r="round"),a!=ie&&(u.strokeStyle=ie=a),o!=de&&(u.fillStyle=de=o),e!=me&&(u.lineWidth=me=e),r!=ke&&(u.lineJoin=ke=r),t!=je&&(u.lineCap=je=t),n!=ge&&u.setLineDash(ge=n)}function Xe(a,e,n,t){e!=de&&(u.fillStyle=de=e),a!=Ce&&(u.font=Ce=a),n!=De&&(u.textAlign=De=n),t!=Ee&&(u.textBaseline=Ee=t)}function nn(a,e,n,o,r=0){if(o.length>0&&a.auto(t,Ve)&&(null==e||null==e.min)){let e=$e($a,0),t=$e(Wa,o.length-1),s=null==n.min?function(a,e,n,t=0,o=!1){let r=o?Le:Pe,s=o?Te:Me;[e,n]=r(a,e,n);let i=a[e],l=a[e];if(e>-1)if(1==t)i=a[e],l=a[n];else if(-1==t)i=a[n],l=a[e];else for(let c=e;c<=n;c++){let e=a[c];s(e)&&(el&&(l=e))}return[i??sn,l??-sn]}(o,e,t,r,3==a.distr):[n.min,n.max];a.min=Qe(a.min,n.min=s[0]),a.max=an(a.max,n.max=s[1])}}t.setData=We;const on={min:null,max:null};function hn(a,e){let n=e?y[a].points:y[a];n._stroke=n.stroke(t,a),n._fill=n.fill(t,a)}function fn(a,n){let o=n?y[a].points:y[a],{stroke:r,fill:s,clip:i,flags:l,_stroke:c=o._stroke,_fill:d=o._fill,_width:h=o.width}=o._paths;h=xn(h*pe,3);let m=null,p=h%2/2;n&&null==d&&(d=h>0?"#fff":c);let g=1==o.pxAlign&&p>0;if(g&&u.translate(p,p),!n){let a=ga-h/2,e=ba-h/2,n=fa+h,t=ya+h;m=new Path2D,m.rect(a,e,n,t)}n?wn(c,h,o.dash,o.cap,d,r,s,l,i):function(a,n,o,r,s,i,l,c,d,u,h){let m=!1;0!=d&&j.forEach((p,g)=>{if(p.series[0]==a){let a,b=y[p.series[1]],f=e[p.series[1]],v=(b._paths||An).band;Bn(v)&&(v=1==p.dir?v[0]:v[1]);let w=null;b.show&&v&&function(a,e,n){for(e=$e(e,0),n=$e(n,a.length-1);e<=n;){if(null!=a[e])return!0;e++}return!1}(f,$a,Wa)?(w=p.fill(t,g)||i,a=b._paths.clip):v=null,wn(n,o,r,s,w,l,c,d,u,h,a,v),m=!0}}),m||wn(n,o,r,s,i,l,c,d,u,h)}(a,c,h,o.dash,o.cap,d,r,s,l,m,i),g&&u.translate(-p,-p)}const yn=3;function wn(a,e,n,t,o,r,s,i,l,c,d,h){He(a,e,n,t,o),(l||c||h)&&(u.save(),l&&u.clip(l),c&&u.clip(c)),h?(i&yn)==yn?(u.clip(h),d&&u.clip(d),Cn(o,s),kn(a,r,e)):2&i?(Cn(o,s),u.clip(h),kn(a,r,e)):1&i&&(u.save(),u.clip(h),d&&u.clip(d),Cn(o,s),u.restore(),kn(a,r,e)):(Cn(o,s),kn(a,r,e)),(l||c||h)&&u.restore()}function kn(a,e,n){n>0&&(e instanceof Map?e.forEach((a,e)=>{u.strokeStyle=ie=e,u.stroke(a)}):null!=e&&a&&u.stroke(e))}function Cn(a,e){e instanceof Map?e.forEach((a,e)=>{u.fillStyle=de=e,u.fill(a)}):null!=e&&a&&u.fill(e)}function Fn(a,e,n,t,o,r,s,i,l,c){let d=s%2/2;1==g&&u.translate(d,d),He(i,s,l,c,i),u.beginPath();let h,m,p,b,f=o+(0==t||3==t?-r:r);0==n?(m=o,b=f):(h=o,p=f);for(let g=0;g{if(!n.show)return;let r=x[n.scale];if(null==r.min)return void(n._show&&(e=!1,n._show=!1,Nn(!1)));n._show||(e=!1,n._show=!0,Nn(!1));let s=n.side,i=s%2,{min:l,max:c}=r,[d,u]=function(a,e,n,o){let r,s=k[a];if(o<=0)r=[0,0];else{let i=s._space=s.space(t,a,e,n,o);r=function(a,e,n,t,o){let r=an(ln(a),ln(e)),s=e-a,i=qe(o/t*s,n);do{let a=n[i],e=t*a/s;if(e>=o&&r+(a<5?jn.get(a):0)<=17)return[a,e]}while(++i_e[a]):m,g=2==r.distr?_e[m[1]]-_e[m[0]]:d,b=n._values=n.values(t,n.filter(t,p,o,u,g),o,u,g);n._rotate=2==s?n.rotate(t,b,o,u):0;let f=n._size;n._size=Ze(n.size(t,b,o,a)),null!=f&&n._size!=f&&(e=!1)}),e}function Pn(a){let e=!0;return _a.forEach((n,o)=>{let r=n(t,o,Na,a);r!=Va[o]&&(e=!1),Va[o]=r}),e}function Nn(a){y.forEach((e,n)=>{n>0&&(e._paths=null,a&&(1==o?(e.min=null,e.max=null):e.facets.forEach(a=>{a.min=null,a.max=null})))})}let _n,Vn,On,$n,Wn,Un,Hn,Yn,Kn,Xn,Jn,Zn,Qn=!1,nt=!1,tt=[];function ot(){nt=!1;for(let a=0;a0){y.forEach((n,r)=>{if(1==o){let o=n.scale,s=M[o];if(null==s)return;let i=a[o];if(0==r){let a=i.range(t,i.min,i.max,o);i.min=a[0],i.max=a[1],$a=qe(i.min,e[0]),Wa=qe(i.max,e[0]),Wa-$a>1&&(e[0][$a]i.max&&Wa--),n.min=_e[$a],n.max=_e[Wa]}else n.show&&n.auto&&nn(i,s,n,e[r],n.sorted);n.idxs[0]=$a,n.idxs[1]=Wa}else if(r>0&&n.show&&n.auto){let[t,o]=n.facets,s=t.scale,i=o.scale,[l,c]=e[r],d=a[s],u=a[i];null!=d&&nn(d,M[s],t,l,t.sorted),null!=u&&nn(u,M[i],o,c,o.sorted),n.min=o.min,n.max=o.max}});for(let e in a){let n=a[e],o=M[e];if(null==n.from&&(null==o||null==o.min)){let a=n.range(t,n.min==sn?null:n.min,n.max==-sn?null:n.max,e);n.min=a[0],n.max=a[1]}}}for(let e in a){let n=a[e];if(null!=n.from){let o=a[n.from];if(null==o.min)n.min=n.max=null;else{let a=n.range(t,o.min,o.max,e);n.min=a[0],n.max=a[1]}}}let n={},r=!1;for(let e in a){let t=a[e],o=x[e];if(o.min!=t.min||o.max!=t.max){o.min=t.min,o.max=t.max;let a=o.distr;o._min=3==a?tn(o.min):4==a?rn(o.min,o.asinh):100==a?o.fwd(o.min):o.min,o._max=3==a?tn(o.max):4==a?rn(o.max,o.asinh):100==a?o.fwd(o.max):o.max,n[e]=r=!0}}if(r){y.forEach((a,e)=>{2==o?e>0&&n.y&&(a._paths=null):n[a.scale]&&(a._paths=null)});for(let a in n)ka=!0,xo("setScale",a);$&&V.left>=0&&(xa=za=!0)}for(let e in M)M[e]=null}(),va=!1),ka&&(function(){let a=!1,e=0;for(;!a;){e++;let n=Tn(e),o=Pn(e);a=e==Da||n&&o,a||(Aa(t.width,t.height),wa=!0)}}(),ka=!1),wa){if(ye(m,Ja,ca),ye(m,Ka,da),ye(m,Ya,ia),ye(m,Ga,la),ye(p,Ja,ca),ye(p,Ka,da),ye(p,Ya,ia),ye(p,Ga,la),ye(h,Ya,ra),ye(h,Ga,sa),d.width=Je(ra*pe),d.height=Je(sa*pe),k.forEach(({_el:a,_show:e,_size:n,_pos:t,side:o})=>{if(null!=a)if(e){let e=o%2==1;ye(a,e?"left":"top",t-(3===o||0===o?n:0)),ye(a,e?"width":"height",n),ye(a,e?"top":"left",e?da:ca),ye(a,e?"height":"width",e?la:ia),fe(a,Ua)}else be(a,Ua)}),ie=de=me=ke=je=Ce=De=Ee=ge=null,Se=1,to(!0),ca!=ua||da!=ha||ia!=ma||la!=pa){Nn(!1);let a=ia/ma,e=la/pa;if($&&!xa&&V.left>=0){V.left*=a,V.top*=e,On&&xe(On,Je(V.left),0,ia,la),$n&&xe($n,0,Je(V.top),ia,la);for(let n=0;n=0&&ht.width>0){ht.left*=a,ht.width*=a,ht.top*=e,ht.height*=e;for(let a in lo)ye(kt,a,ht[a])}ua=ca,ha=da,ma=ia,pa=la}xo("setSize"),wa=!1}ra>0&&sa>0&&(u.clearRect(0,0,d.width,d.height),xo("drawClear"),A.forEach(a=>a()),xo("draw")),ht.show&&ja&&(Ct(ht),ja=!1),$&&xa&&(Xt(null,!0,!1),xa=!1),_.show&&_.live&&za&&(Wt(),za=!1),l||(l=!0,t.status=1,xo("ready")),Ve=!1,Qn=!1}function it(a,n){let o=x[a];if(null==o.from){if(0==Oa){let e=o.range(t,n.min,n.max,a);n.min=e[0],n.max=e[1]}if(n.min>n.max){let a=n.min;n.min=n.max,n.max=a}if(Oa>1&&null!=n.min&&null!=n.max&&n.max-n.min<1e-16)return;a==z&&2==o.distr&&Oa>0&&(n.min=qe(n.min,e[0]),n.max=qe(n.max,e[0]),n.min==n.max&&n.max++),M[a]=n,va=!0,rt()}}t.batch=function(a,e=!1){Qn=!0,nt=e,a(t),st(),e&&tt.length>0&&queueMicrotask(ot)},t.redraw=(a,e)=>{ka=e||!1,!1!==a?At(z,B.min,B.max):rt()},t.setScale=it;let lt=!1;const ct=V.drag;let dt=ct.x,ut=ct.y;$&&(V.x&&(_n=we("u-cursor-x",p)),V.y&&(Vn=we("u-cursor-y",p)),0==B.ori?(On=_n,$n=Vn):(On=Vn,$n=_n),Jn=V.left,Zn=V.top);const ht=t.select=Rn({show:!0,over:!0,left:0,width:0,top:0,height:0},a.select),kt=ht.show?we("u-select",ht.over?p:m):null;function Ct(a,e){if(ht.show){for(let e in a)ht[e]=a[e],e in lo&&ye(kt,e,a[e]);!1!==e&&xo("setSelect")}}function At(a,e,n){it(a,{min:e,max:n})}function Dt(a,e,n,r){null!=e.focus&&function(a){if(a!=qt){let e=null==a,n=1!=Fa.alpha;y.forEach((t,r)=>{if(1==o||r>0){let o=e||0==r||r==a;t._focus=e?null:o,n&&function(a,e){y[a].alpha=e,$&&null!=Ma[a]&&(Ma[a].style.opacity=e),O&&K[a]&&(K[a].style.opacity=e)}(r,o?1:Fa.alpha)}}),qt=a,n&&rt()}}(a),null!=e.show&&y.forEach((n,t)=>{t>0&&(a==t||null==a)&&(n.show=e.show,function(a){if(y[a].show)O&&fe(K[a],Ua);else if(O&&be(K[a],Ua),$){let e=Sa?Ma[0]:Ma[a];null!=e&&xe(e,-10,-10,ia,la)}}(t),2==o?(At(n.facets[0].scale,null,null),At(n.facets[1].scale,null,null)):At(n.scale,null,null),rt())}),!1!==n&&xo("setSeries",a,e),r&&Do("setSeries",t,a,e)}let Bt,Ft,qt;t.setSelect=Ct,t.setSeries=Dt,t.addBand=function(a,e){a.fill=un(a.fill||null),a.dir=$e(a.dir,-1),e=null==e?j.length:e,j.splice(e,0,a)},t.setBand=function(a,e){Rn(j[a],e)},t.delBand=function(a){null==a?j.length=0:j.splice(a,1)};const St={focus:!0};function Mt(a,e,n){let t=x[e];n&&(a=a/pe-(1==t.ori?da:ca));let o=ia;1==t.ori&&(o=la,a=o-a),-1==t.dir&&(a=o-a);let r=t._min,s=r+(t._max-r)*(a/o),i=t.distr;return 3==i?en(10,s):4==i?((a,e=1)=>Ye.sinh(a)*e)(s,t.asinh):100==i?t.bwd(s):s}function Tt(a,e){ye(kt,Ja,ht.left=a),ye(kt,Ya,ht.width=e)}function Vt(a,e){ye(kt,Ka,ht.top=a),ye(kt,Ga,ht.height=e)}O&&qa&&ta(re,U,a=>{V._lock||(Ea(a),null!=qt&&Dt(null,St,!0,zo.setSeries))}),t.valToIdx=a=>qe(a,e[0]),t.posToIdx=function(a,n){return qe(Mt(a,z,n),e[0],$a,Wa)},t.posToVal=Mt,t.valToPos=(a,e,n)=>0==x[e].ori?r(a,x[e],n?fa:ia,n?ga:0):s(a,x[e],n?ya:la,n?ba:0),t.setCursor=(a,e,n)=>{Jn=a.left,Zn=a.top,Xt(null,e,n)};let Ot=0==B.ori?Tt:Vt,$t=1==B.ori?Tt:Vt;function Wt(a,e){if(null!=a&&(a.idxs?a.idxs.forEach((a,e)=>{I[e]=a}):void 0!==a.idx&&I.fill(a.idx),_.idx=I[0]),O&&_.live){for(let a=0;a0||1==o&&!J)&&Ut(a,I[a]);!function(){if(O&&_.live)for(let a=2==o?1:0;aWa;Bt=sn,Ft=null;let l=0==B.ori?ia:la,c=1==B.ori?ia:la;if(Jn<0||0==Oa||i){s=V.idx=null;for(let a=0;a0&&a.show){let n=null==w?-10:w==s?r:q(1==o?e[0][w]:e[b][0][w],B,l,0),f=null==k?-10:S(k,1==o?x[a.scale]:x[a.facets[1].scale],c,0);if(qa&&null!=k){let e=1==B.ori?Jn:Zn,n=Ke(Fa.dist(t,b,w,f,e));if(n=0?1:-1;r==(k>=0?1:-1)&&(1==r?1==t?k>=o:k<=o:1==t?k<=o:k>=o)&&(Bt=n,Ft=b)}else Bt=n,Ft=b}}if(za||Sa){let a,e;0==B.ori?(a=n,e=f):(a=f,e=n);let o,r,s,l,c,y,v=!0,w=Ba.bbox;if(null!=w){v=!1;let a=w(t,b);s=a.left,l=a.top,o=a.width,r=a.height}else s=a,l=e,o=r=Ba.size(t,b);if(y=Ba.fill(t,b),c=Ba.stroke(t,b),Sa)b==Ft&&Bt<=Fa.prox&&(i=s,d=l,u=o,h=r,m=v,p=y,g=c);else{let a=Ma[b];null!=a&&(Ta[b]=s,Pa[b]=l,Ae(a,o,r,v),ze(a,y,c),xe(a,Ze(s),Ze(l),ia,la))}}}}if(Sa){let a=Fa.prox;if(za||(null==qt?Bt<=a:Bt>a||Ft!=qt)){let a=Ma[0];null!=a&&(Ta[0]=i,Pa[0]=d,Ae(a,u,h,m),ze(a,p,g),xe(a,Ze(i),Ze(d),ia,la))}}}if(ht.show&<)if(null!=a){let[e,n]=zo.scales,[t,o]=zo.match,[r,s]=a.cursor.sync.scales,i=a.cursor.drag;if(dt=i._x,ut=i._y,dt||ut){let i,d,u,h,m,{left:p,top:g,width:b,height:f}=a.select,y=a.scales[r].ori,v=a.posToVal,w=null!=e&&t(e,r),k=null!=n&&o(n,s);w&&dt?(0==y?(i=p,d=b):(i=g,d=f),u=x[e],h=q(v(i,r),u,l,0),m=q(v(i+d,r),u,l,0),Ot(Qe(h,m),Ke(m-h))):Ot(0,l),k&&ut?(1==y?(i=p,d=b):(i=g,d=f),u=x[n],h=S(v(i,s),u,c,0),m=S(v(i+d,s),u,c,0),$t(Qe(h,m),Ke(m-h))):$t(0,c)}else co()}else{let a=Ke(Kn-Wn),e=Ke(Xn-Un);if(1==B.ori){let n=a;a=e,e=n}dt=ct.x&&a>=ct.dist,ut=ct.y&&e>=ct.dist;let n,t,o=ct.uni;null!=o?dt&&ut&&(dt=a>=o,ut=e>=o,dt||ut||(e>a?ut=!0:dt=!0)):ct.x&&ct.y&&(dt||ut)&&(dt=ut=!0),dt&&(0==B.ori?(n=Hn,t=Jn):(n=Yn,t=Zn),Ot(Qe(n,t),Ke(t-n)),ut||$t(0,c)),ut&&(1==B.ori?(n=Hn,t=Jn):(n=Yn,t=Zn),$t(Qe(n,t),Ke(t-n)),dt||Ot(0,l)),dt||ut||(Ot(0,0),$t(0,0))}if(ct._x=dt,ct._y=ut,null==a){if(r){if(null!=Co){let[a,e]=zo.scales;zo.values[0]=null!=a?Mt(0==B.ori?Jn:Zn,a):null,zo.values[1]=null!=e?Mt(1==B.ori?Jn:Zn,e):null}Do(ee,t,Jn,Zn,ia,la,s)}if(qa){let a=r&&zo.setSeries,e=Fa.prox;null==qt?Bt<=e&&Dt(Ft,St,!0,a):Bt>e?Dt(null,St,!0,a):Ft!=qt&&Dt(Ft,St,!0,a)}}za&&(_.idx=s,Wt()),!1!==n&&xo("setCursor")}t.setLegend=Wt;let Jt=null;function to(a=!1){a?Jt=null:(Jt=p.getBoundingClientRect(),xo("syncRect",Jt))}function ro(a,e,n,t,o,r,s){V._lock||lt&&null!=a&&0==a.movementX&&0==a.movementY||(so(a,e,n,t,o,r,0,!1,null!=a),null!=a?Xt(null,!0,!0):Xt(e,!0,!1))}function so(a,e,n,o,r,s,l,c,d){if(null==Jt&&to(!1),Ea(a),null!=a)n=a.clientX-Jt.left,o=a.clientY-Jt.top;else{if(n<0||o<0)return Jn=-10,void(Zn=-10);let[a,t]=zo.scales,l=e.cursor.sync,[c,d]=l.values,[u,h]=l.scales,[m,p]=zo.match,g=e.axes[0].side%2==1,b=0==B.ori?ia:la,f=1==B.ori?ia:la,y=g?s:r,v=g?r:s,w=g?o:n,k=g?n:o;if(n=null!=u?m(a,u)?i(c,x[a],b,0):-10:b*(w/y),o=null!=h?p(t,h)?i(d,x[t],f,0):-10:f*(k/v),1==B.ori){let a=n;n=o,o=a}}!d||null!=e&&e.cursor.event.type!=ee||((n<=1||n>=ia-1)&&(n=vn(n,ia)),(o<=1||o>=la-1)&&(o=vn(o,la))),c?(Wn=n,Un=o,[Hn,Yn]=V.move(t,n,o)):(Jn=n,Zn=o)}Object.defineProperty(t,"rect",{get:()=>(null==Jt&&to(!1),Jt)});const lo={width:0,height:0,left:0,top:0};function co(){Ct(lo,!1)}let uo,mo,po,go;function bo(a,e,n,o,r,s,i){lt=!0,dt=ut=ct._x=ct._y=!1,so(a,e,n,o,r,s,0,!0,!1),null!=a&&(ta(te,ue,fo,!1),Do(ne,t,Hn,Yn,ia,la,null));let{left:l,top:c,width:d,height:u}=ht;uo=l,mo=c,po=d,go=u}function fo(a,e,n,o,r,s,i){lt=ct._x=ct._y=!1,so(a,e,n,o,r,s,0,!1,!0);let{left:l,top:c,width:d,height:u}=ht,h=d>0||u>0,m=uo!=l||mo!=c||po!=d||go!=u;if(h&&m&&Ct(ht),ct.setScale&&h&&m){let a=l,e=d,n=c,t=u;if(1==B.ori&&(a=c,e=u,n=l,t=d),dt&&At(z,Mt(a,z),Mt(a+e,z)),ut)for(let o in x){let a=x[o];o!=z&&null==a.from&&a.min!=sn&&At(o,Mt(n+t,o),Mt(n,o))}co()}else V.lock&&(V._lock=!V._lock,Xt(e,!0,null!=a));null!=a&&(oa(te,ue),Do(te,t,Jn,Zn,ia,la,null))}function yo(a,e,n,o,r,s,i){V._lock||(Ea(a),Ue(),co(),null!=a&&Do(se,t,Jn,Zn,ia,la,null))}function vo(){k.forEach(Uo),Ca(t.width,t.height,!0)}Be(le,he,vo);const wo={};wo.mousedown=bo,wo.mousemove=ro,wo.mouseup=fo,wo.dblclick=yo,wo.setSeries=(a,e,n,o)=>{-1!=(n=(0,zo.match[2])(t,e,n))&&Dt(n,o,!0,!1)},$&&(ta(ne,p,bo),ta(ee,p,ro),ta(oe,p,a=>{Ea(a),to(!1)}),ta(re,p,function(a,e,n,t,o,r,s){if(V._lock)return;Ea(a);let i=lt;if(lt){let a,e,n=!0,t=!0,o=10;0==B.ori?(a=dt,e=ut):(a=ut,e=dt),a&&e&&(n=Jn<=o||Jn>=ia-o,t=Zn<=o||Zn>=la-o),a&&n&&(Jn=Jn{a.call(null,t,e,n)})}(a.plugins||[]).forEach(a=>{for(let e in a.hooks)ko[e]=(ko[e]||[]).concat(a.hooks[e])});const jo=(a,e,n)=>n,zo=Rn({key:null,setSeries:!1,filters:{pub:gn,sub:gn},scales:[z,y[1]?y[1].scale:null],match:[bn,bn,jo],values:[null,null]},V.sync);2==zo.match.length&&zo.match.push(jo),V.sync=zo;const Co=zo.key,Ao=oo(Co);function Do(a,e,n,t,o,r,s){zo.filters.pub(a,e,n,t,o,r,s)&&Ao.pub(a,e,n,t,o,r,s)}function Eo(){xo("init",a,e),We(e||a.data,!1),M[z]?it(z,M[z]):Ue(),ja=ht.show&&(ht.width>0||ht.height>0),xa=za=!0,Ca(a.width,a.height)}return Ao.sub(t),t.pub=function(a,e,n,t,o,r,s){zo.filters.sub(a,e,n,t,o,r,s)&&wo[a](null,e,n,t,o,r,s)},t.destroy=function(){Ao.unsub(t),qo.delete(t),na.clear(),Fe(le,he,vo),c.remove(),null==U||U.remove(),xo("destroy")},y.forEach(Ra),k.forEach(function(a,e){if(a._show=a.show,a.show){let n=a.side%2,o=x[a.scale];null==o&&(a.scale=n?y[1].scale:z,o=x[a.scale]);let r=o.time;a.size=un(a.size),a.space=un(a.space),a.rotate=un(a.rotate),Bn(a.incrs)&&a.incrs.forEach(a=>{!jn.has(a)&&jn.set(a,zn(a))}),a.incrs=un(a.incrs||(2==o.distr?at:r?1==f?mt:bt:et)),a.splits=un(a.splits||(r&&1==o.distr?L:3==o.distr?It:4==o.distr?_t:Nt)),a.stroke=un(a.stroke),a.grid.stroke=un(a.grid.stroke),a.ticks.stroke=un(a.ticks.stroke),a.border.stroke=un(a.border.stroke);let s=a.values;a.values=Bn(s)&&!Bn(s[0])?un(s):r?Bn(s)?wt(T,vt(s,P)):qn(s)?function(a,e){let n=Gn(e);return(e,t,o,r,s)=>t.map(e=>n(a(e)))}(T,s):s||R:s||Rt,a.filter=un(a.filter||(o.distr>=3&&10==o.log?Ht:3==o.distr&&2==o.log?Yt:mn)),a.font=Wo(a.font),a.labelFont=Wo(a.labelFont),a._size=a.size(t,null,e,0),a._space=a._rotate=a._incrs=a._found=a._splits=a._values=null,a._size>0&&(Na[e]=!0,a._el=we("u-axis",h))}}),n?n instanceof HTMLElement?(n.appendChild(c),Eo()):n(t,Eo):Eo(),t}Ho.assign=Rn,Ho.fmtNum=He,Ho.rangeNum=Oe,Ho.rangeLog=Re,Ho.rangeAsinh=Ne,Ho.orient=ro,Ho.pxRatio=pe,Ho.join=function(a,e){if(function(a){let e=a[0][0],n=e.length;for(let t=1;t=t&&null==a[o];)o--;if(o<=t)return!0;const r=an(1,Xe((o-t+1)/e));for(let s=a[t],i=t+r;i<=o;i+=r){const e=a[i];if(null!=e){if(e<=s)return!1;s=e}}return!0}(e[0])||(e=function(a){let e=a[0],n=e.length,t=Array(n);for(let r=0;re[a]-e[n]);let o=[];for(let r=0;ra-e)],o=t[0].length,r=new Map;for(let s=0;sro(a,r,(l,c,d,u,h,m,p,g,b,f,y)=>{[s,i]=Pe(d,s,i);let v=l.pxRound,{left:w,width:k}=a.bbox,x=a=>v(m(a,u,f,g)),j=a=>v(p(a,h,y,b)),z=0==u.ori?bo:fo;const C={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},A=C.stroke,D=u.dir*(0==u.ori?1:-1);let E=j(d[1==D?s:i]),B=x(c[1==D?s:i]),F=B,q=B;o&&-1==e&&(q=w,z(A,q,E)),z(A,B,E);for(let a=1==D?s:i;a>=s&&a<=i;a+=D){let n=d[a];if(null==n)continue;let t=x(c[a]),o=j(n);1==e?z(A,t,E):z(A,F,o),z(A,t,o),E=o,F=t}let S=F;o&&1==e&&(S=w+k,z(A,S,E));let[M,T]=so(a,r);if(null!=l.fill||0!=M){let e=C.fill=new Path2D(A),n=j(l.fillTo(a,r,l.min,l.max,M));z(e,S,n),z(e,q,n)}if(!l.spanGaps){let o=[];o.push(...uo(c,d,s,i,D,x,t));let h=l.width*pe/2,m=n||1==e?h:-h,p=n||-1==e?-h:h;o.forEach(a=>{a[0]+=m,a[1]+=p}),C.gaps=o=l.gaps(a,r,s,i,o),C.clip=co(o,u.ori,g,b,f,y)}return 0!=T&&(C.band=2==T?[lo(a,r,s,i,A,-1),lo(a,r,s,i,A,1)]:lo(a,r,s,i,A,T)),C})},a.bars=function(a){const e=$e((a=a||An).size,[.6,sn,1]),n=a.align||0,t=a.gap||0;let o=a.radius;o=null==o?[0,0]:"number"==typeof o?[o,0]:o;const r=un(o),s=1-e[0],i=$e(e[1],sn),l=$e(e[2],1),c=$e(a.disp,An),d=$e(a.each,a=>{}),{fill:u,stroke:h}=c;return(a,e,o,m)=>ro(a,e,(p,g,b,f,y,v,w,k,x,j,z)=>{let C,A,D=p.pxRound,E=n,B=t*pe,F=i*pe,q=l*pe;0==f.ori?[C,A]=r(a,e):[A,C]=r(a,e);const S=f.dir*(0==f.ori?1:-1);let M,T,P,L=0==f.ori?yo:vo,R=0==f.ori?d:(a,e,n,t,o,r,s)=>{d(a,e,n,o,t,s,r)},N=$e(a.bands,Dn).find(a=>a.series[0]==e),I=null!=N?N.dir:0,_=p.fillTo(a,e,p.min,p.max,I),V=D(w(_,y,z,x)),O=j,$=D(p.width*pe),W=!1,U=null,H=null,Y=null,G=null;null==u||0!=$&&null==h||(W=!0,U=u.values(a,e,o,m),H=new Map,new Set(U).forEach(a=>{null!=a&&H.set(a,new Path2D)}),$>0&&(Y=h.values(a,e,o,m),G=new Map,new Set(Y).forEach(a=>{null!=a&&G.set(a,new Path2D)})));let{x0:K,size:X}=c;if(null!=K&&null!=X){E=1,g=K.values(a,e,o,m),2==K.unit&&(g=g.map(e=>a.posToVal(k+e*j,f.key,!0)));let n=X.values(a,e,o,m);T=2==X.unit?n[0]*j:v(n[0],f,j,k)-v(0,f,j,k),O=Bo(g,b,v,f,j,k,O),P=O-T+B}else O=Bo(g,b,v,f,j,k,O),P=O*s+B,T=O-P;P<1&&(P=0),$>=T/2&&($=0),P<5&&(D=hn);let J=P>0;T=D(cn(O-P-(J?$:0),q,F)),M=(0==E?T/2:E==S?0:T)-E*S*((0==E?B/2:0)+(J?$/2:0));const Z={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Q=W?null:new Path2D;let aa=null;if(null!=N)aa=a.data[N.series[1]];else{let{y0:n,y1:t}=c;null!=n&&null!=t&&(b=t.values(a,e,o,m),aa=n.values(a,e,o,m))}let ea=C*T,na=A*T;for(let n=1==S?o:m;n>=o&&n<=m;n+=S){let t=b[n];if(null==t)continue;if(null!=aa){let a=aa[n]??0;if(t-a==0)continue;V=w(a,y,z,x)}let o=v(2!=f.distr||null!=c?g[n]:n,f,j,k),r=w($e(t,_),y,z,x),s=D(o-M),i=D(an(r,V)),l=D(Qe(r,V)),d=i-l;if(null!=t){let o=t<0?na:ea,r=t<0?ea:na;W?($>0&&null!=Y[n]&&L(G.get(Y[n]),s,l+Xe($/2),T,an(0,d-$),o,r),null!=U[n]&&L(H.get(U[n]),s,l+Xe($/2),T,an(0,d-$),o,r)):L(Q,s,l+Xe($/2),T,an(0,d-$),o,r),R(a,e,n,s-$/2,l,T+$,d)}}return $>0?Z.stroke=W?G:Q:W||(Z._fill=0==p.width?p._fill:p._stroke??p._fill,Z.width=0),Z.fill=W?H:Q,Z})},a.spline=function(a){return function(a,e){const n=$e(null==e?void 0:e.alignGaps,0);return(e,t,o,r)=>ro(e,t,(s,i,l,c,d,u,h,m,p,g,b)=>{[o,r]=Pe(l,o,r);let f,y,v,w=s.pxRound,k=a=>w(u(a,c,g,m)),x=a=>w(h(a,d,b,p));0==c.ori?(f=po,v=bo,y=xo):(f=go,v=fo,y=jo);const j=c.dir*(0==c.ori?1:-1);let z=k(i[1==j?o:r]),C=z,A=[],D=[];for(let a=1==j?o:r;a>=o&&a<=r;a+=j)if(null!=l[a]){let e=k(i[a]);A.push(C=e),D.push(x(l[a]))}const E={stroke:a(A,D,f,v,y,w),fill:null,clip:null,band:null,gaps:null,flags:1},B=E.stroke;let[F,q]=so(e,t);if(null!=s.fill||0!=F){let a=E.fill=new Path2D(B),n=x(s.fillTo(e,t,s.min,s.max,F));v(a,C,n),v(a,z,n)}if(!s.spanGaps){let a=[];a.push(...uo(i,l,o,r,j,k,n)),E.gaps=a=s.gaps(e,t,o,r,a),E.clip=co(a,c.ori,m,p,g,b)}return 0!=q&&(E.band=2==q?[lo(e,t,o,r,B,-1),lo(e,t,o,r,B,1)]:lo(e,t,o,r,B,q)),E})}(Fo,a)}}const Yo=new Map;function Go(a){var e;if(!a.startsWith("var("))return a;const n=Yo.get(a);if(n)return n;const t=a.match(/var\(([^,)]+)(?:,\s*([^)]+))?\)/);if(!t)return a;const o=t[1].trim(),r=(null==(e=t[2])?void 0:e.trim())||"#888888",s=getComputedStyle(document.documentElement).getPropertyValue(o).trim()||r;return Yo.set(a,s),s}function Ko(a){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);if(e)return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i.exec(a);return n?[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]:[0,0,0]}let Xo=null,Jo=0;const Zo=o.memo(function({timestamps:a,series:e,onHover:n,onSeriesHover:t,highlightedKey:s=null,cursorColor:i="rgba(255,255,255,0.5)",overlayLine:l=null}){const c=o.useRef(null),d=o.useRef(null),u=o.useRef(e),h=o.useRef(s),m=o.useRef(l),p=o.useRef(n),g=o.useRef(t),b=o.useRef(null),f=o.useRef(a.length);o.useLayoutEffect(()=>{u.current=e,h.current=s,m.current=l,p.current=n,g.current=t});const y=o.useMemo(()=>{const e=new Array(a.length).fill(1);return[a,e]},[a]),v=o.useMemo(()=>({hooks:{draw:a=>{(function(a,e,n,t){if(0===e.length)return;const o=a.ctx,r=a.bbox,s=r.left,i=r.top,l=r.width,c=r.height;if(l<=0||c<=0)return;const d=8*(window.devicePixelRatio||1);o.save(),o.beginPath(),o.roundRect(s,i,l,c,d),o.clip();const u=a.data[0],h=u.length;if(0===h)return;const m=u[0],p=u[h-1]-m||1,g=h>1?u[1]-u[0]:p/h,b=a=>s+(a-m)/p*l,f=a=>i+c*(1-a);for(let y=0;y=0;e--){const a=u[e],n=f(r[e]),t=b(e0&&o.lineTo(s,f(r[e-1]))}o.closePath(),o.fill(),o.restore()}t&&t.values.length>0&&function(a,e){const n=a.ctx,t=a.bbox,o=t.left,r=t.top,s=t.width,i=t.height;if(s<=0||i<=0)return;const l=a.data[0],c=l.length,d=e.values;if(0===c||0===d.length)return;const u=window.devicePixelRatio||1,h=l[0],m=l[c-1]-h||1,p=a=>o+(a-h)/m*s,g=a=>r+i*(1-a),b=Go(e.color),f=(e.lineWidth??2)*u;n.save(),n.strokeStyle=b,n.lineWidth=f,n.lineCap="round",n.lineJoin="round",n.beginPath();let y=0;for(;y=c)return void n.restore();const v=p(l[y]),w=g(d[y]);n.moveTo(v,w);for(let x=y+1;x({width:400,height:200,padding:[8,0,0,32],cursor:{show:!0,x:!0,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],hooks:{setCursor:[a=>{var e,n,t,o;const r=a.cursor.idx;if(null!=r&&r>=0){const t=a.data[0][r];null==(e=p.current)||e.call(p,r,t);const o=a.cursor.left,s=a.cursor.top;if(void 0!==o&&void 0!==s&&null!==o&&null!==s){const e=window.devicePixelRatio||1,t=a.ctx,r=Math.round((a.bbox.left/e+o)*e),i=Math.round((a.bbox.top/e+s)*e),l=t.getImageData(r,i,1,1).data,c=l[0],d=l[1],h=l[2];let m=null;if(l[3]>10){const a=u.current;for(const e of a){const a=Go(e.color),[n,t,o]=Ko(a),r=30;if(Math.abs(c-n)<=r&&Math.abs(d-t)<=r&&Math.abs(h-o)<=r){m=e.key;break}}}m!==b.current&&(b.current=m,null==(n=g.current)||n.call(g,m))}}else null==(t=p.current)||t.call(p,null,null),null!==b.current&&(b.current=null,null==(o=g.current)||o.call(g,null))}]},plugins:[v]}),[v]);o.useEffect(()=>{const e=c.current;if(!e||0===a.length)return;const n=f.current,t=a.length,o=Math.abs(t-n);if(!(!d.current||o>100||n>0&&o/n>.1)&&d.current)return d.current.setData(y),void(f.current=t);d.current&&d.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...w,width:s,height:i},y,e);return d.current=l,f.current=t,()=>{l.destroy(),d.current=null}},[w,y,a.length]),o.useEffect(()=>{const a=c.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!d.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&d.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{d.current&&d.current.redraw()},[s,e,l]);const k=o.useCallback(()=>{null==n||n(null,null),null==t||t(null),b.current=null},[n,t]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:c,className:"w-full h-full overflow-hidden",onMouseLeave:k})}),Qo=o.createContext(null);function ar(a){const e=fa(a);e&&function(a){if("undefined"==typeof document)return;const e=function(a){var e;const n={},t=a.surfaces.glass;n["--glass-tint"]=t.tint,n["--glass-light"]=t.light,n["--glass-dark"]=t.dark,n["--glass-reflex-light"]=String(t.reflexLight),n["--glass-reflex-dark"]=String(t.reflexDark),n["--glass-blur"]=`${t.blur}px`,n["--glass-blur-elevated"]=`${t.blurElevated}px`,n["--glass-brightness"]=String(t.brightness),n["--glass-bg-opacity"]=`${t.opacity}%`,n["--glass-bg-opacity-elevated"]=`${t.opacityElevated}%`,n["--glass-stroke-only"]=t.strokeOnly?"1":"0",n["--glass-stroke-width"]=t.strokeWidth?`${t.strokeWidth}px`:"0px",n["--glass-stroke-color"]=t.strokeColor||"transparent",n["--glass-ribbon-mode"]=t.ribbonMode?"1":"0",n["--glass-ribbon-border-width"]=t.ribbonBorderWidth?`${t.ribbonBorderWidth}px`:"0px",n["--glass-ribbon-border-color"]=t.ribbonBorderColor||"transparent",n["--sidebar-tint"]=a.surfaces.sidebar.tint,n["--tooltip-bg"]=a.colors.bg.surface,n["--hover-tint"]=`rgba(${q(a.colors.accent.primary)}, 0.08)`,n["--shadow-tint"]=`rgba(${q(a.colors.accent.primary)}, 0.35)`,n["--bg-body"]=a.colors.bg.body,n["--bg-surface"]=a.colors.bg.surface,n["--bg-elevated"]=a.colors.bg.elevated,n["--bg-subtle"]=a.colors.bg.subtle,n["--border-subtle"]=a.colors.border.subtle,n["--border-strong"]=a.colors.border.strong,n["--text-primary"]=a.colors.text.primary,n["--text-secondary"]=a.colors.text.secondary,n["--text-muted"]=a.colors.text.muted,n["--text-invert"]=a.colors.text.inverse,n["--accent-primary"]=a.colors.accent.primary,n["--accent-secondary"]=a.colors.accent.secondary,n["--accent-tertiary"]=a.colors.accent.tertiary,n["--accent-success"]=a.colors.accent.success,n["--accent-danger"]=a.colors.accent.danger,n["--signal-excellent"]=a.colors.signal.excellent,n["--signal-good"]=a.colors.signal.good,n["--signal-fair"]=a.colors.signal.fair,n["--signal-poor"]=a.colors.signal.poor,n["--signal-critical"]=a.colors.signal.critical,n["--signal-unknown"]=a.colors.signal.unknown,n["--sparkline-excellent"]=a.colors.signal.excellent,n["--sparkline-good"]=a.colors.signal.good,n["--sparkline-fair"]=a.colors.signal.fair,n["--sparkline-poor"]=a.colors.signal.poor,n["--sparkline-critical"]=a.colors.signal.critical,n["--status-success"]=a.colors.status.success,n["--status-warning"]=a.colors.status.warning,n["--status-danger"]=a.colors.status.danger,n["--status-info"]=a.colors.status.info,n["--status-muted"]=a.colors.status.muted;const o=a.colors.chart;n["--pkt-advert"]=a.colors.accent.secondary,n["--pkt-flood"]=a.colors.accent.tertiary,n["--pkt-txt-msg"]=a.colors.accent.success,n["--pkt-ack"]=o.c8,n["--pkt-trace"]=o.c3,n["--pkt-req"]=o.c2,n["--pkt-response"]=o.c5,n["--pkt-grp-txt"]=a.colors.map.room,n["--pkt-grp-data"]=a.colors.accent.danger,n["--pkt-path"]=o.c3,n["--pkt-anon"]=a.colors.accent.secondary,n["--pkt-unknown"]=a.colors.status.muted,n["--route-flood"]=a.colors.accent.primary,n["--route-direct"]=a.colors.accent.secondary,n["--route-transport"]=o.c8,n["--chart-1"]=o.c1,n["--chart-2"]=o.c2,n["--chart-3"]=o.c3,n["--chart-4"]=o.c4,n["--chart-5"]=o.c5,n["--chart-6"]=o.c6,n["--chart-7"]=o.c7,n["--chart-8"]=o.c8,n["--chart-grid"]=o.grid,n["--chart-axis-tick"]=o.axis,n["--chart-cursor"]=o.cursor,n["--metric-received"]=a.colors.metric.received,n["--metric-forwarded"]=a.colors.metric.forwarded,n["--metric-transmitted"]=a.colors.metric.transmitted,n["--metric-dropped"]=a.colors.metric.dropped,n["--metric-neutral"]=a.colors.text.secondary,n["--log-debug"]=a.colors.status.muted,n["--log-info"]=a.colors.status.info,n["--log-warning"]=a.colors.status.warning,n["--log-error"]=a.colors.accent.danger,n["--log-critical"]=a.colors.accent.danger;const r=a.colors.map;n["--map-node-fill"]="#3B82F6",n["--map-node-stroke"]="rgba(255,255,255,0.9)",n["--map-hub-color"]="#8E4EC6",n["--map-hub-stroke"]="rgba(255,255,255,0.9)",n["--map-gateway-color"]="#5B5BD6",n["--map-gateway-stroke"]="rgba(255,255,255,0.85)",n["--map-local-color"]="#FFB224",n["--map-neighbor-color"]="#FFB224",n["--map-neighbor-stroke"]="rgba(0,0,0,0.4)",n["--map-mobile-color"]="#F76B15",n["--map-room-color"]="#D6409F",n["--map-ghost-color"]="#00A2C7",n["--map-edge-rest"]=r.edge,n["--map-edge-rest-bright"]=a.colors.border.strong,n["--map-edge-rest-dim"]=a.colors.bg.subtle,n["--map-edge-hover-direct"]=r.edgeHover,n["--map-edge-hover-loop"]="#8E4EC6",n["--map-edge-hover-standard"]=a.colors.text.muted,n["--map-edge-hover-neighbor"]="#FFB224",n["--link-strong"]=a.colors.accent.success,n["--link-medium"]=a.colors.accent.secondary,n["--link-weak"]=a.colors.accent.danger,n["--hop-0"]=a.colors.accent.tertiary,n["--hop-1"]=a.colors.accent.success,n["--hop-2"]=o.c3,n["--hop-3"]=a.colors.accent.secondary,n["--hop-distant"]=a.colors.text.muted,n["--hop-hub"]=r.local;const s=a.colors.icon;n["--icon-page-title"]=(null==s?void 0:s.pageTitle)??a.colors.accent.primary,n["--icon-card-title"]=(null==s?void 0:s.cardTitle)??a.colors.accent.primary,n["--icon-widget"]=(null==s?void 0:s.widget)??a.colors.text.secondary,n["--icon-action"]=(null==s?void 0:s.action)??a.colors.text.secondary,n["--icon-nav"]=(null==s?void 0:s.nav)??a.colors.text.muted,n["--icon-nav-active"]=(null==s?void 0:s.navActive)??a.colors.accent.primary,n["--toggle-on"]=a.colors.accent.success,n["--toggle-off"]=a.colors.bg.elevated;const i=a.colors.sidebar;n["--sidebar-bg"]=(null==i?void 0:i.bg)??"transparent",n["--sidebar-nav-hover-bg"]=(null==i?void 0:i.navHoverBg)??"rgba(255, 255, 255, 0.05)",n["--sidebar-nav-active-bg"]=(null==i?void 0:i.navActiveBg)??`color-mix(in srgb, ${a.colors.accent.primary} 15%, transparent)`,n["--sidebar-nav-active-text"]=(null==i?void 0:i.navActiveText)??a.colors.accent.primary;const l=a.meta.isDark;n["--data-box-bg"]=l?"rgba(255, 255, 255, 0.03)":"rgba(0, 0, 0, 0.03)",n["--data-box-border"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.08)",n["--subtle-fill"]=l?"rgba(255, 255, 255, 0.03)":"rgba(0, 0, 0, 0.03)",n["--subtle-fill-hover"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.05)",n["--subtle-fill-strong"]=l?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",n["--color-pill-bg"]=l?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.3)",n["--terminal-bg"]=l?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0.03)",n["--terminal-bg-input"]=l?"rgba(0, 0, 0, 0.5)":"rgba(0, 0, 0, 0.05)",n["--terminal-bg-status"]=l?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.02)",n["--terminal-border"]=l?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.08)",n["--terminal-autocomplete-bg"]=l?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.95)",n["--terminal-autocomplete-border"]=l?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.15)",n["--terminal-autocomplete-hover"]=l?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",n["--livedot-idle"]=l?"#666677":"#999999",n["--ctrl-panel-top"]=l?"rgba(30, 30, 30, 0.95)":"rgba(240, 240, 240, 0.95)",n["--ctrl-panel-mid"]=l?"rgba(25, 25, 25, 0.95)":"rgba(235, 235, 235, 0.95)",n["--ctrl-panel-bottom"]=l?"rgba(20, 20, 20, 0.95)":"rgba(230, 230, 230, 0.95)",n["--ctrl-panel-border"]=l?"rgba(60, 60, 60, 1)":"rgba(200, 200, 200, 1)",n["--chart-grid-line"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.08)",n["--map-control-active-amber"]=l?"rgba(251, 191, 36, 0.15)":"rgba(217, 119, 6, 0.12)",n["--map-control-active-sky"]=l?"rgba(56, 189, 248, 0.15)":"rgba(14, 165, 233, 0.12)",n["--map-control-active-teal"]=l?"rgba(45, 212, 191, 0.15)":"rgba(20, 184, 166, 0.12)",n["--sidebar-action-active-green"]=l?"rgba(10, 26, 10, 1)":"rgba(220, 252, 231, 1)",n["--sidebar-action-active-teal"]=l?"rgba(10, 36, 32, 1)":"rgba(204, 251, 241, 1)",n["--sidebar-action-active-amber"]=l?"rgba(26, 20, 8, 1)":"rgba(254, 243, 199, 1)",n["--thumbnail-brightness"]=l?"1.5":"1.8",n["--font-title"]=a.typography.font.title,n["--font-display"]=a.typography.font.display,n["--font-data"]=a.typography.font.mono,n["--font-card-title"]=a.typography.font.cardTitle??a.typography.font.display,n["--font-badge"]=a.typography.font.badge??a.typography.font.display,n["--font-normal"]=String(a.typography.weight.normal),n["--font-medium"]=String(a.typography.weight.medium),n["--font-semibold"]=String(a.typography.weight.semibold),n["--font-bold"]=String(a.typography.weight.bold),n["--font-card-title-weight"]=String(a.typography.weight.cardTitle??a.typography.weight.semibold),n["--font-badge-weight"]=String(a.typography.weight.badge??a.typography.weight.medium),n["--badge-text-transform"]=(null==(e=a.typography.badge)?void 0:e.textTransform)??"none";const c=a.typography.size;c.xxl&&(n["--text-2xl"]=c.xxl),c.xl&&(n["--text-xl"]=c.xl),c.lg&&(n["--text-lg"]=c.lg),c.md&&(n["--text-md"]=c.md),c.base&&(n["--text-base"]=c.base),c.sm&&(n["--text-sm"]=c.sm),c.xs&&(n["--text-xs"]=c.xs),c.hero&&(n["--text-5xl"]=c.hero),c.cardTitle&&(n["--text-card-title"]=c.cardTitle);const d=a.typography.tracking;return d&&(n["--tracking-tight"]=d.tight,n["--tracking-normal"]=d.normal,n["--tracking-wide"]=d.wide),n["--theme-transition"]=`${a.motion.slow} ${a.motion.easing}`,function(a){if(!E())return a;const e={},n=/^#[0-9A-Fa-f]{3,6}$/;for(const[t,o]of Object.entries(a))e[t]=n.test(o)?D(o):o;return e}(n)}(a),n=document.documentElement;for(const[t,o]of Object.entries(e))n.style.setProperty(t,o);a.surfaces.glass.strokeOnly?n.classList.add("stroke-only"):n.classList.remove("stroke-only"),a.surfaces.glass.ribbonMode?n.classList.add("ribbon-mode"):n.classList.remove("ribbon-mode"),a.surfaces.glass.catalystMode?n.classList.add("catalyst-mode"):n.classList.remove("catalyst-mode")}(e),document.documentElement.dataset.colorScheme=a}function er({children:a}){const[e,n]=o.useState(()=>function(){if("undefined"==typeof window)return Ba;try{let n=localStorage.getItem(Fa),t=localStorage.getItem(qa);const o=localStorage.getItem(Sa);if(!n&&!t){const a=localStorage.getItem(Ma);if(a){const e=Ea.find(e=>e.id===a);e&&(n=e.colorScheme,t=e.backgroundImage,localStorage.setItem(Fa,n),localStorage.setItem(qa,t),localStorage.removeItem(Ma))}}const r=n&&"string"==typeof(e=n)&&Aa.some(a=>a.id===e)?n:Ba.colorScheme;let s=Ba.backgroundImage;""===t?s="":t&&"string"==typeof(a=t)&&Da.some(e=>e.src===a)&&(s=t);let i=Ba.brightness;if(o){const a=parseInt(o,10);!isNaN(a)&&a>=0&&a<=100&&(i=a)}return{colorScheme:r,backgroundImage:s,brightness:i}}catch{return Ba}var a,e}()),t=o.useRef(!1),s=o.useRef(null),[i,l]=o.useState(null);o.useEffect(()=>{s.current&&(clearTimeout(s.current),s.current=null),t.current&&(l("#808080"),s.current=setTimeout(()=>{l(null),s.current=null},1800)),t.current=!0,ar(e.colorScheme),Yo.clear(),requestAnimationFrame(()=>{!function(){if("undefined"==typeof window)return;for(const e of Ra){const a=$a(`--palette-${e}-bright`),n=$a(`--palette-${e}`),t=a||n;if(!t)continue;const o=Oa(t);for(const r of La)Wa(`--palette-${e}-${r}`,o[r])}const a=$a("--palette-bg-4");if(a){const e=Oa(a);for(const a of La)Wa(`--palette-neutral-${a}`,e[a])}}()})},[e.colorScheme]),o.useEffect(()=>{!function(a){if("undefined"!=typeof window)try{localStorage.setItem(Fa,a.colorScheme),localStorage.setItem(qa,a.backgroundImage),localStorage.setItem(Sa,String(a.brightness))}catch{}}(e)},[e]),o.useEffect(()=>{Da.forEach(a=>{(new Image).src=a.src})},[]);const c=o.useCallback(a=>{n(e=>({...e,colorScheme:a}))},[]),d=o.useCallback(a=>{const e=Da.find(e=>e.src===a);n(n=>({...n,backgroundImage:a,brightness:(null==e?void 0:e.suggestedBrightness)??n.brightness}))},[]),u=o.useCallback(a=>{const e=Math.max(0,Math.min(100,Math.round(a)));n(a=>({...a,brightness:e}))},[]),h=o.useCallback(a=>{const e=Ea.find(e=>e.id===a);if(e){const a=!e.backgroundImage,t=a?null:Da.find(a=>a.src===e.backgroundImage);n(n=>({...n,colorScheme:e.colorScheme,backgroundImage:e.backgroundImage,brightness:a?100:(null==t?void 0:t.suggestedBrightness)??n.brightness}))}},[]),m=o.useMemo(()=>({theme:e,setColorScheme:c,setBackgroundImage:d,setBrightness:u,setThemePreset:h}),[e,c,d,u,h]);return r.jsxs(Qo.Provider,{value:m,children:[a,i&&r.jsx("div",{className:"fixed inset-0 pointer-events-none z-[9999]",style:{backgroundColor:i,animation:"theme-crossfade 1.8s ease-out forwards"}},e.colorScheme),r.jsx("style",{children:"\n @keyframes theme-crossfade {\n from { opacity: 0.35; }\n to { opacity: 0; }\n }\n "})]})}function nr(){const a=o.useContext(Qo);if(!a)throw new Error("useTheme must be used within a ThemeProvider. Wrap your app with in App.tsx.");return a}const tr=o.forwardRef(function(a,e){const{href:n,...t}=a;return n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?r.jsx(s,{children:r.jsx("a",{...t,href:n,ref:e})}):r.jsx(s,{children:r.jsx(v,{...t,to:n,ref:e})})}),or={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"},rr={0:"T_FLOOD",1:"FLOOD",2:"DIRECT",3:"T_DIRECT"},sr={REQ:0,RESPONSE:1,TXT_MSG:2,ACK:3,ADVERT:4,GRP_TXT:5,GRP_DATA:6,ANON_REQ:7,PATH:8,TRACE:9,MULTIPART:10,RAW_CUSTOM:15};function ir(a){return 1===a||0===a}const lr={acton:{discrete:["#260D40","#2B1345","#2F194B","#342152","#382657","#3C2C5C","#403261","#443766","#483E6C","#4C4371","#504876","#544D7B","#57527F","#5D5884","#625C88","#685F8A","#6E618C","#74628D","#7B638D","#81638E","#88648E","#8E648E","#95658F","#9D658F","#A4668F","#AB6690","#B26790","#BB6992","#C26B94","#C86F97","#CD749B","#D07AA0","#D382A7","#D688AC","#D88FB2","#D995B8","#DB9CBD","#DEA4C4","#DFABC9","#E1B1CE","#E3B7D3","#E5BED8","#E6C5DE","#E8CBE2","#E9D0E6","#EBD6EA","#ECDBEE","#EDE1F3","#EFE6F6","#F0EAFA"],categorical:["#260D40","#F0EAFA","#A76690","#DDA1C2","#585380","#7D638E","#E8CAE1","#CF789E","#403261","#4C4371","#ECDBEE","#69608B","#E3B6D2","#D78CB0","#91648F","#BE6A92","#342152","#EAD3E8","#524B79","#73628D","#463A69","#605B86","#E5C0DA","#D382A7","#C86F97","#86648E","#EEE3F4","#DA97B9","#9B658F","#B26790","#2D1749","#E0ACCA","#3A2959","#8B648E","#311C4D","#EBD7EB","#EDDFF1","#AC6790","#A1668F","#6E618C","#E6C5DE","#78628D","#433665","#DEA7C6","#81638E","#554F7C","#B86891","#3D2D5D","#4F4775","#EFE7F7","#E9CEE4","#D27DA3","#2A1244","#655D89","#C36C94","#E1B1CE","#493F6D","#5C5783","#CC739A","#DB9CBD","#D892B4","#D587AB","#96658F","#E4BBD6","#362455","#4E4573","#7F638E","#D37FA5","#E1AECC","#382657","#EBD9ED","#DFA9C8","#A4668F","#8E648E","#99658F","#675F8A","#B56891","#BB6992","#E5BED8","#E2B4D0","#D07AA0","#71618C","#E6C2DC","#AA6690","#625C88","#EDE1F3","#E8CCE3","#AF6790","#CA7199","#C16B93","#453867","#57517E","#84638E","#4B416F","#E7C7DF","#423463","#514977","#3E2F5F","#544D7B","#93658F"]},bam:{discrete:["#65024B","#701057","#7B1B61","#88276E","#923078","#9B3881","#A4418A","#AC4993","#B5549C","#BC5CA3","#C266AB","#C970B2","#CF7AB9","#D587C1","#DA93C8","#DF9ECE","#E3AAD4","#E7B5DA","#EBC2E0","#EECCE5","#F1D5E9","#F3DDED","#F5E4F0","#F6EBF1","#F6EFF1","#F5F2F0","#F3F3ED","#EFF3E6","#EBF1DF","#E5EFD5","#DDEBCA","#D4E6BD","#C8DEAB","#BCD79B","#B0CE8C","#A3C67D","#97BC6F","#88B161","#7CA856","#72A04D","#679845","#5E903D","#538735","#4B7F2E","#427827","#397021","#306819","#245D10","#195507","#0D4C00"],categorical:["#65024B","#701057","#7B1B61","#88276E","#923078","#9B3881","#A4418A","#AC4993","#B5549C","#BC5CA3","#C266AB","#C970B2","#CF7AB9","#D587C1","#DA93C8","#DF9ECE","#E3AAD4","#E7B5DA","#EBC2E0","#EECCE5","#F1D5E9","#F3DDED","#F5E4F0","#F6EBF1","#F6EFF1","#F5F2F0","#F3F3ED","#EFF3E6","#EBF1DF","#E5EFD5","#DDEBCA","#D4E6BD","#C8DEAB","#BCD79B","#B0CE8C","#A3C67D","#97BC6F","#88B161","#7CA856","#72A04D","#679845","#5E903D","#538735","#4B7F2E","#427827","#397021","#306819","#245D10","#195507","#0D4C00"]},bamako:{discrete:["#003B47","#023C46","#053E45","#083F43","#0A4141","#0D4340","#0F443E","#12463C","#16483A","#194A38","#1C4D36","#204F34","#235132","#28542F","#2C572C","#305A2A","#355C27","#395F24","#3F6321","#44661E","#49691A","#4E6D17","#537014","#5A7410","#5F780D","#657C09","#6A7F05","#718302","#788501","#7F8700","#858800","#8C8A00","#948C01","#9B8E04","#A1920B","#A89713","#AE9C1B","#B7A225","#BEA82E","#C5AD37","#CBB341","#D2B84D","#D9BF5B","#DEC567","#E4CA73","#E9D07E","#EFD58A","#F5DB97","#FAE0A3","#FFE5AD"],categorical:["#003B47","#FFE5AD","#61790B","#B4A022","#245231","#406420","#898900","#DDC464","#0F443E","#EFD58A","#CAB23F","#194A38","#748401","#506E16","#9E9108","#315A29","#083F43","#A99815","#948C01","#6A7F05","#BFA930","#7F8700","#14473B","#1E4E35","#F7DD9C","#2A562D","#043D45","#597411","#E6CC77","#385F25","#48691B","#D4BB51","#0B4241","#8F8A00","#44661E","#1B4C37","#547113","#6F8203","#12463D","#998E03","#27542F","#4C6B18","#A4940E","#2E582B","#355C27","#B9A529","#215033","#EAD181","#FBE1A5","#C5AD37","#3C6122","#848800","#063E44","#E2C86E","#D9BF5B","#CFB648","#16493A","#798600","#023C46","#667C08","#5D770E","#0D433F","#AE9C1B","#F3D993","#094042","#A69611","#8C8A00","#053E45","#0C4240","#365E26","#6D8004","#9C8F05","#4A6A1A","#D6BD56","#B19E1F","#F9DFA0","#647B0A","#2F592A","#10453D","#818800","#C7AF3B","#46681C","#0E443F","#265330","#174A39","#335B28","#5B750F","#778501","#5F780D","#E8CF7C","#718302","#F1D78E","#978D02","#F5DB97","#204F34","#AC9A18","#29552E","#A1920B","#B7A225","#033C46"]},bamo:{discrete:["#4F3043","#56304B","#603354","#6D3961","#793F6B","#834675","#8D4E7E","#965587","#A05E91","#A86698","#B06EA0","#B877A7","#BF81AF","#C78DB8","#CD98BE","#D2A3C4","#D6ADC8","#D9B5CB","#DABECC","#DAC3CC","#D9C7CA","#D8CAC8","#D6CBC6","#D4CDC2","#D1CDBE","#CCCDB9","#C6CBB1","#BCC5A4","#B2BE97","#A7B58A","#9CAB7E","#92A174","#889669","#808D62","#79855C","#737D56","#6D7552","#666C4C","#616548","#5C5D45","#575642","#54503F","#50493D","#4D453C","#4B403B","#4A3C3A","#49393A","#49343B","#4A313E","#4E3042"],categorical:["#4F3043","#56304B","#603354","#6D3961","#793F6B","#834675","#8D4E7E","#965587","#A05E91","#A86698","#B06EA0","#B877A7","#BF81AF","#C78DB8","#CD98BE","#D2A3C4","#D6ADC8","#D9B5CB","#DABECC","#DAC3CC","#D9C7CA","#D8CAC8","#D6CBC6","#D4CDC2","#D1CDBE","#CCCDB9","#C6CBB1","#BCC5A4","#B2BE97","#A7B58A","#9CAB7E","#92A174","#889669","#808D62","#79855C","#737D56","#6D7552","#666C4C","#616548","#5C5D45","#575642","#54503F","#50493D","#4D453C","#4B403B","#4A3C3A","#49393A","#49343B","#4A313E","#4E3042"]},batlow:{discrete:["#011959","#06215B","#0A285C","#0D315D","#0E375E","#103D5F","#114260","#124761","#144D62","#165162","#195662","#1C5A62","#205E61","#26635F","#2C665D","#33695A","#3A6C57","#416F53","#4A724E","#52744A","#5A7745","#627941","#6A7B3D","#747E38","#7D8134","#868330","#8F862D","#9B892B","#A58B2C","#AF8D2E","#B98F32","#C29037","#CD923F","#D69446","#DE964F","#E69858","#ED9A62","#F39E70","#F8A17B","#FAA587","#FCA993","#FDAC9E","#FDB1AB","#FDB4B6","#FDB8C0","#FDBCCB","#FCBFD6","#FCC4E3","#FBC8EF","#FACCFA"],categorical:["#011959","#FACCFA","#828231","#226061","#F29D6D","#4D734D","#114360","#C09036","#FDB4B4","#DD954D","#356A59","#FCBFD6","#175262","#677B3E","#A18A2B","#0D315D","#FCA890","#FBC6E8","#2B655E","#B18D2F","#5A7745","#FDAEA2","#CF9340","#0F3B5F","#E9995C","#FDBAC4","#416F53","#91862D","#1B5962","#08255B","#747E38","#134B61","#F9A380","#8A842F","#0E365E","#124761","#154F62","#E39754","#7B8034","#1E5D62","#99882C","#195662","#0B2B5C","#FDB7BC","#C8913B","#FCC3DF","#EE9B64","#A98C2C","#FDB1AB","#FDBCCD","#FBC9F1","#051F5A","#F6A077","#607942","#FDAB9A","#477150","#3B6D56","#B98F32","#26635F","#537549","#D69446","#6D7C3B","#30685C","#103F60","#FBA689","#BD8F34","#CB923E","#EB9A60","#FDB8C0","#FBC7EC","#F09C69","#8E852E","#FDBBC9","#7F8133","#031C5A","#114160","#FDAC9E","#5D7844","#FCA995","#185462","#787F36","#A58B2C","#0A285C","#9D892B","#33695A","#0D335E","#637A40","#165062","#124561","#205E61","#144D62","#1D5B62","#0C2E5D","#D9954A","#3E6E55","#AD8C2D","#F49F72","#868330","#B58E30","#577647"]},batlowk:{discrete:["#04050A","#0A0D15","#0F141E","#121B29","#152233","#18293D","#1C3146","#21384F","#274156","#2C485B","#314E5E","#36535F","#3B575F","#405C5E","#445F5D","#49625B","#4D6558","#526756","#586B52","#5E6E4F","#63724B","#6A7548","#717845","#797D41","#81813E","#8A853B","#938839","#9F8D38","#A99139","#B3943B","#BE973E","#C89A43","#D39D4C","#DB9F54","#E2A15D","#E8A366","#EEA570","#F3A77C","#F6A986","#F8AC91","#FAAE9A","#FCB1A4","#FDB4B0","#FDB7B9","#FDBAC3","#FDBDCD","#FDC1D8","#FCC5E4","#FBC8EF","#FACCFA"],categorical:["#04050A","#FDC0D6","#787C41","#38555F","#E5A160","#536855","#AF933A","#FAAE9A","#1A2E43","#FDB6B7","#294458","#455F5C","#63724B","#CD9B47","#91883A","#F3A77E","#111A27","#F7AB8D","#FDBBC5","#FCB2AA","#D99E52","#A18E38","#4C6459","#21384F","#3F5B5E","#152335","#0C1019","#EEA570","#5B6D50","#6C7647","#314E5E","#85823D","#BE973E","#7E7F3F","#FBB0A2","#49625B","#576A53","#0F151F","#2D495B","#DFA059","#727944","#FDBDCD","#253E54","#EAA368","#C69942","#3C585F","#998B38","#677449","#F1A678","#F9AC92","#141F2F","#1D3248","#506657","#090C13","#A99139","#5F6F4E","#35525F","#435D5D","#FDB8BD","#F5A984","#B5953B","#FDB5B2","#17273B","#D39D4C","#8C853B","#9D8C38","#415C5E","#1F354B","#33505E","#FCB1A6","#101723","#3E595F","#121C2B","#757B43","#06080F","#FCB3AE","#3A565F","#274156","#61704D","#88843C","#2B475A","#FDBED1","#6A7548","#596C51","#192B3F","#6F7845","#233B51","#C99A45","#F0A574","#DC9F55","#2F4B5D","#47615C","#F6AA88","#FDB9C1","#C29840","#4A635A","#FAAD96","#81813E","#7B7E40","#E7A264"]},batloww:{discrete:["#011959","#06215B","#0A285C","#0D315D","#0E375E","#103D5F","#114260","#124761","#144C62","#165062","#185562","#1B5962","#1F5D62","#246261","#2A665F","#30695D","#366C5A","#3D7056","#467352","#4E764E","#56794A","#5E7C46","#667F42","#70823D","#798539","#828936","#8C8C33","#989032","#A29433","#AD9738","#B79B3F","#C19E48","#CBA154","#D3A45E","#D9A669","#DFA872","#E4AA7C","#E9AC88","#EEAF91","#F2B39C","#F6B9A8","#F9C0B5","#FCCAC4","#FED3CF","#FFDBDA","#FFE3E2","#FFEAEA","#FFF2F2","#FFF8F8","#FFFEFE"],categorical:["#FFFEFE","#011959","#7E8737","#205F61","#E7AB84","#497451","#114360","#FED1CD","#BF9D46","#637E44","#9E9233","#FFEAEA","#0D315D","#326B5C","#F5B7A6","#165162","#D7A564","#0F3B5F","#1A5862","#3D7056","#FFF5F5","#FFDFDD","#FAC3BA","#134A61","#08255B","#70823D","#EEB094","#56794A","#E0A874","#8E8D33","#28655F","#AF9839","#CBA154","#EBAD8B","#1D5C62","#051F5A","#124761","#FFE5E4","#B79B3F","#A79535","#386D59","#5C7B47","#185562","#DBA76D","#F8BDAF","#FFF0F0","#246261","#F2B39C","#868A35","#4F774D","#E4AA7C","#2D685E","#77853A","#FED8D6","#103F60","#FFFAF9","#968F32","#D1A35C","#144E62","#FCCAC4","#437254","#698040","#0E365E","#0B2B5C","#C59F4C","#30695D","#1C5A62","#A29433","#407155","#FFDBDA","#0C2E5D","#F7BAAA","#E5AB80","#175362","#828936","#1F5D62","#BB9C42","#E9AC88","#FFF7F7","#3A6E58","#9A9132","#8A8B34","#4C754F","#FFEDED","#D9A669","#144C62","#266460","#FDCDC9","#FCC6BF","#FFE2E1","#FFFCFC","#7B8639","#2B675E","#155062","#5F7C45","#F9C0B5","#356C5A","#F3B5A1","#EDAF8F","#FED5D2"]},berlin:{discrete:["#9EB0FF","#93AFFA","#87ADF4","#79ABED","#6CA9E6","#60A5DF","#54A0D5","#489ACA","#3E90BC","#3787AF","#327EA3","#2D7597","#296B8B","#25607C","#225771","#1E4E65","#1B465A","#183D4F","#153342","#122C38","#11242E","#101D25","#11181C","#121214","#160E0D","#1B0B07","#210B03","#270D01","#2D0E00","#340F00","#3B1100","#421301","#4B1602","#541905","#5D1E09","#68240F","#732B16","#803620","#8A3F2A","#944834","#9E513F","#A85A4A","#B46658","#BE6F63","#C8796F","#D2837A","#DD8D86","#EA9995","#F4A3A1","#FFADAD"],categorical:["#9EB0FF","#93AFFA","#87ADF4","#79ABED","#6CA9E6","#60A5DF","#54A0D5","#489ACA","#3E90BC","#3787AF","#327EA3","#2D7597","#296B8B","#25607C","#225771","#1E4E65","#1B465A","#183D4F","#153342","#122C38","#11242E","#101D25","#11181C","#121214","#160E0D","#1B0B07","#210B03","#270D01","#2D0E00","#340F00","#3B1100","#421301","#4B1602","#541905","#5D1E09","#68240F","#732B16","#803620","#8A3F2A","#944834","#9E513F","#A85A4A","#B46658","#BE6F63","#C8796F","#D2837A","#DD8D86","#EA9995","#F4A3A1","#FFADAD"]},bilbao:{discrete:["#4C0001","#54070B","#5B0E13","#64161A","#6B1D20","#712227","#77282D","#7D2E34","#84343B","#8A3A41","#8F4047","#94464B","#984C4F","#9B5253","#9D5754","#9E5C56","#A06057","#A16458","#A26959","#A36D5A","#A4715B","#A5745B","#A6785C","#A77C5D","#A8805E","#A9845F","#AA875F","#AC8C60","#AD9061","#AE9463","#AF9864","#B19D68","#B3A36E","#B6A975","#B8AD7E","#BBB287","#BDB590","#C0B99A","#C2BCA3","#C4BFAA","#C6C2B2","#C8C5B9","#CBCAC1","#CFCEC9","#D5D4D1","#DBDBDA","#E3E3E2","#EDEDED","#F6F6F6","#FFFFFF"],categorical:["#4C0001","#F8F8F8","#A9815E","#984D50","#BEB794","#AF9965","#CCCAC3","#78292F","#A26A59","#9F5D56","#64161A","#B6AA77","#C4C0AC","#A6765C","#8A3A41","#AC8C60","#DDDDDB","#A16358","#C7C5B7","#B3A16B","#A4705A","#6E2024","#EAEAE9","#92434A","#BAB185","#9C5554","#AD9262","#580B10","#813137","#C1BCA1","#AA865F","#D2D2CE","#A77C5D","#D7D7D4","#BCB48D","#B4A571","#C0B99A","#9E5955","#AB8960","#A6795C","#A36D5A","#8E3F46","#85353C","#A16758","#732529","#CAC7BD","#F1F1F0","#520509","#AC8F61","#5E1115","#C6C2B2","#E3E3E2","#691B1F","#B8AD7E","#95484D","#AE9663","#B19D68","#A5735B","#A06057","#9A5152","#A87E5D","#7D2E34","#A9835E","#C3BEA6","#CFCEC9","#A46E5A","#F4F4F4","#DADAD8","#B29F69","#EDEDED","#BBB289","#9D5754","#AF9764","#904148","#994F51","#B3A36E","#A87F5E","#A26859","#AC8D61","#BDB590","#AA875F","#A77A5D","#AB8A60","#A4715B","#611418","#BFB897","#E6E6E6","#9B5353","#D5D4D1","#974A4F","#C8C6BA","#A16558","#9F5E56","#76272C","#67191D","#8C3C43","#B9AF82","#C3BFA9","#B5A874","#4F0205"]},broc:{discrete:["#2C1A4C","#2B2154","#2B295B","#2A3164","#29396C","#284174","#29497C","#2A5183","#305C8C","#376593","#416D9A","#4B76A0","#567FA6","#6489AD","#6F92B3","#7B9BBA","#86A3C0","#92ACC6","#A0B7CD","#ACC0D3","#B8C9DA","#C4D2E0","#D0DBE6","#DEE5EC","#E7ECED","#EDEFE9","#EDEEE1","#E9E9D4","#E4E4C8","#DEDEBD","#D8D8B1","#D2D2A5","#C9C996","#C1C18A","#B8B87E","#AEAE73","#A3A369","#97975E","#8D8D56","#83834D","#797945","#70703D","#646434","#5B5B2C","#525224","#49491D","#404016","#36360F","#2E2E08","#262600"],categorical:["#2C1A4C","#2B2154","#2B295B","#2A3164","#29396C","#284174","#29497C","#2A5183","#305C8C","#376593","#416D9A","#4B76A0","#567FA6","#6489AD","#6F92B3","#7B9BBA","#86A3C0","#92ACC6","#A0B7CD","#ACC0D3","#B8C9DA","#C4D2E0","#D0DBE6","#DEE5EC","#E7ECED","#EDEFE9","#EDEEE1","#E9E9D4","#E4E4C8","#DEDEBD","#D8D8B1","#D2D2A5","#C9C996","#C1C18A","#B8B87E","#AEAE73","#A3A369","#97975E","#8D8D56","#83834D","#797945","#70703D","#646434","#5B5B2C","#525224","#49491D","#404016","#36360F","#2E2E08","#262600"]},broco:{discrete:["#372F38","#36303D","#363144","#36354E","#363957","#373F60","#39456A","#3C4D75","#415780","#47608A","#4D6992","#55729A","#5D7BA2","#6886AA","#728FB1","#7C97B7","#86A0BD","#91A8C2","#9DB2C8","#A7BACC","#B1C1CE","#BAC8D0","#C2CDD0","#CAD1CD","#CED3C8","#CFD3C2","#CFD1B9","#CBCCAD","#C6C6A2","#BFBF96","#B8B78B","#AFAF7F","#A4A472","#9B9A68","#91915E","#888755","#7E7E4C","#737243","#6B693D","#626137","#5B5932","#54512E","#4C482B","#474229","#423D29","#3F3829","#3C352B","#39322E","#383032","#372F37"],categorical:["#372F38","#36303D","#363144","#36354E","#363957","#373F60","#39456A","#3C4D75","#415780","#47608A","#4D6992","#55729A","#5D7BA2","#6886AA","#728FB1","#7C97B7","#86A0BD","#91A8C2","#9DB2C8","#A7BACC","#B1C1CE","#BAC8D0","#C2CDD0","#CAD1CD","#CED3C8","#CFD3C2","#CFD1B9","#CBCCAD","#C6C6A2","#BFBF96","#B8B78B","#AFAF7F","#A4A472","#9B9A68","#91915E","#888755","#7E7E4C","#737243","#6B693D","#626137","#5B5932","#54512E","#4C482B","#474229","#423D29","#3F3829","#3C352B","#39322E","#383032","#372F37"]},buda:{discrete:["#B301B3","#B30BAE","#B314AA","#B31CA6","#B323A2","#B3289F","#B32E9D","#B4339A","#B53998","#B63E96","#B84394","#B94892","#BB4C91","#BD528F","#BE568D","#C05B8C","#C15F8A","#C36389","#C46987","#C66D86","#C77184","#C97583","#CA7982","#CB7E80","#CD837F","#CE877E","#CF8B7D","#D0917B","#D1957A","#D29979","#D49E78","#D5A277","#D6A776","#D7AC75","#D8B073","#D9B572","#DAB971","#DCBF70","#DDC36F","#DEC86E","#DFCC6C","#E0D16B","#E2D76A","#E4DC69","#E6E168","#E9E667","#EDEC67","#F3F366","#F9F966","#FFFF66"],categorical:["#B301B3","#FFFF66","#CD857E","#BC4E90","#DBBD70","#C56A87","#B32F9C","#E3DB69","#D4A177","#EDEC67","#D1937B","#B73F95","#C05C8B","#DFCB6D","#C97882","#B31CA6","#D8AE74","#E7E368","#DAB572","#B311AC","#D39A79","#C36389","#C77184","#B53798","#E1D36B","#BE558E","#B94793","#CB7E80","#CF8C7C","#DDC46E","#B326A0","#F6F566","#D6A875","#DAB971","#C66E86","#E2D76A","#B32B9E","#B317A9","#B4339A","#BA4B91","#C46788","#C2608A","#B309AF","#D49E78","#B63B97","#BD528F","#DCC06F","#EAE767","#FAFA66","#D2977A","#F1F066","#D0907C","#CE897D","#C87483","#CC827F","#D5A576","#B321A3","#E5DF68","#B84394","#D9B273","#E0CF6C","#CA7B81","#DEC86E","#BF598C","#D7AB75","#E6E168","#D1957A","#CC8080","#D39C78","#E0CD6C","#CD847F","#B63D96","#C87384","#C66C86","#F8F866","#D49F78","#D9B473","#DAB772","#BF578D","#CB7D81","#CF8A7D","#B32D9D","#D08E7C","#DBBB71","#C2628A","#E2D56A","#DCBF70","#BC508F","#C46987","#C05B8C","#DFCA6D","#DDC26F","#C15E8B","#D7AD74","#F3F366","#DEC66E","#D5A377","#B31AA7","#BA4992","#CE877E"]},bukavu:{discrete:["#1A3333","#1B373D","#1C3C47","#1E4255","#1F4762","#214E71","#235582","#255E92","#2969A1","#2C73AD","#2F7CB8","#3485C2","#3B8EC7","#4799C8","#50A1C9","#59AAC9","#62B2CA","#6BBACB","#76C3CB","#81CCCD","#92D5D1","#A4DED5","#B6E7DA","#CCF2DF","#DDFBE3","#034224","#08491F","#115119","#1C5914","#2B6212","#3D6915","#4E6E1B","#617224","#6F742B","#7B7631","#867836","#917B3C","#9E7E45","#AA844F","#B48D5D","#BC976C","#C3A27C","#CAB08F","#CFBBA0","#D5C6B0","#DACFC1","#DFD7D0","#E4DFE0","#E9E6ED","#EDEDFC"],categorical:["#1A3333","#1B373D","#1C3C47","#1E4255","#1F4762","#214E71","#235582","#255E92","#2969A1","#2C73AD","#2F7CB8","#3485C2","#3B8EC7","#4799C8","#50A1C9","#59AAC9","#62B2CA","#6BBACB","#76C3CB","#81CCCD","#92D5D1","#A4DED5","#B6E7DA","#CCF2DF","#DDFBE3","#034224","#08491F","#115119","#1C5914","#2B6212","#3D6915","#4E6E1B","#617224","#6F742B","#7B7631","#867836","#917B3C","#9E7E45","#AA844F","#B48D5D","#BC976C","#C3A27C","#CAB08F","#CFBBA0","#D5C6B0","#DACFC1","#DFD7D0","#E4DFE0","#E9E6ED","#EDEDFC"]},cork:{discrete:["#2C194C","#2B2254","#2B295C","#2A3265","#293A6D","#284275","#284A7C","#2A5284","#2F5C8D","#366493","#3F6C99","#49749F","#527CA4","#5E85AA","#688DB0","#7395B6","#7E9DBB","#8AA6C2","#99B1C9","#A5BBD0","#B2C5D7","#C0CFDE","#CDD9E5","#DCE5EB","#E5ECED","#E6EEEA","#E0EAE1","#D4E2D4","#C8DBC8","#BCD3BC","#B0CAB0","#A4C2A3","#95B895","#89B088","#7DA87D","#71A071","#669966","#599059","#4F894E","#458244","#3B7B3A","#317430","#266A25","#1F611D","#1A5816","#174E12","#14450E","#123A0A","#103107","#0F2903"],categorical:["#2C194C","#2B2254","#2B295C","#2A3265","#293A6D","#284275","#284A7C","#2A5284","#2F5C8D","#366493","#3F6C99","#49749F","#527CA4","#5E85AA","#688DB0","#7395B6","#7E9DBB","#8AA6C2","#99B1C9","#A5BBD0","#B2C5D7","#C0CFDE","#CDD9E5","#DCE5EB","#E5ECED","#E6EEEA","#E0EAE1","#D4E2D4","#C8DBC8","#BCD3BC","#B0CAB0","#A4C2A3","#95B895","#89B088","#7DA87D","#71A071","#669966","#599059","#4F894E","#458244","#3B7B3A","#317430","#266A25","#1F611D","#1A5816","#174E12","#14450E","#123A0A","#103107","#0F2903"]},corko:{discrete:["#3F3E3A","#3E3D3F","#3E3D44","#3E3D4B","#3E3F52","#3E425A","#3F4762","#414C6C","#445578","#485D82","#4E658B","#546E94","#5C779C","#6581A5","#6E8AAC","#7792B2","#809BB8","#89A3BD","#94ACC2","#9CB3C5","#A3BAC7","#A9C0C8","#AEC5C7","#B0C9C4","#B0CABF","#ADCAB9","#A9C9B2","#A2C5A8","#9BC19F","#93BC95","#8BB68B","#82B081","#78A775","#709F6A","#689760","#608E56","#5A864C","#537B42","#4F733B","#4B6B35","#486431","#465D2E","#44562C","#43512C","#424D2D","#42492E","#414630","#404333","#404036","#3F3E3A"],categorical:["#3F3E3A","#3E3D3F","#3E3D44","#3E3D4B","#3E3F52","#3E425A","#3F4762","#414C6C","#445578","#485D82","#4E658B","#546E94","#5C779C","#6581A5","#6E8AAC","#7792B2","#809BB8","#89A3BD","#94ACC2","#9CB3C5","#A3BAC7","#A9C0C8","#AEC5C7","#B0C9C4","#B0CABF","#ADCAB9","#A9C9B2","#A2C5A8","#9BC19F","#93BC95","#8BB68B","#82B081","#78A775","#709F6A","#689760","#608E56","#5A864C","#537B42","#4F733B","#4B6B35","#486431","#465D2E","#44562C","#43512C","#424D2D","#42492E","#414630","#404333","#404036","#3F3E3A"]},davos:{discrete:["#00054A","#010E51","#041459","#081C61","#0C2368","#102A6F","#133075","#17377C","#1C3F83","#204588","#244C8D","#295291","#2D5895","#335F98","#38649A","#3C699C","#416E9D","#46729D","#4C779D","#517B9C","#567F9B","#5A829A","#5F8598","#658996","#698C94","#6E8F92","#739290","#78968D","#7D998C","#829D8A","#88A089","#8DA488","#95AA87","#9BAF88","#A3B489","#ABBB8C","#B4C190","#BFCA96","#C9D29E","#D2D9A6","#DBE0AF","#E3E7B8","#EBEDC4","#F0F1CD","#F4F4D6","#F7F7DE","#FAF9E6","#FCFCF0","#FDFDF7","#FEFEFE"],categorical:["#00054A","#FDFDF4","#688B94","#2D5895","#B2C08F","#E8EBC0","#87A089","#133075","#4B769D","#5A829A","#204588","#76958E","#D0D8A4","#99AD88","#F6F6DB","#3C699C","#081C61","#031256","#1A3B7F","#537C9C","#A4B68A","#C1CC98","#7E9A8B","#FAFAE8","#356199","#0E266B","#DEE3B3","#274F90","#6F9091","#618697","#8FA588","#F0F1CD","#43709D","#1D4084","#47739D","#F3F4D4","#658996","#567F9B","#17367A","#FCFBEE","#4F799D","#C9D29E","#93A987","#39659B","#D8DEAB","#ABBB8C","#739290","#B9C693","#F8F8E1","#234A8C","#112B70","#7A978D","#9EB188","#315C97","#829D8A","#05175B","#010C50","#3F6C9D","#0B2065","#5D8499","#2A5392","#8BA388","#6B8D93","#EDEFC7","#E3E7B8","#22488A","#638897","#122E73","#00094D","#AEBD8D","#4D789D","#CDD5A1","#5F8598","#58819A","#071A5E","#0C2368","#18387D","#91A787","#37639A","#EBEDC4","#F2F2D0","#FBFBEB","#74938F","#2F5A96","#335F98","#809B8B","#BDC995","#49759D","#719191","#9BAF88","#F7F7DE","#1B3E82","#A8B88B","#849E89","#557E9B","#E6E9BC","#45719D","#1E4386","#96AB87","#89A188"]},devon:{discrete:["#2C1A4C","#2B1E51","#2B2356","#2A295B","#2A2D60","#293265","#29376A","#283B6E","#274174","#27467A","#274C7F","#275186","#28568C","#2A5C95","#2D609C","#3064A3","#3468AA","#396BB1","#3F70B9","#4774C0","#4F79C6","#597DCC","#6382D1","#6F88D7","#798CDB","#8290DF","#8C95E2","#969AE6","#9E9EE9","#A6A3EB","#ACA7ED","#B1ACEF","#B7B1F0","#BBB5F1","#BFB9F2","#C3BEF3","#C7C2F4","#CCC7F4","#D0CCF5","#D4D0F6","#D8D4F7","#DCD9F8","#E1DEF9","#E5E3FA","#E9E7FB","#EDECFB","#F2F0FC","#F7F6FD","#FBFAFE","#FFFFFF"],categorical:["#2C1A4C","#F8F8FE","#758AD9","#C6C0F3","#28568C","#29376A","#AAA5ED","#DEDCF8","#3D6EB7","#EBE9FB","#9197E4","#3063A2","#274579","#577CCB","#D2CEF6","#2A285A","#BAB3F1","#B2ADEF","#F2F0FC","#274E82","#2A2F62","#CCC7F4","#9E9EE9","#4875C1","#C0BAF2","#2B5D98","#3669AD","#2B2154","#E4E2FA","#8290DF","#D8D4F7","#6784D3","#283E71","#C9C4F4","#BDB7F1","#DBD8F8","#283A6D","#4F79C6","#A4A2EB","#EEEDFC","#CFCBF5","#E8E5FA","#5F80CF","#4272BC","#B6B0F0","#2B1D50","#AEA9EE","#275287","#2A2B5E","#989BE7","#293366","#27497D","#8A94E1","#295A92","#3266A7","#F5F4FD","#7B8DDC","#274174","#2D609C","#2B2558","#6F88D7","#E1DEF9","#3A6CB2","#D5D1F6","#C3BEF3","#2E629F","#3165A4","#8D95E3","#3468AA","#DAD6F7","#D1CDF5","#9B9CE8","#275084","#B8B2F0","#27477B","#6382D1","#4573BF","#A2A0EA","#F7F6FD","#C7C2F4","#F3F2FD","#274376","#8692E0","#2B1F52","#CAC6F4","#ACA7ED","#E3E0F9","#F0EEFC","#E6E4FA","#386AB0","#2C1C4E","#6B86D5","#28396B","#283C6F","#2A5C95","#2A2D60","#BEB9F2","#C2BCF2","#7E8FDD","#3F70B9"]},fes:{discrete:["#0D0D0D","#181818","#212121","#2B2B2B","#343434","#3C3C3C","#454545","#4D4D4D","#565656","#5E5E5E","#656565","#6D6D6D","#747474","#7C7C7C","#848484","#8B8B8B","#939393","#9C9C9C","#A7A7A7","#B1B1B1","#BBBBBB","#C5C5C5","#D1D1D1","#DFDFDF","#ECECEC","#094225","#184822","#2B4F20","#3A5420","#485822","#555B24","#615E26","#6F6229","#7A652B","#86682E","#926B30","#9F7035","#AD7940","#B6834D","#BD8E5C","#C2996C","#C6A47C","#CCB18F","#D1BCA0","#D5C6B0","#DACFC1","#DFD7CF","#E4DFE0","#E8E6ED","#EDEDFC"],categorical:["#0D0D0D","#181818","#212121","#2B2B2B","#343434","#3C3C3C","#454545","#4D4D4D","#565656","#5E5E5E","#656565","#6D6D6D","#747474","#7C7C7C","#848484","#8B8B8B","#939393","#9C9C9C","#A7A7A7","#B1B1B1","#BBBBBB","#C5C5C5","#D1D1D1","#DFDFDF","#ECECEC","#094225","#184822","#2B4F20","#3A5420","#485822","#555B24","#615E26","#6F6229","#7A652B","#86682E","#926B30","#9F7035","#AD7940","#B6834D","#BD8E5C","#C2996C","#C6A47C","#CCB18F","#D1BCA0","#D5C6B0","#DACFC1","#DFD7CF","#E4DFE0","#E8E6ED","#EDEDFC"]},glasgow:{discrete:["#361338","#3B1434","#401530","#45172C","#491828","#4D1924","#511B21","#561C1D","#5B1E18","#602014","#662210","#6B260B","#6F2B07","#723203","#743802","#743E01","#754300","#744900","#744F01","#745402","#735905","#725F0B","#716413","#70691E","#6E6E27","#6C7231","#6B763A","#697B46","#677F4F","#658359","#648763","#628B6C","#618F78","#609381","#60978A","#619B94","#659F9D","#6CA5A8","#74A9B0","#7DADB8","#86B1BF","#8EB4C6","#99B9CE","#A1BCD5","#AABFDB","#B2C3E1","#BBC6E7","#C6CBF0","#D0CFF7","#DBD3FF"],categorical:["#361338","#DBD3FF","#6D702B","#69A3A5","#702D06","#A0BBD3","#638968","#521B20","#745101","#84B0BE","#754001","#5F9587","#BBC6E7","#612013","#45172C","#687D4A","#726210","#618F78","#4B1926","#3E1532","#629C96","#658359","#CACCF3","#76AAB2","#6B763A","#744900","#6A250C","#ADC1DD","#735905","#92B6C9","#591D1A","#743702","#70681C","#4F1A23","#754400","#6D2909","#60998E","#41162F","#744D00","#745503","#B4C3E2","#697A42","#7DADB8","#628C70","#8BB3C3","#561C1D","#D2D0F9","#99B9CE","#3A1435","#6F6C23","#743B01","#60927F","#662210","#648661","#659F9D","#678051","#725E0A","#481829","#6FA6AB","#6C7332","#5D1E17","#A6BED8","#C2C9ED","#723203","#716617","#68240E","#6F6A20","#C6CBF0","#79ABB5","#72600D","#754200","#43162D","#67A1A1","#6B7536","#5F1F15","#735B07","#571C1B","#72A8AF","#744F01","#BEC8EA","#381337","#8EB4C6","#628B6C","#677E4D","#60917B","#639E9A","#4A1827","#A3BDD6","#3C1433","#743901","#632112","#B7C5E5","#4D1924","#65845D","#618E74","#609483","#9CBAD1","#46172A","#87B1C1","#6D712F"]},grayc:{discrete:["#000000","#090909","#111111","#171717","#1C1C1C","#212121","#252525","#2A2A2A","#303030","#343434","#393939","#3D3D3D","#424242","#474747","#4B4B4B","#505050","#545454","#585858","#5D5D5D","#616161","#656565","#696969","#6D6D6D","#717171","#757575","#797979","#7D7D7D","#818181","#858585","#898989","#8E8E8E","#929292","#979797","#9C9C9C","#A1A1A1","#A6A6A6","#ABABAB","#B1B1B1","#B6B6B6","#BCBCBC","#C1C1C1","#C7C7C7","#CECECE","#D5D5D5","#DBDBDB","#E2E2E2","#E8E8E8","#F1F1F1","#F8F8F8","#FFFFFF"],categorical:["#070707","#F9F9F9","#777777","#454545","#AEAEAE","#909090","#292929","#5F5F5F","#D1D1D1","#9E9E9E","#525252","#E4E4E4","#6C6C6C","#BFBFBF","#1A1A1A","#373737","#848484","#595959","#222222","#B6B6B6","#A6A6A6","#3E3E3E","#7D7D7D","#666666","#969696","#8A8A8A","#4B4B4B","#DADADA","#C8C8C8","#313131","#717171","#131313","#EFEFEF","#C4C4C4","#A2A2A2","#424242","#878787","#252525","#2D2D2D","#4F4F4F","#3B3B3B","#808080","#1E1E1E","#BBBBBB","#AAAAAA","#EAEAEA","#696969","#7A7A7A","#DFDFDF","#636363","#565656","#B2B2B2","#0E0E0E","#9A9A9A","#5C5C5C","#747474","#F3F3F3","#333333","#6E6E6E","#D5D5D5","#8D8D8D","#939393","#494949","#CCCCCC","#171717","#BDBDBD","#575757","#C1C1C1","#404040","#828282","#E2E2E2","#151515","#1C1C1C","#0B0B0B","#9C9C9C","#858585","#2F2F2F","#B4B4B4","#888888","#242424","#272727","#3C3C3C","#B0B0B0","#353535","#545454","#5B5B5B","#393939","#D7D7D7","#A4A4A4","#A8A8A8","#959595","#767676","#646464","#989898","#444444","#474747","#111111","#F6F6F6","#ECECEC","#4D4D4D"]},hawaii:{discrete:["#8C0273","#8E0D6E","#8F1569","#901D63","#91235F","#91285A","#922D56","#933252","#94384D","#943D4A","#954246","#964742","#964C3F","#97523B","#985638","#985C34","#996131","#9A662E","#9B6C2A","#9B7226","#9C7823","#9C7E20","#9D841E","#9D8C1C","#9C921C","#9B991D","#9AA021","#97A828","#94AE30","#91B439","#8CB942","#88BE4C","#82C359","#7EC663","#79CA6E","#74CE79","#70D183","#6AD591","#66D89C","#62DCA7","#60DFB2","#5FE2BD","#61E6CA","#67E9D5","#6FEBDE","#7AEEE7","#87EFEE","#98F1F5","#A6F1F9","#B3F2FD"],categorical:["#8C0273","#B3F2FD","#9C951C","#6CD48C","#964D3E","#8ABC48","#9B6D29","#66E8D3","#922E55","#9C801F","#87EFEE","#995D34","#7BC969","#901D63","#60DEB0","#96AA2B","#943D4A","#975439","#82C359","#5FE4C2","#9AA021","#73CE7B","#65D99E","#954544","#9D8A1C","#8E126B","#91B439","#9DF1F7","#73ECE2","#91265C","#9C7724","#9A652E","#93364F","#922A59","#996131","#9D851D","#9D901C","#9A692C","#68D695","#902160","#9B9A1E","#985836","#9B7226","#933252","#77CC72","#9C7B21","#954147","#8D0A6F","#93AF32","#62DCA7","#92F0F3","#8F1867","#7DEEE8","#97513C","#6CEBDB","#61E6CA","#A8F2FA","#964941","#7FC661","#86BF50","#98A526","#70D183","#5FE1B9","#8DB840","#94394D","#9C7923","#8F1569","#985A35","#60E0B4","#9A6B2A","#91245E","#97A828","#9B7425","#6AD591","#95AD2E","#5FE2BD","#60E5C6","#953F48","#933054","#63E7CF","#84C154","#8D0671","#82EFEB","#9B9D1F","#99A323","#88BE4C","#6ED288","#6FEBDE","#9A672D","#91285A","#75CD76","#995F32","#68E9D7","#9B7028","#61DDAB","#943B4B","#933450","#8DF0F0","#8F1A65","#81C45D"]},imola:{discrete:["#1A33B3","#1C37B1","#1E3AAF","#203EAD","#2242AB","#2345AA","#2548A8","#274CA6","#2950A4","#2A53A3","#2C56A1","#2E599F","#2F5D9E","#32609B","#346499","#366797","#386A95","#3B6C92","#3E708F","#41738C","#44768A","#467987","#4A7C85","#4E8082","#518480","#56887E","#5A8C7D","#5F927B","#64967A","#689B79","#6DA078","#72A576","#78AB75","#7DB074","#82B572","#87BA71","#8CBF70","#93C66E","#98CB6D","#9ED06C","#A4D66A","#ACDB69","#B5E268","#BFE767","#C8EB67","#D3F066","#DDF466","#EAF866","#F5FB66","#FFFF66"],categorical:["#1A33B3","#FFFF66","#54867F","#305E9D","#91C36F","#3F718E","#2549A8","#BDE667","#70A377","#2B53A2","#376896","#80B373","#A3D56B","#DDF466","#203EAD","#487B86","#62947A","#2D59A0","#88BB71","#5B8D7D","#CDED66","#4E8082","#EEF966","#33639A","#284EA5","#44768A","#2344AA","#AFDE69","#3B6C92","#78AB75","#1D39B0","#99CC6D","#699C79","#3D6F90","#2C56A1","#2F5B9E","#5E917B","#4B7D84","#9ED06C","#1F3CAE","#C4EA67","#84B772","#274CA6","#D5F066","#2951A4","#74A776","#578A7E","#2446A9","#1C36B1","#A9D96A","#95C86E","#467888","#2141AC","#7CAF74","#356598","#B5E268","#66987A","#396A94","#F7FC66","#8CBF70","#E6F666","#32609B","#518380","#41738C","#6DA078","#6B9E78","#B9E468","#7AAD74","#528580","#32629B","#86B971","#3C6E91","#5C8F7C","#C8EB67","#ACDB69","#D1EF66","#E2F566","#97CA6D","#1B35B2","#1C37B0","#2345AA","#2F5D9E","#1F3DAE","#457789","#3A6B93","#598B7D","#D9F266","#346499","#386995","#A6D76A","#366797","#274DA6","#56887E","#A1D36B","#42748B","#7EB173","#72A576","#477987","#4C7F83","#F2FB66"]},lajolla:{discrete:["#191900","#1E1B02","#221C05","#271E08","#2C200B","#31220E","#362411","#3C2614","#442817","#4B2B1B","#532D1F","#5B3023","#633328","#6E362D","#783932","#813C37","#8B3F3B","#96423F","#A24543","#AD4746","#B74A48","#C04D49","#C9514B","#D1564C","#D75C4D","#DB634E","#DD694F","#E0714F","#E17750","#E37D50","#E48351","#E58951","#E79052","#E89652","#E99C52","#EAA253","#EBA853","#EDAF54","#EEB555","#F0BC57","#F1C25A","#F3CA5F","#F5D369","#F7DA74","#F9E282","#FBE890","#FCEF9F","#FDF5B0","#FEFABE","#FFFECB"],categorical:["#191900","#FFFECB","#D85F4D","#ECAC54","#653329","#F7D971","#A44544","#E58751","#362411","#E1744F","#C44E4A","#E99A52","#4B2B1B","#833D38","#F1C159","#FCEF9F","#271E08","#FEF7B6","#402716","#D0554C","#FAE587","#E79052","#EFB655","#B54947","#201C04","#E37D50","#743830","#DD694F","#EBA353","#94413E","#572F21","#F4CD61","#2E210C","#FDF3AB","#32220F","#241D06","#F5D369","#7B3B34","#1D1B02","#F0BC57","#5E3125","#F8DF7C","#512D1E","#CA514B","#E48251","#E68C51","#EA9E53","#E89552","#BC4C49","#6C362C","#EDB154","#9C4341","#E27950","#FBEA93","#3B2513","#FEFBC0","#452918","#EBA853","#F2C75C","#8B3F3B","#DB644E","#AD4746","#DF6E4F","#D55A4D","#2B200A","#783932","#E79352","#D75C4D","#FEF9BB","#EDAF54","#E0714F","#7F3C36","#613227","#F7DC77","#C7504B","#F1C45A","#30210D","#F4D065","#1E1B03","#FAE78D","#F9E282","#DA614E","#392412","#4E2C1D","#E99C52","#EFB956","#221C05","#EBA553","#FDF5B0","#984240","#E38050","#8F403D","#542E20","#ECAA54","#E68E51","#70372E","#DE6C4F","#B94A48","#291F09","#1B1A01"]},lapaz:{discrete:["#1A0C64","#1C1368","#1E196D","#202071","#212675","#222B79","#23317D","#253681","#263C85","#274189","#29478C","#2A4C8F","#2C5192","#2E5795","#305C98","#32609A","#35659C","#386A9E","#3C70A0","#3F74A1","#4379A2","#487DA3","#4D81A3","#5386A4","#588AA3","#5E8EA3","#6591A2","#6C95A1","#7398A0","#7A9A9E","#809D9D","#879F9B","#90A199","#97A397","#9EA596","#A5A795","#ADAA95","#B7AD96","#BFB199","#C8B69C","#D2BBA2","#DAC1A8","#E4C9B2","#EBCFBB","#F1D5C4","#F5DBCD","#F9E1D6","#FBE8E1","#FDEDEA","#FEF2F3"],categorical:["#1A0C64","#FEF2F3","#5B8BA3","#B3AC96","#2C5292","#3C70A0","#EACEB9","#859E9C","#24327E","#6F96A1","#33619A","#202071","#D0BAA0","#9BA496","#F9E1D6","#4A7FA3","#284289","#90A199","#FCEAE5","#1D176B","#37699D","#F3D8C8","#A7A895","#5285A4","#7A9A9E","#2F5A97","#4278A2","#263A84","#6591A2","#C1B299","#DEC3AB","#222978","#2A4B8E","#5688A4","#D7BEA6","#FDEEEC","#608EA3","#EFD3C0","#A1A696","#6A94A1","#FBE6DD","#ADAA95","#F6DDCF","#4E82A3","#2E5695","#3A6D9F","#C8B69C","#1C1268","#232D7B","#3F74A1","#467BA3","#1E1C6E","#7F9C9D","#BAAF97","#253681","#315E99","#29478C","#E4C9B2","#74989F","#273E87","#212575","#95A398","#8AA09A","#35659C","#2B4F91","#23307C","#E7CBB5","#F1D5C4","#2B4D90","#202373","#588AA3","#D3BCA3","#5487A4","#447AA2","#6792A2","#24347F","#253882","#ECD0BD","#879F9B","#305C98","#E1C6AF","#1E196D","#5D8DA3","#AAA995","#386B9E","#487DA3","#77999F","#F7DFD3","#BEB098","#1F1E70","#325F99","#4176A2","#F4DACB","#4C80A3","#2D5494","#8DA099","#6C95A1","#FAE3DA","#FDECE8","#B7AD96"]},lipari:{discrete:["#031326","#05192F","#062038","#092844","#0C2E4D","#103557","#163C5F","#1E4368","#294B70","#345075","#3E5578","#47587A","#4F5B7B","#575C7A","#5D5D79","#635E78","#695E76","#6E5F75","#765F73","#7C6071","#826070","#89606E","#90616C","#98616A","#A06268","#A86266","#B06364","#BA6462","#C36660","#CB685F","#D46B5E","#DB705F","#E27760","#E77E63","#E98567","#EA8D6B","#EA946F","#E89C75","#E7A279","#E6A87E","#E5AF84","#E5B58A","#E6BD92","#E7C49A","#EACCA3","#EDD3AD","#F0DBB7","#F5E5C4","#F9EDCF","#FDF5DA"],categorical:["#031326","#FDF5DA","#A56267","#525B7A","#E99B74","#785F72","#DA6F5E","#183E61","#E7C398","#8D616D","#365176","#092844","#655E77","#E98466","#BF6561","#F0DBB7","#E5AD82","#B26364","#EBCFA7","#5C5D79","#061D35","#25486D","#0E3353","#EA906D","#98616A","#E37861","#E5B88C","#826070","#CD685F","#6E5F75","#45587A","#F6E8C9","#E7A37A","#615E78","#E77E63","#D46B5E","#9F6268","#E99570","#93616B","#87606E","#7D6071","#F3E1C0","#575C7A","#0B2D4B","#2D4D72","#E6A87E","#E9C99F","#FAEED1","#1E4368","#EA8A69","#B86462","#6A5E76","#AB6365","#735F74","#DF735F","#E5B287","#13385A","#05182D","#E6BD92","#3E5578","#EDD5AF","#07223C","#C6665F","#4C5A7A","#E8A077","#B56363","#FBF1D6","#A26267","#E6C095","#0A2A48","#F8EBCD","#EACCA3","#AE6364","#7A5F72","#635E78","#E98768","#041629","#715F74","#ECD2AB","#A86266","#8A606E","#96616B","#545C7A","#EFD8B3","#F5E5C4","#9B6169","#F2DEBB","#765F73","#6C5F75","#294B70","#22466B","#E89D76","#E88165","#BC6461","#E6A67C","#85606F","#C36660","#1B4064","#D06A5E","#103557"]},lisbon:{discrete:["#E6E5FF","#D8DCF7","#CBD2EF","#BBC6E5","#ADBCDE","#A0B3D6","#93A9CE","#86A0C6","#7794BD","#6A8BB5","#5E81AC","#5177A4","#456E9B","#38628F","#2F5984","#274F78","#20476D","#1B3F61","#173653","#142E48","#12283E","#112233","#111D2A","#121921","#15181B","#181A18","#1E1D17","#252419","#2D2B1C","#353220","#3E3A25","#46422A","#514C31","#5A5536","#645E3C","#6D6741","#777047","#837B4F","#8D8556","#988F5E","#A29A67","#ADA470","#B9B17D","#C3BC89","#CDC795","#D7D2A2","#E0DCAF","#ECE9BE","#F5F4CB","#FFFFD9"],categorical:["#E6E5FF","#D8DCF7","#CBD2EF","#BBC6E5","#ADBCDE","#A0B3D6","#93A9CE","#86A0C6","#7794BD","#6A8BB5","#5E81AC","#5177A4","#456E9B","#38628F","#2F5984","#274F78","#20476D","#1B3F61","#173653","#142E48","#12283E","#112233","#111D2A","#121921","#15181B","#181A18","#1E1D17","#252419","#2D2B1C","#353220","#3E3A25","#46422A","#514C31","#5A5536","#645E3C","#6D6741","#777047","#837B4F","#8D8556","#988F5E","#A29A67","#ADA470","#B9B17D","#C3BC89","#CDC795","#D7D2A2","#E0DCAF","#ECE9BE","#F5F4CB","#FFFFD9"]},managua:{discrete:["#FFCF67","#F9C564","#F3BB60","#EBB05D","#E5A659","#DF9D56","#D99554","#D38C51","#CC824D","#C67B4B","#C07348","#B96C46","#B36444","#AB5C41","#A4553F","#9D4F3D","#95483C","#8E423A","#843B39","#7C3639","#743139","#6D2D3A","#662A3D","#5F2941","#5A2846","#552A4C","#522C53","#4F315D","#4D3566","#4C3B6F","#4C4179","#4C4883","#4D518E","#4F5897","#51609F","#5367A7","#556FAE","#5878B6","#5B80BC","#5E88C2","#6190C8","#6498CE","#68A3D5","#6BACDB","#6FB5E1","#72BEE6","#76C7EC","#7AD3F3","#7DDDF9","#81E7FF"],categorical:["#FFCF67","#F9C564","#F3BB60","#EBB05D","#E5A659","#DF9D56","#D99554","#D38C51","#CC824D","#C67B4B","#C07348","#B96C46","#B36444","#AB5C41","#A4553F","#9D4F3D","#95483C","#8E423A","#843B39","#7C3639","#743139","#6D2D3A","#662A3D","#5F2941","#5A2846","#552A4C","#522C53","#4F315D","#4D3566","#4C3B6F","#4C4179","#4C4883","#4D518E","#4F5897","#51609F","#5367A7","#556FAE","#5878B6","#5B80BC","#5E88C2","#6190C8","#6498CE","#68A3D5","#6BACDB","#6FB5E1","#72BEE6","#76C7EC","#7AD3F3","#7DDDF9","#81E7FF"]},navia:{discrete:["#031327","#041930","#051E3A","#052546","#062B50","#06315A","#073764","#083E6D","#0B4578","#0E4C80","#115286","#15588B","#195E8E","#1E6491","#216991","#246D91","#27718F","#2A748E","#2D788C","#307A8A","#337D89","#368087","#398385","#3C8683","#3F8981","#428C7F","#468F7D","#4A937A","#4E9678","#529A76","#579E73","#5BA271","#62A86E","#67AD6B","#6EB269","#76B768","#7FBD68","#8CC56A","#98CB6F","#A4D176","#B1D67F","#BCDB89","#C9E096","#D3E3A1","#DCE7AC","#E3EAB6","#EAEDBF","#F1F0CA","#F7F2D2","#FCF4D9"],categorical:["#031327","#FCF4D9","#408A80","#87C269","#1B608F","#59A072","#073966","#D1E39F","#2F798B","#EAEDBF","#052546","#266F90","#6BB06A","#0E4D81","#AED57D","#4C947A","#378186","#DFE8B0","#337D89","#2A748E","#14578A","#051C36","#9ACC70","#0A4374","#468F7D","#529A76","#F4F1CD","#062F56","#C1DC8D","#206891","#78B968","#62A86E","#3C8583","#569D74","#236C91","#F8F3D3","#D8E5A8","#0C487B","#04182E","#71B469","#B8D985","#07345E","#05213E","#4F9778","#5DA470","#3E8882","#062A4E","#7FBD68","#EFEFC6","#C9E096","#115286","#2C768D","#1E6491","#49917B","#66AC6C","#28718F","#A4D176","#90C76C","#438C7F","#175C8D","#083E6D","#E5EAB8","#317B8A","#357F87","#398385","#B3D781","#0D4A7E","#1C6290","#052342","#579F73","#9FCE73","#448D7E","#051A32","#FAF3D6","#428B7F","#29738F","#104F84","#5FA66F","#509877","#8CC56A","#094071","#2D788C","#083B6A","#D5E4A3","#2B758D","#226A91","#04162B","#BCDB89","#47907C","#4D9579","#E2E9B4","#7BBB68","#6EB269","#135488","#4A937A","#F1F0CA","#5BA271","#C5DE92","#F6F2D0","#CDE19B"]},naviaw:{discrete:["#041427","#051A31","#05203B","#062747","#072D52","#08345C","#0A3A66","#0C416F","#0F4979","#135080","#175686","#1B5D8A","#1F628D","#23698F","#276D8F","#2A728F","#2D758E","#30798D","#347D8B","#378089","#3A8388","#3D8686","#408984","#448C82","#489080","#4B937E","#50977C","#559C79","#5AA077","#5FA575","#65AA73","#6CAF71","#76B671","#7FBD71","#89C474","#95CB78","#A2D27F","#B1D98A","#BEDF95","#C9E5A1","#D3E9AD","#DBEDB9","#E4F1C6","#E9F4D0","#EEF6D9","#F2F8E1","#F6FAE9","#F9FCF1","#FCFDF7","#FEFEFD"],categorical:["#041427","#FBFDF6","#478F80","#9FD07D","#1F628D","#64A973","#E3F0C4","#0A3A66","#337C8B","#C7E49E","#7DBC71","#549B7A","#2A718F","#135080","#F2F8E1","#3C8586","#062747","#D7EBB2","#418A83","#B4DB8C","#2E778D","#6FB271","#EBF5D4","#0E4574","#051D37","#4D957D","#256B8F","#195A88","#388189","#F7FAEC","#5CA276","#8CC574","#073056","#31798C","#367E8A","#69AD72","#E7F3CC","#104A7A","#95CB78","#EFF6DB","#0B406D","#2C748E","#4A927F","#DDEEBB","#50987C","#165584","#589E78","#76B671","#3F8785","#05192F","#BEDF95","#448C82","#22678E","#06223F","#A9D684","#08355E","#CFE8A8","#F9FCF1","#286E8F","#85C172","#072C50","#F5F9E7","#1C5F8B","#3A8387","#60A675","#F3F9E4","#0C4271","#266D8F","#81BE72","#0A3D6A","#4B937E","#9ACD7B","#EDF5D7","#90C876","#A4D381","#378089","#1B5D8A","#489080","#145282","#DAECB6","#67AB73","#CBE6A3","#B9DD90","#3D8686","#23698F","#6CAF71","#FAFCF3","#79B971","#D3E9AD","#5AA077","#458E81","#72B471","#327B8C","#E5F1C8","#051B33","#F8FBEE","#062443","#398288","#2B728F","#06294C"]},nuuk:{discrete:["#05598C","#0E5B8B","#155C89","#1C5E87","#226085","#276184","#2C6383","#326682","#386982","#3E6C82","#446F82","#4A7283","#517584","#587A86","#5F7D88","#66818A","#6C858C","#73898E","#7B8E91","#819192","#879594","#8D9996","#939C97","#99A097","#9EA498","#A2A798","#A6AA97","#ABAD96","#AEAF95","#B1B194","#B3B492","#B6B690","#B8B88E","#BABA8C","#BDBC8A","#BFBE88","#C1C187","#C4C385","#C7C684","#CAC983","#CDCD83","#D2D184","#D7D787","#DDDD8B","#E3E290","#E8E895","#EEEE9C","#F4F4A4","#F9F9AB","#FEFEB2"],categorical:["#05598C","#FEFEB2","#A1A698","#537785","#C3C385","#B5B591","#7D8F91","#2D6483","#DDDD8B","#919B96","#BCBC8B","#3F6C82","#CDCD83","#1C5E87","#ADAE95","#68838B","#EEEE9C","#A7AA97","#879594","#C8C783","#F6F6A7","#135C89","#B9B98E","#497183","#73898E","#366882","#C0BF88","#D4D486","#99A097","#B1B293","#5E7D88","#256185","#E6E693","#829293","#788C90","#9DA398","#AAAC96","#E1E18F","#3B6A82","#638089","#B3B492","#A4A897","#446F82","#BABA8C","#D8D888","#185D88","#8C9895","#215F86","#BEBD89","#B7B78F","#CACA83","#4E7484","#C1C186","#959E97","#F2F2A1","#AFB094","#326682","#587A86","#296284","#FAFAAD","#6E868C","#C5C584","#D1D084","#0D5B8B","#E9E997","#DFDF8D","#66818A","#B0B194","#5B7B87","#2B6383","#859493","#CCCB83","#F8F8AA","#D2D285","#1F5F86","#70878D","#4B7383","#768B8F","#FCFCAF","#A9AB97","#BFBE88","#C9C983","#346782","#DBDA89","#236085","#BDBD8A","#BAB98D","#B8B88E","#2F6583","#939C97","#9FA498","#A2A798","#CFCF84","#B4B591","#C4C485","#979F97","#F0F09E","#155C89","#9BA298","#517584"]},oleron:{discrete:["#1A2659","#212E61","#293568","#323F72","#3A477A","#424F82","#4A578A","#535F92","#5D699C","#6572A5","#6E7BAE","#7784B7","#808DC0","#8B97CA","#94A1D3","#9DAADC","#A6B3E5","#AFBCEC","#B9C6F2","#C0CDF5","#C7D4F7","#CEDAF9","#D4E1FB","#DCE9FD","#E3F0FE","#1F4E00","#2C5100","#3A5600","#445900","#4F5C02","#5A6005","#65660C","#736D18","#7E7423","#8A7B2E","#94823A","#9F8945","#AC9253","#B79A5E","#C3A36A","#CEAC75","#D9B581","#E5C090","#EDC99D","#F2D2A9","#F6DAB5","#F8E2C0","#FAECCE","#FBF4DA","#FDFDE6"],categorical:["#1A2659","#212E61","#293568","#323F72","#3A477A","#424F82","#4A578A","#535F92","#5D699C","#6572A5","#6E7BAE","#7784B7","#808DC0","#8B97CA","#94A1D3","#9DAADC","#A6B3E5","#AFBCEC","#B9C6F2","#C0CDF5","#C7D4F7","#CEDAF9","#D4E1FB","#DCE9FD","#E3F0FE","#1F4E00","#2C5100","#3A5600","#445900","#4F5C02","#5A6005","#65660C","#736D18","#7E7423","#8A7B2E","#94823A","#9F8945","#AC9253","#B79A5E","#C3A36A","#CEAC75","#D9B581","#E5C090","#EDC99D","#F2D2A9","#F6DAB5","#F8E2C0","#FAECCE","#FBF4DA","#FDFDE6"]},oslo:{discrete:["#010101","#04070B","#060C13","#0A121B","#0C1620","#0D1927","#0E1D2D","#0F2133","#10263C","#112A43","#122E4A","#133251","#153758","#173C61","#194169","#1B4670","#1E4A78","#214F80","#255589","#295A91","#2E5F99","#3364A1","#3A6AA9","#4371B2","#4B77B9","#537DBE","#5B83C3","#6489C6","#6B8EC8","#7292C9","#7896C9","#7E9ACA","#859ECA","#8BA2C9","#91A6C9","#97A9C9","#9DADC9","#A4B2CA","#AAB6CA","#B1BBCB","#B8BFCD","#BFC5CF","#C7CCD3","#CFD2D8","#D7D9DD","#DEE0E2","#E6E7E9","#EFF0F1","#F7F7F8","#FFFFFF"],categorical:["#030609","#F9F9F9","#507BBC","#163B5E","#A0AFC9","#7B98CA","#27588E","#0E2032","#CACED5","#122D48","#3767A6","#1D4875","#8DA3C9","#E2E3E5","#678BC7","#B4BDCC","#0C151F","#BFC5CF","#97A9C9","#4371B2","#10263D","#080E16","#7292C9","#215081","#2E5F99","#AAB6CA","#ECEDEE","#0D1A28","#143454","#D5D8DC","#5B83C3","#19426A","#859ECA","#13314E","#0E1D2D","#3D6CAC","#6C8FC8","#7795C9","#F3F3F4","#4976B8","#245488","#DBDDE0","#112A43","#92A6C9","#C5C9D2","#809BCA","#0F2337","#3263A0","#050A10","#B9C1CD","#1F4C7B","#183E64","#A5B3CA","#0A121B","#9CACC9","#6187C5","#0D1824","#8AA1CA","#2A5B93","#547EBF","#D1D3D9","#E6E7E9","#1B456F","#B0BACB","#153758","#7494C9","#D8DADE","#6A8DC8","#90A5C9","#99ABC9","#235285","#133251","#060C13","#406EAF","#7E9ACA","#173C61","#4C78BA","#122F4B","#1C4772","#87A0CA","#CED1D7","#C2C7D1","#0F253A","#2C5D96","#C7CCD3","#112B45","#EFF0F1","#6F90C9","#0E1E2F","#ADB8CB","#7997CA","#4673B5","#15395B","#091018","#194067","#30619C","#94A8C9","#F6F6F6","#0F2135","#A3B1CA"]},roma:{discrete:["#7E1700","#832504","#883008","#8F3C0C","#934610","#984E14","#9C5717","#A05F1B","#A5681F","#A97023","#AD7826","#B0802B","#B58930","#BA9437","#BE9D3E","#C2A647","#C7B051","#CBBA5D","#CFC66D","#D1CF7B","#D2D78A","#D2DE98","#D0E4A6","#CBE8B4","#C4EABE","#BDEAC6","#B3E9CD","#A6E6D2","#9BE2D5","#8EDDD7","#81D7D7","#74CFD6","#64C6D5","#59BDD2","#4FB5D0","#46ACCC","#3EA4C9","#379AC5","#3292C2","#2E8ABF","#2B82BB","#287AB8","#2471B4","#2269B0","#1F60AD","#1C58A9","#194FA5","#1344A0","#0C3B9C","#033198"],categorical:["#7E1700","#832504","#883008","#8F3C0C","#934610","#984E14","#9C5717","#A05F1B","#A5681F","#A97023","#AD7826","#B0802B","#B58930","#BA9437","#BE9D3E","#C2A647","#C7B051","#CBBA5D","#CFC66D","#D1CF7B","#D2D78A","#D2DE98","#D0E4A6","#CBE8B4","#C4EABE","#BDEAC6","#B3E9CD","#A6E6D2","#9BE2D5","#8EDDD7","#81D7D7","#74CFD6","#64C6D5","#59BDD2","#4FB5D0","#46ACCC","#3EA4C9","#379AC5","#3292C2","#2E8ABF","#2B82BB","#287AB8","#2471B4","#2269B0","#1F60AD","#1C58A9","#194FA5","#1344A0","#0C3B9C","#033198"]},romao:{discrete:["#733957","#773850","#7A3849","#7E3942","#823C3D","#863F38","#8A4334","#8E4831","#94502E","#98572C","#9D5F2B","#A3672C","#A8712E","#AF7D32","#B58837","#BB933F","#C19F47","#C6AA52","#CDB761","#D1C26E","#D4CB7B","#D6D388","#D5D995","#D3DEA3","#CEE0AD","#C8E1B6","#C1E1BE","#B6DEC5","#ABDBC9","#A0D6CC","#94D0CE","#88C9CF","#7BC0CE","#70B8CD","#67AFCA","#5FA6C7","#589CC4","#5291BE","#4F88B9","#4E7EB3","#4F75AC","#516BA4","#55609A","#595891","#5D5087","#62497D","#664474","#6B3F69","#6F3B60","#723959"],categorical:["#733957","#773850","#7A3849","#7E3942","#823C3D","#863F38","#8A4334","#8E4831","#94502E","#98572C","#9D5F2B","#A3672C","#A8712E","#AF7D32","#B58837","#BB933F","#C19F47","#C6AA52","#CDB761","#D1C26E","#D4CB7B","#D6D388","#D5D995","#D3DEA3","#CEE0AD","#C8E1B6","#C1E1BE","#B6DEC5","#ABDBC9","#A0D6CC","#94D0CE","#88C9CF","#7BC0CE","#70B8CD","#67AFCA","#5FA6C7","#589CC4","#5291BE","#4F88B9","#4E7EB3","#4F75AC","#516BA4","#55609A","#595891","#5D5087","#62497D","#664474","#6B3F69","#6F3B60","#723959"]},tofino:{discrete:["#DED9FF","#D0CFF9","#C3C6F3","#B3BBEC","#A6B1E6","#98A8E1","#8B9FDB","#7E95D4","#6E89CB","#617FC3","#5575B8","#4A6BAC","#4262A0","#395790","#334F83","#2E4776","#293F6A","#24385D","#1F304F","#1B2943","#172338","#141D2E","#111824","#0F151B","#0D1516","#0D1712","#0F1B12","#112113","#142716","#162F19","#1A361C","#1D3E20","#224825","#26512A","#2A5A2E","#2E6233","#336C38","#39773E","#3F8144","#488B4A","#529551","#5FA059","#70AB63","#7FB46B","#8EBD73","#9DC57B","#ACCD83","#BDD68C","#CCDE94","#DBE69B"],categorical:["#DED9FF","#D0CFF9","#C3C6F3","#B3BBEC","#A6B1E6","#98A8E1","#8B9FDB","#7E95D4","#6E89CB","#617FC3","#5575B8","#4A6BAC","#4262A0","#395790","#334F83","#2E4776","#293F6A","#24385D","#1F304F","#1B2943","#172338","#141D2E","#111824","#0F151B","#0D1516","#0D1712","#0F1B12","#112113","#142716","#162F19","#1A361C","#1D3E20","#224825","#26512A","#2A5A2E","#2E6233","#336C38","#39773E","#3F8144","#488B4A","#529551","#5FA059","#70AB63","#7FB46B","#8EBD73","#9DC57B","#ACCD83","#BDD68C","#CCDE94","#DBE69B"]},tokyo:{discrete:["#1C0E34","#241036","#2D1339","#37163D","#3F1A40","#481E43","#4F2345","#562948","#5D304A","#62354C","#663B4D","#69404E","#6B454F","#6D4B50","#6E4F50","#6F5251","#6F5651","#705951","#715C52","#715F52","#716252","#726452","#726753","#736B53","#736E53","#747153","#757554","#757A54","#767E55","#778355","#788856","#798E57","#7B9558","#7C9B5A","#7EA25C","#81A95E","#84B062","#88B968","#8DC16E","#93CA76","#9BD27F","#A4DA8A","#AFE398","#BAEAA4","#C5EFB0","#CFF4BB","#D8F7C5","#E2F9CF","#E9FBD7","#EFFCDD"],categorical:["#1C0E34","#EFFCDD","#747053","#6C4750","#87B666","#B8E8A1","#512446","#715D52","#798B56","#7D9F5B","#37163D","#726653","#99D07D","#63374C","#6F5451","#D8F7C5","#767C54","#705951","#5B2D49","#7B9558","#441D41","#291238","#E5FAD2","#C9F1B4","#716252","#81AA5F","#683F4E","#736B53","#6E4E50","#757654","#8EC370","#A7DD8E","#778455","#747354","#84B062","#231036","#93CA76","#DFF9CC","#30143A","#A0D785","#7FA45D","#EAFBD8","#6A434F","#C1EDAB","#736D53","#562948","#6D4B50","#7A9057","#7C9A59","#4B2044","#715F52","#663B4D","#D1F4BD","#705651","#8ABD6A","#6E5151","#AFE398","#5F324B","#757954","#3E193F","#726853","#726452","#778055","#705B52","#788756","#61344C","#746E53","#ABE093","#532747","#85B364","#7EA25C","#261137","#736C53","#E8FBD5","#4E2245","#88B968","#798E57","#767E55","#726753","#757754","#715E52","#3A183E","#6E4F51","#778255","#7B9759","#DCF8C9","#EDFCDA","#411B40","#7D9C5A","#767B54","#726352","#6F5551","#726552","#82AD60","#D5F6C1","#34153C","#9CD481","#747454","#C5EFB0","#481E43"]},turku:{discrete:["#000000","#090908","#111110","#181816","#1D1D1A","#22221F","#272723","#2C2C27","#33322B","#38382F","#3D3D32","#424235","#474738","#4E4D3C","#53523E","#585841","#5D5D43","#626246","#686848","#6E6D4B","#73724D","#797750","#7F7D52","#878356","#8E8859","#968E5C","#9D9360","#A79864","#AF9C68","#B69F6C","#BEA270","#C4A474","#CCA579","#D1A67D","#D7A781","#DBA886","#E0A98B","#E6AB92","#EAAD98","#EFB09F","#F2B4A7","#F6B9AE","#F9BFB7","#FBC4BF","#FDC9C6","#FECFCC","#FED4D3","#FFDBDA","#FFE0E0","#FFE6E6"],categorical:["#070707","#FFE6E6","#948D5B","#E5AA90","#4D4C3B","#2C2C27","#C3A374","#6D6C4A","#FBC4BF","#D6A780","#F2B4A7","#1C1C19","#3D3D32","#AC9A67","#7E7C52","#FED6D4","#5D5D43","#35342D","#DDA888","#141312","#55543F","#242420","#FDCDCA","#F7BCB3","#898456","#B8A06D","#ECAE9B","#CDA57A","#FFDEDD","#646447","#454537","#9F9461","#76744E","#71704C","#30302A","#414135","#181816","#FCC8C4","#EFB1A1","#838054","#F5B8AD","#E1A98C","#C8A477","#686848","#595941","#20201D","#8E8859","#D1A67D","#B29D6A","#E9AC95","#BEA270","#FED1CF","#0E0E0D","#A59764","#DAA784","#282823","#F9C0B9","#51503D","#393930","#FFDAD9","#49493A","#606045","#FFE2E1","#9A915E","#797750","#F4B6AA","#F6BAB0","#CBA578","#FFD8D6","#FECFCC","#262622","#C0A272","#868255","#1A1A18","#FAC2BC","#8B8658","#E3AA8E","#161614","#4F4E3C","#C6A475","#2E2E28","#BBA16F","#6B6A49","#E7AB93","#CFA67C","#626246","#53523E","#5B5B42","#FED3D1","#7C7A51","#817E53","#73724D","#FFDCDB","#37372E","#F8BEB6","#0B0B0A","#575740","#DFA98A","#474738","#B59F6C"]},vanimo:{discrete:["#FFCDFD","#F7BEF2","#F0B0E8","#E6A0DC","#DE93D2","#D786C8","#CF7ABF","#C76FB5","#BD63AA","#B45AA1","#AB5198","#A1498E","#964184","#883977","#7C326B","#6E2C60","#612654","#542148","#451C3B","#391931","#2F1728","#281521","#22141C","#1D1417","#1A1414","#191612","#191811","#1B1D11","#1D2212","#212913","#253014","#2B3916","#324419","#384D1B","#3F561E","#456021","#4C6924","#547427","#5A7C2A","#60852E","#678E32","#6E9737","#77A33F","#7FAE47","#88BA51","#92C65D","#9CD26B","#A9E27F","#B3EF92","#BEFDA5"],categorical:["#FFCDFD","#F7BEF2","#F0B0E8","#E6A0DC","#DE93D2","#D786C8","#CF7ABF","#C76FB5","#BD63AA","#B45AA1","#AB5198","#A1498E","#964184","#883977","#7C326B","#6E2C60","#612654","#542148","#451C3B","#391931","#2F1728","#281521","#22141C","#1D1417","#1A1414","#191612","#191811","#1B1D11","#1D2212","#212913","#253014","#2B3916","#324419","#384D1B","#3F561E","#456021","#4C6924","#547427","#5A7C2A","#60852E","#678E32","#6E9737","#77A33F","#7FAE47","#88BA51","#92C65D","#9CD26B","#A9E27F","#B3EF92","#BEFDA5"]},vik:{discrete:["#001261","#011A66","#02226B","#022B71","#023376","#023A7B","#034280","#034A85","#06548B","#0B5D91","#136697","#1E6F9D","#2B79A4","#3C85AC","#4B90B3","#5A9ABA","#6AA4C1","#7AAEC8","#8DBAD0","#9DC4D6","#ADCDDD","#BDD6E3","#CCDFE8","#DEE6E9","#E8E7E5","#EEE3DC","#EEDBD0","#EBD0C0","#E7C6B2","#E3BCA5","#DFB298","#DBA88B","#D69D7C","#D29470","#CE8B64","#CA8258","#C6794C","#C26E3F","#BE6533","#B85C28","#B2511D","#A94512","#9C3709","#912D06","#872406","#7E1D06","#741506","#6A0D07","#620607","#590008"],categorical:["#001261","#011A66","#02226B","#022B71","#023376","#023A7B","#034280","#034A85","#06548B","#0B5D91","#136697","#1E6F9D","#2B79A4","#3C85AC","#4B90B3","#5A9ABA","#6AA4C1","#7AAEC8","#8DBAD0","#9DC4D6","#ADCDDD","#BDD6E3","#CCDFE8","#DEE6E9","#E8E7E5","#EEE3DC","#EEDBD0","#EBD0C0","#E7C6B2","#E3BCA5","#DFB298","#DBA88B","#D69D7C","#D29470","#CE8B64","#CA8258","#C6794C","#C26E3F","#BE6533","#B85C28","#B2511D","#A94512","#9C3709","#912D06","#872406","#7E1D06","#741506","#6A0D07","#620607","#590008"]},viko:{discrete:["#4F1A3D","#4B1D43","#48214A","#432653","#3F2C5B","#3C3263","#38396C","#354174","#334B7F","#345487","#365E8F","#3B6797","#42719E","#4D7DA6","#5787AD","#6391B4","#709ABA","#7DA4BF","#8EAEC4","#9BB5C7","#A9BBC8","#B5C0C8","#C0C2C5","#CBC2BF","#D2C0B8","#D6BDAF","#D9B7A6","#D9AF99","#D8A88D","#D6A082","#D39776","#CF8D6B","#C8825D","#C27752","#BB6D47","#B3623D","#AA5633","#9F492A","#953E25","#8C3521","#822C1F","#7A251E","#721F1F","#6B1A21","#661824","#611627","#5C152B","#571631","#531736","#50193C"],categorical:["#4F1A3D","#4B1D43","#48214A","#432653","#3F2C5B","#3C3263","#38396C","#354174","#334B7F","#345487","#365E8F","#3B6797","#42719E","#4D7DA6","#5787AD","#6391B4","#709ABA","#7DA4BF","#8EAEC4","#9BB5C7","#A9BBC8","#B5C0C8","#C0C2C5","#CBC2BF","#D2C0B8","#D6BDAF","#D9B7A6","#D9AF99","#D8A88D","#D6A082","#D39776","#CF8D6B","#C8825D","#C27752","#BB6D47","#B3623D","#AA5633","#9F492A","#953E25","#8C3521","#822C1F","#7A251E","#721F1F","#6B1A21","#661824","#611627","#5C152B","#571631","#531736","#50193C"]}};function cr(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}const dr={waves:"batlow",blksand:"tokyo",breeze:"imola",magma:"batlow",ribbon:"hawaii",stars:"batlow",folds:"imola"},ur={[sr.ADVERT]:1,[sr.TXT_MSG]:4,[sr.GRP_TXT]:2,[sr.RESPONSE]:8,[sr.REQ]:13,[sr.ANON_REQ]:7,[sr.ACK]:11,[sr.PATH]:24,[sr.TRACE]:16,[sr.GRP_DATA]:34,[sr.MULTIPART]:52,[sr.RAW_CUSTOM]:14};function hr(){let a="waves",e=!0;if("undefined"!=typeof window){a=localStorage.getItem("pymc-color-scheme")||"waves";const n=fa(a);e=(null==n?void 0:n.meta.isDark)??!0}const n=dr[a]??"batlow",t=lr[n],o=t.discrete.length,r=Math.floor(o/2);return{colormap:t,colormapName:n,isDark:e,baseIndex:e?r:0,halfSize:r}}let mr=null;function pr(a){const{colormap:e,isDark:n}=hr();if("number"!=typeof a)return n?"#A5A5A5":"#666666";const t=ur[a];if(void 0===t)return n?"#A5A5A5":"#666666";const o=e.categorical;return o[Math.min(t,o.length-1)]}function gr(a){const e=pr(a);return null===mr&&(mr=E()),mr?function(a){return E()?D(a):a}(e):e}function br(a){return cr(pr(a))}function fr(a){return null==a?"UNKNOWN":or[a]||`TYPE_${a}`}function yr(a){return null==a?"UNKNOWN":rr[a]||`ROUTE_${a}`}function vr(a,e){return(Math.max(a,e)+.05)/(Math.min(a,e)+.05)}function wr(a){const e=function(a){const e=a.replace("#",""),n=parseInt(e.slice(0,2),16)/255,t=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255,r=a=>a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*r(n)+.7152*r(t)+.0722*r(o)}(a);return vr(e,1)>vr(e,0)?"light":"dark"}function kr(a){return 1===a||!0===a}const xr=i("inline-flex items-center gap-1","radius-badge px-1.5 py-0.5","text-xs"),jr={fontFamily:"var(--font-badge)",fontWeight:"var(--font-badge-weight)",textTransform:"var(--badge-text-transform, none)"},zr={red:"var(--sys-red)",orange:"var(--sys-orange)",amber:"var(--sys-amber)",yellow:"var(--sys-yellow)",lime:"var(--sys-green)",green:"var(--sys-green)",emerald:"var(--sys-green)",teal:"var(--sys-teal)",cyan:"var(--sys-cyan)",sky:"var(--sys-cyan)",blue:"var(--sys-blue)",indigo:"var(--sys-indigo)",violet:"var(--sys-indigo)",purple:"var(--sys-purple)",fuchsia:"var(--sys-pink)",pink:"var(--sys-pink)",rose:"var(--sys-red)",brown:"var(--sys-brown)",zinc:"var(--text-muted)"};function Cr(a){if(!a.startsWith("var("))return a;if("undefined"!=typeof window){const e=a.match(/var\((--[^,)]+)/);if(e){const a=getComputedStyle(document.documentElement).getPropertyValue(e[1]).trim();if(a&&a.startsWith("#"))return a}}return"#666666"}function Ar({color:a="zinc",customColor:e,filled:n=!1,compact:t=!1,className:s,title:l,children:c}){const d=o.useMemo(()=>{const t=e??zr[a];if(n){if(e){const a=wr(Cr(e));return{backgroundColor:e,color:"light"===a?"rgba(255,255,255,0.95)":"rgba(0,0,0,0.85)"}}return{backgroundColor:t,color:["amber","yellow","lime"].includes(a)?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.95)"}}return{backgroundColor:`color-mix(in srgb, ${t} 15%, transparent)`,color:t}},[a,e,n]);return r.jsx("span",{className:i(xr,t&&"!px-1 !py-0 !text-[10px]",s),style:{...jr,...d},title:l,children:c})}const Dr=o.forwardRef(function({color:a="zinc",customColor:e,filled:n=!1,compact:t=!1,className:s,children:c,...d},u){const h=o.useMemo(()=>{const t=e??zr[a];if(n){if(e){const a=wr(Cr(e));return{backgroundColor:e,color:"light"===a?"rgba(255,255,255,0.95)":"rgba(0,0,0,0.85)"}}return{backgroundColor:t,color:["amber","yellow","lime"].includes(a)?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.95)"}}return{backgroundColor:`color-mix(in srgb, ${t} 15%, transparent)`,color:t}},[a,e,n]),m=i(xr,t&&"!px-1 !py-0 !text-[10px]","interactive hover-opacity",s);return"href"in d&&void 0!==d.href?r.jsx(tr,{...d,ref:u,className:m,style:{...jr,...h},children:c}):r.jsx(l,{...d,ref:u,className:m,style:{...jr,...h},children:c})}),Er=i("relative inline-flex items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","radius-inner px-3 py-1.5","ring-focus","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-base","[&>[data-slot=icon]]:w-4 [&>[data-slot=icon]]:h-4 [&>[data-slot=icon]]:shrink-0"),Br={primary:i("bg-accent-primary text-white","hover:bg-accent-primary/90","active:bg-accent-primary/80","border border-accent-primary/20"),success:i("bg-accent-success text-white","hover:bg-accent-success/90","active:bg-accent-success/80","border border-accent-success/20"),danger:i("bg-accent-danger text-white","hover:bg-accent-danger/90","active:bg-accent-danger/80","border border-accent-danger/20"),warning:i("bg-accent-secondary text-bg-body","hover:bg-accent-secondary/90","active:bg-accent-secondary/80","border border-accent-secondary/20"),muted:i("bg-bg-elevated text-text-primary","hover:bg-bg-subtle","active:bg-bg-elevated","border border-border-subtle")},Fr={primary:i("bg-transparent text-accent-primary","border border-accent-primary/30","hover:bg-accent-primary/10 hover:border-accent-primary/50","active:bg-accent-primary/20"),success:i("bg-transparent text-accent-success","border border-accent-success/30","hover:bg-accent-success/10 hover:border-accent-success/50","active:bg-accent-success/20"),danger:i("bg-transparent text-accent-danger","border border-accent-danger/30","hover:bg-accent-danger/10 hover:border-accent-danger/50","active:bg-accent-danger/20"),warning:i("bg-transparent text-accent-secondary","border border-accent-secondary/30","hover:bg-accent-secondary/10 hover:border-accent-secondary/50","active:bg-accent-secondary/20"),muted:i("bg-transparent text-text-muted","border border-border-subtle","hover:bg-bg-subtle hover:text-text-primary hover:border-border-strong","active:bg-bg-elevated")},qr={primary:i("bg-transparent text-accent-primary border-transparent","hover:bg-accent-primary/10","active:bg-accent-primary/20"),success:i("bg-transparent text-accent-success border-transparent","hover:bg-accent-success/10","active:bg-accent-success/20"),danger:i("bg-transparent text-accent-danger border-transparent","hover:bg-accent-danger/10","active:bg-accent-danger/20"),warning:i("bg-transparent text-accent-secondary border-transparent","hover:bg-accent-secondary/10","active:bg-accent-secondary/20"),muted:i("bg-transparent text-text-muted border-transparent","hover:bg-bg-subtle hover:text-text-primary","active:bg-bg-elevated")},Sr=o.forwardRef(function({color:a="muted",outline:e=!1,plain:n=!1,className:t,children:o,...s},c){const d=i(Er,n?qr[a]:e?Fr[a]:Br[a],t);return"href"in s&&void 0!==s.href?r.jsx(tr,{...s,ref:c,className:d,children:o}):r.jsx(l,{...s,ref:c,className:d,children:o})}),Mr=a=>{const e=(a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,e,n)=>n?n.toUpperCase():e.toLowerCase()))(a);return e.charAt(0).toUpperCase()+e.slice(1)},Tr=(...a)=>a.filter((a,e,n)=>Boolean(a)&&""!==a.trim()&&n.indexOf(a)===e).join(" ").trim(),Pr=a=>{for(const e in a)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0};var Lr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Rr=o.forwardRef(({color:a="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i,...l},c)=>o.createElement("svg",{ref:c,...Lr,width:e,height:e,stroke:a,strokeWidth:t?24*Number(n)/Number(e):n,className:Tr("lucide",r),...!s&&!Pr(l)&&{"aria-hidden":"true"},...l},[...i.map(([a,e])=>o.createElement(a,e)),...Array.isArray(s)?s:[s]])),Nr=(a,e)=>{const n=o.forwardRef(({className:n,...t},r)=>{return o.createElement(Rr,{ref:r,iconNode:e,className:Tr(`lucide-${s=Mr(a),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,n),...t});var s});return n.displayName=Mr(a),n},Ir=Nr("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),_r=Nr("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Vr=Nr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Or=Nr("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),$r=Nr("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Wr=Nr("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),Ur=Nr("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),Hr=Nr("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),Yr=Nr("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]),Gr=Nr("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Kr=Nr("map-pin-plus",[["path",{d:"M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"fcdtly"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M19 15v6",key:"10aioa"}]]),Xr=Nr("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),Jr=Nr("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),Zr=Nr("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),Qr=Nr("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),as=Nr("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),es=Nr("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ns=Nr("shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]),ts=Nr("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]),os=Nr("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),rs=Nr("waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]]),ss=Nr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),is=o.createContext({});function ls(a){const e=o.useRef(null);return null===e.current&&(e.current=a()),e.current}const cs="undefined"!=typeof window,ds=cs?o.useLayoutEffect:o.useEffect,us=o.createContext(null);function hs(a,e){-1===a.indexOf(e)&&a.push(e)}function ms(a,e){const n=a.indexOf(e);n>-1&&a.splice(n,1)}const ps=(a,e,n)=>n>e?e:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function fs(a){return"object"==typeof a&&null!==a}const ys=a=>/^0[^.\s]+$/u.test(a);function vs(a){let e;return()=>(void 0===e&&(e=a()),e)}const ws=a=>a,ks=(a,e)=>n=>e(a(n)),xs=(...a)=>a.reduce(ks),js=(a,e,n)=>{const t=e-a;return 0===t?1:(n-a)/t};class zs{constructor(){this.subscriptions=[]}add(a){return hs(this.subscriptions,a),()=>ms(this.subscriptions,a)}notify(a,e,n){const t=this.subscriptions.length;if(t)if(1===t)this.subscriptions[0](a,e,n);else for(let o=0;o1e3*a,As=a=>a/1e3;function Ds(a,e){return e?a*(1e3/e):0}const Es=(a,e,n)=>(((1-3*n+3*e)*a+(3*n-6*e))*a+3*e)*a;function Bs(a,e,n,t){if(a===e&&n===t)return ws;return o=>0===o||1===o?o:Es(function(a,e,n,t,o){let r,s,i=0;do{s=e+(n-e)/2,r=Es(s,t,o)-a,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++i<12);return s}(o,0,1,a,n),e,t)}const Fs=a=>e=>e<=.5?a(2*e)/2:(2-a(2*(1-e)))/2,qs=a=>e=>1-a(1-e),Ss=Bs(.33,1.53,.69,.99),Ms=qs(Ss),Ts=Fs(Ms),Ps=a=>(a*=2)<1?.5*Ms(a):.5*(2-Math.pow(2,-10*(a-1))),Ls=a=>1-Math.sin(Math.acos(a)),Rs=qs(Ls),Ns=Fs(Ls),Is=Bs(.42,0,1,1),_s=Bs(0,0,.58,1),Vs=Bs(.42,0,.58,1),Os=a=>Array.isArray(a)&&"number"!=typeof a[0],$s=a=>Array.isArray(a)&&"number"==typeof a[0],Ws={linear:ws,easeIn:Is,easeInOut:Vs,easeOut:_s,circIn:Ls,circInOut:Ns,circOut:Rs,backIn:Ms,backInOut:Ts,backOut:Ss,anticipate:Ps},Us=a=>{if($s(a)){a.length;const[e,n,t,o]=a;return Bs(e,n,t,o)}return"string"==typeof a?Ws[a]:a},Hs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ys(a,e){let n=!1,t=!0;const o={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=Hs.reduce((a,e)=>(a[e]=function(a){let e=new Set,n=new Set,t=!1,o=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function i(e){r.has(e)&&(l.schedule(e),a()),e(s)}const l={schedule:(a,o=!1,s=!1)=>{const i=s&&t?e:n;return o&&r.add(a),i.has(a)||i.add(a),a},cancel:a=>{n.delete(a),r.delete(a)},process:a=>{s=a,t?o=!0:(t=!0,[e,n]=[n,e],e.forEach(i),e.clear(),t=!1,o&&(o=!1,l.process(a)))}};return l}(r),a),{}),{setup:i,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:m,postRender:p}=s,g=()=>{const r=gs.useManualTiming?o.timestamp:performance.now();n=!1,gs.useManualTiming||(o.delta=t?1e3/60:Math.max(Math.min(r-o.timestamp,40),1)),o.timestamp=r,o.isProcessing=!0,i.process(o),l.process(o),c.process(o),d.process(o),u.process(o),h.process(o),m.process(o),p.process(o),o.isProcessing=!1,n&&e&&(t=!1,a(g))};return{schedule:Hs.reduce((e,r)=>{const i=s[r];return e[r]=(e,r=!1,s=!1)=>(n||(n=!0,t=!0,o.isProcessing||a(g)),i.schedule(e,r,s)),e},{}),cancel:a=>{for(let e=0;e(void 0===Zs&&ai.set(Xs.isProcessing||gs.useManualTiming?Xs.timestamp:performance.now()),Zs),set:a=>{Zs=a,queueMicrotask(Qs)}},ei=a=>e=>"string"==typeof e&&e.startsWith(a),ni=ei("--"),ti=ei("var(--"),oi=a=>!!ti(a)&&ri.test(a.split("/*")[0].trim()),ri=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function si(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}const ii={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},li={...ii,transform:a=>ps(0,1,a)},ci={...ii,default:1},di=a=>Math.round(1e5*a)/1e5,ui=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,hi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mi=(a,e)=>n=>Boolean("string"==typeof n&&hi.test(n)&&n.startsWith(a)||e&&!function(a){return null==a}(n)&&Object.prototype.hasOwnProperty.call(n,e)),pi=(a,e,n)=>t=>{if("string"!=typeof t)return t;const[o,r,s,i]=t.match(ui);return{[a]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==i?parseFloat(i):1}},gi={...ii,transform:a=>Math.round((a=>ps(0,255,a))(a))},bi={test:mi("rgb","red"),parse:pi("red","green","blue"),transform:({red:a,green:e,blue:n,alpha:t=1})=>"rgba("+gi.transform(a)+", "+gi.transform(e)+", "+gi.transform(n)+", "+di(li.transform(t))+")"},fi={test:mi("#"),parse:function(a){let e="",n="",t="",o="";return a.length>5?(e=a.substring(1,3),n=a.substring(3,5),t=a.substring(5,7),o=a.substring(7,9)):(e=a.substring(1,2),n=a.substring(2,3),t=a.substring(3,4),o=a.substring(4,5),e+=e,n+=n,t+=t,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(t,16),alpha:o?parseInt(o,16)/255:1}},transform:bi.transform},yi=a=>({test:e=>"string"==typeof e&&e.endsWith(a)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${a}`}),vi=yi("deg"),wi=yi("%"),ki=yi("px"),xi=yi("vh"),ji=yi("vw"),zi=(()=>({...wi,parse:a=>wi.parse(a)/100,transform:a=>wi.transform(100*a)}))(),Ci={test:mi("hsl","hue"),parse:pi("hue","saturation","lightness"),transform:({hue:a,saturation:e,lightness:n,alpha:t=1})=>"hsla("+Math.round(a)+", "+wi.transform(di(e))+", "+wi.transform(di(n))+", "+di(li.transform(t))+")"},Ai={test:a=>bi.test(a)||fi.test(a)||Ci.test(a),parse:a=>bi.test(a)?bi.parse(a):Ci.test(a)?Ci.parse(a):fi.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?bi.transform(a):Ci.transform(a),getAnimatableNone:a=>{const e=Ai.parse(a);return e.alpha=0,Ai.transform(e)}},Di=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ei="number",Bi="color",Fi=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qi(a){const e=a.toString(),n=[],t={color:[],number:[],var:[]},o=[];let r=0;const s=e.replace(Fi,a=>(Ai.test(a)?(t.color.push(r),o.push(Bi),n.push(Ai.parse(a))):a.startsWith("var(")?(t.var.push(r),o.push("var"),n.push(a)):(t.number.push(r),o.push(Ei),n.push(parseFloat(a))),++r,"${}")).split("${}");return{values:n,split:s,indexes:t,types:o}}function Si(a){return qi(a).values}function Mi(a){const{split:e,types:n}=qi(a),t=e.length;return a=>{let o="";for(let r=0;r"number"==typeof a?0:Ai.test(a)?Ai.getAnimatableNone(a):a,Pi={test:function(a){var e,n;return isNaN(a)&&"string"==typeof a&&((null==(e=a.match(ui))?void 0:e.length)||0)+((null==(n=a.match(Di))?void 0:n.length)||0)>0},parse:Si,createTransformer:Mi,getAnimatableNone:function(a){const e=Si(a);return Mi(a)(e.map(Ti))}};function Li(a,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?a+6*(e-a)*n:n<.5?e:n<2/3?a+(e-a)*(2/3-n)*6:a}function Ri(a,e){return n=>n>0?e:a}const Ni=(a,e,n)=>a+(e-a)*n,Ii=(a,e,n)=>{const t=a*a,o=n*(e*e-t)+t;return o<0?0:Math.sqrt(o)},_i=[fi,bi,Ci];function Vi(a){const e=(n=a,_i.find(a=>a.test(n)));var n;if(!Boolean(e))return!1;let t=e.parse(a);return e===Ci&&(t=function({hue:a,saturation:e,lightness:n,alpha:t}){a/=360,n/=100;let o=0,r=0,s=0;if(e/=100){const t=n<.5?n*(1+e):n+e-n*e,i=2*n-t;o=Li(i,t,a+1/3),r=Li(i,t,a),s=Li(i,t,a-1/3)}else o=r=s=n;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*s),alpha:t}}(t)),t}const Oi=(a,e)=>{const n=Vi(a),t=Vi(e);if(!n||!t)return Ri(a,e);const o={...n};return a=>(o.red=Ii(n.red,t.red,a),o.green=Ii(n.green,t.green,a),o.blue=Ii(n.blue,t.blue,a),o.alpha=Ni(n.alpha,t.alpha,a),bi.transform(o))},$i=new Set(["none","hidden"]);function Wi(a,e){return n=>Ni(a,e,n)}function Ui(a){return"number"==typeof a?Wi:"string"==typeof a?oi(a)?Ri:Ai.test(a)?Oi:Gi:Array.isArray(a)?Hi:"object"==typeof a?Ai.test(a)?Oi:Yi:Ri}function Hi(a,e){const n=[...a],t=n.length,o=a.map((a,n)=>Ui(a)(a,e[n]));return a=>{for(let e=0;e{for(const e in t)n[e]=t[e](a);return n}}const Gi=(a,e)=>{const n=Pi.createTransformer(e),t=qi(a),o=qi(e);return t.indexes.var.length===o.indexes.var.length&&t.indexes.color.length===o.indexes.color.length&&t.indexes.number.length>=o.indexes.number.length?$i.has(a)&&!o.values.length||$i.has(e)&&!t.values.length?function(a,e){return $i.has(a)?n=>n<=0?a:e:n=>n>=1?e:a}(a,e):xs(Hi(function(a,e){const n=[],t={color:0,var:0,number:0};for(let o=0;o{const e=({timestamp:e})=>a(e);return{start:(a=!0)=>Gs.update(e,a),stop:()=>Ks(e),now:()=>Xs.isProcessing?Xs.timestamp:ai.now()}},Ji=(a,e,n=10)=>{let t="";const o=Math.max(Math.round(e/n),2);for(let r=0;r=Zi?1/0:e}function al(a,e=100,n){const t=n({...a,keyframes:[0,e]}),o=Math.min(Qi(t),Zi);return{type:"keyframes",ease:a=>t.next(o*a).value/e,duration:As(o)}}function el(a,e,n){const t=Math.max(e-5,0);return Ds(n-a(t),e-t)}const nl=.01,tl=2,ol=.005,rl=.5;const sl=12;function il(a,e){return a*Math.sqrt(1-e*e)}const ll=["duration","bounce"],cl=["stiffness","damping","mass"];function dl(a,e){return e.some(e=>void 0!==a[e])}function ul(a=.3,e=.3){const n="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:e}:a;let{restSpeed:t,restDelta:o}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:r},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:m}=function(a){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...a};if(!dl(a,cl)&&dl(a,ll))if(a.visualDuration){const n=a.visualDuration,t=2*Math.PI/(1.2*n),o=t*t,r=2*ps(.05,1,1-(a.bounce||0))*Math.sqrt(o);e={...e,mass:1,stiffness:o,damping:r}}else{const n=function({duration:a=800,bounce:e=.3,velocity:n=0,mass:t=1}){let o,r,s=1-e;s=ps(.05,1,s),a=ps(.01,10,As(a)),s<1?(o=e=>{const t=e*s,o=t*a;return.001-(t-n)/il(e,s)*Math.exp(-o)},r=e=>{const t=e*s*a,r=t*n+n,i=Math.pow(s,2)*Math.pow(e,2)*a,l=Math.exp(-t),c=il(Math.pow(e,2),s);return(.001-o(e)>0?-1:1)*((r-i)*l)/c}):(o=e=>Math.exp(-e*a)*((e-n)*a+1)-.001,r=e=>Math.exp(-e*a)*(a*a*(n-e)));const i=function(a,e,n){let t=n;for(let o=1;o{const n=Math.exp(-g*f*e);return s-n*((p+g*f*b)/a*Math.sin(a*e)+b*Math.cos(a*e))}}else if(1===g)v=a=>s-Math.exp(-f*a)*(b+(p+f*b)*a);else{const a=f*Math.sqrt(g*g-1);v=e=>{const n=Math.exp(-g*f*e),t=Math.min(a*e,300);return s-n*((p+g*f*b)*Math.sinh(t)+a*b*Math.cosh(t))/a}}const w={calculatedDuration:m&&u||null,next:a=>{const e=v(a);if(m)i.done=a>=u;else{let n=0===a?p:0;g<1&&(n=0===a?Cs(p):el(v,a,e));const r=Math.abs(n)<=t,l=Math.abs(s-e)<=o;i.done=r&&l}return i.value=i.done?s:e,i},toString:()=>{const a=Math.min(Qi(w),Zi),e=Ji(e=>w.next(a*e).value,a,30);return a+"ms "+e},toTransition:()=>{}};return w}function hl({keyframes:a,velocity:e=0,power:n=.8,timeConstant:t=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:d}){const u=a[0],h={done:!1,value:u},m=a=>void 0===i?l:void 0===l||Math.abs(i-a)-p*Math.exp(-a/t),y=a=>b+f(a),v=a=>{const e=f(a),n=y(a);h.done=Math.abs(e)<=c,h.value=h.done?b:n};let w,k;const x=a=>{var e;e=h.value,(void 0!==i&&el)&&(w=a,k=ul({keyframes:[h.value,m(h.value)],velocity:el(y,a,h.value),damping:o,stiffness:r,restDelta:c,restSpeed:d}))};return x(0),{calculatedDuration:null,next:a=>{let e=!1;return k||void 0!==w||(e=!0,v(a),x(a)),void 0!==w&&a>=w?k.next(a-w):(!e&&v(a),h)}}}function ml(a,e){const n=a[a.length-1];for(let t=1;t<=e;t++){const o=js(0,e,t);a.push(Ni(n,1,o))}}function pl(a){const e=[0];return ml(e,a.length-1),e}function gl({duration:a=300,keyframes:e,times:n,ease:t="easeInOut"}){const o=Os(t)?t.map(Us):Us(t),r={done:!1,value:e[0]},s=function(a,e){return a.map(a=>a*e)}(n&&n.length===e.length?n:pl(e),a),i=function(a,e,{clamp:n=!0,ease:t,mixer:o}={}){const r=a.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const s=a[0]===a[1];a[0]>a[r-1]&&(a=[...a].reverse(),e=[...e].reverse());const i=function(a,e,n){const t=[],o=n||gs.mix||Ki,r=a.length-1;for(let s=0;s{if(s&&n1)for(;tc(ps(a[0],a[r-1],e)):c}(s,e,{ease:Array.isArray(o)?o:(l=e,c=o,l.map(()=>c||Vs).splice(0,l.length-1))});var l,c;return{calculatedDuration:a,next:e=>(r.value=i(e),r.done=e>=a,r)}}ul.applyToOptions=a=>{const e=al(a,100,ul);return a.ease=e.ease,a.duration=Cs(e.duration),a.type="keyframes",a};const bl=a=>null!==a;function fl(a,{repeat:e,repeatType:n="loop"},t,o=1){const r=a.filter(bl),s=o<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return s&&void 0!==t?t:r[s]}const yl={decay:hl,inertia:hl,tween:gl,keyframes:gl,spring:ul};function vl(a){"string"==typeof a.type&&(a.type=yl[a.type])}class wl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,e){return this.finished.then(a,e)}}const kl=a=>a/100;class xl extends wl{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,e;const{motionValue:n}=this.options;n&&n.updatedAt!==ai.now()&&this.tick(ai.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(a=this.options).onStop)||e.call(a))},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause()}initAnimation(){const{options:a}=this;vl(a);const{type:e=gl,repeat:n=0,repeatDelay:t=0,repeatType:o,velocity:r=0}=a;let{keyframes:s}=a;const i=e||gl;i!==gl&&"number"!=typeof s[0]&&(this.mixKeyframes=xs(kl,Ki(s[0],s[1])),s=[0,100]);const l=i({...a,keyframes:s});"mirror"===o&&(this.mirroredGenerator=i({...a,keyframes:[...s].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Qi(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+t,this.totalDuration=this.resolvedDuration*(n+1)-t,this.generator=l}updateTime(a){const e=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(a,e=!1){const{generator:n,totalDuration:t,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:i}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:h,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-t/this.speed,this.startTime)),e?this.currentTime=a:this.updateTime(a);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),f=this.playbackSpeed>=0?b<0:b>t;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=t);let y=this.currentTime,v=n;if(d){const a=Math.min(this.currentTime,t)/s;let e=Math.floor(a),n=a%1;!n&&a>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===u?(n=1-n,h&&(n-=h/s)):"mirror"===u&&(v=r)),y=ps(0,1,n)*s}const w=f?{done:!1,value:c[0]}:v.next(y);o&&(w.value=o(w.value));let{done:k}=w;f||null===i||(k=this.playbackSpeed>=0?this.currentTime>=t:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return x&&m!==hl&&(w.value=fl(c,this.options,g,this.speed)),p&&p(w.value),x&&this.finish(),w}then(a,e){return this.finished.then(a,e)}get duration(){return As(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+As(a)}get time(){return As(this.currentTime)}set time(a){var e;a=Cs(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(ai.now());const e=this.playbackSpeed!==a;this.playbackSpeed=a,e&&(this.time=As(this.currentTime))}play(){var a,e;if(this.isStopped)return;const{driver:n=Xi,startTime:t}=this.options;this.driver||(this.driver=n(a=>this.tick(a))),null==(e=(a=this.options).onPlay)||e.call(a);const o=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=o):null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime||(this.startTime=t??o),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ai.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(a=this.options).onComplete)||e.call(a)}cancel(){var a,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(a=this.options).onCancel)||e.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),a.observe(this)}}const jl=a=>180*a/Math.PI,zl=a=>{const e=jl(Math.atan2(a[1],a[0]));return Al(e)},Cl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:zl,rotateZ:zl,skewX:a=>jl(Math.atan(a[1])),skewY:a=>jl(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Al=a=>((a%=360)<0&&(a+=360),a),Dl=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),El=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Bl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dl,scaleY:El,scale:a=>(Dl(a)+El(a))/2,rotateX:a=>Al(jl(Math.atan2(a[6],a[5]))),rotateY:a=>Al(jl(Math.atan2(-a[2],a[0]))),rotateZ:zl,rotate:zl,skewX:a=>jl(Math.atan(a[4])),skewY:a=>jl(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Fl(a){return a.includes("scale")?1:0}function ql(a,e){if(!a||"none"===a)return Fl(e);const n=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let t,o;if(n)t=Bl,o=n;else{const e=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);t=Cl,o=e}if(!o)return Fl(e);const r=t[e],s=o[1].split(",").map(Sl);return"function"==typeof r?r(s):s[r]}function Sl(a){return parseFloat(a.trim())}const Ml=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tl=(()=>new Set(Ml))(),Pl=a=>a===ii||a===ki,Ll=new Set(["x","y","z"]),Rl=Ml.filter(a=>!Ll.has(a)),Nl={width:({x:a},{paddingLeft:e="0",paddingRight:n="0"})=>a.max-a.min-parseFloat(e)-parseFloat(n),height:({y:a},{paddingTop:e="0",paddingBottom:n="0"})=>a.max-a.min-parseFloat(e)-parseFloat(n),top:(a,{top:e})=>parseFloat(e),left:(a,{left:e})=>parseFloat(e),bottom:({y:a},{top:e})=>parseFloat(e)+(a.max-a.min),right:({x:a},{left:e})=>parseFloat(e)+(a.max-a.min),x:(a,{transform:e})=>ql(e,"x"),y:(a,{transform:e})=>ql(e,"y")};Nl.translateX=Nl.x,Nl.translateY=Nl.y;const Il=new Set;let _l=!1,Vl=!1,Ol=!1;function $l(){if(Vl){const a=Array.from(Il).filter(a=>a.needsMeasurement),e=new Set(a.map(a=>a.element)),n=new Map;e.forEach(a=>{const e=function(a){const e=[];return Rl.forEach(n=>{const t=a.getValue(n);void 0!==t&&(e.push([n,t.get()]),t.set(n.startsWith("scale")?1:0))}),e}(a);e.length&&(n.set(a,e),a.render())}),a.forEach(a=>a.measureInitialState()),e.forEach(a=>{a.render();const e=n.get(a);e&&e.forEach(([e,n])=>{var t;null==(t=a.getValue(e))||t.set(n)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}Vl=!1,_l=!1,Il.forEach(a=>a.complete(Ol)),Il.clear()}function Wl(){Il.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Vl=!0)})}class Ul{constructor(a,e,n,t,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=e,this.name=n,this.motionValue=t,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Il.add(this),_l||(_l=!0,Gs.read(Wl),Gs.resolveKeyframes($l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:e,element:n,motionValue:t}=this;if(null===a[0]){const o=null==t?void 0:t.get(),r=a[a.length-1];if(void 0!==o)a[0]=o;else if(n&&e){const t=n.readValue(e,r);null!=t&&(a[0]=t)}void 0===a[0]&&(a[0]=r),t&&void 0===o&&t.set(a[0])}!function(a){for(let e=1;evoid 0!==window.ScrollTimeline),Yl={};function Gl(a,e){const n=vs(a);return()=>Yl[e]??n()}const Kl=Gl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),Xl=([a,e,n,t])=>`cubic-bezier(${a}, ${e}, ${n}, ${t})`,Jl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function Zl(a,e){return a?"function"==typeof a?Kl()?Ji(a,e):"ease-out":$s(a)?Xl(a):Array.isArray(a)?a.map(a=>Zl(a,e)||Jl.easeOut):Jl[a]:void 0}function Ql(a,e,n,{delay:t=0,duration:o=300,repeat:r=0,repeatType:s="loop",ease:i="easeOut",times:l}={},c=void 0){const d={[e]:n};l&&(d.offset=l);const u=Zl(i,o);Array.isArray(u)&&(d.easing=u);const h={delay:t,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"};return c&&(h.pseudoElement=c),a.animate(d,h)}function ac(a){return"function"==typeof a&&"applyToOptions"in a}class ec extends wl{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:e,name:n,keyframes:t,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:s,onComplete:i}=a;this.isPseudoElement=Boolean(o),this.allowFlatten=r,this.options=a,a.type;const l=function({type:a,...e}){return ac(a)&&Kl()?a.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(a);this.animation=Ql(e,n,t,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const a=fl(t,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(a):function(a,e,n){(a=>a.startsWith("--"))(e)?a.style.setProperty(e,n):a.style[e]=n}(e,n,a),this.animation.cancel()}null==i||i(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,e;null==(e=(a=this.animation).finish)||e.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,e;this.isPseudoElement||null==(e=(a=this.animation).commitStyles)||e.call(a)}get duration(){var a,e;const n=(null==(e=null==(a=this.animation.effect)?void 0:a.getComputedTiming)?void 0:e.call(a).duration)||0;return As(Number(n))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+As(a)}get time(){return As(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cs(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:e}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&Hl()?(this.animation.timeline=a,ws):e(this)}}const nc={anticipate:Ps,backInOut:Ts,circInOut:Ns};class tc extends ec{constructor(a){var e;"string"==typeof(e=a).ease&&e.ease in nc&&(e.ease=nc[e.ease]),vl(a),super(a),void 0!==a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:e,onUpdate:n,onComplete:t,element:o,...r}=this.options;if(!e)return;if(void 0!==a)return void e.set(a);const s=new xl({...r,autoplay:!1}),i=Math.max(10,ai.now()-this.startTime),l=ps(0,10,i-10);e.setWithVelocity(s.sample(Math.max(0,i-l)).value,s.sample(i).value,l),s.stop()}}const oc=(a,e)=>!("zIndex"===e||"number"!=typeof a&&!Array.isArray(a)&&("string"!=typeof a||!Pi.test(a)&&"0"!==a||a.startsWith("url(")));function rc(a){a.duration=0,a.type="keyframes"}const sc=new Set(["opacity","clipPath","filter","transform"]),ic=vs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class lc extends wl{constructor({autoplay:a=!0,delay:e=0,type:n="keyframes",repeat:t=0,repeatDelay:o=0,repeatType:r="loop",keyframes:s,name:i,motionValue:l,element:c,...d}){var u;super(),this.stop=()=>{var a,e;this._animation&&(this._animation.stop(),null==(a=this.stopTimeline)||a.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=ai.now();const h={autoplay:a,delay:e,type:n,repeat:t,repeatDelay:o,repeatType:r,name:i,motionValue:l,element:c,...d},m=(null==c?void 0:c.KeyframeResolver)||Ul;this.keyframeResolver=new m(s,(a,e,n)=>this.onKeyframesResolved(a,e,h,!n),i,l,c),null==(u=this.keyframeResolver)||u.scheduleResolve()}onKeyframesResolved(a,e,n,t){var o,r;this.keyframeResolver=void 0;const{name:s,type:i,velocity:l,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=ai.now(),function(a,e,n,t){const o=a[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const r=a[a.length-1],s=oc(o,e),i=oc(r,e);return!(!s||!i)&&(function(a){const e=a[0];if(1===a.length)return!0;for(let n=0;n40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:a},m=!d&&function(a){var e;const{motionValue:n,name:t,repeatDelay:o,repeatType:r,damping:s,type:i}=a;if(!((null==(e=null==n?void 0:n.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return ic()&&t&&sc.has(t)&&("transform"!==t||!c)&&!l&&!o&&"mirror"!==r&&0!==s&&"inertia"!==i}(h),p=null==(r=null==(o=h.motionValue)?void 0:o.owner)?void 0:r.current,g=m?new tc({...h,element:p}):new xl(h);g.finished.then(()=>{this.notifyFinished()}).catch(ws),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(a,e){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||(null==(a=this.keyframeResolver)||a.resume(),Ol=!0,Wl(),$l(),Ol=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),null==(a=this.keyframeResolver)||a.cancel()}}function cc(a,e,n,t=0,o=1){const r=Array.from(a).sort((a,e)=>a.sortNodePosition(e)).indexOf(e),s=a.size,i=(s-1)*t;return"function"==typeof n?n(r,s):1===o?r*t:i-r*t}const dc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uc(a,e,n=1){const[t,o]=function(a){const e=dc.exec(a);if(!e)return[,];const[,n,t,o]=e;return[`--${n??t}`,o]}(a);if(!t)return;const r=window.getComputedStyle(e).getPropertyValue(t);if(r){const a=r.trim();return bs(a)?parseFloat(a):a}return oi(o)?uc(o,e,n+1):o}const hc={type:"spring",stiffness:500,damping:25,restSpeed:10},mc={type:"keyframes",duration:.8},pc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gc=a=>null!==a;function bc(a,e){return(null==a?void 0:a[e])??(null==a?void 0:a.default)??a}const fc=(a,e,n,t={},o,r)=>s=>{const i=bc(t,a)||{},l=i.delay||t.delay||0;let{elapsed:c=0}=t;c-=Cs(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...i,delay:-c,onUpdate:a=>{e.set(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:a,motionValue:e,element:r?void 0:o};(function({when:a,delay:e,delayChildren:n,staggerChildren:t,staggerDirection:o,repeat:r,repeatType:s,repeatDelay:i,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(i)||Object.assign(d,((a,{keyframes:e})=>e.length>2?mc:Tl.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:hc:pc)(a,d)),d.duration&&(d.duration=Cs(d.duration)),d.repeatDelay&&(d.repeatDelay=Cs(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(rc(d),0===d.delay&&(u=!0)),(gs.instantAnimations||gs.skipAnimations)&&(u=!0,rc(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,u&&!r&&void 0!==e.get()){const a=function(a,{repeat:e,repeatType:n="loop"}){const t=a.filter(gc);return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(d.keyframes,i);if(void 0!==a)return void Gs.update(()=>{d.onUpdate(a),d.onComplete()})}return i.isSync?new xl(d):new lc(d)};function yc(a){const e=[{},{}];return null==a||a.values.forEach((a,n)=>{e[0][n]=a.get(),e[1][n]=a.getVelocity()}),e}function vc(a,e,n,t){if("function"==typeof e){const[o,r]=yc(t);e=e(void 0!==n?n:a.custom,o,r)}if("string"==typeof e&&(e=a.variants&&a.variants[e]),"function"==typeof e){const[o,r]=yc(t);e=e(void 0!==n?n:a.custom,o,r)}return e}function wc(a,e,n){const t=a.getProps();return vc(t,e,void 0!==n?n:t.custom,a)}const kc=new Set(["width","height","top","left","right","bottom",...Ml]);class xc{constructor(a,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var e;const n=ai.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(null==(e=this.events.change)||e.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=e.owner}setCurrent(a){var e;this.current=a,this.updatedAt=ai.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,e){this.events[a]||(this.events[a]=new zs);const n=this.events[a].add(e);return"change"===a?()=>{n(),Gs.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,e){this.passiveEffect=a,this.stopPassiveEffect=e}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-n}jump(a,e=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;null==(a=this.events.change)||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=ai.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ds(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(a){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=a(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var a,e;null==(a=this.dependents)||a.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jc(a,e){return new xc(a,e)}const zc=a=>Array.isArray(a);function Cc(a,e,n){a.hasValue(e)?a.getValue(e).set(n):a.addValue(e,jc(n))}function Ac(a){return zc(a)?a[a.length-1]||0:a}function Dc(a,e){const n=wc(a,e);let{transitionEnd:t={},transition:o={},...r}=n||{};r={...r,...t};for(const s in r)Cc(a,s,Ac(r[s]))}const Ec=a=>Boolean(a&&a.getVelocity);function Bc(a,e){const n=a.getValue("willChange");if(t=n,Boolean(Ec(t)&&t.add))return n.add(e);if(!n&&gs.WillChange){const n=new gs.WillChange("auto");a.addValue("willChange",n),n.add(e)}var t}function Fc(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const qc="data-"+Fc("framerAppearId");function Sc(a){return a.props[qc]}function Mc({protectedKeys:a,needsAnimating:e},n){const t=a.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,t}function Tc(a,e,{delay:n=0,transitionOverride:t,type:o}={}){let{transition:r=a.getDefaultTransition(),transitionEnd:s,...i}=e;t&&(r=t);const l=[],c=o&&a.animationState&&a.animationState.getState()[o];for(const d in i){const e=a.getValue(d,a.latestValues[d]??null),t=i[d];if(void 0===t||c&&Mc(c,d))continue;const o={delay:n,...bc(r||{},d)},s=e.get();if(void 0!==s&&!e.isAnimating&&!Array.isArray(t)&&t===s&&!o.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const e=Sc(a);if(e){const a=window.MotionHandoffAnimation(e,d,Gs);null!==a&&(o.startTime=a,u=!0)}}Bc(a,d),e.start(fc(d,e,t,a.shouldReduceMotion&&kc.has(d)?{type:!1}:o,a,u));const h=e.animation;h&&l.push(h)}return s&&Promise.all(l).then(()=>{Gs.update(()=>{s&&Dc(a,s)})}),l}function Pc(a,e,n={}){var t;const o=wc(a,e,"exit"===n.type?null==(t=a.presenceContext)?void 0:t.custom:void 0);let{transition:r=a.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const s=o?()=>Promise.all(Tc(a,o,n)):()=>Promise.resolve(),i=a.variantChildren&&a.variantChildren.size?(t=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=r;return function(a,e,n=0,t=0,o=0,r=1,s){const i=[];for(const l of a.variantChildren)l.notify("AnimationStart",e),i.push(Pc(l,e,{...s,delay:n+("function"==typeof t?0:t)+cc(a.variantChildren,l,t,o,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(i)}(a,e,t,o,s,i,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[a,e]="beforeChildren"===l?[s,i]:[i,s];return a().then(()=>e())}return Promise.all([s(),i(n.delay)])}function Lc(a,e,n={}){let t;if(a.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Pc(a,e,n));t=Promise.all(o)}else if("string"==typeof e)t=Pc(a,e,n);else{const o="function"==typeof e?wc(a,e,n.custom):e;t=Promise.all(Tc(a,o,n))}return t.then(()=>{a.notify("AnimationComplete",e)})}const Rc=a=>e=>e.test(a),Nc=[ii,ki,wi,vi,ji,xi,{test:a=>"auto"===a,parse:a=>a}],Ic=a=>Nc.find(Rc(a));function _c(a){return"number"==typeof a?0===a:null===a||"none"===a||"0"===a||ys(a)}const Vc=new Set(["brightness","contrast","saturate","opacity"]);function Oc(a){const[e,n]=a.slice(0,-1).split("(");if("drop-shadow"===e)return a;const[t]=n.match(ui)||[];if(!t)return a;const o=n.replace(t,"");let r=Vc.has(e)?1:0;return t!==n&&(r*=100),e+"("+r+o+")"}const $c=/\b([a-z-]*)\(.*?\)/gu,Wc={...Pi,getAnimatableNone:a=>{const e=a.match($c);return e?e.map(Oc).join(" "):a}},Uc={...ii,transform:Math.round},Hc={borderWidth:ki,borderTopWidth:ki,borderRightWidth:ki,borderBottomWidth:ki,borderLeftWidth:ki,borderRadius:ki,borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomRightRadius:ki,borderBottomLeftRadius:ki,width:ki,maxWidth:ki,height:ki,maxHeight:ki,top:ki,right:ki,bottom:ki,left:ki,inset:ki,insetBlock:ki,insetBlockStart:ki,insetBlockEnd:ki,insetInline:ki,insetInlineStart:ki,insetInlineEnd:ki,padding:ki,paddingTop:ki,paddingRight:ki,paddingBottom:ki,paddingLeft:ki,paddingBlock:ki,paddingBlockStart:ki,paddingBlockEnd:ki,paddingInline:ki,paddingInlineStart:ki,paddingInlineEnd:ki,margin:ki,marginTop:ki,marginRight:ki,marginBottom:ki,marginLeft:ki,marginBlock:ki,marginBlockStart:ki,marginBlockEnd:ki,marginInline:ki,marginInlineStart:ki,marginInlineEnd:ki,fontSize:ki,backgroundPositionX:ki,backgroundPositionY:ki,rotate:vi,rotateX:vi,rotateY:vi,rotateZ:vi,scale:ci,scaleX:ci,scaleY:ci,scaleZ:ci,skew:vi,skewX:vi,skewY:vi,distance:ki,translateX:ki,translateY:ki,translateZ:ki,x:ki,y:ki,z:ki,perspective:ki,transformPerspective:ki,opacity:li,originX:zi,originY:zi,originZ:ki,zIndex:Uc,fillOpacity:li,strokeOpacity:li,numOctaves:Uc},Yc={...Hc,color:Ai,backgroundColor:Ai,outlineColor:Ai,fill:Ai,stroke:Ai,borderColor:Ai,borderTopColor:Ai,borderRightColor:Ai,borderBottomColor:Ai,borderLeftColor:Ai,filter:Wc,WebkitFilter:Wc},Gc=a=>Yc[a];function Kc(a,e){let n=Gc(a);return n!==Wc&&(n=Pi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Xc=new Set(["auto","none","0"]);class Jc extends Ul{constructor(a,e,n,t,o){super(a,e,n,t,o,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(a).set(n)}),this.resolveNoneKeyframes()}}function Zc(a,e,n){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let e=document;const t=(null==n?void 0:n[a])??e.querySelectorAll(a);return t?Array.from(t):[]}return Array.from(a).filter(a=>null!=a)}const Qc=(a,e)=>e&&"number"==typeof a?e.transform(a):a;function ad(a){return fs(a)&&"offsetHeight"in a}const{schedule:ed}=Ys(queueMicrotask,!1),nd={x:!1,y:!1};function td(){return nd.x||nd.y}function od(a,e){const n=Zc(a),t=new AbortController;return[n,{passive:!0,...e,signal:t.signal},()=>t.abort()]}function rd(a){return!("touch"===a.pointerType||td())}const sd=(a,e)=>!!e&&(a===e||sd(a,e.parentElement)),id=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary,ld=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cd(a){return ld.has(a.tagName)||!0===a.isContentEditable}const dd=new WeakSet;function ud(a){return e=>{"Enter"===e.key&&a(e)}}function hd(a,e){a.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function md(a){return id(a)&&!td()}function pd(a){return fs(a)&&"ownerSVGElement"in a}function gd(a){return pd(a)&&"svg"===a.tagName}const bd=[...Nc,Ai,Pi],fd=()=>({x:{min:0,max:0},y:{min:0,max:0}}),yd={current:null},vd={current:!1},wd="undefined"!=typeof window,kd=new WeakMap;function xd(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function jd(a){return"string"==typeof a||Array.isArray(a)}const zd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cd=["initial",...zd];function Ad(a){return xd(a.animate)||Cd.some(e=>jd(a[e]))}function Dd(a){return Boolean(Ad(a)||a.variants)}const Ed=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Bd={};function Fd(a){Bd=a}class qd{scrapeMotionValuesFromProps(a,e,n){return{}}constructor({parent:a,props:e,presenceContext:n,reducedMotionConfig:t,blockInitialAnimation:o,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ul,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const a=ai.now();this.renderScheduledAtthis.bindToMotionValue(e,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(vd.current||function(){if(vd.current=!0,wd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),e=()=>yd.current=a.matches;a.addEventListener("change",e),e()}else yd.current=!1}(),this.shouldReduceMotion=yd.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),Ks(this.notifyUpdate),Ks(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(a=this.parent)||a.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const a=this.features[e];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,e){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const n=Tl.has(a);n&&this.onBindTransform&&this.onBindTransform();const t=e.on("change",e=>{this.latestValues[a]=e,this.props.onUpdate&&Gs.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,a,e)),this.valueSubscriptions.set(a,()=>{t(),o&&o(),e.owner&&e.stop()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in Bd){const e=Bd[a];if(!e)continue;const{isEnabled:n,Feature:t}=e;if(!this.features[a]&&t&&n(this.props)&&(this.features[a]=new t(this)),this.features[a]){const e=this.features[a];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,e){this.latestValues[a]=e}update(a,e){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;ne.variantChildren.delete(a)}addValue(a,e){const n=this.values.get(a);e!==n&&(n&&this.removeValue(a),this.bindToMotionValue(a,e),this.values.set(a,e),this.latestValues[a]=e.get())}removeValue(a){this.values.delete(a);const e=this.valueSubscriptions.get(a);e&&(e(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,e){if(this.props.values&&this.props.values[a])return this.props.values[a];let n=this.values.get(a);return void 0===n&&void 0!==e&&(n=jc(null===e?void 0:e,{owner:this}),this.addValue(a,n)),n}readValue(a,e){let n=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];var t;return null!=n&&("string"==typeof n&&(bs(n)||ys(n))?n=parseFloat(n):(t=n,!bd.find(Rc(t))&&Pi.test(e)&&(n=Kc(a,e))),this.setBaseTarget(a,Ec(n)?n.get():n)),Ec(n)?n.get():n}setBaseTarget(a,e){this.baseTarget[a]=e}getBaseTarget(a){var e;const{initial:n}=this.props;let t;if("string"==typeof n||"object"==typeof n){const o=vc(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);o&&(t=o[a])}if(n&&void 0!==t)return t;const o=this.getBaseTargetFromProps(this.props,a);return void 0===o||Ec(o)?void 0!==this.initialValues[a]&&void 0===t?void 0:this.baseTarget[a]:o}on(a,e){return this.events[a]||(this.events[a]=new zs),this.events[a].add(e)}notify(a,...e){this.events[a]&&this.events[a].notify(...e)}scheduleRenderMicrotask(){ed.render(this.render)}}class Sd extends qd{constructor(){super(...arguments),this.KeyframeResolver=Jc}sortInstanceNodePosition(a,e){return 2&a.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(a,e){const n=a.style;return n?n[e]:void 0}removeValueFromRenderState(a,{vars:e,style:n}){delete e[a],delete n[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Ec(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class Md{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Td({top:a,left:e,right:n,bottom:t}){return{x:{min:e,max:n},y:{min:a,max:t}}}function Pd(a){return void 0===a||1===a}function Ld({scale:a,scaleX:e,scaleY:n}){return!Pd(a)||!Pd(e)||!Pd(n)}function Rd(a){return Ld(a)||Nd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Nd(a){return Id(a.x)||Id(a.y)}function Id(a){return a&&"0%"!==a}function _d(a,e,n){return n+e*(a-n)}function Vd(a,e,n,t,o){return void 0!==o&&(a=_d(a,o,t)),_d(a,n,t)+e}function Od(a,e=0,n=1,t,o){a.min=Vd(a.min,e,n,t,o),a.max=Vd(a.max,e,n,t,o)}function $d(a,{x:e,y:n}){Od(a.x,e.translate,e.scale,e.originPoint),Od(a.y,n.translate,n.scale,n.originPoint)}const Wd=.999999999999,Ud=1.0000000000001;function Hd(a,e){a.min=a.min+e,a.max=a.max+e}function Yd(a,e,n,t,o=.5){Od(a,e,n,Ni(a.min,a.max,o),t)}function Gd(a,e){Yd(a.x,e.x,e.scaleX,e.scale,e.originX),Yd(a.y,e.y,e.scaleY,e.scale,e.originY)}function Kd(a,e){return Td(function(a,e){if(!e)return a;const n=e({x:a.left,y:a.top}),t=e({x:a.right,y:a.bottom});return{top:n.y,left:n.x,bottom:t.y,right:t.x}}(a.getBoundingClientRect(),e))}const Xd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jd=Ml.length;function Zd(a,e,n){const{style:t,vars:o,transformOrigin:r}=a;let s=!1,i=!1;for(const l in e){const a=e[l];if(Tl.has(l))s=!0;else if(ni(l))o[l]=a;else{const e=Qc(a,Hc[l]);l.startsWith("origin")?(i=!0,r[l]=e):t[l]=e}}if(e.transform||(s||n?t.transform=function(a,e,n){let t="",o=!0;for(let r=0;r{if(!e.target)return a;if("string"==typeof a){if(!ki.test(a))return a;a=parseFloat(a)}return`${au(a,e.target.x)}% ${au(a,e.target.y)}%`}},nu={correct:(a,{treeScale:e,projectionDelta:n})=>{const t=a,o=Pi.parse(a);if(o.length>5)return t;const r=Pi.createTransformer(a),s="number"!=typeof o[0]?1:0,i=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=i,o[1+s]/=l;const c=Ni(i,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),r(o)}},tu={borderRadius:{...eu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomLeftRadius:eu,borderBottomRightRadius:eu,boxShadow:nu};function ou(a){for(const e in a)tu[e]=a[e],ni(e)&&(tu[e].isCSSVariable=!0)}function ru(a,{layout:e,layoutId:n}){return Tl.has(a)||a.startsWith("origin")||(e||void 0!==n)&&(!!tu[a]||"opacity"===a)}function su(a,e,n){var t;const o=a.style,r=null==e?void 0:e.style,s={};if(!o)return s;for(const i in o)(Ec(o[i])||r&&Ec(r[i])||ru(i,a)||void 0!==(null==(t=null==n?void 0:n.getValue(i))?void 0:t.liveStyle))&&(s[i]=o[i]);return s}class iu extends Sd{constructor(){super(...arguments),this.type="html",this.renderInstance=Qd}readValueFromInstance(a,e){var n,t;if(Tl.has(e))return(null==(n=this.projection)?void 0:n.isProjecting)?Fl(e):((a,e)=>{const{transform:n="none"}=getComputedStyle(a);return ql(n,e)})(a,e);{const n=(t=a,window.getComputedStyle(t)),o=(ni(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof o?o.trim():o}}measureInstanceViewportBox(a,{transformPagePoint:e}){return Kd(a,e)}build(a,e,n){Zd(a,e,n.transformTemplate)}scrapeMotionValuesFromProps(a,e,n){return su(a,e,n)}}const lu={offset:"stroke-dashoffset",array:"stroke-dasharray"},cu={offset:"strokeDashoffset",array:"strokeDasharray"},du=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uu(a,{attrX:e,attrY:n,attrScale:t,pathLength:o,pathSpacing:r=1,pathOffset:s=0,...i},l,c,d){if(Zd(a,i,c),l)return void(a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox));a.attrs=a.style,a.style={};const{attrs:u,style:h}=a;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(null==d?void 0:d.transformBox)??"fill-box",delete u.transformBox);for(const m of du)void 0!==u[m]&&(h[m]=u[m],delete u[m]);void 0!==e&&(u.x=e),void 0!==n&&(u.y=n),void 0!==t&&(u.scale=t),void 0!==o&&function(a,e,n=1,t=0,o=!0){a.pathLength=1;const r=o?lu:cu;a[r.offset]=""+-t,a[r.array]=`${e} ${n}`}(u,o,r,s,!1)}const hu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),mu=a=>"string"==typeof a&&"svg"===a.toLowerCase();function pu(a,e,n){const t=su(a,e,n);for(const o in a)(Ec(a[o])||Ec(e[o]))&&(t[-1!==Ml.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=a[o]);return t}class gu extends Sd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fd}getBaseTargetFromProps(a,e){return a[e]}readValueFromInstance(a,e){if(Tl.has(e)){const a=Gc(e);return a&&a.default||0}return e=hu.has(e)?e:Fc(e),a.getAttribute(e)}scrapeMotionValuesFromProps(a,e,n){return pu(a,e,n)}build(a,e,n){uu(a,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(a,e,n,t){!function(a,e,n,t){Qd(a,e,void 0,t);for(const o in e.attrs)a.setAttribute(hu.has(o)?o:Fc(o),e.attrs[o])}(a,e,0,t)}mount(a){this.isSVGTag=mu(a.tagName),super.mount(a)}}const bu=Cd.length;function fu(a){if(!a)return;if(!a.isControllingVariants){const e=a.parent&&fu(a.parent)||{};return void 0!==a.props.initial&&(e.initial=a.props.initial),e}const e={};for(let n=0;nPromise.all(e.map(({animation:e,options:n})=>Lc(a,e,n)))}(a),n=zu(),t=!0;const o=e=>(n,t)=>{var o;const r=wc(a,t,"exit"===e?null==(o=a.presenceContext)?void 0:o.custom:void 0);if(r){const{transition:a,transitionEnd:e,...t}=r;n={...n,...t,...e}}return n};function r(r){const{props:s}=a,i=fu(a.parent)||{},l=[],c=new Set;let d={},u=1/0;for(let e=0;eu&&g,w=!1;const k=Array.isArray(p)?p:[p];let x=k.reduce(o(h),{});!1===b&&(x={});const{prevResolvedValues:j={}}=m,z={...j,...x},C=e=>{v=!0,c.has(e)&&(w=!0,c.delete(e)),m.needsAnimating[e]=!0;const n=a.getValue(e);n&&(n.liveStyle=!1)};for(const a in z){const e=x[a],n=j[a];if(d.hasOwnProperty(a))continue;let t=!1;t=zc(e)&&zc(n)?!yu(e,n):e!==n,t?null!=e?C(a):c.add(a):void 0!==e&&c.has(a)?C(a):m.protectedKeys[a]=!0}m.prevProp=p,m.prevResolvedValues=x,m.isActive&&(d={...d,...x}),t&&a.blockInitialAnimation&&(v=!1);const A=f&&y;v&&(!A||w)&&l.push(...k.map(e=>{const n={type:h};if("string"==typeof e&&t&&!A&&a.manuallyAnimateOnMount&&a.parent){const{parent:t}=a,o=wc(t,e);if(t.enteringChildren&&o){const{delayChildren:e}=o.transition||{};n.delay=cc(t.enteringChildren,a,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof s.initial){const n=wc(a,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const t=a.getBaseTarget(n),o=a.getValue(n);o&&(o.liveStyle=!0),e[n]=t??null}),l.push({animation:e})}let h=Boolean(l.length);return!t||!1!==s.initial&&s.initial!==s.animate||a.manuallyAnimateOnMount||(h=!1),t=!1,h?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,t){var o;if(n[e].isActive===t)return Promise.resolve();null==(o=a.variantChildren)||o.forEach(a=>{var n;return null==(n=a.animationState)?void 0:n.setActive(e,t)}),n[e].isActive=t;const s=r(e);for(const a in n)n[a].protectedKeys={};return s},setAnimateFunction:function(n){e=n(a)},getState:()=>n,reset:()=>{n=zu()}}}function xu(a,e){return"string"==typeof e?e!==a:!!Array.isArray(e)&&!yu(e,a)}function ju(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zu(){return{animate:ju(!0),whileInView:ju(),whileHover:ju(),whileTap:ju(),whileDrag:ju(),whileFocus:ju(),exit:ju()}}function Cu(a,e){a.min=e.min,a.max=e.max}function Au(a,e){Cu(a.x,e.x),Cu(a.y,e.y)}function Du(a,e){a.translate=e.translate,a.scale=e.scale,a.originPoint=e.originPoint,a.origin=e.origin}function Eu(a){return a.max-a.min}function Bu(a,e,n,t=.5){a.origin=t,a.originPoint=Ni(e.min,e.max,a.origin),a.scale=Eu(n)/Eu(e),a.translate=Ni(n.min,n.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function Fu(a,e,n,t){Bu(a.x,e.x,n.x,t?t.originX:void 0),Bu(a.y,e.y,n.y,t?t.originY:void 0)}function qu(a,e,n){a.min=n.min+e.min,a.max=a.min+Eu(e)}function Su(a,e,n){a.min=e.min-n.min,a.max=a.min+Eu(e)}function Mu(a,e,n){Su(a.x,e.x,n.x),Su(a.y,e.y,n.y)}function Tu(a,e,n,t,o){return a=_d(a-=e,1/n,t),void 0!==o&&(a=_d(a,1/o,t)),a}function Pu(a,e,[n,t,o],r,s){!function(a,e=0,n=1,t=.5,o,r=a,s=a){if(wi.test(e)&&(e=parseFloat(e),e=Ni(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let i=Ni(r.min,r.max,t);a===r&&(i-=e),a.min=Tu(a.min,e,n,i,o),a.max=Tu(a.max,e,n,i,o)}(a,e[n],e[t],e[o],e.scale,r,s)}const Lu=["x","scaleX","originX"],Ru=["y","scaleY","originY"];function Nu(a,e,n,t){Pu(a.x,e,Lu,n?n.x:void 0,t?t.x:void 0),Pu(a.y,e,Ru,n?n.y:void 0,t?t.y:void 0)}function Iu(a){return 0===a.translate&&1===a.scale}function _u(a){return Iu(a.x)&&Iu(a.y)}function Vu(a,e){return a.min===e.min&&a.max===e.max}function Ou(a,e){return Math.round(a.min)===Math.round(e.min)&&Math.round(a.max)===Math.round(e.max)}function $u(a,e){return Ou(a.x,e.x)&&Ou(a.y,e.y)}function Wu(a){return Eu(a.x)/Eu(a.y)}function Uu(a,e){return a.translate===e.translate&&a.scale===e.scale&&a.originPoint===e.originPoint}function Hu(a){return[a("x"),a("y")]}const Yu=["TopLeft","TopRight","BottomLeft","BottomRight"],Gu=Yu.length,Ku=a=>"string"==typeof a?parseFloat(a):a,Xu=a=>"number"==typeof a||ki.test(a);function Ju(a,e){return void 0!==a[e]?a[e]:a.borderRadius}const Zu=ah(0,.5,Rs),Qu=ah(.5,.95,ws);function ah(a,e,n){return t=>te?1:n(js(a,e,t))}function eh(a,e,n){const t=Ec(a)?a:jc(a);return t.start(fc("",t,e,n)),t.animation}function nh(a,e,n,t={passive:!0}){return a.addEventListener(e,n,t),()=>a.removeEventListener(e,n)}const th=(a,e)=>a.depth-e.depth;class oh{constructor(){this.children=[],this.isDirty=!1}add(a){hs(this.children,a),this.isDirty=!0}remove(a){ms(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(th),this.isDirty=!1,this.children.forEach(a)}}function rh(a,e){const n=ai.now(),t=({timestamp:o})=>{const r=o-n;r>=e&&(Ks(t),a(r-e))};return Gs.setup(t,!0),()=>Ks(t)}function sh(a){return Ec(a)?a.get():a}class ih{constructor(){this.members=[]}add(a){hs(this.members,a),a.scheduleRender()}remove(a){if(ms(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){const e=this.members.findIndex(e=>a===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const a=this.members[t];if(!1!==a.isPresent){n=a;break}}return!!n&&(this.promote(n),!0)}promote(a,e){const n=this.lead;if(a!==n&&(this.prevLead=n,this.lead=a,a.show(),n)){n.instance&&n.scheduleRender(),a.scheduleRender();const t=n.options.layoutDependency,o=a.options.layoutDependency;void 0!==t&&void 0!==o&&t===o||(a.resumeFrom=n,e&&(a.resumeFrom.preserveOpacity=!0),n.snapshot&&(a.snapshot=n.snapshot,a.snapshot.latestValues=n.animationValues||n.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));const{crossfade:r}=a.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:e,resumingFrom:n}=a;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const lh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ch=["","X","Y","Z"];let dh=0;function uh(a,e,n,t){const{latestValues:o}=e;o[a]&&(n[a]=o[a],e.setStaticValue(a,0),t&&(t[a]=0))}function hh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:e}=a.options;if(!e)return;const n=Sc(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:t}=a.options;window.MotionCancelOptimisedAnimation(n,"transform",Gs,!(e||t))}const{parent:t}=a;t&&!t.hasCheckedOptimisedAppear&&hh(t)}function mh({attachResizeListener:a,defaultParent:e,measureScroll:n,checkIsScrollRoot:t,resetTransform:o}){return class{constructor(a={},n=(null==e?void 0:e())){this.id=dh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(bh),this.nodes.forEach(jh),this.nodes.forEach(zh),this.nodes.forEach(fh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;Gs.read(()=>{t=window.innerWidth}),a(e,()=>{const a=window.innerWidth;a!==t&&(t=a,this.root.updateBlockedByResize=!0,n&&n(),n=rh(o,250),lh.hasAnimatedSinceResize&&(lh.hasAnimatedSinceResize=!1,this.nodes.forEach(xh)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||t)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:t})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||Fh,{onLayoutAnimationStart:s,onLayoutAnimationComplete:i}=o.getProps(),l=!this.targetLayout||!$u(this.targetLayout,t),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...bc(r,"layout"),onPlay:s,onComplete:i};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(a,c)}else e||xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=t})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ks(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ch),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Eu(this.snapshot.measuredBox.x)||Eu(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;nWd&&(e.x=1),e.yWd&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Du(this.prevProjectionDelta.x,this.projectionDelta.x),Du(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Fu(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===i&&Uu(this.projectionDelta.x,this.prevProjectionDelta.x)&&Uu(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),a){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(a,e=!1){const n=this.snapshot,t=n?n.latestValues:{},o={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s={x:{min:0,max:0},y:{min:0,max:0}},i=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(i&&!c&&!0===this.options.crossfade&&!this.path.some(Bh));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,m,p,g,b;Dh(r.x,a.x,n),Dh(r.y,a.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mu(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,g=s,b=n,Eh(m.x,p.x,g.x,b),Eh(m.y,p.y,g.y,b),u&&(l=this.relativeTarget,h=u,Vu(l.x,h.x)&&Vu(l.y,h.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Au(u,this.relativeTarget)),i&&(this.animationValues=o,function(a,e,n,t,o,r){o?(a.opacity=Ni(0,n.opacity??1,Zu(t)),a.opacityExit=Ni(e.opacity??1,0,Qu(t))):r&&(a.opacity=Ni(e.opacity??1,n.opacity??1,t));for(let s=0;s{lh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jc(0)),this.currentAnimation=eh(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),a.onUpdate&&a.onUpdate(e)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:e,target:n,layout:t,latestValues:o}=a;if(e&&n&&t){if(this!==a&&this.layout&&t&&Th(this.options.animationType,this.layout.layoutBox,t.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Eu(this.layout.layoutBox.x);n.x.min=a.target.x.min,n.x.max=n.x.min+e;const t=Eu(this.layout.layoutBox.y);n.y.min=a.target.y.min,n.y.max=n.y.min+t}Au(e,n),Gd(e,o),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(a,e){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ih),this.sharedNodes.get(a).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const a=this.getStack();return!a||a.lead===this}getLead(){var a;const{layoutId:e}=this.options;return e&&(null==(a=this.getStack())?void 0:a.lead)||this}getPrevLead(){var a;const{layoutId:e}=this.options;return e?null==(a=this.getStack())?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:e,preserveFollowOpacity:n}={}){const t=this.getStack();t&&t.promote(this,n),a&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let e=!1;const{latestValues:n}=a;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const t={};n.z&&uh("z",a,t,this.animationValues);for(let o=0;o{var e;return null==(e=a.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(vh),this.root.sharedNodes.clear()}}}function ph(a){a.updateLayout()}function gh(a){var e;const n=(null==(e=a.resumeFrom)?void 0:e.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:t}=a.layout,{animationType:o}=a.options,r=n.source!==a.layout.source;"size"===o?Hu(a=>{const t=r?n.measuredBox[a]:n.layoutBox[a],o=Eu(t);t.min=e[a].min,t.max=t.min+o}):Th(o,n.layoutBox,e)&&Hu(t=>{const o=r?n.measuredBox[t]:n.layoutBox[t],s=Eu(e[t]);o.max=o.min+s,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[t].max=a.relativeTarget[t].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Fu(s,e,n.layoutBox);const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Fu(i,a.applyTransform(t,!0),n.measuredBox):Fu(i,e,n.layoutBox);const l=!_u(s);let c=!1;if(!a.resumeFrom){const t=a.getClosestProjectingParent();if(t&&!t.resumeFrom){const{snapshot:o,layout:r}=t;if(o&&r){const s={x:{min:0,max:0},y:{min:0,max:0}};Mu(s,n.layoutBox,o.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};Mu(i,e,r.layoutBox),$u(s,i)||(c=!0),t.options.layoutRoot&&(a.relativeTarget=i,a.relativeTargetOrigin=s,a.relativeParent=t)}}}a.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(a.isLead()){const{onExitComplete:e}=a.options;e&&e()}a.options.transition=void 0}function bh(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=Boolean(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fh(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function yh(a){a.clearSnapshot()}function vh(a){a.clearMeasurements()}function wh(a){a.isLayoutDirty=!1}function kh(a){const{visualElement:e}=a.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),a.resetTransform()}function xh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function jh(a){a.resolveTargetDelta()}function zh(a){a.calcProjection()}function Ch(a){a.resetSkewAndRotation()}function Ah(a){a.removeLeadSnapshot()}function Dh(a,e,n){a.translate=Ni(e.translate,0,n),a.scale=Ni(e.scale,1,n),a.origin=e.origin,a.originPoint=e.originPoint}function Eh(a,e,n,t){a.min=Ni(e.min,n.min,t),a.max=Ni(e.max,n.max,t)}function Bh(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}const Fh={duration:.45,ease:[.4,0,.1,1]},qh=a=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Sh=qh("applewebkit/")&&!qh("chrome/")?Math.round:ws;function Mh(a){a.min=Sh(a.min),a.max=Sh(a.max)}function Th(a,e,n){return"position"===a||"preserve-aspect"===a&&(t=Wu(e),o=Wu(n),!(Math.abs(t-o)<=.2));var t,o}function Ph(a){var e;return a!==a.root&&(null==(e=a.scroll)?void 0:e.wasRoot)}const Lh=mh({attachResizeListener:(a,e)=>nh(a,"resize",e),measureScroll:()=>{var a,e;return{x:document.documentElement.scrollLeft||(null==(a=document.body)?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Rh=a=>!a.isLayoutDirty&&a.willUpdate(!1);function Nh(){const a=new Set,e=new WeakMap,n=()=>a.forEach(Rh);return{add:t=>{a.add(t),e.set(t,t.addEventListener("willUpdate",n))},remove:t=>{a.delete(t);const o=e.get(t);o&&(o(),e.delete(t)),n()},dirty:n}}const Ih={current:void 0},_h=mh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Ih.current){const a=new Lh({});a.mount(window),a.setOptions({layoutScroll:!0}),Ih.current=a}return Ih.current},resetTransform:(a,e)=>{a.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:a=>Boolean("fixed"===window.getComputedStyle(a).position)}),Vh=o.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Oh(a,e){if("function"==typeof a)return a(e);null!=a&&(a.current=e)}class $h extends o.Component{getSnapshotBeforeUpdate(a){const e=this.props.childRef.current;if(e&&a.isPresent&&!this.props.isPresent){const a=e.offsetParent,n=ad(a)&&a.offsetWidth||0,t=ad(a)&&a.offsetHeight||0,o=this.props.sizeRef.current;o.height=e.offsetHeight||0,o.width=e.offsetWidth||0,o.top=e.offsetTop,o.left=e.offsetLeft,o.right=n-o.width-o.left,o.bottom=t-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Wh({children:a,isPresent:e,anchorX:n,anchorY:t,root:s}){var i;const l=o.useId(),c=o.useRef(null),d=o.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=o.useContext(Vh),h=(null==(i=a.props)?void 0:i.ref)??(null==a?void 0:a.ref),m=function(...a){return o.useCallback(function(...a){return e=>{let n=!1;const t=a.map(a=>{const t=Oh(a,e);return n||"function"!=typeof t||(n=!0),t});if(n)return()=>{for(let e=0;e{const{width:a,height:o,top:r,left:i,right:h,bottom:m}=d.current;if(e||!c.current||!a||!o)return;const p="left"===n?`left: ${i}`:`right: ${h}`,g="bottom"===t?`bottom: ${m}`:`top: ${r}`;c.current.dataset.motionPopId=l;const b=document.createElement("style");u&&(b.nonce=u);const f=s??document.head;return f.appendChild(b),b.sheet&&b.sheet.insertRule(`\n [data-motion-pop-id="${l}"] {\n position: absolute !important;\n width: ${a}px !important;\n height: ${o}px !important;\n ${p}px !important;\n ${g}px !important;\n }\n `),()=>{f.contains(b)&&f.removeChild(b)}},[e]),r.jsx($h,{isPresent:e,childRef:c,sizeRef:d,children:o.cloneElement(a,{ref:m})})}const Uh=({children:a,initial:e,isPresent:n,onExitComplete:t,custom:s,presenceAffectsLayout:i,mode:l,anchorX:c,anchorY:d,root:u})=>{const h=ls(Hh),m=o.useId();let p=!0,g=o.useMemo(()=>(p=!1,{id:m,initial:e,isPresent:n,custom:s,onExitComplete:a=>{h.set(a,!0);for(const e of h.values())if(!e)return;t&&t()},register:a=>(h.set(a,!1),()=>h.delete(a))}),[n,h,t]);return i&&p&&(g={...g}),o.useMemo(()=>{h.forEach((a,e)=>h.set(e,!1))},[n]),o.useEffect(()=>{!n&&!h.size&&t&&t()},[n]),"popLayout"===l&&(a=r.jsx(Wh,{isPresent:n,anchorX:c,anchorY:d,root:u,children:a})),r.jsx(us.Provider,{value:g,children:a})};function Hh(){return new Map}function Yh(a=!0){const e=o.useContext(us);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:t,register:r}=e,s=o.useId();o.useEffect(()=>{if(a)return r(s)},[a]);const i=o.useCallback(()=>a&&t&&t(s),[s,t,a]);return!n&&t?[!1,i]:[!0]}function Gh(){return null===(a=o.useContext(us))||a.isPresent;var a}const Kh=a=>a.key||"";function Xh(a){const e=[];return o.Children.forEach(a,a=>{o.isValidElement(a)&&e.push(a)}),e}const Jh=({children:a,custom:e,initial:n=!0,onExitComplete:t,presenceAffectsLayout:s=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",anchorY:d="top",root:u})=>{const[h,m]=Yh(l),p=o.useMemo(()=>Xh(a),[a]),g=l&&!h?[]:p.map(Kh),b=o.useRef(!0),f=o.useRef(p),y=ls(()=>new Map),v=o.useRef(new Set),[w,k]=o.useState(p),[x,j]=o.useState(p);ds(()=>{b.current=!1,f.current=p;for(let a=0;a{const o=Kh(a),w=!(l&&!h)&&(p===x||g.includes(o));return r.jsx(Uh,{isPresent:w,initial:!(b.current&&!n)&&void 0,custom:e,presenceAffectsLayout:s,mode:i,root:u,onExitComplete:w?void 0:()=>{if(v.current.has(o))return;if(v.current.add(o),!y.has(o))return;y.set(o,!0);let a=!0;y.forEach(e=>{e||(a=!1)}),a&&(null==C||C(),j(f.current),l&&(null==m||m()),t&&t())},anchorX:c,anchorY:d,children:a},o)})})},Zh=o.createContext(null);const Qh=a=>!0===a,am=({children:a,id:e,inherit:n=!0})=>{const t=o.useContext(is),s=o.useContext(Zh),[i,l]=function(){const a=function(){const a=o.useRef(!1);return ds(()=>(a.current=!0,()=>{a.current=!1}),[]),a}(),[e,n]=o.useState(0),t=o.useCallback(()=>{a.current&&n(e+1)},[e]);return[o.useCallback(()=>Gs.postRender(t),[t]),e]}(),c=o.useRef(null),d=t.id||s;null===c.current&&((a=>Qh(!0===a)||"id"===a)(n)&&d&&(e=e?d+"-"+e:d),c.current={id:e,group:Qh(n)&&t.group||Nh()});const u=o.useMemo(()=>({...c.current,forceRender:i}),[l]);return r.jsx(is.Provider,{value:u,children:a})},em=o.createContext({strict:!1}),nm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let tm=!1;function om(){return function(){if(tm)return;const a={};for(const e in nm)a[e]={isEnabled:a=>nm[e].some(e=>!!a[e])};Fd(a),tm=!0}(),Bd}const rm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sm(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||rm.has(a)}let im=a=>!sm(a);function lm(a){"function"==typeof a&&(im=e=>e.startsWith("on")?!sm(e):a(e))}try{lm(require("@emotion/is-prop-valid").default)}catch{}const cm=o.createContext({});function dm(a){return Array.isArray(a)?a.join(" "):a}function um(a,e,n){for(const t in e)Ec(e[t])||ru(t,n)||(a[t]=e[t])}function hm(a,e){const n={},t=function(a,e){const n={};return um(n,a.style||{},a),Object.assign(n,function({transformTemplate:a},e){return o.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Zd(n,e,a),Object.assign({},n.vars,n.style)},[e])}(a,e)),n}(a,e);return a.drag&&!1!==a.dragListener&&(n.draggable=!1,t.userSelect=t.WebkitUserSelect=t.WebkitTouchCallout="none",t.touchAction=!0===a.drag?"none":"pan-"+("x"===a.drag?"y":"x")),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(n.tabIndex=0),n.style=t,n}function mm(a,e,n,t){const r=o.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return uu(n,e,mu(t),a.transformTemplate,a.style),{...n.attrs,style:{...n.style}}},[e]);if(a.style){const e={};um(e,a.style,a),r.style={...e,...r.style}}return r}const pm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function gm(a){return"string"==typeof a&&!a.includes("-")&&!!(pm.indexOf(a)>-1||/[A-Z]/u.test(a))}function bm(a,e,n,{latestValues:t},r,s=!1,i){const l=(i??gm(a)?mm:hm)(e,t,r,a),c=function(a,e,n){const t={};for(const o in a)"values"===o&&"object"==typeof a.values||(im(o)||!0===n&&sm(o)||!e&&!sm(o)||a.draggable&&o.startsWith("onDrag"))&&(t[o]=a[o]);return t}(e,"string"==typeof a,s),d=a!==o.Fragment?{...c,...l,ref:n}:{},{children:u}=e,h=o.useMemo(()=>Ec(u)?u.get():u,[u]);return o.createElement(a,{...d,children:h})}function fm(a,e,n,t){const o={},r=t(a,{});for(const h in r)o[h]=sh(r[h]);let{initial:s,animate:i}=a;const l=Ad(a),c=Dd(a);e&&c&&!l&&!1!==a.inherit&&(void 0===s&&(s=e.initial),void 0===i&&(i=e.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?i:s;if(u&&"boolean"!=typeof u&&!xd(u)){const e=Array.isArray(u)?u:[u];for(let n=0;n(e,n)=>{const t=o.useContext(cm),r=o.useContext(us),s=()=>function({scrapeMotionValuesFromProps:a,createRenderState:e},n,t,o){return{latestValues:fm(n,t,o,a),renderState:e()}}(a,e,t,r);return n?s():ls(s)},vm=ym({scrapeMotionValuesFromProps:su,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),wm=ym({scrapeMotionValuesFromProps:pu,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),km=Symbol.for("motionComponentSymbol");function xm(a,e,n){const t=o.useRef(n);o.useInsertionEffect(()=>{t.current=n});const r=o.useRef(null);return o.useCallback(n=>{var o;n&&(null==(o=a.onMount)||o.call(a,n)),e&&(n?e.mount(n):e.unmount());const s=t.current;if("function"==typeof s)if(n){const a=s(n);"function"==typeof a&&(r.current=a)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n)},[e])}const jm=o.createContext({});function zm(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}function Cm(a,e,n,t,r,s){var i,l;const{visualElement:c}=o.useContext(cm),d=o.useContext(em),u=o.useContext(us),h=o.useContext(Vh).reducedMotion,m=o.useRef(null),p=o.useRef(!1);t=t||d.renderer,!m.current&&t&&(m.current=t(a,{visualState:e,parent:c,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h,isSVG:s}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const g=m.current,b=o.useContext(jm);!g||g.projection||!r||"html"!==g.type&&"svg"!==g.type||function(a,e,n,t){const{layoutId:o,layout:r,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;a.projection=new n(a.latestValues,e["data-framer-portal-id"]?void 0:Am(a.parent)),a.projection.setOptions({layoutId:o,layout:r,alwaysMeasureLayout:Boolean(s)||i&&zm(i),visualElement:a,animationType:"string"==typeof r?r:"both",initialPromotionConfig:t,crossfade:d,layoutScroll:l,layoutRoot:c})}(m.current,n,r,b);const f=o.useRef(!1);o.useInsertionEffect(()=>{g&&f.current&&g.update(n,u)});const y=n[qc],v=o.useRef(Boolean(y)&&!(null==(i=window.MotionHandoffIsComplete)?void 0:i.call(window,y))&&(null==(l=window.MotionHasOptimisedAnimation)?void 0:l.call(window,y)));return ds(()=>{p.current=!0,g&&(f.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),v.current&&g.animationState&&g.animationState.animateChanges())}),o.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var a;null==(a=window.MotionHandoffMarkAsComplete)||a.call(window,y)}),v.current=!1),g.enteringChildren=void 0)}),g}function Am(a){if(a)return!1!==a.options.allowProjection?a.projection:Am(a.parent)}function Dm(a,{forwardMotionProps:e=!1,type:n}={},t,s){t&&function(a){const e=om();for(const n in a)e[n]={...e[n],...a[n]};Fd(e)}(t);const i=n?"svg"===n:gm(a),l=i?wm:vm;function c(n,t){let c;const d={...o.useContext(Vh),...n,layoutId:Em(n)},{isStatic:u}=d,h=function(a){const{initial:e,animate:n}=function(a,e){if(Ad(a)){const{initial:e,animate:n}=a;return{initial:!1===e||jd(e)?e:void 0,animate:jd(n)?n:void 0}}return!1!==a.inherit?e:{}}(a,o.useContext(cm));return o.useMemo(()=>({initial:e,animate:n}),[dm(e),dm(n)])}(n),m=l(n,u);if(!u&&cs){o.useContext(em).strict;const e=function(a){const e=om(),{drag:n,layout:t}=e;if(!n&&!t)return{};const o={...n,...t};return{MeasureLayout:(null==n?void 0:n.isEnabled(a))||(null==t?void 0:t.isEnabled(a))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(d);c=e.MeasureLayout,h.visualElement=Cm(a,m,d,s,e.ProjectionNode,i)}return r.jsxs(cm.Provider,{value:h,children:[c&&h.visualElement?r.jsx(c,{visualElement:h.visualElement,...d}):null,bm(a,n,xm(m,h.visualElement,t),m,u,e,i)]})}c.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;const d=o.forwardRef(c);return d[km]=a,d}function Em({layoutId:a}){const e=o.useContext(is).id;return e&&void 0!==a?e+"-"+a:a}function Bm(a,e){if("undefined"==typeof Proxy)return Dm;const n=new Map,t=(n,t)=>Dm(n,t,a,e);return new Proxy((a,e)=>t(a,e),{get:(o,r)=>"create"===r?t:(n.has(r)||n.set(r,Dm(r,void 0,a,e)),n.get(r))})}const Fm=(a,e)=>e.isSVG??gm(a)?new gu(e):new iu(e,{allowProjection:a!==o.Fragment});let qm=0;const Sm={animation:{Feature:class extends Md{constructor(a){super(a),a.animationState||(a.animationState=ku(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();xd(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:e}=this.node.prevProps||{};a!==e&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),null==(a=this.unmountControls)||a.call(this)}}},exit:{Feature:class extends Md{constructor(){super(...arguments),this.id=qm++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===n)return;const t=this.node.animationState.setActive("exit",!a);e&&!a&&t.then(()=>{e(this.id)})}mount(){const{register:a,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),a&&(this.unmount=a(this.id))}unmount(){}}}};function Mm(a){return{point:{x:a.pageX,y:a.pageY}}}function Tm(a,e,n,t){return nh(a,e,(a=>e=>id(e)&&a(e,Mm(e)))(n),t)}const Pm=({current:a})=>a?a.ownerDocument.defaultView:null,Lm=(a,e)=>Math.abs(a-e),Rm=new Set(["auto","scroll"]);class Nm{constructor(a,e,{transformPagePoint:n,contextWindow:t=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=Vm(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(a,e){const n=Lm(a.x,e.x),t=Lm(a.y,e.y);return Math.sqrt(n**2+t**2)}(a.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:t}=a,{timestamp:o}=Xs;this.history.push({...t,timestamp:o});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,a)},this.handlePointerMove=(a,e)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=Im(e,this.transformPagePoint),Gs.update(this.updatePoint,!0)},this.handlePointerUp=(a,e)=>{this.end();const{onEnd:n,onSessionEnd:t,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=Vm("pointercancel"===a.type?this.lastMoveEventInfo:Im(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(a,r),t&&t(a,r)},!id(a))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=t||window;const i=Im(Mm(a),this.transformPagePoint),{point:l}=i,{timestamp:c}=Xs;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=e;d&&d(a,Vm(i,this.history)),this.removeListeners=xs(Tm(this.contextWindow,"pointermove",this.handlePointerMove),Tm(this.contextWindow,"pointerup",this.handlePointerUp),Tm(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(a){let e=a.parentElement;for(;e;){const a=getComputedStyle(e);(Rm.has(a.overflowX)||Rm.has(a.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const e=this.scrollPositions.get(a);if(!e)return;const n=a===window,t=n?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},o=t.x-e.x,r=t.y-e.y;0===o&&0===r||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=r):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=r),this.scrollPositions.set(a,t),Gs.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ks(this.updatePoint)}}function Im(a,e){return e?{point:e(a.point)}:a}function _m(a,e){return{x:a.x-e.x,y:a.y-e.y}}function Vm({point:a},e){return{point:a,delta:_m(a,$m(e)),offset:_m(a,Om(e)),velocity:Wm(e,.1)}}function Om(a){return a[0]}function $m(a){return a[a.length-1]}function Wm(a,e){if(a.length<2)return{x:0,y:0};let n=a.length-1,t=null;const o=$m(a);for(;n>=0&&(t=a[n],!(o.timestamp-t.timestamp>Cs(e)));)n--;if(!t)return{x:0,y:0};const r=As(o.timestamp-t.timestamp);if(0===r)return{x:0,y:0};const s={x:(o.x-t.x)/r,y:(o.y-t.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Um(a,e,n){return{min:void 0!==e?a.min+e:void 0,max:void 0!==n?a.max+n-(a.max-a.min):void 0}}function Hm(a,e){let n=e.min-a.min,t=e.max-a.max;return e.max-e.min{e?(this.stopAnimation(),this.snapToCursor(Mm(a).point)):this.pauseAnimation()},onStart:(a,e)=>{this.stopAnimation();const{drag:n,dragPropagation:t,onDragStart:o}=this.getProps();if(n&&!t&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=n)||"y"===r?nd[r]?null:(nd[r]=!0,()=>{nd[r]=!1}):nd.x||nd.y?null:(nd.x=nd.y=!0,()=>{nd.x=nd.y=!1}),!this.openDragLock))return;var r;this.latestPointerEvent=a,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hu(a=>{let e=this.getAxisMotionValue(a).get()||0;if(wi.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const t=n.layout.layoutBox[a];t&&(e=Eu(t)*(parseFloat(e)/100))}}this.originPoint[a]=e}),o&&Gs.postRender(()=>o(a,e)),Bc(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(a,e)=>{this.latestPointerEvent=a,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:t,onDirectionLock:o,onDrag:r}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=e;if(t&&null===this.currentDirection)return this.currentDirection=function(a,e=10){let n=null;return Math.abs(a.y)>e?n="y":Math.abs(a.x)>e&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),r&&r(a,e)},onSessionEnd:(a,e)=>{this.latestPointerEvent=a,this.latestPanInfo=e,this.stop(a,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Hu(a=>{var e;return"paused"===this.getAnimationState(a)&&(null==(e=this.getAxisMotionValue(a).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:Pm(this.visualElement),element:this.visualElement.current})}stop(a,e){const n=a||this.latestPointerEvent,t=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!t||!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Gs.postRender(()=>s(n,t))}cancel(){this.isDragging=!1;const{projection:a,animationState:e}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,e,n){const{drag:t}=this.getProps();if(!n||!Zm(a,t,this.currentDirection))return;const o=this.getAxisMotionValue(a);let r=this.originPoint[a]+n[a];this.constraints&&this.constraints[a]&&(r=function(a,{min:e,max:n},t){return void 0!==e&&an&&(a=t?Ni(n,a,t.max):Math.min(a,n)),a}(r,this.constraints[a],this.elastic[a])),o.set(r)}resolveConstraints(){var a;const{dragConstraints:e,dragElastic:n}=this.getProps(),t=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(a=this.visualElement.projection)?void 0:a.layout,o=this.constraints;e&&zm(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!t)&&function(a,{top:e,left:n,bottom:t,right:o}){return{x:Um(a.x,n,o),y:Um(a.y,e,t)}}(t.layoutBox,e),this.elastic=function(a=Ym){return!1===a?a=0:!0===a&&(a=Ym),{x:Gm(a,"left","right"),y:Gm(a,"top","bottom")}}(n),o!==this.constraints&&t&&this.constraints&&!this.hasMutatedConstraints&&Hu(a=>{!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=function(a,e){const n={};return void 0!==e.min&&(n.min=e.min-a.min),void 0!==e.max&&(n.max=e.max-a.min),n}(t.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:e}=this.getProps();if(!a||!zm(a))return!1;const n=a.current,{projection:t}=this.visualElement;if(!t||!t.layout)return!1;const o=function(a,e,n){const t=Kd(a,n),{scroll:o}=e;return o&&(Hd(t.x,o.offset.x),Hd(t.y,o.offset.y)),t}(n,t.root,this.visualElement.getTransformPagePoint());let r=function(a,e){return{x:Hm(a.x,e.x),y:Hm(a.y,e.y)}}(t.layout.layoutBox,o);if(e){const a=e(function({x:a,y:e}){return{top:e.min,right:a.max,bottom:e.max,left:a.min}}(r));this.hasMutatedConstraints=!!a,a&&(r=Td(a))}return r}startAnimation(a){const{drag:e,dragMomentum:n,dragElastic:t,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),i=this.constraints||{},l=Hu(s=>{if(!Zm(s,e,this.currentDirection))return;let l=i&&i[s]||{};r&&(l={min:0,max:0});const c=t?200:1e6,d=t?40:1e7,u={type:"inertia",velocity:n?a[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,u)});return Promise.all(l).then(s)}startAxisValueAnimation(a,e){const n=this.getAxisMotionValue(a);return Bc(this.visualElement,a),n.start(fc(a,n,0,e,this.visualElement,!1))}stopAnimation(){Hu(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Hu(a=>{var e;return null==(e=this.getAxisMotionValue(a).animation)?void 0:e.pause()})}getAnimationState(a){var e;return null==(e=this.getAxisMotionValue(a).animation)?void 0:e.state}getAxisMotionValue(a){const e=`_drag${a.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(a,(n.initial?n.initial[a]:void 0)||0)}snapToCursor(a){Hu(e=>{const{drag:n}=this.getProps();if(!Zm(e,n,this.currentDirection))return;const{projection:t}=this.visualElement,o=this.getAxisMotionValue(e);if(t&&t.layout){const{min:n,max:r}=t.layout.layoutBox[e],s=o.get()||0;o.set(a[e]-Ni(n,r,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!zm(e)||!n||!this.constraints)return;this.stopAnimation();const t={x:0,y:0};Hu(a=>{const e=this.getAxisMotionValue(a);if(e&&!1!==this.constraints){const n=e.get();t[a]=function(a,e){let n=.5;const t=Eu(a),o=Eu(e);return o>t?n=js(e.min,e.max-t,a.min):t>o&&(n=js(a.min,a.max-o,e.min)),ps(0,1,n)}({min:n,max:n},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Hu(e=>{if(!Zm(e,a,null))return;const n=this.getAxisMotionValue(e),{min:o,max:r}=this.constraints[e];n.set(Ni(o,r,t[e]))})}addListeners(){if(!this.visualElement.current)return;Xm.set(this.visualElement,this);const a=this.visualElement.current,e=Tm(a,"pointerdown",e=>{const{drag:n,dragListener:t=!0}=this.getProps(),o=e.target,r=o!==a&&cd(o);n&&t&&!r&&this.start(e)}),n=()=>{const{dragConstraints:a}=this.getProps();zm(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:t}=this.visualElement,o=t.addEventListener("measure",n);t&&!t.layout&&(t.root&&t.root.updateScroll(),t.updateLayout()),Gs.read(n);const r=nh(window,"resize",()=>this.scalePositionWithinConstraints()),s=t.addEventListener("didUpdate",({delta:a,hasLayoutChanged:e})=>{this.isDragging&&e&&(Hu(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=a[e].translate,n.set(n.get()+a[e].translate))}),this.visualElement.render())});return()=>{r(),e(),o(),s&&s()}}getProps(){const a=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:t=!1,dragConstraints:o=!1,dragElastic:r=Ym,dragMomentum:s=!0}=a;return{...a,drag:e,dragDirectionLock:n,dragPropagation:t,dragConstraints:o,dragElastic:r,dragMomentum:s}}}function Zm(a,e,n){return!(!0!==e&&e!==a||null!==n&&n!==a)}const Qm=a=>(e,n)=>{a&&Gs.postRender(()=>a(e,n))};let ap=!1;class ep extends o.Component{componentDidMount(){const{visualElement:a,layoutGroup:e,switchLayoutGroup:n,layoutId:t}=this.props,{projection:o}=a;o&&(e.group&&e.group.add(o),n&&n.register&&t&&n.register(o),ap&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lh.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:e,visualElement:n,drag:t,isPresent:o}=this.props,{projection:r}=n;return r?(r.isPresent=o,a.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),ap=!0,t||a.layoutDependency!==e||void 0===e||a.isPresent!==o?r.willUpdate():this.safeToRemove(),a.isPresent!==o&&(o?r.promote():r.relegate()||Gs.postRender(()=>{const a=r.getStack();a&&a.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),ed.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:t}=a;ap=!0,t&&(t.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(t),n&&n.deregister&&n.deregister(t))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function np(a){const[e,n]=Yh(),t=o.useContext(is);return r.jsx(ep,{...a,layoutGroup:t,switchLayoutGroup:o.useContext(jm),isPresent:e,safeToRemove:n})}const tp={pan:{Feature:class extends Md{constructor(){super(...arguments),this.removePointerDownListener=ws}onPointerDown(a){this.session=new Nm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:e,onPan:n,onPanEnd:t}=this.node.getProps();return{onSessionStart:Qm(a),onStart:Qm(e),onMove:n,onEnd:(a,e)=>{delete this.session,t&&Gs.postRender(()=>t(a,e))}}}mount(){this.removePointerDownListener=Tm(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Md{constructor(a){super(a),this.removeGroupControls=ws,this.removeListeners=ws,this.controls=new Jm(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ws}update(){const{dragControls:a}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};a!==e&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:_h,MeasureLayout:np}};function op(a,e,n){const{props:t}=a;a.animationState&&t.whileHover&&a.animationState.setActive("whileHover","Start"===n);const o=t["onHover"+n];o&&Gs.postRender(()=>o(e,Mm(e)))}function rp(a,e,n){const{props:t}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&t.whileTap&&a.animationState.setActive("whileTap","Start"===n);const o=t["onTap"+("End"===n?"":n)];o&&Gs.postRender(()=>o(e,Mm(e)))}const sp=new WeakMap,ip=new WeakMap,lp=a=>{const e=sp.get(a.target);e&&e(a)},cp=a=>{a.forEach(lp)};const dp={some:0,all:1},up=Bm({...Sm,inView:{Feature:class extends Md{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:e,margin:n,amount:t="some",once:o}=a,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof t?t:dp[t]};return function(a,e,n){const t=function({root:a,...e}){const n=a||document;ip.has(n)||ip.set(n,{});const t=ip.get(n),o=JSON.stringify(e);return t[o]||(t[o]=new IntersectionObserver(cp,{root:a,...e})),t[o]}(e);return sp.set(a,n),t.observe(a),()=>{sp.delete(a),t.unobserve(a)}}(this.node.current,r,a=>{const{isIntersecting:e}=a;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:t}=this.node.getProps(),r=e?n:t;r&&r(a)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:a,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:e={}}={}){return n=>a[n]!==e[n]}(a,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Md{mount(){const{current:a}=this.node;a&&(this.unmount=function(a,e,n={}){const[t,o,r]=od(a,n),s=a=>{const t=a.currentTarget;if(!md(a))return;dd.add(t);const r=e(t,a),s=(a,e)=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",l),dd.has(t)&&dd.delete(t),md(a)&&"function"==typeof r&&r(a,{success:e})},i=a=>{s(a,t===window||t===document||n.useGlobalTarget||sd(t,a.target))},l=a=>{s(a,!1)};window.addEventListener("pointerup",i,o),window.addEventListener("pointercancel",l,o)};return t.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ad(a)&&(a.addEventListener("focus",a=>((a,e)=>{const n=a.currentTarget;if(!n)return;const t=ud(()=>{if(dd.has(n))return;hd(n,"down");const a=ud(()=>{hd(n,"up")});n.addEventListener("keyup",a,e),n.addEventListener("blur",()=>hd(n,"cancel"),e)});n.addEventListener("keydown",t,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",t),e)})(a,o)),cd(a)||a.hasAttribute("tabindex")||(a.tabIndex=0))}),r}(a,(a,e)=>(rp(this.node,e,"Start"),(a,{success:e})=>rp(this.node,a,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Md{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(e){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xs(nh(this.node.current,"focus",()=>this.onFocus()),nh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Md{mount(){const{current:a}=this.node;a&&(this.unmount=function(a,e,n={}){const[t,o,r]=od(a,n),s=a=>{if(!rd(a))return;const{target:n}=a,t=e(n,a);if("function"!=typeof t||!n)return;const r=a=>{rd(a)&&(t(a),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,o)};return t.forEach(a=>{a.addEventListener("pointerenter",s,o)}),r}(a,(a,e)=>(op(this.node,e,"Start"),a=>op(this.node,a,"End"))))}unmount(){}}},...tp,layout:{ProjectionNode:_h,MeasureLayout:np}},Fm),hp={duration:.15,ease:[.4,0,.2,1]},mp={type:"tween",duration:.25,ease:[.4,0,.2,1]},pp={type:"tween",duration:.3,ease:[.4,0,.2,1]},gp=o.createContext(!1);function bp(){return o.useContext(gp)}const fp=o.createContext(void 0);function yp(){return o.useContext(fp)}const vp="#1A1A1A",wp="#737373",kp={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl",full:"sm:max-w-[calc(100vw-2rem)]"};function xp({open:a,onClose:e,size:n="md",className:t,children:s,bottomSheet:l=!0,motionPlus:u=!1,basemapMode:h,solid:m=!1}){const p="light"===h,[g,b]=o.useState(!1),f=o.useRef(null);o.useEffect(()=>(f.current&&(clearTimeout(f.current),f.current=null),a?f.current=setTimeout(()=>{b(!0)},350):queueMicrotask(()=>b(!1)),()=>{f.current&&(clearTimeout(f.current),f.current=null)}),[a]);const y=o.useCallback((a,n)=>{(n.offset.y>100||n.velocity.y>500)&&e()},[e]),v=u?pp:mp,w=u?.98:.99,k=l?8:4;return r.jsx(Jh,{mode:"wait",children:a&&r.jsxs(c,{static:!0,open:a,onClose:e,className:"relative z-[10010]",children:[r.jsx(up.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:hp,className:"fixed inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":"true"}),r.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:r.jsx("div",{className:i("flex min-h-full justify-center",l?"items-end sm:items-center sm:p-4":"items-center p-4"),children:r.jsx(up.div,{drag:!!l&&"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.4},onDragEnd:y,initial:{opacity:0,scale:w,y:k},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.99,y:l?40:4},transition:v,style:{willChange:"transform, opacity"},className:i(l&&"w-full sm:w-auto"),children:r.jsx(d,{className:i("relative w-full shadow-2xl flex flex-col",!h&&!m&&"bg-bg-surface/80 backdrop-blur-xl",!h&&m&&"bg-bg-1",!h&&"ring-1 ring-inset ring-white/10",kp[n],l?"radius-card overflow-hidden pb-safe":"radius-card overflow-hidden",t),style:h?{backgroundColor:p?"#F8F8F8":"var(--bg-surface)",boxShadow:"inset 0 0 0 1px "+(p?"rgba(0, 0, 0, 0.08)":"rgba(255, 255, 255, 0.1)")}:void 0,children:r.jsx(fp.Provider,{value:h,children:r.jsx(gp.Provider,{value:g,children:s})})})})})})]})})}function jp({className:a,...e}){const n=yp(),t="light"===n;return r.jsx(u,{...e,className:i("text-base font-semibold sm:text-lg",!n&&"text-text-primary",a),style:n?{color:t?vp:"var(--text-primary)"}:void 0})}function zp({icon:a,title:e,onClose:n,className:t}){const o=yp(),s="light"===o;return r.jsxs("div",{className:i("flex items-center justify-between p-4 border-b",!o&&"border-border-subtle",t),style:o?{borderColor:s?"rgba(0, 0, 0, 0.12)":"var(--border-subtle)"}:void 0,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[a&&r.jsx("div",{className:i("p-2 radius-inner",!o&&"bg-bg-subtle text-icon-card-title"),style:o?{backgroundColor:s?"#EEEEEE":"var(--bg-subtle)",color:s?"#4A4A4A":"var(--icon-card-title)"}:void 0,children:a}),r.jsx(jp,{children:e})]}),n&&r.jsx("button",{onClick:n,className:i("p-2 radius-inner transition-colors",!o&&"text-text-muted hover:text-text-primary hover:bg-bg-subtle"),style:o?{color:s?wp:"var(--text-muted)"}:void 0,onMouseEnter:a=>{o&&(a.currentTarget.style.color=s?vp:"var(--text-primary)",a.currentTarget.style.backgroundColor=s?"rgba(0, 0, 0, 0.06)":"var(--bg-subtle)")},onMouseLeave:a=>{o&&(a.currentTarget.style.color=s?wp:"var(--text-muted)",a.currentTarget.style.backgroundColor="transparent")},"aria-label":"Close",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}function Cp({className:a,...e}){return r.jsx("div",{...e,className:i("p-4",a)})}function Ap({className:a,...e}){return r.jsx("div",{...e,className:i("flex flex-col-reverse gap-3 p-4 pt-0","sm:flex-row sm:justify-end","*:w-full sm:*:w-auto",a)})}function Dp({className:a,...e}){return r.jsx("nav",{...e,className:i(a,"flex h-full min-h-0 flex-col")})}function Ep({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex flex-col border-b border-border-subtle p-4","[&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function Bp({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex flex-1 flex-col p-3","overflow-y-auto sidebar-scroll","[&>[data-slot=section]+[data-slot=section]]:mt-6")})}function Fp({className:a,...e}){return r.jsx("div",{...e,className:i(a,"mt-auto flex flex-col border-t border-border-subtle","[&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function qp({className:a,...e}){const n=o.useId();return r.jsx(am,{id:n,children:r.jsx("div",{...e,"data-slot":"section",className:i(a,"flex flex-col gap-0.5")})})}const Sp=o.forwardRef(function(a,e){const{current:n,className:t,children:o,...s}=a,c=i("flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left","min-h-[44px]","text-sm font-medium","[&>svg]:w-5 [&>svg]:h-5 [&>svg]:flex-shrink-0",n?"bg-accent-primary/15 text-accent-primary [&>svg]:text-accent-primary":"text-text-muted hover:text-text-primary hover:bg-subtle-fill [&>svg]:text-text-muted hover:[&>svg]:text-text-primary","transition-all duration-150");return r.jsxs("span",{className:i(t,"relative"),children:[n&&r.jsx(up.span,{layoutId:"sidebar-current-indicator",className:"absolute inset-y-2 -left-3 w-0.5 rounded-full bg-accent-primary"}),"string"==typeof s.href?r.jsx(v,{to:s.href,onClick:s.onClick,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,className:c,"data-current":n?"true":void 0,ref:e,children:o}):r.jsx(l,{...s,className:i("cursor-default",c),"data-current":n?"true":void 0,ref:e,children:o})]})});function Mp({className:a,...e}){return r.jsx("span",{...e,className:i(a,"truncate")})}function Tp({className:a,variant:e="default",...n}){return r.jsx("span",{...n,className:i("ml-auto flex items-center gap-1 px-1.5 py-0.5 rounded-full","text-xs font-medium",{default:"bg-bg-subtle text-text-muted",accent:"bg-accent-primary/20 text-accent-primary",success:"bg-accent-success/20 text-accent-success",warning:"bg-accent-secondary/20 text-accent-secondary",danger:"bg-accent-danger/20 text-accent-danger"}[e],a)})}const Pp=o.createContext(null),Lp={type:"spring",visualDuration:.35,bounce:.15};function Rp({open:a,onClose:e,children:n}){return r.jsx(Jh,{children:a&&r.jsxs(c,{static:!0,open:a,onClose:e,className:"lg:hidden relative z-[10002]",children:[r.jsx(up.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:"easeOut"},className:"fixed inset-0 bg-black/60 backdrop-blur-sm","aria-hidden":"true"}),r.jsx(up.div,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:Lp,className:"fixed inset-y-0 left-0 w-72 max-w-[85vw] z-[10003]",children:r.jsx(d,{className:"h-full",children:r.jsxs("div",{className:"flex h-full flex-col sidebar-panel",children:[r.jsx("div",{className:"absolute top-4 right-4 z-10",children:r.jsx(h,{className:"p-2 rounded-lg text-text-muted hover:text-text-primary hover:bg-subtle-fill transition-colors","aria-label":"Close navigation",children:r.jsx(ss,{className:"w-5 h-5"})})}),n]})})})]})})}function Np({sidebar:a,navbar:e,children:n,className:t}){const[s,l]=o.useState(!1),c=()=>l(!0),d=()=>l(!1),u={isOpen:s,open:c,close:d,toggle:()=>l(a=>!a)};return r.jsx(Pp.Provider,{value:u,children:r.jsxs("div",{className:"flex h-screen overflow-hidden bg-bg-body",children:[r.jsx("aside",{className:"hidden lg:flex flex-col w-64 flex-shrink-0 h-full relative sidebar-panel",children:a}),r.jsx(Rp,{open:s,onClose:d,children:a}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsx("header",{className:"lg:hidden sticky top-0 z-[10001] h-14 mobile-header",children:r.jsxs("div",{className:"flex items-center h-full px-4",children:[r.jsx("button",{onClick:c,className:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-subtle-fill active:bg-subtle-fill transition-colors mr-2","aria-label":"Open navigation",children:r.jsx(Xr,{className:"w-5 h-5 text-text-primary"})}),r.jsx("div",{className:"flex-1 min-w-0",children:e})]})}),r.jsx("main",{className:i("flex-1 overflow-y-auto main-content",t),children:n})]})]})})}function Ip({className:a,...e}){return r.jsx("nav",{...e,className:i(a,"flex flex-1 items-center gap-3")})}function _p({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex items-center gap-3")})}function Vp({className:a,...e}){return r.jsx("div",{"aria-hidden":"true",...e,className:i(a,"flex-1")})}const Op="bg-bg-surface/80 backdrop-blur-lg ring-1 ring-inset ring-white/10",$p={sm:"radius-inner",md:"radius-inset",lg:"radius-card",xl:"radius-hero",full:"radius-pill",none:"radius-none"};function Wp({defaultOpen:a=!1,className:e,children:n}){return r.jsx(p,{defaultOpen:a,children:r.jsx("div",{className:i("flex flex-col",e),children:n})})}o.forwardRef(function({children:a,elevated:e,compact:n,noPadding:t,radius:o="lg",glass:s=!0,stroke:l=!0,shadow:c,reflex:d=!1,glow:u=!1,onClick:h,className:m,style:p,...g},b){const f=c??e??!1,y=d?{...p,"--surface-reflex":"1"}:p;return r.jsx("div",{ref:b,className:i($p[o],s&&(e?"bg-bg-surface/85 backdrop-blur-xl":"bg-bg-surface/80 backdrop-blur-lg"),!s&&"bg-bg-surface",l&&!u&&"ring-1 ring-inset ring-white/10",u&&"ring-1 ring-inset ring-accent-primary/40",f&&(e?"shadow-xl":"shadow-lg"),d&&"surface-reflex","h-full flex flex-col relative",!t&&(n?"p-3 sm:p-4":"p-4 sm:p-5"),h&&"cursor-pointer",m),style:y,onClick:h,...g,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex items-center justify-between gap-4","pb-4 mb-4","border-b border-border-subtle",e),...n,children:a})}),o.forwardRef(function({children:a,icon:e,className:n,...t},o){return r.jsxs("h3",{ref:o,className:i("flex items-center gap-2","text-base font-semibold text-text-primary",n),...t,children:[e&&r.jsx("span",{className:"text-icon-card-title w-5 h-5 flex-shrink-0",children:e}),a]})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("p",{ref:t,className:i("text-sm text-text-muted",e),...n,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex-1 min-h-0",e),...n,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex items-center justify-end gap-3","pt-4 mt-4","border-t border-border-subtle",e),...n,children:a})}),o.forwardRef(function({children:a,border:e,className:n,...t},o){return r.jsx("div",{ref:o,className:i(e&&"pt-4 mt-4 border-t border-border-subtle",n),...t,children:a})});const Up=o.forwardRef(function({className:a,icon:e,children:n,...t},o){return r.jsx(m,{ref:o,className:i("flex w-full items-center justify-between gap-3","px-3 py-2 radius-inner","text-sm font-medium text-text-muted","row-hover hover:text-text-primary","ring-focus",a),...t,children:({open:a})=>r.jsxs(r.Fragment,{children:[n,r.jsx("span",{className:i("transition-transform duration-200",a?"rotate-180":"rotate-0"),children:e||r.jsx(_r,{className:"w-4 h-4"})})]})})});function Hp({direction:a="down",className:e,children:n}){const t={hidden:{height:0,opacity:0,y:"up"===a?8:-8},visible:{height:"auto",opacity:1,y:0}};return r.jsx(g,{static:!0,children:({open:o})=>r.jsx(Jh,{initial:!1,children:o&&r.jsx(up.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:t,transition:{height:{duration:.2,ease:[.4,0,.2,1]},opacity:{duration:.15},y:{duration:.15}},className:i("overflow-hidden",e),children:r.jsx("div",{className:i("up"===a?"pb-2":"pt-2"),children:n})})})})}function Yp({label:a,icon:e,defaultOpen:n=!0,direction:t="down",className:o,dataId:s,children:l}){const c=s?{[`data-${s}-disclosure`]:!0}:{},d=r.jsxs("span",{className:"flex items-center gap-3",children:[e,r.jsx("span",{className:"text-sm font-medium",children:a})]});return"up"===t?r.jsx(p,{defaultOpen:n,children:({open:n})=>r.jsxs("div",{className:i("relative",o),children:[r.jsx(g,{static:!0,className:"relative z-50",children:r.jsx(Jh,{initial:!1,mode:"wait",children:n&&r.jsxs(up.div,{initial:{y:12,scale:.96,opacity:0},animate:{y:0,scale:1,opacity:1},exit:{y:6,scale:.98,opacity:0},transition:{type:"spring",stiffness:400,damping:30,mass:.5,opacity:{duration:.15,ease:"easeOut"}},className:"absolute bottom-full left-0 right-0 z-50 mb-1 mx-1 origin-bottom radius-inset shadow-lg border-card bg-bg-surface/80 backdrop-blur-xl",children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsxs("span",{className:"flex items-center gap-3",children:[e,r.jsx("span",{className:"text-sm font-medium text-text-primary",children:a})]}),r.jsx(m,{className:"p-1 rounded hover:bg-white/10 transition-colors",children:r.jsx(up.span,{initial:{rotate:0},animate:{rotate:180},exit:{rotate:0},transition:{type:"spring",stiffness:400,damping:25},children:r.jsx(_r,{className:"w-4 h-4"})})})]}),r.jsx("div",{className:"px-3 pb-3",children:l})]})})}),r.jsx(up.div,{animate:{opacity:n?.4:1,scale:n?.98:1},transition:{type:"spring",stiffness:500,damping:35},children:r.jsxs(m,{...c,className:i("flex w-full items-center justify-between gap-3","px-3 py-2 radius-inner","text-sm font-medium text-text-muted","row-hover hover:text-text-primary","ring-focus"),children:[d,r.jsx(up.span,{animate:{rotate:n?180:0},transition:{type:"spring",stiffness:400,damping:25},children:r.jsx(_r,{className:"w-4 h-4"})})]})})]})}):r.jsxs(Wp,{defaultOpen:n,className:o,children:[r.jsx(Up,{...c,children:d}),r.jsx(Hp,{direction:"down",children:r.jsx("div",{className:"bg-subtle-fill radius-inset mx-1 mt-1",children:l})})]})}const Gp="0.9.219",Kp="'JetBrains Mono', monospace",Xp=o.memo(function({height:a=16,responsive:e=!1,className:n=""}){const t="var(--accent-primary)",o="var(--text-primary)";if(e){const a=145,e=24;return r.jsxs("svg",{className:n,viewBox:`0 0 ${a} ${e}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"pyMC:Console",style:{display:"block",width:"80%",height:"auto"},children:[r.jsx("style",{children:`\n .logo-text {\n font-family: ${Kp};\n }\n .logo-accent {\n fill: var(--accent-primary, #719CDF);\n }\n .logo-main {\n fill: var(--text-primary, #FFFFFF);\n }\n `}),r.jsxs("text",{x:"0",y:"18",className:"logo-text",fontSize:"20",fontWeight:"400",letterSpacing:"-0.02em",children:[r.jsx("tspan",{className:"logo-accent",children:"py"}),r.jsx("tspan",{className:"logo-main",children:"MC"}),r.jsx("tspan",{className:"logo-accent",children:":"}),r.jsx("tspan",{className:"logo-main",children:"Console"})]})]})}const s="string"==typeof a?parseFloat(a):a,i={fontFamily:Kp,fontSize:.8*s+"px",fontWeight:400,lineHeight:1,letterSpacing:"-0.02em",whiteSpace:"nowrap"};return r.jsxs("span",{className:n,style:i,role:"img","aria-label":"pyMC:Console",children:[r.jsx("span",{style:{color:t},children:"py"}),r.jsx("span",{style:{color:o},children:"MC"}),r.jsx("span",{style:{color:t},children:":"}),r.jsx("span",{style:{color:o},children:"Console"})]})}),Jp="pymc_jwt_token",Zp="pymc_client_id",Qp="pymc_remember_me",ag=new Set;function eg(a){return ag.add(a),()=>ag.delete(a)}function ng(a){for(const n of ag)try{n(a)}catch(e){}}function tg(){let a=localStorage.getItem(Zp);return a||(a=`${Date.now()}-${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(Zp,a)),a}function og(){return"true"===localStorage.getItem(Qp)}function rg(a){a?localStorage.setItem(Qp,"true"):localStorage.removeItem(Qp)}function sg(){return og()?localStorage:sessionStorage}function ig(){return sg().getItem(Jp)||localStorage.getItem(Jp)||sessionStorage.getItem(Jp)}function lg(a){sg().setItem(Jp,a),og()?sessionStorage.removeItem(Jp):localStorage.removeItem(Jp),ng(a)}function cg(){localStorage.removeItem(Jp),sessionStorage.removeItem(Jp),ng(null)}function dg(){return!(!ig()||hg()&&(cg(),1))}function ug(a){try{const e=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(e).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch{return null}}function hg(){const a=ig();if(!a)return!0;const e=ug(a);return!e||!e.exp||Date.now()>=1e3*e.exp-6e4}function mg(){const a=ig();if(!a)return 0;const e=ug(a);return e&&e.exp?Math.max(0,Math.floor((1e3*e.exp-Date.now())/1e3)):0}function pg(){const a=ig();if(!a)return!1;const e=ug(a);if(!e||!e.exp)return!1;const n=1e3*e.exp-Date.now();return n>0&&n<3e5}async function gg(a,e,n=!1){rg(n);try{const n=await fetch("/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a,password:e,client_id:tg()})}),t=n.headers.get("content-type");if(!t||!t.includes("application/json"))return{success:!1,error:`Server error: ${n.status}`};const o=await n.json();return o.success&&o.token?(lg(o.token),{success:!0}):{success:!1,error:o.error||"Login failed"}}catch(t){return{success:!1,error:"Connection error. Please try again."}}}async function bg(){const a=ig();if(!a)return!1;const e=ug(a);(null==e?void 0:e.exp)&&Math.floor((1e3*e.exp-Date.now())/1e3);try{const e=await fetch("/auth/refresh",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({client_id:tg()})});if(!e.ok){let a="";try{const n=await e.json();a=n.error||JSON.stringify(n)}catch{a=e.statusText}return!1}const n=await e.json();if(n.success&&n.token){lg(n.token);const a=ug(n.token);return(null==a?void 0:a.exp)&&Math.floor((1e3*a.exp-Date.now())/1e3),!0}return!1}catch(n){return!1}}let fg=null;async function yg(){const a=ig();if(!a)return!1;const e=ug(a);return(null==e?void 0:e.exp)&&Math.floor((1e3*e.exp-Date.now())/1e3),!pg()||fg||(fg=bg().finally(()=>{fg=null}),fg)}let vg=!1;const wg=new Map;let kg=!1;async function xg(a,e,n=!1){const t=function(a,e){return(null==e?void 0:e.method)&&"GET"!==e.method?"":a}(a,e);if(t){const a=wg.get(t);if(a)return a}const o=`${a}`;!n&&pg()&&await bg();const r=ig();if(!r&&!a.includes("/auth/"))throw window.location.href="/login",new Error("Not authenticated");const s={Accept:"application/json",...r?{Authorization:`Bearer ${r}`}:{}};if(null==e?void 0:e.headers){const a=e.headers;a instanceof Headers?a.forEach((a,e)=>{s[e]=a}):Array.isArray(a)?a.forEach(([a,e])=>{s[a]=e}):Object.assign(s,a)}(null==e?void 0:e.body)&&(s["Content-Type"]="application/json");const i=(async()=>{const t=await fetch(o,{...e,headers:s});if(401===t.status){if(!n&&!kg&&await bg())return xg(a,e,!0);throw kg||(kg=!0,cg(),window.location.replace("/login")),new Error("Session expired. Please log in again.")}if(!t.ok)throw new Error(`API error: ${t.status} ${t.statusText} (${a})`);return t.json()})();return t&&(wg.set(t,i),i.finally(()=>{wg.delete(t)})),i}const jg={spreadingFactor:7,bandwidthHz:125e3,codingRate:5,preambleLength:8,crcEnabled:!0,explicitHeader:!0};function zg(a){if(a.raw_packet){const e=a.raw_packet;if(/^[0-9a-fA-F]+$/.test(e)&&e.length%2==0)return e.length/2;if(/^[A-Za-z0-9+/=]+$/.test(e)){const a=(e.match(/=+$/)||[""])[0].length;return Math.floor(3*e.length/4)-a}return e.length}if(a.length&&a.length>0)return a.length;if(a.payload_length&&a.payload_length>0)return a.payload_length;if(a.payload){const e=a.payload;return/^[0-9a-fA-F]+$/.test(e)&&e.length%2==0?e.length/2:e.length}return 32}function Cg(a,e={}){return void 0!==a.airtime_ms&&a.airtime_ms>0?a.airtime_ms:function(a,e={}){const n=e.spreadingFactor??jg.spreadingFactor,t=e.bandwidthHz??jg.bandwidthHz,o=e.codingRate??jg.codingRate,r=e.preambleLength??jg.preambleLength??8,s=e.crcEnabled??jg.crcEnabled?1:0,i=e.explicitHeader??jg.explicitHeader?0:1,l=n>=11&&t<=125e3?1:0,c=t/1e3,d=Math.pow(2,n)/c,u=(r+4.25)*d,h=Math.max(8*a-4*n+28+16*s-20*i,0),m=4*(n-2*l);return u+(8+Math.ceil(h/m)*o)*d}(zg(a),e)}function Ag(a){return a&&"chat node"===a.toLowerCase()?"Companion":a}async function Dg(){return function(a){if(a.neighbors)for(const e of Object.values(a.neighbors))e.contact_type=Ag(e.contact_type);return a}(await xg("/api/stats"))}async function Eg(){return xg("/api/logs")}async function Bg(a=24){return xg(`/api/noise_floor_history?hours=${a}`)}const Fg=new Map;function qg(a=!1){if(a)Fg.clear();else for(const[e]of Fg)parseInt(e.split("-")[0],10)<=60&&Fg.delete(e)}function Sg(a,e,n,t){const o=60*a/e,r=Math.floor(Date.now()/1e3),s=Math.floor(r/o)*o,i=s-60*a,l=n.filter(a=>a.timestamp>=i&&a.timestamp<=s),c=t?function(a){var e;const n=null==(e=null==a?void 0:a.config)?void 0:e.radio;return{spreadingFactor:(null==n?void 0:n.spreading_factor)??jg.spreadingFactor,bandwidthHz:(null==n?void 0:n.bandwidth)??jg.bandwidthHz,codingRate:(null==n?void 0:n.coding_rate)??jg.codingRate,preambleLength:(null==n?void 0:n.preamble_length)??jg.preambleLength,crcEnabled:!0,explicitHeader:!0}}(t):jg,d=function(a,e,n,t,o){const r=new Array(e),s=new Array(e),i=new Array(e),l=new Array(e),c=new Array(e),d=new Array(e),u=new Array(e);for(let m=0;m=e)continue;const g=Cg(h,o),b=h.packet_origin;if("tx_local"===b?(i[p].count++,i[p].airtime_ms+=g):"tx_forward"===b||h.transmitted?(l[p].count++,l[p].airtime_ms+=g):h.drop_reason&&(c[p].count++,c[p].airtime_ms+=g),"tx_local"!==b){r[p].count++,r[p].airtime_ms+=g,d[p].snr+=h.snr||0,d[p].rssi+=h.rssi||0,d[p].count++;const a=h.packet_hash;a&&!u[p].has(a)&&(u[p].add(a),s[p].count++,s[p].airtime_ms+=g)}}for(let m=0;m0&&(r[m].avg_snr=d[m].snr/d[m].count,r[m].avg_rssi=d[m].rssi/d[m].count);return{received:r,unique_received:s,transmitted:i,forwarded:l,dropped:c}}(l,e,i,o,c);return{time_range_minutes:a,bucket_count:e,bucket_duration_seconds:o,start_time:i,end_time:s,...d}}async function Mg(){return xg("/api/hardware_stats")}async function Tg(){return xg("/api/hardware_processes")}async function Pg(a){return xg("/api/update_radio_config",{method:"POST",body:JSON.stringify(a)})}async function Lg(){return xg("/api/send_advert",{method:"POST",body:"{}"})}async function Rg(a){return xg("/api/set_mode",{method:"POST",body:JSON.stringify({mode:a})})}async function Ng(a){return xg("/api/set_duty_cycle",{method:"POST",body:JSON.stringify({enabled:a})})}async function Ig(a){try{return await xg("/api/log_level",{method:"POST",body:JSON.stringify({level:a})})}catch(e){return{success:!1,error:e instanceof Error?e.message:"Unknown error"}}}async function _g(a,e,n,t=!1){const o=`/api/bulk_packets?${new URLSearchParams({limit:String(2500),start_timestamp:String(a),end_timestamp:String(e)})}`,r={Accept:"application/json","Accept-Encoding":"gzip, deflate"},s=ig();s&&(r.Authorization=`Bearer ${s}`);const i=new AbortController,l=setTimeout(()=>i.abort(),9e4);try{const s=await fetch(o,{headers:r,signal:i.signal});if(401===s.status&&!t&&await bg())return _g(a,e,n,!0);if(!s.ok)throw new Error(`API ${s.status}`);const l=await s.json();return l.success&&l.data?l.data:[]}finally{clearTimeout(l)}}async function Vg(a,e,n,t,o){const r=[];for(let c=o??Math.floor(Date.now()/1e3);c>a;c-=21600)r.push({start:Math.max(a,c-21600),end:c});let s=0,i=0;null==e||e({loaded:0,phase:"fetching",chunk:0});for(let c=0;cOg(a.start,a.end,t,n)));for(const a of o)s+=a;null==e||e({loaded:s,phase:"fetching",chunk:i})}catch(l){if(l instanceof Error&&"AbortError"===l.name)break}}return null==e||e({loaded:s,phase:"complete",chunk:i}),s}async function Og(a,e,n,t){let o=e,r=0,s=0;for(;o>a&&s<50;){s++;const e=await _g(a,o,n);if(0===e.length)break;r+=e.length,null==t||t(e);const i=Math.min(...e.map(a=>a.timestamp??o))-.001;if(i>=o)break;if(o=i,e.length<2500)break}return r}const $g=new class{constructor(){t(this,"worker",null),t(this,"isInitialized",!1),t(this,"statsListeners",new Set),t(this,"packetsListeners",new Set),t(this,"errorListeners",new Set),t(this,"readyResolve",null),t(this,"readyPromise",null),t(this,"unsubscribeTokenChange",null)}async init(a){if(!this.isInitialized&&"undefined"!=typeof window){this.readyPromise=new Promise(a=>{this.readyResolve=a});try{this.worker=new Worker(new URL("/assets/polling.worker-B_pFWyb2.js",import.meta.url),{type:"module"}),this.worker.onmessage=this.handleMessage.bind(this),this.worker.onerror=a=>{};const e={type:"init",config:{apiBaseUrl:a.apiBaseUrl,authToken:a.authToken,statsIntervalMs:a.statsIntervalMs??3e3,packetsIntervalMs:a.packetsIntervalMs??3e3}};this.worker.postMessage(e),this.isInitialized=!0,this.unsubscribeTokenChange=eg(a=>{this.setAuthToken(a)}),await this.readyPromise}catch(e){throw e}}}handleMessage(a){var e;const n=a.data;switch(n.type){case"ready":null==(e=this.readyResolve)||e.call(this);break;case"stats":for(const a of this.statsListeners)try{a(n.data,n.timestamp)}catch(t){}break;case"packets":for(const a of this.packetsListeners)try{a(n.newPackets,n.totalCount,n.newestTimestamp)}catch(t){}break;case"packetsReset":for(const a of this.packetsListeners)try{a([],0,n.newestTimestamp)}catch(t){}break;case"error":for(const a of this.errorListeners)try{a(n.source,n.error)}catch(t){}}}onStats(a){return this.statsListeners.add(a),()=>this.statsListeners.delete(a)}onPackets(a){return this.packetsListeners.add(a),()=>this.packetsListeners.delete(a)}onError(a){return this.errorListeners.add(a),()=>this.errorListeners.delete(a)}setAuthToken(a){if(!this.worker)return;const e={type:"setAuth",token:a};this.worker.postMessage(e)}setLiveMode(a){if(!this.worker)return;const e={type:"setLiveMode",enabled:a};this.worker.postMessage(e)}forceRefresh(){this.worker&&this.worker.postMessage({type:"forceRefresh"})}pausePolling(){this.worker&&this.worker.postMessage({type:"pause"})}resumePolling(){this.worker&&this.worker.postMessage({type:"resume"})}clearCache(){this.worker&&this.worker.postMessage({type:"clearCache"})}setTimeWindow(a){if(!this.worker)return;const e={type:"setTimeWindow",hours:a};this.worker.postMessage(e)}terminate(){if(this.unsubscribeTokenChange&&(this.unsubscribeTokenChange(),this.unsubscribeTokenChange=null),this.worker){const a={type:"stop"};this.worker.postMessage(a),this.worker.terminate(),this.worker=null}this.isInitialized=!1,this.statsListeners.clear(),this.packetsListeners.clear(),this.errorListeners.clear()}isReady(){return this.isInitialized}},Wg="pymc-packet-cache",Ug="pymc-packet-cache-meta",Hg=36e5,Yg=2592e5,Gg=6048e5,Kg=12096e5,Xg=5e5,Jg=new class{constructor(){t(this,"packets",new Map),t(this,"sortedPackets",[]),t(this,"sortedDirty",!0),t(this,"meta",{oldestTimestamp:0,newestTimestamp:0,lastUpdated:0,packetCount:0,backgroundLoadComplete:!1,topologyLoadComplete:!1,dataTier:"24h",threeDayLoadComplete:!1,sevenDayLoadComplete:!1,fourteenDayLoadComplete:!1}),t(this,"isLoading",!1),t(this,"isBackgroundLoading",!1),t(this,"isTopologyLoading",!1),t(this,"listeners",new Set),t(this,"loadProgress",null),t(this,"statusMessage",""),this.loadFromStorage()}subscribe(a){return this.listeners.add(a),a(this.getState()),()=>this.listeners.delete(a)}getState(){return{isLoading:this.isLoading,isBackgroundLoading:this.isBackgroundLoading,isTopologyLoading:this.isTopologyLoading,backgroundLoadComplete:this.meta.backgroundLoadComplete,topologyLoadComplete:this.meta.topologyLoadComplete,packetCount:this.packets.size,statusMessage:this.statusMessage,loadProgress:this.loadProgress,dataTier:this.meta.dataTier,threeDayLoadComplete:this.meta.threeDayLoadComplete,sevenDayLoadComplete:this.meta.sevenDayLoadComplete,fourteenDayLoadComplete:this.meta.fourteenDayLoadComplete}}getDataTier(){return this.meta.dataTier}getPackets(){return this.sortedDirty&&(this.sortedPackets=Array.from(this.packets.values()).sort((a,e)=>(a.timestamp??0)-(e.timestamp??0)),this.sortedDirty=!1),this.sortedPackets}getNewestTimestamp(){return this.meta.newestTimestamp}getOldestTimestamp(){return this.meta.oldestTimestamp}isStale(){return 0===this.packets.size||Date.now()-this.meta.lastUpdated>Hg}isHeavyLoadInProgress(){return this.isBackgroundLoading||this.isTopologyLoading}async initialLoad(a){if(this.meta.backgroundLoadComplete&&this.packets.size>0)return this.getPackets();0===this.packets.size&&(this.meta.oldestTimestamp=1/0,this.meta.newestTimestamp=0),this.sortedDirty=!0,this.isLoading=!0,this.loadProgress={loaded:this.packets.size,target:3e4,percent:0},this.notifyListeners();const e=Math.floor((Date.now()-864e5)/1e3);try{await Vg(e,a=>{this.loadProgress={loaded:a.loaded,target:Math.max(3e4,a.loaded),percent:"complete"===a.phase?100:Math.min(95,10*a.chunk)},a.chunk%2==0&&this.notifyListeners()},e=>{this.bulkInsert(e),null==a||a()}),this.meta.packetCount=this.packets.size,this.meta.backgroundLoadComplete=!0,this.meta.dataTier="24h",this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.saveToStorage()}catch(n){}finally{this.isLoading=!1,this.loadProgress=null,this.notifyListeners()}return this.getPackets()}bulkInsert(a){let e=this.meta.oldestTimestamp;e!==1/0&&0!==e||(e=Number.MAX_SAFE_INTEGER);let n=this.meta.newestTimestamp;for(let t=0;tn&&(n=s)}e0&&s<1/0?s:o;if(i<=r)return this.isBackgroundLoading=!1,void $g.resumePolling();const l=3e4*("3d"===a?2:"7d"===a?6:13),c=this.packets.size,d=c+l;this.loadProgress={loaded:c,target:d,percent:0},this.statusMessage=`Loading ${a} history...`,this.notifyListeners();let u=0;try{await Vg(r,a=>{this.loadProgress={loaded:c+a.loaded,target:Math.max(d,c+a.loaded),percent:Math.min(99,Math.round((c+a.loaded)/d*100))},a.chunk%2==0&&this.notifyListeners()},a=>{const e=this.packets.size;this.bulkInsert(a),u+=this.packets.size-e,null==n||n()},void 0,i),this.enforceMemoryCap();const e=Date.now()-1e3*this.meta.oldestTimestamp;"3d"===a?(this.meta.threeDayLoadComplete=e>=Yg,this.meta.threeDayLoadComplete&&(this.meta.dataTier="3d")):"7d"===a?(this.meta.sevenDayLoadComplete=e>=Gg,this.meta.sevenDayLoadComplete&&(this.meta.dataTier="7d")):(this.meta.fourteenDayLoadComplete=e>=Kg,this.meta.fourteenDayLoadComplete&&(this.meta.dataTier="14d")),this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.notifyListeners(),this.saveToStorage()}catch(h){this.statusMessage=`${a} load failed`}finally{this.isBackgroundLoading=!1,this.statusMessage="",this.loadProgress=null,this.notifyListeners(),$g.resumePolling()}}isDataTierAvailable(a){switch(a){case"24h":return this.meta.backgroundLoadComplete;case"3d":return this.meta.threeDayLoadComplete;case"7d":return this.meta.sevenDayLoadComplete;case"14d":return this.meta.fourteenDayLoadComplete;default:return!1}}async topologyLoad(){if(!this.meta.topologyLoadComplete&&!this.isTopologyLoading)return this.doTopologyLoad()}async forceTopologyLoad(){if(!this.isTopologyLoading)return this.meta.topologyLoadComplete=!1,this.doTopologyLoad()}async forceDeepLoad(){return this.forceTopologyLoad()}async doTopologyLoad(){this.isTopologyLoading=!0,$g.pausePolling();const a=Date.now(),e=Math.floor(a/1e3),n=Math.floor((a-Kg)/1e3),t=this.meta.oldestTimestamp,o=t>0&&t<1/0?t:e;if(o<=n)return this.meta.topologyLoadComplete=!0,this.isTopologyLoading=!1,void $g.resumePolling();const r=this.packets.size,s=r+42e4;this.statusMessage="Loading topology data...",this.loadProgress={loaded:r,target:s,percent:0},this.notifyListeners();let i=0;try{await Vg(n,a=>{this.loadProgress={loaded:r+a.loaded,target:Math.max(s,r+a.loaded),percent:Math.min(99,Math.round((r+a.loaded)/s*100))},a.chunk%2==0&&this.notifyListeners()},a=>{const e=this.packets.size;this.bulkInsert(a),i+=this.packets.size-e},void 0,o),this.enforceMemoryCap(),this.statusMessage=`Processing ${this.packets.size.toLocaleString()} packets...`,this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.notifyListeners(),this.meta.topologyLoadComplete=!0,this.meta.threeDayLoadComplete=!0,this.meta.sevenDayLoadComplete=!0,this.meta.fourteenDayLoadComplete=!0,this.meta.dataTier="14d",this.saveToStorage()}catch(l){this.statusMessage="Load failed"}finally{this.isTopologyLoading=!1,this.statusMessage="",this.loadProgress=null,this.notifyListeners(),$g.resumePolling()}}async poll(){try{const a=await this.fetchRecentPackets(100);if(a.success&&a.data){const e=this.packets.size;this.mergePackets(a.data),this.packets.size>e&&(this.saveToStorage(),this.notifyListeners())}}catch(a){}return this.getPackets()}clear(){this.packets.clear(),this.sortedPackets=[],this.sortedDirty=!0,this.meta={oldestTimestamp:0,newestTimestamp:0,lastUpdated:0,packetCount:0,backgroundLoadComplete:!1,topologyLoadComplete:!1,dataTier:"24h",threeDayLoadComplete:!1,sevenDayLoadComplete:!1,fourteenDayLoadComplete:!1},this.clearStorage(),this.notifyListeners()}mergePacketsDirectly(a){const e=this.packets.size;this.mergePackets(a);const n=this.packets.size-e;return n>0&&(this.enforceMemoryCap(),this.saveToStorage(),this.notifyListeners()),n}mergePackets(a){let e=!1;for(const n of a){const a=n.packet_hash;if(!a)continue;const t=n.timestamp??0,o=`${a}:${t}`;this.packets.has(o)||(this.packets.set(o,n),e=!0),(0===this.meta.oldestTimestamp||tthis.meta.newestTimestamp&&(this.meta.newestTimestamp=t)}e&&(this.sortedDirty=!0),this.meta.lastUpdated=Date.now(),this.meta.packetCount=this.packets.size}notifyListeners(){const a=this.getState();for(const e of this.listeners)e(a)}enforceMemoryCap(){if(this.packets.size<=Xg)return;const a=this.getPackets(),e=a.length-Xg;for(let n=0;ne&&(this.meta.oldestTimestamp=a[e].timestamp??0)}loadFromStorage(){if("undefined"!=typeof window)try{const a=localStorage.getItem(Ug);a&&(this.meta=JSON.parse(a));const e=localStorage.getItem(Wg);if(e){const a=JSON.parse(e);let n=1/0,t=0;for(const e of a)if(e.packet_hash){const a=e.timestamp??0,o=`${e.packet_hash}:${a}`;this.packets.set(o,e),a>0&&at&&(t=a)}this.packets.size>0&&n!==1/0&&(this.meta.oldestTimestamp=n,this.meta.newestTimestamp=t)}if(this.meta.lastUpdated>0&&Date.now()-this.meta.lastUpdated>Hg)return void this.clear();this.meta.backgroundLoadComplete=!1,this.meta.threeDayLoadComplete=!1,this.meta.sevenDayLoadComplete=!1,this.meta.fourteenDayLoadComplete=!1,this.meta.dataTier="24h";const n=37500;this.meta.topologyLoadComplete&&this.packets.size3e3?a.slice(-3e3):a;localStorage.setItem(Wg,JSON.stringify(e))}catch(a){if(a instanceof DOMException&&"QuotaExceededError"===a.name)try{localStorage.removeItem(Wg),localStorage.setItem(Ug,JSON.stringify(this.meta))}catch{}}}clearStorage(){if("undefined"!=typeof window)try{localStorage.removeItem(Wg),localStorage.removeItem(Ug)}catch(a){}}async fetchRecentPackets(a=1e3,e=!1){const n=`/api/recent_packets?limit=${a}`,t=ig(),o={Accept:"application/json"};t&&(o.Authorization=`Bearer ${t}`);const r=await fetch(n,{headers:o});if(401===r.status&&!e&&await bg())return this.fetchRecentPackets(a,!0);if(!r.ok)throw new Error(`API error: ${r.status}`);return r.json()}};function Zg(a){return{paths:a.paths,byEndpoints:new Map(a.byEndpointsEntries),canonicalPaths:new Map(a.canonicalPathsEntries),totalObservations:a.totalObservations,uniquePathCount:a.uniquePathCount}}function Qg(){return{paths:[],byEndpoints:new Map,canonicalPaths:new Map,totalObservations:0,uniquePathCount:0}}const ab=new class{constructor(){t(this,"worker",null),t(this,"listeners",new Set),t(this,"currentTopology",{edges:[],validatedEdges:[],weakEdges:[],certainEdges:[],uncertainEdges:[],edgeMap:new Map,maxPacketCount:0,maxCertainCount:0,neighborAffinity:new Map,fullAffinity:new Map,localPrefix:null,centrality:new Map,hubNodes:[],gatewayNodes:[],loops:[],loopEdgeKeys:new Set,txDelayRecommendations:new Map,pathRegistry:Qg(),edgeBetweenness:new Map,backboneEdges:[],nodeMobility:new Map,mobileNodes:[],pathHealth:[],lastHopNeighbors:[],disambiguationStats:{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:[],viterbiStats:{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map,communityCount:0,backboneNodes:[]}),t(this,"isComputing",!1),t(this,"pendingRequest",null),t(this,"debounceTimer",null),t(this,"debounceMs",100),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/topology.worker-B6JO1dmH.js",import.meta.url),{type:"module"}),this.worker.onmessage=a=>{this.handleWorkerMessage(a.data)},this.worker.onerror=a=>{}}catch(a){}}handleWorkerMessage(a){if(this.isComputing=!1,"error"!==a.type){var e;this.currentTopology={edges:(e=a.payload).edges??[],validatedEdges:e.validatedEdges??[],weakEdges:e.weakEdges??[],certainEdges:e.certainEdges??[],uncertainEdges:e.uncertainEdges??[],maxPacketCount:e.maxPacketCount??0,maxCertainCount:e.maxCertainCount??0,localPrefix:e.localPrefix??null,hubNodes:e.hubNodes??[],gatewayNodes:e.gatewayNodes??[],edgeMap:new Map(e.edgeMapEntries??[]),neighborAffinity:new Map(e.neighborAffinityEntries??[]),fullAffinity:new Map(e.fullAffinityEntries??[]),centrality:new Map(e.centralityEntries??[]),loops:e.loops??[],loopEdgeKeys:new Set(e.loopEdgeKeyEntries??[]),txDelayRecommendations:new Map(e.txDelayRecommendationEntries??[]),pathRegistry:e.pathRegistry?Zg(e.pathRegistry):Qg(),edgeBetweenness:new Map(e.edgeBetweennessEntries??[]),backboneEdges:e.backboneEdges??[],nodeMobility:new Map(e.nodeMobilityEntries??[]),mobileNodes:e.mobileNodes??[],pathHealth:e.pathHealth??[],lastHopNeighbors:e.lastHopNeighbors??[],disambiguationStats:e.disambiguationStats??{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:e.discoveredNodes??[],viterbiStats:e.viterbiStats??{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map(e.nodeMetricsEntries??[]),communityCount:e.communityCount??0,backboneNodes:e.backboneNodes??[]};for(const e of this.listeners)try{e(this.currentTopology,a.computeTimeMs)}catch(n){}if(this.pendingRequest){const a=this.pendingRequest;this.pendingRequest=null,this.computeInternal(a)}}}computeInternal(a){if(!this.worker)return;this.isComputing=!0;const e={type:"compute",payload:a};this.worker.postMessage(e)}compute(a,e,n,t,o,r,s,i){const l={packets:a,neighbors:e,localHash:n,localLat:t,localLon:o,airtimeMs:r,zeroHopNeighbors:s,terrainGrid:i,enableTerrainAware:void 0!==i};this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.isComputing?this.pendingRequest=l:this.computeInternal(l)},this.debounceMs)}subscribe(a){return this.listeners.add(a),this.currentTopology.edges.length>0&&a(this.currentTopology,0),()=>{this.listeners.delete(a)}}getTopology(){return this.currentTopology}isWorking(){return this.isComputing}terminate(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.worker&&(this.worker.terminate(),this.worker=null),this.listeners.clear()}},eb=new class{constructor(){t(this,"worker",null),t(this,"listeners",new Set),t(this,"sparklines",new Map),t(this,"isComputing",!1),t(this,"lastComputeTimeMs",0),t(this,"pendingRequest",null),t(this,"debounceTimer",null),t(this,"debounceMs",150),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/sparkline.worker-CmKhBAy5.js",import.meta.url),{type:"module"}),this.worker.onmessage=a=>{this.handleWorkerMessage(a.data)},this.worker.onerror=a=>{this.isComputing=!1,this.notifyListeners()}}catch(a){}}handleWorkerMessage(a){if(this.isComputing=!1,"error"!==a.type){if(this.sparklines=new Map(a.payload.sparklineEntries),this.lastComputeTimeMs=a.computeTimeMs,this.notifyListeners(),this.pendingRequest){const a=this.pendingRequest;this.pendingRequest=null,this.computeInternal(a.packets,a.nodeHashes)}}else this.notifyListeners()}computeInternal(a,e){if(!this.worker)return;if(0===e.length)return this.isComputing=!1,void this.notifyListeners();this.isComputing=!0,this.notifyListeners();const n={type:"compute",payload:{packets:a,nodeHashes:e}};this.worker.postMessage(n)}notifyListeners(){for(const e of this.listeners)try{e(this.sparklines,this.isComputing)}catch(a){}}compute(a,e){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.isComputing?this.pendingRequest={packets:a,nodeHashes:e}:this.computeInternal(a,e)},this.debounceMs)}getSparkline(a){return this.sparklines.get(a)??[]}getAllSparklines(){return this.sparklines}hasSparkline(a){return this.sparklines.has(a)}isWorking(){return this.isComputing}getLastComputeTime(){return this.lastComputeTimeMs}subscribe(a){return this.listeners.add(a),a(this.sparklines,this.isComputing),()=>{this.listeners.delete(a)}}clear(){this.sparklines.clear(),this.notifyListeners()}terminate(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.worker&&(this.worker.terminate(),this.worker=null),this.listeners.clear()}},nb=new class{constructor(){t(this,"ws",null),t(this,"connectionState","disconnected"),t(this,"reconnectAttempts",0),t(this,"pingIntervalId",null),t(this,"lastPongTime",Date.now()),t(this,"reconnectTimeoutId",null),t(this,"packetListeners",new Set),t(this,"statsListeners",new Set),t(this,"systemStatsListeners",new Set),t(this,"packetStatsListeners",new Set),t(this,"connectionListeners",new Set),t(this,"unsubscribeTokenChange",null),t(this,"wsSupported",!0)}buildWsUrl(){const a=ig(),e=tg(),n=new URLSearchParams;a&&n.set("token",a),e&&n.set("client_id",e);const t=n.toString()?`?${n.toString()}`:"";return`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}/ws/packets${t}`}connect(){var a,e;if((null==(a=this.ws)?void 0:a.readyState)!==WebSocket.OPEN&&(null==(e=this.ws)?void 0:e.readyState)!==WebSocket.CONNECTING&&this.wsSupported){this.setConnectionState("connecting");try{const a=this.buildWsUrl();this.ws=new WebSocket(a),this.ws.onopen=this.handleOpen.bind(this),this.ws.onmessage=this.handleMessage.bind(this),this.ws.onerror=this.handleError.bind(this),this.ws.onclose=this.handleClose.bind(this),this.unsubscribeTokenChange||(this.unsubscribeTokenChange=eg(a=>{a&&"connected"===this.connectionState&&(this.disconnect(),this.connect())}))}catch(n){this.wsSupported=!1,this.setConnectionState("disconnected")}}}disconnect(){this.clearPingInterval(),this.clearReconnectTimeout(),this.ws&&(this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.readyState!==WebSocket.OPEN&&this.ws.readyState!==WebSocket.CONNECTING||this.ws.close(1e3,"Client disconnect"),this.ws=null),this.setConnectionState("disconnected"),this.reconnectAttempts=0}isConnected(){var a;return(null==(a=this.ws)?void 0:a.readyState)===WebSocket.OPEN}getConnectionState(){return this.connectionState}isSupported(){return this.wsSupported}resetSupported(){this.wsSupported||(this.wsSupported=!0,this.reconnectAttempts=0)}send(a){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;try{return this.ws.send(JSON.stringify(a)),!0}catch(e){return!1}}onPacket(a){return this.packetListeners.add(a),()=>this.packetListeners.delete(a)}onStats(a){return this.statsListeners.add(a),()=>this.statsListeners.delete(a)}onSystemStats(a){return this.systemStatsListeners.add(a),()=>this.systemStatsListeners.delete(a)}onPacketStats(a){return this.packetStatsListeners.add(a),()=>this.packetStatsListeners.delete(a)}onConnectionChange(a){return this.connectionListeners.add(a),a(this.connectionState,this.reconnectAttempts),()=>this.connectionListeners.delete(a)}handleOpen(){this.setConnectionState("connected"),this.reconnectAttempts=0,this.lastPongTime=Date.now();const a=ig();a&&this.ws&&this.ws.send(JSON.stringify({type:"auth",token:a})),this.startPingInterval()}handleMessage(a){try{const e=JSON.parse(a.data);switch(e.type){case"packet":this.notifyPacketListeners(e.data);break;case"stats":{const a=e.data;a&&"noise_floor_dbm"in a&&this.notifyStatsListeners(a),(null==a?void 0:a.packet_stats)&&this.notifyPacketStatsListeners(a.packet_stats),(null==a?void 0:a.system_stats)&&this.notifySystemStatsListeners(a.system_stats);break}case"packet_stats":{const a=e.data;this.notifyPacketStatsListeners(a);break}case"system_stats":this.notifySystemStatsListeners(e.data);break;case"ping":this.lastPongTime=Date.now(),this.send({type:"pong"});break;case"pong":this.lastPongTime=Date.now()}}catch(e){}}handleError(a){}handleClose(a){this.clearPingInterval(),1e3!==a.code?(1006===a.code&&this.reconnectAttempts,this.scheduleReconnect()):this.setConnectionState("disconnected")}setConnectionState(a){if(this.connectionState!==a){this.connectionState=a;for(const n of this.connectionListeners)try{n(a,this.reconnectAttempts)}catch(e){}}}notifyPacketListeners(a){for(const n of this.packetListeners)try{n(a)}catch(e){}}notifyStatsListeners(a){for(const n of this.statsListeners)try{n(a)}catch(e){}}notifySystemStatsListeners(a){for(const n of this.systemStatsListeners)try{n(a)}catch(e){}}notifyPacketStatsListeners(a){for(const n of this.packetStatsListeners)try{n(a)}catch(e){}}startPingInterval(){this.clearPingInterval(),this.pingIntervalId=setInterval(()=>{var a;(null==(a=this.ws)?void 0:a.readyState)===WebSocket.OPEN&&(this.send({type:"ping"}),Date.now()-this.lastPongTime>6e4&&(this.disconnect(),this.connect()))},3e4)}async verifyConnection(a=5e3){return!(!this.ws||this.ws.readyState!==WebSocket.OPEN)&&new Promise(e=>{const n=Date.now(),t=this.lastPongTime;this.send({type:"ping"});const o=setInterval(()=>{this.lastPongTime>t?(clearInterval(o),e(!0)):Date.now()-n>a&&(clearInterval(o),e(!1))},100)})}clearPingInterval(){this.pingIntervalId&&(clearInterval(this.pingIntervalId),this.pingIntervalId=null)}scheduleReconnect(){if(this.reconnectAttempts>=20)return this.wsSupported=!1,void this.setConnectionState("disconnected");this.setConnectionState("reconnecting");const a=Math.min(1e3*Math.pow(2,Math.min(this.reconnectAttempts,5)),3e4);this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout(()=>{this.reconnectTimeoutId=null,this.connect()},a)}clearReconnectTimeout(){this.reconnectTimeoutId&&(clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=null)}terminate(){this.disconnect(),this.unsubscribeTokenChange&&(this.unsubscribeTokenChange(),this.unsubscribeTokenChange=null),this.packetListeners.clear(),this.statsListeners.clear(),this.systemStatsListeners.clear(),this.packetStatsListeners.clear(),this.connectionListeners.clear()}},tb=3e4,ob=new class{constructor(){t(this,"staged",new Map),t(this,"recentlyConfirmed",new Map),t(this,"listeners",new Set),t(this,"pruneIntervalId",null),this.startPruneInterval()}stage(a){const e=a.packet_hash;if(!e)return;if(this.staged.has(e))return;const n=this.recentlyConfirmed.get(e);n&&Date.now()-n=100&&this.removeOldest(),this.staged.set(e,{packet:a,stagedAt:Date.now()}),this.notifyListeners())}confirm(a){this.staged.delete(a)&&this.notifyListeners()}confirmBatch(a){let e=!1;const n=Date.now();for(const t of a)this.recentlyConfirmed.set(t,n),this.staged.delete(t)&&(e=!0);if(this.recentlyConfirmed.size>200){const a=n-tb;for(const[e,n]of this.recentlyConfirmed)n(e.packet.timestamp??0)-(a.packet.timestamp??0))}isPending(a){return!!a&&this.staged.has(a)}getPendingCount(){return this.staged.size}subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}clear(){this.staged.size>0&&(this.staged.clear(),this.notifyListeners())}terminate(){this.stopPruneInterval(),this.staged.clear(),this.listeners.clear()}notifyListeners(){const a=this.getPendingPackets();for(const n of this.listeners)try{n(a)}catch(e){}}pruneExpired(){const a=Date.now();let e=!1;for(const[n,t]of this.staged)a-t.stagedAt>tb&&(this.staged.delete(n),e=!0);e&&this.notifyListeners()}removeOldest(){let a=null,e=1/0;for(const[n,t]of this.staged)t.stagedAtthis.pruneExpired(),1e4))}stopPruneInterval(){this.pruneIntervalId&&(clearInterval(this.pruneIntervalId),this.pruneIntervalId=null)}},rb=w(a=>({connectionState:"disconnected",isSupported:!0,reconnectAttempt:0,lastConnected:null,initialize:()=>{nb.onConnectionChange((e,n)=>{a(a=>({connectionState:e,reconnectAttempt:n??0,isSupported:nb.isSupported(),lastConnected:"connected"===e?Date.now():a.lastConnected}))}),nb.connect()}})),sb=.05,ib=1e3,lb="terrarium";function cb(a,e,n){try{return a.queryTerrainElevation({lng:e,lat:n})??0}catch{return 0}}const db=w((a,e)=>({terrainGrid:null,isLoading:!1,error:null,lastLoadedAt:null,cachedBounds:null,terrainDisambiguationEnabled:!0,loadTerrain:async(n,t)=>{const o=e();if(!(o.isLoading||(r=o.cachedBounds,s=n,r&&r.minLat<=s.minLat&&r.maxLat>=s.maxLat&&r.minLng<=s.minLng&&r.maxLng>=s.maxLng))){var r,s;a({isLoading:!0,error:null});try{t.getTerrain()||(t.getSource(lb)||(t.addSource(lb,{type:"raster-dem",tiles:["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],encoding:"terrarium",tileSize:256}),await new Promise((a,e)=>{const n=setTimeout(()=>e(new Error("Terrain source load timeout")),1e4),o=e=>{e.sourceId===lb&&e.isSourceLoaded&&(clearTimeout(n),t.off("sourcedata",o),a())};t.on("sourcedata",o)})),t.setTerrain({source:lb}),await new Promise(a=>setTimeout(a,500)));const e=await async function(a,e){const{minLat:n,maxLat:t,minLng:o,maxLng:r}=e;let s=Math.ceil((r-o)/.001),i=Math.ceil((t-n)/.001);s>ib&&(s=ib),i>ib&&(i=ib);const l=(r-o)/s,c=(t-n)/i,d=Math.max(l,c),u=new Float32Array(s*i);let h=0;for(let m=0;msetTimeout(a,0))}}return{origin:[n,o],cellSize:d,width:s,height:i,elevations:u}}(t,n);a({terrainGrid:e,isLoading:!1,lastLoadedAt:Date.now(),cachedBounds:n})}catch(i){const e=i instanceof Error?i.message:"Unknown error loading terrain";a({isLoading:!1,error:e})}}},preloadFromNodes:async(a,n)=>{const t=function(a){const e=a.filter(a=>void 0!==a.latitude&&void 0!==a.longitude&&(0!==a.latitude||0!==a.longitude));if(0===e.length)return null;let n=1/0,t=-1/0,o=1/0,r=-1/0;for(const s of e)n=Math.min(n,s.latitude),t=Math.max(t,s.latitude),o=Math.min(o,s.longitude),r=Math.max(r,s.longitude);return{minLat:n-sb,maxLat:t+sb,minLng:o-sb,maxLng:r+sb}}(a);t&&await e().loadTerrain(t,n)},clearTerrain:()=>{a({terrainGrid:null,cachedBounds:null,lastLoadedAt:null,error:null})},setTerrainDisambiguationEnabled:e=>{a({terrainDisambiguationEnabled:e})},getTerrainGridForDisambiguation:()=>{const a=e();return a.terrainDisambiguationEnabled?a.terrainGrid:null}})),ub="pymc-stealth-location";function hb(a){if("undefined"!=typeof window)try{localStorage.setItem(ub,JSON.stringify(a))}catch{}}function mb(a){return!isNaN(a)&&a>=-90&&a<=90}function pb(a){return!isNaN(a)&&a>=-180&&a<=180}const gb=function(){if("undefined"==typeof window)return{};try{const a=localStorage.getItem(ub);if(!a)return{};const e=JSON.parse(a);if("number"==typeof e.latitude&&"number"==typeof e.longitude&&"boolean"==typeof e.enabled&&mb(e.latitude)&&pb(e.longitude))return e}catch{}return{}}(),bb=w((a,e)=>({latitude:gb.latitude??null,longitude:gb.longitude??null,enabled:gb.enabled??!1,setLocation:(n,t)=>{mb(n)&&pb(t)&&(a({latitude:n,longitude:t}),hb({latitude:n,longitude:t,enabled:e().enabled}))},enable:()=>{const{latitude:n,longitude:t}=e();null!==n&&null!==t&&(a({enabled:!0}),hb({latitude:n,longitude:t,enabled:!0}))},disable:()=>{a({enabled:!1});const{latitude:n,longitude:t}=e();null!==n&&null!==t&&hb({latitude:n,longitude:t,enabled:!1})},clear:()=>{a({latitude:null,longitude:null,enabled:!1}),function(){if("undefined"!=typeof window)try{localStorage.removeItem(ub)}catch{}}()},getEffectiveLocation:()=>{const{latitude:a,longitude:n,enabled:t}=e();return t&&null!==a&&null!==n?{latitude:a,longitude:n}:null},isActive:()=>{const{latitude:a,longitude:n,enabled:t}=e();return t&&null!==a&&null!==n}}));function fb(a,e,n,t){return!e&&t>=3?"offline":n?"connected"!==a&&e||t>0&&t<3?"degraded":"connected":"offline"}const yb=w((a,e)=>({wsState:"disconnected",wsReconnectAttempt:0,restHealthy:!0,lastSuccessfulFetch:null,consecutiveFailures:0,authValid:!0,authExpiresIn:null,health:"connected",bannerDismissed:!1,isInitializing:!0,initialize:()=>{nb.onConnectionChange((n,t)=>{const{restHealthy:o,authValid:r,consecutiveFailures:s,health:i,isInitializing:l}=e(),c=l&&"connected"===n,d=fb(n,o,r,s);a({wsState:n,wsReconnectAttempt:t??0,health:d,isInitializing:!c&&l,bannerDismissed:(d===i||"connected"!==d)&&e().bannerDismissed})}),e().updateAuthState(),setTimeout(()=>{e().isInitializing&&a({isInitializing:!1})},1e4),setInterval(()=>{e().updateAuthState()},3e4)},updateRestHealth:n=>{const{wsState:t,authValid:o,consecutiveFailures:r,health:s}=e(),i=n?0:r+1,l=n||i<3,c=n?Date.now():e().lastSuccessfulFetch,d=fb(t,l,o,i);a({restHealthy:l,lastSuccessfulFetch:c,consecutiveFailures:i,health:d,bannerDismissed:"connected"!==d&&d===s&&e().bannerDismissed})},updateAuthState:()=>{const n=dg()&&!hg(),t=mg(),{wsState:o,restHealthy:r,consecutiveFailures:s,health:i}=e(),l=fb(o,r,n,s);a({authValid:n,authExpiresIn:t>0?t:null,health:l,bannerDismissed:l===i&&e().bannerDismissed})},dismissBanner:()=>{a({bannerDismissed:!0})}})),vb=new class{constructor(){t(this,"worker",null),t(this,"isReady",!1),t(this,"pendingRequests",[]),t(this,"currentRequest",null),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/decryption.worker-Cwma4a6C.js",import.meta.url),{type:"module"}),this.worker.onmessage=this.handleMessage.bind(this),this.worker.onerror=a=>{}}catch(a){}}handleMessage(a){var e,n,t,o;const r=a.data;switch(r.type){case"ready":this.isReady=!0,this.processNextRequest();break;case"progress":(null==(e=this.currentRequest)?void 0:e.onProgress)&&this.currentRequest.onProgress(r.processed,r.total);break;case"result":(null==(n=this.currentRequest)?void 0:n.onResult)&&this.currentRequest.onResult(r.result);break;case"results":if(null==(t=this.currentRequest)?void 0:t.onResults)this.currentRequest.onResults(r.results);else if(null==(o=this.currentRequest)?void 0:o.onResult)for(const a of r.results)this.currentRequest.onResult(a);break;case"batchComplete":this.currentRequest&&(this.currentRequest.onBatchComplete(r.successCount,r.totalCount,r.computeTimeMs),this.currentRequest=null),this.processNextRequest();break;case"error":this.currentRequest&&(this.currentRequest.onBatchComplete(0,0,0),this.currentRequest=null),this.processNextRequest()}}processNextRequest(){if(!this.isReady||!this.worker||this.currentRequest)return;const a=this.pendingRequests.shift();if(!a)return;this.currentRequest={onProgress:a.onProgress,onResult:a.onResult,onResults:a.onResults,onBatchComplete:a.onBatchComplete};const e={type:"decrypt",packets:a.packets,knownKey:a.knownKey};this.worker.postMessage(e)}decrypt(a,e){return new Promise(n=>{const t=a.map(a=>({packet_hash:a.packet_hash,raw_packet:a.raw_packet||"",timestamp:a.timestamp??0,rssi:a.rssi,snr:a.snr,type:a.type,payload_type:a.payload_type}));this.pendingRequests.push({packets:t,knownKey:null==e?void 0:e.knownKey,onProgress:null==e?void 0:e.onProgress,onResults:null==e?void 0:e.onResults,onResult:null==e?void 0:e.onResult,onBatchComplete:(a,e,t)=>{n({successCount:a,totalCount:e,computeTimeMs:t})}}),this.processNextRequest()})}isServiceReady(){return this.isReady}isProcessing(){return null!==this.currentRequest}getPendingCount(){return this.pendingRequests.length}pause(){if(this.worker){const a={type:"pause"};this.worker.postMessage(a)}}resume(){if(this.worker){const a={type:"resume"};this.worker.postMessage(a)}}terminate(){if(this.worker){const a={type:"stop"};this.worker.postMessage(a),this.worker.terminate(),this.worker=null}this.isReady=!1,this.pendingRequests=[],this.currentRequest=null}},wb=3,kb=2,xb=15,jb=6,zb=3,Cb=0,Ab=1,Db=2,Eb=3,Bb={[Cb]:"T_FLOOD",[Ab]:"FLOOD",[Db]:"DIRECT",[Eb]:"T_DIRECT"},Fb=0,qb=1,Sb=2,Mb=3,Tb=4,Pb=5,Lb=6,Rb=7,Nb=8,Ib=9,_b=10,Vb=11,Ob=15,$b={REQ:0,RESPONSE:1,ADVERT:4,GRP_TXT:5,GRP_DATA:6,ANON_REQ:7,TRACE:9},Wb={[Fb]:"REQ",[qb]:"RESPONSE",[Sb]:"TXT_MSG",[Mb]:"ACK",[Tb]:"ADVERT",[Pb]:"GRP_TXT",[Lb]:"GRP_DATA",[Rb]:"ANON_REQ",[Nb]:"PATH",[Ib]:"TRACE",[_b]:"MULTIPART",[Vb]:"CONTROL",[Ob]:"RAW_CUSTOM"},Ub=1,Hb=32,Yb=64,Gb=64,Kb=4,Xb=1,Jb=2,Zb=3,Qb=4,af=16,ef=128,nf=15;function tf(a){return 1===a||0===a}function of(a){return 2===a||3===a}function rf(a){return 0===a||3===a}function sf(a){const e=[];switch(15&a){case 1:e.push("is companion");break;case 2:e.push("is repeater");break;case 3:e.push("is room server");break;case 4:e.push("is sensor")}return 16&a&&e.push("has location"),32&a&&e.push("has feature 1"),64&a&&e.push("has feature 2"),128&a&&e.push("has name"),e.join(", ")||"none"}function lf(a){return Bb[a]??`UNKNOWN(${a})`}function cf(a){return Wb[a]??`UNKNOWN(${a})`}function df(a){const e=a.replace(/^0x/i,"").replace(/\s/g,"");if(e.length%2!=0)throw new Error("Invalid hex string: odd number of characters");const n=new Uint8Array(e.length/2);for(let t=0;ta.toString(16).padStart(2,"0")).join("");return e&&(t=t.toUpperCase()),n&&(t="0x"+t),t}function hf(a,e=!0){const n=(255&a).toString(16).padStart(2,"0");return e?n.toUpperCase():n}function mf(a,e,n,t){if(a+e>n)throw new Error(t)}function pf(a){if(a>256)throw new Error(`payload too large: ${a} > 256`)}function gf(){return"undefined"!=typeof crypto&&void 0!==crypto.subtle&&"function"==typeof crypto.subtle.digest}const bf=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ff=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function yf(a,e){return(a>>>e|a<<32-e)>>>0}function vf(a,e){let n=a[0],t=a[1],o=a[2],r=a[3],s=a[4],i=a[5],l=a[6],c=a[7];for(let d=0;d<64;d++){if(d>=16){const a=yf(e[d-15&15],7)^yf(e[d-15&15],18)^e[d-15&15]>>>3,n=yf(e[d-2&15],17)^yf(e[d-2&15],19)^e[d-2&15]>>>10;e[15&d]=e[15&d]+a+e[d-7&15]+n>>>0}const a=c+(yf(s,6)^yf(s,11)^yf(s,25))+(s&i^~s&l)+bf[d]+e[15&d]>>>0,u=n&t^n&o^t&o;c=l,l=i,i=s,s=r+a>>>0,r=o,o=t,t=n,n=a+((yf(n,2)^yf(n,13)^yf(n,22))+u>>>0)>>>0}a[0]=a[0]+n>>>0,a[1]=a[1]+t>>>0,a[2]=a[2]+o>>>0,a[3]=a[3]+r>>>0,a[4]=a[4]+s>>>0,a[5]=a[5]+i>>>0,a[6]=a[6]+l>>>0,a[7]=a[7]+c>>>0}function wf(a){const e=new Uint32Array(ff),n=new Uint32Array(16),t=8*a.length,o=a.length+9+63&-64,r=new Uint8Array(o);r.set(a),r[a.length]=128;const s=new DataView(r.buffer);s.setUint32(o-4,t,!1);for(let c=0;c>=1}return n}function Af(a){let e=a[13];a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=e,e=a[2],a[2]=a[10],a[10]=e,e=a[6],a[6]=a[14],a[14]=e,e=a[3],a[3]=a[7],a[7]=a[11],a[11]=a[15],a[15]=e}function Df(a){for(let e=0;e<16;e++)a[e]=jf[a[e]]}function Ef(a,e){for(let n=0;n<16;n++)a[n]^=e[n]}function Bf(a){for(let e=0;e<4;e++){const n=4*e,t=a[n],o=a[n+1],r=a[n+2],s=a[n+3];a[n]=Cf(14,t)^Cf(11,o)^Cf(13,r)^Cf(9,s),a[n+1]=Cf(9,t)^Cf(14,o)^Cf(11,r)^Cf(13,s),a[n+2]=Cf(13,t)^Cf(9,o)^Cf(14,r)^Cf(11,s),a[n+3]=Cf(11,t)^Cf(13,o)^Cf(9,r)^Cf(14,s)}}function Ff(a,e){const n=new Uint8Array(a);Ef(n,e[10]);for(let t=9;t>=1;t--)Af(n),Df(n),Ef(n,e[t]),Bf(n);return Af(n),Df(n),Ef(n,e[0]),n}function qf(a,e){const n=function(a){const e=[],n=new Uint8Array(176);n.set(a.slice(0,16));for(let t=16;t<176;t+=4){let a=n[t-4],e=n[t-3],o=n[t-2],r=n[t-1];if(t%16==0){const n=a;a=xf[e]^zf[t/16-1],e=xf[o],o=xf[r],r=xf[n]}n[t]=n[t-16]^a,n[t+1]=n[t-15]^e,n[t+2]=n[t-14]^o,n[t+3]=n[t-13]^r}for(let t=0;t<11;t++)e.push(n.slice(16*t,16*(t+1)));return e}(a),t=new Uint8Array(e.length);for(let o=0;o>>0}function Pf(a,e){return a[e]|a[e+1]<<8}function Lf(a,e){return(a[e]|a[e+1]<<8|a[e+2]<<16|a[e+3]<<24)>>>0}function Rf(a,e,n){e[n]=255&a,e[n+1]=a>>8&255}function Nf(a){return(a instanceof Uint8Array?Array.from(a):a).map(a=>hf(a,!0)).join("->")}const If=["10-de-abril","100-mile-house","100milehouse","10deabril","18-de-marzo","18demarzo","1da","1dm","1mh","1ra-seccion-de-izapa","1rasecciondeizapa","1sdi","2da-seccion-de-medio-monte","2dasecciondemediomonte","31-de-octubre","31deoctubre","3do","a1s","aa","aac","aacg","aala","ab","abac","abala","abasolo","abasolo-del-valle","abasolodelvalle","abbeville","abbeydale","abbotsford","abbottstown","abdenago-c-garcia","abdenagocgarcia","abelardo-l-rodriguez","abelardolrodriguez","aberdeen","aberdeen-proving-ground","aberdeenprovingground","abernathy","abilene","abingdon","abington","abita-springs","abitasprings","abram","abrevadero","abs","absarokee","absecon","abts","ac","ac2s","ac3s","acachapanycolmena3raseccion","acachuen","acacoyagua","academy-garden","academygarden","acadia","acahuasco","acahuizotla","acajete","acala","acalanes-ridge","acalanesridge","acalco","acalpican-de-morelos","acalpicandemorelos","acambaro","acambay","acamilpa","acamixtla","acanceh","acapetahua","acapetlahuaya","acaponeta","acapulco-de-juarez","acapulcodejuarez","acatempa","acatempan","acatepec","acatic","acatla","acatlan","acatlan-de-juarez","acatlan-de-osorio","acatlan-de-perez-figueroa","acatlandejuarez","acatlandeosorio","acatlandeperezfigueroa","acatzingo","acatzingoacatzingodelapiedra","acaxochitlan","acaxtlahuacandealbinozertuche","acayuca","acayucan","acazonica","accokeek","accomac","acg","ach","achichipico","achotal-de-moreno","achotaldemoreno","ackerman","ackley","aclc","acm","acme","acoapa","acolman-de-netzahualcoyotl","acolmandenetzahualcoyotl","aconchi","acontitla","acopinalco-del-penon","acopinalcodelpenon","acoxcatlan","acoyotla","acres-green","acresgreen","act","acteopan","actipan","actipan-de-morelos","actipandemorelos","acton","acton-vale","actonvale","actopan","acuaco","acuamanala","acuexcomac","acuitlapan","acuitlapilco","acuitzio-del-canje","acuitziodelcanje","acula","aculco-de-espinoza","aculcodeespinoza","acultzingo","acushnet","acushnet-center","acushnetcenter","acworth","acxotla-del-monte","acxotla-del-rio","acxotladelmonte","acxotladelrio","ad","ada","adairsville","adams","adams-center","adams-morgan","adamscenter","adamsmorgan","adamstown","adamsville","adaz","adb","adc","addis","addison","ade","adel","adelanto","adelphi","adf","adg","adh","adi","adj","adjuntas-del-rio","adjuntasdelrio","adlf","adli","adll","adlm","adlr","adlu","adm","admu","adn","ado","adolfo-lopez-mateos","adolfo-moreno","adolfo-ruiz-cortines","adolfolopezmateos","adolfolopezmateoseltamarindo","adolfomoreno","adolforuizcortines","adp","adpf","adq","adr","adrian","ads","adst","adstock","adt","aduana-del-sasabe","aduanadelsasabe","adv","advance","adwolf","adz","ae","aea","aeb","aeg","af","afa","affton","afton","ag","agassiz","agawam","agb","agcv","aggf","agiabampo-uno","agiabampouno","agincourt-north","agincourt-south-malvern-west","agincourtnorth","agincourtsouthmalvernwest","agostitlan","agoura","agoura-hills","agourahills","agricola-lazaro-cardenas","agricolalazarocardenas","agronomos-mexicanos","agronomosmexicanos","agu","agua-azul","agua-blanca","agua-blanca-serrania","agua-buena","agua-caliente","agua-del-espino","agua-dulce","agua-escondida","agua-fria","agua-gorda","agua-nueva","agua-prieta","agua-senora","agua-verde","agua-zarca","aguaazul","aguablanca","aguablancaserrania","aguabuena","aguacaliente","aguacalientegrandedegastelum","aguacatenango","aguadelespino","aguadulce","aguaescondida","aguafria","aguagorda","agualeguas","aguanga","aguanueva","aguaprieta","aguas-blancas","aguas-buenas","aguas-calientes","aguasblancas","aguasbuenas","aguascalientes","aguasenora","aguaverde","aguazarca","aguilera","aguililla","agustin-de-iturbide","agustindeiturbide","agv","ah","aha","ahlv","ahome","ahoskie","ahtanum","ahuacachahue-ndogyo-itun-tichi","ahuacachahuendogyoituntichi","ahuacatan","ahuacatitlan","ahuacatlan","ahuacatlan-de-guadalupe","ahuacatlandeguadalupe","ahuacuotzingo","ahuajutla","ahualulco-de-mercado","ahualulco-del-sonido-trece","ahualulcodelsonidotrece","ahualulcodemercado","ahuatempan","ahuateno","ahuatepec","ahuatepec-de-camino","ahuatepec-pueblo","ahuatepecdecamino","ahuatepecpueblo","ahuatitla","ahuatlan","ahuaxintitla","ahuazotepec","ahuehuepan","ahuehuetitla","ahuehuetitlan","ahuehuetzingo","ahuehueyo-primero-centro","ahuehueyoprimerocentro","ahuexotitlan","ahueyahualco","ahuihuiyuco","ahuimanu","ahuiran","ahuisculco","ahuntsic-cartierville","ahuntsiccartierville","ahwahnee","ahwatukee-foothills","ahwatukeefoothills","ai","aiea","aiea-heights","aieaheights","aiken","aina-haina","aina-haina-hawaii-loa-ridge","ainahaina","ainahainahawaiiloaridge","ainaloa","ainsworth","air-force-academy","airdrie","airforceacademy","airmont","airville","airway-heights","airwayheights","aitkin","aj","ajacuba","ajalpan","ajax","ajb","ajijic","ajilho","ajo","ajuchitlan","ajuchitlan-del-progreso","ajuchitlancito","ajuchitlandelprogreso","ajuno","ak","akil","akron","akumal","akutan","al","ala-moana","ala-moana-kakaako","alabama","alabaster","alachua","alafaya","alameda","alamo","alamo-heights","alamoana","alamoanakakaako","alamogordo","alamoheights","alamos","alamos-tepetitlan","alamosa","alamosa-east","alamosaeast","alamostepetitlan","alaquines","alaska","albanel","albany","albany-park","albanypark","albarradas","albemarle","albers","albert-lea","albert-parkradisson-heights","alberta","albertlea","alberto-carrera-torres","albertocarreratorres","alberton","albertparkradissonheights","albertson","albertville","albia","albion","alborada","alborada-jaltenco","alboradajaltenco","albuquerque","alburtis","alc","alcaraces","alchichica","alcholoa","alcoa","alcocer","alcozacan","alcozauca-de-guerrero","alcozaucadeguerrero","aldama","aldan","alden","aldergrove","aldergrove-east","aldergroveeast","alderson","alderton","alderwood","alderwood-manor","alderwoodmanor","aldine","aledo","alejo-gonzalez-bilbao","alejogonzalezbilbao","alewa-heights","alewaheights","alexander","alexander-city","alexandercity","alexandria","alexandria-bay","alexandriabay","alfajayucan","alfaro","alfonso-g-calderon-velarde","alfonso-moguel","alfonsogarzongranjasfamiliares","alfonsogcalderonpobladosiete","alfonsogcalderonvelarde","alfonsomoguel","alfred","alfredo-v-bonfil","alfredo-v-bonfil-chacampalco","alfredo-v-bonfil-siete-ejidos","alfredovbonfil","alfredovbonfilchacampalco","alfredovbonfilsieteejidos","algoma","algona","algonac","algonquin","algood","alh","alhambra","alhuaca","alhuey","aliamanu-makai","aliamanu-mauka","aliamanumakai","aliamanumauka","aliamanusaltlakesfostervillage","alianza-real","alianzareal","alice","aliceville","alief","aliquippa","aliso-viejo","alisoviejo","alista","aljojuca","allapattah","allegan","allegany","allegheny-west","alleghenyville","alleghenywest","allen","allen-lane","allen-park","allendale","allende","allenlane","allenpark","allenstown","allentown","alliance","allison","allison-park","allisonpark","alliston","allouez","alloway","allston","allstonbrighton","allyn","alm","alma","almagres","almecatla","almedia","almolonga","almoloya","almoloya-de-alquisiras","almoloya-del-rio","almoloyadealquisiras","almoloyadelrio","almont","almonte","aloha","alondra-park","alondrapark","alorton","alotepec","alpatlahuac","alpaugh","alpena","alpha","alpharetta","alpine","alpoyeca","alpuyeca","alpuyecancingo-de-las-montanas","alpuyecancingodelasmontanas","alr","als","alsip","alstead","alt","alta","alta-sierra","altadena","altadore","altamira","altamira-de-zinaparo","altamiradezinaparo","altamirano","altamont","altamonte-springs","altamontesprings","altar","altasierra","altata","altavista","altepexi","alto","alto-lucero","altolucero","alton","alton-north-historical","altona","altonnorthhistorical","altoona","altotonga","alturas","altus","altus-bosques","altusbosques","altzayanca","alum-creek","alum-rock","alumcreek","alumrock","alva","alvarado","alvaro-obregon","alvaro-obregon-santa-cruz","alvaroobregon","alvaroobregonsantacruz","alvin","alvord","am","ama","amacueca","amacuitlapilco","amacuzac","amado-gomez","amado-nervo","amadogomez","amadonervo","amador","amagansett","amanalco-de-becerra","amanalcodebecerra","amapa","amarillo","amatan","amatenango-de-la-frontera","amatenango-del-valle","amatenangodelafrontera","amatenangodelvalle","amatepec","amatillo","amatitan","amatitlan","amatitlan-de-azueta","amatitlandeazueta","amatlan","amatlan-de-canas","amatlan-de-los-reyes","amatlan-de-quetzalcoatl","amatlandecanas","amatlandelosreyes","amatlandequetzalcoatl","amaxac-de-guerrero","amaxacdeguerrero","amayuca","amazcala","amberley","ambler","amboy","ambridge","amealco","ameca","amecameca","ameche","amelia","amelia-court-house","ameliacourthouse","ameluca","america-libre","americalibre","american-canyon","american-falls","american-fork","american-samoa","americancanyon","americanfalls","americanfork","americansamoa","americus","amery","ames","ames-lake","amesbury","ameslake","amesti","amherst","amherst-center","amherstburg","amherstcenter","amidon","amigo-beach","amigobeach","amilcingo","amite","amity","amity-gardens","amitygardens","amityville","amixtlan","amk","aml","ammon","amory","amos","amozoc-de-mota","amozocdemota","ampliacion-la-hincada","ampliacion-san-mateo","ampliacion-tezoyuca","ampliacionlahincada","ampliacionsanmateo","ampliaciontezoyuca","amqui","amsterdam","amuco-de-la-reforma","amucodelareforma","an","anacleto-canabal-2da-seccion","anacleto-canabal-3ra-seccion","anacletocanabal2daseccion","anacletocanabal3raseccion","anaconda","anacortes","anadarko","anaheim","anahola","anahuac","anamosa","ancaster","anchor-point","anchorage","anchorpoint","ancient-oaks","ancientoaks","andalusia","anderson","anderson-mill","andersonmill","andorra","andover","andres-quintana-roo","andresquintanaroo","andrews","andrews-afb","andrewsafb","anenecuilco","angahuan","angamacutiro-de-la-union","angamacutirodelaunion","ange-gardien","angegardien","angel-albino-corzo-guadalupe","angel-fire","angel-r-cabada","angelalbinocorzoguadalupe","angelfire","angelrcabada","angels-camp","angelscamp","angier","angleton","angola","angola-on-the-lake","angolaonthelake","angora","angostura","angus","angwin","anh","animas-trujano","animastrujano","anit","ankeny","anmore","ann-arbor","anna","anna-maria","annamaria","annandale","annapolis","annarbor","annetta","annex","anniston","annville","anoka","ansihuacuaro","anson","ansonia","ansted","antelope","antelope-valley-crestview","antelopevalleycrestview","anthem","anthony","antigo","antigonish","antiguo-morelos","antiguomorelos","antioch","antlers","anton","anton-lizardo","antonio-amaro","antonio-escobedo","antonio-j-bermudez","antonio-rosales","antonioamaro","antonioescobedo","antoniojbermudez","antoniorosales","antonlizardo","antrim","antunez","antunez-morelos","antunezmorelos","antwerp","anza","ao","aosc","aotl","aots","ap","apache","apache-junction","apachejunction","apalachicola","apalachin","apalani","apan","apango","apango-de-zaragoza","apangodezaragoza","apanteopan","apantla","apapantilla","apapataro","apas","apaseo-el-alto","apaseo-el-grande","apaseoelalto","apaseoelgrande","apatauyan","apatzingan","apaxco-de-ocampo","apaxcodeocampo","apaxtla-de-castrejon","apaxtladecastrejon","apazapan","apbf","apc","apeo","apetatitlan-antonio-carbajal","apetatitlanantoniocarbajal","apex","apg","aph","apipilulco","apison","apizaco","aplington","apo","apoala","apoderado","apollo","apollo-beach","apollobeach","apopka","aporo","apozol","appalachia","apple-creek","apple-mountain-lake","apple-valley","applecreek","applemountainlake","appleton","appleton-city","appletoncity","applevalley","applewood","applewood-park","applewoodpark","appling","appomattox","aptos","aptos-hills-larkin-valley","aptoshillslarkinvalley","apulco","aputzio-de-juarez","aputziodejuarez","aqr","aquebogue","aquia-harbour","aquiaharbour","aquila","aquiles-cordova-moran","aquiles-serdan","aquiles-serdan-1ra-seccion","aquiles-serdan-san-fernando","aquilescordovamoran","aquilesserdan","aquilesserdan1raseccion","aquilesserdansanfernando","aquismon","aquixtla","ar","arab","arabi","aragon","aramberri","arandas","aransas-pass","aransaspass","arantepacua","aranza","arapaho","arapahoe","araro","aratichanguio","arbolada-los-sauces","arboladalossauces","arboledas","arbolillo","arbour-lake","arbourlake","arbuckle","arbutus","arbutus-ridge","arbutusridge","arc","arcade","arcadia","arcanum","arcata","arcelia","arcelia-de-rodriguez","arceliaderodriguez","archbald","archbold","archdale","archer","archer-city","archer-lodge","archercity","archerlodge","archie","arcila","arcinas","arco","arcola","arden-arcade","arden-hills","arden-on-the-severn","ardenarcade","ardenhills","ardenonthesevern","ardmore","ardsley","arellano","arena-1ra-seccion","arena-6ta-seccion-la-bolsa","arena-de-hidalgo","arena1raseccion","arena6taseccionlabolsa","arenadehidalgo","arenal","arenal-santa-ana","arenaldealvarezarenaldepaco","arenalsantaana","arenas-valley","arenasvalley","argentine","argo","argos","argyle","arial","arimatea","ario-de-rayon","ario-de-rosales","arioderayon","arioderosales","aristocrat-ranchettes","aristocratranchettes","arivaca-junction","arivacajunction","arivechi","arizona","arizona-city","arizonacity","arizpe","arkadelphia","arkansas","arkansas-city","arkansascity","arkoma","arlington","arlington-heights","arlingtonheights","arma","armada","armadillo-de-los-infante","armadillodelosinfante","armona","armonk","armour","armstrong","arnaudville","arnett","arnold","arnold-line","arnoldline","arnolds-park","arnoldspark","arnprior","aromas","arriaga","arrochar","arroyo-choapam","arroyo-de-banco","arroyo-de-enmedio","arroyo-del-maiz-uno","arroyo-del-potrero","arroyo-grande","arroyo-granizo","arroyo-hondo","arroyo-hondo-abejonal","arroyo-limon","arroyo-palenque","arroyo-san-isidro","arroyo-seco","arroyo-vista-hermosa","arroyo-zapotillo","arroyochicalnuevoarroyochicali","arroyochoapam","arroyodebanco","arroyodeenmedio","arroyodelmaizuno","arroyodelpotrero","arroyogrande","arroyogranizo","arroyohondo","arroyohondoabejonal","arroyolimon","arroyopalenque","arroyos","arroyosanisidro","arroyoseco","arroyovistahermosa","arroyozapotillo","arteaga","artemio-trevino","artemiotrevino","artesia","arthur","articuloprimeroconstitucional","artondale","arturo-martinez-adame","arturomartinezadame","arundel","arvada","arvenza-uno","arvenzauno","arverne","arviat","arvin","as","as1s","asa","asbury","asbury-lake","asbury-park","asburylake","asburypark","ascencion","ascension","ash-flat","ash-grove","ashaway","ashburn","ashburnham","ashby","ashcroft","ashdown","asheboro","asherton","asheville","ashfield","ashflat","ashford","ashgrove","ashland","ashland-city","ashlandcity","ashley","ashmont","ashtabula","ashton","ashton-sandy-spring","ashtonsandyspring","ashville","ashwaubenon","asi","asientos","asm","asmw","asotin","aspen","aspen-hill","aspen-woods","aspenhill","aspenwoods","aspermont","aspinwall","ass","assf","assiniboia","assonet","assumption","astacinga","astapa","astatula","astor","astoria","asuncion-ixtaltepec","asuncion-nochixtlan","asuncion-ocotlan","asuncion-tlacolulita","asuncionixtaltepec","asuncionnochixtlan","asuncionocotlan","asunciontlacolulita","at","atacco","atacheo-de-regalado","atacheoderegalado","atalpan","atapan","atapaneo","atarasquillo","atarjea","atascadero","atascocita","atasta","atchison","atco","atecax","atemajac-de-brizuela","atemajacdebrizuela","atempan","atenango-del-rio","atenangodelrio","atencingo","atengo","atenguillo","atenxoxola","atequiza","atexcatzingo","atglen","athabasca","athena","athens","atherton","athol","aticama","atikokan","atil","atitalaquia","atizapan","atkins","atkinson","atla","atlacahualoya","atlacholoaya","atlacomulco-de-fabela","atlacomulcodefabela","atlahuilco","atlamajac","atlamajalcingo-del-rio","atlamajalcingodelrio","atlangatepec","atlanta","atlantic","atlantic-beach","atlantic-city","atlantic-highlands","atlantic-mine","atlanticbeach","atlanticcity","atlantichighlands","atlanticmine","atlantis","atlapexco","atlatlahucan","atlatongo","atlautla","atlequizayan","atliaca","atlixco","atlixtac","atlzayanca","atmore","atoka","atolinga","atoluca","atonalisco","atongo","atotonilco","atotonilco-de-tula","atotonilco-el-alto","atotonilco-el-bajo","atotonilco-el-grande","atotonilcodetula","atotonilcoelalto","atotonilcoelbajo","atotonilcoelgrande","atotonilquillo","atoyac","atoyac-de-alvarez","atoyacdealvarez","atoyatempan","attalla","attawapiskat","attica","attleboro","atwater","atwater-village","atwatervillage","atwood","atzacan","atzacoaloya","atzala","atzalan","atzingo","atzingo-la-cumbre","atzingolacumbre","atzitzintla","au","au-sable","auberry","aubrey","auburn","auburn-bay","auburn-gresham","auburn-hills","auburn-lake-trails","auburnbay","auburndale","auburngresham","auburnhills","auburnlaketrails","audubon","audubon-park","audubonpark","august","augusta","augusto-gomez-villanueva","augustogomezvillanueva","ault","ault-field","aultfield","aumsville","aurelio-manrique","aureliomanrique","aurora","aurora-ermita","aurora-esquipulas","auroraermita","auroraesquipulas","ausable","austell","austin","austintown","autan","autlan-de-navarro","autlandenavarro","av","ava","avalon","avb","avbc","avc","avenal","avenel","aventura","avenue-b-and-c","avenuebandc","averill-park","averillpark","avery-creek","averycreek","avh","avila-beach","avilabeach","avilla","avis","aviston","avoca","avocado-heights","avocadoheights","avon","avon-by-the-sea","avon-center","avon-lake","avon-park","avonbythesea","avoncenter","avondale","avondale-estates","avondaleestates","avonia","avonlake","avonpark","avra-valley","avravalley","aw","awendaw","axapusco","axaxacualco","axixintla","axochiapan","axochio","axotlan","axtla-de-terrazas","axtladeterrazas","axutla","axuxco","ayahualulco","ayapa","ayapango","ayden","ayer","aylmer","ayometitla","ayoquezco-de-aldama","ayoquezcodealdama","ayotitlan","ayotla","ayotlan","ayotoxco-de-guerrero","ayotoxcodeguerrero","ayotuxtla","ayotzinapa","ayotzintepec","ayr","ayutla","ayutla-de-los-libres","ayutladeloslibres","az","azalea-park","azaleapark","azcapotzalco","azilda","azle","azoyu","aztalan","aztec","azteca","aztlan","azumbilla","azusa","ba","babbitt","baborigame","babson-park","babsonpark","baburia","babylon","baca","bacabachi","bacabchen","bacadehuachi","bacalar","bacame-nuevo","bacamenuevo","bacanora","bacerac","bachajon","bachigualatito","bachiniva","bachoco","bachomobampo-numero-dos","bachomobamponumerodos","back-bay","back-mountain","back-of-the-hill","backbay","backmountain","backofthehill","bacliff","bacoachi","bacobampo","bacorehuis","bacubirito","bacum","bad-axe","badaxe","baden","badger","badin","badiraguato","baea","bafb","bagdad","bagley","bagojo-colectivo","bagojocolectivo","bahia-asuncion","bahia-de-kino","bahia-de-lobos","bahia-tortugas","bahiaasuncion","bahiadekino","bahiadelobos","bahiatortugas","bahuichivo","baidland","baie-comeau","baie-durfe","baie-saint-paul","baie-ste-anne","baiecomeau","baiedurfe","baiesaintpaul","baiesteanne","bailey","baileys-crossroads","baileyscrossroads","bainbridge","bainbridge-island","bainbridgeisland","baird","baiting-hollow","baitinghollow","baj","baja-california","baja-california-sur","bajacalifornia","bajacaliforniasur","bajio-de-bonillas","bajio-de-san-jose","bajio-de-san-nicolas","bajiodebonillas","bajiodesanjose","bajiodesannicolas","bajos-de-chila","bajos-del-ejido","bajosdechila","bajosdelejido","bajucu","baker","baker-city","baker-island","bakercity","bakerisland","bakersfield","bakerstown","bakersville","bal-harbour","bala-cynwyd","balacynwyd","balancan","balch-springs","balchsprings","balcones-heights","balconesheights","bald-knob","baldknob","baldwin","baldwin-city","baldwin-harbor","baldwin-park","baldwincity","baldwinharbor","baldwinpark","baldwinsville","baldwinville","baldwyn","balfour","balharbour","ball","ball-ground","ballantrae","ballard","ballenger-creek","ballengercreek","balleza","ballground","ballinger","ballplay","balls-creek","ballscreek","ballston-lake","ballston-spa","ballstonlake","ballstonspa","ballville","ballwin","bally","balm","balmville","balsam-lake","balsamlake","baltic","baltimore","baltimore-highlands","baltimorehighlands","bamberg","bamoa","ban","banamichi","banbury-don-mills","banburydonmills","banco-nacional","banconacional","bancroft","bandera","banderas","banderas-del-aguila","banderasdelaguila","banderasguatacalca2daseccion","banderilla","bandon","banff","banff-trail","banfftrail","bangandho","bangor","bangor-trident-base","bangortridentbase","bangs","banks","banks-springs","bankssprings","bankview","banner-elk","banner-hill","bannerelk","bannerhill","banning","bannockburn","banus-vallarta-verde-vallarta","banusvallartaverdevallarta","bar-harbor","bar-nunn","bara-de-chachalacas","baraboo","baradechachalacas","baraga","barataria","barberton","barbourmeade","barboursville","barbourville","bardonia","bardstown","bardwell","bargersville","barharbor","bariometo","barker-heights","barkerheights","barling","barnegat","barnes-lake-millers-lake","barnesboro","barneslakemillerslake","barnesville","barneveld","barnhart","barnsdall","barnstable","barnstead","barnum-island","barnumisland","barnunn","barnwell","barra-de-cazones","barra-de-navidad","barra-de-tecoanapa","barrackville","barradecazones","barradenavidad","barradetecoanapa","barrancas","barrancas-y-amate-3ra-seccion","barrancasyamate3raseccion","barraute","barre","barretal","barretos","barrett","barrhead","barrie","barriere","barrington","barrington-hills","barringtonhills","barrio-aztlan","barrio-bordo-nuevo","barrio-chiquichuca","barrio-cuarto-la-loma","barrio-de-boyecha","barrio-de-canales","barrio-de-centro-del-cerrillo","barrio-de-ensido","barrio-de-espana","barrio-de-guadalupe","barrio-de-la-barranca","barrio-de-mexico","barrio-de-nuevo-leon","barrio-de-puentecillas","barrio-de-san-isidro","barrio-de-san-juan","barrio-de-san-miguel","barrio-de-san-ramon","barrio-del-cajon","barrio-el-boncho","barrio-el-vivero","barrio-la-joya","barrio-la-teneria","barrio-los-tules","barrio-nuevo","barrio-nuevo-de-los-muertos","barrio-san-diego","barrio-san-joaquin-el-junco","barrio-san-miguel-dorami","barrio-santa-cruz","barrio-tlatenco","barrioaztlan","barriobordonuevo","barriochiquichuca","barriocuartolaloma","barriodeboyecha","barriodecanales","barriodecentrodelcerrillo","barriodeensido","barriodeespana","barriodeguadalupe","barriodejesusfraccionprimera","barriodelabarranca","barriodelcajon","barriodemexico","barriodenuevoleon","barriodepuentecillas","barriodesanisidro","barriodesanjuan","barriodesanmiguel","barriodesanpedrolacabecera","barriodesanramon","barrioelboncho","barrioelvivero","barriolajoya","barriolateneria","barriolostules","barrionuevo","barrionuevodelosmuertos","barriosandiego","barriosanjoaquineljunco","barriosanmigueldorami","barriosantacruz","barriotlatenco","barron","barry","barryville","barstow","barstow-heights","barstowheights","bartlesville","bartlett","barton","barton-creek","bartoncreek","bartonsville","bartonville","bartow","bartram-village","bartramvillage","barview","bas","basalt","basaseachic","basconcobe","basehor","basi","basile","basin","basin-city","basincity","basking-ridge","baskingridge","bass-lake","bassano","bassett","basslake","bastrop","basuchil","basye","batavia","batchelor","batesburg","batesburg-leesville","batesburgleesville","batesville","bath","bath-beach","bathbeach","bathurst","bathurst-manor","bathurstmanor","baton-rouge","batonrouge","batopilasdemanuelgomezmorin","battery-park-city","batteryparkcity","battle-creek","battle-ground","battle-mountain","battlecreek","battlefield","battleground","battlement-mesa","battlementmesa","battlemountain","baudette","bautista-chico","bautistachico","baviacora","bavispe","bawcomville","baxley","baxter","baxter-estates","baxter-springs","baxterestates","baxtersprings","bay","bay-city","bay-harbor","bay-harbor-islands","bay-hill","bay-minette","bay-park","bay-pines","bay-point","bay-roberts","bay-saint-louis","bay-shore","bay-springs","bay-st-george-south","bay-street-corridor","bay-village","bay-wood","bayard","bayboro","baychester","baycity","bayfield","bayharbor","bayharborislands","bayhill","bayminette","bayonet-point","bayonetpoint","bayonne","bayou-boeuf","bayou-cane","bayou-gauche","bayou-la-batre","bayou-vista","bayouboeuf","bayoucane","bayougauche","bayoulabatre","bayouvista","baypark","baypines","baypoint","bayport","bayroberts","baysaintlouis","bayshore","bayshore-gardens","bayshoregardens","bayside","baysprings","baystgeorgesouth","baystreetcorridor","baytown","bayview","bayview-village","bayview-woods-steeles","bayviewvillage","bayviewwoodssteeles","bayvillage","bayville","baywood","bb","bbc","bbds","bbl","bbn","bc","bcc","bck","bcll","bcn","bcs","bd","bda","bdb","bdbj","bdc","bde","bdf","bdg","bdj","bdk","bdl","bdla","bdlb","bdlm","bdlp","bdm","bdn","bdnl","bdo","bdp","bdr","bds","bdsi","bdsj","bdsm","bdsn","bdsp","bdsr","bdt","bdz","be","beach","beach-city","beach-haven","beach-haven-west","beach-park","beachcity","beachhaven","beachhavenwest","beachpark","beachwood","beacon","beacon-hill","beacon-square","beaconhill","beaconsfield","beaconsquare","beale-air-force-base","bealeairforcebase","bealeton","bean-station","beanstation","bear","bear-creek","bear-rocks","bear-valley-springs","bearcreek","beardstown","bearrocks","bearvalleysprings","beatrice","beatty","beattystown","beattyville","beauceville","beaufort","beauharnois","beaumont","beaupre","beausejour","beaver","beaver-city","beaver-dam","beaver-dam-lake","beaver-falls","beavercity","beavercreek","beaverdale","beaverdam","beaverdam-lake-salisbury-mills","beaverdamlake","beaverdamlakesalisburymills","beaverfalls","beaverlodge","beaverton","beb","becal","becanchen","becancour","beckemeyer","becker","becket","beckett","beckett-ridge","beckettridge","beckley","beddington-heights","beddingtonheights","bedford","bedford-heights","bedford-hills","bedford-park-nortown","bedfordheights","bedfordhills","bedfordparknortown","bedminster","bee-cave","bee-ridge","beebe","beecave","beech-grove","beech-mountain-lakes","beechborough-greenbrook","beechboroughgreenbrook","beecher","beechgrove","beechmountainlakes","beechwood","beechwood-trails","beechwood-village","beechwoodtrails","beechwoodvillage","beeridge","beeville","beggs","behchoko","bejucal-de-ocampo","bejucaldeocampo","bejucos","bel-air","bel-air-north","bel-air-south","bel-nor","bel-ridge","belair","belairnorth","belairsouth","belchertown","belcourt","belding","belem","belen","belen-atzitzimititlan","belen-del-refugio","belenatzitzimititlan","belendelrefugio","belfair","belfast","belfield","belford","belgium","belgrade","belhaven","belington","belisario-dominguez","belisariodominguez","bell","bell-acres","bell-gardens","bell-road-historical","bella-esperanza","bella-vista","bella-vista-del-rio","bellacres","bellaesperanza","bellair-meadowbrook-terrace","bellaire","bellairmeadowbrookterrace","bellas-fuentes","bellasfuentes","bellavista","bellavistadelrio","bellbrook","belle","belle-chasse","belle-fourche","belle-glade","belle-glade-camp","belle-harbor","belle-haven","belle-isle","belle-meade","belle-plaine","belle-rose","belle-vernon","belleair","belleair-beach","belleair-bluffs","belleairbeach","belleairbluffs","bellechasse","bellefontaine","bellefontaine-neighbors","bellefontaineneighbors","bellefonte","bellefourche","belleglade","bellegladecamp","belleharbor","bellehaven","belleisle","bellemeade","belleplaine","bellerose","bellerose-terrace","belleroseterrace","bellevernon","belleview","belleville","bellevue","bellflower","bellgardens","bellingham","bellmawr","bellmead","bellmore","bellows-falls","bellowsfalls","bellport","bellroadhistorical","bells","bells-corners","bellscorners","bellview","bellville","bellwood","belmar","belmond","belmont","belmont-cragin","belmont-estates","belmontcragin","belmontestates","belnor","beloeil","beloit","belpre","belridge","beltline","belton","beltsville","belvedere","belvedere-park","belvederepark","belvidere","belville","belzoni","bement","bemidji","bemis","ben-avon","ben-lomond","benavides","benavon","benbrook","bend","bendale","benemerito-de-las-americas","benemerito-juarez","benemeritodelasamericas","benemeritojuarez","benicia","benito-garcia-el-zorrillo","benito-gonzalez","benito-juarez","benito-juarez-ii-san-martin","benito-juarez-la-playita","benito-juarez-uno","benito-juarez-vinateria","benitogarciaelzorrillo","benitogonzalez","benitojuarez","benitojuareziisanmartin","benitojuarezlaplayita","benitojuarezuno","benitojuarezvinateria","benjamin","benjamin-hill","benjaminhill","benkelman","benld","benlomond","bennett","bennettsville","bennington","bennsville","bensalem","bensenville","bensley","benson","bensonhurst","bent-creek","bentcreek","bentleyville","benton","benton-city","benton-harbor","benton-heights","bentoncity","bentonharbor","bentonheights","bentonville","benwood","berea","beresford","bergen","bergen-beach","bergenbeach","bergenfield","berino","beristain","berkeley","berkeley-heights","berkeley-lake","berkeley-springs","berkeleyheights","berkeleylake","berkeleysprings","berkley","berkshire-heights","berkshireheights","berlin","bermejillo","bermuda-dunes","bermuda-run","bermudadunes","bermudarun","bernal","bernalillo","bernardston","bernardsville","berne","bernhards-bay","bernhardsbay","bernice","bernie","berrien-springs","berriensprings","berriozabal","berry","berry-creek","berrycreek","berryville","berthierville","berthoud","bertram","bertsch-oceanview","bertschoceanview","berwick","berwyn","berwyn-heights","berwynheights","bessemer","bessemer-city","bessemercity","betania","bethalto","bethania","bethany","bethany-beach","bethanybeach","bethel","bethel-acres","bethel-heights","bethel-island","bethel-park","bethelacres","bethelheights","bethelisland","bethelpark","bethesda","bethlehem","bethlehem-village","bethlehemvillage","bethpage","bettendorf","betulia","beulah","beulaville","bev","bevent","beverly","beverly-cove","beverly-hills","beverlycove","beverlyhills","bevil-oaks","beviloaks","bexar","bexley","bf","bfa","bfh","bg","bg2s","bgc","bgez","bh","bhb","bhi","bhs","bhv","bhw","bi","bicknell","biddeford","bienvenido","big-bass-lake","big-bear-city","big-bear-lake","big-beaver","big-bend","big-coppitt-key","big-flats","big-flats-airport","big-lake","big-park","big-pine","big-pine-key","big-rapids","big-river","big-rock","big-sandy","big-sky","big-spring","big-stone-gap","big-timber","bigbasslake","bigbearcity","bigbearlake","bigbeaver","bigbend","bigcoppittkey","bigflats","bigflatsairport","bigfork","biggar","biggs","biglake","biglerville","bigpark","bigpine","bigpinekey","bigrapids","bigriver","bigrock","bigsandy","bigsky","bigspring","bigstonegap","bigtimber","billerica","billings","billington-heights","billingtonheights","biloxi","biltmore-forest","biltmoreforest","binbrook","bingham-farms","binghamfarms","binghamton","biola","birch-bay","birch-run","birchbay","birchcliffe-cliffside","birchcliffecliffside","birchrun","birchwood","birchwood-lakes","birchwoodlakes","birdsboro","birmingham","bisbee","biscayne-park","biscaynepark","biscoe","bishop","bishopville","bismarck","bison","bithlo","bixby","bj","bjlp","bju","bjv","bk","bl","black-canyon-city","black-creek","black-diamond","black-earth","black-forest","black-jack","black-lick","black-mountain","black-point-green-point","black-river","black-river-falls","black-rock","blackcanyoncity","blackcreek","blackdiamond","blackearth","blackfalds","blackfoot","blackforest","blackhawk","blackjack","blacklick","blacklick-estates","blacklickestates","blackmountain","blackpointgreenpoint","blackriver","blackriverfalls","blackrock","blacksburg","blackshear","blackstone","blackville","blackwater","blackwell","blackwood","bladenboro","bladensburg","blades","blaine","blainville","blair","blairsville","blake-jones","blakejones","blakely","blanca-espuma","blancaespuma","blanchard","blanchester","blanco","bland","blanding","blandon","blasdell","blasillo1raseccionnicolasbravo","blauvelt","blawnox","blb","bledos","blennerhassett","bliss-corner","blisscorner","blissfield","blj","blml","bloomer","bloomfield","bloomfield-hills","bloomfieldhills","blooming-prairie","bloomingdale","bloomingprairie","bloomington","bloomsburg","blossburg","blossom","blossvale","blountstown","blountsville","blountville","blowing-rock","blowingrock","blsm","blt","blue-ash","blue-ball","blue-bell","blue-earth","blue-grass","blue-hills","blue-island","blue-lake","blue-mound","blue-point","blue-ridge","blue-springs","blueash","blueball","bluebell","blueearth","bluefield","bluegrass","bluehills","blueisland","bluelake","bluemound","bluepoint","blueridge","bluesprings","bluewater","bluewell","bluff-city","bluffcity","bluffdale","bluffton","blythe","blytheville","blythewood","bm","bmea","bml","bms","bmt","bn","bnd","bo","boalsburg","boardman","boaz","bobashi-de-guadalupe","bobashideguadalupe","boca-del-mar","boca-del-monte","boca-del-rio","boca-pointe","boca-raton","bocadelmar","bocadelmonte","bocadelrio","bocaneo-san-pedro","bocaneosanpedro","bocapointe","bocaraton","bocas","bochil","bochojbo-alto","bochojboalto","bocoyna","bodega-bay","bodegabay","bodfish","boerne","bogalusa","bogart","bogata","bogota","bohemia","bohners-lake","bohnerslake","boiling-spring-lakes","boiling-springs","boilingspringlakes","boilingsprings","bois-des-filion","boisbriand","boisdesfilion","boise","boise-city","boisecity","boissevain","bokeelia","bokoba","boles-acres","bolesacres","boley","bolinas","bolindale","boling","bolingbrook","bolivar","bolivar-peninsula","bolivarpeninsula","bolivia","bolon","bolonchen-de-rejon","bolonchenderejon","bolton","bomanxotha","bomintzha","bon-accord","bon-air","bon-aqua-junction","bonaccord","bonadelleranchosmaderaranchos","bonair","bonanza","bonaquajunction","bonaventure","bonavista","bondojito","bondsville","bonduel","bondurant","bonham","bonifacio-garcia","bonifacio-moreno-el-aguaje","bonifaciogarcia","bonifaciomorenoelaguaje","bonifay","bonita","bonita-springs","bonitasprings","bonne-terre","bonneau-beach","bonneaubeach","bonneauville","bonner-springs","bonner-west-riverside","bonners-ferry","bonnersferry","bonnersprings","bonnerwestriverside","bonneterre","bonney-lake","bonneylake","bonny-doon","bonnydoon","bonnyville","bono","bonsall","booker","boone","booneville","boonsboro","boonton","boonville","boothbay","boothbay-harbor","boothbayharbor","boothwyn","boquiapa","boquilla-de-las-perlas","boquilladelasperlas","boquillas","bordentown","bordo-blanco","bordoblanco","borger","boron","boronda","borough","borough-park","boroughpark","borrego-springs","borregosprings","boscawen","boscobel","boshindo","bosque-de-saloya","bosque-farms","bosquedesaloya","bosquefarms","bosques-de-la-magdalena","bosques-de-san-pedro","bosquesdelamagdalena","bosquesdesanpedro","bossier-city","bossiercity","boston","boston-heights","boston-seaport","bostonheights","bostonia","bostonseaport","boswell","boswells-corner","boswellscorner","both","bothell","bothell-east","bothell-west","bothelleast","bothellwest","botkins","bottineau","botwood","boucherville","bouctouche","boulder","boulder-city","boulder-creek","boulder-hill","bouldercity","bouldercreek","boulderhill","boulevard-gardens","boulevard-park","boulevardgardens","boulevardpark","bound-brook","boundbrook","bountiful","bourbon","bourbonnais","bourg","bourget","bourne","boutte","bovina","bow-bog","bow-island","bowbells","bowbog","bowdon","bowen-island","bowenisland","bowie","bowisland","bowleys-quarters","bowleysquarters","bowling-green","bowlinggreen","bowman","bowmansville","bowness","box-elder","boxasni","boxborough","boxelder","boxford","boyceville","boyd","boydton","boye","boyertown","boyes-hot-springs","boyeshotsprings","boyette","boyle-heights","boyleheights","boylston","boyne-city","boynecity","boynton-beach","boyntonbeach","bozeman","bp","bpc","bpgp","bpk","bpn","bq","br","bracebridge","bracey","brackenridge","brackettville","bradbury","braddock","braddock-heights","braddock-hills","braddockheights","braddockhills","bradenton","bradenton-beach","bradentonbeach","bradford","bradford-woods","bradfordwoods","bradley","bradley-beach","bradley-gardens","bradleybeach","bradleygardens","bradner","brady","braeside","braham","braidwood","brainerd","braintree","brambleton","brampton","branch","branchport","brandenburg","brandermill","brandon","brandywine","branford","branford-center","branfordcenter","branson","brant","brantford","braselton","brass-castle","brasscastle","bratenahl","brattleboro","bravo","brawley","bray","brazil","brazoria","brazos","brea","breakeyville","breaux-bridge","breauxbridge","breckenridge","breckenridge-hills","breckenridgehills","breckinridge-center","breckinridgecenter","brecksville","breese","breezy-point","breezypoint","breinigsville","bremen","bremerton","brenham","brent","brentwood","brentwood-estates","brentwoodestates","brer","bressler","bret-harte","bretharte","brevard","brewer","brewerton","brewerytown","brewster","brewster-hill","brewsterhill","brewton","brf","brh","briar","briar-hill-belgravia","briarcliff","briarcliff-manor","briarcliffmanor","briarhillbelgravia","briarwood","brice-prairie","briceprairie","brices-creek","bricescreek","brickerville","bridesburg","bridge-city","bridgecity","bridgehampton","bridgeport","bridgeton","bridgetown","bridgeview","bridgeville","bridgewater","bridgman","bridgton","bridlepathsunnybrookyorkmills","bridlewood","bridport","brielle","brier","brigantine","brigham-city","brighamcity","bright","brighton","brighton-beach","brighton-park","brightonbeach","brightonpark","brightwaters","brightwood","brilliant","brillion","brimfield","brinckerhoff","brinkley","brisas-barra-de-suchiate","brisas-de-zicatela","brisas-del-carrizal","brisasbarradesuchiate","brisasdelcarrizal","brisasdezicatela","brisbane","brisenas-de-matamoros","brisenasdematamoros","bristol","bristow","british-columbia","britishcolumbia","britt","brittany-farms-highlands","brittanyfarmshighlands","britton","brme","brmr","broad-channel","broad-creek","broad-ripple","broadalbin","broadchannel","broadcreek","broadlands","broadmoor","broadripple","broadus","broadview","broadview-heights","broadview-north","broadview-park","broadviewheights","broadviewnorth","broadviewpark","broadway","brock-hall","brockhall","brockport","brockton","brockville","brockway","brocton","brodhead","brodheadsville","brogden","broken-arrow","broken-bow","brokenarrow","brokenbow","bromont","bronson","bronx","bronxville","brook-farm","brook-highland","brook-park","brookdale","brookfarm","brookfield","brookfield-center","brookfieldcenter","brookhaven","brookhaven-amesbury","brookhavenamesbury","brookhighland","brookings","brookland","brooklawn","brooklet","brookline","brooklyn","brooklyn-center","brooklyn-heights","brooklyn-park","brooklyncenter","brooklynheights","brooklynpark","brookmont","brookneal","brookpark","brookridge","brooks","brookshire","brookside","brookside-village","brooksidevillage","brookston","brooksville","brooktrails","brookville","brookwood","broomall","broomfield","brossard","brothertown","broussard","broward","broward-estates","browardestates","brown-city","brown-deer","browncity","browndeer","brownfield","browning","brownlee-park","brownleepark","browns-lake","browns-mills","browns-point","brownsboro","brownsburg","brownsburg-chatham","brownsburgchatham","brownsfield","brownslake","brownsmills","brownspoint","brownstown","brownsville","browntown","brownville","brownwood","broxton","bruce","bruceton","bruceville-eddy","brucevilleeddy","brundidge","brunswick","brush","brush-fork","brush-prairie","brushfork","brushprairie","brushy-creek","brushycreek","brusly","brussels","bryan","bryans-road","bryansroad","bryant","bryn-athyn","bryn-mawr","bryn-mawr-skyway","brynathyn","brynmawr","brynmawrskyway","bryson-city","brysoncity","bs","bsa","bsc","bsd","bsg","bsgs","bsl","bsm","bsmd","bsp","bt","btb","buaysiacobe","buayums","bucerias","buchanan","buchanan-dam","buchanandam","buckeye","buckeye-lake","buckeyelake","buckeystown","buckfield","buckhall","buckhannon","buckhead-ridge","buckheadridge","buckhorn","buckingham","buckland","buckley","buckner","bucksport","buctzotz","bucyrus","buda","budd-lake","buddlake","bude","buechel","buellton","buen-retiro-el-retiro","buena","buena-park","buena-vista","buena-vista-1ra-seccion","buena-vista-apasco","buena-vista-de-la-salud","buena-vista-puxcatan","buenapark","buenaventura","buenaventura-lakes","buenaventuralakes","buenavista","buenavista-de-allende","buenavista-de-benito-juarez","buenavista-de-cortes","buenavista-de-cuellar","buenavista-de-juarez","buenavista-de-trujillo","buenavista-matasanos","buenavista-tetela","buenavista-tomatlan","buenavista1raseccion","buenavistaapasco","buenavistadeallende","buenavistadebenitojuarez","buenavistadecortes","buenavistadecuellar","buenavistadejuarez","buenavistadelasalud","buenavistadetrujillo","buenavistamatasanos","buenavistapuxcatan","buenavistatetela","buenavistatomatlan","buenos-aires","buenos-aires-san-isidro","buenosaires","buenosairessanisidro","buenretiroelretiro","buffalo","buffalo-grove","buffalo-historical","buffalogrove","buffalohistorical","buford","buhl","buhler","buies-creek","buiescreek","bull-run","bull-run-mountain-estates","bull-shoals","bull-valley","bullard","bullhead-city","bullheadcity","bullrun","bullrunmountainestates","bullshoals","bullvalley","bulverde","buna","bunche-park","bunchepark","bunk-foss","bunker-hill","bunker-hill-village","bunkerhill","bunkerhillvillage","bunkerville","bunkfoss","bunkie","bunnell","burbank","burford","burgaw","burgeo","burgettstown","burgos","burien","burkburnett","burke","burkesville","burleson","burley","burlingame","burlington","burnaby","burnet","burnettown","burney","burnham","burns","burns-flat","burns-harbor","burns-lake","burnsflat","burnsharbor","burnslake","burnsville","burnt-store-marina","burntstoremarina","burr-ridge","burrridge","burt","burton","burtonsville","burwell","bushland","bushnell","bushwick","bushyhead","bustamante","bustleton","butchers-hill","butchershill","butler","butler-beach","butlerbeach","butner","butte","buttonwillow","buxton","buzzards-bay","buzzardsbay","bv","bv1s","bva","bvdr","bvp","bvs","bvvv","bw","bwr","bws","byers","byesville","byhalia","bylas","byng","bynum","byram","byrdstown","byrnes-mill","byrnesmill","byron","byron-center","byroncenter","bystrom","c0","c1dm","c1ea","c1s","c1sj","c1sm","c2df","c2ds","c2s","c3dm","c41licenciadocarlosamadrazo","c5df","ca","caa","caao","cabano","cabazon","cabbagetown-south-stjames-town","cabbagetownsouthstjamestown","cabecera-de-indigenas","cabeceradeindigenas","cabeza-de-toro","cabezadetoro","cabezas","cabin-john","cabinjohn","cabo-san-lucas","cabool","cabosanlucas","cabot","cac","cacahoatan","cacahuatal","cacalchen","cacalomacan","cacalotan","cacalotenango","cacaloxuchitl","cacalutla","cacao","cacate","cache","cache-creek","cachecreek","cacm","cacouna","cactus","cactus-flat","cactusflat","caddo","caddo-mills","caddomills","cade","cadereyta","cadereyta-jimenez","cadereytajimenez","cadillac","cadiz","cadott","cafb","cag","cahaba-heights","cahabaheights","cahokia","cahuatache","caimanero","cairo","caja-de-agua","cajadeagua","cajahs-mountain","cajahsmountain","cajelitos","cajititlan","cajonos","cala-norte","cala-sur","calabasas","calabash","calais","calamanda","calanorte","calasur","calaveras","calcahualco","calcehtok","calcium","calcutta","calderitas","caldwell","caledon","caledonia","caledonia-fairbank","caledoniafairbank","calera","calera-chica","calerachica","caleras","caleras-de-ameche","calerasdeameche","caleria","calexico","calgary","calhoun","calhoun-city","calhoun-falls","calhouncity","calhounfalls","calichar-palma-sola","calicharpalmasola","calico-rock","calicorock","calido","caliente","califon","california","california-city","californiacity","calihuala","calimaya","calimesa","calipan","calipatria","calistoga","calixtlahuaca","calkini","callahan","callaway","calle-real","callender","callereal","calm","calmar","calmeca","caln","calnali","calotmul","calpaneria-atezquilla","calpaneriaatezquilla","calpulalpan","calt","caltimacan","caltzontzin","calumet","calumet-city","calumet-park","calumetcity","calumetpark","calvario-buenavista","calvario-del-carmen","calvariobuenavista","calvariodelcarmen","calvert","calvert-city","calvertcity","calverton","calverton-park","calvertonpark","calvillo","calzada-del-tepozan","calzada-larga","calzadadeltepozan","calzadalarga","calzadas","cam","camalotita","camalu","camanche","camano","camargo","camarillo","camaron-de-tejeda","camarondetejeda","camas","cambria","cambria-heights","cambriaheights","cambrian-heights","cambrian-park","cambrianheights","cambrianpark","cambridge","cambridge-bay","cambridge-city","cambridge-springs","cambridgebay","cambridgecity","cambridgeport","cambridgesprings","camden","camdenton","camelia-barrio-la-camelia","camelia-roja","cameliabarriolacamelia","cameliaroja","camembaro","cameron","cameron-park","cameron-park-colonia","cameronpark","cameronparkcolonia","camichin-de-jauja","camichindejauja","camilla","camillus","camino","camlachie","camocuautla","camotepec","camotinchan","camotlan-de-miraflores","camotlandemiraflores","camp","camp-hill","camp-hm-smith","camp-lake","camp-meeker","camp-pendleton-north","camp-pendleton-south","camp-point","camp-springs","camp-swift","camp-verde","campanario","campbell","campbell-river","campbellriver","campbellsport","campbellsville","campbellton","campbelltown","campeche","campestre-flamboyanes","campestre-tarimbaro","campestre-villas-del-alamo","campestreflamboyanes","campestretarimbaro","campestrevillasdelalamo","camphill","camphmsmith","campion","camplake","campmeeker","campo","campo-acosta","campo-balbuena","campo-carretero","campo-chico","campo-de-aguila","campo-grande","campo-la-arrocera","campo-pesquero-el-colorado","campo-real","campoacosta","campobalbuena","campocarretero","campochico","campodeaguila","campogrande","campolaarrocera","campopesqueroelcolorado","camporeal","camppendletonnorth","camppendletonsouth","camppoint","campsprings","campswift","campti","campton","campverde","camrose","cana","canaan","canada","canada-de-bustos","canada-de-caracheo","canada-de-cisneros","canada-de-guadarrama","canada-de-madero","canada-de-negros","canada-de-ramirez","canada-del-tabaco","canadadebustos","canadadecaracheo","canadadecisneros","canadadeguadarrama","canadadeltabaco","canadademadero","canadadenegros","canadaderamirez","canadas-de-obregon","canadasdeobregon","canadensis","canadian","canadian-lakes","canadianlakes","canajoharie","canal-fulton","canal-winchester","canalejas","canalfulton","canalwinchester","canandaigua","cananea","canarsie","canas","canastota","canatlan","canby","cancuc","cancun","candela","candelaria","candelaria-loxicha","candelaria-portezuelo","candelarialoxicha","candelariaportezuelo","candia","candiac","candler-mcafee","candlermcafee","cando","cane-savannah","canelas","canesavannah","caney","canfield","canisteo","canitas-de-felipe-pescador","canitasdefelipepescador","canmore","cannelton","cannon-air-force-base","cannon-beach","cannon-falls","cannonairforcebase","cannonbeach","cannonfalls","canoga-park","canogapark","canon-city","canoncity","canonsburg","canora","cansahcab","cantabria","cantamayec","cantera-de-villagran","canteradevillagran","canterbury","canterwood","cantinela","cantioc","cantley","canton","canton-las-delicias","canton-rancho-nuevo","canton-valley","canton-villaflor","cantonlasdelicias","cantonment","cantonranchonuevo","cantonvalley","cantonvillaflor","cantuna","canutillo","canyon","canyon-city","canyon-country","canyon-day","canyon-lake","canyon-meadows","canyon-rim","canyoncity","canyoncountry","canyonday","canyonlake","canyonmeadows","canyonrim","canyonville","cao","caobanal-1ra-seccion-mezcalapa","caobanal1raseccionmezcalapa","caobas","cap-chat","cap-sante","capac","capacho","capacuaro","caparroso","capchat","cape-canaveral","cape-carteret","cape-charles","cape-coral","cape-dorset","cape-girardeau","cape-may","cape-may-court-house","cape-neddick","cape-saint-claire","capecanaveral","capecarteret","capecharles","capecoral","capedorset","capegirardeau","capemay","capemaycourthouse","capeneddick","capesaintclaire","capilla-de-guadalupe","capilla-de-milpillas","capilladeguadalupe","capillademilpillas","capitan","capitol-heights","capitol-hill","capitola","capitolheights","capitolhill","capoluca","capreol","capron","capsante","captain-cook","captaincook","captains-cove","captainscove","capula","capulhuac-de-mirafuentes","capulhuacdemirafuentes","capulin","capulin-de-bustos","capulindebustos","caracuaro","carapan","caraway","carberry","carbo","carbon-cliff","carbon-hill","carboncliff","carbondale","carbonear","carbonera","carboneras","carbonhill","carbonville","cardenas","cardington","cardonal","cardston","carefree","carencro","carey","caribou","carichi","carignan","caristay","carl-junction","carle-place","carleplace","carleton","carleton-place","carleton-sur-mer","carletonplace","carletonsurmer","carlin","carlinville","carlisle","carlisle-rockledge","carlislerockledge","carljunction","carlos-a-carrillo","carlos-a-madrazo","carlosacarrillo","carlosamadrazo","carlsbad","carlstadt","carlton","carlyle","carlyss","carman","carmel","carmel-by-the-sea","carmel-hamlet","carmel-valley-village","carmelbythesea","carmelhamlet","carmelvalleyvillage","carmen","carmen-serdan","carmen-yalchuch","carmen-zacatal","carmenserdan","carmenyalchuch","carmenzacatal","carmi","carmichael","carnation","carnegie","carnesville","carney","carneys-point","carneyspoint","carnot-moon","carnotmoon","carnuel","caro","carol-city","carol-stream","carolcity","carolina-beach","carolina-shores","carolinabeach","carolinashores","carolstream","carona","carpenter","carpentersville","carpinteria","carpinteros","carrabelle","carranco","carrboro","carriage-club","carriageclub","carricitos","carrier-mills","carriere","carriermills","carrillo","carrillo-puerto","carrillopuerto","carrington","carrizal","carrizal-grande","carrizalgrande","carrizalillo","carrizo-springs","carrizosprings","carrizozo","carroll","carroll-park","carroll-valley","carrollpark","carrollton","carrollvalley","carrollwood","carrollwood-village","carrollwoodvillage","carson","carson-city","carsoncity","carstairs","cartagena-fraccionamiento","cartagenafraccionamiento","carter-lake","carteret","carterlake","cartersville","carterville","carthage","caruthers","caruthersville","carver","carver-ranches","carverranches","carville","cary","caryville","cas","casa","casa-blanca","casa-conejo","casa-de-cerros","casa-de-oro-mount-helix","casa-grande","casa-loma","casa-nueva","casablanca","casaconejo","casadecerros","casadeoromounthelix","casagrande","casahuatlan","casaloma","casanueva","casas","casas-adobes","casas-grandes","casas-viejas","casasadobes","casasgrandes","casasviejas","cascade","cascade-chipita-park","cascade-locks","cascade-valley","cascadechipitapark","cascadelocks","cascadevalley","caserio-de-cortes","caseriodecortes","casey","caseyville","casg","cash","cashmere","cashton","casitas","casper","cass-city","casscity","casselberry","casselman","casselton","cassopolis","cassville","castaic","castamay","castanea","castanos","castillo-de-teayo","castillodeteayo","castine","castle-dale","castle-hayne","castle-hills","castle-pines","castle-pines-north","castle-point","castle-rock","castle-shannon","castledale","castlegar","castlehayne","castlehills","castlepines","castlepinesnorth","castlepoint","castleridge","castlerock","castleshannon","castleton","castleton-on-hudson","castletononhudson","castlewood","castro-urdiales","castro-valley","castrourdiales","castrovalley","castroville","catahoula","catalina","catalina-foothills","catalinafoothills","catarino-rodriguez","catarinorodriguez","catasauqua","catawba","catawissa","catazaja","catemaco","cathcart","cathedral-city","cathedralcity","cathlamet","catishtic","catlettsburg","catlin","cato","catonsville","catoosa","catskill","caucel","caurio-de-guadalupe","cauriodeguadalupe","cavalier","cave-city","cave-creek","cave-junction","cave-spring","cave-springs","cavecity","cavecreek","cavejunction","cavespring","cavesprings","cavetown","caxapa","caxhuacan","caxitepec","caxuxi","cayaco","cayce","cayucos","cayuga","cayuga-heights","cayugaheights","cazenovia","cazones-de-herrera","cazonesdeherrera","cb","cbd","cbj","cblc","cbs","cbts","cc","cc3","ccc","ccdc","ccdo","cce","cch","ccp","ccv","cd","cda","cdb","cdba","cdbh","cdbj","cdc","cdd","cdf","cdfp","cdg","cdgb","cdh","cdi","cdj","cdke","cdl","cdlc","cdle","cdlj","cdll","cdlm","cdlp","cdls","cdm","cdmx","cdn","cdo","cdp","cdr","cdrs","cds","cdsf","cdsp","cdt","cdv","cdvp","cdz","ce","cebadilla-1ra-seccion","cebadilla1raseccion","ceballos","cec","cecil-bishop","cecilbishop","cecilia","cecilio-teran","cecilioteran","cedar","cedar-bluff","cedar-city","cedar-falls","cedar-glen-lakes","cedar-glen-west","cedar-grove","cedar-hill","cedar-hills","cedar-knolls","cedar-lake","cedar-mill","cedar-park","cedar-point","cedar-rapids","cedar-ridge","cedar-springs","cedarbluff","cedarbrae","cedarbrook","cedarburg","cedarcity","cedaredge","cedarfalls","cedarglenlakes","cedarglenwest","cedargrove","cedarhill","cedarhills","cedarhurst","cedarknolls","cedarlake","cedarmill","cedarpark","cedarpoint","cedarrapids","cedarridge","cedarsprings","cedartown","cedarville","cedral","cedro-de-la-manzana","cedrodelamanzana","cedros","cef","cefereso-numero-3","ceferesonumero3","ceg","ceiba-1ra-seccion-jahuactal","ceiba1raseccionjahuactal","ceja-de-bravo","cejadebravo","celaya","celayita","celebration","celestun","celina","celoron","cem","cementeras-del-pital","cementerasdelpital","cementon","cenobio-aguilar-la-trinidad","cenobio-moreno","cenobioaguilarlatrinidad","cenobiomoreno","cenotillo","centennial","centennial-park","centennial-scarborough","centennialpark","centennialscarborough","center","center-city","center-harbor","center-hill","center-line","center-moriches","center-point","centerburg","centercity","centereach","centerfield","centerharbor","centerhill","centerline","centermoriches","centerpoint","centerport","centerton","centerville","central","central-business-district","central-city","central-falls","central-garage","central-gardens","central-heights-midland-city","central-high","central-islip","central-park","central-point","central-square","central-valley","central-valley-historical","central-waterford","centralbusinessdistrict","centralcity","centralfalls","centralgarage","centralgardens","centralheightsmidlandcity","centralhigh","centralia","centralislip","centralpark","centralpoint","centralsquare","centralvalley","centralvalleyhistorical","centralwaterford","centre","centre-hall","centrehall","centreville","centro-de-arriba","centro-de-readaptacion-social","centro-familiar-la-soledad","centrodearriba","centrodereadaptacionsocial","centrofamiliarlasoledad","century","century-city","centurycity","cep","cepeda","cer","cerano","ceredo","ceres","cereso-14-el-amate","cereso-del-hongo","cereso-nuevo","cereso14elamate","ceresodelhongo","ceresonuevo","cerocahui","cerrillos-campo-35","cerrilloscampo35","cerrito-de-gasca","cerrito-de-jaral","cerrito-de-la-cruz","cerrito-de-zavala","cerritodegasca","cerritodejaral","cerritodelacruz","cerritodezavala","cerritos","cerritos-de-cardenas","cerritos-del-pilar","cerritosdecardenas","cerritosdelpilar","cerro-agudo","cerro-armadillo-grande","cerro-azul","cerro-colorado","cerro-colorado-de-ocampo","cerro-de-la-cruz","cerro-de-ortega","cerro-de-piedra","cerro-de-san-francisco","cerro-de-san-pedro","cerro-del-aire","cerro-del-murcielago","cerro-gordo","cerro-grande","cerro-guzman","cerro-la-calera","cerro-las-iguanas","cerro-quemado","cerro-santa-fe","cerroagudo","cerroarmadillogrande","cerroazul","cerrocolorado","cerrocoloradodeocampo","cerrodelacruz","cerrodelaire","cerrodelmurcielago","cerrodeortega","cerrodepiedra","cerrodesanfrancisco","cerrodesanpedro","cerrogordo","cerrogrande","cerroguzman","cerrolacalera","cerrolasiguanas","cerroquemado","cerrosantafe","ces","cesar-chavez","cesarchavez","cet","cetronia","ceuta","cez","cf","cfa","cfep","cfgs","cfjm","cflp","cfls","cg","cgbp","cgc","cgdo","cge","cgl","cgm","cgt","cgv","cgw","ch","chable","chablekal","chacala","chacalapa","chacaljocom","chacaltianguis","chachahuantla","chackbay","chacoma","chacsinkin","chadbourn","chadron","chadwicks","chaffee","chagrin-falls","chagrinfalls","chahuite","chahuites","chalahuiyapa","chalam","chalcatzingo","chalchihuapan","chalchihuitan","chalchihuites","chalchocoyo","chalco","chalfont","chalkville","challenge-brownsville","challengebrownsville","challis","chalma","chalmette","chalmita","chama","chamacuaro","chamberlain","chamberlayne","chambersburg","chamblee","chambly","chambord","chametla","champaign","champion-heights","championheights","champlain","champlin","champoton","chamula","chamulapita","chan-cenote","chanal","chancenote","chandler","changata","chanhassen","channahon","channel-islands-beach","channel-lake","channel-port-aux-basques","channelislandsbeach","channellake","channelportauxbasques","channelview","channing","chantilly","chanute","chapa","chapa-de-mota","chapab","chapademota","chapais","chapala","chapalilla","chapallal-grande","chapallalgrande","chapantongo","chaparaco","chaparral","chaparrosa","chapel-hill","chapelhill","chapin","chapman","chapmanville","chapopote-chico","chapopote-nunez","chapopotechico","chapopotenunez","chappaqua","chappell","chapulco","chapulhuacan","chapulhuacanito","chapultenango","chapultepec","charapan","charapendo","charay","charcas","charco-blanco","charco-de-pantoja","charcoblanco","charcodepantoja","chardon","charenton","chariton","charlack","charlemagne","charlemont","charleroi","charles-city","charles-town","charles-village","charlescity","charleston","charlestown","charlesvillage","charleswood","charlevoix","charlotte","charlotte-court-house","charlotte-hall","charlotte-harbor","charlotte-park","charlottecourthouse","charlottehall","charlotteharbor","charlottepark","charlottesville","charlottetown","charlton","charo","charter-oak","charteroak","chase","chase-city","chasecity","chaska","chateau-richer","chateauguay","chateauricher","chatfield","chatham","chatipan","chatmoss","chatom","chatsworth","chattahoochee","chattahoochee-hills","chattahoocheehills","chattanooga","chattanooga-valley","chattanoogavalley","chaucingo","chauncey","chautla","chauvin","chavarria","chavarrillo","chavaxtla","chavinda","cheat-lake","cheatlake","chebanse","cheboygan","checotah","cheektowaga","chehalis","chelan","chelem","chelmsford","chelsea","cheltenham","chemainus","chemax","chenalho","chenango-bridge","chenangobridge","cheney","chenoa","chenoweth","chepachet","cheran","cheran-atzicuirin-cheranastico","cheranatzicuirincheranastico","cheraw","cherokee","cherokee-village","cherokeevillage","cherry-creek","cherry-grove","cherry-hill","cherry-hill-mall","cherry-hills-village","cherry-valley","cherrycreek","cherryfield","cherrygrove","cherryhill","cherryhillmall","cherryhillsvillage","cherryland","cherryvale","cherryvalley","cherryville","chertsey","ches","chesaning","chesapeake","chesapeake-beach","chesapeake-ranch-estates","chesapeakebeach","chesapeakeranchestates","cheshire","cheshire-village","cheshirevillage","chesilhurst","chester","chester-center","chester-heights","chester-springs","chesterbrook","chestercenter","chesterfield","chesterfield-court-house","chesterfieldcourthouse","chesterheights","chesterland","chestermere","chestersprings","chesterton","chestertown","chesterville","chestnut-hill","chestnut-ridge","chestnuthill","chestnutridge","cheswick","cheswold","chet","chetek","chetopa","chetumal","chetwynd","chevak","cheval","cheverly","cheviot","chevy-chase","chevy-chase-heights","chevy-chase-village","chevychase","chevychaseheights","chevychasevillage","chewelah","cheyenne","cheyenne-wells","cheyennewells","chh","chiapa-de-corzo","chiapadecorzo","chiapas","chiapilla","chiaucingo","chiautla","chiautla-de-tapia","chiautladetapia","chibougamau","chicago","chicago-heights","chicago-lawn","chicago-loop","chicago-ridge","chicagoheights","chicagolawn","chicagoloop","chicagoridge","chicahua","chicahuaxtla","chicapa-de-castro","chicapadecastro","chicavasco","chicbul","chichatla","chichen-itza","chichenitza","chichester","chichicapa","chichicastle-1ra-seccion","chichicastle1raseccion","chichicaxtle","chichicuautla","chichihualco","chichimequillas","chichimila","chichiquila","chickamauga","chickasaw","chickasha","chico","chicoasen","chicola","chicoloapan","chicomuselo","chiconamel","chiconcuac","chiconcuautla","chiconquiaco","chicontepec","chicontla","chicopee","chicora","chicualoque","chicuasen","chicumtantic","chicxulub-pueblo","chicxulub-puerto","chicxulubpueblo","chicxulubpuerto","chiefland","chiepetepec","chietla","chigmecatitlan","chignahuapan","chihuahua","chihuahuita","chikindzonot","chila","chila-de-juarez","chila-de-la-sal","chilacachapa","chiladejuarez","chiladelasal","chilapa","chilapa-de-alvarez","chilapadealvarez","chilchota","chilcuautla","childersburg","childress","chilhowie","chililico","chillicothe","chilliwack","chillum","chilolja","chilon","chilpancingo","chiltepec-de-hidalgo","chiltepecdehidalgo","chilton","chiltoyac","chimalapa","chimalpa-viejo","chimalpa-y-tlalayote","chimalpaviejo","chimalpaytlalayote","chimaltitan","chimayo","chimhucum","china","china-grove","china-lake-acres","chinagrove","chinalakeacres","chinameca","chinampa-de-gorostiza","chinampadegorostiza","chinampas","chinantla","chinatown","chinautla","chinchilla","chincoteague","chinipas","chinle","chino","chino-hills","chino-valley","chinobampo","chinohills","chinook","chinook-park","chinookpark","chinovalley","chipahuatlan","chipilodefranciscojaviermina","chipley","chippewa-falls","chippewafalls","chiquihuitlan-de-benito-juarez","chiquihuitlandebenitojuarez","chiquila","chiquilistlan","chiquimitio","chiquinival","chiquinshulum","chirimoya-estacion-chirimoya","chirimoyaestacionchirimoya","chisago-city","chisagocity","chisholm","chiteje-de-garabato","chitejedegarabato","chittenango","chittenden","chixtontic","chm","chmc","chocaman","choccolocco","chochola","choctaw","choctaw-lake","choctawlake","choix","cholul","cholul-canton","cholula","cholulcanton","chonegal","chontalcoatlan","chontalpa","chontla","chosto-de-los-jarros","chostodelosjarros","choteau","chouteau","chowchilla","chp","chrisman","christiana","christiansburg","christmas","christopher","chs","chualar","chubbuck","chuburna","chucandiro","chucarit","chuckey","chula-vista","chulavista","chulum-cardenas","chulum-juarez","chulumcardenas","chulumjuarez","chuluota","chumatlan","chumayel","chunchintok","chunchucmil","chunhuhub","chuniapan-de-arriba","chuniapandearriba","chupaderos","chupio","church-hill","church-point","church-rock","church-yonge-corridor","churchhill","churchill","churchpoint","churchrock","churchville","churchyongecorridor","churintzio","churipitzeo","churubusco","churumuco-de-morelos","churumucodemorelos","chute-aux-outardes","chuteauxoutardes","chv","ci","cia","cib","cibecue","cibolo","cicacalco","cicero","cid","cienega-de-flores","cienega-de-zimatlan","cienega-grande","cienega-springs","cienegadeflores","cienegadezimatlan","cienegagrande","cienegas-terrace","cienegasprings","cienegasterrace","cieneguilla","cieneguillas","cieneguitas","cif","cihuatlan","cimarron","cimarron-hills","cimarronhills","cincinnati","cincinnatus","cinco-de-febrero","cinco-de-mayo","cinco-ranch","cincodefebrero","cincodemayo","cincoranch","cinnaminson","cintalapa","cintalapa-de-figueroa","cintalapadefigueroa","cipreses","circle","circle-d-kc-estates","circle-pines","circledkcestates","circlepines","circleville","cisco","citala","citilcum","citlaltepec","citra","citronelle","citrus","citrus-city","citrus-heights","citrus-hills","citrus-park","citrus-ridge","citrus-springs","citruscity","citrusheights","citrushills","citruspark","citrusridge","citrussprings","city-island","city-of-milford-balance","city-of-sammamish","city-view","cityisland","cityofmilfordbalance","cityofsammamish","cityview","ciudad-acuna","ciudad-altamirano","ciudad-apodaca","ciudad-ayala","ciudad-benito-juarez","ciudad-camargo","ciudad-cerralvo","ciudad-chemuyil","ciudad-constitucion","ciudad-cuauhtemoc","ciudad-de-allende","ciudad-de-armeria","ciudad-de-atlixco","ciudad-de-chiautla-de-tapia","ciudad-de-cuetzalan","ciudad-de-huajuapan-de-leon","ciudad-de-huitzuco","ciudad-de-mexico","ciudad-de-nanacamilpa","ciudad-de-tlatlauquitepec","ciudad-de-villa-de-alvarez","ciudad-de-villaldama","ciudad-del-carmen","ciudad-del-maiz","ciudad-delicias","ciudad-fernandez","ciudad-general-escobedo","ciudad-general-teran","ciudad-guadalupe-victoria","ciudad-gustavo-diaz-ordaz","ciudad-guzman","ciudad-guzman-cereso","ciudad-hidalgo","ciudad-insurgentes","ciudad-juarez","ciudad-lazaro-cardenas","ciudad-lerdo","ciudad-lopez-mateos","ciudad-madero","ciudad-mante","ciudad-manuel-doblado","ciudad-melchor-muzquiz","ciudad-mendoza","ciudad-miguel-aleman","ciudad-morelos","ciudad-nezahualcoyotl","ciudad-obregon","ciudad-pemex","ciudad-rio-bravo","ciudad-sabinas-hidalgo","ciudad-sahagun","ciudad-satelite","ciudad-satelite-del-norte","ciudad-serdan","ciudad-tula","ciudad-valles","ciudad-victoria","ciudadacuna","ciudadaltamirano","ciudadapodaca","ciudadayala","ciudadbenitojuarez","ciudadcamargo","ciudadcerralvo","ciudadchemuyil","ciudadconstitucion","ciudadcuauhtemoc","ciudaddeallende","ciudaddearmeria","ciudaddeatlixco","ciudaddechiautladetapia","ciudaddecuetzalan","ciudaddehuajuapandeleon","ciudaddehuitzuco","ciudaddelcarmen","ciudaddelicias","ciudaddelmaiz","ciudaddemexico","ciudaddenanacamilpa","ciudaddetlatlauquitepec","ciudaddevilladealvarez","ciudaddevillaldama","ciudadfernandez","ciudadgeneralescobedo","ciudadgeneralteran","ciudadguadalupevictoria","ciudadgustavodiazordaz","ciudadguzman","ciudadguzmancereso","ciudadhidalgo","ciudadinsurgentes","ciudadjuarez","ciudadlazarocardenas","ciudadlerdo","ciudadlopezmateos","ciudadmadero","ciudadmante","ciudadmanueldoblado","ciudadmelchormuzquiz","ciudadmendoza","ciudadmiguelaleman","ciudadmorelos","ciudadnezahualcoyotl","ciudadobregon","ciudadpemex","ciudadriobravo","ciudadsabinashidalgo","ciudadsahagun","ciudadsatelite","ciudadsatelitedelnorte","ciudadserdan","ciudadtula","ciudadvalles","ciudadvictoria","cj","cjmm","ck","cl","cl1","cla","clackamas","claiborne","clairlea-birchmount","clairleabirchmount","clairton","clancy","clanton","clanton-park","clantonpark","clara-city","claracity","clarcona","clare","claremont","claremore","clarence","clarence-center","clarence-rockland","clarencecenter","clarencerockland","clarendon","clarendon-hills","clarendonhills","clarenville-shoal-harbour","clarenvilleshoalharbour","claresholm","clarinda","clarion","clark","clark-fulton","clark-mills","clarkdale","clarkesville","clarkfulton","clarkmills","clarks","clarks-green","clarks-summit","clarksburg","clarksdale","clarksgreen","clarkson","clarkson-valley","clarksonvalley","clarkssummit","clarkston","clarkston-heights-vineland","clarkstonheightsvineland","clarksville","clarkton","claryville","clatskanie","claude","clawson","claxton","clay","clay-center","clay-city","claycenter","claycity","claycomo","claymont","claypool","claypool-hill","claypoolhill","claysburg","clayton","clc","cld","cle","cle-elum","clear-lake","clear-lake-riviera","clear-lake-shores","clearbrook-park","clearbrookpark","clearfield","clearlake","clearlake-oaks","clearlakeoaks","clearlakeriviera","clearlakeshores","clearview","clearwater","cleary","cleburne","cleelum","clementon","clemmons","clemson","clendenin","cleona","cleora","clermont","cleveland","cleveland-heights","clevelandheights","clever","cleves","clewiston","clf","cli","cliffcrest","cliffside-park","cliffsidepark","cliffwood-beach","cliffwoodbeach","clifton","clifton-forge","clifton-heights","clifton-park","clifton-springs","cliftonforge","cliftonheights","cliftonpark","cliftonsprings","clint","clinton","clinton-corners","clinton-township","clintoncorners","clintondale","clintontownship","clintonville","clintwood","clio","cliserio-alanis-san-gaspar","cliserioalanissangaspar","clive","cll","clm","cloete","cloquet","closter","clover","clover-hill","cloverdale","cloverhill","cloverleaf","cloverly","cloverport","clovis","clp","clpf","clr","cls","clute","clv","clyde","clyde-hill","clyde-river","clydehill","clyderiver","clymer","cm","cma","cmch","cmcm","cmd","cmen","cmg","cmh","cmm","cmsm","cn","cn3","cne","cnm","cnr","co","coa","coacalco","coachella","coachimalco","coachiti","coacoatzintla","coacotla","coacoyula-de-alvarez","coacoyuladealvarez","coacoyulichan","coacoyulillo","coacuilco","coahuayana-de-hidalgo","coahuayana-viejo","coahuayanadehidalgo","coahuayanaviejo","coahuayutla-de-guerrero","coahuayutladeguerrero","coahuila","coahuila-de-zaragoza","coahuiladezaragoza","coahuitlan","coahuixco","coahuixtla","coajomulco","coal-city","coal-creek","coal-fork","coal-grove","coal-hill","coal-run-village","coal-valley","coalcity","coalcoman-de-vazquez-pallares","coalcomandevazquezpallares","coalcreek","coaldale","coalfield","coalfork","coalgate","coalgrove","coalhill","coalhurst","coaling","coalinga","coalrunvillage","coalvalley","coalville","coamilpa-de-juarez","coamilpadejuarez","coapilla","coarsegold","coatecas-altas","coatecasaltas","coatepec","coatepec-costales","coatepec-harinas","coatepeccostales","coatepecharinas","coatesville","coatetelco","coaticook","coatlan-del-rio","coatlandelrio","coats","coatzacoalcos","coatzingo","coatzintla","coba","cobb","cobb-island","cobbisland","cobbs-creek","cobbscreek","cobden","cobleskill","cobourg","coburg","cochise","cochituate","cochoapa","cochoapa-el-grande","cochoapaelgrande","cochran","cochrane","cochranton","cockeysville","cockrell-hill","cockrellhill","cocoa","cocoa-beach","cocoa-west","cocoabeach","cocoawest","cocohital","coconino","coconut-creek","coconut-grove","coconutcreek","coconutgrove","cocorit","cocotitlan","cocoyoc","cocoyol","cocoyotla","cocucho","cocula","cody","coeburn","coeneo-de-la-libertad","coeneodelalibertad","coetzala","coeur-dalene","coeurdalene","coffeyville","cofradia","cofradia-de-juarez","cofradia-de-morelos","cofradia-de-suchitlan","cofradiadejuarez","cofradiademorelos","cofradiadesuchitlan","coh","cohasset","cohoe","cohoes","cohuecan","coixtlahuaca","cojumatlan-de-regules","cojumatlanderegules","cokato","col","col-bosques-de-las-lomas","colatlan","colbert","colbosquesdelaslomas","colby","colchester","cold-lake","cold-spring","cold-spring-harbor","cold-springs","coldlake","coldspring","coldspringharbor","coldsprings","coldstream","coldwater","cole-camp","cole-harbour","colebrook","colecamp","coleharbour","coleman","coleraine","colesville","colfax","colima","colinas-de-plata","colinas-del-aeropuerto","colinas-del-roble","colinas-del-sol","colinasdelaeropuerto","colinasdelroble","colinasdelsol","colinasdeplata","colipa","collantes","college","college-park","college-place","college-point","college-station","collegedale","collegepark","collegeplace","collegepoint","collegestation","collegeville","colleyville","collier","collierville","collin","collingdale","collings-lakes","collingslakes","collingswood","collingwood","collins","collinsburg","collinsville","collinwood","colma","colmar-manor","colmarmanor","cologne","coloma","colombia-de-guadalupe","colombiadeguadalupe","colon","colona","colonia","colonia-18-de-marzo","colonia-2-de-septiembre","colonia-24-de-febrero","colonia-28-de-mayo-santa-rosa","colonia-3-de-mayo","colonia-3-de-mayo-la-cruz","colonia-adolfo-lopez-mateos","colonia-aeropuerto","colonia-agricola-analco","colonia-alborada","colonia-alvaro-obregon","colonia-aquiles-cordoba-moran","colonia-arboledas-san-andres","colonia-aviacion-autopan","colonia-azteca","colonia-bellavista","colonia-benito-juarez","colonia-campesina","colonia-chalchihuecan","colonia-constitucion","colonia-cuauhtemoc","colonia-de-guadalupe","colonia-del-sol","colonia-del-valle","colonia-doctor-gustavo-baz","colonia-el-florido","colonia-el-mirador","colonia-el-pedregal","colonia-el-pirame","colonia-el-refugio","colonia-el-renacimiento","colonia-el-salado","colonia-emiliano-zapata","colonia-felipe-angeles","colonia-francisco-javier-mina","colonia-gomez-morin","colonia-guadalupana","colonia-guadalupe","colonia-guadalupe-victoria","colonia-gustavo-baz-prada","colonia-hidalgo-el-tecolote","colonia-ignacio-allende","colonia-independencia","colonia-isidro-fabela","colonia-jordan","colonia-jose-maria-morelos","colonia-juarez","colonia-la-asuncion","colonia-la-calzada-la-olla","colonia-la-central","colonia-la-libertad","colonia-las-arboledas","colonia-las-flores","colonia-latinoamericana","colonia-lazaro-cardenas","colonia-lealtad","colonia-libertad","colonia-lindavista","colonia-los-aguiluchos","colonia-los-angeles","colonia-los-cedros","colonia-los-cerritos","colonia-los-remedios","colonia-luces-en-el-mar","colonia-manuel-gonzalez","colonia-michoacana","colonia-miguel-hidalgo","colonia-militar","colonia-morelos","colonia-morelos-el-nueve","colonia-nativitas","colonia-nueva-era","colonia-nueva-revolucion","colonia-nuevo-mexico","colonia-obrera","colonia-padre-hidalgo","colonia-palma","colonia-palo-prieto-chipitongo","colonia-paraiso-escondido","colonia-patria-nueva","colonia-pedro-maria-anaya","colonia-plenitud","colonia-progreso","colonia-rafael-corrales-ayala","colonia-reforma-tlalmimilolpan","colonia-renacimiento","colonia-revolucion","colonia-ricardo-flores-magon","colonia-rincon-viejo","colonia-rincon-villa-del-valle","colonia-rio-lerma-tic-ti","colonia-san-francisco","colonia-san-francisco-de-asis","colonia-san-isidro","colonia-san-juan","colonia-san-luis","colonia-san-luis-rey","colonia-san-ramon","colonia-santa-barbara","colonia-sesenta-y-dos","colonia-tenhe","colonia-terrazas","colonia-tulteca-teopan","colonia-ursulo-galvan","colonia-veinte-de-noviembre","colonia-veintitres-de-mayo","colonia-venustiano-carranza","colonia-wenceslao-labra","colonia-yucatan","colonia18demarzo","colonia24defebrero","colonia28demayosantarosa","colonia2deseptiembre","colonia3demayo","colonia3demayolacruz","coloniaadolfolopezmateos","coloniaaeropuerto","coloniaagricolaalvaroobregon","coloniaagricolaanalco","coloniaagricolamexicopalmitas","coloniaalborada","coloniaalvaroobregon","coloniaaquilescordobamoran","coloniaarboledassanandres","coloniaaviacionautopan","coloniaazteca","coloniabellavista","coloniabenitojuarez","coloniacampesina","coloniachalchihuecan","coloniaconstitucion","coloniacuauhtemoc","coloniadeguadalupe","coloniadelsol","coloniadelvalle","coloniadoctorgustavobaz","coloniaelflorido","coloniaelmirador","coloniaelmiradorllanodelejido","coloniaelpedregal","coloniaelpirame","coloniaelrefugio","coloniaelrenacimiento","coloniaelsalado","coloniaemilianozapata","coloniafelipeangeles","coloniafraccionamientoelpuente","coloniafranciscogarciasalinas","coloniafranciscojaviermina","coloniagomezmorin","coloniaguadalupana","coloniaguadalupe","coloniaguadalupevictoria","coloniagustavobazprada","coloniahidalgoeltecolote","coloniaignacioallende","coloniaindependencia","coloniaisidrofabela","coloniajordan","coloniajosemariamorelos","coloniajuarez","colonial-beach","colonial-heights","colonial-park","colonial-pine-hills","colonialaasuncion","colonialacalzadalaolla","colonialacentral","colonialalibertad","colonialasarboledas","colonialasflores","colonialatinoamericana","colonialazarocardenas","colonialazarocardenasloshornos","colonialbeach","colonialealtad","colonialheights","colonialibertad","colonialindavista","colonialomasdesanramontriquis","colonialosaguiluchos","colonialosangeles","colonialoscedros","colonialoscerritos","colonialosremedios","colonialpark","colonialpinehills","colonialucesenelmar","coloniamanuelgonzalez","coloniamichoacana","coloniamiguelhidalgo","coloniamilitar","coloniamorelos","coloniamoreloselnueve","colonianativitas","colonianuevaera","colonianuevarevolucion","colonianuevomexico","coloniaobrera","coloniapadrehidalgo","coloniapalma","coloniapaloprietochipitongo","coloniaparaisoescondido","coloniapatrianueva","coloniapedromariaanaya","coloniaplenitud","coloniaprogreso","coloniarafaelcorralesayala","coloniareformatlalmimilolpan","coloniarenacimiento","coloniarevolucion","coloniaricardofloresmagon","coloniarinconviejo","coloniarinconvilladelvalle","coloniariolermaticti","colonias-pedernales","coloniasanfrancisco","coloniasanfranciscodeasis","coloniasanisidro","coloniasanjuan","coloniasanluis","coloniasanluisrey","coloniasanramon","coloniasantabarbara","coloniasantacecilialasauceda","coloniasesentaydos","coloniaspedernales","coloniatenhe","coloniaterrazas","coloniatultecateopan","coloniaursulogalvan","coloniaveintedenoviembre","coloniaveintitresdemayo","coloniavenustianocarranza","coloniavistabellalomasdelpeaje","coloniawenceslaolabra","coloniayucatan","colonie","colony-park","colonypark","colorado","colorado-city","colorado-springs","coloradocity","coloradosprings","colorines","colotepec","colotlan","colotlipa","colquitt","colrain","colstrip","colton","colts-neck","coltsneck","colucan","columbia","columbia-city","columbia-falls","columbia-heights","columbiacity","columbiafalls","columbiaheights","columbiana","columbine","columbine-valley","columbinevalley","columbus","columbus-air-force-base","columbus-grove","columbus-junction","columbusairforcebase","columbusgrove","columbusjunction","colusa","colville","colwich","colwood","colwyn","comachuen","comala","comalapa","comalcalco","comales","comaltepec","comanche","comanja","comanjilla","comapa","comb","combee-settlement","combeesettlement","combes","combine","combined-locks","combinedlocks","comejen","comer","comfort","comitan","commack","commerce","commerce-city","commercecity","commercial-point","commercialpoint","communications-hill","communicationshill","como","comoapan","comonfort","comox","compostela","compton","compuertas","comstock-northwest","comstock-park","comstocknorthwest","comstockpark","conashaugh-lakes","conashaughlakes","conca","concentracion-5-de-febrero","concentracion5defebrero","concepcion","concepcion-caro","concepcion-chimalpa","concepcion-cuautla","concepcion-de-buenos-aires","concepcion-del-monte","concepcion-del-oro","concepcion-hidalgo","concepcion-jolalpan","concepcion-la-venta","concepcioncapulaclaexhacienda","concepcioncaro","concepcionchimalpa","concepcioncuautla","concepciondebuenosaires","concepciondelmonte","concepciondeloro","concepcionhidalgo","concepcionjolalpan","concepcionlaventa","conception-bay-south","conceptionbaysouth","concord","concordia","conda","condembaro","condon","conehatta","conejeras","conejos","conemaugh","conestoga","coneto-de-comonfort","conetodecomonfort","coney-island","coneyisland","congers","congregacion-calles","congregacion-el-tajin","congregacion-hidalgo","congregacion-ortiz","congregacion-reforma","congregacioncalles","congregacioneltajin","congregacionhidalgo","congregacionortiz","congregacionreforma","congress","conjunto-urbano-la-loma-i","conjuntohabitacionaleltrebol","conjuntourbanolalomai","conkal","conley","conneaut","conneaut-lakeshore","conneautlakeshore","connecticut","connell","connellsville","connelly-springs","connellysprings","connersville","connerton","conning-towers-nautilus-park","conningtowersnautiluspark","conover","conrad","conroe","conshohocken","constance-bay","constancebay","constancia","constancia-del-rosario","constanciadelrosario","constancio-farfan-la-pascuala","constanciofarfanlapascuala","constantia","constantine","constitucion","constitucion-mexicana","constitucionmexicana","contepec","continental","contla","contoocook","contra-costa","contra-costa-centre","contracosta","contracostacentre","contrecoeur","convent","converse","convoy","conway","conway-springs","conwaysprings","conyers","conyngham","cookeville","cookshire","cookshire-eaton","cookshireeaton","cookstown","cool","cool-valley","coolidge","coolidge-corner","coolidgecorner","coolvalley","coombs","coon-rapids","coonrapids","cooper","cooper-city","coopercity","coopersburg","cooperstown","coopersville","coopertown","coos","coos-bay","coosada","coosbay","copainala","copala","copalillo","copanatoyac","copandaro-copandaro-del-cuatro","copandaro-de-galeana","copandarocopandarodelcuatro","copandarodegaleana","copeland","copiague","copila","coplay","copley","copoya","coppell","copper-canyon","copperas-cove","copperascove","coppercanyon","copperopolis","coquille","coquimatlan","coquitlam","coral-gables","coral-hills","coral-springs","coral-terrace","coralgables","coralhills","coralsprings","coralterrace","coralville","coram","coraopolis","corbin","corcoran","corcovado","cordaville","cordele","cordell","cordes-lakes","cordeslakes","cordoba","cordoba-santa-leticia","cordobasantaleticia","cordova","cordry-sweetwater-lakes","cordrysweetwaterlakes","corerepe","corinna","corinth","cornelia","cornelius","cornell","corner-brook","cornerbrook","cornersville","corning","cornish","cornville","cornwall","cornwells-heights","cornwellsheights","corona","corona-de-tucson","coronadetucson","coronado","coronango","coronel-tito-hernandez","coroneltitohernandez","coroneo","corozal","corpus-christi","corpuschristi","corral-de-barrancos","corral-de-piedra","corral-de-piedras-de-arriba","corral-del-risco-punta-de-mita","corral-falso","corral-nuevo","corraldebarrancos","corraldelriscopuntademita","corraldepiedra","corraldepiedrasdearriba","corralejo-de-arriba","corralejodearriba","corralero","corrales","corralfalso","corralillos","corralitos","corralnuevo","corriente-1ra-seccion","corriente1raseccion","corrigan","corry","corsicana","corso-italia-davenport","corsoitaliadavenport","cortazar","corte-madera","cortemadera","cortez","cortland","cortland-west","cortlandt-manor","cortlandtmanor","cortlandwest","corunna","corupo","corvallis","corydon","cos","cos-cob","cosala","cosamaloapan","cosautlan","coscob","coscomate-del-progreso","coscomatedelprogreso","coscomatepec-de-bravo","coscomatepecdebravo","coshocton","cosio","cosmopolis","cosolapa","cosoleacaque","cosoltepec","costa-azul","costa-mesa","costaazul","costamesa","cotati","cotaxtla","cote-saint-luc","coteau-du-lac","coteaudulac","cotesaintluc","cotija-de-la-paz","cotijadelapaz","coto-de-caza","cotodecaza","cotorina","cottage-city","cottage-grove","cottage-lake","cottagecity","cottagegrove","cottagelake","cottleville","cottonport","cottonwood","cottonwood-falls","cottonwood-heights","cottonwood-shores","cottonwoodfalls","cottonwoodheights","cottonwoodshores","cotuit","cotulla","coudersport","coulee-dam","couleedam","council","council-bluffs","council-grove","councilbluffs","councilgrove","country-club","country-club-estates","country-club-hills","country-club-village","country-homes","country-knolls","country-lake-estates","country-squire-lakes","country-walk","countryclub","countryclubestates","countryclubhills","countryclubvillage","countryhomes","countryknolls","countrylakeestates","countryside","countrysquirelakes","countrywalk","county","coupeville","courtenay","courtland","coushatta","cove-creek","covecreek","covedale","covelo","coventry","coventry-lake","coventrylake","covina","covington","cow-bay","cowan","cowansville","cowarts","cowbay","coweta","cowichan-bay","cowichanbay","cowlitz","cowpens","coxcatlan","coxolico","coxquihui","coxsackie","coyahualco","coyame-del-sotol","coyamedelsotol","coyoacan","coyolito","coyomeapan","coyote","coyotepec","coyotillos","coyotitan","coyuca-de-benitez","coyuca-de-catalan","coyucadebenitez","coyucadecatalan","coyula","coyuquilla-norte","coyuquillanorte","coyutla","cozad","cozotlan-norte","cozotlannorte","cozumel","cp","cpab","cpc","cpe","cpec","cph","cpma","cpn","cppc","cps","cq","cr","crab-orchard","craborchard","crabtree","crafton","craig","craig-beach","craigbeach","craigsville","crainville","cramerton","cranberry-township","cranberrytownship","cranbrook","cranbury","crandall","crandon","crandon-lakes","crandonlakes","crane","cranford","cranston","crawfordsville","crawfordville","crb","crca","cre","creede","creedmoor","creel","creighton","creola","cresaptown","crescencio-morales-san-mateo","crescenciomoralessanmateo","crescent","crescent-city","crescent-springs","crescentcity","crescentsprings","cresco","cresskill","cresson","cressona","crest","crest-hill","crested-butte","crestedbutte","cresthill","crestline","creston","crestview","crestview-hills","crestviewhills","crestwood","crestwood-village","crestwoodvillage","creswell","crete","creve-coeur","crevecoeur","crewe","crfm","cricket","cridersville","crimora","cripple-creek","cripplecreek","crisfield","crisostomos","cristeros-fraccionamiento","cristerosfraccionamiento","cristo-rey","cristobal-colon","cristobal-obregon","cristobalcolon","cristobalobregon","cristorey","crittenden","crn","crocker","crockett","crofton","crompond","cromwell","crooked-lake-park","crookedlakepark","crooks","crookston","crooksville","croom","cropseyville","crosby","crosbyton","cross-city","cross-lake","cross-lake-19a","cross-lanes","cross-mountain","cross-plains","crosscity","crossett","crossfield","crosslake","crosslake19a","crosslanes","crossmountain","crossplains","crossville","croswell","crothersville","croton-on-hudson","crotononhudson","crow-agency","crowagency","crowell","crowley","crown-heights","crown-point","crownheights","crownpoint","crownsville","croydon","crozet","crt","crucecita","crucero-las-pilas","crucerolaspilas","crugers","cruillas","crump","cruz-blanca","cruz-de-huanacaxtle","cruz-del-milagro","cruz-grande","cruz-quemada","cruz-verde","cruzblanca","cruzdehuanacaxtle","cruzdelmilagro","cruzgrande","cruzquemada","cruzton","cruzverde","crv","crystal","crystal-city","crystal-falls","crystal-lake","crystal-lakes","crystal-lawns","crystal-river","crystal-springs","crystalcity","crystalfalls","crystallake","crystallakes","crystallawns","crystalriver","crystalsprings","cs","csac","csb","csc","csdn","csf","csh","csi","csj","csl","cslr","csm","csr","csst","csyd","ct","ct-0001","ct-0002","ct-0003","ct-0004","ct-0005","ct-0006","ct-0007","ct-0008","ct-0009","ct-0010","ct-0011","ct-0012","ct-0013","ct-0014","ct-0015","ct-0016","ct-0017","ct-0018","ct-0019","ct-0021","ct-0022","ct-0023","ct-0024","ct-0025","ct-0026","ct-0027","ct-0028","ct-0029","ct-0030","ct0001","ct0002","ct0003","ct0004","ct0005","ct0006","ct0007","ct0008","ct0009","ct0010","ct0011","ct0012","ct0013","ct0014","ct0015","ct0016","ct0017","ct0018","ct0019","ct0021","ct0022","ct0023","ct0024","ct0025","ct0026","ct0027","ct0028","ct0029","ct0030","cth","ctnp","ctt","cu","cuacnopalan","cuacuila","cuadrilla-de-dolores","cuadrilla-vieja","cuadrilladedolores","cuadrillavieja","cuajinicuilapa","cualac","cualata","cuamiles","cuamio","cuanacaxtitlan","cuanajo","cuanala","cuapaxtitla","cuapiaxtla","cuapiaxtla-de-madero","cuapiaxtlademadero","cuapinolito-azulillo","cuapinolitoazulillo","cuaracurio","cuarta-brigada","cuartabrigada","cuartel-la-mesa-el-asoleadero","cuartellamesaelasoleadero","cuatolol","cuatro-caminos","cuatro-cienegas-de-carranza","cuatrocaminos","cuatrocienegasdecarranza","cuatzoquitengo","cuauchichinola","cuauhtamazaco","cuauhtamingo","cuauhtemoc","cuauhtemoc-campo-cinco","cuauhtemoccampocinco","cuauhtenango","cuautempan","cuautepec","cuautepec-de-hinojosa","cuautepecdehinojosa","cuautinchan","cuautitlan","cuautitlan-izcalli","cuautitlanizcalli","cuautla","cuautlacingo","cuautlancingo","cuautlapan","cuautotola","cuautotolapan-san-jose","cuautotolapansanjose","cuaxomulco","cuaxoxpan","cuaxuxpa","cuazahuatl","cuba","cuba-city","cubacity","cubiri-de-portelas","cubirideportelas","cuch-holoch","cucharas","cuchholoch","cuchicuato","cuchulumtic","cucuchucho","cucurpe","cucuyulapa-primera-seccion","cucuyulapaprimeraseccion","cudahy","cudjoe-key","cudjoekey","cuecuecuatitla","cuencame-de-ceniceros","cuencamedeceniceros","cuendo","cuentepec","cueramaro","cuernavaca","cuero","cuesta-amarilla","cuesta-blanca","cuesta-de-laja","cuesta-de-penones","cuestaamarilla","cuestablanca","cuestadelaja","cuestadepenones","cuetzala-del-progreso","cuetzaladelprogreso","cuetzalan","cuexcomatitlan","cuexpala","cug","cuicatlan","cuichapa","cuilapan-de-guerrero","cuilapandeguerrero","cuisillos","cuitlahuac","cuitzeo-del-porvenir","cuitzeo-la-estancia","cuitzeodelporvenir","cuitzeolaestancia","cuiyachapa","culiacan","culiacancito","culico-2da-seccion","culico2daseccion","cullen","cullman","culloden","cullowhee","culp-creek","culpcreek","culpeper","culver","culver-city","culvercity","cumberland","cumberland-center","cumberland-head","cumberland-hill","cumberlandcenter","cumberlandhead","cumberlandhill","cumbre-de-barranca-honda","cumbredebarrancahonda","cumbres-iii","cumbresiii","cumming","cumpas","cumpich","cumuapa-1ra-seccion","cumuapa1raseccion","cumuato","cuncunul","cunduacan","cuonetzingo","cuparataro","cupareo","cupertino","cupilco","cupuan-del-rio","cupuandelrio","cuquio","curimeo","currituck","curtice","curtisville","curungueo","curwensville","cushing","cusihuiriachi","cusseta","custer","cut-and-shoot","cut-bank","cut-off","cutandshoot","cutbank","cutchogue","cuthbert","cutler","cutler-bay","cutler-ridge","cutlerbay","cutlerridge","cutlerville","cuto-de-la-esperanza","cuto-del-porvenir","cutodelaesperanza","cutodelporvenir","cutoff","cutten","cutzamala-de-pinzon","cutzamaladepinzon","cuxpala","cuyahoga-falls","cuyahogafalls","cuyoaco","cuyutlan","cuyuxtlahuaca","cuzama","cv","cvc","cvda","cvdm","cvdn","cvh","cvv","cw","cwl","cy","cyc","cynthiana","cypress","cypress-gardens","cypress-hills","cypress-lake","cypress-quarters","cypress-village","cypressgardens","cypresshills","cypresslake","cypressquarters","cypressvillage","cyril","cyt","cz","da","dacono","dacula","dade-city","dade-city-north","dadecity","dadecitynorth","dadeville","dahlgren","dahlonega","daingerfield","dajiedi","dakota","dakota-city","dakota-dunes","dakotacity","dakotadunes","dale","dale-city","dalecity","daleville","dalhart","dallas","dallas-center","dallascenter","dallastown","dallesport","dalmeny","dalton","dalton-gardens","daltongardens","dalworthington-gardens","dalworthingtongardens","daly-city","dalycity","dalzell","damariscotta","damasco","damascus","damian-carmona","damiancarmona","dana","dana-point","danapoint","danbury","danby","dandridge","dane","danforth","danforth-east-york","danfortheastyork","dania-beach","daniabeach","daniel","daniels","danielson","danielsville","dannemora","dansville","dantzibojay","danvers","danville","daom","daphne","darby","dardanelle","dardenne-prairie","dardenneprairie","darien","darlington","darmstadt","darnestown","darrington","dartmouth","dassel","dauphin","dauphin-island","dauphinisland","dautillos","daveluyville","davenport","david-city","davidcity","davidson","davidsonville","davidsville","davie","davis","davis-junction","davisboro","davisjunction","davison","dawson","dawson-city","dawson-creek","dawson-springs","dawsoncity","dawsoncreek","dawsonsprings","dawsonville","daxtha","day-heights","day-valley","dayheights","dayton","daytona-beach","daytona-beach-shores","daytonabeach","daytonabeachshores","dayvalley","db","dbd","dbh","dbn","dbp","dbs","dc","dcde","dcdm","dcn","dd","dda","ddb","ddc","dde","ddm","ddn","ddo","dds","ddv","de","de-graff","de-kalb","de-land-southwest","de-leon","de-leon-springs","de-lisle","de-parral","de-pere","de-queen","de-smet","de-soto","de-witt","deadwood","deale","deansboro","dearborn","dearborn-heights","dearbornheights","deatsville","debary","decatur","decaturville","decherd","decorah","decordova","dedham","deenwood","deep-river","deep-river-center","deephaven","deepriver","deeprivercenter","deer-isle","deer-lake","deer-lodge","deer-park","deer-valley","deerfield","deerfield-beach","deerfieldbeach","deering","deerisle","deerlake","deerlodge","deerpark","deervalley","defiance","deforest","defuniak-springs","defuniaksprings","degollado","degraff","dehesa","dekalb","del-aire","del-city","del-mar","del-monte-forest","del-norte","del-rey","del-rey-oaks","del-rio","delafield","delaire","delanco","deland","delandsouthwest","delano","delavan","delavan-lake","delavanlake","delaware","delaware-city","delawarecity","delcambre","delcity","delegacioncuajimalpademorelos","deleon","deleonsprings","delevan","delfino-victoria-santa-fe","delfinovictoriasantafe","delgado-de-abajo","delgado-de-arriba","delgadodeabajo","delgadodearriba","delhi","delhi-hills","delhihills","delisle","dell-rapids","dellrapids","dellwood","delmar","delmont","delmonteforest","delnorte","deloraine","delphi","delphos","delray-beach","delraybeach","delrey","delreyoaks","delrio","delson","delta","deltana","deltaville","deltona","demarest","deming","demopolis","demorest","demotte","denair","dengantzha","denham-springs","denhamsprings","denison","denjhi","denman-island","denman-island-trust-area","denmanisland","denmanislandtrustarea","denmark","dennis","dennis-port","dennison","dennisport","dent","denton","dentsville","denver","denver-city","denvercity","denville","deparral","depere","depew","depoe-bay","depoebay","deposit","depue","dequeen","dequincy","derby","deridder","derma","dermott","derramaderos","derramaderosegundoinfiernillo","derry","derry-village","derryvillage","derwood","des-allemands","des-arc","des-moines","des-peres","des-plaines","desallemands","desarc","descanso","deschutes","deschutes-river-woods","deschutesriverwoods","deseronto","desert-aire","desert-edge","desert-hills","desert-hot-springs","desert-shores","desert-view-highlands","desertaire","desertedge","deserthills","deserthotsprings","desertshores","desertviewhighlands","deshler","desloge","desmet","desmoines","desoto","desoto-lakes","desotolakes","despard","desperes","desplaines","destin","destrehan","detina-san-antonio-detina","detinasanantoniodetina","detroit","detroit-beach","detroit-lakes","detroit-shoreway","detroitbeach","detroitlakes","detroitshoreway","deux-montagnes","deuxmontagnes","devens","deville","devils-lake","devilslake","devine","devola","devon","dewart","dewey","dewey-humboldt","deweyhumboldt","deweyville","dewitt","dexter","dextho-de-victoria","dexthodevictoria","dey","df","dg","dh","dhs","di","diablo","diamante-de-echeverria","diamantedeecheverria","diamond","diamond-bar","diamond-head","diamond-ridge","diamond-springs","diamondbar","diamondhead","diamondridge","diamondsprings","diaz","diberville","diboll","dickens","dickeyville","dickinson","dickson","dickson-city","dicksoncity","didsbury","dieciocho-de-marzo","dieciochodemarzo","dieciseis-de-septiembre","dieciseisdeseptiembre","dieppe","dierks","diez-de-octubre","diezdeoctubre","digby","dighton","dike","dilkon","dilley","dillingham","dillon","dillonvale","dillsboro","dillsburg","dilworth","dimmitt","dimondale","dinuba","dinwiddie","dios-padre","diospadre","discovery-bay","discovery-harbor","discoverybay","discoveryharbor","dishman","disraeli","district-heights","district-of-columbia","districtheights","districtofcolumbia","dita","divernon","divisaderos","division-del-norte","divisiondelnorte","dix-hills","dixfield","dixhills","dixiana","dixmont","dixmoor","dixon","dixon-lane-meadow-creek","dixonlanemeadowcreek","dj","dk","dl","dlmc","dls","dm","dmdo","dmf","dn","do","dobbs-ferry","dobbsferry","dobson","doc","dock-junction","dockjunction","doctor-alberto-oviedo-mota","doctor-arroyo","doctor-belisario-dominguez","doctor-coss","doctor-domingo-chanona","doctor-gonzalez","doctor-montes-de-oca","doctor-mora","doctor-phillips","doctor-samuel-leon-brindis","doctoralbertooviedomota","doctorarroyo","doctorbelisariodominguez","doctorcoss","doctordomingochanona","doctorgonzalez","doctormiguelsilvasanguillermo","doctormontesdeoca","doctormora","doctorphillips","doctorsamuelleonbrindis","dodge-center","dodge-city","dodgecenter","dodgecity","dodgeville","dodson-branch","dodsonbranch","doe-valley","doevalley","doffing","dogtown","dolan-springs","dolansprings","dolbeau-mistassini","dolbeaumistassini","dolgeville","dollar-bay","dollar-corner","dollar-point","dollarbay","dollarcorner","dollard-des-ormeaux","dollarddesormeaux","dollarpoint","dolores","dolores-cuadrilla-de-enmedio","dolores-hidalgo","dolores-jaltenango","dolorescuadrilladeenmedio","doloreshidalgo","doloresjaltenango","dolton","domingo-arenas","domingoarenas","don-antonio","don-diego","don-francisco","don-samuel","don-valley-village","dona-ana","donaana","donaciano-ojeda","donacianoojeda","donaji","donald","donaldsonville","donalsonville","donantonio","dondiego","donfrancisco","dongan-hills","donganhills","dongu","doniphan","donna","donnacona","donora","donovan-estates","donovanestates","donsamuel","donvalleyvillage","doolittle","dooms","dora","doral","doraville","dorchester","dormont","dorneyville","dorset-park","dorsetpark","dorval","dos-arroyos","dos-bocas","dos-ceibas","dos-de-abril","dos-montes","dos-palos","dos-rios","dosarroyos","dosbocas","dosceibas","dosdeabril","dosmontes","dospalos","dosrios","dotegiare","dothan","double-oak","double-springs","doubleoak","doublesprings","douglas","douglass","douglass-hills","douglasshills","douglaston","douglasville","dousman","dove-creek","dove-valley","dovecreek","dover","dover-base-housing","dover-beaches-north","dover-beaches-south","dover-foxcroft","dover-plains","doverbasehousing","doverbeachesnorth","doverbeachessouth","doverfoxcroft","doverplains","dovevalley","dowagiac","dowling","downers-grove","downersgrove","downey","downieville","downingtown","downsview-roding-cfb","downsviewrodingcfb","downtown-brooklyn","downtown-honolulu","downtownbrooklyn","downtownhonolulu","dowsett-highlands","dowsetthighlands","doxey","doxhicho","doxteje-barrio-primero","doxteje-centro","doxtejebarrioprimero","doxtejecentro","doylestown","dp","dq","dr","dracut","drain","dranesville","draper","dravosburg","drayton-valley","draytonvalley","drc","dresden","dresher","drew","drexel","drexel-heights","drexel-hill","drexelheights","drexelhill","driggs","dripping-springs","drippingsprings","dro","druid-hills","druidhills","drum-point","drummondville","drumpoint","drumright","drw","dry-ridge","dry-run","dryden","dryridge","dryrun","ds","dsad","dsi","dslb","dtc","du-quoin","duarte","dublin","dubois","duboistown","dubuque","duchesne","duck-hill","duck-lake","duckhill","ducklake","dudley","due-west","duenweg","duewest","dufferin-grove","dufferingrove","dulac","dulce","dulce-grande","dulcegrande","dulles-town-center","dullestowncenter","duluth","dumas","dumbarton","dumfries","dumont","dunbar","duncan","duncannon","duncansville","duncanville","dundalk","dundas","dundee","dunean","dunedin","dunellen","dunes-city","dunescity","dunham","dunkirk","dunkirk-town-center","dunkirktowncenter","dunlap","dunmore","dunn","dunn-loring","dunnellon","dunnigan","dunnloring","dunnstown","dunnville","dunsmuir","dunstable","dunwoody","dupo","dupont","dupree","duquesne","duquoin","dur","durand","durango","durant","durham","duryea","duson","dutch-harbor","dutchess","dutchharbor","duval","duvall","duxbury","dv","dvh","dvsf","dvv","dw","dwej","dwight","dyer","dyersburg","dyersville","dyker-heights","dykerheights","dysart","dzan","dzemul","dzibalchen","dzibikak","dzidzantun","dzilam-de-bravo","dzilam-gonzalez","dzilamdebravo","dzilamgonzalez","dzitas","dzitbalche","dzitnup","dzitya","dziuche","dzoncauich","dzonot-carretero","dzonotcarretero","dzula","dzununcan","e3","ea","eab","eads","eafb","eag","eagan","eagar","eagle","eagle-butte","eagle-grove","eagle-lake","eagle-mountain","eagle-pass","eagle-point","eagle-river","eaglebutte","eaglegrove","eaglelake","eaglemountain","eaglepass","eaglepoint","eagleriver","eagleton-village","eagletonvillage","eagleview","eagleville","ealm","earle","earlham","earlimart","earlington","earlston","earlville","early","earth","easf","easley","east-alton","east-amherst","east-angus","east-atlantic-beach","east-aurora","east-bangor","east-berlin","east-bernard","east-berwick","east-bethel","east-boston","east-brainerd","east-brewton","east-bridgewater","east-bronson","east-brookfield","east-brooklyn","east-broughton","east-brunswick","east-cambridge","east-canton","east-carbon-city","east-chattanooga","east-chicago","east-cleveland","east-concord","east-conemaugh","east-dennis","east-douglas","east-dublin","east-dubuque","east-dundee","east-earl","east-elmhurst","east-end","east-end-danforth","east-falls","east-falmouth","east-farmingdale","east-flat-rock","east-flatbush","east-florence","east-foothills","east-franklin","east-freehold","east-gaffney","east-garden-city","east-garfield-park","east-glenville","east-grand-forks","east-grand-rapids","east-greenbush","east-greenville","east-greenwich","east-griffin","east-gull-lake","east-gwillimbury","east-haddam","east-hampton","east-hampton-north","east-hanover","east-harlem","east-hartford","east-harwich","east-haven","east-hazel-crest","east-helena","east-hemet","east-highland-park","east-hill-meridian","east-hills","east-honolulu","east-independence","east-islip","east-ithaca","east-jordan","east-kingston","east-la-mirada","east-lake","east-lake-orient-park","east-lansdowne","east-lansing","east-lexington","east-liverpool","east-longmeadow","east-los-angeles","east-machias","east-manoa","east-massapequa","east-mckeesport","east-meadow","east-merrimack","east-millcreek","east-millinocket","east-milton","east-missoula","east-moline","east-moriches","east-mount-airy","east-naples","east-new-york","east-newark","east-newnan","east-norriton","east-northport","east-norwalk","east-norwich","east-oak-lane","east-oakdale","east-orange","east-palatka","east-palestine","east-palo-alto","east-pasadena","east-patchogue","east-pensacola-heights","east-peoria","east-pepperell","east-perrine","east-petersburg","east-pittsburgh","east-point","east-port-orchard","east-porterville","east-prairie","east-providence","east-quincy","east-quogue","east-rancho-dominguez","east-renton-highlands","east-richmond-heights","east-ridge","east-riverdale","east-rochester","east-rockaway","east-rockingham","east-rutherford","east-sahuarita","east-saint-louis","east-san-gabriel","east-sandwich","east-setauket","east-shoreham","east-somerville","east-sonora","east-spencer","east-stroudsburg","east-sumter","east-syracuse","east-tawas","east-tremont","east-troy","east-uniontown","east-valley","east-village","east-washington","east-wellington","east-wenatchee","east-wenatchee-bench","east-williston","east-windsor","east-york","eastalton","eastamherst","eastangus","eastatlanticbeach","eastaurora","eastbangor","eastberlin","eastbernard","eastberwick","eastbethel","eastboston","eastbrainerd","eastbrewton","eastbridgewater","eastbronson","eastbrookfield","eastbrooklyn","eastbroughton","eastbrunswick","eastcambridge","eastcanton","eastcarboncity","eastchattanooga","eastchester","eastchicago","eastcleveland","eastconcord","eastconemaugh","eastdennis","eastdouglas","eastdublin","eastdubuque","eastdundee","eastearl","eastelmhurst","eastend","eastenddanforth","eastfalls","eastfalmouth","eastfarmingdale","eastflatbush","eastflatrock","eastflorence","eastfoothills","eastfranklin","eastfreehold","eastgaffney","eastgardencity","eastgarfieldpark","eastgate","eastglenville","eastgrandforks","eastgrandrapids","eastgreenbush","eastgreenville","eastgreenwich","eastgriffin","eastgulllake","eastgwillimbury","easthaddam","eastham","easthampton","easthamptonnorth","easthanover","eastharlem","easthartford","eastharwich","easthaven","easthazelcrest","easthelena","easthemet","easthighlandpark","easthillmeridian","easthills","easthonolulu","eastindependence","eastislip","eastithaca","eastjordan","eastkingston","eastlake","eastlakeorientpark","eastlamirada","eastland","eastlansdowne","eastlansing","eastlawn-gardens","eastlawngardens","eastlexington","eastliverpool","eastlongmeadow","eastlosangeles","eastmachias","eastman","eastmanoa","eastmassapequa","eastmckeesport","eastmeadow","eastmerrimack","eastmillcreek","eastmillinocket","eastmilton","eastmissoula","eastmoline","eastmont","eastmoriches","eastmountairy","eastnaples","eastnewark","eastnewnan","eastnewyork","eastnorriton","eastnorthport","eastnorwalk","eastnorwich","eastoakdale","eastoaklane","easton","eastorange","eastover","eastpalatka","eastpalestine","eastpaloalto","eastpasadena","eastpatchogue","eastpensacolaheights","eastpeoria","eastpepperell","eastperrine","eastpetersburg","eastpittsburgh","eastpoint","eastpointe","eastport","eastporterville","eastportorchard","eastprairie","eastprovidence","eastquincy","eastquogue","eastranchodominguez","eastrentonhighlands","eastrichmondheights","eastridge","eastriverdale","eastrochester","eastrockaway","eastrockingham","eastrutherford","eastsahuarita","eastsaintlouis","eastsandwich","eastsangabriel","eastsetauket","eastshoreham","eastsomerville","eastsonora","eastspencer","eaststroudsburg","eastsumter","eastsyracuse","easttawas","easttremont","easttroy","eastuniontown","eastvale","eastvalley","eastvillage","eastville","eastwashington","eastwellington","eastwenatchee","eastwenatcheebench","eastwick","eastwilliston","eastwindsor","eastwood","eastyork","eaton","eaton-estates","eaton-rapids","eatonestates","eatonrapids","eatons-neck","eatonsneck","eatonton","eatontown","eatonville","eau-claire","eauclaire","eb","ebano","ebensburg","ebj","ebll","ec","eca","ecatepec-de-morelos","ecatepecdemorelos","ecatzingo-de-hidalgo","ecatzingodehidalgo","ecc","ecdm","ecel","ecep","ecg","echelon","echo-park","echopark","eclectic","eclq","ecm","eco","economy","ecorse","ecr","ecsc","ecu","ecuandureo","ecvh","ecwd","ecx","ecyo","ed","eda","edb","edc","edcouch","edd","eddington","eddystone","eddyville","eden","eden-isle","eden-prairie","eden-roc","eden-valley","edenbridge-humber-valley","edenbridgehumbervalley","edenisle","edenprairie","edenroc","edenton","edenvalley","edfm","edg","edgar","edgard","edgartown","edgecliff-village","edgecliffvillage","edgecomb","edgefield","edgemere","edgemont-park","edgemontpark","edgemoor","edgerton","edgewater","edgewater-park","edgewaterpark","edgewood","edgeworth","edh","edi","edina","edinboro","edinburg","edinburgh","edison","edisto","edl","edlf","edlr","edm","edmond","edmonds","edmonston","edmonton","edmore","edmundston","edna","edneyville","edo","edr","eds","edsf","edson","edt","edtn","edu","edwards","edwards-air-force-base","edwardsairforcebase","edwardsburg","edwardsville","ee","eec","eed","eedc","eer","ees","eev","ef","effingham","effort","efr","efrain-a-gutierrez","efrainagutierrez","eg","egc","egf","egg-harbor-city","eggertsville","eggharborcity","egipto","egl","eglin-air-force-base","eglin-village","eglinairforcebase","eglinton-east","eglintoneast","eglinvillage","eglv","egp","egr","egv","egypt","egypt-lake-leto","egyptlakeleto","eh","ehc","ehdc","ehdg","ehdx","eheg","eheh","ehlc","ehm","ehn","ehp","ehrenberg","ehsi","ehv","ei","eidson-road","eidsonroad","eielson-air-force-base","eielsonairforcebase","ej","ejidal","ejido-benito-juarez","ejido-cinco-de-mayo","ejido-cohuibampo","ejido-de-dolores","ejido-de-guadalupe","ejido-de-la-finca","ejido-de-mozoquilpan","ejido-de-san-mateo-coapexco","ejido-del-tejocote","ejido-del-tunal-nenaxi","ejido-el-castillo","ejido-el-rosario","ejido-el-saucillo","ejido-el-vergel","ejido-general-leandro-valle","ejido-hidalgo","ejido-javier-rojo-gomez","ejido-jesus-maria","ejido-jiquilpan","ejido-la-guayana-rancho-seco","ejido-la-joya","ejido-la-pina-maromilla","ejido-la-quemada","ejido-la-soledad","ejido-lazaro-cardenas","ejido-loma-de-malacota","ejido-los-huastecos","ejido-mayocoba","ejido-michoacan-de-ocampo","ejido-miraflores","ejido-netzahualcoyotl","ejido-nuevo","ejido-nuevo-leon","ejido-ohuira","ejido-ojo-de-agua","ejido-patzcuaro","ejido-plan-de-ayala","ejido-quintana-roo","ejido-saltillo","ejido-san-cristobal","ejido-san-diego","ejido-san-jose-xilatzen","ejido-san-lorenzo-cuauhtenco","ejido-sinaloa","ejido-sonora","ejido-tabasco","ejido-toluca","ejido-tosalibampo","ejido-venustiano-carranza","ejido-vicente-guerrero","ejido-viejo","ejido-yucatan","ejido-zaragoza","ejidobenitojuarez","ejidocajonojodeaguanumerodos","ejidocincodemayo","ejidocohuibampo","ejidodecoscomatedelprogreso","ejidodedolores","ejidodeguadalupe","ejidodelafinca","ejidodeltejocote","ejidodeltunalnenaxi","ejidodemozoquilpan","ejidodesanmateocoapexco","ejidoelcastillo","ejidoelrosario","ejidoelsaucillo","ejidoelvergel","ejidogeneralleandrovalle","ejidohidalgo","ejidojavierrojogomez","ejidojesusmaria","ejidojiquilpan","ejidolaguayanaranchoseco","ejidolajoya","ejidolapinamaromilla","ejidolapitahayasantodomingo","ejidolaquemada","ejidolasoledad","ejidolazarocardenas","ejidolomademalacota","ejidoloshuastecos","ejidomayocoba","ejidomichoacandeocampo","ejidomiraflores","ejidonetzahualcoyotl","ejidonuevo","ejidonuevoleon","ejidoohuira","ejidoojodeagua","ejidopalmaejidosanfrancisco","ejidopatzcuaro","ejidoplandeayala","ejidoquintanaroo","ejidosaltillo","ejidosancristobal","ejidosandiego","ejidosanjosexilatzen","ejidosanlorenzocuauhtenco","ejidosinaloa","ejidosonora","ejidotabasco","ejidotoluca","ejidotosalibampo","ejidovenustianocarranza","ejidovicenteguerrero","ejidoviejo","ejidoyucatan","ejidozaragoza","ejm","ejrg","ejutla","ejutla-de-crespo","ejutladecrespo","ek","ekalaka","ekmul","ekpedz","el","el-abra","el-acebuche","el-aguacatal","el-aguacate","el-aguajito","el-aguila","el-aguila-la-mesa","el-ahuacate","el-alvareno","el-ambar","el-anono","el-arador","el-arco","el-arenal","el-bajio","el-bajio-la-laguna","el-barrido","el-barril","el-barrio-de-la-soledad","el-bejuco","el-bellote-miguel-de-la-madrid","el-bingu","el-blanco","el-bosque","el-botadero","el-boxtha","el-burrion","el-cabezon","el-cabi","el-cahulote-de-santa-ana","el-cajon","el-calvario","el-camalote","el-camaron","el-cambio","el-camino-real","el-campanario-y-oradel","el-campo","el-canario","el-capomal","el-capulin","el-capulin-la-nueva-pochota","el-capulo-la-quebradora","el-caracol","el-carmen","el-carmen-aztama","el-carmen-el-limon","el-carmen-ocotepec","el-carmen-xalpatlahuaya","el-carreton","el-carrizal","el-carrizalito","el-carrizo","el-castillo","el-cazadero","el-cedro","el-cenidor","el-cenizo","el-censo","el-centenario","el-centro","el-cereso","el-cerrillo-vista-hermosa","el-cerrito","el-cerrito-corona","el-cerro","el-cerro-mission","el-cesped","el-chacal","el-chante","el-chauz","el-chayote","el-chico","el-chinaco-el-pujido","el-chocolate","el-chote","el-cid","el-ciervo","el-ciruelo","el-coacoyul","el-cocuite","el-coecillo","el-colegio","el-colomo","el-colorado","el-coloso","el-conchero","el-conejo","el-congo","el-consuelo","el-consuelo-ulapa","el-contadero-de-matamoros","el-control","el-copal","el-copalar","el-copalillo","el-copetillo","el-coporo","el-corcovado","el-corte","el-cortes","el-cortijo","el-coto","el-coyote","el-coyul","el-crucero-de-santa-maria","el-cuenqueno","el-cuervero-cuerveros","el-cuije","el-cuitzillo-grande","el-curtidor","el-cuyo","el-diamante-la-retranca","el-diez","el-divisador","el-dorado","el-dorado-hills","el-dorado-springs","el-durazno","el-eden","el-embarcadero","el-encanto","el-encanto-del-cerril","el-esclavo","el-escobillo","el-escondido","el-escoplo","el-escribano","el-espejo","el-espinal","el-espinalillo","el-estudiante","el-fortin","el-fresno","el-fuerte","el-fuerte-de-la-union","el-galaneno","el-gallinero","el-gallo","el-granada","el-grullo","el-guaco","el-guayabito","el-guayabo","el-habal","el-habillal","el-hatito","el-hielo","el-higo","el-higueral","el-huajote","el-huarache-el-guarache","el-huaxtho","el-huerfano","el-huexco","el-huidero","el-huitusi","el-huixmi","el-huizache","el-humo","el-jabali","el-jacal","el-jaguey","el-jaral","el-jaralito","el-jardin","el-jazmin","el-jebel","el-jiadi","el-jicaral","el-jicote","el-jobo","el-juile","el-lago","el-lampotal","el-largo","el-laurel","el-lencero","el-lequeitio","el-letrero","el-limar","el-limon","el-limon-de-los-ramos","el-limonar","el-lindero","el-llanito","el-llano","el-llano-del-compromiso","el-llano-santa-maria","el-lobo","el-loreto-occidental","el-lucero","el-maguey","el-magueyal","el-maluco","el-mango","el-mentidero","el-meson","el-metlapil","el-mezquitillo","el-milagro","el-mirador","el-mirage","el-mogote","el-molino","el-mollejon","el-monte","el-moral","el-moreno-san-miguel-moreno","el-morro","el-muey","el-nabo","el-nacimiento","el-naranjillo","el-naranjito","el-naranjo","el-nayar","el-nigromante","el-nilo","el-nino","el-nio","el-nith","el-nopal","el-obraje","el-ocotal","el-ocotito","el-ojuelo","el-olvera","el-organal","el-oro","el-oro-de-hidalgo","el-pacayal","el-palacio","el-palmar","el-palmar-grande","el-palmar-san-gabriel","el-palmarcito","el-palmito","el-panorama","el-papayo","el-paracho","el-paraiso","el-paraiso-la-charca","el-paredon","el-paredoncito","el-parral","el-paso","el-pedregal","el-penasco","el-pericon","el-peru","el-pescadero","el-picacho","el-pilar","el-pino","el-pinto","el-pintor","el-pitahayo","el-pital","el-plan","el-platanal","el-plateado-de-joaquin-amaro","el-pochotal","el-polvorin","el-portal","el-porvenir","el-porvenir-agrarista","el-porvenir-de-velasco-suarez","el-porvenir-i","el-potrero","el-potrero-de-san-diego","el-potrero-de-sataya","el-pozo","el-pozole","el-progreso","el-progreso-hidalgo","el-pueblito","el-pueblito-garbanzal","el-puerto","el-puerto-magu","el-puesto","el-quelite","el-quince","el-ramal-porvenir","el-ranchito","el-rancho","el-rayo","el-realito","el-recodo","el-recodo-de-san-jose-axalco","el-recreo","el-refugio","el-refugio-de-los-sauces","el-refugio-de-penuelas","el-remolino","el-reno","el-retiro","el-rincon","el-rincon-citlaltepetl","el-rincon-de-la-candelaria","el-rincon-de-los-perales","el-rio","el-roble","el-rodeo","el-romereno-infonavit","el-rosal","el-rosario","el-rosario-de-arriba","el-rucio","el-sabino","el-sacrificio","el-sahuaral","el-saladito","el-salero","el-salitre","el-salto","el-salto-de-espejo","el-salto-de-eyipantla","el-salvador","el-saneal","el-saucillo","el-saucillo-fraccionamiento","el-saucito-el-horno","el-sauz","el-sauz-de-abajo","el-sauz-el-sauz-de-villasenor","el-sauzal-de-rodriguez","el-segundo","el-sibal","el-silencio","el-sitio","el-siviral-jigica","el-sobrante","el-suchil","el-susto","el-tamarindo","el-tecolote","el-tecuan","el-tejar","el-tejocote","el-tejocote-el-domingo","el-tepetatal","el-tepetate","el-tepeyac","el-tephe","el-tequesquite","el-terrero","el-ticui","el-tigre","el-tintal","el-tizate","el-tortuguero","el-trapiche","el-triunfo","el-triunfo-1ra-seccion-cardona","el-tuito","el-tular","el-tule","el-tulin","el-tumbo","el-tunal","el-tzay","el-vado-de-san-pedro","el-valle-de-arroyo-seco","el-varal","el-vegil","el-veladero","el-venado","el-verano","el-verde","el-vergel","el-vicarlo","el-volador","el-walamo","el-zapotal","el-zapote","el-zapote-bravo","el-zapotillo","ela","elabra","elacebuche","elaguacatal","elaguacate","elaguajito","elaguila","elaguilalamesa","elahuacate","elalvareno","elambar","elambarelambardeecheverria","elanono","elarador","elarco","elarenal","elba","elbajio","elbajiolalaguna","elbarrido","elbarril","elbarriodelasoledad","elbejuco","elbellotemigueldelamadrid","elberta","elberton","elbingu","elblanco","elbosque","elbotadero","elbow-lake","elbowlake","elboxtha","elbridge","elburn","elburrion","elc","elcabezon","elcabi","elcahulotedesantaana","elcajon","elcalvario","elcamalote","elcamaron","elcambio","elcaminoreal","elcampanarioyoradel","elcampo","elcanario","elcapomal","elcapulin","elcapulinlanuevapochota","elcapulolaquebradora","elcaracol","elcarmen","elcarmenaztama","elcarmeneldesiertodelcarmen","elcarmenellimon","elcarmenocotepec","elcarmenxalpatlahuaya","elcarreton","elcarrizal","elcarrizalito","elcarrizo","elcastillo","elcazadero","elcedro","elcenidor","elcenizo","elcenso","elcentenario","elcentro","elcereso","elcerrillovistahermosa","elcerrito","elcerritocorona","elcerro","elcerromission","elcesped","elchacal","elchante","elchauz","elchayote","elchico","elchinacoelpujido","elchocolate","elchote","elcid","elciervo","elciruelo","elcoacoyul","elcocuite","elcoecillo","elcolegio","elcolomo","elcolorado","elcoloso","elconchero","elconejo","elcongo","elconsuelo","elconsueloulapa","elcontaderodematamoros","elcontrol","elcopal","elcopalar","elcopalillo","elcopetillo","elcoporo","elcorcovado","elcorte","elcortes","elcortijo","elcoto","elcoyote","elcoyul","elcrucerodesantamaria","elcuenqueno","elcuerverocuerveros","elcuije","elcuitzillogrande","elcurtidor","elcuyo","eldc","eldersburg","eldiamantelaretranca","eldiez","eldivisador","eldm","eldon","eldora","eldorado","eldorado-at-santa-fe","eldoradoatsantafe","eldoradohills","eldoradosprings","eldridge","eldurazno","eleanor","electra","electric-city","electriccity","eleden","eleele","elembarcadero","elencanto","elencantodelcerril","elephant-butte","elephantbutte","elesclavo","elescobillo","elescondido","elescoplo","elescribano","elespejo","elespinal","elespinalillo","elestudiante","elfers","elfortin","elfresno","elfuerte","elfuertedelaunion","elgalaneno","elgallinero","elgallo","elgin","elgranada","elgrullo","elguaco","elguayabito","elguayabo","elh","elhabal","elhabillal","elhatito","elhielo","elhigo","elhigueral","elhuajote","elhuaracheelguarache","elhuaxtho","elhuerfano","elhuexco","elhuidero","elhuitusi","elhuixmi","elhuizache","elhumo","elida","elim","eliot","elizabeth","elizabeth-city","elizabethcity","elizabethton","elizabethtown","elizabethville","elj","eljabali","eljacal","eljaguey","eljaral","eljaralito","eljardin","eljazmin","eljebel","eljiadi","eljicaral","eljicote","eljobo","eljuile","elk-city","elk-creek","elk-grove","elk-grove-village","elk-plain","elk-point","elk-rapids","elk-ridge","elk-river","elk-run-heights","elkader","elkcity","elkcreek","elkford","elkfork","elkgrove","elkgrovevillage","elkhart","elkhorn","elkin","elkins","elkins-park","elkinspark","elkland","elko","elko-new-market","elkonewmarket","elkplain","elkpoint","elkrapids","elkridge","elkriver","elkrunheights","elkton","elkview","ell","ellago","ellampotal","ellargo","ellaurel","ellaville","ellencero","ellendale","ellensburg","ellenton","ellenville","ellequeitio","ellerbe","elletrero","ellettsville","ellicott","ellicott-city","ellicottcity","ellijay","ellimar","ellimon","ellimonar","ellimondelosramos","ellindero","ellington","ellinwood","elliot-lake","elliotlake","ellis","ellisburg","ellison","ellisville","elllanito","elllano","elllanodelcompromiso","elllanosantamaria","ellobo","elloretooccidental","ellport","ellsworth","ellucero","ellwood-city","ellwoodcity","elm","elm-city","elm-creek","elm-grove","elm-springs","elma","elma-center","elmacenter","elmaguey","elmagueyal","elmaluco","elmango","elmcity","elmcreek","elmendorf","elmendorf-air-force-base","elmendorfairforcebase","elmentidero","elmer","elmeson","elmetlapil","elmezquitillo","elmgrove","elmhurst","elmilagro","elmira","elmira-heights","elmirador","elmirage","elmiraheights","elmogote","elmolino","elmollejon","elmont","elmonte","elmoral","elmore","elmorenosanmiguelmoreno","elmorro","elms-old-rexdale","elmsford","elmsoldrexdale","elmsprings","elmuey","elmvale","elmwood","elmwood-park","elmwood-place","elmwoodpark","elmwoodplace","elnabo","elnacimiento","elnaranjillo","elnaranjito","elnaranjo","elnayar","elnigromante","elnilo","elnino","elnio","elnith","elnopal","elo","elobraje","elocotal","elocotito","elojuelo","elolvera","elon","elop","elorganal","eloro","elorodehidalgo","elotepec","eloxochitlan","eloxochitlan-de-flores-magon","eloxochitlandefloresmagon","eloy","elp","elpacayal","elpalacio","elpalmar","elpalmarcito","elpalmargrande","elpalmarsangabriel","elpalmito","elpanorama","elpapayo","elparacho","elparaiso","elparaisolacharca","elparedon","elparedoncito","elparral","elpaso","elpedregal","elpedregaldeguadalupehidalgo","elpenasco","elpericon","elperu","elpescadero","elpicacho","elpilar","elpino","elpinto","elpintor","elpitahayo","elpital","elplan","elplatanal","elplateadodejoaquinamaro","elpm","elpochotal","elpolvorin","elportal","elporvenir","elporveniragrarista","elporvenirdevelascosuarez","elporvenirelporvenirdearriba","elporveniri","elpotrero","elpotrerodesandiego","elpotrerodesataya","elpozo","elpozole","elprogreso","elprogresohidalgo","elpueblito","elpueblitogarbanzal","elpuerto","elpuertomagu","elpuesto","elq","elquelite","elquince","elramalporvenir","elranchito","elrancho","elrayo","elrealito","elrecodo","elrecododesanjoseaxalco","elrecreo","elrefugio","elrefugiodelossauces","elrefugiodepenuelas","elremolino","elreno","elretiro","elrincon","elrinconcitlaltepetl","elrincondelacandelaria","elrincondelosperales","elrinconsantacruzdelrincon","elrio","elroble","elrodeo","elromerenoinfonavit","elrosal","elrosario","elrosariodearriba","elroy","elrucio","els","elsa","elsabino","elsacrificio","elsahuaral","elsaladito","elsalero","elsalitre","elsalto","elsaltodeespejo","elsaltodeeyipantla","elsalvador","elsaneal","elsaucillo","elsaucillofraccionamiento","elsaucitoelhorno","elsauz","elsauzalderodriguez","elsauzdeabajo","elsauzelsauzdevillasenor","elsberry","elsegundo","elsibal","elsilencio","elsitio","elsiviraljigica","elsm","elsmere","elsobrante","elsuchil","elsusto","elsv","eltamarindo","eltecolote","eltecuan","eltejar","eltejocote","eltejocoteeldomingo","eltepetatal","eltepetate","eltepeyac","eltephe","eltequesquite","elterrero","elticui","eltigre","eltingville","eltintal","eltizate","elton","eltortuguero","eltrapiche","eltriunfo","eltriunfo1raseccioncardona","eltriunfodelastresmaravillas","eltuito","eltular","eltule","eltulin","eltumbo","eltunal","eltzay","elvadodesanpedro","elvalledearroyoseco","elvaral","elvaralsansebastiannumerouno","elvegil","elveladero","elvenado","elverano","elverde","elvergel","elverson","elverta","elvicarlo","elvins","elvolador","elwalamo","elwood","ely","elyria","elysburg","elzapotal","elzapote","elzapotebravo","elzapotillo","em","ema","emancipacion-quetzalapa","emancipacionquetzalapa","emdo","emerald-isle","emerald-lake-hills","emerald-lakes","emerald-mountain","emeraldisle","emeraldlakehills","emeraldlakes","emeraldmountain","emerson","emerson-hill","emersonhill","emeryville","emigsville","emiliano-zapata","emiliano-zapata-casahuates","emiliano-zapata-el-ranchito","emiliano-zapata-san-jose-bata","emiliano-zapata-santo-domingo","emilianozapata","emilianozapatacasahuates","emilianozapataelranchito","emilianozapatasanjosebata","emilianozapatasantodomingo","emilio-carranza","emilio-carranza-santa-cruz","emilio-portes-gil","emiliocarranza","emiliocarranzasantacruz","emilioportesgil","eminence","emmaus","emmetsburg","emmett","emmitsburg","emory","empalme","empalme-escobedo","empalmeescobedo","empaque-tarriba","empaquetarriba","empire","emporia","emporium","emsworth","en","encantada-ranchito-el-calaboz","encantadaranchitoelcalaboz","encanto","encarnacion-de-diaz","encarnaciondediaz","enchanted-hills","enchanted-lake","enchantedhills","enchantedlake","encinal-colorado","encinalcolorado","encinitas","encino","enderby","endicott","endwell","energy","enetai","enfield","england","englehart","englemount-lawrence","englemountlawrence","englewood","englewood-cliffs","englewoodcliffs","english","english-corner","englishcorner","englishtown","enhaut","enid","enigma","enl","enlow","enm","ennis","enoch","enochville","enola","enon","enosburg-falls","enosburgfalls","enramadas","enrique-estrada","enriqueestrada","ensenada","ensley","entabladero","enterprise","enthavi","entiat","entronquedematehualaelhuizache","entronquelaredosalinasvictoria","enumclaw","eny","eo","eoda","eodh","eol","eor","ep","epa","epazoyucan","epda","epds","epg","eph","ephraim","ephrata","epi","epigmenio-gonzalez","epigmeniogonzalez","epitacio-huerta","epitaciohuerta","epkl","eplc","epm","epo","epping","epsg","epsom","epworth","eq","eqr","er","erath","erc","erd","erda","erdp","erec","erh","eri","erick","erie","erin","eringate-centennial-west-deane","eringatecentennialwestdeane","erlands-point-kitsap-lake","erlandspointkitsaplake","erlanger","erma","ermita-de-guadalupe","ermitadeguadalupe","erongaricuaro","erp","ersd","erving","erwin","erwinville","es","esc","escaleras","escalerilla-lagunas","escalerillalagunas","escalerillas","escalon","escambia","escamillas","escanaba","escarcega","escatawpa","escobares","escobedo","escolasticas","escolin-de-olarte","escolindeolarte","escondido","escuadron-doscientos-uno","escuadrondoscientosuno","escuinapa","escuintla","esd","esda","esde","esdr","ese","eseh","esf","esfuerzos-unidos","esfuerzosunidos","esg","esj","esjx","eskasoni-3","eskasoni3","esko","esl","eslc","esm","esmeralda","espanita","espanola","esparto","esperance","esperanza","espinal","espita","espy","esqueda","esquimalt","essex","essex-fells","essex-junction","essex-village","essexfells","essexjunction","essexvillage","essexville","estacada","estacion-bamoa","estacion-camacho","estacion-capomas","estacion-chimaneco","estacion-coahuila","estacion-conchos","estacion-consuelo","estacion-corral","estacion-corralejo","estacion-de-apulco","estacion-de-san-francisco","estacion-dobladero","estacion-huehuetan","estacion-joaquin","estacion-juanita","estacion-la-piedad","estacion-llano","estacion-mogone","estacion-obispo","estacion-penjamo","estacion-pescaderos","estacion-querendaro","estacion-rosales","estacion-san-jose","estacion-san-manuel","estacion-santa-engracia","estacion-tamuin","estacion-tuzantan","estacion-zamora","estacionbamoa","estacioncamacho","estacioncapomas","estacionchimaneco","estacioncoahuila","estacionconchos","estacionconsuelo","estacioncorral","estacioncorralejo","estaciondeapulco","estaciondesanfrancisco","estaciondobladero","estacionhuehuetan","estacionjoaquin","estacionjuanita","estacionlapiedad","estacionllano","estacionmogone","estacionobispo","estacionpenjamo","estacionpescaderos","estacionquerendaro","estacionrosales","estacionsanjose","estacionsanmanuel","estacionsantaengracia","estaciontamuin","estaciontuzantan","estacionzamora","estado-de-mexico","estadodemexico","estancia","estancia-de-animas","estancia-de-guadalupe","estancia-del-llano","estanciadeanimas","estanciadeguadalupe","estanciadelllano","estanzuela","estanzuela-de-romero","estanzueladeromero","estapilla","estell-manor","estelle","estellmanor","ester","esterhazy","estero","estero-de-milpas","estero-del-idolo","esterodelidolo","esterodemilpas","esteros","estes-park","estespark","estevan","esther","estherville","estill","estill-springs","estillsprings","estipa","estrada","estrella-de-belen","estrelladebelen","et","etchojoa","etchoropo","eted","ethete","etna","etobicoke","etobicoke-west-mall","etobicokewestmall","etowah","ettrick","etucuaro","etzatlan","eu","euan","eucalyptus-hills","eucalyptushills","euclid","eudora","eufaula","eugene","euharlee","euless","eunice","eupora","eureka","eureka-de-media-luna-eureka","eureka-mill","eureka-springs","eureka-y-belen","eurekademedialunaeureka","eurekamill","eurekasprings","eurekaybelen","eustis","eutaw","ev","evadale","evans","evans-city","evansburg","evanscity","evansdale","evanston","evansville","evart","evc","eveleth","evendale","everett","evergreen","evergreen-park","evergreenpark","everman","everson","evg","ew","ewa-beach","ewa-gentry","ewa-villages","ewabeach","ewagentry","ewavillages","ewb","ewing","ewm","ex-hacienda-de-guadalupe","ex-hacienda-de-xalpa","ex-hacienda-del-copal","ex-hacienda-el-hospital","ex-hacienda-la-concepcion","ex-hacienda-santa-ines","ex-rancho-san-dimas","ex-vinedos-guadalupe","excelsior","excelsior-springs","excelsiorsprings","excola","exeter","exhaciendadeguadalupe","exhaciendadelcopal","exhaciendadexalpa","exhaciendaelhospital","exhaciendalaconcepcion","exhaciendasantaines","exmore","experiment","exranchosandimas","exton","exvinedosguadalupe","ey","eyb","eyota","ez","ezb","ezc","ezequiel-montes","ezequielmontes","ezer","ezsd","fa","fabens","fabrica-concepcion","fabrica-de-melchor","fabricaconcepcion","fabricademelchor","factoryville","fafb","fair-grove","fair-haven","fair-lawn","fair-oaks","fair-oaks-ranch","fair-plain","fairbank","fairbanks","fairbanks-ranch","fairbanksranch","fairborn","fairburn","fairbury","fairchance","fairchild-air-force-base","fairchildairforcebase","fairchilds","fairdale","fairfax","fairfax-station","fairfaxstation","fairfield","fairfield-bay","fairfield-beach","fairfield-glade","fairfield-harbour","fairfield-heights","fairfieldbay","fairfieldbeach","fairfieldglade","fairfieldharbour","fairfieldheights","fairforest","fairgrove","fairhaven","fairhope","fairland","fairlawn","fairlea","fairless-hills","fairlesshills","fairmead","fairmont","fairmont-city","fairmontcity","fairmount","fairmount-heights","fairmountheights","fairoaks","fairoaksranch","fairplain","fairplains","fairplay","fairport","fairport-harbor","fairportharbor","fairton","fairview","fairview-ferndale","fairview-heights","fairview-park","fairview-shores","fairviewferndale","fairviewheights","fairviewpark","fairviewshores","fairway","fairwinds","fairwood","faja-de-oro","fajadeoro","falcon-heights","falcon-lake-estates","falconer","falconheights","falconlakeestates","falfurrias","falher","falkville","fall-branch","fall-city","fall-creek","fall-river","fallbranch","fallbrook","fallcity","fallcreek","falling-water","fallingbrook","fallingwater","fallon","fallriver","falls-church","falls-city","falls-creek","fallsburg","fallschurch","fallscity","fallscreek","fallston","falmouth","falmouth-foreside","falmouthforeside","faneuil","fannett","fanwood","far-rockaway","fargo","faribault","farley","farm-loop","farmer-city","farmercity","farmers-branch","farmers-loop","farmersbranch","farmersburg","farmersloop","farmersville","farmerville","farmingdale","farmington","farmington-hills","farmingtonhills","farmingville","farmland","farmloop","farmville","farnham","farr-west","farragut","farrell","farrington","farrockaway","farrwest","farwell","fasr","fate","faulkton","faxon","fayette","fayetteville","fb","fba","fc","fcd","fcds","fch","fcn","fco","fcos","fcp","fcs","fcu","fcy","fd","fdc","fdl","fdlf","fdm","fdmt","fdo","fdp","fdv","fe","fearrington-village","fearringtonvillage","feasterville","feather-sound","feathersound","federal-heights","federal-way","federalheights","federalsburg","federalway","fehc","felida","felipe-angeles","felipe-carrillo-puerto","felipe-neri-cuatepec","felipeangeles","felipecarrillopuerto","felipenericuatepec","fellsburg","fellsmere","felton","fennimore","fennville","fenton","fenwaykenmore","ferdinand","fergus","fergus-falls","fergusfalls","ferguson","ferme-neuve","fermeneuve","fermin-rabadan-cervantes","ferminrabadancervantes","fermont","fern-acres","fern-creek","fern-forest","fern-park","fern-prairie","fernacres","fernandina-beach","fernandinabeach","ferncreek","ferndale","fernforest","fernie","fernley","fernpark","fernprairie","fernway","ferriday","ferris","ferrisburgh","ferron","ferrum","ferry-pass","ferrypass","ferrysburg","fessenden","festus","fettershotspringsaguacaliente","ff","ffc","fg","fglp","fgt","fh","fhdb","fhn","fhs","fi","fife","fife-heights","fifeheights","fifth-street","fifthstreet","filer","fillmore","filomeno-mata","filomenomata","fim","financial-district","financialdistrict","fincastle","finderne","findlay","finley","finneytown","fir","fircrest","firebaugh","firestone","firing-range","firingrange","first-mesa","firstmesa","firthcliffe","fish-hawk","fish-lake","fisher","fishers","fishersville","fishhawk","fishhook","fishkill","fishlake","fishtown","fiskdale","fitchburg","fitzgerald","fitzwilliam","five-corners","five-forks","five-points","fivecorners","fiveforks","fivepoints","fivepointville","fjm","fk","fl","fla","flagami","flagler-beach","flagler-estates","flaglerbeach","flaglerestates","flagstaff","flanagan","flanders","flandreau","flat-river","flat-rock","flatbush","flatlands","flatonia","flatriver","flatrock","flatwoods","flda","fle","fleetwood","fleming-island","flemingdon-park","flemingdonpark","flemingisland","flemingsburg","flemington","fletcher","flf","flh","flin-flon","flinflon","flint","flint-city","flintcity","flippin","fll","flm","fln","flomaton","flor-azul","flor-batavia","flor-de-cacao","flora","flora-vista","floral-city","floral-park","florala","floralcity","floralpark","floravista","florazul","florbatavia","flordecacao","florence","florence-graham","florencegraham","florenceville-bristol","florencevillebristol","florencia","floresville","florham-park","florhampark","florida","florida-city","florida-ridge","floridacity","floridaridge","florin","floris","florissant","flossmoor","flourtown","flower-hill","flower-mound","flowerhill","flowermound","flowery-branch","flowerybranch","flowing-wells","flowingwells","flowood","floyd","floydada","flp","flt","flushing","flv","flw","flying-hills","flyinghills","fm","fmb","fmdv","fmi","fmo","fms","fn","fnc","fo","foam-lake","foamlake","fobes-hill","fobeshill","fod","fogo-island","fogoisland","foh","folcroft","foley","folkston","follansbee","folly-beach","follybeach","folsom","fond-du-lac","fonda","fonddulac","fontana","fontezuelas","foothill-farms","foothill-ranch","foothillfarms","foothillranch","for","ford-city","ford-heights","ford-island","fordcity","fordham","fordheights","fordisland","fords","fords-prairie","fordsprairie","fordyce","forest","forest-acres","forest-city","forest-glen","forest-grove","forest-heights","forest-hill","forest-hill-north","forest-hill-south","forest-hills","forest-lake","forest-meadows","forest-oaks","forest-park","forest-ranch","forestacres","forestbrook","forestcity","forestdale","forestglen","forestgrove","forestheights","foresthill","foresthillnorth","foresthills","foresthillsouth","forestlake","forestmeadows","forestoaks","forestpark","forestranch","forestville","forjadores-de-pachuca","forjadoresdepachuca","forked-river","forkedriver","forks","forman","forney","forrest","forrest-city","forrestcity","forreston","forsyth","fort-ashby","fort-atkinson","fort-belknap-agency","fort-belvoir","fort-bend","fort-benton","fort-bliss","fort-bragg","fort-branch","fort-campbell-north","fort-carson","fort-cavazos","fort-clark-springs","fort-collins","fort-coulonge","fort-covington-hamlet","fort-davis","fort-defiance","fort-deposit","fort-dick","fort-dix","fort-dodge","fort-drum","fort-edward","fort-erie","fort-fairfield","fort-frances","fort-gaines","fort-george-g-mead-junction","fort-gibson","fort-hall","fort-hamilton","fort-hancock","fort-hunt","fort-irwin","fort-kent","fort-knox","fort-lauderdale","fort-lee","fort-leonard-wood","fort-loramie","fort-lupton","fort-macleod","fort-madison","fort-mckinley","fort-mcmurray","fort-meade","fort-mill","fort-mitchell","fort-montgomery","fort-morgan","fort-myers","fort-myers-beach","fort-myers-shores","fort-nelson","fort-novosel","fort-oglethorpe","fort-payne","fort-pierce","fort-pierce-north","fort-pierce-south","fort-pierre","fort-plain","fort-polk-north","fort-polk-south","fort-recovery","fort-riley-north","fort-salonga","fort-saskatchewan","fort-scott","fort-shafter","fort-shawnee","fort-smith","fort-st-john","fort-stewart","fort-stockton","fort-sumner","fort-thomas","fort-thompson","fort-totten","fort-valley","fort-wadsworth","fort-walton-beach","fort-washakie","fort-washington","fort-wayne","fort-worth","fort-wright","fort-yates","fortashby","fortatkinson","fortbelknapagency","fortbelvoir","fortbend","fortbenton","fortbliss","fortbragg","fortbranch","fortcampbellnorth","fortcarson","fortcavazos","fortclarksprings","fortcollins","fortcoulonge","fortcovingtonhamlet","fortdavis","fortdefiance","fortdeposit","fortdick","fortdix","fortdodge","fortdrum","fortedward","forterie","fortfairfield","fortfrances","fortgaines","fortgeorgegmeadjunction","fortgibson","forthall","forthamilton","forthancock","forthunt","fortin-de-las-flores","fortindelasflores","fortirwin","fortkent","fortknox","fortlauderdale","fortlee","fortleonardwood","fortloramie","fortlupton","fortmacleod","fortmadison","fortmckinley","fortmcmurray","fortmeade","fortmill","fortmitchell","fortmontgomery","fortmorgan","fortmyers","fortmyersbeach","fortmyersshores","fortnelson","fortnovosel","fortoglethorpe","fortpayne","fortpierce","fortpiercenorth","fortpiercesouth","fortpierre","fortplain","fortpolknorth","fortpolksouth","fortrecovery","fortrileynorth","fortsalonga","fortsaskatchewan","fortscott","fortshafter","fortshawnee","fortsmith","fortstewart","fortstjohn","fortstockton","fortsumner","fortthomas","fortthompson","forttotten","fortuna","fortuna-foothills","fortunafoothills","fortvalley","fortville","fortwadsworth","fortwaltonbeach","fortwashakie","fortwashington","fortwayne","fortworth","fortwright","forty-fort","fortyates","fortyfort","foscoe","fossambault-sur-le-lac","fossambaultsurlelac","fossil","fosston","foster","foster-brook","foster-city","fosterbrook","fostercity","fostoria","fountain","fountain-green","fountain-hill","fountain-hills","fountain-inn","fountain-valley","fountainebleau","fountaingreen","fountainhead-orchard-hills","fountainheadorchardhills","fountainhill","fountainhills","fountaininn","fountainvalley","four-corners","four-oaks","four-seasons","fourcorners","fouroaks","fourseasons","fowler","fowlerville","fox-chapel","fox-chase","fox-creek","fox-farm-college","fox-island","fox-lake","fox-lake-hills","fox-point","fox-river-grove","fox-run","foxborough","foxchapel","foxchase","foxcreek","foxfarmcollege","foxisland","foxlake","foxlakehills","foxpoint","foxrivergrove","foxrun","fp","fpds","fpn","fpr","fps","fr","fraccion-milpillas","fraccion-san-roque-el-prieto","fraccionamiento-ciudad-olmeca","fraccionamiento-ciudad-yagul","fraccionamiento-costa-dorada","fraccionamiento-del-valle","fraccionamiento-la-florida","fraccionamiento-la-mezquitera","fraccionamiento-la-noria","fraccionamiento-la-trinidad","fraccionamiento-la-virgen","fraccionamiento-las-fuentes","fraccionamiento-las-liebres","fraccionamiento-los-alamos","fraccionamiento-los-angeles","fraccionamiento-los-prados","fraccionamiento-metropolis-ii","fraccionamiento-monte-olivo","fraccionamiento-paraiso-real","fraccionamiento-real-del-valle","fraccionamiento-real-palmas","fraccionamiento-san-miguel","fraccionamiento-santa-cruz","fraccionamiento-universo","fraccionamiento-valle-dorado","fraccionamiento-villa-jardin","fraccionamientociudadolmeca","fraccionamientociudadyagul","fraccionamientocolinasdelsol","fraccionamientocostadorada","fraccionamientodelvalle","fraccionamientolaflorida","fraccionamientolamezquitera","fraccionamientolanoria","fraccionamientolasfuentes","fraccionamientolasliebres","fraccionamientolatrinidad","fraccionamientolavirgen","fraccionamientolomasdeahuatlan","fraccionamientolosalamos","fraccionamientolosangeles","fraccionamientolosprados","fraccionamientometropolisii","fraccionamientomisiondelvalle","fraccionamientomonteolivo","fraccionamientoparaisoreal","fraccionamientoprivadasdelsol","fraccionamientorealdelvalle","fraccionamientorealdesanpablo","fraccionamientorealpalmas","fraccionamientosanmiguel","fraccionamientosantacruz","fraccionamientouniverso","fraccionamientovalledorado","fraccionamientovillajardin","fraccionamientovillasdelallave","fraccionmilpillas","fraccionsanroqueelprieto","frackville","framingham","framingham-center","framinghamcenter","francestown","francis","francisco-i-madero","francisco-ibarra-ramos","francisco-ignacio-madero","francisco-javier-mina","francisco-rueda","francisco-sarabia","francisco-serrato-san-bartolo","francisco-villa","francisco-zarco","franciscoibarraramos","franciscoignaciomadero","franciscoimadero","franciscojaviermina","franciscorueda","franciscosarabia","franciscosarabiacerritopelon","franciscoserratosanbartolo","franciscovilla","franciscozarco","francisville","franco","franco-tavera","franconia","francotavera","frankenmuth","frankford","frankfort","frankfort-square","frankfortsquare","franklin","franklin-center","franklin-furnace","franklin-lakes","franklin-park","franklin-springs","franklin-square","franklincenter","franklinfurnace","franklinlakes","franklinpark","franklinsprings","franklinsquare","franklinton","franklinville","frankston","franksville","frankton","fraser","frazee","frazeysburg","frazier-park","frazierpark","frc","frdv","fredepo","frederic","frederick","fredericksburg","frederickson","fredericktown","fredericton","fredonia","freeburg","freedom","freehold","freeland","freeman","freemansburg","freeport","freer","freetown","fremont","french-camp","french-creek","french-island","french-lick","french-settlement","frenchburg","frenchcamp","frenchcreek","frenchisland","frenchlick","frenchsettlement","frenchtown","frenchville","fresh-meadows","freshmeadows","fresnillo","fresno","fresno-nichi","fresnonichi","frewsburg","frg","friars-point","friarspoint","frias","friday-harbor","fridayharbor","fridley","friedens","friend","friendly","friendship","friendship-village","friendshipvillage","friendswood","friona","frisco","frisco-city","friscocity","fritch","fritz-creek","fritzcreek","frn","front-royal","frontenac","frontera","frontera-corozal","frontera-hidalgo","fronteracorozal","fronterahidalgo","fronteras","frontroyal","frostburg","frostproof","frp","fruit-cove","fruit-heights","fruit-hill","fruita","fruitcove","fruitdale","fruitheights","fruithill","fruitland","fruitland-park","fruitlandpark","fruitport","fruitridge-pocket","fruitridgepocket","fruitvale","fruitville","fryeburg","fs","fsc","fscp","fsj","fsll","fsm","fssb","ft","fu","fuentes-del-valle","fuentesdelvalle","fuentezuelas","fulda","fuller-heights","fullerheights","fullerton","fulshear","fulton","fultondale","fundy-bay","fundybay","funny-river","funnyriver","fuquay-varina","fuquayvarina","fussels-corner","fusselscorner","fv","fvd","fvdg","fvj","fw","fwb","fy","fyffe","fz","ga","gabino-barreda","gabinobarreda","gabriel-esquinca","gabriel-hernandez-mancinas","gabriel-leyva-velazquez","gabrielesquinca","gabrielhernandezmancinas","gabrielleyvasolanozapotillodos","gabrielleyvavelazquez","gachupines","gadsden","gaf","gafb","gaffney","gage-park","gagepark","gages-lake","gageslake","gahanna","gail","gainesboro","gainesville","gaithersburg","galax","galaxia-bonito-jalisco","galaxia-la-calera","galaxia-la-noria","galaxiabonitojalisco","galaxialacalera","galaxialanoria","galaxias-toluca","galaxiastoluca","galeana","galecio-narcia","galecionarcia","galena","galena-park","galenapark","galerade-panales","galeradepanales","galeras","gales-ferry","galesburg","galesferry","galesville","galeton","galeville","galindo","galion","gallatin","galliano","gallipolis","gallitzin","gallup","galt","galva","galveston","gam","gambara","gambier","gambino","gambo","gambrills","gameti","gamewell","ganado","gananoque","gander","gandho","gandy","gang-mills","ganges","gangmills","gantt","ganzda","gap","garcia","garden-acres","garden-city","garden-city-park","garden-city-south","garden-court","garden-grove","garden-home-whitford","garden-ridge","garden-view","gardena","gardenacres","gardencity","gardencitypark","gardencitysouth","gardencourt","gardendale","gardengrove","gardenhomewhitford","gardenridge","gardenview","gardere","gardiner","gardner","gardnertown","gardnerville","gardnerville-ranchos","gardnervilleranchos","garfield","garfield-heights","garfieldheights","gargantillo","garland","garner","garnet","garnett","garretson","garrett","garrett-park","garrettpark","garrettsville","garrison","garwood","gary","garyville","gas-city","gasca","gascity","gasj","gaspe","gasport","gasr","gassville","gaston","gastonia","gastonville","gate-city","gatecity","gates-mills","gates-north-gates","gatesmills","gatesnorthgates","gatesville","gateway","gatineau","gatlinburg","gautier","gavia-de-rionda","gaviaderionda","gaviotas-sur-el-cedral","gaviotassurelcedral","gaylord","gb","gbc","gbj","gc","gcc","gcp","gcs","gcv","gd","gda","gdb","gdl","gdm","gdo","gdpb","gdr","gdsc","gdt","ge","gearhart","geary","gee","geistown","genaro-codina","genaro-estrada","genarocodina","genaroestrada","general-alatriste-san-joaquin","general-andres-figueroa","general-angel-flores-la-palma","general-bravo","general-calixto-contreras","general-cepeda","general-enrique-estrada","general-francisco-villa","general-ignacio-zaragoza","general-juan-jose-rios","general-lazaro-cardenas","general-miguel-aleman","general-panfilo-natera","general-pascual-fentes","general-pedro-maria-anaya","general-simon-bolivar","general-trevino","general-zaragoza","general-zuazua","generalalatristesanjoaquin","generalandresfigueroa","generalangelfloreslapalma","generalbravo","generalcalixtocontreras","generalcepeda","generalenriqueestrada","generalfelipeangeleslosangeles","generalfranciscovilla","generalignaciozaragoza","generaljuanjoserios","generallaurogcalocaelrascon","generallazarocardenas","generalmiguelaleman","generalpanfilonatera","generalpascualfentes","generalpedromariaanaya","generalsimonbolivar","generaltrevino","generalzaragoza","generalzuazua","genesee","geneseo","geneva","geneva-on-the-lake","genevaonthelake","genoa","genoa-city","genoacity","genola","gentry","george","george-west","georgetown","georgewest","georgia","georgiana","geovillaslaurelesdelcampanario","gerald","gerber","gering","germantown","germantown-hills","germantownhills","geronimo","gervais","gettysburg","gf","gfn","gfv","gfw","gg","ggc","gge","gh","ghcc","ghm","gholson","ghw","gi","gibbon","gibbons","gibbsboro","gibbstown","gibraltar","gibson","gibson-city","gibsonburg","gibsoncity","gibsonia","gibsons","gibsonton","gibsonville","giddings","gideon","gifford","gig-harbor","gigharbor","gila","gila-bend","gilabend","gilbert","gilbert-creek","gilbertcreek","gilberto-camacho","gilbertocamacho","gilberts","gilbertsville","gilcrest","gildardo-magana-los-angeles","gildardomaganalosangeles","gilford","gilita","gill","gillespie","gillett","gillette","gilman","gilmanton","gilmer","gilroy","gimli","girard","girard-estate","girardestate","girardville","girdwood","giz","gj","gjh","gjjr","gjoa-haven","gjoahaven","gk","gkl","gl","glace-bay","glacebay","glade-spring","gladespring","gladeview","gladewater","gladstone","gladwin","glandorf","glasco","glasford","glasgow","glasgow-village","glasgowvillage","glassboro","glassmanor","glassport","glastonbury","glastonbury-center","glastonburycenter","glc","gldc","gleason","gleed","glen-allen","glen-alpine","glen-avon","glen-burnie","glen-carbon","glen-cove","glen-ellyn","glen-gardner","glen-head","glen-lyon","glen-oaks","glen-raven","glen-ridge","glen-rock","glen-rose","glen-willow","glenallen","glenalpine","glenarden","glenavon","glenburnie","glencarbon","glencoe","glencove","glendale","glendale-heights","glendaleheights","glendive","glendora","gleneagle","glenellyn","glenfield-jane-heights","glenfieldjaneheights","glengardner","glenhead","glenlyon","glenmont","glenmoor","glenmora","glenmore","glenn","glenn-dale","glenn-heights","glenndale","glennheights","glenns-ferry","glennsferry","glennville","glenoaks","glenolden","glenpool","glenraven","glenridge","glenrock","glenrose","glens-falls","glens-falls-north","glensfalls","glensfallsnorth","glenshaw","glenside","glenvar-heights","glenvarheights","glenview","glenville","glenwillow","glenwood","glenwood-city","glenwood-landing","glenwood-springs","glenwoodcity","glenwoodlanding","glenwoodsprings","glidden","glide","gln","globe","gloucester","gloucester-city","gloucester-courthouse","gloucester-point","gloucestercity","gloucestercourthouse","gloucesterpoint","glouster","gloversville","gloverville","glv","glyndon","gm","gma","gmla","gn","gnadenhutten","gnd","gne","gng","gnp","go","gobernador-cruz","gobernadorcruz","gobernadores","goddard","godefroy","goderich","godfrey","godley","goffstown","golconda","gold-bar","gold-beach","gold-camp","gold-canyon","gold-hill","gold-key-lake","gold-river","goldbar","goldbeach","goldcamp","goldcanyon","golden","golden-beach","golden-gate","golden-glades","golden-grove","golden-hills","golden-meadow","golden-shores","golden-triangle","golden-valley","goldenbeach","goldendale","goldengate","goldenglades","goldengrove","goldenhills","goldenmeadow","goldenrod","goldens-bridge","goldensbridge","goldenshores","goldentriangle","goldenvalley","goldfield","goldhill","goldkeylake","goldriver","goldsboro","goldsby","goldthwaite","goleta","golf-manor","golfmanor","golfo-de-santa-clara","golfodesantaclara","goliad","gomez-farias","gomez-palacio","gomez-poniente","gomezfarias","gomezpalacio","gomezponiente","gonzales","gonzales-ortega","gonzalesortega","gonzalez","gonzalez-ortega","gonzalezortega","goochland","good-hope","goodhope","goodhue","gooding","goodings-grove","goodingsgrove","goodland","goodlettsville","goodman","goodrich","goodview","goodwater","goodwell","goodyear","goose-creek","goosecreek","gordo","gordon","gordon-heights","gordonheights","gordonsville","goreville","gorham","gorman","goros-numero-dos","gorosnumerodos","goshen","gosnell","gotha","gothenburg","gotl","goulding","goulds","gouldsboro","gouverneur","gove","gowanda","gower","gp","gpe","gpf","gpma","gpn","gpp","gps","gpw","gq","gr","grabill","graceville","graciano-sanchez","gracianosanchez","grafton","graham","grain-valley","grainvalley","grajales","grambling","gramercy","gramercy-park","gramercypark","gran-morelos","granada","granadas","granadillas-la-colonia","granadillaslacolonia","granados","granbury","granby","grand-bank","grand-bay","grand-bayou-mobile-home-park","grand-blanc","grand-boulevard","grand-canyon","grand-canyon-village","grand-centre","grand-coulee","grand-falls-windsor","grand-forks","grand-forks-air-force-base","grand-haven","grand-island","grand-isle","grand-junction","grand-ledge","grand-marais","grand-meadow","grand-mound","grand-point","grand-prairie","grand-rapids","grand-ronde","grand-saline","grand-terrace","grandbank","grandbay","grandbayoumobilehomepark","grandblanc","grandboulevard","grandcanyon","grandcanyonvillage","grandcentre","grandcoulee","grande-cache","grande-digue","grande-prairie","grandecache","grandedigue","grandeprairie","grandfallswindsor","grandforks","grandforksairforcebase","grandhaven","grandisland","grandisle","grandjunction","grandledge","grandmarais","grandmeadow","grandmound","grandpoint","grandprairie","grandrapids","grandronde","grandsaline","grandterrace","grandview","grandview-heights","grandview-plaza","grandviewheights","grandviewplaza","grandville","grandwood-park","grandwoodpark","grandyle-village","grandylevillage","granger","grangeville","granite","granite-bay","granite-city","granite-falls","granite-hills","granite-quarry","granite-shoals","granitebay","granitecity","granitefalls","granitehills","granitequarry","graniteshoals","graniteville","granjas-ampliacion-santa-rosa","granjasampliacionsantarosa","granjenal","granmorelos","grant","grant-city","grant-park","grant-valkaria","grantcity","grantham","grantley","grantpark","grants","grants-pass","grantsburg","grantspass","grantsville","grantvalkaria","grantville","granville","granville-south","granvillesouth","grape-creek","grapecreek","grapeland","grapevine","grasonville","grass-lake","grass-valley","grasslake","grassvalley","graton","gravel-ridge","gravelbourg","gravelridge","gravenhurst","gravesend","gravette","gray","gray-summit","grayling","graymoor-devondale","graymoordevondale","grays-ferry","graysferry","grayshabor","grayslake","grayson","grayson-valley","graysonvalley","graysummit","graysville","grayville","great-barrington","great-bend","great-falls","great-kills","great-neck","great-neck-estates","great-neck-gardens","great-neck-plaza","great-river","greatbarrington","greatbend","greater-grand-crossing","greater-lakeburn","greater-napanee","greater-northdale","greater-sudbury","greater-upper-marlboro","greatergrandcrossing","greaterlakeburn","greaternapanee","greaternorthdale","greatersudbury","greateruppermarlboro","greatfalls","greatkills","greatneck","greatneckestates","greatneckgardens","greatneckplaza","greatriver","greatwood","greece","greeley","green","green-acres","green-bay","green-cove-springs","green-forest","green-harbor-cedar-crest","green-haven","green-hill","green-island","green-knoll","green-lake","green-level","green-meadows","green-oaks","green-park","green-river","green-rock","green-springs","green-tree","green-valley","green-valley-farms","greenacres","greenacres-city","greenacrescity","greenback","greenbay","greenbelt","greenbriar","greenbrier","greenburgh","greenbush","greencastle","greencovesprings","greendale","greene","greene-village","greenevillage","greeneville","greenfield","greenfields","greenforest","greenharborcedarcrest","greenhaven","greenhill","greenhills","greenisland","greenknoll","greenlake","greenland","greenlawn","greenlee","greenlevel","greenmeadows","greenoaks","greenock","greenpark","greenpoint","greenport","greenport-west","greenportwest","greenriver","greenrock","greensboro","greensburg","greensprings","greenstone","greentown","greentree","greenup","greenvale","greenvalley","greenvalleyfarms","greenville","greenwich","greenwood","greenwood-coxwell","greenwood-lake","greenwood-village","greenwoodcoxwell","greenwoodlake","greenwoodvillage","greer","gregorio-mendez","gregoriomendez","gregory","greilickville","grenada","gresham","gresham-park","greshampark","gretna","greybull","gridley","griffin","griffith","grifton","griggsville","grill","grimes","grimsby","grimshaw","grimsley","grinnell","grissom-air-force-base","grissomairforcebase","gro","groesbeck","grosse-ile","grosse-pointe","grosse-pointe-farms","grosse-pointe-park","grosse-pointe-shores","grosse-pointe-woods","grosseile","grossepointe","grossepointefarms","grossepointepark","grossepointeshores","grossepointewoods","groton","grottoes","grove","grove-city","grove-hall","grove-hill","grovecity","grovehall","grovehill","groveland","groveport","grover-beach","groverbeach","groves","groveton","grovetown","groveville","gruetli-laager","gruetlilaager","grundy","grundy-center","grundycenter","grunthal","gruver","grymes-hill","grymeshill","gs","gsa","gsb","gsec","gt","gu","gua","guacamayas","guachinango","guachochi","guadalajara","guadalcazar","guadalupe","guadalupe-buenavista","guadalupe-cachi","guadalupe-calderon","guadalupe-cote","guadalupe-de-atlas","guadalupe-de-lerma","guadalupe-de-paso-blanco","guadalupe-de-rivera","guadalupe-de-tambula","guadalupe-del-monte","guadalupe-enriquez","guadalupe-etla","guadalupe-grijalva","guadalupe-hidalgo","guadalupe-libertad","guadalupe-minerva","guadalupe-morelos","guadalupe-santa-ana","guadalupe-sarabia","guadalupe-septien","guadalupe-texcalac","guadalupe-tlachco","guadalupe-totoltepec","guadalupe-victoria","guadalupe-y-calvo","guadalupe-zaragoza","guadalupebuenavista","guadalupecachi","guadalupecalderon","guadalupecote","guadalupedeatlas","guadalupedelerma","guadalupedelmonte","guadalupedepasoblanco","guadalupederivera","guadalupedetambula","guadalupeenriquez","guadalupeetla","guadalupegrijalva","guadalupehidalgo","guadalupelibertad","guadalupeminerva","guadalupemorelos","guadalupesantaana","guadalupesarabia","guadalupeseptien","guadalupetexcalac","guadalupetlachco","guadalupetotoltepec","guadalupevictoria","guadalupeycalvo","guadalupezaragoza","guam","guamuchil","guanacevi","guanajuatillo","guanajuato","guandaro","guaquitepec","guasave","guasavito","guasimas-de-belem","guasimasdebelem","guatacalca","guatimape","guayalejo","guayameo","guaymas","guaymitas","guaytalpa","guelph","guemez","guerneville","guernsey","guerrero","guerrero-negro","guerreronegro","gueydan","guildhall","guildwood","guilford","guilford-center","guilford-siding","guilfordcenter","guilfordsiding","guillermo-prieto","guillermo-zuniga","guillermoprieto","guillermozuniga","guin","guixe","gulf-breeze","gulf-gate-estates","gulf-hills","gulf-park-estates","gulf-shores","gulfbreeze","gulfgateestates","gulfhills","gulfparkestates","gulfport","gulfshores","gulivoire-park","gulivoirepark","gum","gumlog","gun-barrel-city","gunbarrel","gunbarrelcity","gunnison","gunter","guntersville","guntown","gunyo-poniente-san-jose-gunyo","gunyoponientesanjosegunyo","gurdon","gurnee","gustavo-adolfo-madero","gustavo-diaz-ordaz","gustavoadolfomadero","gustavodiazordaz","gustine","guthrie","guthrie-center","guthriecenter","gutierrez-zamora","gutierrezzamora","guttenberg","guymon","guyton","gv","gvf","gw","gwinn","gwynn-oak","gwynnoak","gyc","gypsum","gz","h1s","ha","hacienda-arriba","hacienda-blanca","hacienda-de-cabanas","hacienda-de-la-bolsa","hacienda-de-marquez","hacienda-heights","hacienda-los-fresnos","hacienda-nueva","hacienda-san-pedro","hacienda-santa-fe","hacienda-sotavento","hacienda-tecate","haciendaarriba","haciendablanca","haciendadecabanas","haciendadelabolsa","haciendademarquez","haciendaheights","haciendalacruzfraccionamiento","haciendalosfresnos","haciendanueva","haciendasanpedro","haciendasantafe","haciendasotavento","haciendatecate","hackberry","hackensack","hackettstown","hackleburg","haddington","haddon-heights","haddonfield","haddonheights","hadley","hafb","hagaman","hagerman","hagerstown","hahira","hahnville","haiku","haiku-pauwela","haikupauwela","hailey","haines","haines-city","hainescity","hainesville","halacho","halawa","halawa-heights","halawaheights","hale-center","halecenter","haledon","haleiwa","hales-corners","halescorners","halesite","haleyville","half-moon","half-moon-bay","halfmoon","halfmoonbay","halfway","halfway-house","halfwayhouse","haliburton-village","haliburtonvillage","halifax","haliimaile","hall-park","hallam","hallandale-beach","hallandalebeach","hallettsville","hallock","hallowell","hallpark","halls","hallstead","hallsville","halstead","haltom-city","haltomcity","ham-lake","hamburg","hamden","hamilton","hamilton-city","hamilton-square","hamilton-worcester","hamiltoncity","hamiltonsquare","hamiltonworcester","hamlake","hamlet","hamlin","hammond","hammonton","hampden","hampden-sydney","hampdensydney","hampolol","hampshire","hampstead","hampton","hampton-bays","hampton-beach","hampton-falls","hampton-manor","hamptonbays","hamptonbeach","hamptonfalls","hamptonmanor","hamtramck","hana","hanahan","hanamaulu","hanapepe","hanapepe-heights","hanapepeheights","hanceville","hancock","hanford","hanley-hills","hanleyhills","hanna","hanna-city","hannacity","hannahs-mill","hannahsmill","hannawa-falls","hannawafalls","hannibal","hanover","hanover-park","hanoverpark","hansen","hanson","hansville","hantsport","hapeville","happy-camp","happy-valley","happy-valley-goose-bay","happycamp","happyvalley","happyvalleygoosebay","harahan","harbison-canyon","harbisoncanyon","harbor","harbor-beach","harbor-bluffs","harbor-hills","harbor-isle","harbor-springs","harborbeach","harborbluffs","harborhills","harborisle","harborsprings","harbour-breton","harbour-heights","harbourbreton","harbourheights","harbourmainchapelscovelakeview","hardeeville","hardin","hardinsburg","hardwick","harker-heights","harkerheights","harkers-island","harkersisland","harlan","harleigh","harlem","harlem-heights","harlemheights","harleysville","harlingen","harlowton","haro","harper","harper-woods","harpersville","harperwoods","harpswell-center","harpswellcenter","harrah","harriman","harrington","harrington-park","harringtonpark","harris","harris-hill","harrisburg","harrishill","harrison","harrisonburg","harrisonville","harriston","harristown","harrisville","harrodsburg","harrogate","hart","hartford","hartford-city","hartfordcity","hartington","hartland","hartley","hartranft","hartsdale","hartselle","hartshorne","hartsville","hartville","hartwell","harvard","harvest","harvey","harveys-lake","harveyslake","harwich","harwich-center","harwich-port","harwichcenter","harwichport","harwood-heights","harwoodheights","hasbrouck-heights","hasbrouckheights","haskell","haskins","haslet","haslett","hasson-heights","hassonheights","hastings","hastings-on-hudson","hastingsonhudson","hatboro","hatch","hatfield","hattiesburg","haubstadt","haughton","hauppauge","hauterive","hauula","havana","havelock","haven","haverhill","haverstraw","haviland","havre","havre-de-grace","havre-saint-pierre","havredegrace","havresaintpierre","haw-river","hawaii","hawaii-kai","hawaiian-acres","hawaiian-beaches","hawaiian-gardens","hawaiian-ocean-view","hawaiian-paradise-park","hawaiianacres","hawaiianbeaches","hawaiiangardens","hawaiianoceanview","hawaiianparadisepark","hawaiikai","hawarden","hawesville","hawi","hawkesbury","hawkins","hawkinsville","hawl","hawley","haworth","hawriver","hawthorn-woods","hawthorne","hawthornwoods","hay-river","hayden","hayes-center","hayes-subdivision","hayescenter","hayessubdivision","hayesville","hayfield","hayfork","haymarket","haynesville","hayneville","hayriver","hays","haysville","hayti","hayward","hazard","hazardville","hazel-crest","hazel-dell","hazel-green","hazel-park","hazelcrest","hazeldell","hazelgreen","hazelpark","hazelwood","hazen","hazlehurst","hazleton","hb","hbp","hc","hcb","hcdt","hcs","hcv","hd","hda","hdc","hdd","hdg","hdj","hdlb","hdln","hdlv","hdm","hdn","hdo","hdr","hdz","he","hea","head-of-the-harbor","head-of-westport","headingley","headland","headoftheharbor","headofwestport","healdsburg","healdton","healy","hearne","hearst","heath","heathcote","heathrow","heathsville","heavener","hebbronville","heber","heber-city","heber-overgaard","heber-springs","hebercity","heberovergaard","hebersprings","hebron","hebron-estates","hebronestates","hec","hecelchakan","hector","hector-caballero","hectorcaballero","hedwig-village","hedwigvillage","heeia","heflin","heidelberg","helemano","helena","helena-valley-northeast","helena-valley-northwest","helena-valley-southeast","helena-valley-west-central","helena-west-helena","helena-west-side","helenavalleynortheast","helenavalleynorthwest","helenavalleysoutheast","helenavalleywestcentral","helenawesthelena","helenawestside","helio-garcia-alfaro","heliogarciaalfaro","hellertown","hells-kitchen","hellskitchen","helmetta","helotes","helper","hemby-bridge","hembybridge","hemet","hemlock","hemlock-farms","hemlockfarms","hemphill","hempstead","henagar","henderson","hendersonville","hendron","hennepin","hennessey","henniker","henrietta","henry","henry-farm","henry-fork","henryetta","henryfarm","henryfork","henryville","hephzibah","heppner","herald","herald-harbor","heraldharbor","herculaneum","hercules","hereford","heribertovaldezromeroelguayabo","herington","heritage-creek","heritage-hills","heritage-lake","heritage-pines","heritage-pointe","heritage-village","heritagecreek","heritagehills","heritagelake","heritagepines","heritagepointe","heritagevillage","herkimer","hermann","hermanos-cedillo","hermanoscedillo","hermantown","hermenegildo-galeana","hermenegildo-j-aldana","hermenegildogaleana","hermenegildogaleana2daseccion","hermenegildojaldana","hermiston","hermitage","hermon","hermosa-beach","hermosabeach","hermosillo","hernandez","hernando","hernando-beach","hernandobeach","herndon","heroes-de-chapultepec","heroesdechapultepec","heroica-caborca","heroica-ciudad-de-tlaxiaco","heroica-matamoros","heroica-zitacuaro","heroicacaborca","heroicaciudaddetlaxiaco","heroicamatamoros","heroicazitacuaro","herouxville","herricks","herriman","herrin","herscher","hershey","hertford","hesperia","hesston","hettinger","hewitt","hewlett","hewlett-harbor","hewlettharbor","heyburn","heyworth","hf","hg","hg2s","hga","hh","hhi","hhk","hhw","hi","hialeah","hialeah-gardens","hialeahgardens","hiawassee","hiawatha","hibbing","hickam-field","hickamfield","hickman","hickory","hickory-creek","hickory-hills","hickory-withe","hickorycreek","hickoryhills","hickorywithe","hicksville","hico","hid","hidalgo","hidalgo-amajac","hidalgo-joshil","hidalgoamajac","hidalgojoshil","hidalgotitlan","hidden-hills","hidden-meadows","hidden-spring","hidden-valley","hidden-valley-lake","hiddenhills","hiddenmeadows","hiddenspring","hiddenvalley","hiddenvalleylake","hide-a-way-lake","hideaway","hideawaylake","higganum","higginsville","high-bridge","high-level","high-park-north","high-park-swansea","high-point","high-prairie","high-ridge","high-river","high-springs","highbridge","highfield-cascade","highfieldcascade","highgrove","highland","highland-acres","highland-beach","highland-city","highland-creek","highland-falls","highland-heights","highland-lake","highland-lakes","highland-mills","highland-park","highland-springs","highland-village","highlandacres","highlandbeach","highlandcity","highlandcreek","highlandfalls","highlandheights","highlandlake","highlandlakes","highlandmills","highlandpark","highlands","highlands-baywood-park","highlands-ranch","highlandsbaywoodpark","highlandsprings","highlandsranch","highlandvillage","highlevel","highmore","highparknorth","highparkswansea","highpoint","highprairie","highridge","highriver","highspire","highsprings","hightstown","highview","highwood","higinio-olivo","higinioolivo","higuera-blanca","higuera-de-los-vega","higuera-de-zaragoza","higuerablanca","higueradelosvega","higueradezaragoza","higueras","higueras-de-abuya","higueras-de-los-natoches","higuerasdeabuya","higuerasdelosnatoches","higuerillas","higueron","hiland-park","hilandpark","hilbert","hildale","hildebran","hill","hill-air-force-base","hill-city","hill-country-village","hill-n-dale","hillairforcebase","hillandale","hillcity","hillcountryvillage","hillcrest","hillcrest-heights","hillcrest-village","hillcrestheights","hillcrestvillage","hilldale","hiller","hilliard","hillndale","hillsboro","hillsboro-beach","hillsborobeach","hillsborough","hillsdale","hillside","hillside-lake","hillsidelake","hillsmere-shores","hillsmereshores","hillsville","hilltop-lakes","hilltoplakes","hillview","hilmar-irwin","hilmarirwin","hilo","hilton","hilton-head","hilton-head-island","hiltonhead","hiltonheadisland","hinckley","hindman","hines","hinesburg","hinesville","hingham","hinsdale","hinton","hiram","his","hitchcock","hith","hj","hja","hk","hl","hlcf","hlf","hlr","hm","hmb","hmn","hms","hn","hnd","ho","ho-ho-kus","hoback","hobart","hobbs","hobe-sound","hobesound","hoboken","hocaba","hockessin","hockinson","hoctun","hodgdon","hodgenville","hodgkins","hoffman-estates","hoffmanestates","hogansville","hoh","hohenwald","hohokus","hoisington","hokendauqua","hokes-bluff","hokesbluff","holbrook","holca","holcomb","holden","holden-heights","holdenheights","holdenville","holderness","holdrege","holgate","holiday","holiday-city-berkeley","holiday-city-south","holiday-heights","holiday-island","holiday-lakes","holiday-shores","holiday-valley","holidaycityberkeley","holidaycitysouth","holidayheights","holidayisland","holidaylakes","holidayshores","holidayvalley","holladay","holland","hollandale","holley","holliday","hollidaysburg","hollins","hollis","hollis-center","holliscenter","hollister","holliston","holloman-air-force-base","hollomanairforcebase","holly","holly-hill","holly-hills","holly-lake-ranch","holly-ridge","holly-springs","hollyhill","hollyhills","hollylakeranch","hollymead","hollyridge","hollysprings","hollywood","hollywood-park","hollywoodpark","holmen","holmes-beach","holmesbeach","holmesburg","holstein","holt","holton","holts-summit","holtssummit","holtsville","holtville","holualoa","holyoke","home","home-garden","home-gardens","homeacre-lyndora","homeacrelyndora","homedale","homegarden","homegardens","homeland","homeland-park","homelandpark","homer","homer-city","homer-glen","homercity","homerglen","homerville","homestead","homestead-meadows-north","homestead-meadows-south","homesteadmeadowsnorth","homesteadmeadowssouth","hometown","homewood","hominy","homosassa","homosassa-springs","homosassasprings","homun","honaker","honalo","honaunau-napoopoo","honaunaunapoopoo","hondo","honea-path","honeapath","honeoye-falls","honeoyefalls","honesdale","honey","honey-brook","honey-grove","honeybrook","honeygrove","honeyville","honokaa","honolulu","hood-river","hoodriver","hooker","hooks","hooksett","hool","hoolehua","hooper","hooper-bay","hooperbay","hoopers-creek","hooperscreek","hoopeston","hoosick-falls","hoosickfalls","hoover","hooverson-heights","hooversonheights","hopatcong","hopatcong-hills","hopatconghills","hope","hope-mills","hope-valley","hopedale","hopelchen","hopemills","hopevalley","hopewell","hopkins","hopkinsville","hopkinton","hopwood","hoquiam","horace","horatio","horcasitas","horicon","horizon-city","horizon-west","horizoncity","horizonwest","hormiguero","horn-lake","hornby-island","hornbyisland","hornell","hornepayne","hornitos","hornlake","hornsby-bend","hornsbybend","horse-cave","horse-pasture","horse-shoe","horsecave","horseheads","horseheads-north","horseheadsnorth","horsepasture","horseshoe","horseshoe-bay","horseshoe-bend","horseshoebay","horseshoebend","horsham","horton","hortonville","hoschton","hostotipaquillo","hot-springs","hot-springs-village","hot-sulphur-springs","hoth","hotsprings","hotspringsvillage","hotsulphursprings","houck","hough","houghton","houghton-lake","houghtonlake","houlton","houma","housatonic","houserville","houston","hov","how","howard","howard-beach","howard-city","howard-lake","howardbeach","howardcity","howardlake","howards-grove","howardsgrove","howe","howell","howey-in-the-hills","howeyinthehills","howland","howland-center","howland-island","howlandcenter","howlandisland","hoxie","hoyadecintoralahoyadearriba","hoyt-lakes","hoytlakes","hp","hpn","hpp","hps","hr","hs","hsf","hsm","hsmf","hsp","hss","hsv","ht","htc","huacapa-y-amestoy","huacapayamestoy","huachichil","huachinantla","huachinera","huachuca-city","huachucacity","huahuaxtla","huajicori","huajimic","huajintepec","huajintlan","huajoyuca","huajumbaro","hualahuises","hualcaltzinco","hualula","huamantla","huamuchapa","huamuchil","huamuxtitlan","huancito","huandacareo","huanguitio","huanimaro","huaniqueo-de-morales","huaniqueodemorales","huanusco","huapacal-1ra-seccion","huapacal1raseccion","huapacal2daseccionpuntabrava","huapinol","huaquechula","huasabas","huasca-de-ocampo","huascadeocampo","huascato","huatabampo","huatecalco","huatlatlauca","huatusco","huauchinango","huautepec","huautla","huautla-de-jimenez","huautladejimenez","huaxcaleca","huaxtla","huay-max","huay-pix","huayacanes","huayacocotla","huaymax","huaypix","huazantlan-del-rio","huazantlandelrio","huazulco","huazuntlan","hubbard","hubbard-lake","hubbardlake","hubbardston","huber-heights","huber-ridge","huberheights","huberridge","hudson","hudson-bay","hudson-bend","hudson-falls","hudson-lake","hudson-oaks","hudsonbay","hudsonbend","hudsonfalls","hudsonlake","hudsonoaks","hudsonville","huecahuasco","huehuetan","huehuetla","huehuetlan","huehuetlan-el-chico","huehuetlanelchico","huehuetoca","huejonapan","huejotitan","huejotzingo","huejucar","huejuquilla-el-alto","huejuquillaelalto","huejutla-de-reyes","huejutladereyes","huelo","huemetla","huepac","huepaco","huepalcalco-san-miguel","huepalcalcosanmiguel","huetamo-de-nunez","huetamodenunez","huexotitla","hueyapa","hueyapan","hueyapan-de-ocampo","hueyapandeocampo","hueycantenango","hueyitlalpan","hueyotlipan","hueypoxtla","hueytamalco","hueytepec","hueytlalpan","hueytown","hughes","hughes-springs","hughessprings","hughestown","hughesville","hughson","hugo","hugoton","huguenot","huguley","huhi","huichapan","huichihuayan","huilacapixtla","huilango","huiloapan","huiloapan-de-cuauhtemoc","huiloapandecuauhtemoc","huimanguillo","huimilpan","huiramba","huitchila","huitel","huitepec","huitiupan","huitron","huitzatarito","huitzila","huitzilac","huitzilan","huitzililla","huitziltepec","huitzitzilingo","huitzmaloc","huitzoltepec","huixcolotla","huixquilucan","huixquilucan-de-degollado","huixquilucandedegollado","huixtan","huixtepec","huixtla","huizachal","hull","humansville","humber-heights-westmount","humber-summit","humberheightswestmount","humbermede","humbersummit","humble","humboldt","humboldt-hill","humboldthill","humewood-cedarvale","humewoodcedarvale","hummels-wharf","hummelstown","hummelswharf","hunt-valley","hunter","hunters-creek","hunters-creek-village","hunterscreek","hunterscreekvillage","huntersville","huntertown","hunting-park","huntingburg","huntingdon","huntingpark","huntington","huntington-bay","huntington-beach","huntington-park","huntington-station","huntington-woods","huntingtonbay","huntingtonbeach","huntingtonpark","huntingtonstation","huntingtonwoods","huntingtown","huntingtown-town-center","huntingtowntowncenter","huntley","hunts-point","huntspoint","huntsville","huntvalley","hunucma","hunuku","hurley","hurlock","huron","huron-east","huroneast","hurricane","hurst","hurstbourne","hurstbourne-acres","hurstbourneacres","hurt","hustisford","hutchins","hutchinson","hutchinson-island-south","hutchinsonislandsouth","hutto","huxley","hv","hvgb","hvl","hvn","hvs","hvwc","hw","hwh","hws","hya","hyannis","hyattsville","hybla-valley","hyblavalley","hyde","hyde-park","hyden","hydepark","hydesville","hypoluxo","hyrum","hysham","hz","ia","iac","iaga","iagb","ib","ibarra","ibarrilla","ic","icard","iccw","ichan","icxotitla","id","ida-grove","idabel","idagrove","idaho","idaho-city","idaho-falls","idaho-springs","idahocity","idahofalls","idahosprings","idalou","idb","idc","idj","idlc","idlh","idli","idll","idlm","idlr","idls","idm","ido","idr","ids","idyllwild","idyllwild-pine-cove","idyllwildpinecove","idylwood","ie","iec","if","ifh","ig","igg","igh","igloolik","ignacio-allende","ignacio-allende-concepcion","ignacio-de-la-llave","ignacio-gutierrez-gomez","ignacio-lopez-rayon","ignacio-manuel-altamirano","ignacio-perez","ignacio-ramirez","ignacio-zaragoza","ignacio-zaragoza-1ra-seccion","ignacio-zaragoza-el-morro","ignacioallende","ignacioallendeconcepcion","ignaciodelallave","ignaciogutierrezgomez","ignaciolopezrayon","ignaciomanuelaltamirano","ignacioperez","ignacioramirez","ignaciozaragoza","ignaciozaragoza1raseccion","ignaciozaragozaelmorro","iguala-de-la-independencia","igualadelaindependencia","igualapa","ih","ihb","ihcs","ihn","ihp","ihs","ihuatzio","il","ilamatlan","ilchester","ile-des-chenes","iledeschenes","iliatenco","ilion","ill","illescas","illinois","ilr","im","ima","imdi","iml","imlay-city","imlaycity","immokalee","imperial","imperial-beach","imperialbeach","imuris","in","ina","incline-village","inclinevillage","indaparapeo","inde","independence","independencia","independent-hill","independenthill","india-hook","indiahook","indialantic","indian-harbour-beach","indian-head","indian-head-park","indian-heights","indian-hills","indian-hills-cherokee-section","indian-mountain-lake","indian-river","indian-river-estates","indian-river-shores","indian-rocks-beach","indian-shores","indian-springs","indian-springs-village","indian-trail","indian-wells","indiana","indianapolis","indianharbourbeach","indianhead","indianheadpark","indianheights","indianhills","indianhillscherokeesection","indianmountainlake","indianola","indianriver","indianriverestates","indianrivershores","indianrocksbeach","indianshores","indiansprings","indianspringsvillage","indiantown","indiantrail","indianwells","indio","industry","inez","ingalls","ingalls-park","ingallspark","ingersoll","ingleside","inglewood","inglewood-finn-hill","inglewoodfinnhill","inglis","ingram","inkerman","inkster","inman","inman-mills","inmanmills","innisfil","inniswold","inola","intercourse","interlachen","interlaken","international-falls","internationalfalls","inuvik","inver-grove-heights","invergroveheights","invermere","inverness","inverness-highlands-north","inverness-highlands-south","invernesshighlandsnorth","invernesshighlandssouth","inwood","inyo","inyokern","ioh","iola","ion","iona","ione","ionia","ionview","iop","iota","iow","iowa","iowa-city","iowa-colony","iowa-falls","iowa-park","iowacity","iowacolony","iowafalls","iowapark","ip","ipalapa","ipc","ipswich","iqaluit","iquinuapa","ir","iraan","iramuco","irapeo","irapuato","iratzio","irb","ire","irimbo","irmo","irolo","iron-mountain","iron-river","irondale","irondequoit","ironmountain","ironriver","ironton","ironville","ironwood","iroquois-falls","iroquois-point","iroquoisfalls","iroquoispoint","irricana","irrigon","irs","irvine","irvinehealthandsciencecomplex","irving","irving-park","irvingpark","irvington","irwin","irwindale","irwinton","is","isaacarriagasantaanamancera","isanti","iselin","ishpeming","isla","isla-aguada","isla-del-bosque","isla-holbox","isla-mujeres","isla-soyaltepec","isla-vista","islaaguada","isladelbosque","islaholbox","islamorada","islamujeres","island","island-city","island-heights","island-lake","island-park","island-walk","islandcity","islandheights","islandia","islandlake","islandpark","islandwalk","islas-agrarias-grupo-a","islas-agrarias-grupo-b","islasagrariasgrupoa","islasagrariasgrupob","islasoyaltepec","islavista","isle-of-hope","isle-of-normandy","isle-of-palms","isle-of-wight","isleofhope","isleofnormandy","isleofpalms","isleofwight","islington-city-centre-west","islingtoncitycentrewest","islip","islip-terrace","islipterrace","islita","issaquah","istaro","isv","it","italy","itasca","ithaca","itta-bena","ittabena","iturbide","itzamatitlan","itzoteno","iuka","iv","iva","ivanhoe","ives-estates","ivesestates","ivins","ivyland","iw","iwilei-anuenue","iwileianuenue","ixcamilpa","ixcapa","ixcapantla","ixcapuzalco","ixcateopan","ixcateopan-de-cuauhtemoc","ixcateopandecuauhtemoc","ixcatepec","ixcatla","ixcatlan","ixcuinquitlapilco","ixhuacan-de-los-reyes","ixhuacandelosreyes","ixhuapan","ixhuatan","ixhuatlan-de-madero","ixhuatlan-del-cafe","ixhuatlan-del-sureste","ixhuatlancillo","ixhuatlandelcafe","ixhuatlandelsureste","ixhuatlandemadero","ixil","ixmiquilpan","ixonia","ixpantepec-nieves","ixpantepecnieves","ixpila","ixtacamaxtitlan","ixtacapa-el-chico","ixtacapaelchico","ixtacomitan","ixtaczoquitlan","ixtahuiata-la-legua","ixtahuiatalalegua","ixtapa","ixtapa-zihuatanejo","ixtapaluca","ixtapan-de-la-concepcion","ixtapan-de-la-sal","ixtapan-del-oro","ixtapandelaconcepcion","ixtapandelasal","ixtapandeloro","ixtapangajoya","ixtapantongo","ixtapazihuatanejo","ixtenco","ixtepec","ixticpan","ixtlahuaca","ixtlahuaca-barrio","ixtlahuaca-de-cuauhtemoc","ixtlahuaca-de-rayon","ixtlahuacabarrio","ixtlahuacadecuauhtemoc","ixtlahuacaderayon","ixtlahuacan","ixtlahuacan-de-los-membrillos","ixtlahuacan-del-rio","ixtlahuacandelosmembrillos","ixtlahuacandelrio","ixtlan-de-juarez","ixtlan-de-los-hervores","ixtlan-del-rio","ixtlandejuarez","ixtlandeloshervores","ixtlandelrio","ixtlilco-el-chico","ixtlilcoelchico","ixtolco-de-morelos","ixtolcodemorelos","iz","iz1s","izamal","izem","izotepec","iztacalco","iztacapa","iztapalapa","izucar-de-matamoros","izucardematamoros","j-jesus-diaz-tzirio","j2s","ja","jaboncillo","jacala","jacarandas","jacinto-city","jacintocity","jack","jackpot","jacksboro","jackson","jackson-center","jackson-heights","jacksoncenter","jacksonheights","jacksonville","jacksonville-beach","jacksonvillebeach","jacksonwald","jacobus","jacona-de-plancarte","jaconadeplancarte","jaet","jaffrey","jaguey-blanco","jagueyblanco","jagueydetellezestaciontellez","jal","jala","jalacingo","jalapa","jalapilla","jalapita","jalcocotan","jalcomulco","jaleaca-de-catalan","jaleacadecatalan","jalipa","jalisco","jalmolonga-la-hacienda","jalmolongalahacienda","jalostotitlan","jalpa","jalpa-de-los-banos","jalpa-de-mendez","jalpadelosbanos","jalpademendez","jalpan","jalpilla","jaltenango-de-la-paz","jaltenangodelapaz","jaltenco","jaltepec","jaltepec-de-candayoc","jaltepecdecandayoc","jaltepetongo","jaltiche-de-arriba","jaltichedearriba","jaltipan-de-morelos","jaltipandemorelos","jaltocan","jaltomate","jaluco","jalupa","jamaica","jamaica-beach","jamaica-plain","jamaicabeach","jamaicaplain","jamapa","jamay","james-city","james-island","jamesburg","jamescity","jamesisland","jamesport","jamestown","jamestown-west","jamestownwest","jamiltepec","jamul","jan-phyl-village","janambo","janamuato","janesville","janitzio","janos","janphylvillage","jantetelco","jaracuaro","jaral-del-progreso","jaraldelprogreso","jarales","jardines-de-la-silla","jardines-de-san-sebastian","jardines-del-eden","jardines-del-grijalva","jardinesdelasilla","jardinesdeleden","jardinesdelgrijalva","jardinesdesansebastian","jarillas","jaripeo","jarrell","jarrettsville","jarvis","jarvis-island","jarvisisland","jasmine-estates","jasmineestates","jasonville","jasper","jasper-park-lodge","jasperparklodge","jauja","jaula-de-abajo","jauladeabajo","jaumave","jauregui","javier-rojo-gomez","javierrojogomez","jay","jayton","jb","jbdc","jblm","jc","jd","jda","jdc","jde","jdf","jdg","jdgs","jdj","jdlb","jdld","jdlg","jdlp","jdls","jdm","jdme","jdp","jdss","jdt","jdz","je","jean-lafitte","jeanerette","jeanlafitte","jeannette","jeb","jec","jecopaco","jefferson","jefferson-city","jefferson-heights","jefferson-hills","jefferson-valley-yorktown","jeffersoncity","jeffersonheights","jeffersonhills","jeffersontown","jeffersonvalleyyorktown","jeffersonville","jeffries-point","jeffriespoint","jeg","jellico","jemez-pueblo","jemezpueblo","jemison","jena","jenison","jenkins","jenkintown","jenks","jennings","jennings-lodge","jenningslodge","jensen-beach","jensenbeach","jerecuaro","jerez-de-garcia-salinas","jerezdegarciasalinas","jericho","jerico","jermyn","jerome","jersey-city","jersey-shore","jersey-village","jerseycity","jerseyshore","jerseyvillage","jerseyville","jerusalen","jessup","jesup","jesus-carranza","jesus-carranza-rancho-de-jesus","jesus-del-monte","jesus-gomez-portugal","jesus-huitznahuac","jesus-maria","jesus-maria-garza","jesus-nazareno","jesus-tepactepec","jesuscarranza","jesuscarranzaranchodejesus","jesusdelmonte","jesusgomezportugal","jesusgomezportugalmargaritas","jesushuitznahuac","jesusmaria","jesusmariagarza","jesusnazareno","jesustepactepec","jetmore","jewell","jewett","jewett-city","jewettcity","jfg","jg","jgp","jgpm","jgr","jh","ji","jicaltepec-autopan","jicaltepec-cuexcontitlan","jicaltepecautopan","jicaltepeccuexcontitlan","jicamas","jicarero","jicayan-de-tovar","jicayandetovar","jicolapa","jilotepec","jilotepec-de-molina-enriquez","jilotepecdemolinaenriquez","jilotlan-de-los-dolores","jilotlandelosdolores","jilotzingo","jim-thorpe","jimenez","jimenez-del-teul","jimenezdelteul","jimthorpe","jiquilpan","jiquilpan-de-juarez","jiquilpan-estacion-bonanza","jiquilpandejuarez","jiquilpanestacionbonanza","jiquipilas","jiquipilco","jitonhueca","jitotol","jitzamuri","jiutepec","jjc","jjdt","jjesusdiaztzirio","jjesusgonzalezortegasanmateo","jjr","jl","jlh","jlt","jm","jmg","jmgm","jmj","jmm","jmps","jn","jnm","jnr","joachin","joanna","joaquin-herrera","joaquin-miguel-gutierrez","joaquinherrera","joaquinmiguelgutierrez","joconoxtle-la-tuna","joconoxtlelatuna","jocoqui","jocotepec","jocotitlan","jofrito","john-day","johnday","johns-creek","johnsburg","johnscreek","johnson","johnson-city","johnson-creek","johnson-lane","johnsonburg","johnsoncity","johnsoncreek","johnsonlane","johnsonville","johnston","johnston-atoll","johnston-city","johnstonatoll","johnstoncity","johnstonville","johnstown","joint-base-lewis-mcchord","joint-base-pearl-harbor-hickam","jointbaselewismcchord","jointbasepearlharborhickam","jojutla","jolalpan","joliet","joliette","jolivue","jolja","jollyville","jolochero-2da-seccion","jolochero2daseccion","jolotichan","jolsibaquil","joltealal","jomanichim","jomulco","jonacapa","jonacatepec","jones","jones-creek","jonesboro","jonesborough","jonescreek","jonesport","jonestown","jonesville","jonotla","jonquiere","jonuta","jopala","joplin","joppatowne","joquicingo","jordan","jorge-jimenez-cantu","jorgejimenezcantu","jorobas","jose-cardel","jose-colomo","jose-esteban-coronado","jose-f-gutierrez","jose-guadalupe-rodriguez","jose-maria-morelos","jose-maria-morelos-la-yegueria","jose-maria-morelos-san-jose","jose-maria-morelos-y-pavon","jose-maria-pino-suarez","jose-mariano-jimenez","jose-narciso-rovirosa","jose-refugio-salcido","josecardel","josecolomo","joseestebancoronado","josefgutierrez","joseguadaluperodriguez","josemariamorelos","josemariamoreloslayegueria","josemariamorelossanjose","josemariamorelossantamonica","josemariamorelosypavon","josemarianojimenez","josemariapinosuarez","josenarcisorovirosa","joseph","joseph-city","josephcity","josephine","joserefugiosalcido","joshil","joshua","joshua-tree","joshuatree","jourdanton","jp","jpl","jpv","jr","jrc","jrg","jrs","js","jt","juamave","juan-aldama","juan-aldama-el-tigre","juan-de-la-granja","juan-del-grijalva","juan-diaz-covarrubias","juan-e-garcia","juan-escutia-borbollon","juan-gil-preciado","juan-jose-rios","juan-martin","juan-morales","juan-n-mendez","juan-rodriguez-clara","juan-sarabia","juanacatlan","juanaldama","juanaldamaeltigre","juandelagranja","juandelgrijalva","juandiazcovarrubias","juanegarcia","juanescutiaborbollon","juangilpreciado","juanjoserios","juanmarcossanjosebuenavista","juanmartin","juanmorales","juannmendez","juanrodriguezclara","juansarabia","juarez","juarez-coronaco","juarezcoronaco","juchipila","juchique-de-ferrer","juchiquedeferrer","juchitan","juchitan-de-zaragoza","juchitandezaragoza","juchitepec","juchitlan","jucutacato","judson","judsonia","julesburg","julian","julian-blanco-dos-caminos","julian-grajales","julian-villagran","julianblancodoscaminos","juliangrajales","julianvillagran","julimes","jumiltepec","junction","junction-area","junction-city","junctionarea","junctioncity","june-park","juneau","junepark","jungapeo-de-juarez","jungapeodejuarez","juniata-park","juniatapark","juno-beach","junobeach","jupiter","jurare","juriquilla","jurupa-valley","jurupavalley","justice","justin","justo-sierra","justosierra","juventino-rosas","juventinorosas","jv","jvy","jw","k-i-sawyer-air-force-base","k3","k4","ka","kaaawa","kaanapali","kaanapali-landing","kaanapalilanding","kachina-village","kachinavillage","kadoka","kahaluu","kahaluu-keauhou","kahaluukeauhou","kahoka","kahuku","kahului","kaibito","kailua","kailua-kona","kailua-town","kailuakona","kailuatown","kaimuki","kalaheo","kalaheo-hillside","kalaheohillside","kalama","kalama-valley","kalamavalley","kalamazoo","kalanipuu","kalaoa","kalida","kalifornsky","kalihi-palama","kalihi-valley","kalihipalama","kalihivalley","kalispell","kalkaska","kalona","kamas","kamehameha-heights","kamehamehaheights","kamiah","kamloops","kamsack","kanab","kanasin","kanata","kancab","kancabchen","kane","kaneohe","kankakee","kannapolis","kansas","kansas-city","kansascity","kantunil","kantunilkin","kanxoc","kapaa","kapaau","kaplan","kapolei","kapuskasing","karnes-city","karnescity","kaser","kasson","kathleen","katonah","katy","kaua","kaufman","kaukauna","kaumakani-hanapepe","kaumakanihanapepe","kaunakakai","kawailoa","kayenta","kaysville","kb","kbb","kc","kdh","ke","keaau","kealakekua","keansburg","kearney","kearney-park","kearneypark","kearns","kearny","kechi","keedysville","keego-harbor","keegoharbor","keeler-farm","keelerfarm","keelesdale-eglinton-west","keelesdaleeglintonwest","keene","keenesburg","keeseville","keewatin","keizer","kekaha","kekaha-waimea","kekahawaimea","keller","kellogg","kellyville","kelowna","kelseyville","kelso","kemah","kemmerer","kemp","kemp-mill","kempmill","kempner","ken-caryl","kenai","kenansville","kenbridge","kencaryl","kendale-lakes","kendalelakes","kendall","kendall-green","kendall-park","kendall-square","kendall-west","kendallgreen","kendallpark","kendallsquare","kendallville","kendallwest","kenduskeag","kenedy","kenhorst","kenilworth","kenly","kenmar","kenmare","kenmore","kennebec","kennebunk","kennebunkport","kennedale","kennedy","kennedy-park","kennedypark","kenner","kennesaw","kenneth-city","kennethcity","kennett","kennett-square","kennettsquare","kennewick","kenora","kenosha","kenosha-streetcar","kenoshastreetcar","kenova","kensett","kensington","kensington-chinatown","kensington-park","kensingtonchinatown","kensingtonpark","kent","kent-acres","kent-city","kentacres","kentcity","kentfield","kentland","kenton","kentucky","kentville","kentwood","kenvil","kenwood","kenyon","keokea","keokuk","keolu-hills","keoluhills","keosauqua","kerens","kerhonkson","kerman","kermit","kern","kernersville","kernville","kerrobert","kerrville","kersey","kershaw","keshena","keswick","keswick-ridge","keswickridge","ketchikan","ketchum","kettering","kettle-falls","kettlefalls","kettleman-city","kettlemancity","keuka-park","keukapark","kew","kew-gardens","kew-gardens-hills","kewanee","kewaskum","kewaunee","kewgardens","kewgardenshills","key-biscayne","key-center","key-largo","key-vista","key-west","keybiscayne","keycenter","keyes","keylargo","keyport","keyser","keystone","keystone-heights","keystoneheights","keytesville","keyvista","keywest","kf","kg","kgh","kh","ki","kiantone","kiawah-island","kiawahisland","kiefer","kiel","kihei","kihei-mauka","kiheimauka","kilauea","kildeer","kilgore","kill-devil-hills","killam","killarney","killdeer","killdevilhills","killeen","killian","killingly-center","killinglycenter","killingworth","kilmanagh","kilmarnock","kiln","kilometro-30","kilometro-40","kilometro-noventa-y-nueve","kilometro30","kilometro40","kilometronoventaynueve","kimball","kimberley","kimberling-city","kimberlingcity","kimberly","kimbila","kincaid","kincardine","kinchil","kinder","kinderhook","kindersley","king","king-and-queen-court-house","king-city","king-cove","king-george","king-of-prussia","king-william","kingandqueencourthouse","kingcity","kingcove","kingfield","kingfisher","kinggeorge","kingman","kingman-reef","kingmanreef","kingofprussia","kings","kings-bay-base","kings-beach","kings-bridge","kings-grant","kings-mills","kings-mountain","kings-park","kings-park-west","kings-point","kingsbaybase","kingsbeach","kingsbridge","kingsburg","kingsbury","kingsessing","kingsey-falls","kingseyfalls","kingsford","kingsford-heights","kingsfordheights","kingsgate","kingsgrant","kingsland","kingsley","kingsmills","kingsmountain","kingspark","kingsparkwest","kingspoint","kingsport","kingston","kingston-estates","kingston-springs","kingstonestates","kingstonsprings","kingstown","kingstree","kingsview-village-the-westway","kingsviewvillagethewestway","kingsville","kingsway-south","kingswaysouth","kingwilliam","kingwood","kini","kinil","kinnelon","kinsey","kinsley","kinston","kiowa","kirby","kirbyville","kirkland","kirkland-lake","kirklandlake","kirksville","kirkville","kirkwood","kirtland","kiryas-joel","kiryasjoel","kisawyerairforcebase","kissee-mills","kisseemills","kissimmee","kitchener","kitimat","kitsap","kittanning","kittery","kittery-point","kitterypoint","kittitas","kittredge","kitty-hawk","kittyhawk","kj","kk","kki","kl","klahanie","klamath","klamath-falls","klamathfalls","km","kn","knightdale","knightsen","knightstown","knik-fairview","knikfairview","knob-noster","knobnoster","knollwood","knottsville","knox","knox-city","knoxcity","knoxville","knyn","ko","ko-olina","kochol","kodiak","kodiak-station","kodiakstation","kohler","kokomo","koloa","koloa-poipu","koloapoipu","komchen","konawa","koolauloa","koolina","koontz-lake","koontzlake","kop","kopoma","koreatown","kosciusko","kotolte","kotzebue","kountze","kouts","kp","kpw","kr","krebs","kremmling","kronenwetter","krotz-springs","krotzsprings","krugerville","krum","ks","kt","kuakini","kualapuu","kugluktuk","kula","kuliouou","kuliouou-kalani-iki","kuliououkalaniiki","kulpmont","kulpsville","kuna","kure-beach","kurebeach","kurtistown","kutztown","kv","kvtw","kw","ky","kyle","l1s","la","la-alameda","la-aldea","la-amistad","la-angostura","la-ascension","la-aurora","la-azozuca","la-ballena","la-barca","la-barra-de-colotepec","la-barreta","la-blanca","la-bocana","la-boveda","la-brecha","la-broquerie","la-cabecera","la-cabecera-concepcion","la-caja","la-calera","la-calera-nacimientos","la-calle","la-camelia","la-campanilla","la-canada","la-canada-flintridge","la-candelaria","la-candelaria-teotlalpan","la-candelaria-tlapala","la-cantera","la-capilla","la-caridad","la-ceiba","la-ceja","la-center","la-central","la-cerquilla","la-chinantla","la-cienega","la-cieneguita","la-ciudad","la-colonia","la-colonia-guadalupe","la-colorada","la-compania","la-competencia","la-comunidad","la-concepcion","la-concepcion-de-hidalgo","la-concepcion-de-los-banos","la-concepcion-enyege","la-concepcion-la-concha","la-concepcion-xochicuautla","la-conception","la-concha","la-concha-la-concepcion","la-concordia","la-constitucion","la-constitucion-toltepec","la-corregidora","la-coste","la-crescent","la-crescenta-montrose","la-croft","la-crosse","la-cruz","la-cruz-de-loreto","la-cruz-del-palmar","la-cruz-y-carrizal","la-cuesta","la-cuevita","la-curva","la-cygne","la-d","la-defensa","la-despensa","la-dicha","la-encarnacion","la-ermita","la-ermita-nueva-jerusalen","la-erradura","la-escalera","la-escondida","la-esmeralda","la-esperanza","la-esperanza-el-zapotal","la-esquina","la-estacada","la-estacion","la-estancia","la-estancia-de-amezcua","la-estanzuela","la-estrella","la-fe","la-feria","la-finca","la-flor","la-floresta","la-florida","la-fortuna","la-fuente","la-fundicion-quinta-manzana","la-galarza","la-garita","la-gavia","la-gloria","la-glorieta","la-goleta","la-goma","la-gotera","la-grande","la-grandeza","la-grange","la-grange-park","la-griega","la-grulla","la-guadalupana","la-guadalupe","la-guadeloupe","la-guasima","la-habra","la-habra-heights","la-harpe","la-haute-saint-charles","la-herradura","la-higuera","la-higuerilla-los-lirios","la-homa","la-horqueta-poblado-doce","la-huacana","la-huanica","la-huerta","la-humedad","la-iberica-la-gotera","la-independencia","la-independencia-las-pilas","la-isla","la-isla-de-chapachapa","la-isla-kilometro-10","la-isla-km-10","la-jolla","la-joya","la-joya-de-calvillo","la-junta","la-labor","la-laborcita","la-laguna","la-laguna-y-monte-del-castillo","la-lagunilla","la-laja","la-libertad","la-lima","la-linea","la-lira","la-llave","la-lobera","la-loma","la-loma-cuexcontitlan","la-loma-de-los-negritos","la-loma-la-loma-de-quila","la-lucha","la-luz","la-luz-de-juarez","la-magdalena","la-magdalena-chichicaspa","la-magdalena-tenexpan","la-magdalena-tetela-morelos","la-magdalena-tlaltelulco","la-magdalena-yancuitlalpan","la-malbaie","la-manga-2da-seccion-el-jobal","la-manzanilla","la-manzanilla-de-la-paz","la-marque","la-mesa","la-mesa-de-chosto","la-mesa-de-los-conejos","la-mesa-la-mesa-de-cedano","la-mesilla","la-mezquitera","la-mina","la-minerve","la-mintzita-piedra-dura","la-mira","la-mirada","la-mision","la-mohonera","la-mojonera","la-moncada","la-monja","la-monte","la-negreta","la-noria","la-noria-de-san-antonio","la-norita","la-nueva-era","la-nueva-victoria","la-ordena","la-orduna","la-orilla","la-ortiga","la-pahua","la-palma","la-palma-las-palmas","la-palmilla","la-palmita-y-anexos-la-presita","la-paloma","la-panadera","la-partida","la-pastoria","la-patria","la-paz","la-paz-de-ordaz","la-pe","la-pedrera","la-pendencia","la-peninsula","la-penita-de-jaltomba","la-perla","la-pesca","la-piedad","la-pila","la-pimienta","la-pine","la-pinta","la-placita-de-morelos","la-planada","la-planada-el-arenal","la-plata","la-playa","la-plaza-del-limon","la-pocatiere","la-popular","la-porte","la-porte-city","la-pradera","la-prairie","la-presa","la-presita","la-presita-segundo-cuartel","la-presumida","la-primavera","la-providencia","la-providencia-siglo-xxi","la-pryor","la-puebla","la-puente","la-puerta-del-pilar","la-punta","la-purificacion","la-purisima","la-quemada","la-quinta","la-reforma","la-resolana","la-resurreccion","la-ribera","la-rinconada","la-rinconoda","la-rivera","la-riviera","la-roca","la-ronge","la-rosa","la-sabana","la-sabinita","la-sala-la-caliente","la-salle","la-sardina","la-sarre","la-sauceda","la-selva","la-selva-beach","la-sidra","la-solana","la-soledad","la-soledad-barrio","la-sombra","la-subida","la-tabaquera","la-tesorera","la-tigrilla","la-tijera","la-tinaja","la-toma","la-tortuga","la-trinidad","la-trinidad-chautenco","la-trinidad-chimalpa","la-trinidad-tenexyecac","la-trinidad-tianguismanalco","la-trinitaria","la-tuque","la-unidad-huitzizilapan","la-union","la-union-del-cuatro","la-union-ejido-mexcaltepec","la-union-paso-largo","la-vale","la-valla","la-vega","la-venta","la-venta-del-astillero","la-ventilla","la-ventosa","la-vergne","la-verne","la-vernia","la-versolilla","la-victoria","la-victoria-la-penita","la-villa","la-vista","la-y","la-yesca","la-zacatecana","laalameda","laaldea","laamistad","laangostura","laascension","laaurora","laazozuca","labadieville","laballena","labarca","labarque-creek","labarquecreek","labarradecolotepec","labarreta","labelle","lablanca","labocana","labor-de-peralta","labordeperalta","laboveda","labrador-city","labradorcity","labrecha","labroquerie","lac-alouette","lac-brome","lac-connelly","lac-des-aigles","lac-du-bonnet","lac-du-flambeau","lac-la-biche","lac-lapierre","lac-megantic","lac-simon","lacabecera","lacabeceraconcepcion","lacaja","lacalera","lacaleranacimientos","lacalle","lacalouette","lacamelia","lacampanilla","lacanada","lacanadaflintridge","lacandelaria","lacandelariateotlalpan","lacandelariatlapala","lacandon","lacantera","lacapan-camallagne","lacapancamallagne","lacapilla","lacaridad","lacbrome","lacconnelly","lacdesaigles","lacdubonnet","lacduflambeau","laceiba","laceja","lacenter","lacentral","lacerquilla","lacey","lachinantla","lachute","lacienega","lacieneguita","laciudad","lackawanna","lackland-air-force-base","lacklandairforcebase","laclabiche","laclapierre","lacmegantic","lacolle","lacolonia","lacoloniaguadalupe","lacolorada","lacombe","lacompania","lacompetencia","lacomunidad","lacon","laconcepcion","laconcepcioncoatipaclaconchita","laconcepciondehidalgo","laconcepciondelosbanos","laconcepcionenyege","laconcepcionlaconcha","laconcepcionxochicuautla","laconception","laconcha","laconchalaconcepcion","laconcordia","laconia","laconstitucion","laconstituciontoltepec","lacoochee","lacorregidora","lacoste","lacrescent","lacrescentamontrose","lacroft","lacrosse","lacruz","lacruzdeloreto","lacruzdelpalmar","lacruzycarrizal","lacsimon","lacuchillaextramurosdetesistan","lacuesta","lacuevita","lacurva","lacy-lakeview","lacygne","lacylakeview","lad","ladd","ladefensa","ladera","ladera-heights","ladera-ranch","laderaheights","laderaranch","ladespensa","ladicha","ladner","ladonia","ladrillera-entronque-pesqueria","ladrilleraentronquepesqueria","ladrilleras-de-ocoro","ladrilleras-del-refugio","ladrillerasdelrefugio","ladrillerasdeocoro","ladson","ladue","lady-lake","ladylake","ladysmith","laencarnacion","laermita","laermitanuevajerusalen","laerradura","laescalera","laescondida","laesmeralda","laesperanza","laesperanzaelzapotal","laesperanzagranjasfamiliares","laesquina","laestacada","laestacion","laestancia","laestanciadeamezcua","laestanciadesanjosedelcarmen","laestanciasectorunolaestancia","laestanzuela","laestrella","lafayette","lafayette-hill","lafayettehill","lafb","lafe","laferia","lafinca","laflin","laflor","lafloresta","laflorida","lafollette","lafortuna","lafuente","lafundicionquintamanzana","lagalarza","lagarita","lagartera-1ra-seccion","lagartera1raseccion","lagavia","lagloria","laglorieta","lago-vista","lagoleta","lagoma","lagos-de-moreno","lagosdemoreno","lagotera","lagovista","lagrande","lagrandeza","lagrange","lagrangepark","lagriega","lagrulla","laguadalupana","laguadalupe","laguadeloupe","laguasima","laguna","laguna-beach","laguna-chica-pueblo-nuevo","laguna-de-farfan","laguna-de-guadalupe","laguna-de-san-vicente","laguna-de-santa-rita","laguna-de-vaquerias","laguna-del-cofre","laguna-del-mante","laguna-heights","laguna-hills","laguna-larga","laguna-larga-de-cortes","laguna-niguel","laguna-park","laguna-seca","laguna-vista","laguna-woods","lagunabeach","lagunachicapueblonuevo","lagunadefarfan","lagunadeguadalupe","lagunadelcofre","lagunadelmante","lagunadelreyquimicasdelrey","lagunadesantarita","lagunadesanvicente","lagunadetabernillaselresbaloso","lagunadevaquerias","lagunaheights","lagunahills","lagunalarga","lagunalargadecortes","lagunaniguel","lagunapark","lagunaseca","lagunavista","lagunawoods","laguneta","lagunilla","lagunillas","lagunitas","lagunitas-forest-knolls","lagunitasforestknolls","lah","lahabra","lahabraheights","lahaina","laharpe","lahautesaintcharles","laherradura","lahiguera","lahiguerillaloslirios","lahigueritacoloniasanrafael","lahoma","lahorquetapobladodoce","lahuacana","lahuanica","lahuerta","lahumedad","laibericalagotera","laie","laindependencia","laindependencialaspilas","laingsburg","laisla","laisladechapachapa","laislakilometro10","laislakm10","lajolla","lajoya","lajoyadecalvillo","lajunta","lake","lake-alfred","lake-andes","lake-arbor","lake-arrowhead","lake-arthur","lake-barcroft","lake-barrington","lake-belvedere-estates","lake-bluff","lake-brownwood","lake-butler","lake-camelot","lake-carmel","lake-catherine","lake-charles","lake-city","lake-clarke-shores","lake-como","lake-cowichan","lake-crystal","lake-dalecarlia","lake-dallas","lake-darby","lake-delton","lake-dunlap","lake-echo","lake-elmo","lake-elsinore","lake-erie-beach","lake-fenton","lake-forest","lake-forest-park","lake-geneva","lake-grove","lake-hallie","lake-hamilton","lake-havasu-city","lake-helen","lake-heritage","lake-hiawatha","lake-holiday","lake-hopatcong","lake-in-the-hills","lake-isabella","lake-jackson","lake-junaluska","lake-katrine","lake-kiowa","lake-koshkonong","lake-lakengren","lake-latonka","lake-lorraine","lake-los-angeles","lake-lotawana","lake-lucerne","lake-lure","lake-luzerne","lake-mack-forest-hills","lake-magdalene","lake-marcel-stillwater","lake-mary","lake-meade","lake-michigan-beach","lake-mills","lake-mohawk","lake-mohegan","lake-montezuma","lake-monticello","lake-morton-berrydale","lake-murray-of-richland","lake-nacimiento","lake-nebagamon","lake-norman-of-catawba","lake-odessa","lake-of-the-pines","lake-of-the-woods","lake-orion","lake-oswego","lake-ozark","lake-panasoffkee","lake-panorama","lake-park","lake-placid","lake-pleasant","lake-pocotopaug","lake-providence","lake-purdy","lake-ridge","lake-ripley","lake-ronkonkoma","lake-saint-croix-beach","lake-saint-louis","lake-san-marcos","lake-sarasota","lake-secession","lake-shore","lake-station","lake-stevens","lake-stickney","lake-success","lake-summerset","lake-tansi","lake-telemark","lake-view","lake-villa","lake-village","lake-waccamaw","lake-wales","lake-wazeecha","lake-wildwood","lake-winnebago","lake-wisconsin","lake-wissota","lake-worth","lake-worth-beach","lake-worth-corridor","lake-wylie","lake-wynonah","lake-zurich","lakealfred","lakeandes","lakearbor","lakearrowhead","lakearthur","lakebarcroft","lakebarrington","lakebelvedereestates","lakebluff","lakebrownwood","lakebutler","lakecamelot","lakecarmel","lakecatherine","lakecharles","lakecity","lakeclarkeshores","lakecomo","lakecowichan","lakecrystal","lakedalecarlia","lakedallas","lakedarby","lakedelton","lakedunlap","lakeecho","lakeelmo","lakeelsinore","lakeeriebeach","lakefenton","lakefield","lakeforest","lakeforestpark","lakegeneva","lakegrove","lakehallie","lakehamilton","lakehavasucity","lakehelen","lakeheritage","lakehiawatha","lakehills","lakeholiday","lakehopatcong","lakehurst","lakeinthehills","lakeisabella","lakejackson","lakejunaluska","lakekatrine","lakekiowa","lakekoshkonong","lakelakengren","lakeland","lakeland-highlands","lakeland-north","lakeland-south","lakeland-village","lakelandhighlands","lakelandnorth","lakelandsouth","lakelandvillage","lakelatonka","lakelorraine","lakelosangeles","lakelotawana","lakelucerne","lakelure","lakeluzerne","lakemackforesthills","lakemagdalene","lakemarcelstillwater","lakemary","lakemeade","lakemichiganbeach","lakemills","lakemohawk","lakemohegan","lakemont","lakemontezuma","lakemonticello","lakemoor","lakemore","lakemortonberrydale","lakemurrayofrichland","lakenacimiento","lakenebagamon","lakenormanofcatawba","lakeodessa","lakeofthepines","lakeofthewoods","lakeorion","lakeoswego","lakeozark","lakepanasoffkee","lakepanorama","lakepark","lakeplacid","lakepleasant","lakepocotopaug","lakeport","lakeprovidence","lakepurdy","lakeridge","lakeripley","lakeronkonkoma","lakes","lakes-by-the-bay","lakes-of-the-four-seasons","lakesaintcroixbeach","lakesaintlouis","lakesanmarcos","lakesarasota","lakesbythebay","lakesecession","lakeshire","lakeshore","lakeside","lakeside-park","lakesidepark","lakesite","lakesofthefourseasons","lakestation","lakestevens","lakestickney","lakesuccess","lakesummerset","laketansi","laketelemark","lakeview","lakeview-estates","lakeviewestates","lakevilla","lakevillage","lakeville","lakewaccamaw","lakewales","lakeway","lakewazeecha","lakewildwood","lakewinnebago","lakewisconsin","lakewissota","lakewood","lakewood-club","lakewood-park","lakewood-shores","lakewoodclub","lakewoodpark","lakewoodshores","lakeworth","lakeworthbeach","lakeworthcorridor","lakewylie","lakewynonah","lakezurich","lakin","lakota","lalabor","lalaborcita","lalaguna","lalagunaymontedelcastillo","lalagunilla","lalaja","lalibertad","lalima","lalinea","lalira","lallave","lalobera","laloma","lalomacuexcontitlan","lalomadelosnegritos","lalomalalomadequila","lalucha","laluz","laluzdejuarez","lamadrid","lamagdalena","lamagdalenachichicaspa","lamagdalenatenexpan","lamagdalenatetelamorelos","lamagdalenatlaltelulco","lamagdalenayancuitlalpan","lamalbaie","lamanga2daseccioneljobal","lamanzanilla","lamanzanilladelapaz","lamar","lamarque","lamartine","lambert","lambertville","lambton-baby-point","lambton-shores","lambtonbabypoint","lambtonshores","lame-deer","lamedeer","lamesa","lamesadechosto","lamesadelosconejos","lamesalamesadecedano","lamesilla","lamezquitera","lamina","laminerve","lamintzitapiedradura","lamira","lamirada","lamision","lamohonera","lamojonera","lamoncada","lamoni","lamonja","lamont","lamonte","lamoreaux","lampasas","lampazos-de-naranjo","lampazosdenaranjo","lampeter","lanai-city","lanaicity","lanark","lancaster","lancaster-mill","lancastermill","lancienne-lorette","lanciennelorette","land-o-lakes","landa-de-matamoros","landadematamoros","landen","lander","landero-y-coss","landeroycoss","landin","landing","landis","landisville","landmark","landolakes","landover","landover-hills","landoverhills","landrum","lane","lanegreta","lanesborough","lanett","langdon","lange-gardien","langegardien","langenburg","langford","langham","langhorne","langhorne-manor","langhornemanor","langley","langley-park","langleypark","langston","lanham","lanham-seabrook","lanhamseabrook","lanigan","lanikai","lannon","lanoraie","lanoria","lanoriadesanantonio","lanorita","lansdale","lansdowne","lanse","lansford","lansing","lansing-westgate","lansingwestgate","lantana","lantz","lanuevaera","lanuevavictoria","lao","laordena","laorduna","laorilla","laortiga","lapahua","lapalma","lapalmalaspalmas","lapalmilla","lapalmitalapalmitadesangabriel","lapalmitayanexoslapresita","lapaloma","lapanadera","lapartida","lapastoria","lapatria","lapaz","lapazdeordaz","lape","lapedrera","lapeer","lapel","lapendencia","lapeninsula","lapenitadejaltomba","laperla","lapesca","lapiedad","lapila","lapimienta","lapine","lapinta","laplace","laplacitademorelos","laplanada","laplanadaelarenal","laplata","laplaya","laplazadellimon","lapocatiere","lapopular","laporte","laportecity","lappe","lapradera","laprairie","lapresa","lapresita","lapresitasegundocuartel","lapresumida","laprimavera","laprovidencia","laprovidenciasigloxxi","lapryor","lapuebla","lapuente","lapuertadelpilar","lapunta","lapurificacion","lapurisima","lapwai","laquemada","laquinta","laramie","larch-way","larchmont","larchway","laredo","lareforma","laresolana","laresurreccion","largo","laribera","larimer","larimore","larinconada","larinconoda","larivera","lariviera","larkfield-wikiup","larkfieldwikiup","larkspur","larksville","larned","laroca","laronge","larosa","larose","larrainzar","las-aguamitas","las-amapolas","las-animas","las-arenitas","las-armas","las-barrillas","las-bocas","las-brisas","las-canadas","las-canas","las-catarinas","las-chicharras","las-choapas","las-cieneguitas","las-colonias-de-hidalgo","las-coloradas","las-compuertas","las-cruces","las-cuevas","las-delicias","las-esperanzas-el-ranchito","las-flechas","las-flores","las-grullas-margen-derecha","las-grullas-margen-izquierda","las-higueras","las-higuerillas","las-huertas","las-huertas-tercera-seccion","las-jarretaderas","las-juntas","las-lajas","las-lajitas","las-letras","las-liebres","las-lomas","las-lomas-de-tacamichapan","las-manzanas","las-maravillas","las-margaritas","las-masas-la-luz-masas","las-mercedes-agropecuaria","las-mesas","las-mieleras","las-minas","las-moras","las-nieves","las-norias-de-ojocaliente","las-ollas","las-palmas","las-palmas-ii","las-penas","las-pilas","las-pintas","las-pintas-de-arriba","las-pintitas","las-plazuelas","las-primaveras-invernadero","las-quemazones","las-quintas-fronterizas","las-ranas","las-rosas","las-sabanetas","las-sabinas","las-taponas","las-tazas","las-torres","las-torres-de-guadalupe","las-trancas","las-trojas","las-tunas","las-varas","las-varas-estacion-babicora","las-vegas","las-veredas","las-vigas","las-vigas-de-ramirez","las-yerbitas-aserradero","lasabana","lasabinita","lasaguamitas","lasalalacaliente","lasalle","lasamapolas","lasanimas","lasara","lasardina","lasarenitas","lasarmas","lasarre","lasauceda","lasbarrillas","lasbocas","lasbrisas","lascanadas","lascanas","lascatarinas","lascension-de-notre-seigneur","lascensiondenotreseigneur","laschicharras","laschoapas","lascieneguitas","lascoloniasdehidalgo","lascoloradas","lascompuertas","lascruces","lascuevas","lasdelicias","laselva","laselvabeach","lasesperanzaselranchito","lasflechas","lasflores","lasgolondrinasfraccionamiento","lasgrullasmargenderecha","lasgrullasmargenizquierda","lashigueras","lashiguerillas","lashuertas","lashuertasterceraseccion","lasidra","lasjarretaderas","lasjuntas","laslajas","laslajitas","lasletras","lasliebres","laslomas","laslomasdetacamichapan","lasmanzanas","lasmaravillas","lasmargaritas","lasmasaslaluzmasas","lasmercedesagropecuaria","lasmesas","lasmieleras","lasminas","lasmoras","lasnieves","lasnoriasdeojocaliente","lasolana","lasoledad","lasoledadbarrio","lasollas","lasombra","laspalmas","laspalmasii","laspenas","laspilas","laspintas","laspintasdearriba","laspintitas","lasplazuelas","lasprimaverasinvernadero","lasquemazones","lasquintasfronterizas","lasquintasfronterizascolonia","lasranas","lasrosas","lassabanetas","lassabinas","lassen","lassomption","lastaponas","lastazas","lastorres","lastorresdeguadalupe","lastrancas","lastrojas","lastunas","lasubida","lasvaras","lasvarasestacionbabicora","lasvegas","lasveredas","lasvigas","lasvigasderamirez","lasyerbitasaserradero","lat","latabaquera","latesorera","latham","lathrop","lathrup-village","lathrupvillage","latigrilla","latijera","latimer","latinaja","latoma","laton","latortuga","latrinidad","latrinidadchautenco","latrinidadchimalpa","latrinidadtenexyecac","latrinidadtianguismanalco","latrinitaria","latrobe","latta","lattingtown","latuque","lauderdale","lauderdale-by-the-sea","lauderdale-lakes","lauderdalebythesea","lauderdalelakes","lauderhill","laughlin","laughlin-air-force-base","laughlinairforcebase","launidadhuitzizilapan","launion","launiondelcuatro","launionejidomexcaltepec","launionpasolargo","laupahoehoe","laurel","laurel-bay","laurel-hill","laurel-hollow","laurel-lake","laurel-park","laurel-springs","laurelbay","laureldale","laureles","laurelhill","laurelhollow","laurellake","laurelpark","laurelsprings","laurelton","laurence-harbor","laurenceharbor","laurens","laurentides","laurinburg","laurium","laurys-station","laurysstation","lavaca","laval","lavale","lavalette","lavalla","lavallette","lavaltrie","laveen","lavega","laventa","laventadelastillero","laventilla","laventosa","lavergne","laverkin","laverne","lavernia","laversolilla","lavictoria","lavictorialapenita","lavilla","lavista","lavon","lavonia","lawai","lawndale","lawnside","lawnton","lawrence","lawrence-park","lawrence-park-north","lawrence-park-south","lawrenceburg","lawrencepark","lawrenceparknorth","lawrenceparksouth","lawrenceville","lawson","lawson-heights","lawsonheights","lawtell","lawton","lay","layesca","layhill","laymantown","layton","laytonville","lazacatecana","lazaro-cardenas","lazaro-cardenas-chilil","lazaro-cardenas-el-empalme","lazaro-cardenas-la-purisima","lazaro-cardenas-rancho-grande","lazaro-cardenas-santana","lazarocardenas","lazarocardenaschilil","lazarocardenaselempalme","lazarocardenaslapurisima","lazarocardenasranchogrande","lazarocardenassantana","lazy-mountain","lazymountain","lb","lbdc","lbe","lbj","lblg","lbp","lbtb","lbts","lc","lcc","lccv","lcdh","lcdl","lcdp","lce","lcee","lcf","lcg","lclc","lclp","lcm","lcn","lcpn","lcrg","lcs","lct","lcx","lcyc","ld","lda","ldb","ldc","lde","ldf","ldg","ldj","ldl","ldla","ldlc","ldle","ldlh","ldll","ldlm","ldlp","ldly","ldm","ldn","ldns","ldo","ldp","ldr","lds","ldsa","ldsc","ldsf","ldsj","ldsm","ldsp","ldsr","ldss","ldsv","ldt","ldv","ldy","ldz","le","le-bic","le-center","le-claire","le-grand","le-mars","le-plateau","le-roy","le-sueur","lea-hill","leacaman","leachville","lead","leadville","leadville-north","leadvillenorth","leadwood","league-city","leaguecity","leahill","leakesville","leakey","lealman","leamington","leander","leaside-bennington","leasidebennington","leavenworth","leavittsburg","leawood","leb","lebanon","lebanon-junction","lebanon-south","lebanonjunction","lebanonsouth","lebec","lebel-sur-quevillon","lebelsurquevillon","lebic","leblanc","lecanto","lecenter","lechee","leclaire","lecompte","leda","ledbetter","leduc","ledyard","lee","lee-acres","leeacres","leechburg","leeds","leer","lees-summit","leesburg","leesport","leessummit","leesville","leetonia","leetsdale","leez","legend-lake","legendlake","legf","legrand","lehi","lehigh-acres","lehighacres","lehighton","leicester","leilani-estates","leilaniestates","leipsic","leisure-city","leisure-knoll","leisure-village","leisure-village-east","leisure-world","leisurecity","leisureknoll","leisuretowne","leisurevillage","leisurevillageeast","leisurevillagewestpinelakepark","leisureworld","leitchfield","leith-hatfield","leithhatfield","leland","leland-grove","lelandgrove","lely","lely-resort","lelyresort","lemars","lemay","lemmon","lemmon-valley","lemmonvalley","lemon-grove","lemongrove","lemont","lemoore","lemoore-station","lemoorestation","lemoyne","lempster","lena","lenape-heights","lenapeheights","lenexa","lenj","lennox","lenoir","lenoir-city","lenoircity","lenox","lents","lenwood","leo-cedarville","leocedarville","leola","leominster","leon","leon-de-los-aldama","leon-guzman","leon-valley","leona-valley","leona-vicario","leonard","leonardo","leonardtown","leonavalley","leonavicario","leondelosaldama","leonguzman","leonia","leonvalley","leonville","leoti","lep","lepan","lepanto","lepiphanie","leplateau","lerdo-de-tejada","lerdodetejada","lerma","lerma-de-villada","lermadevillada","leroy","les-cedres","les-coteaux","les-escoumins","lesage","lescedres","lescoteaux","lesescoumins","leslie","lesslie","lester-prairie","lesterprairie","lesueur","lethbridge","lev","levant","level-green","level-park-oak-park","level-plains","levelgreen","levelland","levelparkoakpark","levelplains","leverett","levis","levittown","lewes","lewis","lewis-center","lewisburg","lewiscenter","lewisport","lewisporte","lewiston","lewiston-orchards","lewistonorchards","lewistown","lewisville","lexington","lexington-fayette","lexington-hills","lexington-park","lexingtonfayette","lexingtonhills","lexingtonpark","leyva-solano","leyvasolano","lf","lfk","lfp","lfqm","lg","lgdo","lgf","lgl","lgmd","lgmi","lgp","lh","lhc","lhh","lhll","lhpd","lhsc","lhts","li","libby","liberal","libertad","libertad-alvaro-obregon","libertad-melchor-ocampo","libertad-ventanas","libertadalvaroobregon","libertadmelchorocampo","libertadventanas","liberty","liberty-center","liberty-city","liberty-hill","liberty-lake","libertycenter","libertycity","libertyhill","libertylake","libertyville","libre-union","libres","libreunion","lic","licenciado-benito-juarez","licenciado-gustavo-diaz-ordaz","licenciadobenitojuarez","licenciadogustavodiazordaz","licking","lidc","lido-beach","lidobeach","light-street","lighthouse-point","lighthousepoint","lightstreet","ligonier","lihue","lik1","lilbourn","lilburn","lile-perrot","lileperrot","lilg","liliha-kapalama","lilihakapalama","lillington","lillooet","lilp","lily-lake","lilylake","lima","limerick","limestone","limestone-creek","limestonecreek","limington","limoges","limon","limones","linares","lincoln","lincoln-beach","lincoln-city","lincoln-heights","lincoln-park","lincoln-square","lincoln-village","lincolnbeach","lincolncity","lincolndale","lincolnheights","lincolnia","lincolnpark","lincolnshire","lincolnsquare","lincolnton","lincolnvillage","lincolnville","lincolnwood","lincroft","linda","lindale","lindavista","linden","lindenhurst","lindenwold","lindley","lindon","lindsay","lindsborg","lindstrom","lineville","linganore","linglestown","liniere","linn","linneus","linntown","lino-lakes","linolakes","linthicum","linton","linton-hall","lintonhall","linwood","lions-bay","lionsbay","lionville","lipscomb","lipuntahuaca","lisbon","lisbon-falls","lisbonfalls","lisle","listowel","litchfield","litchfield-park","litchfieldpark","lith","lithia-springs","lithiasprings","lithonia","lithopolis","lititz","little-canada","little-chute","little-cottonwood-creek-valley","little-current","little-elm","little-falls","little-ferry","little-flock","little-havana","little-neck","little-portugal","little-river","little-river-academy","little-rock","little-rock-air-force-base","little-round-lake","little-silver","little-valley","littlecanada","littlechute","littlecottonwoodcreekvalley","littlecurrent","littleelm","littlefalls","littleferry","littlefield","littleflock","littlehavana","littleneck","littleportugal","littleriver","littleriveracademy","littlerock","littlerockairforcebase","littleroundlake","littlesilver","littlestown","littleton","littleton-common","littletoncommon","littlevalley","live-oak","lively","liveoak","livermore","livermore-falls","livermorefalls","liverpool","livingston","livingston-manor","livingstonmanor","livonia","lj","ljdc","lk","ll","lla","llano","llano-de-agua","llano-de-enmedio","llano-de-la-lima","llano-de-la-puerta","llano-de-la-y","llano-de-zacapexco","llano-del-tigre","llano-grande","llano-largo","llano-suchiapa","llanodeagua","llanodeenmedio","llanodelalima","llanodelapuerta","llanodelasfloresbarriodelhueso","llanodelay","llanodeltigre","llanodezacapexco","llanogrande","llanolargo","llanosuchiapa","llb","llc","lldc","lldj","lldt","llera-de-canales","lleradecanales","lloyd-harbor","lloydharbor","lloydminster","llp","lm","lma","lmb","lmc","lmdc","lmfh","lmo","lmor","lmpd","lms","lmt","lmtm","lmy","ln","lndo","lne","lnoc","lnv","lo","lo-arado","lo-de-jesus-campo-romero","lo-de-juarez","lo-de-lamedo","lo-de-marcos","loa","loarado","lobatos","loch-lomond","lochbuie","loche","lochearn","lochlomond","lochmoor-waterway-estates","lochmoorwaterwayestates","lochsloy","lock-haven","lockeford","lockhart","lockhaven","lockland","lockney","lockport","lockport-heights","lockportheights","lockwood","locust","locust-fork","locust-grove","locust-valley","locustfork","locustgrove","locustvalley","lodejesuscamporomero","lodejuarez","lodelamedo","lodemarcos","lodi","lodo-grande","lodogrande","lofall","logan","logan-elm-village","logan-lake","logan-square","loganelmvillage","loganlake","logansport","logansquare","loganville","lol","lolo","loma","loma-alta","loma-alta-taxhimay","loma-angosta","loma-blanca","loma-bonita","loma-chapultepec","loma-de-bacum","loma-de-guadalupe-la-biznaga","loma-de-guamuchil","loma-de-juarez","loma-de-la-esperanza","loma-de-los-carmona","loma-de-los-hoyos","loma-de-san-francisco","loma-de-san-jose","loma-de-san-miguel","loma-de-sogotegoyo","loma-de-yerbabuena","loma-de-zempoala","loma-del-refugio","loma-del-rio","loma-grande","loma-la-paz","loma-larga","loma-linda","loma-pelada","loma-rica","loma-tendida","lomaalta","lomaaltataxhimay","lomaangosta","lomablanca","lomabonita","lomachapultepec","lomadebacum","lomadeguadalupelabiznaga","lomadeguamuchil","lomadejuarez","lomadelaesperanza","lomadeloscarmona","lomadeloshoyos","lomadelrefugio","lomadelrio","lomadesanfrancisco","lomadesanjose","lomadesanmiguel","lomadesogotegoyo","lomadeyerbabuena","lomadezempoala","lomagrande","lomalapaz","lomalarga","lomalargabarriodelomalarga","lomalinda","lomantan","lomapelada","lomarica","lomas-de-ahuatepec","lomas-de-altavista","lomas-de-barrillas","lomas-de-chapultepec","lomas-de-la-maestranza","lomas-de-rio-medio-cuatro","lomas-de-romero","lomas-de-san-agustin","lomas-de-san-juan","lomas-de-san-martin","lomas-de-san-pablo","lomas-de-san-sebastian","lomas-de-santa-anita","lomas-de-santa-cruz","lomas-de-tejeda","lomas-de-tenopalco","lomas-de-tepemecatl","lomas-de-tlatelolco","lomas-del-real","lomas-del-sur","lomas-verdes","lomasdeahuatepec","lomasdealtavista","lomasdebarrillas","lomasdechapultepec","lomasdelamaestranza","lomasdelreal","lomasdelsur","lomasderiomediocuatro","lomasderomero","lomasdesanagustin","lomasdesanjuan","lomasdesanmartin","lomasdesanpablo","lomasdesansebastian","lomasdesantaanita","lomasdesantacruz","lomasdetejeda","lomasdetenopalco","lomasdetepemecatl","lomasdetlatelolco","lomasverdes","lomatendida","lombard","lombardia","lomira","lomita","lomitas","lompico","lompoc","lonaconing","london","londonderry","londontowne","lone-grove","lone-jack","lone-oak","lone-pine","lone-star","lone-tree","lonegrove","lonejack","loneoak","lonepine","lonestar","lonetree","long-beach","long-branch","long-creek","long-grove","long-hill","long-island-city","long-lake","long-neck","long-prairie","long-valley","longbeach","longboat-key","longboatkey","longbranch","longcreek","longgrove","longhill","longislandcity","longlake","longmeadow","longmont","longneck","longprairie","longtown","longueuil","longvalley","longview","longview-heights","longviewheights","longwood","lonoke","lonsdale","loogootee","lookout-mountain","lookoutmountain","loomis","lopez","lopez-rayon","lopezrayon","lopezville","lorain","lorane","lordsburg","lordstown","lorena","lorenz-park","lorenzo","lorenzpark","loreto","lorette","loretto","lorignal","loris","lorraine","lorton","los-achotes","los-aguajes","los-alamitos","los-alamos","los-aldamas","los-algodones","los-almendros","los-altos","los-altos-hills","los-angeles","los-angeles-tetela","los-arana","los-arcos","los-arquitos","los-aztecas","los-azulitos","los-bahuises","los-banos","los-barriles","los-benitos","los-berros","los-cafetales","los-cajones","los-canos","los-cavazos","los-cedros","los-cenotes","los-cerritos","los-charcos","los-chavez","los-cides","los-condes","los-conos","los-corazones","los-cristales-talican","los-cues","los-desmontes","los-divorciados","los-dolores-las-quince-letras","los-dulces-nombres","los-encinos","los-fierros","los-fresnos","los-galvan","los-garcias","los-gatos","los-gavilanes","los-guajes","los-guerra","los-herreras","los-hoyos","los-hucuares","los-idolos","los-indios","los-laureles","los-limones","los-lirios","los-liros","los-lorenzos","los-lunas","los-mancera","los-mangos","los-medranos","los-mochis","los-mogotes","los-molinos","los-naranjos","los-naranjos-esquipulas","los-nicolases","los-nogales","los-ocotes","los-olivos","los-olvera","los-organos-de-san-agustin","los-osos","los-otates","los-palacios","los-parques","los-pescados","los-pilares","los-pinos","los-platanos","los-pocitos","los-pozos","los-prietos","los-ramirez","los-ramones","los-ranchos-de-albuquerque","los-remedios","los-reyes","los-reyes-acaquilpan","los-reyes-acatlixhuayan","los-reyes-de-juarez","los-reyes-de-salgado","los-reyes-quiahuixtlan","los-reyes-tlanechicolpan","los-riegos","los-robles","los-rodriguez","los-romeros","los-ruisenores","los-sabinos","los-sauces","los-saucitos","los-saucos","los-serranos","los-tepames","los-tepetates","los-tigres-san-marcos","los-torrentes","los-tuzos","los-valles","los-zacatones","losachotes","losaguajes","losalamitos","losalamos","losaldamas","losalgodones","losalmendros","losaltos","losaltoshills","losangeles","losangelestetela","losarana","losarcos","losarquitos","losaztecas","losazulitos","losbahuises","losbanos","losbarriles","losbenitos","losberros","loscafetales","loscajones","loscanos","loscavazos","loscedros","loscenotes","loscerritos","loscharcos","loschavez","loscides","loscondes","losconos","loscorazones","loscristalestalican","loscues","losdesmontes","losdivorciados","losdoloreslasquinceletras","losdulcesnombres","losencinos","losfierros","losfresnos","losgalvan","losgarcias","losgatos","losgavilanes","losguajes","losguerra","losherreras","loshoyos","loshucuares","losidolos","losindios","loslaureles","loslimones","loslirios","losliros","loslorenzos","loslunas","losmancera","losmangos","losmedranos","losmochis","losmogotes","losmolinos","losnaranjos","losnaranjosesquipulas","losnicolases","losnogales","losocotes","losolivos","losolvera","losorganosdesanagustin","lososos","losotates","lospalacios","losparques","lospescados","lospilares","lospinos","losplatanos","lospocitos","lospozos","losprietos","losramirez","losramones","losranchosdealbuquerque","losremedios","losreyes","losreyesacaquilpan","losreyesacatlixhuayan","losreyesdejuarez","losreyesdesalgado","losreyesquiahuixtlan","losreyestlanechicolpan","losriegos","losrobles","losrodriguez","losromeros","losruisenores","lossabinos","lossauces","lossaucitos","lossaucos","losserranos","lost-creek","lost-hills","lostcreek","lostepames","lostepetates","losthills","lostigressanmarcos","lostorrentes","lostuzos","losvalles","loszacatones","lotp","lotw","loudon","loudonville","loudoun-valley-estates","loudounvalleyestates","loughman","louisa","louisburg","louiseville","louisiana","louisville","loup-city","loupcity","lourdes","lovejoy","loveland","loveland-park","lovelandpark","lovell","lovelock","loves-park","lovespark","lovettsville","loving","lovingston","lovington","lowell","lowellville","lower-aiea","lower-allen","lower-allston","lower-burrell","lower-grand-lagoon","lower-lake","lower-mccully","lower-moyamensing","lower-palolo","lower-pawaa","lower-pearl-city","lower-sackville","lower-waiau","lower-west-side","lower-wilhelmina","loweraiea","lowerallen","lowerallston","lowerburrell","lowergrandlagoon","lowerlake","lowermccully","lowermoyamensing","lowerpalolo","lowerpawaa","lowerpearlcity","lowersackville","lowerwaiau","lowerwestside","lowerwilhelmina","lowes-island","lowesisland","lowesville","lowry-crossing","lowrycrossing","lowville","loxahatchee-groves","loxahatcheegroves","loxley","loyal","loyalhanna","loyola","loza-de-barrera","loza-de-los-padres","lozadebarrera","lozadelospadres","lp","lpc","lpda","lpdj","lpdl","lpdm","lpdo","lpdp","lpea","lpi","lplp","lpn","lpop","lps","lpsc","lpsx","lq","lqf","lqfc","lr","lra","lrda","lrdj","lrds","lrev","lrl","lrq","lrt","ls","lsb","lscb","lsl","lslc","lsm","lsq","lt","ltc","ltdg","ltsm","ltt","lu","lubbock","lubeck","lucama","lucan","lucas","lucas-valley-marinwood","lucasvalleymarinwood","lucasville","lucedale","lucerne","lucerne-valley","lucernevalley","luceville","luchanas","lucio-blanco-los-gavilanes","lucioblancolosgavilanes","luck","luckey","ludc","ludington","ludlow","ludowici","luem","lufkin","lugoff","luh","luis-espinoza","luis-gil-perez","luis-moya","luis-rodriguez-el-vergel","luisespinoza","luisgilperez","luismoya","luisrodriguezelvergel","lukachukai","lula","luling","lumber-city","lumbercity","lumberton","lumby","lumpkin","lumsden","luna-pier","lunapier","lunenburg","lupl","luray","lusby","lusk","lutcher","lutes-mountain","lutesmountain","luther","lutherville","lutherville-timonium","luthervilletimonium","luttrell","lutz","luverne","luxemburg","luxora","luzerne","lv","lvda","lvdr","lve","lveb","lvlp","lvm","lw","lwb","lwc","lwe","lws","ly","lya","lyc","lyford","lykens","lyman","lyme","lynbrook","lynchburg","lyncourt","lyndeborough","lynden","lyndhurst","lyndon","lyndonville","lynn","lynn-haven","lynnfield","lynnhaven","lynnwood","lynnwood-pricedale","lynnwoodpricedale","lynwood","lyon","lyons","lytle","lz","ma","mabank","mableton","mabscott","mabton","mac","macamic","macapule","macario-j-gomez-colonia","macariojgomezcolonia","macarthur","macclenny","macedon","macedonia","macedonio-alonso","macedonioalonso","machesney-park","machesneypark","machetla","machias","machiasport","macho-de-agua","machodeagua","macin-chico","macinchico","mack","mackenzie","mackinaw","macklin","maclovio-herrera","maclovio-rojas","maclovioherrera","maclovioherreracoloniaaviacion","macloviorojas","macomb","macon","mactun","macuilxochitldeartigascarranza","macultepec","macungie","macuspana","macutzio","macvilho","macy","mad","madawaska","madbury","madeira","madeira-beach","madeirabeach","madelia","madera","madera-acres","maderaacres","madill","madison","madison-center","madison-heights","madison-lake","madison-park","madisoncenter","madisonheights","madisonlake","madisonpark","madisonville","madoc","madras","madrid","maeser","mafafas","mafb","magalia","magdalena","magdalena-apasco","magdalena-atlicpac","magdalena-contreras","magdalena-cuayucatepec","magdalena-de-araceo","magdalena-de-kino","magdalena-jaltepec","magdalena-mixtepec","magdalena-ocotlan","magdalena-teitipac","magdalena-tequisistlan","magdalena-tlacotepec","magdalena-zahuatlan","magdalenaapasco","magdalenaatlicpac","magdalenacontreras","magdalenacuayucatepec","magdalenadearaceo","magdalenadekino","magdalenajaltepec","magdalenamixtepec","magdalenaocotlan","magdalenateitipac","magdalenatequisistlan","magdalenatlacotepec","magdalenazahuatlan","magdaleno-cedillo","magdalenocedillo","magee","maggie-valley","maggievalley","magisterio-digno","magisteriodigno","magna","magnolia","magog","magrath","maguarichi","maguey-blanco","magueyblanco","mahanoy-city","mahanoycity","maharishi-vedic-city","maharishivediccity","mahnomen","mahomet","mahopac","mahtomedi","mahuixtlan","mahwah","maiden","maili","maine","maitinez","maitland","maize","majastic","majomut","makaha","makaha-valley","makahavalley","makakilo","makakilo-city","makakilo-kapolei-honokai-hale","makakilocity","makakilokapoleihonokaihale","makawao","makikilowerpunchbowltantalus","makua-valley","makuavalley","malabar","malad-city","maladcity","malagana-san-antonio-del-monte","malaganasanantoniodelmonte","malakoff","malartic","mald","malden","malibu","malinalco","malinaltepec","maliotenam","mallory","malmstrom-air-force-base","malmstromairforcebase","malone","malpaso","malta","maltby","maltrata","malvern","malverne","mama","mamantel","mamaroneck","mamithi","mammoth","mammoth-lakes","mammothlakes","mamou","manahawkin","manalisco","manana-housing","mananahousing","manantiales","manasota-key","manasotakey","manasquan","manassas","manassas-park","manassaspark","manatee","manatee-road","manateeroad","manawa","manawan","manayunk","mancelona","manchaca","manchester","manchester-by-the-sea","manchester-center","manchesterbythesea","manchestercenter","mancos","mancuernas","mandan","mandeville","mangas","mango","mangonia-park","mangoniapark","mangum","manhasset","manhasset-hills","manhassethills","manhattan","manhattan-beach","manhattan-valley","manhattanbeach","manhattanvalley","manheim","mani","manila","manistee","manistique","manito","manitoba","manitou-beach-devils-lake","manitou-springs","manitoubeachdevilslake","manitousprings","manitouwadge","manitowoc","maniwaki","mankato","manlio-fabio-altamirano","manliofabioaltamirano","manlius","manly","mannford","manning","mannington","manoa","manor","manorhaven","manorville","mansfield","mansfield-center","mansfield-city","mansfieldcenter","mansfieldcity","manson","mansura","mantachie","manteca","manteno","manteo","manti","manto-del-rio-ejido","mantodelrioejido","manton","mantorville","mantua","manuel-avila-camacho","manuel-benavides","manuel-lazos","manuel-leon","manuel-maria-contreras","manuel-ojinaga","manuel-villalongin","manuelavilacamacho","manuelavilacamachoponteduro","manuelbenavides","manueledgardoavalossanisidro","manuellazos","manuelleon","manuelmariacontreras","manuelojinaga","manuelvillalongin","manvel","manville","many","many-farms","manyfarms","manzana-de-san-luis","manzana-la-cofradia","manzana-quinta-la-canada","manzana-segunda","manzana-sexta-parte-centro","manzanadesanluis","manzanalacofradia","manzanaquintalacanada","manzanasegunda","manzanasextapartecentro","manzanillo","mapachapa","mapastepec","mapimi","maple-bluff","maple-creek","maple-glen","maple-grove","maple-heights","maple-heights-lake-desire","maple-lake","maple-leaf","maple-park","maple-plain","maple-ridge","maple-shade","maple-valley","maplebluff","maplecreek","mapleglen","maplegrove","mapleheights","mapleheightslakedesire","maplelake","mapleleaf","maplepark","mapleplain","mapleridge","mapleshade","mapleton","maplevalley","maplewood","maquoketa","mar-mac","marana","marathon","maravatio-de-ocampo","maravatio-del-encinal","maravatiodelencinal","maravatiodeocampo","maravilla-tenejapa","maravillas","maravillatenejapa","marble-falls","marble-hill","marblefalls","marblehead","marblehill","marbleton","marbletown","marbury","marceline","marcelinorodriguezsanignacio","marcellus","march-air-force-base","marchairforcebase","marco","marco-island","marcoisland","marcol","marcus","marcus-hook","marcushook","marengo","marfa","marfil","margaret","margaritas","margate","margate-city","margatecity","maria","maria-de-la-torre","maria-lombardo-de-caso","mariadelatorre","marialombardodecaso","marianna","marianne","mariano-balleza","mariano-escobedo","mariano-matamoros","marianoballeza","marianoescobedo","marianomatamoros","maricopa","mariemont","marienville","marietta","marietta-alderwood","mariettaalderwood","marieville","marin","marin-city","marina","marina-del-rey","marinadelrey","marincity","marine-city","marine-corps-base-hawaii-mcbh","marinecity","marinecorpsbasehawaiimcbh","mariners-harbor","mariners-ridge","marinersharbor","marinersridge","marinette","maringouin","marion","marion-center","marioncenter","marionville","maripa","mariposa","mariscal-subikuski","mariscala-de-juarez","mariscaladejuarez","mariscalsubikuski","marissa","markdale","marked-tree","markedtree","markesan","markham","markland-wood","marklandwood","markle","marks","marksville","marlboro","marlboro-meadows","marlboro-village","marlboromeadows","marlborough","marlborovillage","marlette","marlin","marlinton","marlow","marlow-heights","marlowheights","marlton","marmac","marmaduke","marmet","maroa","marquelia","marquette","marquette-heights","marquetteheights","marrero","marriott-slaterville","marriottslaterville","marroquin","mars","mars-hill","marseilles","marshall","marshallton","marshalltown","marshallville","marshfield","marshfield-hills","marshfieldhills","marshill","marshville","marsing","marstons-mills","marstonsmills","mart","marte-r-gomez","marte-r-gomez-tobarito","martensville","martergomez","martergomeztobarito","martha-lake","marthalake","marthasville","martin","martindale","martinez","martinez-de-la-torre","martinez-dominguez","martinezdelatorre","martinezdominguez","martins-ferry","martinsburg","martinsferry","martinsville","marvell","marvin","mary-esther","maryesther","maryland","maryland-city","maryland-heights","marylandcity","marylandheights","marystown","marysville","maryvale","maryville","mas","masaryktown","mascot","mascota","mascotte","mascouche","mascoutah","mashpee","masiaca","maskinonge","mason","mason-city","masonboro","masoncity","masontown","masonville","maspeth","massac","massachusetts","massanetta-springs","massanettasprings","massanutten","massapequa","massapequa-park","massapequapark","massena","massillon","mastic","mastic-beach","masticbeach","masury","mata-de-indio","mata-loma","mata-naranjo","mata-obscura","mata-tenatito-casco-hacienda","matacapan","matachi","matadeindio","matador","matagami","mataloma","matamoras","matamoros","matanaranjo","matane","matanzas","mataobscura","matatenatitocascohacienda","matatlan","matawan","matehuala","matheny","mathews","mathis","matias-romero","matiasromero","matlahuacales-aquiles-serdan","matlahuacalesaquilesserdan","matlapa","matoaca","mattapan","mattapoisett","mattapoisett-center","mattapoisettcenter","mattawa","mattawan","matteson","matthews","mattituck","mattoon","mattydale","matzaco","matzam","maud","maugansville","mauldin","maumee","maumelle","maunawili","maurice","mauriceville","maury","mauston","mavoro","maxcanu","maxela","maximo-serdan","maximoserdan","maxtleca-de-galeana","maxtlecadegaleana","maxton","maxwell","maya-balam","maya-tecun-i","mayabalam","mayanalan","mayapan","mayatecuni","maybrook","mayer","mayersville","mayerthorpe","mayfield","mayfield-heights","mayfieldheights","mayflower","mayflower-village","mayflowervillage","maynard","maynardville","mayo","mayodan","mayor-wright-housing","mayorazgo-de-leon","mayorazgodeleon","mayorwrighthousing","mayran","mays-chapel","mays-landing","mayschapel","mayslanding","maysville","maytown","mayville","maywood","mazaltepec","mazamitla","mazapa","mazapil","mazapiltepec","mazatan","mazatecochco","mazatepec","mazateupa","mazatlan","mazatlan-villa-de-flores","mazatlanvilladeflores","mazin-grande","mazingrande","mazomanie","mazumiapam","mb","mbdl","mbts","mc","mcadoo","mcalester","mcallen","mcalmont","mcarthur","mccall","mccamey","mccaysville","mcchord-air-force-base","mcchordairforcebase","mccleary","mccloud","mcclusky","mccoll","mccomb","mcconnell-afb","mcconnellafb","mcconnellsburg","mcconnellstown","mcconnelsville","mccook","mccord","mccordsville","mccormick","mccrory","mccullom-lake","mccullomlake","mccully-moiliili","mccullymoiliili","mcdonald","mcdonough","mce","mcewen","mcfarland","mcgehee","mcgill","mcgovern","mcgraw","mcgregor","mcguire-afb","mcguireafb","mchenry","mcintosh","mckee","mckees-rocks","mckeesport","mckeesrocks","mckenzie","mckinley-heights","mckinley-park","mckinleyheights","mckinleypark","mckinleyville","mckinney","mckownville","mclean","mcleansboro","mcleansville","mclendon-chisholm","mclendonchisholm","mclennan","mcloud","mcmechen","mcmillin","mcminnville","mcmurray","mcpherson","mcqueeney","mcrae","mcsherrystown","md","mda","mdac","mdb","mdc","mde","mdg","mdh","mdi","mdj","mdk","mdl","mdll","mdlm","mdls","mdlt","mdm","mdn","mdo","mdp","mdpd","mdr","mdre","mds","mdsa","mdsj","mdsl","me","mead","mead-valley","meade","meadow-glade","meadow-lake","meadow-lakes","meadow-oaks","meadow-vista","meadow-woods","meadowbrook","meadowdale","meadowglade","meadowlake","meadowlakes","meadowoaks","meadowood","meadows-place","meadowsplace","meadowvista","meadowwoods","meads","meadvalley","meadview","meadville","meaford","mebane","mecapalapa","mecatan","mecatepec","mecatlan","mecayapan","mecca","mechanic-falls","mechanicfalls","mechanicsburg","mechanicstown","mechanicsville","mechanicville","mechoacanejo","mecoacan","mecoacan2daseccionsanlorenzo","medellin-de-bravo","medellindebravo","medellinymaderosegundaseccion","medfield","medford","medford-lakes","medfordlakes","media","mediapolis","medias-aguas","mediasaguas","medical-lake","medicallake","medicine-hat","medicine-lodge","medicinehat","medicinelodge","medina","medinah","medio-sitio","mediositio","medora","medulla","medway","meeker","meggett","mehlville","meigs","meiners-oaks","meinersoaks","melbourne","melbourne-beach","melbournebeach","melcher-dallas","melcherdallas","melchor-ocampo","melchorocampo","melfort","melissa","melita","meliton-albanez-dominguez","melitonalbanezdominguez","mellwood","melocheville","melody-hill","melodyhill","melrose","melrose-park","melrosepark","melville","melvindale","memphis","mena","menahga","menands","menard","menasha","mendenhall","mendez","mendham","mendocino","mendon","mendota","mendota-heights","mendotaheights","menifee","menlo-park","menlopark","menominee","menomonee-falls","menomoneefalls","menomonie","menores","mentone","mentor","mentor-on-the-lake","mentoronthelake","meoqui","mequetla","mequon","meraux","merced","merced-del-potrero","merceddelpotrero","mercedes","mercer","mercer-island","mercerisland","mercersburg","mercerville","mercerville-hamilton-square","mercervillehamiltonsquare","merchantville","mercier","meredith","meredosia","merida","meriden","meridian","meridian-hills","meridian-station","meridianhills","meridianstation","meridianville","merino","merkel","merlin","mermaid","merriam","merriam-woods","merriamwoods","merrick","merrifield","merrill","merrillville","merrimac","merrimack","merrionette-park","merrionettepark","merritt","merritt-island","merritt-park","merrittisland","merrittpark","merrydale","merryville","merton","mertzon","mesa","mesa-de-guadalupe","mesa-del-huracan","mesa-del-nayar","mesa-grande","mesa-verde","mesadeguadalupe","mesadelhuracan","mesadelnayar","mesagrande","mesaverde","mescal","mescalero","mesilla","mesillas","meson-de-los-sauces","mesondelossauces","mesonnuevocanadadelamagdalena","mesquite","metabetchouan","metabetchouan-lac-a-la-croix","metabetchouanlacalacroix","metairie","metairie-terrace","metairieterrace","metamora","metapa","metcalfe","metchosin","metepec","metepec-primero","metepecprimero","methuen","metlachernandezmetlacprimero","metlakatla","metlaltoyuca","metlapa","metlatonoc","metropolis","metter","metuchen","metzger","metztitlan","mex","mexcala","mexcalcuautla","mexia","mexicali","mexicaltzingo","mexicanos","mexico","mexico-beach","mexico-city","mexicobeach","mexicocity","mexicostate","mexpan","mexquitic-de-carmona","mexquiticdecarmona","mextepec","mexticacan","meyersdale","mezapa-la-fabrica","mezapalafabrica","mezcala","mezcales","mezquital-del-oro","mezquitaldeloro","mezquite-de-luna","mezquite-de-sotelo","mezquite-gordo","mezquitedeluna","mezquitedesotelo","mezquitegordo","mezquitic","mezquitic-de-la-magdalena","mezquiticdelamagdalena","mezquititlan","mf","mfa","mg","mgs","mh","mhca","mhh","mhld","mhmp","mhs","mhv","mi","mi-patria-es-primero","miacatlan","miahuatlan","miahuatlan-de-porfirio-diaz","miahuatlandeporfiriodiaz","miami","miami-beach","miami-dade","miami-gardens","miami-heights","miami-lakes","miami-shores","miami-springs","miamibeach","miamidade","miamigardens","miamiheights","miamilakes","miamisburg","miamishores","miamisprings","miamitown","mic","micco","michac","michapa","michigan","michigan-center","michigan-city","michigancenter","michigancity","michimaloya","michoacan-de-ocampo","michoacandeocampo","mid-cambridge","mid-city","midcambridge","midcity","middle-island","middle-river","middle-valley","middle-village","middleborough","middleborough-center","middleboroughcenter","middlebourne","middleburg","middleburg-heights","middleburgh","middleburgheights","middlebury","middlebury-village","middleburyvillage","middlebush","middlefield","middleisland","middleport","middleriver","middlesboro","middlesex","middleton","middletown","middlevalley","middlevillage","middleville","midfield","midland","midland-beach","midland-city","midland-park","midlandbeach","midlandcity","midlandpark","midlothian","midpines","midtown","midvale","midway","midway-atoll","midway-city","midway-north","midway-south","midwayatoll","midwaycity","midwaynorth","midwaysouth","midwest-city","midwestcity","mier","mier-y-noriega","mierynoriega","mifflinburg","mifflintown","mifflinville","mignon","miguel-ahumada","miguel-aleman-la-doce","miguel-auza","miguel-hidalgo","miguel-negrete","miguel-utrilla-los-chorros","miguelahumada","miguelalemanladoce","miguelauza","miguelhidalgo","miguelnegrete","miguelutrillaloschorros","miguelvaldezquinteroelcorazon","mikoma","mila-doce","milaca","miladoce","milagros","milam","milan","milbank","milbridge","mildmay","miles-city","milesburg","milescity","milford","milford-mill","milfordmill","mililani-mauka-launani-valley","mililani-town","mililanimaukalaunanivalley","mililanitown","mill-city","mill-creek","mill-creek-east","mill-hall","mill-neck","mill-plain","mill-valley","mill-woods-town-centre","millbourne","millbrae","millbrook","millburn","millbury","millcity","millcreek","millcreekeast","milledgeville","millen","miller","miller-place","millerplace","millers-creek","millers-falls","millersburg","millerscreek","millersfalls","millersport","millersville","millet","millhall","milliken","millington","millinocket","millis","millis-clicquot","millisclicquot","millneck","millplain","mills","mills-river","millsboro","millsriver","millstadt","milltown","millvale","millvalley","millville","millwood","millwoodstowncentre","milo","milpa-alta","milpaalta","milpas-viejas","milpasviejas","milpillas","milpitas","milroy","milton","milton-center","milton-freewater","milton-upper-mills","milton-village","miltoncenter","miltonfreewater","miltonuppermills","miltonvillage","milwaukee","milwaukie","mimico","mims","mina","mina-mexico","mina-vieja","minamexico","minas-de-barroteran","minasdebarroteran","minatitlan","minavieja","minco","minden","mineola","mineral","mineral-de-angangueo","mineral-de-la-luz","mineral-del-monte","mineral-point","mineral-ridge","mineral-springs","mineral-wells","mineraldeangangueo","mineraldelaluz","mineraldelmonte","mineralpoint","mineralridge","mineralsprings","mineralwells","minersville","minerva","minerva-park","minervapark","minetto","mineville","mingo-junction","mingojunction","minier","minkler","minneapolis","minnedosa","minnehaha","minneola","minneota","minnesota","minnetonka","minnetonka-mills","minnetonkamills","minnetrista","minnewaukan","minoa","minonk","minooka","minor","minorca","minot","minot-air-force-base","minotairforcebase","minster","mint-hill","minthill","minturn","minzapan","mio","mipatriaesprimero","miquihuana","mira-mesa","mira-monte","mirabel","miraflores","miramar","miramar-beach","miramarbeach","miramesa","miramichi","miramonte","miravalle","miravalles","mirrormont","misantla","mishawaka","mishicot","misija","mision-de-chichimecas","mision-san-pablo","misiondechichimecas","misionsanpablo","mission","mission-bend","mission-canyon","mission-district","mission-hill","mission-hills","mission-viejo","missionbend","missioncanyon","missiondistrict","missionhill","missionhills","missionviejo","mississauga","mississauga-beach","mississaugabeach","mississippi","missoula","missouri","missouri-city","missouri-valley","missouricity","missourivalley","mistissini","mitchell","mitchellville","mitras-poniente","mitrasponiente","mitziton","mixcum","mixquiahuala-de-juarez","mixquiahualadejuarez","mixquiapan","mixtla","mixtla-de-altamirano","mixtladealtamirano","mixtlalcingo","mixtlan","mj","mjgc","mk","mkhh","ml","ml1s","mlc","mldc","mlf","mll","mln","mlp","mlpt","mm","mmc","mmdj","mmlv","mmpa","mn","mo","moab","moanalua-valley","moanaluavalley","moapa-town","moapa-valley","moapatown","moapavalley","moberly","mobile","mobridge","mochicahui","mochis","mochitlan","mocksville","mococha","mocorito","moctezuma","moctezuma-sonora","moctezumasonora","modena-park","modenapark","modesto","modoc","mogadore","mogul","mohall","mohave","mohave-valley","mohavevalley","mohawk","mohnton","mohoneras","moiliili","mojarras","mojave","mokena","mokuleia","molalla","molango","molas","moline","moline-acres","molineacres","molino","molino-abajo","molino-de-camou","molino-de-san-jose","molino-de-santa-ana","molinoabajo","molinodecamou","molinodesanjose","molinodesantaana","molinos","moloacan","momax","momence","mompani","mona","monaca","monahans","monarch-mill","monarchmill","moncks-corner","monckscorner","monclova","monclova-primer-sector","monclova-segundo-sector","monclovaprimersector","monclovasegundosector","moncton","mondovi","monee","monessen","monett","monette","monfort-heights","monfortheights","monmouth","monmouth-beach","monmouth-junction","monmouthbeach","monmouthjunction","mono","mono-vista","monon","monona","monongah","monongahela","monovista","monroe","monroe-city","monroe-north","monroecity","monroenorth","monroeville","monrovia","monsey","monson","monson-center","monsoncenter","mont-alto","mont-belvieu","mont-joli","mont-laurier","mont-royal","mont-saint-gregoire","mont-saint-hilaire","mont-tremblant","mont-vernon","montague","montalto","montalvin","montana","montana-city","montana-monarca-punta-altozano","montanacity","montanamonarcapuntaaltozano","montara","montauk","montbelvieu","montclair","monte-alegre","monte-alto","monte-blanco","monte-calvario","monte-del-coecillo","monte-escobedo","monte-grande","monte-kristal","monte-largo-1ra-seccion","monte-obscuro","monte-redondo","monte-rio","monte-salas","monte-sereno","monte-verde","monte-verde-chiveria","monte-vista","monteagle","montealegre","montealto","montebello","monteblanco","montecalvario","montecillo","montecillos","montecito","montecristo","montedelcoecillo","monteescobedo","montegrande","montegut","montekristal","montelargo1raseccion","monteleon","montello","montemorelos","montenegro","montenegro-la-lana","montenegrolalana","monteobscuro","monteon","monteredondo","monterey","monterey-park","montereypark","monterio","monterrey","montesalas","montesano","montesereno","montevallo","monteverde","monteverdechiveria","montevideo","montevista","montezuma","montgomery","montgomery-city","montgomery-village","montgomerycity","montgomeryvillage","montgomeryville","monticello","montjoli","montlaurier","montmagny","montoro","montour-falls","montourfalls","montoursville","montpelier","montreal","montreal-est","montreal-ouest","montrealest","montrealouest","montrose","montrose-ghent","montroseghent","montross","montroyal","montsaintgregoire","montsainthilaire","monttremblant","montura","montvale","montverde","montvernon","montville-center","montvillecenter","montz","monument","monument-beach","monument-hills","monumentbeach","monumenthills","moodus","moody","moonachie","moorcroft","moore","moore-haven","moorefield","moorehaven","mooreland","moores-mill","mooresmill","moorestown-lenola","moorestownlenola","mooresville","moorhead","moorpark","moose-factory","moose-jaw","moose-lake","moose-wilson-road","moosefactory","moosejaw","mooselake","moosewilsonroad","moosic","moosomin","moosonee","moosup","mor","mora","mora-villalobos","morada","moraga","moraine","morales","moralillo","moras","moravia","moravian-falls","moravianfalls","moravillalobos","morden","morehead","morehead-city","moreheadcity","moreland","moreland-hills","morelandhills","morelia","morelita","morelos","morelos-canada","morelos-piedra-3ra-seccion","moreloscanada","morelospiedra3raseccion","morenci","moreno-valley","morenovalley","moretown","morgan","morgan-city","morgan-hill","morgan-park","morgancity","morgandale","morganfield","morganhill","morganpark","morgans-point-resort","morganspointresort","morganton","morgantown","morganville","moriarty","moriches","morin-heights","morinheights","morinville","moris","morningside","morningside-heights","morningsideheights","moro","morocco","morocoy","moroleon","moroncarit","morongo-valley","morongovalley","moroni","morrell-park","morrellpark","morrilton","morris","morris-heights","morris-park","morris-plains","morrisania","morrisburg","morrisheights","morrison","morrisonville","morrispark","morrisplains","morristown","morrisville","morro-bay","morrobay","morrow","morton","morton-grove","mortongrove","moscow","moscow-mills","moscowmills","moses-lake","moses-lake-north","moseslake","moseslakenorth","mosheim","mosinee","mosj","mosquero","moss-beach","moss-bluff","moss-park","moss-point","mossbeach","mossbluff","mosspark","mosspoint","motl","motley","motovatha","motozintla","mott","mott-haven","motthaven","motul","motzorongo","moulton","moultonborough","moultrie","mound","mound-bayou","mound-city","moundbayou","moundcity","moundridge","mounds","mounds-view","moundsview","moundsville","moundville","mount-airy","mount-albert","mount-angel","mount-arlington","mount-ayr","mount-brydges","mount-carmel","mount-carroll","mount-clemens","mount-cobb","mount-dennis","mount-dora","mount-ephraim","mount-gay-shamrock","mount-gilead","mount-greenwood","mount-healthy","mount-healthy-heights","mount-hermon","mount-holly","mount-holly-springs","mount-hood-village","mount-hope","mount-horeb","mount-ida","mount-ivy","mount-jackson","mount-joy","mount-juliet","mount-kisco","mount-laurel","mount-lebanon","mount-morris","mount-olive","mount-oliver","mount-olivet","mount-olympus","mount-orab","mount-pearl","mount-penn","mount-pleasant","mount-pleasant-east","mount-pleasant-west","mount-plymouth","mount-pocono","mount-prospect","mount-pulaski","mount-rainier","mount-repose","mount-shasta","mount-sinai","mount-sterling","mount-union","mount-vernon","mount-vista","mount-washington","mount-wolf","mount-zion","mountain-brook","mountain-city","mountain-green","mountain-grove","mountain-home","mountain-house","mountain-iron","mountain-lake","mountain-lake-park","mountain-lakes","mountain-lodge-park","mountain-park","mountain-ranch","mountain-road","mountain-top","mountain-view","mountain-view-acres","mountain-village","mountainaire","mountainbrook","mountaincity","mountaingreen","mountaingrove","mountainhome","mountainhouse","mountainiron","mountainlake","mountainlakepark","mountainlakes","mountainlodgepark","mountainpark","mountainranch","mountainroad","mountainside","mountaintop","mountainview","mountainviewacres","mountainvillage","mountairy","mountalbert","mountangel","mountarlington","mountayr","mountbrydges","mountcarmel","mountcarroll","mountclemens","mountcobb","mountdennis","mountdora","mountephraim","mountgayshamrock","mountgilead","mountgreenwood","mounthealthy","mounthealthyheights","mounthermon","mountholly","mounthollysprings","mounthoodvillage","mounthope","mounthoreb","mountida","mountivy","mountjackson","mountjoy","mountjuliet","mountkisco","mountlake-terrace","mountlaketerrace","mountlaurel","mountlebanon","mountmorris","mountolive","mountoliver","mountolivesilverstonejamestown","mountolivet","mountolympus","mountorab","mountpearl","mountpenn","mountpleasant","mountpleasanteast","mountpleasantwest","mountplymouth","mountpocono","mountprospect","mountpulaski","mountrainier","mountrepose","mountshasta","mountsinai","mountsterling","mountunion","mountvernon","mountville","mountvista","mountwashington","mountwolf","mountzion","moville","mowbray-mountain","mowbraymountain","moweaqua","moyahua-de-estrada","moyahuadeestrada","moyoapan","moyock","moyos","moyotepec","moyotepec-moyotepec-de-juarez","moyotepecmoyotepecdejuarez","moyotzingo","mozomboa","mp","mp3s","mpe","mpep","mpr","mps","mpw","mqlc","mr","mrg","mrgt","mrsi","ms","msg","msh","msim","msp","mspc","mss","mt","mtch","mti","mu","muenster","muhlenberg-park","muhlenbergpark","mukilteo","mukwonago","mulberry","mulc","muldrow","mulege","muleshoe","mulino","mullen","mullens","mullica-hill","mullicahill","mullins","multe","multnomah","mulvane","mum","muna","muncie","muncy","munday","mundelein","mundo-nuevo","mundonuevo","mundys-corner","mundyscorner","munford","munfordville","munhall","munising","munitepec-de-madero","munitepecdemadero","muniz","munoz","munroe-falls","munroefalls","munsey-park","munseypark","munsons-corners","munsonscorners","munster","muquen","murdo","murfreesboro","murillo-colonia","murillocolonia","murphy","murphys","murphys-estates","murphysboro","murphysestates","murray","murraysville","murrells-inlet","murrellsinlet","murrieta","murrieta-hot-springs","murrietahotsprings","murrysville","muscatine","muscle-shoals","muscleshoals","muscoda","muscoy","muse","muskego","muskegon","muskegon-heights","muskegonheights","muskogee","mustang","muttontown","muxupip","mv","mva","mvc","mvdf","mvrg","mw","mwh","mwr","mwtc","myers-corner","myerscorner","myerstown","myersville","myn","myrtle-beach","myrtle-creek","myrtle-grove","myrtle-point","myrtlebeach","myrtlecreek","myrtlegrove","myrtlepoint","myrtletown","mystic","mystic-island","mysticisland","mz","na","nac","nacajuca","nachig","naco","nacogdoches","nacori-chico","nacorichico","nacozari-de-garcia","nacozari-viejo","nacozaridegarcia","nacozariviejo","nacuche","nadadores","nafb","nag","nags-head","nagshead","nahanni-butte","nahannibutte","nahant","nahuatzen","nahunta","naica","nakusp","nal","nambe","namiquipa","nampa","nanacatlan","nanahuatipam","nanaimo","nanakuli","nanawale-estates","nanawaleestates","nanticoke","nanton","nantucket","nanty-glo","nantyglo","nantzha","nanuet","naolinco-de-victoria","naolincodevictoria","napa","napanee","napanee-downtown","napaneedowntown","napanoch","napavine","naperville","napierville","napili-honokowai","napilihonokowai","naples","naples-manor","naples-park","naplesmanor","naplespark","napoleon","napoleonville","nappanee","naranja","naranja-de-tapia","naranjadetapia","naranjal","naranjo","naranjos","narberth","narciso-mendoza","narcisomendoza","narragansett","narragansett-pier","narragansettpier","narrows","nash","nashotah","nashua","nashville","nassau","nassau-bay","nassau-village-ratliff","nassaubay","nassauvillageratliff","natalbany","natalia","natchez","natchitoches","natick","national-city","national-harbor","national-park","nationalcity","nationalharbor","nationalpark","nativitas","naucalpan-de-juarez","naucalpandejuarez","naugatuck","naupan","nautla","nauvoo","nauzontla","nava","navajas","navajo","naval-academy","navalacademy","navarre","navarrete","navasota","navassa","navassa-island","navassaisland","navenchauc","navesink","navojoa","navolato","navy-yard-city","navyyardcity","nay","nayarit","nazareno","nazareth","nazas","nb","nba","nbh","nbs","nbsp","nbv","nc","ncg","nch","nck","ncm","ncn","nct","nd","nda","ndb","ndbn","ndd","nddg","nddl","nddp","ndg","ndh","ndj","ndm","ndph","ndr","ndt","ndv","ne","nealtican","near-north-side","near-south-side","nearnorthside","nearsouthside","neb","nebraska","nebraska-city","nebraskacity","necaxa","necoxcalco","necoxtla","nederland","nedrow","neebing","needham","needles","needville","neenah","neepawa","negaunee","negritas","neillsville","nejapa","nejapa-de-madero","nejapademadero","nekoosa","neligh","nellieburg","nellis-air-force-base","nellisairforcebase","nellysford","nelson","nelsonville","nem","nenehuaca","neodesha","neoga","neosho","nepantladesorjuanainesdelacruz","nepean","nephi","neponsit","nepopualco","neptune-beach","neptune-city","neptunebeach","neptunecity","nesconset","nescopeck","nesquehoning","ness-city","nesscity","netcong","nettleton","netzahualcoyotl","neuse-forest","neuseforest","neutla","neuville","nevada","nevada-city","nevadacity","new-albany","new-athens","new-augusta","new-baden","new-baltimore","new-beaver","new-bedford","new-berlin","new-berlinville","new-bern","new-bloomfield","new-boston","new-braunfels","new-bremen","new-brighton","new-britain","new-brockton","new-brunswick","new-buffalo","new-burlington","new-california","new-canaan","new-caney","new-carlisle","new-carrollton","new-cassel","new-castle","new-castle-northwest","new-century-ks","new-chicago","new-city","new-columbia","new-concord","new-cumberland","new-dorp","new-dorp-beach","new-durham","new-eagle","new-egypt","new-ellenton","new-fairfield","new-fairview","new-franklin","new-freedom","new-glarus","new-glasgow","new-gloucester","new-hamburg","new-hampshire","new-hampton","new-hartford","new-hartford-center","new-haven","new-hempstead","new-holland","new-holstein","new-hope","new-hyde-park","new-iberia","new-ipswich","new-jersey","new-johnsonville","new-kensington","new-kent","new-kingman-butler","new-lebanon","new-lenox","new-lexington","new-lisbon","new-llano","new-london","new-madrid","new-market","new-marlborough","new-martinsville","new-maryland","new-matamoras","new-mexico","new-miami","new-middletown","new-milford","new-orleans","new-oxford","new-palestine","new-paltz","new-paris","new-pekin","new-philadelphia","new-plymouth","new-port-richey","new-port-richey-east","new-prague","new-preston","new-providence","new-richland","new-richmond","new-river","new-roads","new-rochelle","new-rockford","new-sarpy","new-sharon","new-shoreham","new-smyrna-beach","new-south-memphis","new-springville","new-square","new-stanton","new-summerfield","new-tazewell","new-territory","new-toronto","new-town","new-ulm","new-union","new-vienna","new-waterford","new-waverly","new-wes-valley","new-westminster","new-whiteland","new-wilmington","new-windsor","new-york","new-york-city","new-york-mills","newalbany","newark","newathens","newaugusta","newaygo","newbaden","newbaltimore","newbeaver","newbedford","newberg","newberlin","newberlinville","newbern","newberry","newbloomfield","newboston","newbraunfels","newbremen","newbrighton","newbritain","newbrockton","newbrunswick","newbuffalo","newburg","newburgh","newburgh-heights","newburghheights","newburlington","newbury","newburyport","newcalifornia","newcanaan","newcaney","newcarlisle","newcarrollton","newcassel","newcastle","newcastlenorthwest","newcenturyks","newchicago","newcity","newcolumbia","newcomerstown","newconcord","newcumberland","newdorp","newdorpbeach","newdurham","neweagle","newegypt","newell","newellenton","newellton","newfairfield","newfairview","newfane","newfield","newfoundland","newfoundland-and-labrador","newfoundlandandlabrador","newfranklin","newfreedom","newglarus","newglasgow","newgloucester","newhamburg","newhampshire","newhampton","newhartford","newhartfordcenter","newhaven","newhempstead","newholland","newholstein","newhope","newhydepark","newiberia","newington","newipswich","newjersey","newjohnsonville","newkensington","newkent","newkingmanbutler","newkirk","newland","newlebanon","newlenox","newlexington","newlisbon","newllano","newlondon","newmadrid","newman","newmanstown","newmarket","newmarlborough","newmartinsville","newmaryland","newmatamoras","newmexico","newmiami","newmiddletown","newmilford","newnan","neworleans","newoxford","newpalestine","newpaltz","newparis","newpekin","newphiladelphia","newplymouth","newport","newport-beach","newport-east","newport-news","newportbeach","newporteast","newportnews","newportrichey","newportricheyeast","newprague","newpreston","newprovidence","newrichland","newrichmond","newriver","newroads","newrochelle","newrockford","newsarpy","newsharon","newshoreham","newsmyrnabeach","newsouthmemphis","newspringville","newsquare","newstanton","newsummerfield","newtazewell","newterritory","newton","newton-center","newton-corner","newton-falls","newton-highlands","newton-lower-falls","newton-upper-falls","newtonbrook-east","newtonbrook-west","newtonbrookeast","newtonbrookwest","newtoncenter","newtoncorner","newtonfalls","newtonhighlands","newtonlowerfalls","newtonupperfalls","newtonville","newtoronto","newtown","newtown-grant","newtowngrant","newulm","newunion","newvienna","newville","newwaterford","newwaverly","newwestminster","newwesvalley","newwhiteland","newwilmington","newwindsor","newyork","newyorkcity","newyorkmills","nexpan","nexticapan","nextipac","nezahualcoyotl","nezperce","nf","nfdl","nfl","nfm","nfo","nfv","ng","ngd","ngr","nh","nhc","nhp","ni","niagara","niagara-falls","niagara-on-the-lake","niagarafalls","niagaraonthelake","niantic","nibley","nice","nicetown","nicetown-tioga","nicetowntioga","niceville","nicholasville","nicholls","nichols-hills","nicholshills","nicholson","nickerson","nicolas-blanco-san-pancho","nicolas-bravo","nicolas-r-casillas","nicolas-romero","nicolas-ruiz","nicolasblancosanpancho","nicolasbravo","nicolasrcasillas","nicolasromero","nicolasruiz","nicolet","nicollet","nicoma-park","nicomapark","nidr","nieves","nigromante","nikiski","niland","niles","niltepec","ninety-six","ninetysix","ninguno-cereso","ningunocereso","ninnekah","ninos-heroes","ninosheroes","nipawin","nipomo","niskayuna","nissequogue","nisswa","nitro","niu-valley","niuvalley","niverville","niwot","nixa","nixon","nj","njdg","nk","nkb","nkc","nkl","nl","nlc","nle","nlec","nlf","nlr","nlv","nm","nmb","nmer","nmi","nmv","nn","nnhp","nns","no","noank","noble","nobleboro","noblesville","nocatee","nochistlan-de-mejia","nochistlandemejia","nocona","nocupetaro","noe-valley","noel","noevalley","nogales","nokesville","nokomis","nolanville","nolensville","nolo","nombre-de-dios","nombrededios","nome","nonantum","nonoava","nooksack","noonan","nop","nopala-de-villagran","nopaladevillagran","nopalapan","nopalera","nopaltepec","nopalucan","nora-springs","norasprings","norco","norcross","norfolk","norfolk-county","norfolkcounty","noria-de-angeles","noria-del-borrego-norias","noria-nueva","noriadeangeles","noriadelborregonorias","norianueva","norias-del-paso-hondo","norias-del-refugio","noriasdelpasohondo","noriasdelrefugio","norland","norlina","normal","norman","norman-wells","normandin","normandy","normandy-park","normandypark","normanwells","norridge","norridgewock","norris","norris-city","norriscity","norristown","norte-1ra-seccion-san-julian","norte1raseccionsanjulian","north-adams","north-alamo","north-amherst","north-amityville","north-andover","north-andrews-gardens","north-apollo","north-arlington","north-attleborough-center","north-auburn","north-augusta","north-aurora","north-babylon","north-ballston-spa","north-baltimore","north-barrington","north-bath","north-battleford","north-bay","north-bay-shore","north-bay-village","north-beach","north-beach-haven","north-bel-air","north-belle-vernon","north-bellmore","north-bellport","north-bend","north-bennington","north-bergen","north-berwick","north-bethesda","north-bibb","north-boston","north-braddock","north-branch","north-branford","north-brighton","north-brookfield","north-brooksville","north-browning","north-brunswick","north-caldwell","north-canton","north-cape-may","north-carolina","north-castle","north-catasauqua","north-center","north-charleroi","north-charleston","north-chicago","north-chicopee","north-college-hill","north-collins","north-conway","north-corbin","north-cowichan","north-creek","north-crossett","north-dakota","north-decatur","north-deland","north-druid-hills","north-eagle-butte","north-east","north-eastham","north-edwards","north-el-monte","north-elba","north-end","north-english","north-fair-oaks","north-falmouth","north-fond-du-lac","north-fork","north-fork-village","north-fort-lewis","north-fort-myers","north-gates","north-granby","north-great-river","north-grosvenor-dale","north-haledon","north-hampton","north-hartsville","north-haven","north-haverhill","north-hero","north-highlands","north-hills","north-hollywood","north-hudson","north-judson","north-kansas-city","north-kensington","north-key-largo","north-kingstown","north-kingsville","north-la-crosse","north-lakeport","north-lakeville","north-las-vegas","north-lauderdale","north-laurel","north-lawndale","north-lewisburg","north-liberty","north-lindenhurst","north-little-rock","north-logan","north-madison","north-manchester","north-mankato","north-massapequa","north-merrick","north-miami","north-miami-beach","north-middletown","north-muskegon","north-myrtle-beach","north-new-hyde-park","north-newton","north-oaks","north-ogden","north-olmsted","north-oysteryellow-point","north-palm-beach","north-patchogue","north-pekin","north-pembroke","north-peoria","north-perth","north-plainfield","north-plains","north-platte","north-plymouth","north-pole","north-port","north-portland","north-potomac","north-prairie","north-providence","north-puyallup","north-randall","north-reading","north-redington-beach","north-richland-hills","north-richmond","north-ridgeville","north-river-shores","north-riverdale","north-riverside","north-rock-springs","north-royalton","north-saanich","north-saint-paul","north-salt-lake","north-sarasota","north-scituate","north-sea","north-seekonk","north-shore","north-sioux-city","north-smithfield","north-spearfish","north-springfield","north-stamford","north-star","north-stjames-town","north-syracuse","north-terre-haute","north-tonawanda","north-tunica","north-tustin","north-vacherie","north-valley","north-valley-stream","north-vancouver","north-vernon","north-versailles","north-wales","north-wantagh","north-warren","north-webster","north-weeki-wachee","north-westport","north-wildwood","north-wilkesboro","north-windham","north-yelm","north-york","north-zanesville","northadams","northalamo","northamherst","northamityville","northampton","northandover","northandrewsgardens","northapollo","northarlington","northattleboroughcenter","northauburn","northaugusta","northaurora","northbabylon","northballstonspa","northbaltimore","northbarrington","northbath","northbattleford","northbay","northbayshore","northbayvillage","northbeach","northbeachhaven","northbelair","northbellevernon","northbellmore","northbellport","northbend","northbennington","northbergen","northberwick","northbethesda","northbibb","northborough","northboston","northbraddock","northbranch","northbranford","northbridge","northbrighton","northbrook","northbrookfield","northbrooksville","northbrowning","northbrunswick","northcaldwell","northcanton","northcapemay","northcarolina","northcastle","northcatasauqua","northcenter","northcharleroi","northcharleston","northchase","northchicago","northchicopee","northcollegehill","northcollins","northconway","northcorbin","northcowichan","northcreek","northcrest","northcrossett","northdakota","northdale","northdecatur","northdeland","northdruidhills","northeaglebutte","northeast","northeast-ithaca","northeastham","northeastithaca","northedwards","northelba","northelmonte","northend","northenglish","northern-cambria","northern-liberties","northern-mariana-islands","northerncambria","northernliberties","northernmarianaislands","northfairoaks","northfalmouth","northfield","northfonddulac","northfork","northforkvillage","northfortlewis","northfortmyers","northgate","northgates","northglenn","northgranby","northgreatriver","northgrosvenordale","northhaledon","northhampton","northhartsville","northhaven","northhaverhill","northhero","northhighlands","northhills","northhollywood","northhudson","northjudson","northkansascity","northkensington","northkeylargo","northkingstown","northkingsville","northlacrosse","northlake","northlakeport","northlakes","northlakeville","northlasvegas","northlauderdale","northlaurel","northlawndale","northlewisburg","northliberty","northlindenhurst","northlittlerock","northlogan","northmadison","northmanchester","northmankato","northmassapequa","northmerrick","northmiami","northmiamibeach","northmiddletown","northmuskegon","northmyrtlebeach","northnewhydepark","northnewton","northoaks","northogden","northolmsted","northoysteryellowpoint","northpalmbeach","northpatchogue","northpekin","northpembroke","northpeoria","northperth","northplainfield","northplains","northplatte","northplymouth","northpole","northport","northportland","northpotomac","northprairie","northprovidence","northpuyallup","northrandall","northreading","northredingtonbeach","northrichlandhills","northrichmond","northridge","northridgeville","northriverdale","northrivershores","northriverside","northrocksprings","northroyalton","northsaanich","northsaintpaul","northsaltlake","northsarasota","northscituate","northsea","northseekonk","northshore","northsiouxcity","northsmithfield","northspearfish","northspringfield","northstamford","northstar","northstjamestown","northsyracuse","northterrehaute","northtonawanda","northtunica","northtustin","northumberland","northvacherie","northvale","northvalley","northvalleystream","northvancouver","northvernon","northversailles","northview","northville","northwales","northwantagh","northwarren","northwebster","northweekiwachee","northwest-harbor","northwest-harborcreek","northwest-harwich","northwest-harwinton","northwest-ithaca","northwest-territories","northwestharbor","northwestharborcreek","northwestharwich","northwestharwinton","northwestithaca","northwestport","northwestterritories","northwildwood","northwilkesboro","northwindham","northwood","northwoods","northyelm","northyork","northzanesville","norton","norton-center","norton-shores","nortoncenter","nortonshores","nortonville","norwalk","norway","norwell","norwich","norwood","norwood-historical","norwood-young-america","norwoodhistorical","norwoodyoungamerica","notl","notre-dame","notre-dame-de-grace","notre-dame-de-lile-perrot","notre-dame-des-prairies","notre-dame-du-lac","notre-dame-du-mont-carmel","notredame","notredamedegrace","notredamedelileperrot","notredamedesprairies","notredamedulac","notredamedumontcarmel","nottingham","nova-scotia","novara","novascotia","novato","novi","nowata","nowthen","noyack","noyan","np","npb","npc","npnc","npr","npre","nr","nrb","nrc","nrh","nrs","ns","nsb","nsc","nsjc","nsji","nsjp","nsl","nsm","nsp","nsr","nss","nst","nt","nth","ntl","nu","nueces","nueva-america","nueva-ameyalco","nueva-apolonia","nueva-ciudad-guerrero","nueva-colombia","nueva-esperanza","nueva-frontera","nueva-independencia","nueva-italia-de-ruiz","nueva-libertad","nueva-libertad-el-colorado","nueva-morelia","nueva-palestina","nueva-primavera","nueva-rosita","nueva-santa-rosa","nueva-sesecapa","nueva-tenochtitlan-rizo-de-oro","nueva-villa-de-padilla","nuevaamerica","nuevaameyalco","nuevaapolonia","nuevaciudadguerrero","nuevacolombia","nuevadivisiondelbayoguatemala","nuevaesperanza","nuevafrontera","nuevaindependencia","nuevaitaliaderuiz","nuevalibertad","nuevalibertadelcolorado","nuevamorelia","nuevapalestina","nuevaprimavera","nuevarosita","nuevasantarosa","nuevasesecapa","nuevatenochtitlanrizodeoro","nuevavilladepadilla","nuevo","nuevo-amatenango","nuevo-balsas","nuevo-carmen-tonapac","nuevo-casas-grandes","nuevo-crucitas","nuevo-francisco-leon","nuevo-guerrero","nuevo-ideal","nuevo-ixcatlan","nuevo-juan-del-grijalva","nuevo-laredo","nuevo-leon","nuevo-limar","nuevo-mexico","nuevo-michoacan-estacion-riito","nuevo-milenio-valdivia","nuevo-morelos","nuevo-naranjo","nuevo-necaxa","nuevo-nicapa","nuevo-pacayal","nuevo-progreso","nuevo-pumpuapa-cereso","nuevo-san-jose-independencia","nuevo-san-juan-chamula","nuevo-san-juan-parangaricutiro","nuevo-san-martin","nuevo-san-miguel","nuevo-sitala","nuevo-tampaon","nuevo-tantoan","nuevo-torno-largo","nuevo-urecho","nuevo-vallarta","nuevo-vicente-guerrero","nuevo-volcan-chichonal","nuevo-xcan","nuevo-xochimilco","nuevo-zirosto","nuevoamatenango","nuevobalsas","nuevocarmentonapac","nuevocasasgrandes","nuevoceresoregionaldealtamira","nuevocrucitas","nuevofranciscoleon","nuevoguerrero","nuevoideal","nuevoixcatlan","nuevojuandelgrijalva","nuevolaredo","nuevoleon","nuevolimar","nuevomexico","nuevomichoacanestacionriito","nuevomileniovaldivia","nuevomorelos","nuevonaranjo","nuevonecaxa","nuevonicapa","nuevopacayal","nuevopasonazarenochichicazapa","nuevoprogreso","nuevopumpuapacereso","nuevosanjoseindependencia","nuevosanjuanchamula","nuevosanjuanparangaricutiro","nuevosanmartin","nuevosanmiguel","nuevositala","nuevotampaon","nuevotantoan","nuevotornolargo","nuevourecho","nuevovallarta","nuevovicenteguerrero","nuevovolcanchichonal","nuevoxcan","nuevoxochimilco","nuevozirosto","nuf","numaran","nunavut","nunda","nunkini","nurillo","nurio","nutley","nutter-fort","nutterfort","nuuanu-punchbowl","nuuanupunchbowl","nuxco","nv","nvc","nvdp","nvg","nvr","nvs","nw","nwt","nwv","nww","nx","ny","nya","nyack","nyc","nye","nym","nyssa","nz","o1s","o4s","oa","oacalco","oafb","oak-bay","oak-bluffs","oak-brook","oak-cliff-place","oak-creek","oak-forest","oak-grove","oak-harbor","oak-hill","oak-hill-park","oak-hills","oak-hills-place","oak-island","oak-lawn","oak-leaf","oak-park","oak-park-heights","oak-point","oak-ridge","oak-ridge-north","oak-trail-shores","oak-valley","oak-view","oakbay","oakbluffs","oakboro","oakbrook","oakbrook-terrace","oakbrookterrace","oakcliffplace","oakcreek","oakdale","oakes","oakfield","oakforest","oakgrove","oakham","oakharbor","oakhill","oakhillpark","oakhills","oakhillsplace","oakhurst","oakisland","oakland","oakland-city","oakland-park","oaklandcity","oaklandpark","oaklawn","oakleaf","oakleaf-plantation","oakleafplantation","oakley","oaklyn","oakmont","oakpark","oakparkheights","oakpoint","oakport","oakridge","oakridgenorth","oakton","oaktrailshores","oakvalley","oakview","oakville","oakwood","oakwood-hills","oakwood-village","oakwoodhills","oakwoodvillage","oasis","oatfield","oax","oaxaca","oaxtepec","ob","obbr","obc","oberlin","obetz","obion","oblong","obrajuelo","obts","oc","ocala","ocampo","occidental","occidente-4ta-seccion","occidente-san-francisco","occidente4taseccion","occidentesanfrancisco","occoquan","ocean-acres","ocean-bluff-brant-rock","ocean-city","ocean-gate","ocean-grove","ocean-park","ocean-pines","ocean-pointe","ocean-ridge","ocean-shores","ocean-springs","ocean-view","oceana","oceanacres","oceanbluffbrantrock","oceancity","oceangate","oceangrove","oceano","oceanpark","oceanpines","oceanpointe","oceanport","oceanridge","oceanshores","oceanside","oceansprings","oceanview","ocelota","ocho-de-enero","ochodeenero","ochusjob","ocilla","ococh","ocoee","oconahua","oconnor-parkview","oconnorparkview","oconomowoc","oconto","oconto-falls","ocontofalls","ocopulco","ocosingo","ocotal-chico","ocotalchico","ocotepec","ocotequila","ocotillo","ocotitlan","ocotlamanic","ocotlan","ocotlan-de-betancourt","ocotlan-de-morelos","ocotlan-de-venustiano-carranza","ocotlandebetancourt","ocotlandemorelos","ocotlandevenustianocarranza","ocoxaltepec","ocoyoacac","ocozocoautla-de-espinosa","ocozocoautladeespinosa","ocozotepec","ocp","ocr","octaviano-lopez","octavianolopez","octavio-paz","octaviopaz","octeyuco-dos-mil","octeyucodosmil","ocuapan","ocuilan-de-arteaga","ocuilandearteaga","ocuiltzapoyo","ocuituco","ocumicho","ocurio","od","oda","odb","ode","odell","odem","odenton","odenville","odessa","odh","odin","odj","odm","odon","odr","odvc","odz","oe","oelwein","oey","of","ofallon","offutt-air-force-base","offuttairforcebase","ofg","og","ogallala","ogden","ogden-dunes","ogdendunes","ogdensburg","ogh","oglala","oglesby","oglethorpe","ogontz","ogunquit","oh","ohatchee","ohg","ohio","ohioville","ohkay-owingeh","ohkayowingeh","ohp","ohuapan","ohuatipa","ohuilapam","oi","oil-city","oilcity","oildale","oilton","oj","ojai","ojinaga","ojite-rancho-nuevo","ojiteranchonuevo","ojitos","ojo-caliente","ojo-de-agua","ojo-de-agua-de-ballesteros","ojo-de-agua-de-bucio","ojo-de-agua-de-crucitas","ojo-de-agua-de-la-trinidad","ojo-de-agua-de-mendoza","ojo-de-agua-de-moran","ojo-de-agua-de-palmillas","ojo-de-agua-de-solano","ojo-de-agua-del-refugio","ojo-de-rana","ojo-seco","ojocaliente","ojodeagua","ojodeaguadeballesteros","ojodeaguadebucio","ojodeaguadecrucitas","ojodeaguadelatrinidad","ojodeaguadelrefugio","ojodeaguademendoza","ojodeaguademoran","ojodeaguadepalmillas","ojodeaguadesolano","ojoderana","ojoseco","ojuelos-de-jalisco","ojuelosdejalisco","ojus","ok","oka","okanagan","okanagan-falls","okanaganfalls","okanogan","okarche","okauchee-lake","okaucheelake","okawville","okeechobee","okeene","okemah","okemos","oklahoma","oklahoma-city","oklahomacity","okmulgee","okolona","okotoks","ol","ola","olathe","olcott","olcuatitan","old-bethpage","old-bridge","old-brookville","old-city","old-east-york","old-fig-garden","old-forge","old-greenwich","old-jamestown","old-jefferson","old-mystic","old-orchard","old-orchard-beach","old-river-winfree","old-saybrook","old-saybrook-center","old-tappan","old-town","old-westbury","oldbethpage","oldbridge","oldbrookville","oldcity","oldeastyork","oldfiggarden","oldforge","oldgreenwich","oldjamestown","oldjefferson","oldmystic","oldorchard","oldorchardbeach","oldriverwinfree","olds","oldsaybrook","oldsaybrookcenter","oldsmar","oldtappan","oldtown","oldwestbury","olean","oley","olga","olinala","olinda-cdp","olindacdp","olintepec","olintla","olivarez","olive-branch","olive-hill","olivebranch","olivehill","olivehurst","oliver","oliver-springs","oliversprings","olivet","olivette","olivia","olla","olmito","olmos-park","olmospark","olmsted-falls","olmstedfalls","olney","olomana","olton","oluta","olympia","olympia-fields","olympia-heights","olympiafields","olympiaheights","olyphant","om","omaha","omak","omao","omao-kukuiula","omaokukuiula","omealca","omega","omemee","ometepec","omitlan-de-juarez","omitlandejuarez","omoa","omro","on","onalaska","onancock","onarga","onavas","onawa","once-de-abril","oncedeabril","oneida","oneill","oneonta","onida","onion-creek","onioncreek","onondaga","onset","ontario","ontonagon","oo","oob","ooef","oolitic","oologah","oostburg","op","opa-locka","opalocka","opelika","opelousas","oph","opichen","opodepe","opopeo","opp","opportunity","oquawka","oquirrh","oquitoa","or","oracle","oradell","oran","orange","orange-beach","orange-city","orange-cove","orange-grove","orange-lake","orange-park","orangebeach","orangeburg","orangecity","orangecove","orangegrove","orangelake","orangepark","orangetree","orangevale","orangeville","orba-infiernito","orbainfiernito","orchard-city","orchard-grass-hills","orchard-hills","orchard-homes","orchard-lake","orchard-mesa","orchard-park","orchardcity","orchardgrasshills","orchardhills","orchardhomes","orchardlake","orchardmesa","orchardpark","orchards","orchidlands-estates","orchidlandsestates","orcutt","ord","orduna-de-abajo","orduna-de-arriba","ordunadeabajo","ordunadearriba","ordway","ore-city","orecity","oregon","oregon-city","oregoncity","oreland","orem","orford","orfordville","orient-heights","oriental","oriental-de-zapata","orientaldezapata","oriente-1ra-seccion","oriente1raseccion","oriente1raseccionsantodomingo","oriente2daseccionpalmahuaca","oriente2daseccionsancayetano","oriente6taseccionlosmulatos","orientheights","orilla-del-monte","orilladelmonte","orillia","orinda","oriole-beach","oriolebeach","orion","oriskany","orizaba","orizabita","orland","orland-hills","orland-park","orlandhills","orlando","orlandpark","orleans","orlovista","ormond-beach","ormond-by-the-sea","ormondbeach","ormondbythesea","ormstown","orn","oro-valley","orofino","oromocto","orono","oronoco","oronogo","orosi","orovalley","oroville","oroville-east","orovilleeast","orranteno","orrington","orrville","orting","ortiz","ortonville","orw","orwell","orwigsburg","os","osage","osage-beach","osage-city","osagebeach","osagecity","osakis","osawatomie","osborne","osburn","osc","oscar-soto-maynez","oscarsotomaynez","osceola","osceola-mills","osceolamills","osf","osgood","osgoode","oshawa","oshkosh","oskaloosa","osm","oso-viejo","osoviejo","osoyoos","osprey","osseo","ossian","ossining","ossipee","ossun","osterville","ostuacan","osumacinta","oswego","ot","otaez","otates","otatitlan","otatlan","oteapan","othello","otilpan","otis","otis-orchards-east-farms","otisorchardseastfarms","otisville","ots","otsego","ottawa","ottawa-hills","ottawahills","otterbein","otterburn-park","otterburnpark","ottumwa","otumba","otzoloapan","ouray","outlook","ov","overbrook","overland","overland-park","overlandpark","overlea","overton","ovid","oviedo","ovilla","ow","owasso","owatonna","owego","owen-sound","owens-cross-roads","owensboro","owenscrossroads","owensound","owensville","owenton","owings","owings-mills","owingsmills","owingsville","owls-head","owlshead","owosso","oxbow","oxchuc","oxcum","oxeloco","oxford","oxford-circle","oxfordcircle","oxiacaque","oxinam","oxkutzkab","oxnard","oxoboxo-river","oxoboxoriver","oxolotan","oxon-hill","oxon-hill-glassmanor","oxonhill","oxonhillglassmanor","oxtotipac","oxtotitlan","oyameles-de-hidalgo","oyamelesdehidalgo","oyster-bay","oyster-bay-cove","oyster-creek","oysterbay","oysterbaycove","oystercreek","ozark","ozelonacaxtla","ozona","ozone-park","ozonepark","oztotitlan","ozuluama-de-mascarenas","ozuluamademascarenas","ozumba-de-alzate","ozumbadealzate","p1","p1sp","pa","pabellon-de-arteaga","pabellon-de-hidalgo","pabellondearteaga","pabellondehidalgo","pablo","pablo-l-sidar","pablolsidar","pace","pacheco","pachiquita","pacho-nuevo","pacho-viejo","pachonuevo","pachoviejo","pachuca-de-soto","pachucadesoto","pachuquilla","pacific","pacific-city","pacific-grove","pacific-palisades","pacifica","pacificcity","pacificgrove","pacificpalisades","pacolet","pacu","paddock-lake","paddocklake","paden-city","padencity","paducah","pae","page","pagedale","pageland","pagosa-springs","pagosasprings","pahactla","pahala","pahokee","pahrump","pahua-hueca","pahuahueca","pahuatlan","pahuatlan-de-valle","pahuatlandevalle","paia","painesville","paint-rock","painted-post","paintedpost","paintla","paintrock","paintsville","paisanos","paisley","pajacuaran","pajapan","pajaro","palacios","palama","palatine","palatka","palau","palenque","palenville","palermo","palestine","palisade","palisades-park","palisadespark","palizada","palm","palm-aire","palm-bay","palm-beach","palm-beach-gardens","palm-beach-shores","palm-city","palm-coast","palm-desert","palm-harbor","palm-river-clair-mel","palm-springs","palm-springs-north","palm-valley","palma-grande","palma-pegada","palma-sola","palmagrande","palmaire","palmapegada","palmar-chico","palmar-de-bravo","palmar-de-cuautla","palmar-grande","palmar-primero","palmarchico","palmardebravo","palmardecuautla","palmargrande","palmarito-tochapan","palmaritotochapan","palmarprimero","palmas-de-abajo","palmasdeabajo","palmasola","palmbay","palmbeach","palmbeachgardens","palmbeachshores","palmcity","palmcoast","palmdale","palmdesert","palmer","palmer-heights","palmer-lake","palmerheights","palmerlake","palmerston-little-italy","palmerstonlittleitaly","palmerton","palmetto","palmetto-bay","palmetto-estates","palmettobay","palmettoestates","palmharbor","palmhurst","palmillas","palmillas-de-san-juan","palmillasdesanjuan","palmira","palmito-del-verde","palmitodelverde","palmona-park","palmonapark","palmriverclairmel","palmsprings","palmspringsnorth","palmvalley","palmview","palmview-south","palmviewsouth","palmyra","palmyra-atoll","palmyraatoll","palo","palo-alto","palo-bendito","palo-blanco","palo-cedro","palo-colorado","palo-gacho","palo-mulato","palo-pinto","palo-seco-el-gato","paloalto","palobendito","paloblanco","palocedro","palocolorado","palogacho","palolo","paloma-creek","paloma-creek-south","palomacreek","palomacreeksouth","palomar","palomares","palomas","palomulato","palopinto","palos-altos","palos-blancos","palos-heights","palos-hills","palos-park","palos-verdes","palos-verdes-estates","palosaltos","palosblancos","palosecoelgato","palosheights","paloshills","palospark","palosverdes","palosverdesestates","palouse","pamatacuaro","pampa","pamplico","pana","panaba","panales","panales-jamaica-canones","panalesjamaicacanones","panama","panama-city","panama-city-beach","panamacity","panamacitybeach","pandora","pangnirtung","panguitch","panhandle","panhe","panindicuaro","pannill-fork","pannillfork","panora","panorama-village","panoramavillage","panotla","pantanal","pantego","pantelho","pantepec","panthersville","pantitlan","pantla","pantops","panuaya","panuco","panuco-de-coronado","panucodecoronado","paola","paoli","paonia","papaikou","papaloapan","papaloctipan","papalotla","papanoa","papantla-de-olarte","papantladeolarte","papatlatla","papatlazolco","papillion","papineauville","paracho-de-verduzco","parachodeverduzco","parachute","paracuaro","paradis","paradise","paradise-heights","paradise-hills","paradise-valley","paradiseheights","paradisehills","paradisevalley","paragould","parahuen","paraiso","paraiso-del-grijalva","paraiso-novillero","paraisodelgrijalva","paraisonovillero","paraje-el-mirador","paraje-la-pera","paraje-nuevo","paraje-trejo-el-chaparral","parajeelmirador","parajelapera","parajenuevo","parajetrejoelchaparral","paramount","paramount-long-meadow","paramountlongmeadow","paramus","parangarico","paras","parc-boutin","parcboutin","parchment","pardeeville","pardo","paredes","paredon","paredon-colorado","paredoncolorado","pareo","paricuaro","parilla","paris","parish","park-city","park-falls","park-forest","park-forest-village","park-hill","park-hills","park-layne","park-rapids","park-ridge","park-river","park-slope","park-view","parkchester","parkcity","parker","parker-city","parkercity","parkers-prairie","parkersburg","parkersprairie","parkesburg","parkfalls","parkforest","parkforestvillage","parkhill","parkhills","parkin","parkland","parklayne","parkrapids","parkridge","parkriver","parks","parksdale","parkside","parkslope","parkston","parksville","parkview","parkville","parkway","parkwood","parkwood-manor","parkwoodmanor","parkwoods-donalda","parkwoodsdonalda","parlier","parma","parma-heights","parmaheights","parole","parowan","parque-urbano-napateco","parquedepoblamientosolidaridad","parqueindustrialciudadmitras","parqueurbanonapateco","parral","parras-de-la-fuente","parrasdelafuente","parrilla-ii","parrillaii","parrsboro","parry-sound","parrysound","parshall","parsippany","parsons","parsonsfield","pasadena","pasadena-hills","pasadenahills","pasaje","pasatiempo","pascagoula","pascala-del-oro","pascaladeloro","paschall","pasco","pascoag","paseo-de-las-canadas","paseo-de-san-javier","paseo-del-prado","paseo-puente-viejo","paseodelascanadas","paseodelprado","paseodesanjavier","paseopuenteviejo","paseos-de-itzincab","paseos-de-la-pradera","paseos-de-san-juan","paseos-del-marques","paseos-del-pedregal","paseosdeitzincab","paseosdelapradera","paseosdelmarques","paseosdelpedregal","paseosdelvallefraccionamiento","paseosdesanjuan","paso-blanco","paso-bonito","paso-canoa","paso-carretas","paso-de-arena","paso-de-cuarenta","paso-de-hidalgo-paso-de-alamos","paso-de-la-mina-3ra-seccion","paso-de-mata","paso-de-mendez","paso-de-nunez-buenavista","paso-de-ovejas","paso-de-pirules","paso-de-valencia","paso-del-correo","paso-del-macho","paso-del-toro","paso-hondo","paso-morelos","paso-nacional","paso-real-de-sarabia","paso-robles","pasoblanco","pasobonito","pasocanoa","pasocarretas","pasodearena","pasodecuarenta","pasodehidalgopasodealamos","pasodelamina2daseccionbarrial","pasodelamina3raseccion","pasodelcorreo","pasodelmacho","pasodeltoro","pasodemata","pasodemendez","pasodenunezbuenavista","pasodeovejas","pasodepirules","pasodevalencia","pasohondo","pasomorelos","pasonacional","pasorealdesarabia","pasorobles","pass-christian","passaic","passapatanzy","passchristian","paste","pastelera","pastor-ortiz","pastor-rovaix","pastora","pastoria","pastorortiz","pastorrovaix","patambo","pataskala","patchogue","paterson","pathe","patla","patlicha","patosil","patria-nueva","patrianueva","patrianuevasanjoseelcontento","patrick-springs","patricksprings","patten","patterson","patterson-tract","pattersontract","patton","patton-village","pattonvillage","patuan","patzcuaro","paul","paulden","paulding","paulina","paullina","pauls-valley","paulsboro","paulsvalley","pauoa","pavencul","paw-paw","paw-paw-lake","pawcatuck","pawhuska","pawlet","pawling","pawnee","pawnee-city","pawneecity","pawpaw","pawpawlake","pawtucket","paxtang","paxtepec","paxtle","paxton","paxtonia","payette","payne","paynesville","payson","pb","pbg","pbh","pbs","pc","pc4","pcb","pcc","pcec","pchg","pcm","pcs","pcv","pd","pda","pdao","pdap","pdb","pdc","pdd","pddl","pde","pdg","pdh","pdi","pdj","pdl","pdlc","pdlf","pdlh","pdli","pdll","pdlp","pdls","pdlv","pdm","pdmc","pdn","pdnb","pdo","pdp","pdps","pdr","pds","pdsa","pdsf","pdsj","pdsr","pdt","pdv","pdvf","pdz","pe","pea-ridge","peabody","peace-river","peaceful-valley","peacefulvalley","peaceriver","peach-lake","peach-springs","peachlake","peachland","peachsprings","peachtree-city","peachtree-corners","peachtreecity","peachtreecorners","peapack","pearidge","pearisburg","pearl","pearl-beach","pearl-city","pearl-river","pearland","pearlbeach","pearlcity","pearlington","pearlriver","pearsall","pearson","pebble-creek","pebblecreek","pec","pecan-acres","pecan-grove","pecan-plantation","pecanacres","pecangrove","pecanplantation","pecatonica","pechucalco","pechucalco2daseccionlascruces","pecos","peculiar","ped","pedernales","pedley","pedregal-de-san-jose","pedregaldesanjose","pedregoso","pedricena","pedro-amaro","pedro-escobedo","pedroamaro","pedroescobedo","peebles","peekskill","pegram","pegueros","pei","pekin","pelahatchie","pelham","pelham-manor","pelhammanor","pelican-bay","pelican-narrows","pelican-rapids","pelicanbay","pelicannarrows","pelicanrapids","pell-city","pell-lake","pella","pellcity","pelllake","pelmo-park-humberlea","pelmoparkhumberlea","pelt","pem","pemberton","pemberton-heights","pembertonheights","pemberville","pemberwick","pembroke","pembroke-park","pembroke-pines","pembrokepark","pembrokepines","pemucho","pen-argyl","pena-blanca","pena-colorada","pena-del-panal","pena-flores-palo-verde","penablanca","penacolorada","penadelpanal","penaflorespaloverde","penamiller","penargyl","penbrook","pencuyut","pender","pendleton","penhold","penitas","penjamillo-de-degollado","penjamillodedegollado","penjamo","penn-estates","penn-hills","penn-valley","penn-wynne","penn-yan","penndel","pennestates","penngrove","pennhills","pennington","pennington-gap","penningtongap","penns-grove","pennsauken","pennsboro","pennsburg","pennsgrove","pennside","pennsport","pennsville","pennsylvania","pennvalley","pennville","pennwynne","pennyan","pennypack","pennypack-woods","pennypackwoods","penobscot","penon-blanco","penonblanco","penrose","penryn","pensacola","penticton","penuela","penuelas","penuelas-el-cienegal","penuelaselcienegal","peoria","peoria-heights","peoriaheights","peosta","peotillos","peotone","pepeekeo","pepper-pike","pepperell","peppermill-village","peppermillvillage","pepperpike","pequot-lakes","pequotlakes","peralta","peras","perez-de-galeana","perezdegaleana","perezville","perham","periban-de-ramos","peribanderamos","pericos","pericotepec","peridot","perkasie","perkins","perla-de-acapulco","perladeacapulco","perote","perris","perry","perry-hall","perry-heights","perry-park","perryhall","perryheights","perryman","perryopolis","perrypark","perrysburg","perryton","perryville","perseverancia","pershing","perth","perth-amboy","perthamboy","peru","peshtigo","pesqueira","pesqueria","petacalco","petal","petalcingo","petaluma","petapa","petaquillas","petatlan","petawawa","peterborough","petersburg","petite-bourgogne","petitebourgogne","petlalcingo","peto","petoskey","petrolia","pevely","pewaukee","pewee-valley","peweevalley","pezmatlan","pf","pfdc","pflugerville","pfpv","pfv","pg","pgg","pgi","pgls","pgm","ph","pharr","phelan","phelps","phenix-city","phenixcity","phi","phil-campbell","philadelphia","philcampbell","philip","philippi","philipsburg","phillips","phillipsburg","phillipston","philmont","philo","philomath","phippsburg","phoenix","phoenix-lake","phoenixlake","phoenixville","pi","piaxtla","piaxtla-de-abajo","piaxtladeabajo","pic","picardias","picayune","pich","pichataro","picholco","pichucalco","pickens","pickering","pickerington","picm","picnic-point","picnic-point-north-lynnwood","picnicpoint","picnicpointnorthlynnwood","pico-rivera","picorivera","picton","pictou","picture-butte","picture-rocks","picturebutte","picturerocks","pie-de-gallo","piedegallo","piedmont","piedra-blanca","piedra-de-amolar","piedra-gorda","piedra-labrada","piedra-parada","piedra-pesada","piedra-pinta","piedrablanca","piedradeamolar","piedragorda","piedralabrada","piedraparada","piedrapesada","piedrapinta","piedras-de-lumbre","piedras-negras","piedrasdelumbre","piedrasnegras","pierce","pierce-city","piercecity","pierceton","piermont","pierre","pierre-part","pierrepart","pierreville","pierson","pierz","pigeon","pigeon-forge","pigeonforge","piggott","pihuamo","pijijiapan","pike-creek","pike-creek-valley","pike-road","pikecreek","pikecreekvalley","pikeroad","pikesville","piketon","pikeville","pilcaya","piletas","pilot-butte","pilot-mountain","pilot-point","pilot-rock","pilotbutte","pilotmountain","pilotos","pilotpoint","pilotrock","pima","pimmit-hills","pimmithills","pinal","pinal-de-amoles","pinaldeamoles","pinardville","pinch","pincher-creek","pinchercreek","pinckney","pinckneyville","pinconning","pincourt","pine","pine-beach","pine-bluff","pine-bluffs","pine-bush","pine-castle","pine-city","pine-crest","pine-grove","pine-grove-mills","pine-hill","pine-hills","pine-island","pine-island-center","pine-island-ridge","pine-knoll-shores","pine-knot","pine-lake-park","pine-lawn","pine-level","pine-manor","pine-mountain","pine-mountain-club","pine-plains","pine-prairie","pine-ridge","pine-ridge-at-crestwood","pine-valley","pinebeach","pinebluff","pinebluffs","pinebush","pinecastle","pinecity","pinecrest","pinedale","pinegrove","pinegrovemills","pinehill","pinehills","pinehurst","pineisland","pineislandcenter","pineislandridge","pineknollshores","pineknot","pinelakepark","pinelawn","pinelevel","pinellas","pinellas-park","pinellaspark","pinemanor","pinemountain","pinemountainclub","pineplains","pineprairie","pineridge","pineridgeatcrestwood","pinetop-lakeside","pinetoplakeside","pinetops","pinevalley","pineville","pinewood","pinewood-estates","pinewoodestates","piney","piney-green","piney-point-village","pineygreen","pineypointvillage","pingree-grove","pingreegrove","pinicuaro","pink","pino-suarez","pinole","pinon-hills","pinonhills","pinos","pinosuarez","pinotepa-de-don-luis","pinotepa-nacional","pinotepadedonluis","pinotepanacional","pinson","pintillo","pinzandaro","pioche","pioneer","pioneer-village","pioneervillage","piperton","pipestone","piqua","pir","pirtleville","piru","pisaflores","piscataway","piscila","pismo-beach","pismobeach","pistakee-highlands","pistakeehighlands","piste","pitahayal","pitcairn","pitiquito","pitman","pitt-meadows","pittmeadows","pittsboro","pittsburg","pittsburgh","pittsfield","pittsford","pittston","pittsville","pittville","pixley","pixoy","pj","pjc","pjlm","pjs","pk","pks","pl","placentia","placer","placeres-del-oro","placeresdeloro","placerville","placid-lakes","placidlakes","placitas","plain-city","plain-view","plaincity","plainedge","plainfield","plainfield-village","plainfieldvillage","plains","plainsboro-center","plainsborocenter","plainview","plainville","plainwell","plaistow","plan-de-agua-prieta","plan-de-arroyos","plan-de-ayala","plan-de-ayala-campo-cinco","plan-de-iguala","plan-de-las-hayas","plan-del-rio","plan-guanajuato-la-sandia","planada","plancarte","plandeaguaprieta","plandearroyos","plandeayala","plandeayalacampocinco","plandeiguala","plandelashayas","plandelrio","plandome","plandome-heights","plandomeheights","planguanajuatolasandia","plankinton","plano","plant-city","plantagenet","plantation","plantation-mobile-home-park","plantationmobilehomepark","plantcity","plantersville","plaquemine","platanillo","plateau","plateros","platon-sanchez","platonsanchez","platte","platte-city","plattecity","plattekill","platteville","plattsburg","plattsburgh","plattsburgh-west","plattsburghwest","plattsmouth","plattsville","playa-azul","playa-chica","playa-de-chachalacas","playa-de-la-libertad","playa-del-carmen","playa-vicente","playaazul","playachica","playadechachalacas","playadelalibertad","playadelcarmen","playas-del-rosario","playasdelrosario","playavicente","playter-estates-danforth","playterestatesdanforth","plaza-nueva","plazanueva","ple","pleak","pleasant-gap","pleasant-garden","pleasant-grove","pleasant-hill","pleasant-hills","pleasant-prairie","pleasant-ridge","pleasant-run","pleasant-run-farm","pleasant-valley","pleasant-view","pleasantgap","pleasantgarden","pleasantgrove","pleasanthill","pleasanthills","pleasanton","pleasantprairie","pleasantridge","pleasantrun","pleasantrunfarm","pleasantvalley","pleasantview","pleasantville","pleasure-ridge-park","pleasureridgepark","plentywood","plessisville","pli","plm","plover","plp","pls","plum","plum-creek","plum-grove","pluma-hidalgo","plumahidalgo","plumas","plumas-lake","plumaslake","plumcreek","plumgrove","plummer","plumsteadville","plutarcoeliascalleslaygriega","plymouth","plymouth-meeting","plymouthmeeting","plympton","pm","pmc","pmep","pmhp","pn","pnc","pndm","pnt","po","poblado-10","poblado-c-33-20-de-noviembre","poblado-chulavista-el-chorizo","poblado-cinco","poblado-dos","poblado-numero-cinco","poblado-tres","poblado10","pobladoc3320denoviembre","pobladochulavistaelchorizo","pobladocinco","pobladodos","pobladonumerocinco","pobladotres","pocahontas","pocasset","pocatello","pocboc","pochahuizco","pochalcatl","pochotillo","pochutla","pocitos","pocola","pocomoke-city","pocomokecity","pocono-pines","pocono-ranch-lands","poconopines","poconoranchlands","poestenkill","pohenegamook","poinciana","point-baker","point-breeze","point-clear","point-lookout","point-marion","point-of-rocks","point-pleasant","point-pleasant-beach","point-roberts","pointbaker","pointbreeze","pointclear","pointe-calumet","pointe-claire","pointe-du-lac","pointecalumet","pointeclaire","pointedulac","pointlookout","pointmarion","pointofrocks","pointpleasant","pointpleasantbeach","pointroberts","poipu","pojoaque","polanco","poland","poligonos","polk","polk-city","polkcity","polkton","pollock-pines","pollockpines","polo","pololcingo","polotitlan-de-la-ilustracion","polotitlandelailustracion","polson","polutla","polyuc","pomacuaran","pomeroy","pomoca","pomona","pompano-beach","pompano-beach-highlands","pompanobeach","pompanobeachhighlands","pomposo-castellanos","pomposocastellanos","pompton-lakes","pomptonlakes","pomuch","ponca","ponca-city","poncacity","ponce-inlet","ponceinlet","ponchatoula","ponciano-arriaga","poncianoarriaga","poncitlan","pond-inlet","ponder","ponderay","ponderosa-park","ponderosa-pine","ponderosapark","ponderosapine","pondinlet","ponoka","pont-rouge","ponte-vedra-beach","pontevedrabeach","pontiac","pontoon-beach","pontoonbeach","pontotoc","pontrouge","pooler","poolesville","poplar","poplar-bluff","poplar-cotton-center","poplar-grove","poplarbluff","poplarcottoncenter","poplargrove","poplarville","popo-park","popola","popolnah","popopark","poquonock-bridge","poquonockbridge","poquoson","por","porcupine","porfirio-diaz","porfiriodiaz","port-alberni","port-allegany","port-allen","port-angeles","port-angeles-east","port-aransas","port-arthur","port-barre","port-barrington","port-byron","port-carbon","port-cartier","port-charlotte","port-chester","port-clinton","port-colborne","port-coquitlam","port-dickinson","port-edwards","port-ewen","port-gibson","port-hadlock-irondale","port-hawkesbury","port-henry","port-hope","port-hueneme","port-huron","port-isabel","port-jefferson","port-jefferson-station","port-jervis","port-labelle","port-lavaca","port-ludlow","port-mcneill","port-monmouth","port-moody","port-morris","port-neches","port-norris","port-oconnor","port-orange","port-orchard","port-orford","port-perry","port-reading","port-republic","port-richey","port-richmond","port-rowan","port-royal","port-saint-joe","port-saint-john","port-saint-lucie","port-salerno","port-stanley","port-sulphur","port-townsend","port-vue","port-washington","port-washington-north","port-wentworth","port-williams","portaceli","portage","portage-la-prairie","portage-lakes","portage-park","portagelakes","portagelaprairie","portagepark","portageville","portal-de-las-salinas","portalberni","portaldelassalinas","portales","portallegany","portallen","portangeles","portangeleseast","portaransas","portarthur","portbarre","portbarrington","portbyron","portcarbon","portcartier","portcharlotte","portchester","portclinton","portcolborne","portcoquitlam","portdickinson","portedwards","porter","porter-heights","porterdale","porterheights","porterville","portes-gil","portesgil","portewen","portezuelo","portgibson","porthadlockirondale","porthawkesbury","porthenry","porthope","porthueneme","porthuron","porticos-de-san-antonio","porticosdesanantonio","portisabel","portjefferson","portjeffersonstation","portjervis","portlabelle","portland","portlavaca","portlock","portludlow","portmcneill","portmonmouth","portmoody","portmorris","portneches","portneuf","portnorris","portoconnor","portola","portola-hills","portola-valley","portolahills","portolavalley","portorange","portorchard","portorford","portperry","portreading","portrepublic","portrichey","portrichmond","portrowan","portroyal","portsaintjoe","portsaintjohn","portsaintlucie","portsalerno","portsmouth","portsmouth-heights","portsmouthheights","portstanley","portsulphur","porttownsend","portugues-de-galvez","portuguesdegalvez","portvue","portwashington","portwashingtonnorth","portwentworth","portwilliams","porvenir","posen","poseyville","post","post-falls","postfalls","postville","potam","poteau","poteet","poth","pothe","potomac","potomac-heights","potomac-mills","potomac-park","potomacheights","potomacmills","potomacpark","potosi","potrerillo","potrerillo-del-norote","potrerillodelnorote","potrerillos","potrerillos-guanajal","potrerillosguanajal","potrero-del-llano","potrero-viejo","potrerodelllano","potreros","potreroviejo","potsdam","potter-lake","potterlake","potterville","pottsboro","pottsgrove","pottstown","pottsville","poturo","poughkeepsie","poulsbo","poultney","pound-ridge","poundridge","powassan","poway","powder-springs","powderly","powdersprings","powdersville","powell","powell-river","powellriver","powells-crossroads","powellscrossroads","powers-lake","powerslake","powhatan","powhatan-point","powhatanpoint","pownal","poydras","poynette","poza-rica-de-hidalgo","pozaricadehidalgo","pozo-de-ibarra","pozo-de-jarillas","pozo-dulce","pozodeibarra","pozodejarillas","pozodulce","pozos","pozos-de-gamboa","pozosdegamboa","pozuelos","pp","ppb","ppdl","pph","ppl","ppnl","ppv","pr","prac","praderas-de-san-francisco","praderas-del-potrero","praderasdelpotrero","praderasdesanfrancisco","prados-de-san-juan","prados-de-santa-rosa","prados-del-rosario","prados-san-francisco","pradosdelrosario","pradosdesanjuan","pradosdesantarosa","pradossanfrancisco","prague","prairie-city","prairie-creek","prairie-du-chien","prairie-du-sac","prairie-grove","prairie-heights","prairie-ridge","prairie-view","prairie-village","prairiecity","prairiecreek","prairieduchien","prairiedusac","prairiegrove","prairieheights","prairieridge","prairieview","prairievillage","prairieville","pratt","prattville","praxedis-de-guerrero","praxedis-g-guerrero","praxedis-guerrero","praxedisdeguerrero","praxedisgguerrero","praxedisguerrero","prb","prcm","prdh","prds","preeceville","premont","prentiss","presa-blanca","presa-de-rayas","presa-del-rosario","presablanca","presadelrosario","presaderayas","presas","prescott","prescott-valley","prescottvalley","presidente-juarez","presidentejuarez","presidential-lakes-estates","presidentiallakesestates","presidio","presidio-plan-de-libres","presidioplandelibres","presque-isle","presqueisle","presquille","prestbury","preston","preston-city","preston-heights","prestoncity","prestonheights","prestonsburg","pretty-bayou","prettybayou","prevost","prf","pri-chacon","price","prices-fork","pricesfork","priceville","prichacon","prichard","prien","priest-river","priestriver","primer-canton","primera","primera-de-analco","primera-fraccion-de-crespo","primeradeanalco","primerafracciondecrespo","primercanton","primero-de-mayo","primero-de-mayo-chupaderos","primerodemayo","primerodemayochupaderos","primghar","primo-tapia","primotapia","prince-albert","prince-edward","prince-edward-island","prince-frederick","prince-george","prince-rupert","princealbert","princeedward","princeedwardisland","princefrederick","princegeorge","princerupert","princes-lakes","princeslakes","princess-anne","princess-rosethorn","princessanne","princessrosethorn","princeton","princeton-junction","princeton-meadows","princetonjunction","princetonmeadows","princeville","prineville","prior-lake","priorlake","privada-del-alamo","privadadelalamo","privateer","prl","proctor","profesor-carlos-hank-gonzalez","profesorcarloshankgonzalez","profresor-roberto-barrios","profresorrobertobarrios","progreso","progreso-campo-47","progreso-de-alvaro-obregon","progreso-de-juarez","progreso-de-zaragoza","progreso-industrial","progresocampo47","progresodealvaroobregon","progresodejuarez","progresodezaragoza","progresoindustrial","progress","progress-village","progressvillage","prophetstown","prospect","prospect-heights","prospect-park","prospectheights","prospectpark","prosper","prosperity","prosser","providence","providence-village","providencevillage","providencia","providencia-de-napoles","providenciadenapoles","provincetown","provo","provost","prp","prudenville","prudhoe-bay","prudhoebay","prunedale","pryor","pryor-creek","pryorcreek","ps","psc","pseg","psf","psj","psl","psn","pt","ptec","pu","puacuaro","pucte","pue","puebla","pueblillo","pueblito-de-allende","pueblitodeallende","pueblo","pueblo-benito-garcia","pueblo-hidalgo","pueblo-juarez-la-magdalena","pueblo-madero-el-playon","pueblo-mayo","pueblo-nuevo","pueblo-nuevo-de-las-raices","pueblo-nuevo-de-morelos","pueblo-nuevo-tlalmimilolpan","pueblo-viejo","pueblo-west","pueblo-yaqui","pueblobenitogarcia","pueblohidalgo","pueblojuarezlamagdalena","pueblomaderoelplayon","pueblomayo","pueblonuevo","pueblonuevodelasraices","pueblonuevodemorelos","pueblonuevotlalmimilolpan","pueblos-unidos","pueblosunidos","puebloviejo","pueblowest","puebloyaqui","puente-de-camotlan","puente-de-ixtla","puente-de-piedra","puente-grande","puente-jula","puentecillas","puentedecamotlan","puentedeixtla","puentedepiedra","puentegrande","puentejula","puerta-de-mangos","puerta-de-palmillas","puerta-del-llano","puerta-del-monte","puertadelllano","puertadelmonte","puertademangos","puertadepalmillas","puertecito-de-la-virgen","puertecitodelavirgen","puerto-adolfo-lopez-mateos","puerto-angel","puerto-aventuras","puerto-ceiba","puerto-de-aguirre","puerto-de-carroza","puerto-de-chiquihuite","puerto-de-nieto","puerto-de-providencia","puerto-escondido","puerto-esmeralda","puerto-madero","puerto-palomas","puerto-penasco","puerto-rico","puerto-san-carlos","puerto-vallarta","puertoadolfolopezmateos","puertoangel","puertoaventuras","puertoceiba","puertodeaguirre","puertodecarroza","puertodechiquihuite","puertodenieto","puertodeprovidencia","puertoescondido","puertoesmeralda","puertomadero","puertopalomas","puertopenasco","puertorico","puertosancarlos","puertovallarta","puga","pugchen-mumuntic","pugchenmumuntic","puhi","pujal-coy","pujalcoy","pukalani","pulaski","pullman","pumphrey","pumpkin-center","pumpkincenter","pun","punahou","punaluu","punta-arena","punta-de-la-vega","punta-gorda","punta-gorda-isles","punta-rassa","puntaarena","puntadelavega","puntagorda","puntagordaisles","puntarassa","puntilla-aldama","puntillaaldama","puntledge","punxsutawney","puohala-village","puohalavillage","pupukea","purcell","purcellville","purchase","purdy","purechucho","purepero-de-echaiz","pureperodeechaiz","purificacion","purisima","purisima-concepcion-mayorazgo","purisima-de-arista","purisima-de-bustos","purisima-de-covarrubias","purisima-de-cubos-la-purisima","purisima-del-progreso","purisimaconcepcionmayorazgo","purisimadearista","purisimadebustos","purisimadecovarrubias","purisimadecuboslapurisima","purisimadelprogreso","puroagua","puruandiro","puruaran","purvis","pustunich","putla-villa-de-guerrero","putlavilladeguerrero","putlunichuchut-vista-hermosa","putlunichuchutvistahermosa","putnam","putnam-lake","putnamlake","putney","puxcatan","puxtla","puyallup","pv","pvb","pvdg","pve","pvh","pw","pwn","py","pymatuning-central","pymatuningcentral","qa","qbec","qc","qdc","qh","qr","quail-creek","quail-hill","quail-ridge","quail-valley","quailcreek","quailhill","quailridge","quailvalley","quakertown","quamila","quanah","quarryville","quartz-hill","quartzhill","quartzsite","que","quebec","quebec-city","quebeccity","quebrantadero","quecholac","quechulac","quechultenango","queen-anne","queen-city","queen-creek","queen-village","queenanne","queencity","queencreek","queenland","queens","queens-village","queensbury","queensvillage","queenswood-heights","queenswoodheights","queenvillage","quelove","querendaro","querendas","queretaro","querobabi","queseria","quesnel","questa","quetchehueca","quetzalapa","quiamoloapan","quila","quimichis","quinceo","quincy","quinebaug","quinicuena","quinlan","quinnesec","quinta-del-cedro","quintadelcedro","quintana-roo","quintanaroo","quinte-west","quintero","quintewest","quintin-arauz","quintinarauz","quinto-barrio-ejido-cahuacan","quintobarrioejidocahuacan","quinton","quiriego","quiroga","quitman","quitupan","qv","qw","ra","raceland","racine","radcliff","radford","radium-springs","radiumsprings","radnor","raeford","raf","rafael-delgado","rafael-j-garcia","rafael-lucio","rafael-pascacio-gamboa","rafael-ramirez","rafael-yanez-sosa-el-mezquite","rafaeldelgado","rafaeljgarcia","rafaellucio","rafaelpascaciogamboa","rafaelramirez","rafaelyanezsosaelmezquite","rafb","rafter-j-ranch","rafterjranch","ragland","rahway","rainbow","rainbow-city","rainbowcity","rainelle","rainier","rainsville","raleigh","raleigh-hills","raleighhills","ralls","ralston","ramblewood","ramirez","ramon-corona","ramon-f-balboa","ramona","ramoncorona","ramonfbalboa","ramos-arizpe","ramosarizpe","ramseur","ramsey","ramtown","rancheria-de-pocitos","rancheriadepocitos","ranchettes","ranchito-de-castro","ranchitodecastro","rancho-alegre","rancho-alegre-fraccionamiento","rancho-calaveras","rancho-chico","rancho-cordova","rancho-cucamonga","rancho-de-guadalupe","rancho-de-las-lomas","rancho-del-padre","rancho-grande","rancho-mirage","rancho-murieta","rancho-nuevo","rancho-nuevo-de-la-cruz","rancho-nuevo-de-la-luz","rancho-nuevo-del-llanito","rancho-palos-verdes","rancho-penasquitos","rancho-san-diego","rancho-santa-fe","rancho-santa-margarita","rancho-tehama-reserve","rancho-verde","rancho-viejo","ranchoalegre","ranchoalegrefraccionamiento","ranchocalaveras","ranchochico","ranchocordova","ranchocucamonga","ranchodeguadalupe","ranchodelaslomas","ranchodelpadre","ranchogrande","ranchomirage","ranchomurieta","ranchonuevo","ranchonuevodelacruz","ranchonuevodelaluz","ranchonuevodelllanito","ranchopalosverdes","ranchopenasquitos","ranchos-de-taos","ranchosandiego","ranchosantafe","ranchosantamargarita","ranchosdetaos","ranchotehamareserve","ranchoverde","ranchoviejo","rand","randallstown","randleman","randolph","random-lake","randomlake","rangely","ranger","rankin","rankin-inlet","rankininlet","ranlo","ransom-canyon","ransomcanyon","ransomville","ranson","rantoul","raoul","rapid-city","rapid-valley","rapidcity","rapids","rapidvalley","raritan","rascon","rathdrum","raton","raubsville","raudales-malpaso","raudalesmalpaso","raven","ravena","ravenel","ravenna","ravensdale","ravenswood","ravensworth","rawdon","rawlins","rawls-springs","rawlssprings","ray-city","raya-zaragoza","rayazaragoza","raycity","raymond","raymondville","raymore","raymundo-enriquez","raymundoenriquez","rayne","raynham","raynham-center","raynhamcenter","rayon","rayones","rayside-balfour","raysidebalfour","raytown","rayville","rb","rbf","rbs","rbwv","rc","rd","rda","rdb","rdbv","rdc","rdg","rdj","rdl","rdla","rdlh","rdll","rdlp","rdlr","rdls","rdm","rdo","rdp","rdr","rds","rdsf","rdt","rdvi","re","readfield","reading","readville","real-de-catorce","real-del-sol","real-hacienda-metropolis","realdecatorce","realdelsol","realhaciendametropolis","reamstown","recoveco","rector","red-bank","red-bay","red-bluff","red-boiling-springs","red-bud","red-chute","red-cloud","red-corral","red-deer","red-hill","red-hook","red-lake","red-lake-falls","red-lick","red-lion","red-lodge","red-oak","red-oaks-mill","red-springs","red-wing","redan","redbank","redbay","redbluff","redboilingsprings","redbud","redby","redchute","redcloud","redcorral","reddeer","redding","redeer","redfield","redford","redgranite","redhill","redhook","redington-beach","redington-shores","redingtonbeach","redingtonshores","redkey","redlake","redlakefalls","redland","redlands","redlick","redlion","redlodge","redmond","redoak","redoaksmill","redondo-beach","redondobeach","redsprings","redstone-arsenal","redstonearsenal","redwater","redway","redwing","redwood","redwood-city","redwood-falls","redwood-shores","redwood-valley","redwoodcity","redwoodfalls","redwoodshores","redwoodvalley","reed-city","reed-creek","reedcity","reedcreek","reedley","reedsburg","reedsport","reedsville","reese","reform","reforma","reforma-de-pineda","reforma-y-planada","reformadepineda","reformayplanada","refugio","regent-park","regentpark","regina","regina-beach","reginabeach","rego-park","regopark","rehobeth","rehoboth","rehoboth-beach","rehobothbeach","reidland","reidsville","reiffton","reinbeck","reinholds","reisterstown","remerton","reminderville","remington","remsen","remsenburg-speonk","remsenburgspeonk","rendon","renfrew","rennerdale","reno","renovo","rensselaer","renton","renville","repentigny","republic","reseda","reserve","reservoir","residencial-arboledas","residencial-las-olas","residencial-tajin","residencialarboledas","residenciallasolas","residencialtajin","reston","revelstoke","revere","revolucion-mexicana","revolucionmexicana","rexburg","rexdale-kipling","rexdalekipling","reyes-acozac","reyes-etla","reyes-mantecon","reyesacozac","reyesetla","reyesmantecon","reynolds","reynolds-heights","reynoldsburg","reynoldsheights","reynoldstown","reynoldsville","reynosa","rf","rfb","rfdj","rfm","rg","rgc","rh","rhawnhurst","rhe","rheems","rhinebeck","rhinelander","rhm","rhode-island","rhodeisland","rhodhiss","rhome","ri","rialto","rib-mountain","ribmountain","ricardo","ricardo-flores-magon","ricardofloresmagon","rice","rice-lake","ricelake","rich-hill","richardson","richboro","richelieu","richfield","richfield-springs","richfieldsprings","richford","richgrove","richhill","richibucto","richland","richland-center","richland-hills","richlandcenter","richlandhills","richlands","richlandtown","richmond","richmond-heights","richmond-hill","richmond-west","richmondheights","richmondhill","richmondwest","richton","richton-park","richtonpark","richville","richwood","riddle","rideau-park","rideaupark","ridge","ridge-manor","ridge-wood-heights","ridgecrest","ridgefield","ridgefield-park","ridgefieldpark","ridgeland","ridgely","ridgemanor","ridgemark","ridgetop","ridgetown","ridgeville","ridgeway","ridgewood","ridgewoodheights","ridgway","ridley-park","ridleypark","riesel","rifle","rigaud","rigby","rimbey","rimouski","rincon","rincon-chamula","rincon-de-aguirre","rincon-de-barrabas","rincon-de-buena-vista","rincon-de-cano","rincon-de-curungueo","rincon-de-guadalupe","rincon-de-guayabitos","rincon-de-jaimes","rincon-de-lopez","rincon-de-los-pirules","rincon-de-los-reyes","rincon-de-parangueo","rincon-de-romos","rincon-de-tamayo","rincon-del-centeno","rincon-del-porvenir","rincon-moreno","rincon-verde","rinconada","rinconada-de-los-angeles","rinconadadelosangeles","rinconadalalomafraccionamiento","rinconadas-de-san-francisco","rinconadas-del-bosque","rinconadas-del-venado-i","rinconadasdelbosque","rinconadasdelvenadoi","rinconadasdesanfrancisco","rinconchamula","rincondeaguirre","rincondebarrabas","rincondebuenavista","rincondecano","rincondecedenosrincondedolores","rincondecurungueo","rincondeguadalupe","rincondeguayabitos","rincondejaimes","rincondelcenteno","rincondelopez","rincondelospirules","rincondelosreyes","rincondelporvenir","rincondeparangueo","rinconderomos","rincondetamayo","rincones-de-la-hacienda","rinconesdelahacienda","rinconmoreno","rinconverde","rindge","ringgold","ringling","ringwood","rio","rio-blanco","rio-bravo","rio-chancala","rio-chiquito","rio-communities","rio-de-la-soledad","rio-de-medina","rio-de-teapa","rio-del-mar","rio-dell","rio-florido","rio-frio-de-juarez","rio-grande","rio-grande-city","rio-hondo","rio-jordan","rio-lagartos","rio-laja","rio-linda","rio-medio-granja","rio-pachine","rio-rancho","rio-rico","rio-seco-puente-de-doria","rio-verde","rio-viejo-primera-seccion","rio-vista","rioblanco","riobravo","riochancala","riochiquito","riocommunities","riodelasoledad","riodell","riodelmar","riodemedina","riodeteapa","rioflorido","riofriodejuarez","riogrande","riograndecity","riohondo","riojordan","riolagartos","riolaja","riolinda","riomediogranja","riopachine","riorancho","riorico","rioseco2daseccionsantiaguito","riosecopuentededoria","rioverde","rioviejoprimeraseccion","riovista","ripley","ripon","rising-sun","rising-sun-lebanon","risingsun","risingsunlebanon","rison","rittenhouse","rittman","ritzville","riva","riva-palacio","rivapalacio","river-bend","river-edge","river-falls","river-forest","river-grove","river-heights","river-hills","river-oaks","river-park","river-ridge","river-road","river-rouge","river-vale","river-view-park","riverbank","riverbend","riverdale","riverdale-park","riverdalepark","riveredge","riverfalls","riverforest","rivergrove","riverhead","riverheights","riverhills","riveroaks","riverpark","riverridge","riverroad","riverrouge","rivers","riverside","riverton","rivervale","riverview","riverviewpark","riverwoods","riviera-beach","rivierabeach","riviere-du-loup","riviere-rouge","riviereduloup","riviererouge","rizo-de-oro","rizodeoro","rizosdelajoyarizosdelsaucillo","rj","rjg","rjr","rk","rl","rlb","rlf","rlh","rllf","rlo","rlp","rls","rm","rmg","rmh","rmp","rmq","rn","rndl","ro","roaming-shores","roamingshores","roan-mountain","roanmountain","roanoke","roanoke-rapids","roanokerapids","roaring-spring","roaringspring","robbins","robbinsdale","robbinsville","robersonville","robert-lee","robertlee","roberts","robertsdale","robertsville","roberval","robesonia","robins","robins-air-force-base","robinsairforcebase","robinson","robinson-heights","robinsonheights","robinwood","roblada-grande","robladagrande","roblin","robstown","roby","rochelle","rochelle-park","rochellepark","rochester","rochester-hills","rochesterhills","rock-creek","rock-falls","rock-forest","rock-hall","rock-hill","rock-island","rock-port","rock-rapids","rock-springs","rock-valley","rockaway","rockaway-beach","rockaway-point","rockawaybeach","rockawaypoint","rockcliffe-smythe","rockcliffesmythe","rockcreek","rockdale","rockfalls","rockfish","rockford","rockforest","rockhall","rockhill","rockingham","rockisland","rockland","rockledge","rocklin","rockmart","rockport","rockrapids","rocksprings","rockton","rockvalley","rockville","rockville-centre","rockvillecentre","rockwall","rockwell","rockwell-city","rockwellcity","rockwood","rocky-ford","rocky-mount","rocky-mountain-house","rocky-point","rocky-river","rocky-top","rockyford","rockymount","rockymountainhouse","rockypoint","rockyriver","rockytop","rodeo","rodney-village","rodneyvillage","rodolfo-sanchez-taboada","rodolfosancheztaboada","rodrigo","rodrigo-m-quevedo","rodrigomquevedo","rodriguez-tejeda","rodrigueztejeda","rodulfo-figueroa","rodulfofigueroa","roebling","roebuck","roeland-park","roelandpark","roessleville","rogers","rogers-city","rogers-park","rogerscity","rogerspark","rogersville","rogue-river","rogueriver","rohnert-park","rohnertpark","rojas-de-cuauhtemoc","rojasdecuauhtemoc","roland","rolesville","rolla","rolling-fork","rolling-hills","rolling-hills-estates","rolling-meadows","rollingfork","rollinghills","rollinghillsestates","rollingmeadows","rollingwood","rollinsford","rom","roma","roma-los-saenz","romalossaenz","roman-forest","romanforest","rome","rome-city","romecity","romeo","romeoville","romerillo","romero-de-guzman","romero-de-torres","romerodeguzman","romerodetorres","romita","romney","romoland","romulus","ronan","roncesvalles","ronceverte","ronkonkoma","roo","roodhouse","roosevelt","roosevelt-gardens","roosevelt-park","rooseveltgardens","rooseveltpark","roque","rosa-blanca","rosablanca","rosales","rosamond","rosamorada","rosario","rosarito","rosaryville","roscoe","roscommon","rose-hill","rose-lodge","roseau","rosebank","roseboro","rosebud","roseburg","roseburg-north","roseburgnorth","rosedale","rosedale-moore-park","rosedalemoorepark","rosehill","roseland","roselawn","roselle","roselle-park","rosellepark","roselodge","rosemead","rosemere","rosemont","rosemount","rosenberg","rosendale","rosendale-village","rosendalevillage","rosenhayn","rosepine","roseto","rosetown","roseville","rosewood-heights","rosewoodheights","rosharon","rosiclare","rosita-north","rosita-south","rositanorth","rositasouth","roslindale","roslyn","roslyn-estates","roslyn-harbor","roslyn-heights","roslynestates","roslynharbor","roslynheights","ross","rossford","rossland","rosslyn","rossmoor","rossmoyne","rossville","rosthern","roswell","rotan","rothschild","rothsville","rotonda-west","rotondawest","rotterdam","rouge","rougemont","round-lake","round-lake-beach","round-lake-heights","round-lake-park","round-rock","roundlake","roundlakebeach","roundlakeheights","roundlakepark","roundrock","roundup","rouses-point","rousespoint","routt","rouyn-noranda","rouynnoranda","rowland","rowland-heights","rowlandheights","rowlett","rowley","roxana","roxboro","roxborough","roxborough-park","roxboroughpark","roxbury","roxbury-crossing","roxburycrossing","roy","royal-city","royal-kunia","royal-oak","royal-palm-beach","royal-palm-estates","royal-pines","royalcity","royalkunia","royaloak","royalpalmbeach","royalpalmestates","royalpines","royalston","royalton","royersford","royse-city","roysecity","royston","rp","rpb","rpe","rpg","rpv","rr","rs","rsd","rsf","rsl","rsm","rst","rt","rtr","rubidoux","ruckersville","rugby","ruidoso","ruidoso-downs","ruidosodowns","ruiz","ruleville","rumford","rumney","rumorosa","rumson","runaway-bay","runawaybay","runge","runnemede","running-springs","runningsprings","runnymede-bloor-west-village","runnymedebloorwestvillage","rupert","rural-hall","rural-hill","rural-retreat","ruralhall","ruralhill","ruralretreat","rush","rush-city","rush-springs","rushcity","rushford","rushmere","rushsprings","rushville","rusk","ruskin","russell","russell-springs","russells-point","russellspoint","russellsprings","russellton","russellville","russiaville","rustburg","rustic","ruston","rutherford","rutherford-college","rutherfordcollege","rutherfordton","rutland","rutledge","rv","rvp","rvps","rw","rwh","rydal","rye","rye-brook","ryebrook","ryegate","ryers","ryland-heights","rylandheights","ryp","rz","s1s","s2","s2s","sa","saa","saanichton","sab","saban","sabanas-de-xalostoc","sabanasdexalostoc","sabancuy","sabaneta","sabanilla","sabanillas","sabattus","sabetha","sabidos","sabina","sabinal","sabinalito","sabinas","sac","sac-city","sacalum","sacaton","saccity","sachse","sackets-harbor","sacketsharbor","sackville","saclamanton","saco","sacramento","sacre-coeur","sacrecoeur","sacv","sad","sada","sadb","sadc","sadd","saddle-brook","saddle-river","saddlebrook","saddlebrooke","saddleriver","sadf","sadm","sadp","sadr","sadt","sadv","sae","saec","saeg","sael","saep","saer","safb","safety-harbor","safetyharbor","safford","sag","sag-harbor","sagamore","sagharbor","saginaw","saginaw-township-north","saginawtownshipnorth","saguache","saguenay","sah","sahcaba","sahuaral-de-otero","sahuaraldeotero","sahuaripa","sahuarita","sahuayo-de-morelos","sahuayodemorelos","sai","sain-alto","sain-bajo","sainalto","sainbajo","saint-adolphe-dhoward","saint-albans","saint-alexandre","saint-amable","saint-ambroise","saint-andre-avellin","saint-andrews","saint-ann","saint-anne","saint-anselme","saint-ansgar","saint-anthony","saint-antoine","saint-antoine-de-tilly","saint-antonin","saint-augusta","saint-augustin","saint-augustin-de-desmaures","saint-augustine","saint-augustine-beach","saint-augustine-shores","saint-augustine-south","saint-barnabe-sud","saint-basile-le-grand","saint-bernard","saint-bonaventure","saint-boniface","saint-bonifacius","saint-bruno","saint-bruno-de-guigues","saint-bruno-de-montarville","saint-canut","saint-cesaire","saint-charles","saint-clair","saint-clair-shores","saint-clairsville","saint-cloud","saint-colomban","saint-come-liniere","saint-constant","saint-croix-falls","saint-cyrille-de-wendover","saint-damase","saint-david","saint-denis-sur-richelieu","saint-dennis","saint-donat-de-montcalm","saint-edouard","saint-elmo","saint-elzear","saint-ephrem-de-beauce","saint-eustache","saint-felicien","saint-felix-de-valois","saint-francis","saint-francisville","saint-gabriel","saint-gedeon","saint-george","saint-georges","saint-germain-de-grantham","saint-hedwig","saint-helen","saint-helena","saint-helens","saint-henri","saint-henry","saint-hippolyte","saint-honore","saint-hubert","saint-hyacinthe","saint-ignace","saint-isidore","saint-isidore-de-laprairie","saint-jacob","saint-jacques","saint-jacques-le-mineur","saint-james","saint-james-city","saint-jean-baptiste","saint-jean-sur-richelieu","saint-jerome","saint-jo","saint-john","saint-johns","saint-johnsbury","saint-johnsville","saint-joseph","saint-joseph-de-beauce","saint-joseph-de-coleraine","saint-joseph-du-lac","saint-lambert-de-lauzon","saint-laurent","saint-lawrence","saint-lazare","saint-lazare-de-bellechasse","saint-leo","saint-leonard","saint-leonard-daston","saint-liboire","saint-lin-laurentides","saint-louis","saint-louis-du-ha-ha","saint-louis-park","saint-marc-des-carrieres","saint-maries","saint-martin","saint-martins","saint-martinville","saint-marys","saint-mathieu","saint-matthews","saint-michael","saint-michaels","saint-michel","saint-michel-des-saints","saint-nazaire","saint-norbert","saint-pacome","saint-paris","saint-pascal","saint-paul","saint-paul-park","saint-pauls","saint-pete-beach","saint-peter","saint-peters","saint-philippe-de-la-prairie","saint-pie","saint-pie-v","saint-pierre-les-becquets","saint-placide","saint-polycarpe","saint-prime","saint-raphael","saint-raymond","saint-regis-park","saint-remi","saint-remi-de-tingwick","saint-robert","saint-rose","saint-sauveur","saint-sauveur-des-monts","saint-simeon","saint-simon-mills","saint-simons-island","saint-stephen","saint-stephens","saint-thomas","saint-tite","saint-victor","saint-zotique","saintadolphedhoward","saintalbans","saintalexandre","saintamable","saintambroise","saintandreavellin","saintandrews","saintann","saintanne","saintanselme","saintansgar","saintanthony","saintantoine","saintantoinedetilly","saintantonin","saintaugusta","saintaugustin","saintaugustindedesmaures","saintaugustine","saintaugustinebeach","saintaugustineshores","saintaugustinesouth","saintbarnabesud","saintbasilelegrand","saintbernard","saintbonaventure","saintboniface","saintbonifacius","saintbruno","saintbrunodeguigues","saintbrunodemontarville","saintcanut","saintcesaire","saintcharles","saintclair","saintclairshores","saintclairsville","saintcloud","saintcolomban","saintcomeliniere","saintconstant","saintcroixfalls","saintcyrilledewendover","saintdamase","saintdavid","saintdenissurrichelieu","saintdennis","saintdonatdemontcalm","sainte-adele","sainte-agathe-des-monts","sainte-anne-de-bellevue","sainte-anne-des-monts","sainte-anne-des-plaines","sainte-beatrix","sainte-catherine","sainte-croix","sainte-elisabeth","sainte-genevieve","sainte-julie","sainte-julienne","sainte-madeleine","sainte-marie","sainte-marthe-sur-le-lac","sainte-martine","sainte-monique","sainte-sophie","sainte-thecle","sainte-therese","sainteadele","sainteagathedesmonts","sainteannedebellevue","sainteannedesmonts","sainteannedesplaines","saintebeatrix","saintecatherine","saintecroix","saintedouard","sainteelisabeth","saintegenevieve","saintejulie","saintejulienne","saintelmo","saintelzear","saintemadeleine","saintemargueritedulacmasson","saintemarie","saintemarthesurlelac","saintemartine","saintemonique","saintephremdebeauce","saintesophie","saintethecle","saintetherese","sainteustache","saintfelicien","saintfelixdevalois","saintfrancis","saintfrancisville","saintgabriel","saintgedeon","saintgeorge","saintgeorges","saintgermaindegrantham","sainthedwig","sainthelen","sainthelena","sainthelens","sainthenri","sainthenry","sainthippolyte","sainthonore","sainthubert","sainthyacinthe","saintignace","saintisidore","saintisidoredelaprairie","saintjacob","saintjacques","saintjacqueslemineur","saintjames","saintjamescity","saintjeanbaptiste","saintjeansurrichelieu","saintjerome","saintjo","saintjohn","saintjohns","saintjohnsbury","saintjohnsville","saintjoseph","saintjosephdebeauce","saintjosephdecoleraine","saintjosephdulac","saintlambertdelauzon","saintlaurent","saintlawrence","saintlazare","saintlazaredebellechasse","saintleo","saintleonard","saintleonarddaston","saintliboire","saintlinlaurentides","saintlouis","saintlouisduhaha","saintlouispark","saintmarcdescarrieres","saintmaries","saintmartin","saintmartins","saintmartinville","saintmarys","saintmathieu","saintmatthews","saintmichael","saintmichaels","saintmichel","saintmicheldessaints","saintnazaire","saintnorbert","saintpacome","saintparis","saintpascal","saintpaul","saintpaulpark","saintpauls","saintpetebeach","saintpeter","saintpeters","saintphilippedelaprairie","saintpie","saintpierrelesbecquets","saintpiev","saintplacide","saintpolycarpe","saintprime","saintraphael","saintraymond","saintregispark","saintremi","saintremidetingwick","saintrobert","saintrose","saintsauveur","saintsauveurdesmonts","saintsimeon","saintsimonmills","saintsimonsisland","saintstephen","saintstephens","saintthomas","sainttite","saintvictor","saintzotique","saj","saks","sal","salaberry-de-valleyfield","salaberrydevalleyfield","saladero","salado","salamanca","salazar","salcha","saldarriaga","sale-creek","salecreek","salem","salem-heights","salemheights","salguero","sali","salida","salina","salina-cruz","salinacruz","salinas","salinas-de-hidalgo","salinas-victoria","salinasdehidalgo","salinasvictoria","saline","salineville","salisbury","salitral-de-carrera","salitraldecarrera","salitrillo","salix","sall","sallisaw","salluit","salmo","salmon","salmon-arm","salmon-brook","salmon-creek","salmonarm","salmonbrook","salmoncreek","salome","saloya-2da-seccion","saloya2daseccion","salp","salt-lake-city","salt-spring-island","saltabarranca","saltair","saltillo","saltlakecity","salto-de-agua","saltodeagua","salton-city","saltoncity","saltspringisland","saltville","saluda","salunga","salv","salvador-diaz-miron","salvador-rosas-magallon","salvador-urbina","salvadordiazmiron","salvadorrosasmagallon","salvadorurbina","salvatierra","salyersville","sam","sam-rayburn","samachique","samahil","samalayuca","samarkanda","sammamish","samoset","samrayburn","samson","samsula-spruce-creek","samsulasprucecreek","san","san-acateno","san-agustin","san-agustin-amatengo","san-agustin-atenango","san-agustin-atzompa","san-agustin-berros","san-agustin-buenavista","san-agustin-chayuco","san-agustin-citlali","san-agustin-de-las-flores","san-agustin-de-las-juntas","san-agustin-de-las-palmas","san-agustin-del-maiz","san-agustin-del-palmar","san-agustin-del-pulque","san-agustin-etla","san-agustin-huitzizilapan","san-agustin-huixaxtla","san-agustin-loxicha","san-agustin-mextepec","san-agustin-mimbres","san-agustin-oapan","san-agustin-tlaxco","san-agustin-tlaxiaca","san-agustin-yatareni","san-agustin-zapotlan","san-alejo","san-andreas","san-andres","san-andres-ahuashuatepec","san-andres-azumiatla","san-andres-cacaloapan","san-andres-calpan","san-andres-chicahuaxtla","san-andres-cholula","san-andres-cohamiata","san-andres-coru","san-andres-cuexcontitlan","san-andres-de-la-cal","san-andres-de-las-peras","san-andres-de-los-gama","san-andres-del-pedregal","san-andres-dinicuiti","san-andres-duraznal","san-andres-enguaro","san-andres-hidalgo","san-andres-huaxpaltepec","san-andres-huayapam","san-andres-hueyacatitla","san-andres-ixtlahuaca","san-andres-ixtlan","san-andres-metla","san-andres-mixquic","san-andres-nicolas-bravo","san-andres-ocotepec","san-andres-ocotlan","san-andres-paxtlan","san-andres-payuca","san-andres-sinaxtla","san-andres-solaga","san-andres-tenejapan","san-andres-teotilalpam","san-andres-tepetitlan","san-andres-timilpan","san-andres-tlalamac","san-andres-tuxtla","san-andres-yaa","san-andres-yahuitlalpan","san-andres-zautla","san-andres-zirondaro","san-angel","san-angelo","san-anselmo","san-antonino-castillo-velasco","san-antonio","san-antonio-acahualco","san-antonio-alpanocan","san-antonio-arrazola","san-antonio-atotonilco","san-antonio-bonixi","san-antonio-buenavista","san-antonio-bulujib","san-antonio-calichar","san-antonio-canada","san-antonio-cardenas","san-antonio-chiverias","san-antonio-coyahuacan","san-antonio-de-corrales","san-antonio-de-fernandez","san-antonio-de-la-cal","san-antonio-de-la-laguna","san-antonio-de-las-alazanas","san-antonio-de-las-huertas","san-antonio-de-las-palmas","san-antonio-de-los-horcones","san-antonio-de-los-morales","san-antonio-de-los-rios","san-antonio-de-los-tepetates","san-antonio-de-los-vazquez","san-antonio-de-penuelas","san-antonio-de-rivas","san-antonio-de-romerillo","san-antonio-del-cipres","san-antonio-del-coyote","san-antonio-del-monte","san-antonio-del-puente","san-antonio-del-rosario","san-antonio-el-chico","san-antonio-el-grande","san-antonio-el-llanito","san-antonio-el-paso","san-antonio-el-rico","san-antonio-emenguaro","san-antonio-enchisi","san-antonio-gallardo","san-antonio-guaracha","san-antonio-heights","san-antonio-huitepec","san-antonio-juarez","san-antonio-la-isla","san-antonio-la-labor","san-antonio-la-portilla","san-antonio-las-palmas","san-antonio-matlahuacales","san-antonio-mihuacan","san-antonio-molinos","san-antonio-nixini","san-antonio-ocopetlatlan","san-antonio-ocotlan","san-antonio-portezuelo","san-antonio-primero","san-antonio-rayon","san-antonio-sahcabchen","san-antonio-soledad","san-antonio-solis","san-antonio-tariacuri","san-antonio-tecolco","san-antonio-tecomitl","san-antonio-tedzidz","san-antonio-tepetlapa","san-antonio-texas","san-antonio-tlacamilco","san-antonio-tlaltecahuacan","san-antonio-tlatenco","san-antonio-villalongin","san-antonio-virreyes","san-antonio-xahuento","san-antonio-xoquitla","san-antonio-zaragoza","san-atenogenes-la-villita","san-augustine","san-baltazar-atlimeyaya","san-baltazar-chichicapam","san-baltazar-guelavila","san-baltazar-loxicha","san-bartolito-tlaltelolco","san-bartolo","san-bartolo-coyotespec","san-bartolo-cuautlalpan","san-bartolo-cuitareo","san-bartolo-de-berrios","san-bartolo-del-llano","san-bartolo-del-progreso","san-bartolo-el-viejo","san-bartolo-lanzados","san-bartolo-morelos","san-bartolo-oxtotitlan","san-bartolo-ozocalpan","san-bartolo-tlaxihuicalco","san-bartolo-tutotepec","san-bartolo-yautepec","san-bartolome","san-bartolome-aguas-calientes","san-bartolome-atlatlahuca","san-bartolome-ayautla","san-bartolome-coatepec","san-bartolome-cuahuixmatlac","san-bartolome-hueyapan","san-bartolome-loxicha","san-bartolome-quialana","san-bartolome-tenango","san-bartolome-tlaltelulco","san-bartolome-xicomulco","san-benito","san-benito-encinal","san-benito-xaltocan","san-bernabe-de-las-canteras","san-bernabe-temoxtitla","san-bernardino","san-bernardino-lagunas","san-bernardino-tlaxcalancingo","san-bernardo","san-bernardo-mixtepec","san-bernardo-pena-blanca","san-bernardo-tlalmimilolpan","san-blas","san-blas-atempa","san-bruno","san-buenaventura","san-buenaventura-atempan","san-buenaventura-tecaltzingo","san-caralampio","san-carlos","san-carlos-autopan","san-carlos-park","san-carlos-yautepec","san-cayetano","san-ciro-de-acosta","san-clemente","san-clemente-de-lima","san-cosme-atlamaxac","san-cristobal","san-cristobal-amatlan","san-cristobal-amoltepec","san-cristobal-chacon","san-cristobal-de-la-barranca","san-cristobal-de-las-casas","san-cristobal-hidalgo","san-cristobal-honduras","san-cristobal-lachirioag","san-cristobal-los-nava","san-cristobal-nexquipayac","san-cristobal-xochimilpa","san-cristobal-zapotitlan","san-damian-texoloc","san-diego","san-diego-alcala","san-diego-country-estates","san-diego-de-alcala","san-diego-de-alejandria","san-diego-de-la-union","san-diego-del-cerrito","san-diego-el-organal","san-diego-huehuecalco","san-diego-la-huerta","san-diego-linares","san-dimas","san-dionisio-del-mar","san-dionisio-ocotepec","san-dionisio-ocotlan","san-elias","san-elizario","san-esteban","san-esteban-atatlahuca","san-esteban-de-abajo","san-esteban-tizatlan","san-felipe","san-felipe-aztatan","san-felipe-cihualtepec","san-felipe-coamango","san-felipe-de-hijar","san-felipe-de-jesus","san-felipe-de-los-herreros","san-felipe-del-progreso","san-felipe-el-mirasol","san-felipe-hidalgo","san-felipe-jalapa-de-diaz","san-felipe-orizatlan","san-felipe-otlaltepec","san-felipe-pueblo","san-felipe-pueblo-nuevo","san-felipe-quiriceo","san-felipe-santiago","san-felipe-sultepec","san-felipe-tejalapam","san-felipe-teotitlan","san-felipe-tilpam","san-felipe-tizapa","san-felipe-tlalmimilolpan","san-felipe-usila","san-felix-hidalgo","san-felix-rijo","san-fernando","san-francisco","san-francisco-acuautla","san-francisco-atotonilco","san-francisco-ayotuzco","san-francisco-cajonos","san-francisco-chalchihuapan","san-francisco-chimalpa","san-francisco-chindua","san-francisco-coatlan","san-francisco-cozoaltepec","san-francisco-cuapa","san-francisco-cuautlancingo","san-francisco-cuaxusco","san-francisco-cuayalab","san-francisco-cuexcontzi","san-francisco-de-arriba","san-francisco-de-asis","san-francisco-de-borja","san-francisco-de-conchos","san-francisco-de-duran","san-francisco-de-guzman","san-francisco-de-la-palma","san-francisco-de-los-romo","san-francisco-de-rivas","san-francisco-de-tacuichamona","san-francisco-del-mar","san-francisco-del-mar-viejo","san-francisco-del-mezquital","san-francisco-del-rincon","san-francisco-el-calvito","san-francisco-grande","san-francisco-huehuetlan","san-francisco-ixhuatan","san-francisco-jacona","san-francisco-jaltepetongo","san-francisco-javier","san-francisco-koben","san-francisco-lachigolo","san-francisco-logueche","san-francisco-loxicha","san-francisco-magu","san-francisco-mata-clara","san-francisco-mazapa","san-francisco-mihualtepec","san-francisco-nacaxtle","san-francisco-nuxano","san-francisco-ocotlan","san-francisco-oxtotilpan","san-francisco-oxtutla","san-francisco-ozolotepec","san-francisco-ozomatlan","san-francisco-periban","san-francisco-pujiltic","san-francisco-putla","san-francisco-sola","san-francisco-solis","san-francisco-tecoxpa","san-francisco-telixtlahuaca","san-francisco-temetzontla","san-francisco-tenopalco","san-francisco-tepeolulco","san-francisco-tepexoxica","san-francisco-tepeyecac","san-francisco-tetetla","san-francisco-tetlanohcan","san-francisco-tlacuilohcan","san-francisco-tlalcilalcalpan","san-francisco-tlaloc","san-francisco-tlaltica","san-francisco-tutla","san-francisco-xochicuautla","san-francisco-zacacalco","san-francisco-zacapexpan","san-gabriel","san-gabriel-azteca","san-gabriel-chilac","san-gabriel-ixtla","san-gabriel-las-palmas","san-gabriel-mixtepec","san-gabriel-tetzoyocan","san-gabriel-y-san-ignacio","san-gabriel-zepayautla","san-gaspar","san-gaspar-tlahuelilpan","san-gaspar-tonatico","san-german","san-gregorio","san-gregorio-atzompa","san-gregorio-aztotoacan","san-gregorio-cuautzingo","san-hipolito","san-hipolito-chimalpa","san-ignacio","san-ignacio-cerro-gordo","san-ignacio-de-hidalgo","san-ignacio-nopala","san-ignacio-rio-muerto","san-ildefonso","san-ildefonso-amatlan","san-ildefonso-tultepec","san-ildefonso-villa-alta","san-isidro","san-isidro-alta-huerta","san-isidro-apango","san-isidro-boxipe","san-isidro-buen-suceso","san-isidro-buenavista","san-isidro-de-gamboa","san-isidro-de-la-concepcion","san-isidro-de-la-estacada","san-isidro-de-los-sauces","san-isidro-el-berro","san-isidro-el-reservado","san-isidro-huilotepec","san-isidro-las-banderas","san-isidro-mazatepec","san-isidro-miranda","san-isidro-monjas","san-isidro-monterrosas","san-isidro-palotal","san-isidro-vista-hermosa","san-jacinto","san-jacinto-amilpas","san-javier","san-jeronimito","san-jeronimo","san-jeronimo-acazulco","san-jeronimo-almoloya","san-jeronimo-amanalco","san-jeronimo-axochitlan","san-jeronimo-bonchete","san-jeronimo-coaltepec","san-jeronimo-coatlan","san-jeronimo-coyula","san-jeronimo-cuatro-vientos","san-jeronimo-de-araceo","san-jeronimo-de-juarez","san-jeronimo-de-los-jarros","san-jeronimo-el-grande","san-jeronimo-ocotitla","san-jeronimo-purenchecuaro","san-jeronimo-silacayoapilla","san-jeronimo-sosola","san-jeronimo-taviche","san-jeronimo-tecoatl","san-jeronimo-tlacochahuaya","san-jeronimo-totoltepec","san-jeronimo-tulija","san-jeronimo-xayacatlan","san-jeronimo-yahuiche","san-jeronimo-zacualpan","san-joaquin","san-joaquin-coapango","san-joaquin-del-monte","san-joaquin-hills","san-joaquin-zorrillos","san-jorge-nuchita","san-jorge-pueblo-nuevo","san-jorge-tezoquipan","san-jose","san-jose-acateno","san-jose-atlan","san-jose-atoyatenco","san-jose-ayuquila","san-jose-aztatla","san-jose-barbabosa","san-jose-boqui","san-jose-boxay","san-jose-buena-vista","san-jose-buenavista","san-jose-buenavista-el-grande","san-jose-carpinteros","san-jose-casas-caidas","san-jose-chacalapa","san-jose-chalmita","san-jose-chapayal","san-jose-chiapa","san-jose-chiltepec","san-jose-comalco","san-jose-corral-blanco","san-jose-cuamantzingo","san-jose-cuaro","san-jose-cuyachapa","san-jose-de-abajo","san-jose-de-agua-azul","san-jose-de-aura","san-jose-de-ayala","san-jose-de-bacum","san-jose-de-castellanos","san-jose-de-cervera","san-jose-de-duran-los-troncoso","san-jose-de-gracia","san-jose-de-guanajuato","san-jose-de-guaymas","san-jose-de-la-era","san-jose-de-la-laja","san-jose-de-la-montana","san-jose-de-la-paz","san-jose-de-las-flores","san-jose-de-las-pilas","san-jose-de-llanos","san-jose-de-los-olvera","san-jose-de-los-reynoso","san-jose-de-lourdes","san-jose-de-mendoza","san-jose-de-raices","san-jose-de-tapia","san-jose-de-vinedo","san-jose-de-zaragoza","san-jose-del-cabo","san-jose-del-castillo","san-jose-del-jaguey","san-jose-del-potrero","san-jose-del-progreso","san-jose-del-puente","san-jose-del-rincon-centro","san-jose-del-rodeo","san-jose-del-sitio","san-jose-del-tapanco","san-jose-del-torreon","san-jose-del-tunal","san-jose-del-valle","san-jose-el-alto","san-jose-el-cuartel","san-jose-el-llanito","san-jose-el-nuevo","san-jose-el-vidrio","san-jose-estancia-grande","san-jose-guadalupe-otzacatipan","san-jose-huipana","san-jose-independencia","san-jose-itho","san-jose-iturbide","san-jose-ixtapa-barrio-viejo","san-jose-la-garzona","san-jose-la-hacienda","san-jose-lachiguiri","san-jose-las-chicharras","san-jose-las-lomas","san-jose-las-palmas","san-jose-manzanitos","san-jose-mezapa-seccion-i","san-jose-monte-chiquito","san-jose-neria","san-jose-ocotillos","san-jose-ozumba","san-jose-pathe","san-jose-piedras-negras","san-jose-poliutla","san-jose-rio-manzo","san-jose-solis","san-jose-suchil","san-jose-teacalco","san-jose-tejamanil","san-jose-temascatio","san-jose-tenango","san-jose-tenejapa","san-jose-teneria-teneria","san-jose-tepeyahualco","san-jose-tepuzas","san-jose-tetel","san-jose-tilapa","san-jose-tlacotitlan","san-jose-tlacuitlapan","san-jose-toxi","san-jose-tzal","san-jose-viborillas","san-jose-villa-de-allende","san-jose-villarreal","san-jose-vista-hermosa","san-jose-xicohtencatl","san-jose-yashitinin","san-jose-yocnajab","san-juan","san-juan-achichilco","san-juan-achiutla","san-juan-ahuehueco","san-juan-ahuehueyo","san-juan-amecac","san-juan-atenco","san-juan-atepec","san-juan-atezcapan","san-juan-atzingo","san-juan-atzompa","san-juan-bautista","san-juan-bautista-cacalote","san-juan-bautista-jayacatlan","san-juan-bautista-la-raya","san-juan-bautista-lo-de-soto","san-juan-cabeza-del-rio","san-juan-cacahuatepec","san-juan-cancuc","san-juan-capistrano","san-juan-chilateca","san-juan-coajomulco","san-juan-coatzospam","san-juan-colon","san-juan-colorado","san-juan-cosala","san-juan-cote-ejido","san-juan-cotzocon","san-juan-coxtocan","san-juan-cuauhtemoc","san-juan-cuautla","san-juan-daxthi","san-juan-de-abajo","san-juan-de-guadalupe","san-juan-de-la-vaqueria","san-juan-de-la-vega","san-juan-de-las-huertas","san-juan-de-las-manzanas","san-juan-de-los-arcos","san-juan-de-los-cues","san-juan-de-los-jarros","san-juan-de-los-lagos","san-juan-de-los-platanos","san-juan-de-otates","san-juan-de-sabinas","san-juan-de-vina","san-juan-del-estado","san-juan-del-llanito","san-juan-del-rio","san-juan-diuxi","san-juan-epatlan","san-juan-evangelista","san-juan-grande","san-juan-guelavia","san-juan-guichicovi","san-juan-huactzinco","san-juan-hueyapan","san-juan-huiluco","san-juan-ihualtepec","san-juan-ixcaquixtla","san-juan-ixtayopan","san-juan-jalpa-centro","san-juan-jaltepec","san-juan-jaripeo","san-juan-jicayan","san-juan-juquila","san-juan-juquila-vijanos","san-juan-la-isla","san-juan-lachao","san-juan-lachigalla","san-juan-lagunas","san-juan-mazatlan","san-juan-metaltepec","san-juan-mixtepec","san-juan-numi","san-juan-ozolotepec","san-juan-pan-de-arriba","san-juan-pancoac","san-juan-petlapa","san-juan-pueblo-nuevo","san-juan-quetzalcoapan","san-juan-quiahue","san-juan-quiotepec","san-juan-raboso","san-juan-sautla","san-juan-sayultepec","san-juan-seco-de-valencia","san-juan-solis","san-juan-tabaa","san-juan-tahitic","san-juan-tecomatlan","san-juan-tehuixtitlan","san-juan-teitipac","san-juan-tejaluca","san-juan-tepa","san-juan-tepecoculco","san-juan-tepulco","san-juan-tetla","san-juan-texcalpan","san-juan-tezongo","san-juan-tilapa","san-juan-tilcuautla","san-juan-tlacotompa-tlacotompa","san-juan-tomasquillo-herradura","san-juan-totolapan","san-juan-totolcintla","san-juan-tuxco","san-juan-tuxtepec","san-juan-volador","san-juan-xiutetelco","san-juan-xochiaca","san-juan-xoconusco","san-juan-y-san-pedro-tezompa","san-juan-yaee","san-juan-yatzona","san-juan-yautepec","san-juan-zapotitlan","san-juan-zitlaltepec","san-juanico-sector-uno","san-juanito","san-juanito-de-escobedo","san-juanito-itzicuaro","san-julian","san-julio","san-leandro","san-leon","san-leoncio-jamaya","san-lorenzo","san-lorenzo-achiotepec","san-lorenzo-acopilco","san-lorenzo-albarradas","san-lorenzo-axocomanitla","san-lorenzo-cacaotepec","san-lorenzo-chiautzingo","san-lorenzo-cuauhtenco","san-lorenzo-cuaunecuiltitla","san-lorenzo-huehuetitlan","san-lorenzo-itzicuaro","san-lorenzo-joya-de-rodriguez","san-lorenzo-malacota","san-lorenzo-nenamicoyan","san-lorenzo-oyamel","san-lorenzo-querendaro","san-lorenzo-sayula","san-lorenzo-soltepec","san-lorenzo-tenochtitlan","san-lorenzo-tlacotepec","san-lorenzo-tlacoyucan","san-lorenzo-tlalmimilolpan","san-lorenzo-tlaxipehuala","san-lorenzo-toxico","san-lorenzo-vista-hermosa","san-lorenzo-xaltelulco","san-lucas","san-lucas-amalinalco","san-lucas-atzala","san-lucas-camotlan","san-lucas-del-pulque","san-lucas-el-grande","san-lucas-el-viejo","san-lucas-evangelista","san-lucas-huitzilhuacan","san-lucas-ocotepec","san-lucas-ojitlan","san-lucas-pio","san-lucas-quiavini","san-lucas-tecopilco","san-lucas-texcaltitlan","san-lucas-tlacochcalco","san-lucas-totolmaloya","san-lucas-zoquiapam","san-luis","san-luis-acatlan","san-luis-ajajalpan","san-luis-amatlan","san-luis-anahuac-toriles","san-luis-apizaquito","san-luis-ayucan","san-luis-boro","san-luis-coyotzingo","san-luis-de-agua-caliente","san-luis-de-la-loma","san-luis-de-la-paz","san-luis-de-letras","san-luis-de-lozada","san-luis-del-cordero","san-luis-obispo","san-luis-potosi","san-luis-rio-colorado","san-luis-san-pedro","san-luis-soyatlan","san-luis-taxhimay","san-luis-tecuhautitlan","san-luis-tehuiloyocan","san-luqueno","san-manuel","san-marcial-ozolotepec","san-marcos","san-marcos-arteaga","san-marcos-atesquilapan","san-marcos-contla","san-marcos-de-la-cruz","san-marcos-de-la-loma","san-marcos-de-leon","san-marcos-eloxochitlan","san-marcos-guaquilpan","san-marcos-huixtoco","san-marcos-nepantla","san-marcos-tecomaxusco","san-marcos-tlacoyalco","san-marcos-tlazalpan","san-marcos-yachihuacaltepec","san-marcos-zacatepec","san-marino","san-martin","san-martin-ahuatepec","san-martin-azcatepec","san-martin-cachihuapan","san-martin-caltenco","san-martin-chalchicuautla","san-martin-coapaxtongo","san-martin-cuautlalpan","san-martin-de-bolanos","san-martin-de-las-piramides","san-martin-de-los-canseco","san-martin-de-zula","san-martin-ejido","san-martin-esperilla","san-martin-florida","san-martin-hidalgo","san-martin-itunyoso","san-martin-lachila","san-martin-mazateopan","san-martin-ojo-de-agua","san-martin-pachivia-pachivia","san-martin-tilcajete","san-martin-tlamapa","san-martin-tlapala","san-martin-toltepec","san-martin-totolan","san-martin-tuchicuitlapilco","san-mateo","san-mateo-almomoloha","san-mateo-atarasquillo","san-mateo-atenco","san-mateo-ayecac","san-mateo-cajonos","san-mateo-capulhuac","san-mateo-capultitlan","san-mateo-coapexco","san-mateo-del-mar","san-mateo-el-viejo","san-mateo-etlatongo","san-mateo-huitzilzingo","san-mateo-ixtacalco","san-mateo-ixtlahuaca","san-mateo-mozoquilpan","san-mateo-nejapam","san-mateo-otzacatipan","san-mateo-ozolco","san-mateo-parra","san-mateo-pinas","san-mateo-soltepec","san-mateo-tecalco","san-mateo-texcalyacac","san-mateo-tlalchichilpan","san-mateo-xoloc","san-mateo-yoloxochitlan","san-matias-atzala","san-matias-cuijingo","san-matias-tepetomatitlan","san-matias-tlalancaleca","san-melchor-betaza","san-miguel","san-miguel-abejones","san-miguel-achiutla","san-miguel-agua-bendita","san-miguel-aguacomulican","san-miguel-ajusco","san-miguel-almaya","san-miguel-almoloyan","san-miguel-aloapam","san-miguel-amazcala","san-miguel-ameyalco","san-miguel-analco","san-miguel-atepoxco","san-miguel-atlamajac","san-miguel-atlapulco","san-miguel-axoxuca","san-miguel-balderas","san-miguel-canoa","san-miguel-cerezo-el-cerezo","san-miguel-chimalapa","san-miguel-coatlan","san-miguel-coatlinchan","san-miguel-contla","san-miguel-cuyutlan","san-miguel-de-allende","san-miguel-de-cruces","san-miguel-de-horcasitas","san-miguel-de-la-paz","san-miguel-de-la-victoria","san-miguel-de-las-palmas","san-miguel-del-arenal","san-miguel-del-centro","san-miguel-del-milagro","san-miguel-del-progreso","san-miguel-del-puerto","san-miguel-del-valle","san-miguel-ejutla","san-miguel-el-alto","san-miguel-el-grande","san-miguel-emenguaro","san-miguel-enyege","san-miguel-epejan","san-miguel-espejo","san-miguel-figueroa","san-miguel-hila","san-miguel-huautla","san-miguel-ixitlan","san-miguel-ixtapan","san-miguel-jaltocan","san-miguel-la-sardina","san-miguel-laderas","san-miguel-mecatepec","san-miguel-mimlapan","san-miguel-mixtepec","san-miguel-monteverde","san-miguel-ocotenco","san-miguel-octopan","san-miguel-oxtotilpan","san-miguel-panixtlahuaca","san-miguel-papaxtla","san-miguel-peras","san-miguel-quetzaltepec","san-miguel-suchixtepec","san-miguel-tecomatlan","san-miguel-tecpan","san-miguel-tecuiciapan","san-miguel-tecuitlapa","san-miguel-tenango","san-miguel-tenextatiloyan","san-miguel-tenochtitlan","san-miguel-tetepelcingo","san-miguel-tianguistenco","san-miguel-tianguizolco","san-miguel-tilquiapam","san-miguel-tlacamama","san-miguel-tlacotepec","san-miguel-tlaixpan","san-miguel-tlalpoalan","san-miguel-tlamahuco","san-miguel-topilejo","san-miguel-totocuitlapilco","san-miguel-totolapan","san-miguel-totoltepec","san-miguel-vindho","san-miguel-xochitecatitla","san-miguel-xoltepec","san-miguel-xoxtla","san-miguel-yuxtepec","san-miguel-zapotitlan","san-miguel-zoapan","san-miguelito","san-nicolas","san-nicolas-amealco","san-nicolas-buenos-aires","san-nicolas-de-la-condesa","san-nicolas-de-la-torre","san-nicolas-de-los-agustinos","san-nicolas-de-los-garza","san-nicolas-de-los-ranchos","san-nicolas-del-carmen","san-nicolas-el-chico","san-nicolas-el-oro","san-nicolas-guadalupe","san-nicolas-obispo","san-nicolas-peralta","san-nicolas-quialana","san-nicolas-solis","san-nicolas-tecomatlan","san-nicolas-temascatio","san-nicolas-tlazala","san-nicolas-tolentino","san-nicolas-zecalacoayan","san-nicolas-zoyapetlayoca","san-pablito","san-pablo","san-pablo-ahuatempa","san-pablo-anicano","san-pablo-atlazalpan","san-pablo-atotonilco","san-pablo-atzompa","san-pablo-autopan","san-pablo-coatlan","san-pablo-cuatro-venados","san-pablo-de-las-salinas","san-pablo-de-las-tunas","san-pablo-de-los-gallos","san-pablo-de-los-remedios","san-pablo-el-grande","san-pablo-etla","san-pablo-guila","san-pablo-huacano","san-pablo-huantepec","san-pablo-huitzo","san-pablo-huixtepec","san-pablo-ixayoc","san-pablo-ixquitlan","san-pablo-macuiltianguis","san-pablo-oztotepec","san-pablo-pejo","san-pablo-pixtun","san-pablo-tecalco","san-pablo-tejalpa","san-pablo-villa-de-mitla","san-pasqual","san-patricio","san-pedro","san-pedro-abajo","san-pedro-amuzgos","san-pedro-apatlaco","san-pedro-apostol","san-pedro-arriba","san-pedro-arriba-3ra-seccion","san-pedro-atlapulco","san-pedro-atmatla","san-pedro-atocpan","san-pedro-atoyac","san-pedro-benito-juarez","san-pedro-buenavista","san-pedro-cacahuatepec","san-pedro-chiautzingo","san-pedro-chimay","san-pedro-chochula","san-pedro-cholula","san-pedro-comitancillo","san-pedro-coxcaltepec-cantaros","san-pedro-coyutla","san-pedro-cuayuca","san-pedro-cuitlapan","san-pedro-de-ibarra","san-pedro-de-la-cueva","san-pedro-de-los-banos","san-pedro-de-los-metates","san-pedro-de-los-naranjos","san-pedro-de-los-sauces","san-pedro-del-gallo","san-pedro-del-rincon","san-pedro-del-rosal","san-pedro-denxhi-centro","san-pedro-ecatepec","san-pedro-el-alto","san-pedro-garza-garcia","san-pedro-guasave","san-pedro-huamelula","san-pedro-huaquilpan","san-pedro-huilotepec","san-pedro-huitzizilapan","san-pedro-itzican","san-pedro-itztla","san-pedro-ixcatlan","san-pedro-ixtlahuaca","san-pedro-jacuaro","san-pedro-jicayan","san-pedro-juchaltengo","san-pedro-la-joya","san-pedro-lagunillas","san-pedro-las-playas","san-pedro-limon","san-pedro-los-banos","san-pedro-martir","san-pedro-martir-quiechapa","san-pedro-martir-yucuxaco","san-pedro-matamoros","san-pedro-mixtepec","san-pedro-munoztla","san-pedro-nexapa","san-pedro-nichtalucum","san-pedro-nuevo","san-pedro-ocopetatillo","san-pedro-ocotepec","san-pedro-ozumacin","san-pedro-petlacotla","san-pedro-piedra-gorda","san-pedro-pochutla","san-pedro-quiatoni","san-pedro-sochiapam","san-pedro-tapanatepec","san-pedro-tarimbaro","san-pedro-taviche","san-pedro-techuchulco","san-pedro-tejalpa","san-pedro-temamatla","san-pedro-tenango","san-pedro-tenayac","san-pedro-tepetitlan","san-pedro-tesistan","san-pedro-tetitlan","san-pedro-tidaa","san-pedro-tlachichilco","san-pedro-tlacotepec","san-pedro-tlaltizapan","san-pedro-tlanixco","san-pedro-tlaolantongo","san-pedro-tlapacoyan","san-pedro-tlaquilpan","san-pedro-topiltepec","san-pedro-totolapam","san-pedro-totoltepec","san-pedro-tulixtlahuaca","san-pedro-tultepec","san-pedro-xalcaltzinco","san-pedro-xalpa","san-pedro-xochiteotla","san-pedro-yancuitlalpan","san-pedro-yolox","san-pedro-zacachimalpa","san-pedro-zictepec","san-quintin","san-rafael","san-rafael-caleria","san-rafael-ixtapalucan","san-rafael-rio-seco","san-rafael-tecario","san-rafael-tenanyecac","san-rafael-tepatlaxco","san-rafael-tlanalapan","san-rafael-zaragoza","san-ramon","san-raymundo-jalpam","san-roque","san-roque-de-montes","san-roque-de-torres","san-saba","san-salvador","san-salvador-atenco","san-salvador-cuauhtenco","san-salvador-el-seco","san-salvador-el-verde","san-salvador-naranjillo","san-salvador-tizatlalli","san-salvador-torrecillas","san-sebastian","san-sebastian-abasolo","san-sebastian-alcomunga","san-sebastian-buenos-aires","san-sebastian-chimalpa","san-sebastian-coatlan","san-sebastian-de-aparicio","san-sebastian-de-salitre","san-sebastian-del-monte","san-sebastian-del-oeste","san-sebastian-del-sur","san-sebastian-el-grande","san-sebastian-etla","san-sebastian-fraccionamiento","san-sebastian-nicananduta","san-sebastian-rio-hondo","san-sebastian-teitipac","san-sebastian-tenochtitlan","san-sebastian-teteles","san-sebastian-tutla","san-sebastian-xolalpa","san-simeon-xipetzingo","san-simon","san-simon-almolongas","san-simon-atzitzintla","san-simon-de-guerrero","san-simon-de-la-laguna","san-simon-el-alto","san-simon-tlatlahuquitepec","san-simonito","san-tadeo","san-tan-valley","san-vicente","san-vicente-boqueron","san-vicente-chimalhuacan","san-vicente-coatlan","san-vicente-coyotepec","san-vicente-de-flores","san-vicente-de-juarez","san-vicente-el-alto","san-vicente-ferrer","san-vicente-la-mesilla","san-vicente-lachixio","san-vicente-nunu","san-vicente-palapa","san-vicente-pinas","san-vicente-tancuayalab","san-vicente-zoyatlan","san-ysidro","sanacateno","sanagustin","sanagustinamatengo","sanagustinatenango","sanagustinatzompa","sanagustinberros","sanagustinbuenavista","sanagustinchayuco","sanagustincitlali","sanagustindelasflores","sanagustindelasjuntas","sanagustindelaspalmas","sanagustindelmaiz","sanagustindelpalmar","sanagustindelpulque","sanagustinetla","sanagustinhuitzizilapan","sanagustinhuixaxtla","sanagustinloxicha","sanagustinmextepec","sanagustinmimbres","sanagustinoapan","sanagustintlaxco","sanagustintlaxiaca","sanagustinyatareni","sanagustinzapotlan","sanahcat","sanalejo","sanalona","sanandreas","sanandres","sanandresahuashuatepec","sanandresazumiatla","sanandrescacaloapan","sanandrescalpan","sanandreschicahuaxtla","sanandrescholula","sanandrescohamiata","sanandrescoru","sanandrescuexcontitlan","sanandresdelacal","sanandresdelasperas","sanandresdelosgama","sanandresdelpedregal","sanandresdinicuiti","sanandresduraznal","sanandresenguaro","sanandreshidalgo","sanandreshuaxpaltepec","sanandreshuayapam","sanandreshueyacatitla","sanandresixtlahuaca","sanandresixtlan","sanandresmetla","sanandresmixquic","sanandresnicolasbravo","sanandresocotepec","sanandresocotlan","sanandrespaxtlan","sanandrespayuca","sanandressanandreschichayotla","sanandressinaxtla","sanandressolaga","sanandrestenejapan","sanandresteotilalpam","sanandrestepetitlan","sanandrestimilpan","sanandrestlalamac","sanandrestuxtla","sanandresyaa","sanandresyahuitlalpan","sanandreszautla","sanandreszirondaro","sanangel","sanangelo","sananselmo","sanantoninocastillovelasco","sanantonio","sanantonioacahualco","sanantonioalpanocan","sanantonioarrazola","sanantonioatotonilco","sanantoniobonixi","sanantoniobuenavista","sanantoniobulujib","sanantoniocalichar","sanantoniocanada","sanantoniocardenas","sanantoniochiverias","sanantoniocoyahuacan","sanantoniodecorrales","sanantoniodefernandez","sanantoniodelacal","sanantoniodelalaguna","sanantoniodelasalazanas","sanantoniodelashuertas","sanantoniodelaspalmas","sanantoniodelcipres","sanantoniodelcoyote","sanantoniodelmonte","sanantoniodeloshorcones","sanantoniodelosmorales","sanantoniodelosrios","sanantoniodelostepetates","sanantoniodelosvazquez","sanantoniodelpuente","sanantoniodelrosario","sanantoniodepenuelas","sanantonioderivas","sanantonioderomerillo","sanantonioelchico","sanantonioelgrande","sanantonioelllanito","sanantonioelpaso","sanantonioelrico","sanantonioemenguaro","sanantonioenchisi","sanantoniogallardo","sanantonioguaracha","sanantonioheights","sanantoniohuitepec","sanantoniojuarez","sanantoniolaisla","sanantoniolalabor","sanantoniolaportilla","sanantoniolaspalmas","sanantoniomatlahuacales","sanantoniomihuacan","sanantoniomolinos","sanantonionixini","sanantonioocopetlatlan","sanantonioocotlan","sanantonioportezuelo","sanantonioprimero","sanantoniorayon","sanantoniosahcabchen","sanantoniosoledad","sanantoniosolis","sanantoniotariacuri","sanantoniotecolco","sanantoniotecomitl","sanantoniotedzidz","sanantoniotepetlapa","sanantoniotexas","sanantoniotlacamilco","sanantoniotlaltecahuacan","sanantoniotlatenco","sanantoniovillalongin","sanantoniovirreyes","sanantonioxahuento","sanantonioxoquitla","sanantoniozaragoza","sanata-lucia","sanatalucia","sanatenogeneslavillita","sanatoga","sanaugustine","sanb","sanbaltazaratlimeyaya","sanbaltazarchichicapam","sanbaltazarguelavila","sanbaltazarloxicha","sanbartolitotlaltelolco","sanbartolo","sanbartolocoyotespec","sanbartolocuautlalpan","sanbartolocuitareo","sanbartolodeberrios","sanbartolodelllano","sanbartolodelllanosanisidro","sanbartolodelprogreso","sanbartoloelviejo","sanbartololanzados","sanbartolome","sanbartolomeaguascalientes","sanbartolomeatlatlahuca","sanbartolomeayautla","sanbartolomecoatepec","sanbartolomecuahuixmatlac","sanbartolomehueyapan","sanbartolomeloxicha","sanbartolomequialana","sanbartolometenango","sanbartolometlaltelulco","sanbartolomexicomulco","sanbartolomorelos","sanbartolooxtotitlan","sanbartoloozocalpan","sanbartolotlaxihuicalco","sanbartolotutotepec","sanbartoloyautepec","sanbenito","sanbenitoencinal","sanbenitoxaltocan","sanbernabedelascanteras","sanbernabetemoxtitla","sanbernardino","sanbernardinodemilpillaschico","sanbernardinolagunas","sanbernardinotlaxcalancingo","sanbernardo","sanbernardomixtepec","sanbernardopenablanca","sanbernardotlalmimilolpan","sanblas","sanblasatempa","sanborn","sanbornton","sanbornville","sanbruno","sanbuenaventura","sanbuenaventuraatempan","sanbuenaventuratecaltzingo","sancaralampio","sancarlos","sancarlosautopan","sancarlospark","sancarlosyautepec","sancayetano","sanchez","sancirodeacosta","sanclemente","sanclementedelima","sancosmeatlamaxac","sancristobal","sancristobalamatlan","sancristobalamoltepec","sancristobalchacon","sancristobaldelabarranca","sancristobaldelascasas","sancristobalhidalgo","sancristobalhonduras","sancristoballachirioag","sancristoballosnava","sancristobalnexquipayac","sancristobalxochimilpa","sancristobalzapotitlan","sanctorum","sand-hill","sand-lake","sand-point","sand-springs","sandalfoot-cove","sandalfootcove","sandamiantexoloc","sanderson","sandersville","sandhill","sandia-heights","sandia-knolls","sandiaheights","sandiaknolls","sandiego","sandiegoalcala","sandiegocountryestates","sandiegodealcala","sandiegodealejandria","sandiegodelaunion","sandiegodelcerrito","sandiegoelorganal","sandiegohuehuecalco","sandiegolahuerta","sandiegolinares","sandimas","sandionisiodelmar","sandionisioocotepec","sandionisioocotlan","sandlake","sandoval","sandown","sandpoint","sands-point","sandspoint","sandsprings","sandston","sandstone","sandusky","sandwich","sandy","sandy-hills","sandy-hook","sandy-springs","sandy-valley","sandyhills","sandyhook","sandysprings","sandyvalley","sane","sanelias","sanelizario","sanesteban","sanestebanatatlahuca","sanestebandeabajo","sanestebansanmigueltateposco","sanestebantizatlan","sanfelipe","sanfelipeaztatan","sanfelipecihualtepec","sanfelipecoamango","sanfelipedehijar","sanfelipedejesus","sanfelipedelosherreros","sanfelipedelprogreso","sanfelipeelmirasol","sanfelipehidalgo","sanfelipejalapadediaz","sanfelipelosalzaticolonianueva","sanfelipeorizatlan","sanfelipeotlaltepec","sanfelipepueblo","sanfelipepueblonuevo","sanfelipequiriceo","sanfelipesantiago","sanfelipesultepec","sanfelipetejalapam","sanfelipeteotitlan","sanfelipetilpam","sanfelipetizapa","sanfelipetlalmimilolpan","sanfelipeusila","sanfelixhidalgo","sanfelixrijo","sanfernando","sanford","sanfrancisco","sanfranciscoacuautla","sanfranciscoatotonilco","sanfranciscoayotuzco","sanfranciscocajonos","sanfranciscochalchihuapan","sanfranciscochimalpa","sanfranciscochindua","sanfranciscocoatlan","sanfranciscocozoaltepec","sanfranciscocuapa","sanfranciscocuautlancingo","sanfranciscocuaxusco","sanfranciscocuayalab","sanfranciscocuexcontzi","sanfranciscodearriba","sanfranciscodeasis","sanfranciscodeborja","sanfranciscodeconchos","sanfranciscodeduran","sanfranciscodeguzman","sanfranciscodelapalma","sanfranciscodelmar","sanfranciscodelmarviejo","sanfranciscodelmezquital","sanfranciscodelosromo","sanfranciscodelrincon","sanfranciscoderivas","sanfranciscodetacuichamona","sanfranciscoelcalvito","sanfranciscogrande","sanfranciscohuehuetlan","sanfranciscoixhuatan","sanfranciscojacona","sanfranciscojaltepetongo","sanfranciscojavier","sanfranciscokoben","sanfranciscolachigolo","sanfranciscologueche","sanfranciscoloxicha","sanfranciscomagu","sanfranciscomataclara","sanfranciscomazapa","sanfranciscomihualtepec","sanfrancisconacaxtle","sanfrancisconuxano","sanfranciscoocotlan","sanfranciscooxtotilpan","sanfranciscooxtutla","sanfranciscoozolotepec","sanfranciscoozomatlan","sanfranciscoperiban","sanfranciscopujiltic","sanfranciscoputla","sanfranciscosola","sanfranciscosolis","sanfranciscotecoxpa","sanfranciscotelixtlahuaca","sanfranciscotemetzontla","sanfranciscotenopalco","sanfranciscotepeolulco","sanfranciscotepexoxica","sanfranciscotepeyecac","sanfranciscotetetla","sanfranciscotetlanohcan","sanfranciscotlacuilohcan","sanfranciscotlalcilalcalpan","sanfranciscotlaloc","sanfranciscotlaltica","sanfranciscotutla","sanfranciscoxochicuautla","sanfranciscozacacalco","sanfranciscozacapexpan","sangabriel","sangabrielazteca","sangabrielchilac","sangabrielixtla","sangabriellaspalmas","sangabrielmixtepec","sangabrieltetzoyocan","sangabrielysanignacio","sangabrielzepayautla","sangaree","sangaspar","sangaspartlahuelilpan","sangaspartonatico","sanger","sangerman","sangerville","sangregorio","sangregorioatzompa","sangregorioaztotoacan","sangregoriocuautzingo","sanhipolito","sanhipolitochimalpa","sanibel","sanignacio","sanignaciocerrogordo","sanignaciodehidalgo","sanignacioderiveraojodeagua","sanignaciodesanjoseparangueo","sanignacionopala","sanignacioriomuerto","sanikiluaq","sanildefonso","sanildefonsoamatlan","sanildefonsotultepec","sanildefonsovillaalta","sanisidro","sanisidroaltahuerta","sanisidroapango","sanisidroboxipe","sanisidrobuenavista","sanisidrobuensuceso","sanisidrodegamboa","sanisidrodelaconcepcion","sanisidrodelaestacada","sanisidrodelossauces","sanisidroelberro","sanisidroelreservado","sanisidrogallineroelgallinero","sanisidrohuilotepec","sanisidrolasbanderas","sanisidromazatepec","sanisidromiranda","sanisidromonjas","sanisidromonterrosas","sanisidropalotal","sanisidrovistahermosa","sanjacinto","sanjacintoamilpas","sanjavier","sanjeronimito","sanjeronimo","sanjeronimoacazulco","sanjeronimoalmoloya","sanjeronimoamanalco","sanjeronimoaxochitlan","sanjeronimobonchete","sanjeronimocoaltepec","sanjeronimocoatlan","sanjeronimocoyula","sanjeronimocuatrovientos","sanjeronimodearaceo","sanjeronimodejuarez","sanjeronimodelosjarros","sanjeronimoelgrande","sanjeronimoocotitla","sanjeronimopurenchecuaro","sanjeronimosilacayoapilla","sanjeronimososola","sanjeronimotaviche","sanjeronimotecoatl","sanjeronimotlacochahuaya","sanjeronimototoltepec","sanjeronimotulija","sanjeronimoxayacatlan","sanjeronimoyahuiche","sanjeronimozacualpan","sanjoaquin","sanjoaquincoapango","sanjoaquindelmonte","sanjoaquinhills","sanjoaquinzorrillos","sanjorgenuchita","sanjorgepueblonuevo","sanjorgetezoquipan","sanjose","sanjoseacateno","sanjoseatlan","sanjoseatoyatenco","sanjoseayuquila","sanjoseaztatla","sanjosebarbabosa","sanjoseboqui","sanjoseboxay","sanjosebuenavista","sanjosebuenavistaelgrande","sanjosecarpinteros","sanjosecasascaidas","sanjosechacalapa","sanjosechalmita","sanjosechapayal","sanjosechiapa","sanjosechiltepec","sanjosecomalco","sanjosecorralblanco","sanjosecuamantzingo","sanjosecuaro","sanjosecuyachapa","sanjosedeabajo","sanjosedeaguaazul","sanjosedeaura","sanjosedeayala","sanjosedebacum","sanjosedebernalejoelguayabo","sanjosedecastellanos","sanjosedecervera","sanjosededuranlostroncoso","sanjosedegracia","sanjosedeguanajuato","sanjosedeguaymas","sanjosedelaera","sanjosedelalaja","sanjosedelamontana","sanjosedelapaz","sanjosedelasflores","sanjosedelaspilas","sanjosedelcabo","sanjosedelcalicheelcaliche","sanjosedelcastillo","sanjosedelcerritodecamargo","sanjosedeljaguey","sanjosedellanos","sanjosedelosolvera","sanjosedelosreynoso","sanjosedelourdes","sanjosedelpotrero","sanjosedelprogreso","sanjosedelpuente","sanjosedelrinconcentro","sanjosedelrodeo","sanjosedelsitio","sanjosedeltapanco","sanjosedeltorreon","sanjosedeltunal","sanjosedelvalle","sanjosedemendoza","sanjosederaices","sanjosedetapia","sanjosedevinedo","sanjosedezaragoza","sanjoseelalto","sanjoseelcuartel","sanjoseelllanito","sanjoseelnuevo","sanjoseelsaladilloelsaladillo","sanjoseelvidrio","sanjoseestanciagrande","sanjoseguadalupeotzacatipan","sanjosehuipana","sanjoseindependencia","sanjoseitho","sanjoseiturbide","sanjoseixtapabarrioviejo","sanjoselachiguiri","sanjoselagarzona","sanjoselahacienda","sanjoselaschicharras","sanjoselaslomas","sanjoselaspalmas","sanjosemanzanitos","sanjosemezapaseccioni","sanjosemontechiquito","sanjoseneria","sanjoseocotillos","sanjoseozumba","sanjosepathe","sanjosepiedrasnegras","sanjosepoliutla","sanjoseriomanzo","sanjosesolis","sanjosesuchil","sanjoseteacalco","sanjosetejamanil","sanjosetemascatio","sanjosetenango","sanjosetenejapa","sanjoseteneriateneria","sanjosetepeyahualco","sanjosetepuzas","sanjosetetel","sanjosetilapa","sanjosetlacotitlan","sanjosetlacuitlapan","sanjosetoxi","sanjosetzal","sanjoseviborillas","sanjosevilladeallende","sanjosevillarreal","sanjosevistahermosa","sanjosexicohtencatl","sanjoseyashitinin","sanjoseyocnajab","sanjuan","sanjuanachichilco","sanjuanachiutla","sanjuanahuehueco","sanjuanahuehueyo","sanjuanamecac","sanjuanatenco","sanjuanatepec","sanjuanatezcapan","sanjuanatzingo","sanjuanatzompa","sanjuanbautista","sanjuanbautistacacalote","sanjuanbautistajayacatlan","sanjuanbautistalaraya","sanjuanbautistalodesoto","sanjuancabezadelrio","sanjuancacahuatepec","sanjuancancuc","sanjuancapistrano","sanjuanchilateca","sanjuancoajomulco","sanjuancoatzospam","sanjuancolon","sanjuancolorado","sanjuancosala","sanjuancoteejido","sanjuancotzocon","sanjuancoxtocan","sanjuancuauhtemoc","sanjuancuautla","sanjuandaxthi","sanjuandeabajo","sanjuandediosnaranjasdedios","sanjuandeguadalupe","sanjuandelashuertas","sanjuandelasmanzanas","sanjuandelavaqueria","sanjuandelavega","sanjuandelestado","sanjuandelllanito","sanjuandelosarcos","sanjuandeloscues","sanjuandelosjarros","sanjuandeloslagos","sanjuandelosplatanos","sanjuandelrio","sanjuandeotates","sanjuandesabinas","sanjuandevina","sanjuandiuxi","sanjuanepatlan","sanjuanevangelista","sanjuangrande","sanjuanguelavia","sanjuanguichicovi","sanjuanhuactzinco","sanjuanhueyapan","sanjuanhuiluco","sanjuanicosectoruno","sanjuanihualtepec","sanjuanito","sanjuanitodeescobedo","sanjuanitoitzicuaro","sanjuanixcaquixtla","sanjuanixtayopan","sanjuanjalpacentro","sanjuanjaltepec","sanjuanjaripeo","sanjuanjicayan","sanjuanjuquila","sanjuanjuquilavijanos","sanjuanlachao","sanjuanlachigalla","sanjuanlagunas","sanjuanlaisla","sanjuanmazatlan","sanjuanmetaltepec","sanjuanmixtepec","sanjuannumi","sanjuanozolotepec","sanjuanpancoac","sanjuanpandearriba","sanjuanpetlapa","sanjuanpueblonuevo","sanjuanquetzalcoapan","sanjuanquiahue","sanjuanquiotepec","sanjuanraboso","sanjuansautla","sanjuansayultepec","sanjuansecodevalencia","sanjuansolis","sanjuantabaa","sanjuantahitic","sanjuantecomatlan","sanjuantehuixtitlan","sanjuanteitipac","sanjuantejaluca","sanjuantepa","sanjuantepecoculco","sanjuantepulco","sanjuantetla","sanjuantexcalpan","sanjuantezongo","sanjuantilapa","sanjuantilcuautla","sanjuantlacotompatlacotompa","sanjuantomasquilloherradura","sanjuantotolapan","sanjuantotolcintla","sanjuantuxco","sanjuantuxtepec","sanjuanvolador","sanjuanxiutetelco","sanjuanxochiaca","sanjuanxoconusco","sanjuanyaee","sanjuanyatzona","sanjuanyautepec","sanjuanysanpedrotezompa","sanjuanzapotitlan","sanjuanzitlaltepec","sanjulian","sanjulio","sanleandro","sanleon","sanleonciojamaya","sanlorenzo","sanlorenzoachiotepec","sanlorenzoacopilco","sanlorenzoalbarradas","sanlorenzoaxocomanitla","sanlorenzocacaotepec","sanlorenzochiautzingo","sanlorenzocuauhtenco","sanlorenzocuaunecuiltitla","sanlorenzohuehuetitlan","sanlorenzoitzicuaro","sanlorenzojoyaderodriguez","sanlorenzomalacota","sanlorenzonenamicoyan","sanlorenzooyamel","sanlorenzoquerendaro","sanlorenzosayula","sanlorenzosoltepec","sanlorenzotenochtitlan","sanlorenzotlacotepec","sanlorenzotlacoyucan","sanlorenzotlalmimilolpan","sanlorenzotlaxipehuala","sanlorenzotoxico","sanlorenzovistahermosa","sanlorenzoxaltelulco","sanlucas","sanlucasamalinalco","sanlucasatzala","sanlucascamotlan","sanlucasdelpulque","sanlucaselgrande","sanlucaselviejo","sanlucasevangelista","sanlucashuitzilhuacan","sanlucasocotepec","sanlucasojitlan","sanlucaspio","sanlucasquiavini","sanlucastecopilco","sanlucastexcaltitlan","sanlucastlacochcalco","sanlucastotolmaloya","sanlucaszoquiapam","sanluis","sanluisacatlan","sanluisajajalpan","sanluisamatlan","sanluisanahuactoriles","sanluisapizaquito","sanluisayucan","sanluisboro","sanluiscoyotzingo","sanluisdeaguacaliente","sanluisdelaloma","sanluisdelapaz","sanluisdelcordero","sanluisdeletras","sanluisdelozada","sanluisobispo","sanluispotosi","sanluisriocolorado","sanluissanpedro","sanluissoyatlan","sanluistaxhimay","sanluistecuhautitlan","sanluistehuiloyocan","sanluqueno","sanmanuel","sanmarcialozolotepec","sanmarcos","sanmarcosarteaga","sanmarcosatesquilapan","sanmarcoscontla","sanmarcosdelacruz","sanmarcosdelaloma","sanmarcosdeleon","sanmarcoseloxochitlan","sanmarcosguaquilpan","sanmarcoshuixtoco","sanmarcosnepantla","sanmarcostecomaxusco","sanmarcostlacoyalco","sanmarcostlazalpan","sanmarcosyachihuacaltepec","sanmarcoszacatepec","sanmarino","sanmartin","sanmartinahuatepec","sanmartinazcatepec","sanmartincachihuapan","sanmartincaltenco","sanmartinchalchicuautla","sanmartincoapaxtongo","sanmartincuautlalpan","sanmartindebolanos","sanmartindelaspiramides","sanmartindeloscanseco","sanmartindezula","sanmartinejido","sanmartinesperilla","sanmartinflorida","sanmartinhidalgo","sanmartinitunyoso","sanmartinlachila","sanmartinmazateopan","sanmartinojodeagua","sanmartinpachiviapachivia","sanmartintexmelucandelabastida","sanmartintilcajete","sanmartintlamapa","sanmartintlapala","sanmartintoltepec","sanmartintotolan","sanmartintuchicuitlapilco","sanmateo","sanmateoalmomoloha","sanmateoatarasquillo","sanmateoatenco","sanmateoayecac","sanmateocajonos","sanmateocapulhuac","sanmateocapultitlan","sanmateocoapexco","sanmateodelmar","sanmateoelviejo","sanmateoetlatongo","sanmateohuitzilzingo","sanmateoixtacalco","sanmateoixtlahuaca","sanmateomozoquilpan","sanmateonejapam","sanmateootzacatipan","sanmateoozolco","sanmateoparra","sanmateopinas","sanmateosoltepec","sanmateotecalco","sanmateotexcalyacac","sanmateotlalchichilpan","sanmateoxoloc","sanmateoyoloxochitlan","sanmatiasatzala","sanmatiascuijingo","sanmatiastepetomatitlan","sanmatiastlalancaleca","sanmelchorbetaza","sanmiguel","sanmiguelabejones","sanmiguelachiutla","sanmiguelaguabendita","sanmiguelaguacomulican","sanmiguelajusco","sanmiguelalmaya","sanmiguelalmoloyan","sanmiguelaloapam","sanmiguelamazcala","sanmiguelameyalco","sanmiguelanalco","sanmiguelatepoxco","sanmiguelatlamajac","sanmiguelatlapulco","sanmiguelaxoxuca","sanmiguelbalderas","sanmiguelcanoa","sanmiguelcerezoelcerezo","sanmiguelchimalapa","sanmiguelcoatlan","sanmiguelcoatlinchan","sanmiguelcontla","sanmiguelcuyutlan","sanmigueldeallende","sanmigueldecruces","sanmigueldehorcasitas","sanmigueldelapaz","sanmigueldelarenal","sanmigueldelaspalmas","sanmigueldelavictoria","sanmigueldelcentro","sanmigueldelmilagro","sanmigueldelprogreso","sanmigueldelpuerto","sanmigueldelvalle","sanmiguelejutla","sanmiguelelalto","sanmiguelelgrande","sanmiguelelgrandevillajuarez","sanmiguelemenguaro","sanmiguelenyege","sanmiguelepejan","sanmiguelespejo","sanmiguelfigueroa","sanmiguelhila","sanmiguelhuautla","sanmiguelito","sanmiguelixitlan","sanmiguelixtapan","sanmigueljaltocan","sanmiguelladeras","sanmiguellasardina","sanmiguelmecatepec","sanmiguelmimlapan","sanmiguelmixtepec","sanmiguelmonteverde","sanmiguelocotenco","sanmigueloctopan","sanmigueloxtotilpan","sanmiguelpanixtlahuaca","sanmiguelpapaxtla","sanmiguelperas","sanmiguelquetzaltepec","sanmiguelsuchixtepec","sanmigueltecomatlan","sanmigueltecpan","sanmigueltecuiciapan","sanmigueltecuitlapa","sanmigueltenango","sanmigueltenextatiloyan","sanmigueltenochtitlan","sanmigueltetepelcingo","sanmigueltianguistenco","sanmigueltianguizolco","sanmigueltilquiapam","sanmigueltlacamama","sanmigueltlacotepec","sanmigueltlaixpan","sanmigueltlalpoalan","sanmigueltlamahuco","sanmigueltopilejo","sanmigueltotocuitlapilco","sanmigueltotolapan","sanmigueltotoltepec","sanmiguelvindho","sanmiguelxochitecatitla","sanmiguelxoltepec","sanmiguelxoxtla","sanmiguelyuxtepec","sanmiguelzapotitlan","sanmiguelzoapan","sannicolas","sannicolasamealco","sannicolasbuenosaires","sannicolasdelacondesa","sannicolasdelatorre","sannicolasdelcarmen","sannicolasdelosagustinos","sannicolasdelosgarza","sannicolasdelosranchos","sannicolaselchico","sannicolaseloro","sannicolasguadalupe","sannicolasobispo","sannicolasperalta","sannicolasquialana","sannicolassolis","sannicolastecomatlan","sannicolastemascatio","sannicolastlazala","sannicolastolentino","sannicolaszecalacoayan","sannicolaszoyapetlayoca","sanpablito","sanpablo","sanpabloahuatempa","sanpabloanicano","sanpabloatlazalpan","sanpabloatotonilco","sanpabloatzompa","sanpabloautopan","sanpablocoatlan","sanpablocuatrovenados","sanpablodelassalinas","sanpablodelastunas","sanpablodelosgallos","sanpablodelosremedios","sanpabloelgrande","sanpabloetla","sanpabloguila","sanpablohuacano","sanpablohuantepec","sanpablohuitzo","sanpablohuixtepec","sanpabloixayoc","sanpabloixquitlan","sanpablomacuiltianguis","sanpablooztotepec","sanpablopejo","sanpablopixtun","sanpablotecalco","sanpablotejalpa","sanpablovillademitla","sanpasqual","sanpatricio","sanpedro","sanpedroabajo","sanpedroamuzgos","sanpedroapatlaco","sanpedroapostol","sanpedroarriba","sanpedroarriba3raseccion","sanpedroatlapulco","sanpedroatmatla","sanpedroatocpan","sanpedroatoyac","sanpedrobenitojuarez","sanpedrobuenavista","sanpedrocacahuatepec","sanpedrochiautzingo","sanpedrochimay","sanpedrochochula","sanpedrocholula","sanpedrocomitancillo","sanpedrocoxcaltepeccantaros","sanpedrocoyutla","sanpedrocuayuca","sanpedrocuitlapan","sanpedrodeibarra","sanpedrodelacueva","sanpedrodelgallo","sanpedrodelosbanos","sanpedrodelosmetates","sanpedrodelosnaranjos","sanpedrodelossauces","sanpedrodelrincon","sanpedrodelrosal","sanpedrodenxhicentro","sanpedroecatepec","sanpedroelalto","sanpedrogarzagarcia","sanpedroguasave","sanpedrohuamelula","sanpedrohuaquilpan","sanpedrohuilotepec","sanpedrohuitzizilapan","sanpedroitzican","sanpedroitztla","sanpedroixcatlan","sanpedroixtlahuaca","sanpedrojacuaro","sanpedrojicayan","sanpedrojuchaltengo","sanpedrolagunillas","sanpedrolajoya","sanpedrolasplayas","sanpedrolimon","sanpedrolosbanos","sanpedromartir","sanpedromartirquiechapa","sanpedromartiryucuxaco","sanpedromatamoros","sanpedromixtepec","sanpedromunoztla","sanpedronexapa","sanpedronichtalucum","sanpedronuevo","sanpedroocopetatillo","sanpedroocotepec","sanpedroozumacin","sanpedropetlacotla","sanpedropiedragorda","sanpedropochutla","sanpedroquiatoni","sanpedrosochiapam","sanpedrotapanatepec","sanpedrotarimbaro","sanpedrotaviche","sanpedrotechuchulco","sanpedrotejalpa","sanpedrotemamatla","sanpedrotenango","sanpedrotenayac","sanpedrotepetitlan","sanpedrotesistan","sanpedrotetitlan","sanpedrotidaa","sanpedrotlachichilco","sanpedrotlacotepec","sanpedrotlaltizapan","sanpedrotlanixco","sanpedrotlaolantongo","sanpedrotlapacoyan","sanpedrotlaquilpan","sanpedrotopiltepec","sanpedrototolapam","sanpedrototoltepec","sanpedrotulixtlahuaca","sanpedrotultepec","sanpedroxalcaltzinco","sanpedroxalpa","sanpedroxochiteotla","sanpedroyancuitlalpan","sanpedroyolox","sanpedroysanpablotequistepec","sanpedrozacachimalpa","sanpedrozictepec","sanquintin","sanrafael","sanrafaelcaleria","sanrafaelixtapalucan","sanrafaelrioseco","sanrafaeltecario","sanrafaeltenanyecac","sanrafaeltepatlaxco","sanrafaeltlanalapan","sanrafaelzaragoza","sanramon","sanraymundojalpam","sanroque","sanroquedemontes","sanroquedetorres","sans-souci","sansaba","sansalvador","sansalvadoratenco","sansalvadorcuauhtenco","sansalvadorelseco","sansalvadorelverde","sansalvadornaranjillo","sansalvadortizatlalli","sansalvadortorrecillas","sansebastian","sansebastianabasolo","sansebastianalcomunga","sansebastianbuenosaires","sansebastianchimalpa","sansebastiancoatlan","sansebastiandeaparicio","sansebastiandelasbarrancassur","sansebastiandelmonte","sansebastiandeloeste","sansebastiandelsur","sansebastiandesalitre","sansebastianelgrande","sansebastianetla","sansebastianfraccionamiento","sansebastiannicananduta","sansebastianriohondo","sansebastianteitipac","sansebastiantenochtitlan","sansebastianteteles","sansebastiantutla","sansebastianxolalpa","sansimeonxipetzingo","sansimon","sansimonalmolongas","sansimonatzitzintla","sansimondeguerrero","sansimondelalaguna","sansimonelalto","sansimonito","sansimontlatlahuquitepec","sansom-park","sansompark","sanssouci","santa-adelaida","santa-ana","santa-ana-acozautla","santa-ana-ahuehuepan","santa-ana-amatlan","santa-ana-azcapotzaltongo","santa-ana-batha","santa-ana-chapitiro","santa-ana-chiautempan","santa-ana-coapan","santa-ana-coatepec","santa-ana-de-allende","santa-ana-del-pilar","santa-ana-del-valle","santa-ana-hueytlalpan","santa-ana-jilotzingo","santa-ana-la-ladera","santa-ana-maya","santa-ana-mayorazgo","santa-ana-necoxtla","santa-ana-nextlalpan","santa-ana-nichi-ejido","santa-ana-nopalucan","santa-ana-pacueco","santa-ana-tlachiahualpa","santa-ana-tlacotenco","santa-ana-tlapacoyan","santa-ana-tzacuala","santa-ana-xalmimilulco","santa-ana-zegache","santa-ana-zicatecoyan","santa-ana-zirosto","santa-anita","santa-anita-huiloac","santa-anna","santa-apolonia","santa-apolonia-teacalco","santa-barbara","santa-barbara-de-la-cueva","santa-casilda","santa-catalina","santa-catalina-quieri","santa-catarina","santa-catarina-ayometla","santa-catarina-ayotzingo","santa-catarina-cuixtla","santa-catarina-de-tepehuanes","santa-catarina-del-monte","santa-catarina-juquila","santa-catarina-loxicha","santa-catarina-mechoacan","santa-catarina-minas","santa-catarina-otzolotepec","santa-catarina-quiane","santa-catarina-roatina","santa-catarina-tayata","santa-catarina-tlaltempan","santa-catarina-villanueva","santa-catarina-yecahuizotl","santa-cecilia-jalieza","santa-cecilia-tepetitlan","santa-clara","santa-clara-de-juarez","santa-clara-de-valladares","santa-clara-del-cobre","santa-clara-del-tule","santa-clara-huitziltepec","santa-clara-pueblo","santa-clarita","santa-claus","santa-cruz","santa-cruz-acapa","santa-cruz-acatepec","santa-cruz-ajajalpan","santa-cruz-amilpas","santa-cruz-aquiahuac","santa-cruz-atizapan","santa-cruz-ayotuxco","santa-cruz-bombatevi","santa-cruz-cuauhtenco","santa-cruz-cuautomatitla","santa-cruz-de-barcenas","santa-cruz-de-bravo","santa-cruz-de-juarez","santa-cruz-de-la-soledad","santa-cruz-de-las-flores","santa-cruz-del-astillero","santa-cruz-del-monte","santa-cruz-del-valle","santa-cruz-el-grande","santa-cruz-el-porvenir","santa-cruz-escandon","santa-cruz-ex-hacienda","santa-cruz-huitziltepec","santa-cruz-huitzizilapan","santa-cruz-lachixolana","santa-cruz-lujan","santa-cruz-mextepec","santa-cruz-mixtepec","santa-cruz-nundaco","santa-cruz-otlatla","santa-cruz-ozolotepec","santa-cruz-papalutla","santa-cruz-pocitos","santa-cruz-pueblo","santa-cruz-pueblo-nuevo","santa-cruz-quilehtla","santa-cruz-tacache-de-mina","santa-cruz-tayata","santa-cruz-tetela","santa-cruz-texmalaquilla","santa-cruz-tlaxcala","santa-cruz-xaltetela","santa-cruz-xitla","santa-cruz-xoxocotlan","santa-cruz-yucucani","santa-elena","santa-elena-paliseca","santa-fe","santa-fe-de-la-purisima","santa-fe-springs","santa-fe-tepetlapa","santa-fe-y-la-mar","santa-gertrudis","santa-gertrudis-miramar","santa-ines-del-monte","santa-ines-varela-la-luz","santa-ines-yatzeche","santa-isabel","santa-isabel-chalma","santa-isabel-cholula","santa-isabel-fraccionamiento","santa-isabel-ixtapan","santa-isabel-xiloxoxtla","santa-juana","santa-juana-centro","santa-juana-primera-seccion","santa-justina-ecatepec","santa-lucia","santa-lucia-cosamaloapan","santa-lucia-ocotlan","santa-lucia-potrerillo","santa-lucia-teotepec","santa-margarita","santa-margarita-huitepec","santa-maria","santa-maria-acatepec","santa-maria-actipac","santa-maria-acu","santa-maria-ajoloapan","santa-maria-amajac","santa-maria-amealco","santa-maria-apaxco","santa-maria-apazco","santa-maria-asuncion","santa-maria-atexcac","santa-maria-atlihuetzian","santa-maria-atzompa","santa-maria-batha","santa-maria-begona","santa-maria-camotlan","santa-maria-canchesda","santa-maria-chachoapam","santa-maria-chicometepec","santa-maria-chilapa-de-diaz","santa-maria-chimalapa","santa-maria-chimalhuacan","santa-maria-citendeje","santa-maria-coatepec","santa-maria-colotepec","santa-maria-cortijo","santa-maria-coyotepec","santa-maria-cuevas","santa-maria-de-enmedio","santa-maria-de-guadalupe","santa-maria-de-guaymas","santa-maria-de-la-paz","santa-maria-de-los-angeles","santa-maria-del-buaraje","santa-maria-del-llano","santa-maria-del-monte","santa-maria-del-oro","santa-maria-del-refugio","santa-maria-del-rio","santa-maria-del-rosario","santa-maria-del-tule","santa-maria-del-valle","santa-maria-ecatepec","santa-maria-endare","santa-maria-guadalupe-tecola","santa-maria-guelace","santa-maria-guenagati","santa-maria-huamelula","santa-maria-huatulco","santa-maria-huazolotitlan","santa-maria-huecatitla","santa-maria-huexoculco","santa-maria-ilucan","santa-maria-ixtiyucan","santa-maria-ixtulco","santa-maria-jacatepec","santa-maria-jajalpa","santa-maria-jalapa-del-marques","santa-maria-jicaltepec","santa-maria-la-alta","santa-maria-la-asuncion","santa-maria-la-calera","santa-maria-lachixio","santa-maria-macua","santa-maria-magdalena","santa-maria-magdalena-cahuacan","santa-maria-malacatepec","santa-maria-mazatla","santa-maria-mixtequilla","santa-maria-nativitas","santa-maria-nduayaco","santa-maria-nenetzintla","santa-maria-nepopualco","santa-maria-palapa","santa-maria-papalo","santa-maria-puxmetacan","santa-maria-quelites","santa-maria-quiegolani","santa-maria-rayon","santa-maria-sola","santa-maria-tatetla","santa-maria-tecuanulco","santa-maria-temaxcalapa","santa-maria-teopoxco","santa-maria-tepantlali","santa-maria-texmelucan","santa-maria-tiltepec","santa-maria-tlalmimilolpan","santa-maria-tonameca","santa-maria-totoltepec","santa-maria-transpontina","santa-maria-urapicho","santa-maria-velato","santa-maria-xadani","santa-maria-xigui","santa-maria-xonacatepec","santa-maria-yavesia","santa-maria-yucuhiti","santa-maria-yucunicoco","santa-maria-zacatepec","santa-maria-zapotitlan","santa-maria-zolotepec","santa-maria-zoquitlan","santa-martha","santa-martha-chichihualtepec","santa-martha-hidalgo","santa-matilde","santa-monica","santa-paula","santa-rita","santa-rita-tlahuapan","santa-rosa","santa-rosa-abata","santa-rosa-beach","santa-rosa-caxtlahuaca","santa-rosa-de-lima","santa-rosa-de-rivas","santa-rosa-el-huizache","santa-rosa-jauregui","santa-rosa-loma-larga","santa-rosa-los-angeles","santa-rosa-santa-barbara","santa-rosa-segundo","santa-rosa-treinta","santa-rosa-xajay","santa-rosalia","santa-susana","santa-teresa","santa-teresita-de-don-diego","santa-ursula","santa-venetia","santa-ynez","santaadelaida","santaana","santaanaacozautla","santaanaahuehuepan","santaanaamatlan","santaanaazcapotzaltongo","santaanabatha","santaanachapitiro","santaanachiautempan","santaanacoapan","santaanacoatepec","santaanadeallende","santaanadeguerreroelcascabel","santaanadelpilar","santaanadelvalle","santaanahueytlalpan","santaanaixtlahuatzingosantaana","santaanajilotzingo","santaanalaladera","santaanamaya","santaanamayorazgo","santaananecoxtla","santaananextlalpan","santaananichiejido","santaananopalucan","santaanapacueco","santaanatlachiahualpa","santaanatlacotenco","santaanatlapacoyan","santaanatzacuala","santaanaxalmimilulco","santaanazegache","santaanazicatecoyan","santaanazirosto","santaanita","santaanitahuiloac","santaanna","santaapolonia","santaapoloniateacalco","santabarbara","santabarbaradelacueva","santacasilda","santacatalina","santacatalinaquieri","santacatarina","santacatarinaayometla","santacatarinaayotzingo","santacatarinacuixtla","santacatarinadelmonte","santacatarinadetepehuanes","santacatarinajuquila","santacatarinaloxicha","santacatarinamechoacan","santacatarinaminas","santacatarinaotzolotepec","santacatarinaquiane","santacatarinaroatina","santacatarinatayata","santacatarinatlaltempan","santacatarinavillanueva","santacatarinayecahuizotl","santaceciliajalieza","santaceciliatepetitlan","santaclara","santaclaradejuarez","santaclaradelcobre","santaclaradeltule","santaclaradevalladares","santaclarahuitziltepec","santaclarapueblo","santaclarita","santaclaus","santacruz","santacruzacapa","santacruzacatepec","santacruzajajalpan","santacruzamilpas","santacruzaquiahuac","santacruzatizapan","santacruzayotuxco","santacruzbombatevi","santacruzcuauhtenco","santacruzcuautomatitla","santacruzdebarcenas","santacruzdebravo","santacruzdejuarez","santacruzdelalomatepetates","santacruzdelasflores","santacruzdelasoledad","santacruzdelastillero","santacruzdelmonte","santacruzdelvalle","santacruzelgrande","santacruzelporvenir","santacruzescandon","santacruzexhacienda","santacruzhuitziltepec","santacruzhuitzizilapan","santacruzlachixolana","santacruzlujan","santacruzmextepec","santacruzmixtepec","santacruznundaco","santacruzotlatla","santacruzozolotepec","santacruzpapalutla","santacruzpocitos","santacruzpueblo","santacruzpueblonuevo","santacruzquilehtla","santacruztacachedemina","santacruztayata","santacruztetela","santacruztexmalaquilla","santacruztlaxcala","santacruzxaltetela","santacruzxitla","santacruzxoxocotlan","santacruzyucucani","santadeo","santaelena","santaelenapaliseca","santafe","santafedelapurisima","santafesprings","santafetepetlapa","santafeylamar","santagertrudis","santagertrudismiramar","santainesdelmonte","santainesvarelalaluz","santainesyatzeche","santaisabel","santaisabelchalma","santaisabelcholula","santaisabelfraccionamiento","santaisabelixtapan","santaisabelxiloxoxtla","santajuana","santajuanacentro","santajuanaprimeraseccion","santajustinaecatepec","santalucia","santaluciacosamaloapan","santaluciaocotlan","santaluciapotrerillo","santaluciateotepec","santamargarita","santamargaritahuitepec","santamaria","santamariaacatepec","santamariaactipac","santamariaacu","santamariaajoloapan","santamariaamajac","santamariaamealco","santamariaapaxco","santamariaapazco","santamariaaranzazusantamaria","santamariaasuncion","santamariaatexcac","santamariaatlihuetzian","santamariaatzompa","santamariabatha","santamariabegona","santamariacamotlan","santamariacanchesda","santamariachachoapam","santamariachicometepec","santamariachilapadediaz","santamariachimalapa","santamariachimalhuacan","santamariacitendeje","santamariacoatepec","santamariacolotepec","santamariacortijo","santamariacoyotepec","santamariacuevas","santamariadeenmedio","santamariadeguadalupe","santamariadeguaymas","santamariadelapaz","santamariadelbuaraje","santamariadelllano","santamariadelmonte","santamariadeloro","santamariadelosangeles","santamariadelrefugio","santamariadelrio","santamariadelrosario","santamariadeltule","santamariadelvalle","santamariaecatepec","santamariaendare","santamariaguadalupetecola","santamariaguelace","santamariaguenagati","santamariahuamelula","santamariahuatulco","santamariahuazolotitlan","santamariahuecatitla","santamariahuexoculco","santamariailucan","santamariaixtiyucan","santamariaixtulco","santamariajacatepec","santamariajajalpa","santamariajalapadelmarques","santamariajicaltepec","santamarialaalta","santamarialaasuncion","santamarialacalera","santamarialachixio","santamariamacua","santamariamagdalena","santamariamagdalenacahuacan","santamariamagdalenaocotitlan","santamariamalacatepec","santamariamazatla","santamariamixtequilla","santamarianativitas","santamarianduayaco","santamarianenetzintla","santamarianepopualco","santamariapalapa","santamariapapalo","santamariapuxmetacan","santamariaquelites","santamariaquiegolani","santamariarayon","santamariasola","santamariatatetla","santamariatecuanulco","santamariatemaxcalapa","santamariateopoxco","santamariatepantlali","santamariatexmelucan","santamariatiltepec","santamariatlalmimilolpan","santamariatonameca","santamariatotoltepec","santamariatranspontina","santamariaurapicho","santamariavelato","santamariaxadani","santamariaxigui","santamariaxonacatepec","santamariayavesia","santamariayucuhiti","santamariayucunicoco","santamariazacatepec","santamariazapotitlan","santamariazolotepec","santamariazoquitlan","santamartha","santamarthachichihualtepec","santamarthahidalgo","santamatilde","santamonica","santana-2da-seccion-b-la-palma","santana2daseccionblapalma","santander-jimenez","santanderjimenez","santanvalley","santapaula","santaquin","santarita","santaritatlahuapan","santarosa","santarosaabata","santarosabeach","santarosacaxtlahuaca","santarosadelima","santarosaderivas","santarosaelhuizache","santarosajauregui","santarosalia","santarosalomalarga","santarosalosangeles","santarosasantabarbara","santarosasegundo","santarosatreinta","santarosaxajay","santasusana","santateresa","santateresitadedondiego","santaursula","santavenetia","santaynez","santee","santiago","santiago-acatlan","santiago-acayutlan","santiago-acozac","santiago-acutzilapan","santiago-alseseca","santiago-amoltepec","santiago-analco","santiago-apostol","santiago-astata","santiago-atzitzihuacan","santiago-ayuquililla","santiago-azajo","santiago-bayacora","santiago-cacaloxtepec","santiago-camotlan","santiago-capitiro","santiago-casandeje","santiago-centro","santiago-chazumba","santiago-chilixtlahuaca","santiago-chimalpa-chimalpa","santiago-choapam","santiago-coachochitlan","santiago-coltzingo","santiago-comaltepec","santiago-cuaula","santiago-cuautenco","santiago-cuautlalpan","santiago-cuixtla","santiago-de-anaya","santiago-de-cuenda","santiago-de-la-pena","santiago-de-pochotitan","santiago-de-queretaro","santiago-del-monte","santiago-el-pinar","santiago-etla","santiago-huajolotitlan","santiago-huauclilla","santiago-huaxolotipac","santiago-huitlapaltepec","santiago-ixcuintepec","santiago-ixcuintla","santiago-ixtaltepec","santiago-ixtayutla","santiago-jaltepec","santiago-jicayan","santiago-jocotepec","santiago-juxtlahuaca","santiago-lachiguiri","santiago-lalopa","santiago-laollaga","santiago-laxopa","santiago-llano-grande","santiago-malacatepec","santiago-mamalhuazuca","santiago-maravatio","santiago-matatlan","santiago-michac","santiago-miltepec","santiago-momoxpan","santiago-nejapilla","santiago-nundiche","santiago-nuyoo","santiago-oxtempan","santiago-oxthoc","santiago-oxtotitlan","santiago-papasquiaro","santiago-pojcol","santiago-puriatzicuaro","santiago-quiavicuzas","santiago-suchilquitongo","santiago-tangamandapio","santiago-tejocotillos","santiago-tenango","santiago-tepatlaxco","santiago-tepeticpac","santiago-tepetitlan","santiago-tepextla","santiago-tepeyahualco","santiago-tepopula","santiago-tetepec","santiago-texcalcingo","santiago-textitlan","santiago-teyahualco","santiago-tezontlale","santiago-tilantongo","santiago-tilapa","santiago-tillo","santiago-tlacochcalco","santiago-tlacotepec","santiago-tlaltepoxco","santiago-tlapacoya","santiago-tlapanaloya","santiago-tlautla","santiago-tolman","santiago-tulantepec","santiago-tuxtla","santiago-undameo","santiago-xanica","santiago-yaitepec","santiago-yancuictlalpan","santiago-yancuitlalpan","santiago-yeche","santiago-yogana","santiago-yolomecatl","santiago-yosondua","santiago-zacualuca","santiago-zoochila","santiagoacatlan","santiagoacayutlan","santiagoacozac","santiagoacutzilapan","santiagoalseseca","santiagoamoltepec","santiagoanalco","santiagoapostol","santiagoastata","santiagoatzitzihuacan","santiagoayuquililla","santiagoazajo","santiagobayacora","santiagocacaloxtepec","santiagocamotlan","santiagocapitiro","santiagocasandeje","santiagocentro","santiagochazumba","santiagochilixtlahuaca","santiagochimalpachimalpa","santiagochoapam","santiagocoachochitlan","santiagocoltzingo","santiagocomaltepec","santiagocuaula","santiagocuautenco","santiagocuautlalpan","santiagocuixtla","santiagodeanaya","santiagodecuenda","santiagodelapena","santiagodelmonte","santiagodepochotitan","santiagodequeretaro","santiagoelpinar","santiagoetla","santiagohuajolotitlan","santiagohuauclilla","santiagohuaxolotipac","santiagohuitlapaltepec","santiagoixcuintepec","santiagoixcuintla","santiagoixtaltepec","santiagoixtayutla","santiagojaltepec","santiagojicayan","santiagojocotepec","santiagojuxtlahuaca","santiagolachiguiri","santiagolalopa","santiagolaollaga","santiagolaxopa","santiagollanogrande","santiagomalacatepec","santiagomamalhuazuca","santiagomaravatio","santiagomatatlan","santiagomexquititlanbarrio4to","santiagomichac","santiagomiltepec","santiagomomoxpan","santiagonejapilla","santiagonundiche","santiagonuyoo","santiagooxtempan","santiagooxthoc","santiagooxtotitlan","santiagopapasquiaro","santiagopojcol","santiagopuriatzicuaro","santiagoquiavicuzas","santiagosuchilquitongo","santiagotangamandapio","santiagotejocotillos","santiagotenango","santiagotepatlaxco","santiagotepeticpac","santiagotepetitlan","santiagotepextla","santiagotepeyahualco","santiagotepopula","santiagotetepec","santiagotexcalcingo","santiagotextitlan","santiagoteyahualco","santiagotezontlale","santiagotianguistencodegaleana","santiagotilantongo","santiagotilapa","santiagotillo","santiagotlacochcalco","santiagotlacotepec","santiagotlaltepoxco","santiagotlapacoya","santiagotlapanaloya","santiagotlautla","santiagotolman","santiagotulantepec","santiagotuxtla","santiagoundameo","santiagoxanica","santiagoyaitepec","santiagoyancuictlalpan","santiagoyancuitlalpan","santiagoyeche","santiagoyogana","santiagoyolomecatl","santiagoyosondua","santiagozacualuca","santiagozoochila","santiaguillo","santiaguito","santiaguito-tlalcilalcalli","santiaguitotlalcilalcalli","santillan","santo-domingo","santo-domingo-armenta","santo-domingo-atoyatempan","santo-domingo-aztacameca","santo-domingo-chihuitan","santo-domingo-de-guzman","santo-domingo-de-las-palmas","santo-domingo-de-morelos","santo-domingo-huehuetlan","santo-domingo-jalieza","santo-domingo-keste","santo-domingo-ocotitlan","santo-domingo-ozolotepec","santo-domingo-petapa","santo-domingo-pueblo","santo-domingo-roayaga","santo-domingo-shomege-shomege","santo-domingo-tehuantepec","santo-domingo-tepuxtepec","santo-domingo-tlatayapam","santo-domingo-tomaltepec","santo-domingo-tonala","santo-domingo-yanhuitlan","santo-domingo-yodohino","santo-domingo-zanatepec","santo-nino-aguanaval","santo-nombre","santo-tomas","santo-tomas-chiconautla","santo-tomas-de-los-platanos","santo-tomas-huatzindeo","santo-tomas-jalieza","santo-tomas-la-concordia","santo-tomas-tamazulapam","santodomingo","santodomingoarmenta","santodomingoatoyatempan","santodomingoaztacameca","santodomingochihuitan","santodomingodeguzman","santodomingodelaspalmas","santodomingodemorelos","santodomingohuehuetlan","santodomingojalieza","santodomingokeste","santodomingoocotitlan","santodomingoozolotepec","santodomingopetapa","santodomingopueblo","santodomingoroayaga","santodomingoshomegeshomege","santodomingotehuantepec","santodomingotepuxtepec","santodomingotlatayapam","santodomingotomaltepec","santodomingotonala","santodomingoyanhuitlan","santodomingoyodohino","santodomingozanatepec","santoninoaguanaval","santonombre","santos-reyes-nopala","santos-reyes-papalo","santos-reyes-tepejillo","santosreyesnopala","santosreyespapalo","santosreyestepejillo","santotomas","santotomaschiconautla","santotomasdelosplatanos","santotomashuatzindeo","santotomasjalieza","santotomaslaconcordia","santotomastamazulapam","sanvicente","sanvicenteboqueron","sanvicentechimalhuacan","sanvicentecoatlan","sanvicentecoyotepec","sanvicentedeflores","sanvicentedejuarez","sanvicenteelalto","sanvicenteferrer","sanvicentelachixio","sanvicentelamesilla","sanvicentenunu","sanvicentepalapa","sanvicentepinas","sanvicentetancuayalab","sanvicentezoyatlan","sanysidro","sao","sap","sapioris","sappington","sapulpa","sar","sarabia","saraland","saranac","saranac-lake","saranaclake","saranap","sarasota","sarasota-springs","sarasotasprings","saratoga","saratoga-springs","saratogasprings","sarcoxie","sardis","sardis-city","sardiscity","sargentolopez2daseccionelchuzo","saric","sarita","sarnia","sartell","sas","sasaltitla","saskatchewan","saskatoon","sat","satanta","satellite-beach","satellitebeach","saticoy","satsuma","sauceda-de-la-borda","saucedadelaborda","saucier","saucillo","saugerties","saugerties-south","saugertiessouth","saugus","sauk-centre","sauk-city","sauk-rapids","sauk-village","saukcentre","saukcity","saukrapids","saukvillage","saukville","sault-ste-marie","saultstemarie","sausalito","sauta","sauz-de-calera","sauzdecalera","sav","savage","savanna","savannah","savin-hill","savinhill","savoy","saw","saw-creek","sawcreek","sawgrass","sawmills","sawtelle","sawyerwood","sax","saxapahaw","saxon","saxonburg","say","saybrook-manor","saybrookmanor","saylorsburg","saylorville","sayre","sayreville","sayreville-junction","sayrevillejunction","sayula","sayula-de-aleman","sayuladealeman","sayulilla","sayulita","sayville","saz","sb","sba","sbac","sbb","sbc","sbdb","sbdg","sbdl","sbdm","sbdp","sbe","sbev","sbg","sbh","sbl","sblg","sbm","sbo","sbpb","sbq","sbs","sbsr","sbt","sbx","sby","sc","sca","scaggsville","scandia","scappoose","scarborough","scarborough-village","scarboroughvillage","scarsdale","scb","scc","sccp","scda","scdb","scdc","scdj","scdl","scdm","scdt","scdv","scdw","sce","sceg","sceh","scenic","scenic-oaks","scenicoaks","scep","scf","sch","schall-circle","schallcircle","schaumburg","schenectady","schererville","schertz","schiller-park","schillerpark","schlusser","schnecksville","schoeneck","schofield","schofield-barracks","schofieldbarracks","schoharie","schoolcraft","schriever","schulenburg","schuyler","schuylerville","schuylkill","schuylkill-haven","schuylkillhaven","schwenksville","sciotodale","scissors","scituate","scj","scl","scln","scm","scn","sco","scobey","scotch-plains","scotchplains","scotchtown","scotia","scotland","scotland-neck","scotlandneck","scott","scott-air-force-base","scott-city","scott-lake","scottairforcebase","scottcity","scottdale","scottlake","scotts-mill","scotts-valley","scottsbluff","scottsboro","scottsburg","scottsdale","scottsmill","scottsvalley","scottsville","scottville","scp","scpn","scq","scr","scranton","scs","sct","scv","scw","scx","scy","scz","sd","sda","sdc","sdce","sdd","sdda","sddc","sddg","sddm","sde","sdeo","sdg","sdgs","sdh","sdj","sdk","sdl","sdlb","sdlh","sdlp","sdm","sdo","sdp","sdq","sdr","sds","sdsr","sdss","sdt","sdv","sdx","sdy","sdz","se","sea","sea-breeze","sea-bright","sea-cliff","sea-girt","sea-isle-city","sea-ranch","seabeck","seabreeze","seabright","seabrook","seabrook-farms","seabrook-island","seabrookfarms","seabrookisland","seacliff","seadrift","seaford","seaforth","seagate","seagirt","seagoville","seagraves","seaislecity","seal-beach","sealbeach","sealy","searanch","searcy","searingtown","searles-valley","searlesvalley","searsmont","seaside","seaside-heights","seaside-park","seasideheights","seasidepark","seat-pleasant","seatac","seatpleasant","seattle","sebastian","sebastian-lerdo-de-tejada","sebastianlerdodetejada","sebastopol","sebewaing","sebree","sebring","sec","secaucus","seccion-23","seccion-del-cerrito","seccion23","secciondelcerrito","sechelt","sector-h-tres","sectorhtres","security-widefield","securitywidefield","seda","sedalia","sedan","sedb","sedco-hills","sedcohills","sedgwick","sedona","sedro-woolley","sedrowoolley","seekonk","seeley","seeley-lake","seeleylake","seelyville","seffner","seguin","seis-de-enero","seis-de-octubre","seis-de-octubre-santo-nino","seisdeenero","seisdeoctubre","seisdeoctubresantonino","selah","selby","selby-on-the-bay","selbyonthebay","selbyville","selden","selinsgrove","selkirk","sellersburg","sellersville","sells","selma","selmer","selmont-west-selmont","selmontwestselmont","sem","seminole","seminole-manor","seminolemanor","semmes","senath","senatobia","seneca","seneca-falls","seneca-knolls","senecafalls","senecaknolls","senguio","senneterre","senoia","senor","senor-del-pozo","senordelpozo","sentispac","sep","sept-iles","septiles","sequim","serenada","sergeant-bluff","sergeantbluff","sergio-butron-casas","sergio-villasenor","sergiobutroncasas","sergiovillasenor","serrano","ses","sesser","set","setauket-east-setauket","setauketeastsetauket","seth-ward","sethward","seven-corners","seven-fields","seven-hills","seven-lakes","seven-oaks","seven-points","seven-trees","sevencorners","sevenfields","sevenhills","sevenlakes","sevenoaks","sevenpoints","seventrees","severance","severn","severna-park","severnapark","sevierville","seville","sevina","sewalls-point","sewallspoint","sewanee","seward","sewaren","sewell","sewickley","sexsmith","seybaplaya","seye","seymour","sf","sfa","sfc","sfda","sfdb","sfdc","sfdd","sfdg","sfdh","sfdj","sfdm","sfdp","sfdr","sfdt","sfdv","sfec","sfem","sfg","sfh","sfi","sfj","sfk","sfl","sfm","sfmc","sfn","sfo","sfp","sfpn","sfq","sfr","sfs","sft","sfu","sfx","sfz","sg","sga","sgc","sgdg","sgf","sgi","sgl","sglp","sgm","sgr","sgt","sgz","sh","shackelford","shackle-island","shackleisland","shadeland","shadow-hills","shadowhills","shady-cove","shady-hills","shady-hollow","shady-shores","shady-side","shady-spring","shadycove","shadyhills","shadyhollow","shadyshores","shadyside","shadyspring","shafer","shafter","shaker-heights","shakerheights","shakopee","shallotte","shallowater","shamokin","shamokin-dam","shamokindam","shamrock","shandon","shannon","shannon-hills","shannondale","shannonhills","shanor-northvue","shanornorthvue","shapleigh","shark-river-hills","sharkriverhills","sharon","sharon-hill","sharon-springs","sharonhill","sharonsprings","sharonville","sharpes","sharpsburg","sharpsville","shasta","shasta-lake","shastalake","shattuck","shaunavon","shavano-park","shavanopark","shavertown","shaw","shaw-heights","shawano","shawheights","shawinigan","shawmont","shawnee","shawnee-hills","shawnee-land","shawneehills","shawneeland","shawneetown","shawsville","shawville","shc","sheboygan","sheboygan-falls","sheboyganfalls","shediac","shediac-bridge-shediac-river","shediacbridgeshediacriver","sheepshead-bay","sheepsheadbay","sheffield","sheffield-lake","sheffieldlake","shelbina","shelburn","shelburne","shelburne-falls","shelburnefalls","shelby","shelbyville","sheldon","shell-knob","shell-lake","shell-point","shell-rock","shell-valley","shellbrook","shelley","shellknob","shelllake","shellpoint","shellrock","shellvalley","shelter-island","shelter-island-heights","shelterisland","shelterislandheights","shelton","shenandoah","shenandoah-farms","shenandoah-heights","shenandoahfarms","shenandoahheights","shenorock","shepherd","shepherdstown","shepherdsville","sherborn","sherbrooke","sherburn","sherburne","sheridan","sherman","sherman-oaks","shermanoaks","sherrelwood","sherrill","sherrills-ford","sherrillsford","sherwood","sherwood-manor","sherwood-park","sherwood-shores","sherwoodmanor","sherwoodpark","sherwoodshores","shields","shillington","shilo","shiloh","shiner","shingle-springs","shinglehouse","shinglesprings","shingletown","shinnecock-hills","shinnecockhills","shinnston","ship-bottom","shipbottom","shippagan","shippensburg","shiprock","shiremanstown","shirley","shively","shoal-creek","shoalcreek","shoals","shoctic","shoemakersville","shokan","shoreacres","shoreline","shoreview","shorewood","shorewood-forest","shorewood-hills","shorewood-tower-hills-harbert","shorewoodforest","shorewoodhills","shorewoodtowerhillsharbert","short-hills","short-pump","shorthills","shortpump","shortsville","shoshone","show-low","showlow","shreve","shreveport","shrewsbury","shrub-oak","shruboak","sht","shullsburg","shuniah-township","shuniahtownship","shutesbury","si","sia","siah","sib","sibaca","sibanilja-pocolum","sibaniljapocolum","sibley","sibs","sic","sicamous","sicg","sicklerville","sidg","sidh","sidl","sidm","sidney","sieb","sienna-plantation","siennaplantation","sier","sierra","sierra-blanca","sierra-de-agua","sierra-de-guadalupe","sierra-madre","sierra-mojada","sierra-papacal","sierra-view","sierra-vista","sierra-vista-southeast","sierrablanca","sierradeagua","sierradeguadalupe","sierramadre","sierramojada","sierrapapacal","sierraview","sierravista","sierravistasoutheast","siesta-acres","siesta-key","siesta-shores","siestaacres","siestakey","siestashores","sif","signal-hill","signal-mountain","signalhill","signalmountain","sigourney","sih","sihochac","sihuapan","sii","sikeston","silacayoapam","silao","silb","siler-city","silercity","siletz","siloam-springs","siloamsprings","silsbee","silt","siltepec","silva","silver-bay","silver-berry","silver-city","silver-creek","silver-firs","silver-grove","silver-hill","silver-lake","silver-lakes","silver-ridge","silver-spring","silver-springs","silver-springs-shores","silver-summit","silverbay","silverberry","silvercity","silvercreek","silverdale","silverfirs","silvergrove","silverhill","silverlake","silverlakes","silverridge","silverspring","silversprings","silverspringsshores","silversummit","silverthorne","silverton","silvis","sim","simcoe","simeprodeso-colectivo-nuevo","simeprodesocolectivonuevo","simi-valley","simivalley","simmesport","simojovel-de-allende","simojoveldeallende","simon-sarlat","simonsarlat","simonton-lake","simontonlake","simpson","simpsonville","simsbury-center","simsburycenter","sin","sinahua","sinahuiza","sinaloa","sinaloa-de-leyva","sinaloadeleyva","sinanche","sinapan","sindihui","singac","singuilucan","sinking-spring","sinkingspring","sinton","sioux-center","sioux-city","sioux-falls","sioux-lookout","siouxcenter","siouxcity","siouxfalls","siouxlookout","sip","siqueros","sir","siren","sirm","sisal","sisco-heights","siscoheights","siskiyou","sisoguichi","sisseton","sissonville","sisters","sistersville","sit","sitala","sitilpech","sitio-de-xitlapehua","sitio-ejido","sitiodexitlapehua","sitioejido","sitka","sitpach","siva","sivh","siviral","six","six-mile","six-shooter-canyon","sixmile","sixmile-run","sixmilerun","sixshootercanyon","sixteen-mile-stand","sixteenmilestand","siy","sj","sja","sjb","sjbc","sjbj","sjbv","sjc","sjcb","sjcc","sjce","sjcv","sjd","sjda","sjdb","sjdc","sjde","sjdg","sjdj","sjdl","sjdm","sjdo","sjdp","sjdr","sjds","sjdt","sjdv","sjdz","sje","sjea","sjec","sjeg","sjel","sjen","sjev","sjg","sjgo","sjh","sji","sjj","sjjc","sjjv","sjl","sjlc","sjlg","sjlh","sjli","sjll","sjlm","sjlp","sjm","sjmc","sjn","sjo","sjp","sjpj","sjpn","sjps","sjq","sjr","sjrm","sjs","sjsr","sjsu","sjt","sjth","sjtt","sjv","sjvh","sjx","sjy","sjz","sk","skagit","skagway","skaneateles","skatepark","skiatook","skidaway-island","skidawayisland","skidway-lake","skidwaylake","skippack","skippers-corner","skipperscorner","skokie","skowhegan","sky-lake","sky-valley","skylake","skyline-acres","skyline-ganipa","skyline-view","skylineacres","skylineganipa","skylineview","skyvalley","sl","sla","slat","slater","slater-marietta","slatermarietta","slatington","slaton","slaughterville","slave-lake","slavelake","slayton","slb","slc","sld","sldb","sldc","sldl","sldp","sldt","sle","sleepy-eye","sleepy-hollow","sleepyeye","sleepyhollow","sleg","slev","slg","slh","sli","slidell","slinger","slippery-rock","slipperyrock","slj","sll","slm","sln","slo","sloan","sloatsburg","slocomb","slp","slq","slrc","sls","slsp","slt","slvh","slx","slz","sm","sma","smab","smackover","smb","smb4","smc","smda","smdb","smdc","smde","smdg","smdh","smdl","smdm","smdo","smdp","smdr","smds","smdt","smdv","smdz","sme","smea","smeg","smethport","smev","smf","smg","smgt","smh","smi","smith","smith-center","smith-mills","smith-valley","smithcenter","smithers","smithfield","smithland","smithmills","smiths-falls","smiths-station","smithsburg","smithsfalls","smithsstation","smithton","smithtown","smithvalley","smithville","smithville-sanders","smithvillesanders","smj","sml","smla","smlc","smls","smm","smmc","smmo","smn","smo","smoke-rise","smokerise","smokey-point","smokeypoint","smoky-lake","smokylake","smooth-rock-falls","smoothrockfalls","smp","smpp","smq","smr","sms","smt","smtt","smu","smv","smx","smy","smyrna","smz","sn","sna","snba","sndc","sneads","sneads-ferry","sneadsferry","snec","sneedville","snellville","sneo","sng","sno","snohomish","snoqualmie","snow-hill","snowflake","snowhill","snowmass-village","snowmassvillage","snp","snq","sns","snt","snyder","snyderville","snz","so","soap-lake","soaplake","sob","socastee","socavon-el-carmen","socavonelcarmen","sochiapa","social-circle","socialcircle","society-hill","societyhill","socoltenango","soconusco","socorro","socorromissionnumber1colonia","soda-bay","soda-springs","sodabay","sodasprings","soddy-daisy","soddydaisy","sodus","solalpan-1ra-seccion","solalpan1raseccion","solana-beach","solanabeach","solano","soldotna","soledad","soledad-atzompa","soledad-de-doblado","soledad-de-graciano-sanchez","soledad-morelos","soledad-nueva","soledad-salinas","soledadatzompa","soledaddedoblado","soledaddegracianosanchez","soledadmorelos","soledadnueva","soledadsalinas","solima","solomon","solomons","solon","solosuchiapa","soltepec","solvang","solvay","sombrerete","somerdale","somers","somers-point","somerset","somerspoint","somersworth","somerton","somerville","somonauk","son","sonoma","sonora","sonoyta","sontecomapan","sooke","sop","soperton","sophia","soquel","sorel-tracy","soreltracy","sorrento","sorrento-valley","sorrentovalley","sosa","sotb","soteapan","sotelo","soto-la-marina","sotolamarina","sotuta","souderton","soulsbyville","sound-beach","soundbeach","sour-lake","souris","sourlake","south-alamo","south-amboy","south-amherst","south-apopka","south-ashburnham","south-barre","south-barrington","south-bay","south-beach","south-bel-air","south-belmar","south-beloit","south-bend","south-berwick","south-bloomfield","south-blooming-grove","south-boston","south-bound-brook","south-bradenton","south-brooksville","south-browning","south-burlington","south-canal","south-carolina","south-carthage","south-charleston","south-chicago","south-chicago-heights","south-cleveland","south-coatesville","south-congaree","south-connellsville","south-corning","south-coventry","south-dakota","south-daytona","south-deerfield","south-dennis","south-dos-palos","south-duxbury","south-el-monte","south-elgin","south-eliot","south-euclid","south-fallsburg","south-farmingdale","south-floral-park","south-fulton","south-gastonia","south-gate","south-gate-ridge","south-glens-falls","south-greeley","south-greensburg","south-gull-lake","south-hadley","south-haven","south-hempstead","south-henderson","south-highpoint","south-hill","south-holland","south-hooksett","south-houston","south-huntington","south-huron","south-hutchinson","south-jacksonville","south-jordan","south-jordan-heights","south-kensington","south-kingstown","south-lake-tahoe","south-lancaster","south-laurel","south-lawndale","south-lebanon","south-lockport","south-lyon","south-miami","south-miami-heights","south-milwaukee","south-monroe","south-nyack","south-ogden","south-old-bridge","south-orange","south-oroville","south-ozone-park","south-padre-island","south-palm-beach","south-paris","south-park","south-park-township","south-parkdale","south-pasadena","south-patrick-shores","south-peabody","south-pekin","south-pender-harbour","south-pittsburg","south-plainfield","south-point","south-portland","south-portland-gardens","south-pottstown","south-riding","south-river","south-riverdale","south-rockwood","south-rosemary","south-roxana","south-russell","south-saint-paul","south-salt-lake","south-san-francisco","south-san-gabriel","south-san-jose-hills","south-sanford","south-sarasota","south-shore","south-sioux-city","south-suffolk","south-sumter","south-taft","south-temple","south-thomaston","south-toms-river","south-tucson","south-uniontown","south-vacherie","south-valley","south-valley-stream","south-venice","south-vineland","south-waverly","south-weber","south-wenatchee","south-whitley","south-whittier","south-willard","south-williamsport","south-windham","south-windsor","south-woodstock","south-yarmouth","south-yuba-city","south-zanesville","southalamo","southamboy","southamherst","southampton","southapopka","southashburnham","southaven","southbarre","southbarrington","southbay","southbeach","southbelair","southbelmar","southbeloit","southbend","southberwick","southbloomfield","southbloominggrove","southborough","southboston","southboundbrook","southbradenton","southbridge","southbrooksville","southbrowning","southburlington","southbury","southcanal","southcarolina","southcarthage","southcharleston","southchase","southchicago","southchicagoheights","southcleveland","southcoatesville","southcongaree","southconnellsville","southcorning","southcoventry","southdakota","southdaytona","southdeerfield","southdennis","southdospalos","southduxbury","southeast-arcadia","southeastarcadia","southelgin","southeliot","southelmonte","southern-gateway","southern-pines","southern-shops","southern-shores","southern-view","southerngateway","southernpines","southernshops","southernshores","southernview","southeuclid","southfallsburg","southfarmingdale","southfield","southfloralpark","southfulton","southgastonia","southgate","southgateridge","southglenn","southglensfalls","southgreeley","southgreensburg","southgulllake","southhadley","southhaven","southhempstead","southhenderson","southhighpoint","southhill","southholland","southhooksett","southhouston","southhuntington","southhuron","southhutchinson","southjacksonville","southjordan","southjordanheights","southkensington","southkingstown","southlake","southlaketahoe","southlancaster","southlaurel","southlawndale","southlebanon","southlockport","southlyon","southmayd","southmiami","southmiamiheights","southmilwaukee","southmonroe","southmont","southnyack","southogden","southold","southoldbridge","southorange","southoroville","southozonepark","southpadreisland","southpalmbeach","southparis","southpark","southparkdale","southparktownship","southpasadena","southpatrickshores","southpeabody","southpekin","southpenderharbour","southpittsburg","southplainfield","southpoint","southport","southportland","southportlandgardens","southpottstown","southriding","southriver","southriverdale","southrockwood","southrosemary","southroxana","southrussell","southsaintpaul","southsaltlake","southsanford","southsanfrancisco","southsangabriel","southsanjosehills","southsarasota","southshore","southside","southside-place","southsideplace","southsiouxcity","southsuffolk","southsumter","southtaft","southtemple","souththomaston","southtomsriver","southtucson","southuniontown","southvacherie","southvalley","southvalleystream","southvenice","southvineland","southwaverly","southweber","southwenatchee","southwest-greensburg","southwest-ranches","southwest-schuylkill","southwestgreensburg","southwestranches","southwestschuylkill","southwhitley","southwhittier","southwick","southwillard","southwilliamsport","southwindham","southwindsor","southwood-acres","southwoodacres","southwoodstock","southworth","southyarmouth","southyubacity","southzanesville","soyalo","soyaltepec","soyaniquilpan","soyata","soyataco","soyatitan","soyatlan-de-afuera","soyatlan-del-oro","soyatlandeafuera","soyatlandeloro","soyopa","sp","spa","spackenkill","spanaway","spangler","spanish-fork","spanish-fort","spanish-lake","spanish-springs","spanishfork","spanishfort","spanishlake","spanishsprings","sparkill","sparks","sparrow-bush","sparrowbush","sparta","spartanburg","sparwood","spb","spbj","spc","spcc","spcv","spd","spdc","spdg","spdi","spdr","spe","spea","spearfish","spearman","speedway","speers","speg","spencer","spencerport","spencerville","sperry","spg","spgg","sph","spi","spicer","spindale","spinnerstown","spirit-lake","spirit-river","spiritlake","spiritriver","spiro","spj","spl","splb","splendora","splj","splp","spm","spmq","spmy","spn","spo","spokane","spokane-valley","spokanevalley","spooner","spotswood","spotsylvania","spotsylvania-courthouse","spotsylvaniacourthouse","spp","sppg","spq","spreckelsville","spring","spring-arbor","spring-city","spring-creek","spring-glen","spring-green","spring-grove","spring-hill","spring-hope","spring-house","spring-lake","spring-lake-heights","spring-lake-park","spring-mount","spring-park","spring-ridge","spring-valley","spring-valley-lake","springarbor","springboro","springbrook","springcity","springcreek","springdale","springerville","springfield","springfield-gardens","springfieldgardens","springglen","springgreen","springgrove","springhill","springhope","springhouse","springlake","springlakeheights","springlakepark","springmount","springpark","springridge","springs","springtown","springvale","springvalley","springvalleylake","springview","springville","spruce-grove","spruce-hill","spruce-pine","sprucegrove","sprucehill","sprucepine","spry","sps","spt","spur","spurgeon","spuyten-duyvil","spuytenduyvil","spv","spx","spy","spz","sq","squamish","sr","sra","srb","src","srdl","srdm","srdr","srdt","sreh","srf","srh","sri","srj","srla","srll","srm","srn","srp","srrs","srs","srsb","srt","srx","srz","ss","ssa","ssba","ssc","ssda","ssdg","ssdm","ssdo","ssds","ssdv","sse","ssea","sseg","sses","ssev","ssf","ssg","ssh","ssi","ssjh","ssl","ssm","ssn","ssp","ssrh","sss","sst","ssx","st","st-adolphe","st-albert","st-andrew-windfields","st-anthony","st-catharines","st-charles","st-george","st-jean-port-joli","st-johns","st-johnsbury","st-louis","st-lucie","st-marys","st-paul","st-petersburg","st-stephen","st-thomas","stacy","stadolphe","stafford","stafford-springs","staffordsprings","stagecoach","stalbert","stallings","stallion-springs","stallionsprings","stambaugh-iron-river","stambaughironriver","stamford","stamps","stanaford","stanardsville","stanberry","standish","standrewwindfields","stanfield","stanford","stanhope","stanislaus","stanley","stanleytown","stansbury-park","stansburypark","stanthony","stanton","stanwood","staples","stapleton","star","star-city","star-valley","star-valley-ranch","starbuck","starcity","starke","starksboro","starkville","starlight-village","starlightvillage","starvalley","starvalleyranch","state-center","state-college","state-line","stateburg","statecenter","statecollege","stateline","staten-island","statenisland","statenville","statesboro","statesville","statham","staunton","stayton","stc","stcatharines","stcharles","stdg","steamboat-springs","steamboatsprings","stearns","stedman","steele","steeles","steeleville","steelton","steelville","steep-falls","steepfalls","steger","steilacoom","steinbach","steinhatchee","steinway","stephens-city","stephenscity","stephenville","stephenville-crossing","stephenvillecrossing","sterling","sterling-city","sterling-heights","sterlingcity","sterlingheights","sterlington","stetson","stettler","steuben","steubenville","stevens-point","stevenson","stevenson-ranch","stevensonranch","stevenspoint","stevensville","stewart-manor","stewartmanor","stewartstown","stewartville","stgeorge","sth","sthh","stickney","stigler","stiles","stillman-valley","stillmanvalley","stillwater","stilwell","stinnett","stirling","stj","stjeanportjoli","stjohns","stjohnsbury","stlc","stlouis","stlucie","stmarys","stn","stock-island","stockbridge","stockdale","stockisland","stockton","stockton-springs","stocktonsprings","stockville","stokesdale","stone-mountain","stone-park","stone-ridge","stoneboro","stonecrest","stonegate","stonegate-queensway","stonegatequeensway","stoneham","stonemountain","stonepark","stoneridge","stoneville","stonewall","stonewood","stoney-point","stoneypoint","stonington","stony-brook","stony-creek-mills","stony-plain","stony-point","stony-prairie","stonybrook","stonycreekmills","stonyplain","stonypoint","stonyprairie","storey","storm-lake","stormlake","stormstown","storrs","story-city","storycity","stottville","stouffville","stoughton","stover","stow","stowe","stowell","stpaul","stpetersburg","str","strafford","strasburg","stratford","stratham-station","strathamstation","strathmore","stratmoor","strawberry","strawberry-mansion","strawberry-point","strawberrymansion","strawberrypoint","streamwood","streator","streetsboro","stromsburg","strong","strongsville","stroud","stroudsburg","strum","struthers","stryker","ststephen","stt","stthomas","stuart","stuarts-draft","stuartsdraft","studio-city","studiocity","sturbridge","sturgeon","sturgeon-bay","sturgeonbay","sturgis","sturtevant","stuttgart","stv","su","suamico","suaqui-grande","suaquigrande","sublette","sublimity","subteniente-lopez","subtenientelopez","suc-tuc","succasunna","suchiapa","suchil","suchilapan-del-rio","suchilapandelrio","suchitlan","sucila","sucopo","suctuc","sudbury","sudden-valley","suddenvalley","sudley","sudzal","suffern","suffield-depot","suffielddepot","suffolk","suffolk-downs-station","suffolkdownsstation","sugar-city","sugar-creek","sugar-grove","sugar-hill","sugar-land","sugarcity","sugarcreek","sugarcreek-police-dept","sugarcreekpolicedept","sugargrove","sugarhill","sugarland","sugarland-run","sugarlandrun","sugarmill-woods","sugarmillwoods","suisun","suitland","suitland-silver-hill","suitlandsilverhill","sulligent","sullivan","sullivan-city","sullivancity","sullivans-island","sullivansisland","sulphur","sulphur-springs","sulphursprings","sultan","sultepec","suma-de-hidalgo","sumadehidalgo","sumas","sumidero","sumiton","summerdale","summerfield","summerland","summerlin-south","summerlinsouth","summerset","summerside","summersville","summerville","summit","summit-hill","summit-park","summit-view","summithill","summitpark","summitview","sumner","sumrall","sumter","sun-city","sun-city-center","sun-city-west","sun-lakes","sun-prairie","sun-valley","sun-village","sunapee","sunbury","suncity","suncitycenter","suncitywest","suncoast-estates","suncoastestates","suncook","sundance","sunderland","sundown","sundre","sunflower","sunlakes","sunland","sunland-park","sunlandpark","sunman","sunny-isles-beach","sunnyislesbeach","sunnyside","sunnyside-tahoe-city","sunnysidetahoecity","sunnyslope","sunnyvale","sunprairie","sunray","sunrise","sunrise-lake","sunrise-manor","sunriselake","sunrisemanor","sunriver","sunset","sunset-beach","sunset-hills","sunset-park","sunsetbeach","sunsethills","sunsetpark","sunshine-ranches","sunshineranches","sunuapa","sunvalley","sunvillage","superior","supreme","suquamish","surf-city","surfcity","surfside","surfside-beach","surfsidebeach","surgoinsville","surprise","surrey","surry","susanville","susitna-north","susitnanorth","suspiro-picacho","suspiropicacho","susquehanna","susquehanna-trails","susquehannatrails","sussex","susticacan","susupuato-de-guerrero","susupuatodeguerrero","sutherland","sutherlin","sutter","sutter-creek","suttercreek","sutton","sutton-alpine","suttonalpine","suwanee","sv","svb","svc","svdf","svdj","svea","svf","svl","svlm","svn","svp","svr","svs","svt","svz","sw","swainsboro","swampscott","swan-hills","swan-river","swanhills","swannanoa","swanquarter","swanriver","swansboro","swansea","swanton","swanville","swanzey","swarthmore","swartz","swartz-creek","swartzcreek","swartzville","swedesboro","sweeny","sweet-home","sweet-springs","sweethome","sweetser","sweetsprings","sweetwater","swepsonville","swift-current","swift-trail-junction","swiftcurrent","swifttrailjunction","swissvale","swoyersville","sws","sx","sy","syc","sycamore","sydenham","sydney","sydney-mines","sydneymines","sykesville","sylacauga","sylmar","sylva","sylvan-beach","sylvan-lake","sylvan-springs","sylvanbeach","sylvania","sylvanlake","sylvansprings","sylvester","syosset","syracuse","sz","t1s","t2s","ta","tab","tabasco","taber","tabor-city","taborcity","tac","tacambaro-de-codallos","tacambarodecodallos","tacatzcuaro","tacicuaro","tacoaleche","tacoma","tacony","tacopan","tacotalpa","tacuba-nueva","tacubanueva","tacubaya","tacuro-santa-maria-tacuro","tacurosantamariatacuro","tafb","tafetan","taft","taft-heights","taft-mosswood","taft-southwest-historical","taftheights","taftmosswood","taftsouthwesthistorical","tahdzibichen","tahdziu","tahlequah","tahmek","tahoe-vista","tahoevista","tahoka","tahoma","tainter-lake","tainterlake","takoma-park","takomapark","tala","talbotton","talent","talihina","talisman","talladega","tallahassee","tallapoosa","tallassee","tallmadge","tallulah","talmage","taloga","talol","talpa-de-allende","talpadeallende","talty","tam","tam-oshanter-sullivan","tama","tamalin","tamalpais-homestead-valley","tamalpais-valley","tamalpaishomesteadvalley","tamalpaisvalley","taman","tamandaro","tamapatz","tamaqua","tamarac","tamarack","tamasopo","tamaulipas","tamazola","tamazula","tamazula-de-gordiano","tamazula-de-victoria","tamazuladegordiano","tamazuladevictoria","tamazulapam","tamazulapam-del-espiritu-santo","tamazulapam-villa-del-progreso","tamazulapamdelespiritusanto","tamazulapamvilladelprogreso","tamazulita","tamazunchale","tambaca","tamcuime","tamiahua","tamiami","tamoshantersullivan","tampa","tampacan","tampamolon-corona","tampamoloncorona","tampate","tampemoche","tampico","tampico-alto","tampicoalto","tampiquito","tamuin","tamulte-de-las-sabanas","tamultedelassabanas","tamworth","tanaco","tanaina","tanamacoyan","tanaquillo","tancanhuitz","tancazahuela","tancitaro","tancoco","tandzumadz","tanetze-de-zaragoza","tanetzedezaragoza","taneytown","tangancicuaro-de-arista","tangancicuarodearista","tanganhuato","tangelo-park","tangelopark","tangent","tangerine","tanglewilde","tanglewilde-thompson-place","tanglewildethompsonplace","tanhuato-de-guerrero","tanhuatodeguerrero","tanhuixco","taniche","taniperla","tankuche","tanlajas","tanner","tannersville","tanque-verde","tanques","tanqueverde","tanquian-de-escobedo","tanquiandeescobedo","tantalus","tantima","tantoyuca","tanute","taos","taos-pueblo","taospueblo","tapachula","tapalapa","tapalapan","tapalpa","tapanala","tapeixtles","tapijulapa","tapilula","tapotzingo","tappahannock","tappan","tara-hills","tarahills","tarandacuao","tarboro","tarecuato","tarejero","tarentum","taretan","tariffville","tarimbaro","tarimoro","tarkio","tarpey-village","tarpeyvillage","tarpon-springs","tarponsprings","tarrant","tarrytown","tasquillo","tatahuicapa","tatahuicapan","tataltepec-de-valdes","tataltepecdevaldes","tatamy","tatatila","tatauzoquico","tatoxcac","tatum","taunton","tavares","tavera","tavernier","tavistock","tawas-city","tawascity","taxadho","taxco","taxco-de-alarcon","taxco-el-viejo","taxcodealarcon","taxcoelviejo","taxtes","tayahua","taylor","taylor-creek","taylor-lake-village","taylor-massey","taylor-mill","taylorcreek","taylorlakevillage","taylormassey","taylormill","taylors","taylors-falls","taylorsfalls","taylorsville","taylorville","tayoltita","taza-de-agua-ojo-zarco","tazadeaguaojozarco","tazaquil","tazewell","tazumbo","tb","tb1s","tbb","tbh","tbn","tc","tchula","tcsp","td","tda","tdac","tdb","tdc","tdd","tde","tdes","tdf","tdfv","tdg","tdgo","tdh","tdi","tdj","tdjm","tdl","tdlf","tdls","tdm","tdme","tdmp","tdo","tdp","tdr","tdrc","tds","tdsr","tdt","tdv","tdz","te","tea","teabo","teacalco","teacapan","teague","teaneck","teapa","teaticket","teayo","teays-valley","teaysvalley","teb","tecacahuaco","tecajec","tecali","tecalitlan","tecalpulco","tecama","tecamac","tecamac-de-felipe-villanueva","tecamacdefelipevillanueva","tecamachalco","tecamalucan","tecario","tecate","tecax","tecaxic","techachalco","techachaltitla","techaluta-de-montenegro","techalutademontenegro","techichili","tecoac-santa-maria-nativitas","tecoacsantamarianativitas","tecoanapa","tecolapan","tecolcuautla","tecolotlan","tecolots","tecoltepec","tecoluta-2da-seccion","tecoluta2daseccion","tecolutla","tecoman","tecomatan","tecomatepec","tecomates","tecomatlan","tecomavaca","tecomaxtlahuaca","tecominoacan","tecozautla","tecpan-de-galeana","tecpandegaleana","tecpantzacoalco","tecpatan","tecuala","tecualilla","tecualtitan","tecuanipa","tecuanipan","tecuexcomac","tecuexcontitlantecoescontitlan","tecumseh","tedder","tega-cay","tegacay","tehachapi","tehama","tehuacan","tehuetlan","tehuilotepec","tehuipango","tehuitzingo","tehuixtla","tejalpa","tejaluca","tejocote-de-calera","tejocotedecalera","tejupa","tejupilco-de-hidalgo","tejupilcodehidalgo","tekal-de-venegas","tekaldevenegas","tekamah","tekanto","tekik-de-regil","tekikderegil","tekit","tekoh","tekom","telchac-pueblo","telchac-puerto","telchacpueblo","telchacpuerto","telchaquillo","telcruz","telford","telixtac","tell-city","tellcity","tellico-village","tellicovillage","telluride","teloloapan","teloxtoc","telpatlan","teltipan-de-juarez","teltipandejuarez","temalacaco","temalacayuca","temamatla","temango","temapache","temascal","temascalapa","temascalcingo","temascaltepec-de-gonzalez","temascaltepecdegonzalez","temastian-la-cantera","temastianlacantera","temax","temaxcaltepec","temecula","temelec","temextla","temimilcingo","temiscaming","temiskaming-shores","temiskamingshores","temixco","temoac","temoaya","temoris","temosachic","temozon","tempe","tempe-junction","tempejunction","temperance","temple","temple-city","temple-hills","temple-terrace","templecity","templehills","templeterrace","templeton","templeton-est","templetonest","tempoal-de-sanchez","tempoaldesanchez","ten","ten-hills","ten-mile-run","tenabo","tenafly","tenaha","tenamaxtlan","tenampa","tenampulco","tenancingo","tenancingo-de-degollado","tenancingodedegollado","tenango","tenango-de-arista","tenango-de-doria","tenango-de-las-flores","tenango-del-aire","tenango-el-nuevo","tenangodearista","tenangodedoria","tenangodelaire","tenangodelasflores","tenangoelnuevo","tenantitla","tenayuca","tenejapa","tenenexpan","teneria","teneria-del-santuario","teneriadelsantuario","tenexio","tenexpa","tenextepango","tenguecho","tenhills","tenino","tenixtepec","tenjay","tenmilerun","tennessee","tennessee-ridge","tennesseeridge","tennille","tenochtitlan","tenosique","tentic","teocalco","teocaltiche","teocelo","teococuilco-de-marcos-perez","teococuilcodemarcosperez","teocuitatlan-de-corona","teocuitatlandecorona","teofani","teojomulco","teolocholco","teoloyucan","teontepec","teopantlan","teopisca","teotihuacan","teotihuacan-de-arista","teotihuacandearista","teotitlan","teotitlan-del-valle","teotitlandelvalle","teotlalco","teotlaltzingo","tepache","tepakan","tepalcatepec","tepalcingo","tepanco","tepango","tepapayeca","tepatepec","tepatitlan-de-morelos","tepatitlandemorelos","tepatlaxco","tepatlaxco-de-hidalgo","tepatlaxcodehidalgo","tepazolco","tepeaca","tepeapulco","tepec","tepechicotlan","tepechitlan","tepecoacuilco-de-trujano","tepecoacuilcodetrujano","tepehuacan-de-guerrero","tepehuacandeguerrero","tepeitic","tepeji-del-rio-de-ocampo","tepejidelriodeocampo","tepenixtlahuaca","tepeojuma","tepepa","tepetates","tepeteno-de-iturbide","tepetenodeiturbide","tepetitan","tepetitanreyeshogpandehidalgo","tepetitla","tepetitlan","tepetixtla","tepetlacolco","tepetlan","tepetlaoxtoc-de-hidalgo","tepetlaoxtocdehidalgo","tepetlapa","tepetlixpa","tepetongo","tepetzingo","tepetzintla","tepetzitzintla","tepexco","tepexi","tepexititla","tepexpan","tepeyahualco","tepeyanco","tepeyehualco-de-hidalgo","tepeyehualcodehidalgo","tepezala","tepic","tepich","tepojaco","teposcolula","tepotzotlan","tepoxtepec","tepozcuautla","tepoztlan","tepusco","tepuxtepec","tequepexpan","tequesquitengo","tequesquitlan","tequesta","tequexquinahuac","tequicuilco","tequila","tequila-1ra-seccion-la-aurora","tequila1raseccionlaaurora","tequisistlan","tequisistlan-primero","tequisistlanprimero","tequisquiapan","tequixquiac","tercera-manzana-de-zaragoza","terceramanzanadezaragoza","teremendo","terminal-de-providencia","terminaldeprovidencia","terra-alta","terra-bella","terra-mar","terraalta","terrabella","terrace","terrace-heights","terrace-park","terraceheights","terracepark","terramar","terramuggus","terrasse-des-pins","terrassedespins","terrazas-del-valle","terrazasdelvalle","terre-du-lac","terre-haute","terre-hill","terrebonne","terredulac","terrehaute","terrehill","terrell","terrell-hills","terrellhills","terrenate","terry","terrytown","terryville","tesechoacan","tesistan","tesoco","testerazo","tetecala","tetecalita","tetecolala","tetela","tetela-de-ocampo","tetela-del-volcan","teteladelvolcan","teteladeocampo","tetelcingo","tetelco","teteles-de-avila-castillo","tetelesdeavilacastillo","tetelilla","teteltzingo","tetepango","tetillas","tetipac","tetitlan","tetiz","tetla","tetlanohcan","tetlatlahuca","tetlatzinga","tetlaxco","tetzacual","teuchitlan","teul-de-gonzalez-ortega","teuldegonzalezortega","teutila","teutopolis","tev","teviston","tewksbury","texalpan-de-abajo","texalpan-de-arriba","texalpandeabajo","texalpandearriba","texan-de-palomeque","texandepalomeque","texanna","texarkana","texas","texas-city","texascity","texca","texcaco","texcala","texcalac","texcalapa-de-juarez","texcalapadejuarez","texcaltepec","texcaltic","texcaltitanxoteapantexcaltitan","texcaltitlan","texcalyacac","texcapa","texcapilla","texcatepec","texcatitlan","texcoco-de-mora","texcocodemora","texhuacan","texico","texin","texistepec","texmelucan","texmola","texocoyohuac","teya","tezapotla","tezhuatepec","teziutlan","tezoatlan-de-segura-y-luna","tezoatlandesegurayluna","tezonapa","tezonteopan-de-bonilla","tezonteopandebonilla","tezontepec","tezontepec-de-aldama","tezontepecdealdama","tezoquipa","tezoyuca","tf","tg","tgt","th","thatcher","thayer","the-acreage","the-beaches","the-bronx","the-colony","the-crossings","the-dalles","the-galena-territory","the-hammocks","the-hideout","the-hills","the-meadows","the-pas","the-pinery","the-plains","the-village","the-village-of-indian-hill","the-villages","the-villas-at-aeloa","the-woodlands","theacreage","thebeaches","thebronx","thecolony","thecrossings","thedalles","thedford","thegalenaterritory","thehammocks","thehideout","thehills","themeadows","theodore","thepas","thepinery","theplains","theresa","thermal","thermalito","thermopolis","thessalon","thetford-mines","thetfordmines","thevillage","thevillageofindianhill","thevillages","thevillasataeloa","thewoodlands","thibodaux","thief-river-falls","thiefriverfalls","thiells","thiensville","third-lake","thirdlake","thistletown-beaumond-heights","thistletownbeaumondheights","thomas","thomasboro","thomaston","thomasville","thompson","thompson-falls","thompsonfalls","thompsons-station","thompsonsstation","thompsonville","thomson","thonotosassa","thoreau","thorncliffe-park","thorncliffepark","thorndale","thornport","thornton","thorntown","thornwood","thorold","thorp","thorsby","thousand-oaks","thousand-palms","thousandoaks","thousandpalms","three-forks","three-hills","three-lakes","three-oaks","three-points","three-rivers","three-way","threeforks","threehills","threelakes","threeoaks","threepoints","threerivers","threeway","throckmorton","throgs-neck","throgsneck","throop","thunder-bay","thunderbay","thunderbolt","thurmond","thurmont","thurso","thurston","thv","ti","tianguismanalco","tianguistengo","tianguistengo-la-romera","tianguistengolaromera","tianguistongo","tibolon","tiburon","tice","tichigan","ticonderoga","ticopo","ticul","ticuman","tierra-amarilla","tierra-blanca","tierra-blanca-booxter","tierra-buena","tierra-colorada","tierra-fria","tierra-larga-campo-nuevo","tierra-negra","tierra-nueva","tierra-verde","tierra-y-libertad","tierraamarilla","tierrablanca","tierrablancabooxter","tierrabuena","tierracolorada","tierrafria","tierralargacamponuevo","tierranegra","tierranueva","tierras-coloradas","tierras-coloradas-san-pedro","tierrascoloradas","tierrascoloradassanpedro","tierraverde","tierraylibertad","tieton","tiffin","tifton","tigard","tiger-point","tigerpoint","tigerville","tiholop","tihosuco","tihuatlan","tijuana","tiki-island","tikiisland","tikinmul","tikuch","tila","tilapa","tilapan","tilden","tillamook","tillmans-corner","tillmanscorner","tillson","tiltepec","tilton","tilton-northfield","tiltonnorthfield","tiltonsville","tilzapotla","timber-lake","timber-pines","timberlake","timberlane","timberlea","timberpines","timberville","timberwood-park","timberwoodpark","times-square","timessquare","timmins","timmonsville","timonium","timpson","timucuy","tinajas","tinajas-1ra-seccion","tinajas1raseccion","tinajitas","tincontlan","tingambato","tinguindin","tinicum","tinley-park","tinleypark","tinton-falls","tintonfalls","tinum","tioga","tionesta","tipp-city","tippcity","tipton","tiptonville","tiquicheo","tirindaro","tiripetio","tisdale","tishomingo","titusville","tiverton","tivoli","tixcacalcupul","tixcacaltuyub","tixcancal","tixhualactun","tixkokob","tixmadeje-chiquito","tixmadejechiquito","tixmehuac","tixpehual","tixtla-de-guerrero","tixtladeguerrero","tixtlancingo","tizapan-el-alto","tizapanelalto","tizayuca","tizimin","tj","tl","tla","tlacamilco","tlachaloya","tlachichila","tlachichilco","tlachichuca","tlacoachistlahuaca","tlacoapa","tlacoatzintepec","tlacoaxtla","tlacojalpan","tlacolula","tlacolula-de-matamoros","tlacoluladematamoros","tlacolulan","tlacomulco","tlacotalpan","tlacote-el-bajo","tlacoteelbajo","tlacotepec","tlacotepec-de-jose-manzo","tlacotepec-de-mejia","tlacotepec-san-mateo","tlacotepecdejosemanzo","tlacotepecdemejia","tlacotepecsanmateo","tlacpac","tlacuilola","tlacuilolapan","tlacuilotepec","tlacuitapan","tlacuitlapa","tlahuac","tlahualilo-de-zaragoza","tlahualilodezaragoza","tlahuapa","tlahuelilpan","tlahuitoltepec","tlaixpan","tlajomulco-de-zuniga","tlajomulcodezuniga","tlalchapa","tlalchiyahualica","tlalconteno","tlalcozotitlan","tlalixcoyan","tlalixtac-de-cabrera","tlalixtacdecabrera","tlalixtaquilla","tlalmanalco","tlalminulpa","tlalnelhuayocan","tlalnepantla","tlalpan","tlalpujahua-de-rayon","tlalpujahuaderayon","tlaltecahuacan","tlaltempanapa","tlaltenango","tlaltenango-de-sanchez-roman","tlaltenangodesanchezroman","tlaltenanguito","tlaltepango","tlaltetela","tlaltizapan","tlamacazapa","tlamaco-san-geronimo-tlamaco","tlamacosangeronimotlamaco","tlamanca","tlamanca-de-hernandez","tlamancadehernandez","tlamatoca","tlamaya-grande","tlamayagrande","tlaminca","tlamixtlahuacan","tlanalapa","tlanalapan","tlanchinol","tlancualpican","tlanepantla","tlanipatla","tlaola","tlapa-de-comonfort","tlapacoyan","tlapadecomonfort","tlapala","tlapanala","tlapanaloya","tlapehuala","tlaquepaque","tlaquilpa","tlaquiltenango","tlaquiltepec","tlatempa","tlatempan","tlatenchi","tlatilpa","tlatlauquitepec","tlatlaya","tlatzala","tlaxcala","tlaxcalantongo","tlaxcalilla","tlaxcalixtlahuaca","tlaxco","tlaxco-santiago-tlaxco","tlaxcoapan","tlaxcosantiagotlaxco","tlaxinga-clatzinga","tlaxingaclatzinga","tlaxmalac","tlaxocoyucan","tlaxpanaloya","tlayacapan","tlayehualancingo","tlazala-de-fabela","tlazaladefabela","tlazazalca","tlc","tlcn","tlilapan","tlixco","tlr","tlv","tm","tmdz","tmr","tn","tnc","to","toast","tobaccoville","tobarito","tobermory","toc","tocatlan","toccoa","tochimilco","tochtepec","tocob-leglemal","tocobleglemal","tocoy","tocumbo","todd-creek","toddcreek","todos-santos","todossantos","tofield","tofino","toftrees","tok","tolcayuca","toledo","toliman","tolland","tolleson","tolome","tolono","toluca","toluca-de-guadalupe","tolucadeguadalupe","tom-bean","tomah","tomahawk","tomaquilapa","tomatlan","tomball","tombean","tombstone","tome","tomelopitos","tomendan","tomochic","tompkinsville","toms-river","tomsriver","tonala","tonalaco","tonalapa","tonalapa-del-sur","tonalapadelsur","tonalapan","tonalixco","tonanitla","tonasket","tonawanda","tonaya","tonayan","tonganoxie","tonila","tonka-bay","tonkabay","tonkawa","tonopah","tontitown","tonto-basin","tontobasin","tooele","tool","topanga","topaz-ranch-estates","topazranchestates","topeka","topia","topilco-de-juarez","topilcodejuarez","topiltepec","topolobampo","toppenish","topsfield","topsham","topton","toquerville","torbay","toreo-bajo-el-toreo-bajo","toreobajoeltoreobajo","tornado","tornillo","toro-canyon","torocanyon","toronto","torrance","torreon","torresdale","torrington","tortolita","tos","totatiche","totolac","totolapa","totolapan","totolmajac","totoltepec","totoltepec-de-guerrero","totoltepecdeguerrero","totomixtlahuaca","totontepec-villa-de-morelos","totontepecvillademorelos","tototepec","tototlan","totowa","tottenham","totutla","toughkenamon","toulon","towamensing-trails","towamensingtrails","towanda","towaoc","tower-city","tower-lake","towercity","towerlake","town-and-country","town-creek","town-line","town-n-country","townandcountry","towncreek","towner","townline","townncountry","townsend","townshend","towson","toxpalan","toxtla","tozihuic","tozongo","tp","tr","trabuco-canyon","trabucocanyon","tracadie-sheila","tracadiesheila","tracy","tracy-city","tracycity","tracyton","traer","trafalgar","trafford","trail","trail-creek","trailcreek","trainer","trancoso","transfiguracion","transito-tular","transitotular","transporte","trapiche-de-abra","trapiche-del-rosario","trapiche-viejo","trapichedeabra","trapichedelrosario","trapicheviejo","trappe","travelers-rest","travelersrest","traverse-city","traversecity","travilah","travis","travis-ranch","travisranch","trdh","tre","treasure-island","treasure-lake","treasureisland","treasurelake","trejos","tremont","tremonton","trempealeau","trent-woods","trenton","trentwood","trentwoods","tres-bocas-1ra-seccion","tres-cerros","tres-de-mayo","tres-estrellas","tres-garantias","tres-marias","tres-mezquites","tres-palos","tres-picos","tres-valles","tres-zapotes","tresbocas1raseccion","trescerros","tresdemayo","tresestrellas","tresgarantias","tresmarias","tresmezquites","trespalos","trespicos","tresvalles","treszapotes","trevorton","trevose","trexlertown","trf","tri-cities","tri-city","tri-lakes","triangle","tribeca","tribes-hill","tribeshill","tribune","tricities","tricity","trilakes","trincheras","trinidad","trinidad-de-viguera","trinidad-garcia-de-la-cadena","trinidad-zaachila","trinidaddeviguera","trinidadgarciadelacadena","trinidadzaachila","trinity","trinity-bay-north","trinity-bellwoods","trinitybaynorth","trinitybellwoods","trion","tripoli","trois-rivieres","troisrivieres","tronconal","trooper","trophy-club","trophyclub","trotwood","troup","troutdale","troutman","trowbridge-park","trowbridgepark","troy","truckee","trucksville","truman","trumann","trumansburg","trumbull","truro","trussville","truth-or-consequences","truthorconsequences","tryon","ts","tsaile","tsawwassen","tsft","tsgt","tsh","tsm","tsmn","tsmt","tss","tst","tt","ttp","tu","tualatin","tuba-city","tubac","tubacity","tubutama","tuckahoe","tucker","tuckerman","tuckerton","tucson","tucson-estates","tucsonestates","tucta","tucumcari","tuftonboro","tufts-university","tuftsuniversity","tujunga","tukwila","tula","tula-de-allende","tuladeallende","tulalip","tulalip-bay","tulalipbay","tulancingo","tulantongo","tulapam","tulare","tularosa","tulcingo","tulcingo-de-valle","tulcingodevalle","tulia","tulillos-de-abajo","tulillosdeabajo","tuliman","tulimanca","tulipanes","tullahoma","tullytown","tulpehocken","tulsa","tultepec","tultitlan-de-mariano-escobedo","tultitlandemarianoescobedo","tulum","tumbala","tumbiscatio-de-ruiz","tumbiscatioderuiz","tumbler-ridge","tumblerridge","tumwater","tuncingo","tungareo","tunica","tunica-resorts","tunicaresorts","tunititlan","tunkas","tunkhannock","tuolumne","tuolumne-city","tuolumnecity","tupataro","tupelo","tupper-lake","tupperlake","turcio-segunda-seccion","turciosegundaseccion","turicato","turicuaro","turley","turlock","turner","turners-falls","turnersfalls","turnersville","turpin-hills","turpinhills","turtle-creek","turtle-lake","turtle-rock","turtlecreek","turtlelake","turtlerock","turuachi","tuscaloosa","tuscarawas","tuscola","tusculum","tuscumbia","tuskegee","tustin","tustin-legacy","tustinlegacy","tutepec","tuttle","tutwiler","tuxcacuesco","tuxcueca","tuxpam-de-rodriguez-cano","tuxpamderodriguezcano","tuxpan","tuxpan-de-bolanos","tuxpandebolanos","tuxpanguillo","tuxtepec","tuxtilla","tuxtla","tuxtla-chico","tuxtlachico","tuzamapan","tuzantan","tuzantla","tuzuapan","tv","tvaa","tvdm","tvdp","tw","twain-harte","twainharte","tweed","twentynine-palms","twentyninepalms","twin-city","twin-falls","twin-grove","twin-lake","twin-lakes","twin-rivers","twincity","twinfalls","twingrove","twinlake","twinlakes","twinrivers","twinsburg","two-harbors","two-hills","two-rivers","twoharbors","twohills","tworivers","tx","txt","tybee-island","tybeeisland","tye","tyhee","tyl","tyler","tylertown","tyndall","tyndall-air-force-base","tyndallairforcebase","tyngsboro","tyro","tyrone","tysons","tz","tzajala","tzajalchen","tzaquiviljok","tzeltal","tzicatlacoyan","tzicatlan","tzimol","tzinacapan","tzinil","tzintzimeo","tzintzingareo","tzintzuntzan","tziritzicuaro","tziscao","tzitzio","tzoeptic","tzompantepec","tzontehuitz","tzopilja","tzucacab","ua","uayalceh-de-peon","uayalcehdepeon","uayma","ub","ubc","ubilio-garcia","ubiliogarcia","ubv","uc","uc-irvine","ucareo","uci","ucirvine","ucluelet","ucon","ucu","ucum","udc","udp","udsa","udt","ue","uf","ug","ugi","ugl","uh","uhland","uhmm","uhnh","uhra","uhrichsville","uhst","ui","uic","uintah","uj","ukiah","ukum","ukv","ul","ulysses","um","uman","umatilla","un","unadilla","unalaska","uncasville","underwood-petersville","underwoodpetersville","unicoi","unidad-acaquilpan","unidad-grajales-infonavit","unidad-minera-11-de-julio","unidad-san-miguel-jagueyes","unidadacaquilpan","unidades-habitacionales","unidadeshabitacionales","unidadgrajalesinfonavit","unidadhabitacional10deabril","unidadhabitacionalsantateresa","unidadminera11dejulio","unidadsanmigueljagueyes","unidos-avanzamos","unidosavanzamos","union","union-beach","union-buena-vista","union-buenavista","union-city","union-de-corrientes","union-de-san-antonio","union-de-tula","union-ejidal-tierra-y-libertad","union-gap","union-grove","union-hall","union-hidalgo","union-hill-novelty-hill","union-juarez","union-park","union-point","union-roja","union-springs","union-square","union-y-progreso","unionbeach","unionbuenavista","unioncity","uniondale","uniondecorrientes","uniondesanantonio","uniondetula","unionejidaltierraylibertad","uniongap","uniongrove","unionhall","unionhidalgo","unionhillnoveltyhill","unionjuarez","unionpark","unionpoint","unionport","unionroja","unionsprings","unionsquare","uniontown","unionville","unionyprogreso","united-states-virgin-islands","unitedstatesvirginislands","unity","universal-city","universalcity","university","university-center","university-city","university-gardens","university-heights","university-park","university-place","university-town-center","universitycenter","universitycity","universitygardens","universityheights","universitypark","universityplace","universitytowncenter","up","uphams-corner","uphamscorner","upland","upper-alton","upper-arlington","upper-bear-creek","upper-brookville","upper-fruitland","upper-grand-lagoon","upper-island-cove","upper-kalihi-valley","upper-lake","upper-manoa","upper-marlboro","upper-montclair","upper-nyack","upper-palolo","upper-pauoa","upper-pohatcong","upper-roxborough","upper-saddle-river","upper-saint-clair","upper-sandusky","upper-west-side","upperalton","upperarlington","upperbearcreek","upperbrookville","upperfruitland","uppergrandlagoon","upperislandcove","upperkalihivalley","upperlake","uppermanoa","uppermarlboro","uppermontclair","uppernyack","upperpalolo","upperpauoa","upperpohatcong","upperroxborough","uppersaddleriver","uppersaintclair","uppersandusky","upperwestside","upton","uptown","ur","urania","urbana","urbancrest","urbandale","urecho","uren","ures-municipality","uresmunicipality","uriangato","uricho","uripitio","urique","urireo","ursulo-galvan","ursulogalvan","uruachi","uruapan","uruetaro","us","usc","usipa","usmajac","usmj","uspero","usr","usvi","ut","utah","utc","utica","utqiagvik","uvalde","uvalde-estates","uvaldeestates","uws","uxbridge","uyp","uzeta","va","vac","vacaville","vadnais-heights","vadnaisheights","vado","vail","vails-gate","vailsgate","val-david","val-des-monts","val-des-sources","val-dor","val-morin","val-verde","val-verde-park","valadeces","valatie","valcourt","valdavid","valdeflores","valdese","valdesmonts","valdessources","valdez","valdor","valdosta","vale","valencia","valencia-de-cerro-gordo","valencia-west","valenciadecerrogordo","valencianita","valenciawest","valente-diaz","valentediaz","valentine","valhalla","valinda","valladolid","valle-de-banderas","valle-de-bravo","valle-de-guadalupe","valle-de-juarez","valle-de-lincoln","valle-de-santiago","valle-de-vaquerias","valle-de-vazquez","valle-de-zaragoza","valle-del-rio","valle-dorado-inn","valle-hermoso","valle-luz","valle-nacional","valle-verde","valle-vista","vallecillo","vallecitos-de-zaragoza","vallecitosdezaragoza","valledebanderas","valledebravo","valledeguadalupe","valledejuarez","valledelincoln","valledelrio","valledesantiago","valledevaquerias","valledevazquez","valledezaragoza","valledoradoinn","vallee-jonction","valleejonction","vallehermoso","vallejo","vallejo-porvenir-vallejo","vallejoporvenirvallejo","valleluz","vallenacional","valleverde","vallevista","valley","valley-center","valley-city","valley-cottage","valley-east","valley-falls","valley-glen","valley-grande","valley-green","valley-hill","valley-mills","valley-park","valley-springs","valley-station","valley-stream","valley-view","valleycenter","valleycity","valleycottage","valleyeast","valleyfalls","valleyglen","valleygrande","valleygreen","valleyhill","valleymills","valleypark","valleysprings","valleystation","valleystream","valleyview","valmeyer","valmorin","valparaiso","valrico","valtierrilla","valverde","valverdepark","vamo","vamos-tamaulipas","vamostamaulipas","van","van-alstyne","van-buren","van-horn","van-lear","van-meter","van-nest","van-nuys","van-vleck","van-wert","vanalstyne","vanburen","vance","vanceburg","vancleave","vancouver","vandalia","vandenberg-space-force-base","vandenberg-village","vandenbergspaceforcebase","vandenbergvillage","vander","vandercook-lake","vandercooklake","vandergrift","vanderhoof","vandiver","vanegas","vanhorn","vanier","vanlear","vanmeter","vannest","vannuys","vanvleck","vanwert","vaquerias","vardaman","vare-chiquichuca","varechiquichuca","varennes","vargas","varnell","varnville","vashon","vassalboro","vassar","vaudreuil-dorion","vaudreuildorion","vaughan","vauxhall","vb","vbs","vc","vcdh","vcpb","vd","vda","vdb","vdc","vdcg","vdcr","vdd","vde","vdf","vdg","vdgm","vdi","vdj","vdl","vdlf","vdll","vdln","vdlp","vdm","vdmf","vdn","vdo","vdr","vds","vdv","vdz","ve","veazie","vec","veedersburg","vega","vega-de-alatorre","vega-del-rosario","vega-del-sol","vegadealatorre","vegadelrosario","vegadelsol","vegasdelasoledadysoledaddos","vegreville","veinte-de-noviembre","veintedenoviembre","veintedenoviembresantalucia","veintidos-de-febrero","veintidosdefebrero","veintiuno-de-agosto","veintiunodeagosto","velardena","velda-village","velda-village-hills","veldavillage","veldavillagehills","velva","venado","venceremos","venecia","venersborg","veneta","venetian-village","venetianvillage","venice","venice-gardens","venicegardens","venise-en-quebec","veniseenquebec","venta-de-bravo","venta-de-ocotillos","venta-grande","ventadebravo","ventadeocotillos","ventagrande","ventana","ventnor-city","ventnorcity","ventoquipa","ventura","venus","venustiano-carranza","venustianocarranza","venustianocarranzapenablanca","veq","ver","veracruz","veracruzdeignaciodelallave","veradale","verapaz","vercheres","verde-village","verdevillage","verdi","verdigris","vergennes","vermilion","vermilion-on-the-lake","vermiliononthelake","vermillion","vermont","vermont-square","vermontsquare","vernal","vernon","vernon-center","vernon-hills","vernon-valley","vernoncenter","vernonhills","vernonia","vernonvalley","vero-beach","vero-beach-south","verobeach","verobeachsouth","verona","verona-walk","veronawalk","verplanck","versailles","vestal","vestavia-hills","vestaviahills","vetagrande","vevay","vez","vf","vff","vg","vgg","vggr","vgo","vgsj","vh","vhc","vhdn","vhec","vhlp","vi","vian","viborillas","vicam","vicente-camalote","vicente-guerrero","vicente-guerrero-san-javier","vicente-herrera","vicentecamalote","vicenteguerrero","vicenteguerrerosanjavier","vicenteherrera","vicksburg","victor","victor-rosales","victoria","victoria-de-cortazar","victoria-de-durango","victoria-village","victoriadecortazar","victoriadedurango","victoriavillage","victoriaville","victorrosales","victorville","victory-gardens","victory-lakes","victorygardens","victorylakes","vida-mejor-i","vidalia","vidamejori","vidor","viec","vienna","vienna-bend","viennabend","viera-east","viera-west","vieraeast","vierawest","viesca","view-park-windsor-hills","viewparkwindsorhills","viking","villa-aldama","villa-alta","villa-avila-camacho","villa-azueta","villa-chalcatongo-de-hidalgo","villa-comaltitlan","villa-corona","villa-corzo","villa-cuauhtemoc","villa-de-almoloya-de-juarez","villa-de-arista","villa-de-arriaga","villa-de-cos","villa-de-costa-rica","villa-de-etla","villa-de-garcia-marquez","villa-de-guadalupe","villa-de-la-paz","villa-de-las-flores","villa-de-los-ninos","villa-de-ramos","villa-de-reyes","villa-de-zaachila","villa-del-campo","villa-del-carbon","villa-del-prado-2da-seccion","villa-diaz-ordaz","villa-emiliano-zapata","villa-emilio-carranza","villa-garcia","villa-gonzalez-ortega","villa-gregorio-garcia","villa-grove","villa-guerrero","villa-hermosa","villa-hermosa-las-pozas","villa-hidalgo","villa-hidalgo-el-cubo","villa-hills","villa-independencia","villa-insurgentes-el-calabazal","villa-jimenez","villa-juarez","villa-la-venta","villa-las-esperanzas","villa-lazaro-cardenas","villa-luvianos","villa-madero","villa-magna","villa-mainero","villa-mariano-matamoros","villa-montemorelos","villa-morelos","villa-nicolas-bravo","villa-ocampo","villa-park","villa-pesqueira","villa-progreso","villa-rica","villa-ridge","villa-rotaria","villa-santiago","villa-sola-de-vega","villa-talea-de-castro","villa-tecolutilla","villa-tejupam-de-la-union","villa-union","villa-urbi-del-rey","villa-vicente-guerrero","villa-victoria","villa-zaragoza","villa-zempoala","villaaldama","villaalta","villaavilacamacho","villaazueta","villachalcatongodehidalgo","villachuato","villacomaltitlan","villacorona","villacorzo","villacuauhtemoc","villadealmoloyadejuarez","villadearista","villadearriaga","villadecos","villadecostarica","villadeelcarmentequexquitla","villadeetla","villadegarciamarquez","villadeguadalupe","villadelapaz","villadelasflores","villadelcampo","villadelcarbon","villadelosninos","villadelprado2daseccion","villaderamos","villadereyes","villadezaachila","villadiazordaz","villaemilianozapata","villaemiliocarranza","villaflores","villagarcia","village-green","village-green-green-ridge","village-of-campton-hills","village-of-oak-creek-big-park","village-of-the-branch","village-park","village-saint-george","village-shires","villagegreen","villagegreengreenridge","villageofcamptonhills","villageofoakcreekbigpark","villageofthebranch","villagepark","villages-of-oriole","villagesaintgeorge","villageshires","villagesoforiole","villagonzalezortega","villagran","villagregoriogarcia","villagrove","villaguerrero","villahermosa","villahermosa-yaluma","villahermosalaspozas","villahermosayaluma","villahidalgo","villahidalgoelcubo","villahills","villaindependencia","villainsurgenteselcalabazal","villajimenez","villajuarez","villalasesperanzas","villalaventa","villalazarocardenas","villaluvianos","villamadero","villamagna","villamainero","villamar","villamarianomatamoros","villamontemorelos","villamorelos","villanicolasbravo","villano-beach","villanobeach","villanueva","villaocampo","villapark","villapesqueira","villaprogreso","villarica","villaridge","villarotaria","villas","villas-de-alcala","villas-de-irapuato","villas-de-la-laguna","villas-de-la-loma","villas-del-campo","villasantiago","villasdealcala","villasdeirapuato","villasdelalaguna","villasdelaloma","villasdelcampo","villasoladevega","villataleadecastro","villatecolutilla","villatejupamdelaunion","villaunion","villaurbidelrey","villavicenteguerrero","villavictoria","villazaragoza","villazempoala","ville-marie","ville-platte","villemarie","villeplatte","villisca","vilonia","vinalhaven","vinas-del-sol","vinasdelsol","vincennes","vincent","vincentown","vinco","vine-grove","vine-hill","vinegrove","vinehill","vineland","vineyard","vineyard-haven","vineyardhaven","vineyards","vinings","vinita","vinita-park","vinitapark","vinton","viola","violet","virden","virgil","virginia","virginia-beach","virginia-city","virginia-gardens","virginiabeach","virginiacity","virginiagardens","virginias","viroqua","visalia","visitacion-valley","visitacionvalley","vista","vista-center","vista-hermosa","vista-hermosa-cuasinada","vista-hermosa-de-negrete","vista-santa-rosa","vistacenter","vistahermosa","vistahermosacuasinada","vistahermosadenegrete","vistasantarosa","vistasdelmagueyfraccionamiento","vistha","vito","viva-cardenas","viva-mexico","vivacardenas","vivamexico","vivian","vizarron","vj","vl","vlc","vle","vlv","vm","vmi","vmm","vn","vnb","vo","voch","volcano","volga","volney","volo","volusia","von-ormy","vonore","vonormy","voo","voorhees","voorheesville","votb","votl","vp","vpv","vpwh","vr","vs","vsdv","vsfb","vsg","vsr","vt","vtdc","vu","vudr","vulcan","vv","vvg","vvh","vvp","vw","vy","vz","wa","wabana","wabash","wabasha","wabasso-beach","wabassobeach","waco","waconia","wacousta","wade","wade-hampton","wadehampton","wadena","wadesboro","wading-river","wadingriver","wadley","wadsworth","wael","wafb","waggaman","wagner","wagoner","wahiawa","wahneta","wahoo","wahpeton","waialae-iki","waialae-kahala","waialae-nui-ridge-ainakoa","waialaeiki","waialaekahala","waialaenuiridgeainakoa","waialua","waianae","waihee-waiehu","waiheewaiehu","waikapu","waikiki","waikoloa","wailea","wailea-makena","waileamakena","wailua","wailua-homesteads","wailuahomesteads","wailuku","wailupe","waimalu","waimanalo","waimanalo-beach","waimanalobeach","waimea","wainaku","wainwright","waipahu","waipio","waipio-acres","waipioacres","waite-park","waitepark","waitsburg","wakarusa","wake-forest","wake-island","wake-village","wakeeney","wakefield","wakefield-peacedale","wakefieldpeacedale","wakeforest","wakeisland","wakeman","wakevillage","walbridge","walcott","walden","waldo","waldoboro","waldon","waldorf","waldport","waldron","waldwick","wales","walford","walhalla","walker","walker-mill","walkermill","walkersville","walkerton","walkertown","walla-walla","walla-walla-east","wallace","wallawalla","wallawallaeast","wallburg","walled-lake","walledlake","wallenpaupack-lake-estates","wallenpaupacklakeestates","waller","wallingford","wallingford-center","wallingfordcenter","wallington","wallis","wallkill","walls","walnut","walnut-cove","walnut-creek","walnut-grove","walnut-hill","walnut-hills","walnut-park","walnut-ridge","walnut-village","walnutcove","walnutcreek","walnutgrove","walnuthill","walnuthills","walnutpark","walnutport","walnutridge","walnutvillage","walpole","walpole-island","walpoleisland","walsenburg","walterboro","walters","walthall","waltham","walthourville","walton","walton-hills","walton-park","waltonhills","waltonpark","walworth","wamac","wamego","wampsville","wanakah","wanamassa","wanamingo","wanaque","wanatah","wanchese","wantagh","wapakoneta","wapato","wapello","wappingers-falls","wappingersfalls","ward","ward-village","warden","wardsville","wardvillage","ware","ware-shoals","wareham-center","warehamcenter","wareshoals","waretown","warm-beach","warm-mineral-springs","warm-springs","warman","warmbeach","warminster-heights","warminsterheights","warmmineralsprings","warmsprings","warner","warner-robins","warnerrobins","warr-acres","warracres","warren","warren-park","warren-township","warrenpark","warrensburg","warrensville-heights","warrensvilleheights","warrenton","warrentownship","warrenville","warrington","warrior","warroad","warsaw","warson-woods","warsonwoods","wartburg","warwick","wasaga-beach","wasagabeach","wasco","waseca","washburn","washington","washington-court-house","washington-heights","washington-mills","washington-park","washington-square","washington-terrace","washingtoncourthouse","washingtonheights","washingtonmills","washingtonpark","washingtonsquare","washingtonterrace","washingtonville","washoe","washougal","wasilla","waskaganish","waskom","waswanipi","watauga","watchtower","watchung","water-mill","water-valley","waterboro","waterbury","waterflow","waterford","waterfrontcommunitiestheisland","waterloo","waterman","watermill","watertown","watertown-square","watertownsquare","watervalley","waterville","watervliet","watford","watford-city","watfordcity","wathena","watkins-glen","watkinsglen","watkinsville","watonga","watrous","watseka","watson","watson-lake","watsonlake","watsontown","watsonville","watterson-park","wattersonpark","watts-mills","wattsmills","wattsville","wauchula","wauconda","waukee","waukegan","waukesha","waukomis","waukon","wauna","waunakee","waupaca","waupun","wauregan","waurika","wausau","wauseon","wautoma","wauwatosa","waveland","waverly","wawa","wawarsing","waxahachie","waxhaw","waycross","wayland","waymart","wayne","wayne-city","wayne-heights","waynecity","wayneheights","waynesboro","waynesburg","waynesville","wayzata","wb","wbl","wbs","wbt","wc","wcc","wch","wcm","wcr","wcs","wcti","wd","wdm","we","weare","weatherby-lake","weatherbylake","weatherford","weatherly","weatogue","weaver","weaverville","webb","webb-city","webbcity","webberville","weber-city","webercity","webster","webster-city","webster-groves","webster-springs","webstercity","webstergroves","webstersprings","wect","weddington","wedgefield","wedgewood","wedowee","weed","weedon-centre","weedoncentre","weedpatch","weedsport","weehawken","weeki-wachee-gardens","weekiwacheegardens","weeping-water","weepingwater","weigelstown","weimar","weirton","weirton-heights","weirtonheights","weiser","weissport-east","weissporteast","wekiwa-springs","wekiwasprings","welby","welch","welcome","welcome-beach","welcomebeach","weld","weldon","weldon-spring","weldonspring","welland","wellborn","wellesley","wellfleet","wellford","wellington","wellman","wells","wells-beach-station","wells-branch","wellsbeachstation","wellsboro","wellsbranch","wellsburg","wellston","wellsville","wellton","welsh","wembley","wenatchee","wendell","wendover","wenham","wenonah","wentworth","wentzville","wernersville","wescosville","weslaco","wesley-chapel","wesley-hills","wesleychapel","wesleyhills","wesleyville","wessington-springs","wessingtonsprings","wesson","west","west-albany","west-alexandria","west-allis","west-and-east-lealman","west-athens","west-babylon","west-baraboo","west-barnstable","west-bay-shore","west-belmar","west-bend","west-bishop","west-blocton","west-bloomfield-township","west-bountiful","west-boylston","west-bradenton","west-branch","west-brattleboro","west-bridgewater","west-brookfield","west-buechel","west-burlington","west-caldwell","west-cambridgeharvard-square","west-canton","west-cape-may","west-carrollton-city","west-carson","west-carthage","west-chatham","west-chester","west-chicago","west-clarkston-highland","west-columbia","west-concord","west-conshohocken","west-coon-rapids","west-covina","west-crossett","west-deland","west-dennis","west-des-moines","west-dundee","west-easton","west-elkridge","west-elmira","west-elsdon","west-end","west-end-cobb-town","west-englewood","west-fairview","west-falls-church","west-falmouth","west-fargo","west-fens","west-ferriday","west-fork","west-frankfort","west-freehold","west-garfield-park","west-gate","west-glendive","west-glens-falls","west-greenwich","west-grove","west-gulfport","west-hamburg","west-hammond","west-hartford","west-hattiesburg","west-haven","west-haven-sylvan","west-haverstraw","west-hazleton","west-helena","west-hempstead","west-henrietta","west-hill","west-hills","west-hollywood","west-homestead","west-humber-clairville","west-hurley","west-ishpeming","west-islip","west-jefferson","west-jordan","west-kelowna","west-kennebunk","west-kensington","west-kittanning","west-lafayette","west-lake-hills","west-lake-sammamish","west-lake-stevens","west-laurel","west-lawn","west-leechburg","west-liberty","west-linn","west-little-river","west-livingston","west-long-branch","west-longview","west-lorne","west-lynchburg","west-marion","west-mayfield","west-melbourne","west-memphis","west-menlo-park","west-miami","west-mifflin","west-milford","west-milton","west-milwaukee","west-modesto","west-monroe","west-mount-airy","west-mountain","west-new-york","west-newbury","west-newton","west-norriton","west-nyack","west-oak-lane","west-ocean-city","west-odessa","west-orange","west-palm-beach","west-paris","west-park","west-pasco","west-pensacola","west-peoria","west-perrine","west-pittston","west-plains","west-pleasant-view","west-point","west-portsmouth","west-puente-valley","west-raleigh","west-rancho-dominguez","west-reading","west-richland","west-ridge","west-roxbury","west-rutland","west-sacramento","west-saint-paul","west-salem","west-samoset","west-sand-lake","west-sayville","west-scarborough","west-sedona","west-seneca","west-sharyland","west-side-highway","west-simsbury","west-slope","west-somervilledavis-square","west-springfield","west-st-paul","west-stockbridge","west-swanzey","west-tawakoni","west-terre-haute","west-tisbury","west-torrington","west-town","west-union","west-unity","west-university-place","west-valley","west-valley-city","west-vancouver","west-vero-corridor","west-view","west-virginia","west-wareham","west-warrenton","west-warwick","west-wenatchee","west-wendover","west-whittier-los-nietos","west-wyoming","west-wyomissing","west-yarmouth","west-yellowstone","west-york","westalbany","westalexandria","westallis","westandeastlealman","westathens","westbabylon","westbaraboo","westbarnstable","westbayshore","westbelmar","westbend","westbishop","westblocton","westbloomfieldtownship","westborough","westbountiful","westboylston","westbradenton","westbranch","westbrattleboro","westbridgewater","westbrook","westbrook-center","westbrookcenter","westbrookfield","westbuechel","westburlington","westbury","westby","westcaldwell","westcambridgeharvardsquare","westcanton","westcapemay","westcarrolltoncity","westcarson","westcarthage","westchase","westchatham","westchester","westchicago","westclarkstonhighland","westcliffe","westcolumbia","westconcord","westconshohocken","westcoonrapids","westcovina","westcrossett","westdeland","westdennis","westdesmoines","westdundee","westeaston","westelkridge","westelmira","westelsdon","westend","westendcobbtown","westenglewood","westerleigh","westerly","western-lake","western-springs","westernlake","westernport","westernsprings","westerville","westfairview","westfallschurch","westfalmouth","westfargo","westfens","westferriday","westfield","westfield-center","westfieldcenter","westford","westfork","westfrankfort","westfreehold","westgarfieldpark","westgate","westglendive","westglensfalls","westgreenwich","westgrove","westgulfport","westhamburg","westhammond","westhampton","westhampton-beach","westhamptonbeach","westhartford","westhattiesburg","westhaven","westhaven-moonstone","westhavenmoonstone","westhavensylvan","westhaverstraw","westhazleton","westhelena","westhempstead","westhenrietta","westhill","westhills","westhollywood","westhomestead","westhumberclairville","westhurley","westishpeming","westislip","westjefferson","westjordan","westkelowna","westkennebunk","westkensington","westkittanning","westlafayette","westlake","westlake-village","westlakehills","westlakesammamish","westlakestevens","westlakevillage","westland","westlaurel","westlawn","westleechburg","westliberty","westlinn","westlittleriver","westlivingston","westlock","westlongbranch","westlongview","westlorne","westlynchburg","westmarion","westmayfield","westmelbourne","westmemphis","westmenlopark","westmere","westmiami","westmifflin","westmilford","westmilton","westmilwaukee","westminster","westminster-branson","westminsterbranson","westmodesto","westmonroe","westmont","westmoreland","westmorland","westmount","westmountain","westmountairy","westnewbury","westnewton","westnewyork","westnorriton","westnyack","westoaklane","westoceancity","westodessa","weston","weston-lakes","weston-mills","weston-pellam-park","westonlakes","westonmills","westonpellampark","westons-mills","westonsmills","westorange","westover","westpalmbeach","westparis","westpark","westpasco","westpensacola","westpeoria","westperrine","westphalia","westpittston","westplains","westpleasantview","westpoint","westport","westportsmouth","westpuentevalley","westraleigh","westranchodominguez","westreading","westrichland","westridge","westroxbury","westrutland","westsacramento","westsaintpaul","westsalem","westsamoset","westsandlake","westsayville","westscarborough","westsedona","westseneca","westsharyland","westsidehighway","westsimsbury","westslope","westsomervilledavissquare","westspringfield","weststockbridge","weststpaul","westswanzey","westtawakoni","westterrehaute","westtisbury","westtorrington","westtown","westunion","westunity","westuniversityplace","westvale","westvalley","westvalleycity","westvancouver","westverocorridor","westview","westville","westvirginia","westwareham","westwarrenton","westwarwick","westway","westwego","westwenatchee","westwendover","westwhittierlosnietos","westwood","westwood-lake","westwoodlake","westworth","westwyoming","westwyomissing","westyarmouth","westyellowstone","westyork","wetaskiwin","wetherington","wethersfield","wetumka","wetumpka","wewahitchka","weweantic","wewoka","wexfordmaryvale","weyauwega","weyburn","weyers-cave","weyerscave","weymontachie","weymouth","wf","wfc","wg","wgf","wgp","wh","wharton","whatcom","whately","whc","wheat-ridge","wheatland","wheatley-heights","wheatleyheights","wheaton","wheatridge","wheeler","wheelersburg","wheeling","whetstone","whippany","whiskey-creek","whiskeycreek","whispering-pines","whisperingpines","whistler","whitaker","white-bear-lake","white-bluff","white-castle","white-center","white-city","white-cloud","white-hall","white-haven","white-horse","white-house","white-island-shores","white-marsh","white-meadow-lake","white-mountain-lake","white-oak","white-pigeon","white-pine","white-plains","white-river","white-river-junction","white-rock","white-salmon","white-sands","white-settlement","white-sulphur-springs","whitebearlake","whitebluff","whitecastle","whitecenter","whitecity","whitecloud","whitecourt","whitefield","whitefish","whitefish-bay","whitefishbay","whitehall","whitehall-township","whitehalltownship","whitehaven","whitehorse","whitehouse","whitehouse-station","whitehousestation","whiteislandshores","whiteland","whiteman-air-force-base","whitemanairforcebase","whitemarsh","whitemarsh-island","whitemarshisland","whitemeadowlake","whitemountainlake","whiteoak","whitepigeon","whitepine","whiteplains","whiteriver","whiteriverjunction","whiterock","whitesalmon","whitesands","whitesboro","whitesboro-burleigh","whitesboroburleigh","whitesburg","whitesettlement","whitestone","whitestown","whitesulphursprings","whiteville","whitewater","whitewright","whitfield","whiting","whitinsville","whitley-city","whitleycity","whitman","whitmire","whitmore-lake","whitmore-village","whitmorelake","whitmorevillage","whitney","whittier","whittingham","whitwell","whs","wi","wibaux","wichita","wichita-falls","wichitafalls","wickenburg","wickerham-manor-fisher","wickerhammanorfisher","wickliffe","wiggins","wilber","wilberforce","wilbraham","wilburton","wild-peach-village","wild-rose","wilder","wilderness-rim","wildernessrim","wildomar","wildpeachvillage","wildrose","wildwood","wildwood-crest","wildwood-lake","wildwoodcrest","wildwoodlake","wiley-ford","wileyford","wilkes-barre","wilkesbarre","wilkesboro","wilkie","wilkinsburg","wilkinson-heights","wilkinsonheights","willacoochee","willamina","willard","willcox","williams","williams-bay","williams-lake","williamsbay","williamsburg","williamslake","williamson","williamsport","williamston","williamstown","williamsville","willimantic","willingboro","willis","williston","williston-highlands","williston-park","willistonhighlands","willistonpark","willits","willmar","willoughby","willoughby-hills","willoughbyhills","willow","willow-creek","willow-grove","willow-oak","willow-park","willow-springs","willow-street","willow-valley","willowbrook","willowcreek","willowdale","willowdale-east","willowdale-west","willowdaleeast","willowdalewest","willowgrove","willowick","willowoak","willowpark","willowridgemartingroverichview","willows","willowsprings","willowstreet","willowvalley","wills-point","willspoint","wilmer","wilmerding","wilmette","wilmington","wilmington-island","wilmington-manor","wilmingtonisland","wilmingtonmanor","wilmore","wilmot","wilson","wilson-conococheague","wilsonconococheague","wilsons-mills","wilsonsmills","wilsonville","wilton","wilton-manors","wiltonmanors","wimauma","wimberley","winamac","winchendon","winchester","winchester-center","winchester-park","winchestercenter","winchesterpark","wind-gap","wind-lake","wind-point","windber","windcrest","windemere","winder","windermere","windgap","windham","windlake","windom","window-rock","windowrock","windpoint","windsor","windsor-heights","windsor-locks","windsorheights","windsorlocks","windy-hills","windyhills","winfield","wingate","wingham","wink","winkler","winlock","winnebago","winneconne","winnemucca","winner","winnetka","winnett","winnfield","winnie","winnipeg","winnsboro","winnsboro-mills","winnsboromills","winona","winona-lake","winonalake","winooski","winslow","winsted","winston","winston-salem","winstonsalem","winter-beach","winter-garden","winter-gardens","winter-haven","winter-hill","winter-park","winter-springs","winterbeach","wintergarden","wintergardens","winterhaven","winterhill","winterpark","winterport","winters","winterset","wintersprings","wintersville","winterville","winthrop","winthrop-harbor","winthropharbor","winton","wis","wiscasset","wisconsin","wisconsin-dells","wisconsin-rapids","wisconsindells","wisconsinrapids","wise","wisner","wissinoming","wister","withamsville","wittenberg","wixom","wj","wk","wl","wlb","wle","wlh","wlr","wls","wm","wma","wmf","wml","wmp","wmr","wms","wn","wnra","wny","wo","woburn","woc","wofford-heights","woffordheights","wol","wolcott","wolcottville","wolf-creek","wolf-lake","wolf-point","wolf-trap","wolfcreek","wolfdale","wolfe-city","wolfeboro","wolfecity","wolfforth","wolfhurst","wolflake","wolfpoint","wolftrap","wolfville","wollochet","wolverine-lake","wolverinelake","womelsdorf","wonder-lake","wonderlake","wood-dale","wood-lynne","wood-ridge","wood-river","wood-village","woodacre","woodbine","woodbine-corridor","woodbine-lumsden","woodbinecorridor","woodbinelumsden","woodbourne","woodbranch","woodbridge","woodburn","woodbury","woodbury-center","woodbury-heights","woodburycenter","woodburyheights","woodcliff-lake","woodclifflake","woodcreek","woodcrest","wooddale","woodfield","woodfin","woodhaven","woodinville","woodlake","woodland","woodland-beach","woodland-heights","woodland-hills","woodland-park","woodlandbeach","woodlandheights","woodlandhills","woodlandpark","woodlawn","woodlawn-beach","woodlawnbeach","woodlyn","woodlynne","woodmere","woodmont","woodmoor","woodmore","woodridge","woodriver","woodrow","woodruff","woods-creek","woods-cross","woodsboro","woodscreek","woodscross","woodsfield","woodside","woodside-east","woodsideeast","woodson-terrace","woodsonterrace","woodstock","woodstown","woodsville","woodvillage","woodville","woodward","woodway","woodworth","woolwich","woonsocket","wooster","worcester","worden","worland","wormleysburg","worth","wortham","worthington","worthington-hills","worthingtonhills","woxall","wp","wpa","wpb","wpp","wpv","wr","wrangell","wray","wrd","wrens","wrentham","wright","wright-city","wright-patterson-afb","wrightcity","wrightpattersonafb","wrightsboro","wrightstown","wrightsville","wrightsville-beach","wrightsvillebeach","wrightwood","wrj","ws","wsca","wsh","wsl","wsp","wss","wt","wth","wu","wup","wurtland","wurtsboro","wv","wvc","ww","wwe","wwg","wwln","wy","wyandanch","wyandotte","wychwood","wyckoff","wykagyl","wyldwood","wylie","wymore","wynantskill","wyncote","wyndham","wyndmoor","wynne","wynnefield-heights","wynnefieldheights","wynnewood","wynyard","wyoming","wyomissing","wyomissing-hills","wyomissinghills","wytheville","x-cabil","x-can","x-hazil-sur","x-pichil","xaaga","xacaxomulco","xadani","xagacia","xalacapan-de-lucke","xalacapandelucke","xalapa-de-enriquez","xalapadeenriquez","xalatlaco","xalatzala","xalisco","xalitla","xalitzintla","xalostoc","xaloztoc","xalpatlahuac","xaltepec","xaltepuxtla","xaltianguis","xalticpac","xaltocan","xanaba","xaya","xayacatlan-de-bravo","xayacatlandebravo","xbacab","xc","xcabil","xcan","xcanatun","xcl","xdb","xdc","xde","xdj","xdl","xdmx","xdz","xeg","xenia","xh","xhazilsur","xhimojay","xhitey","xhixhata","xhs","xichu","xico","xicohtzinco","xicotencatl","xicotepec-de-juarez","xicotepecdejuarez","xicotlan","xilitla","xilocuautla","xiquila","xiteje-de-zapata","xitejedezapata","xitlama","xmaben","xoampolco","xocchel","xocen","xochapa","xochiapa","xochiapulco","xochiatipan-de-castillo","xochiatipandecastillo","xochicalco-cirenio-longares","xochicalcocireniolongares","xochicoatlan","xochicuautla","xochihuehuetlan","xochiltepec","xochimanca","xochimilco","xochinanacatlan","xochipala","xochistlahuaca","xochitepec","xochitlan","xochitlan-todos-santos","xochitlantodossantos","xochitlaxco-san-baltazar","xochitlaxcosanbaltazar","xochitonalco","xococapa","xoconoxtle-el-grande","xoconoxtleelgrande","xocotepec","xocotla","xocotlan","xocoyolzintla","xocoyucan","xohuayan","xoloateno","xolostitlademorelosxolostitla","xolotla","xometla","xonacatlan","xonalpu","xonocuautla","xopilapa","xoteapan","xoxocotla","xoxolpa","xoxonacatla","xp","xpichil","xpujil","xsb","xts","xuchapa","xul","xul-ha","xulha","yacolt","yadkinville","yaganiza","yago","yah","yahualica","yahualica-de-gonzalez-gallo","yahualicadegonzalezgallo","yajalon","yakima","yalaha","yale","yalina","yalkoba","yaltem","yamachiche","yamhill","yanceyville","yanga","yankton","yaonahuac","yaphank","yardley","yardville","yarmouth","yarmouth-port","yarmouthport","yarrow-point","yarrowpoint","yasha","yashanal","yates-center","yatescenter","yatzachi","yauhquemehcan","yautepec","yavapai","yavaros","yaxcaba","yaxcopoil","yaxe","yaxhachen","yaxkukul","yazoo-city","yazoocity","yb","yc","ydg","ydgg","ydj","ye","yeadon","yeagertown","yecapixteca","yecapixtla","yecora","yecuatla","yehualtepec","yellow-springs","yellowknife","yellowsprings","yellville","yelm","yerbabuena","yerington","yetla","yetla-de-juarez","yetladejuarez","yetlancingo","yextla","ygp","yh","yibeljoj","yl","yoakum","yobain","yoe","yokuts-valley","yokutsvalley","yolo","yolotepec","yoloxochitl","yoncalla","yonge-eglinton","yonge-stclair","yongeeglinton","yongestclair","yonkers","yopi","yorba-linda","yorbalinda","york","york-beach","york-harbor","york-university-heights","yorkbeach","yorkdale-glen-park","yorkdaleglenpark","yorketown","yorkharbor","yorklyn","yorkshire","yorkton","yorktown","yorktown-heights","yorktownheights","yorkuniversityheights","yorkville","yosemite-lakes","yosemite-valley","yosemitelakes","yosemitevalley","yoshib","yosphi","yotholin","young-america-historical","young-harris","youngamericahistorical","youngharris","youngstown","youngsville","youngtown","youngwood","yountville","yp","ypsilanti","yreka","ys","yt","yuba","yuba-city","yubacity","yuc","yucaipa","yucatan","yucca-valley","yuccavalley","yucuita","yucuyachi","yuh","yukon","yulee","yuma","yurecuaro","yuriria","yustis","yutan","yutanduchi-de-guerrero","yutanduchideguerrero","yv","zac","zacacoyuca","zacacuautla","zacalaca","zacamixtle","zacamulpa","zacamulpa-tlalmimilolpan","zacamulpatlalmimilolpan","zacango","zacaola","zacapala","zacapalco","zacapechpan","zacapoaxtla","zacapu","zacapuato","zacatal","zacate-colorado","zacatecas","zacatecolorado","zacatelco","zacatepec","zacatla","zacatlan","zacatonal-de-juarez","zacatonaldejuarez","zacatula","zacazonapan","zachary","zacoalco","zacoalpan","zacualpa","zacualpan","zacualpan-de-amilpas","zacualpandeamilpas","zacualtipan","zacualtipanito","zahuatlan-de-morelos-san-jose","zahuatlandemorelossanjose","zalamea","zamachihue","zamora","zamora-pico-de-oro","zamorano","zamorapicodeoro","zanesville","zangarro-zangarro-nuevo","zangarrozangarronuevo","zaniza","zapata","zapoapan","zapoapan-de-amapan","zapoapan-de-cabanas","zapoapandeamapan","zapoapandecabanas","zapopan","zapopan2","zapotan","zapotanito","zapote-de-barajas","zapote-de-cestao","zapote-de-palomas","zapote-de-peralta","zapotedebarajas","zapotedecestao","zapotedepalomas","zapotedeperalta","zapotillo-de-mogotes","zapotillodemogotes","zapotiltic","zapotitan-de-hidalgo","zapotitandehidalgo","zapotitlan","zapotitlan-de-vadillo","zapotitlan-lagunas","zapotitlan-palmas","zapotitlan-tablas","zapotitlandevadillo","zapotitlanlagunas","zapotitlanpalmas","zapotitlantablas","zapotlan","zapotlan-de-juarez","zapotlan-del-rey","zapotlandejuarez","zapotlandelrey","zapotlanejo","zapuyo","zaragoza","zaragoza-la-montana","zaragoza-puerto-de-medina","zaragozalamontana","zaragozapuertodemedina","zarzal","zautla","zc","zcsf","zda","zdb","zdc","zdg","zdh","zdj","zdl","zdlb","zdlc","zdm","zdp","zdr","zdv","zebulon","zeeland","zeigler","zelienople","zellwood","zelocotitlan","zempoala","zena","zentlalpan","zephyrhills","zephyrhills-north","zephyrhills-south","zephyrhills-west","zephyrhillsnorth","zephyrhillssouth","zephyrhillswest","zequentic","zicuicho","zicuiran","zihuateutla","zilacayotitlan","zillah","zilwaukee","zimapan","zimatepec","zimatlan-de-alvarez","zimatlandealvarez","zimmerman","zinacantan","zinacantepec","zinacatepec","zinaparo","zinapecuaro","zion","zionsville","zipiajo","ziquitaro","zirahuato-de-los-bernal","zirahuatodelosbernal","zirahuen","zirandaro-de-los-chavez","zirandarodeloschavez","zirimicuaro","zitlala","zitlaltepec","zizicazapa","zl","zlm","zn","zoatecpan","zocea","zocoteaca-de-leon","zocoteacadeleon","zoh-laguna","zohlaguna","zolfo-springs","zolfosprings","zolonquiapa","zona-urbana-ejidal","zona-urbana-ejido-isla-mujeres","zonaurbanaejidal","zonaurbanaejidoislamujeres","zongolica","zongozotla","zontecomatlandelopezyfuentes","zoogocho","zopoco","zoquiapa","zoquiapan","zoquiopan","zoquite","zoquitipan","zoquitlan","zothe","zotoltitlan","zotoluca","zoyatitla","zoyatlan","zoyatzingo","zoyotla","zozocolco-de-guerrero","zozocolco-de-hidalgo","zozocolcodeguerrero","zozocolcodehidalgo","zozutla","zp","zpdm","zpdo","zs","zt","zue","zula","zumbrota","zumpahuacan","zumpango","zumpango-del-rio","zumpangodelrio","zuni-pueblo","zunipueblo","zurumbeneo","zw","zwolle","zzn"];new Set(If);const _f={name:"Public",secret:"8b3387e9c5cdea6ac9e5edbaa115cd72"},Vf=["southbay","south-bay","bot","ventura","weather","wardrive","test","icewatch","sbcountymesh","sb-county-mesh","sbcounty","sb-county","meshbud","mesh-bud","ai-bot","aibot","hdmesh","hd-mesh","hdme","hdme7","hdme7yard","hdmeyard","hdmeshtayrd","hdmestayrd","hdmestyard","hdmetayrd","hdmeshtnyard","mustard","socalmesh","socal-mesh","meshla","mesh-la","lamesh","la-mesh","westcoast","west-coast","wcmesh","wc-mesh","eastcoast","east-coast","midwest","southwest","northwest","northeast","southeast","california","cali","santaclarita","santa-clarita","scv","newhall","valencia","saugus","castaic","palmdale","lancaster","antelopevalley","antelope-valley","avmesh","av-mesh","highdesert","high-desert","mojave","victorville","hesperia","barstow","pomona","claremont","glendora","azusa","covina","westcovina","west-covina","walnut","diamondbar","diamond-bar","whittier","brea","yorbalinda","yorba-linda","montebello","montereypark","monterey-park","alhambra","arcadia","monrovia","duarte","hermosabeach","hermosa-beach","manhattanbeach","manhattan-beach","redondobeach","redondo-beach","palosverdes","palos-verdes","sanpedro","san-pedro","ojai","fillmore","santapaula","santa-paula","porthueneme","port-hueneme","general","public","main","default","chat","local","mesh","network","emergency","sos","help","news","info","status","alerts","announce","random","offtopic","off-topic","lobby","lounge","hangout","testing","dev","development","beta","alpha","experimental","personaltest","personal-test","mytest","my-test","testchannel","test-channel","meshcore","mesh-core","meshtastic","lora","lo-ra","lorawan","lora-wan","radio","ham","amateur","hamradio","ham-radio","amateurradio","repeater","repeaters","gateway","node","nodes","rf","rfmesh","offgrid","off-grid","prepper","preppers","emcomm","ares","races","socal","so-cal","southerncalifornia","southern-california","losangeles","los-angeles","la","laarea","la-area","greaterla","sfv","sfvalley","sf-valley","sanfernandovalley","san-fernando-valley","sanfernando","san-fernando","valley","thevalley","the-valley","westla","west-la","eastla","east-la","southla","south-la","dtla","downtown","downtownla","downtown-la","hollywood","beverlyhills","beverly-hills","santamonica","santa-monica","culvercity","culver-city","marinadelrey","marina-del-rey","longbeach","long-beach","torrance","carson","compton","inglewood","pasadena","glendale","burbank","noho","northhollywood","north-hollywood","encino","tarzana","woodland","woodlandhills","woodland-hills","calabasas","malibu","topanga","agoura","agourahills","agoura-hills","thousandoaks","thousand-oaks","simivalley","simi-valley","simi","venturacounty","ventura-county","oxnard","camarillo","moorpark","santabarbara","santa-barbara","sb","goleta","carpinteria","orangecounty","orange-county","oc","irvine","anaheim","fullerton","costamesa","costa-mesa","newportbeach","newport-beach","huntingtonbeach","inlandempire","inland-empire","ie","riverside","sanbernardino","san-bernardino","ontario","rancho","ranchocucamonga","rancho-cucamonga","fontana","corona","palmsprings","palm-springs","palmdesert","palm-desert","coachella","temecula","murrieta","hemet","perris","menifee","sandiego","san-diego","sd","sdmesh","sd-mesh","norcal","nor-cal","northerncalifornia","northern-california","bayarea","bay-area","sfbay","sf-bay","sfbayarea","sf-bay-area","sanfrancisco","san-francisco","sf","sfmesh","sf-mesh","oakland","berkeley","eastbay","east-bay","alameda","sanjose","san-jose","sj","southbay","south-bay","siliconvalley","silicon-valley","santaclara","santa-clara","sunnyvale","mountainview","mountain-view","paloalto","palo-alto","menlopark","menlo-park","redwoodcity","redwood-city","fremont","hayward","unioncity","union-city","newark","milpitas","santacruz","santa-cruz","watsonville","monterey","montereybay","monterey-bay","salinas","carmel","pacificgrove","pacific-grove","sacramento","sac","sactown","westsac","west-sac","roseville","folsom","fresno","bakersfield","stockton","modesto","visalia","seattle","seattlemesh","seattle-mesh","pnw","pacificnorthwest","pacific-northwest","portland","pdx","portlandmesh","portland-mesh","oregon","denver","denvermesh","denver-mesh","colorado","boulder","fortcollins","austin","austinmesh","austin-mesh","atx","texas","sanantonio","san-antonio","dallas","dfw","dallasmesh","dallas-mesh","fortworth","fort-worth","houston","houstonmesh","houston-mesh","htx","phoenix","phoenixmesh","phoenix-mesh","arizona","az","tucson","mesa","tempe","lasvegas","las-vegas","vegas","vegasmesh","vegas-mesh","nevada","henderson","saltlake","salt-lake","slc","saltlakecity","salt-lake-city","utah","chicago","chicagomesh","chicago-mesh","chitown","illinois","detroit","detroitmesh","detroit-mesh","michigan","annarbor","ann-arbor","minneapolis","twincities","twin-cities","minnesota","stpaul","st-paul","atlanta","atlantamesh","atlanta-mesh","atl","georgia","miami","miamimesh","miami-mesh","florida","tampa","orlando","jacksonville","boston","bostonmesh","boston-mesh","massachusetts","cambridge","newyork","new-york","nyc","nycmesh","nyc-mesh","brooklyn","manhattan","queens","newjersey","new-jersey","nj","jersey","philly","philadelphia","philadelphiamesh","philadelphia-mesh","pennsylvania","dc","washingtondc","washington-dc","dmv","nova","maryland","virginia","raleigh","durham","rdu","triangle","northcarolina","north-carolina","charlotte","clt","southcarolina","south-carolina","nashville","tennessee","memphis","knoxville","neworleans","new-orleans","nola","louisiana","hawaii","oahu","honolulu","maui","bigisland","big-island","alaska","anchorage","fairbanks","canada","toronto","vancouver","montreal","calgary","edmonton","ottawa","uk","london","manchester","birmingham","edinburgh","glasgow","bristol","germany","berlin","munich","hamburg","frankfurt","cologne","france","paris","lyon","marseille","spain","madrid","barcelona","italy","rome","milan","netherlands","amsterdam","rotterdam","australia","sydney","melbourne","brisbane","perth","adelaide","newzealand","new-zealand","auckland","wellington","japan","tokyo","osaka","kyoto","southkorea","south-korea","korea","seoul","taiwan","taipei","singapore","hongkong","hong-kong","india","mumbai","delhi","bangalore","brazil","saopaulo","sao-paulo","rio","mexico","mexicocity","mexico-city","guadalajara","tijuana","gps","location","tracking","tracker","position","coordinates","sensor","sensors","telemetry","data","iot","aprs","beacon","beacons","ping","pings","debug","admin","ops","operations","monitor","monitoring","security","secure","private","encrypted","hiking","camping","outdoors","outdoor","backcountry","trails","offroad","off-road","overlanding","jeep","offroading","sailing","boating","marine","maritime","aviation","flying","pilots","drone","drones","weather","wx","storm","storms","skywarn","traffic","commute","transit","community","group","team","club","family","friends","neighbors","neighborhood","block","street","local","town","city","county","region","north","south","east","west","central","downtown","uptown","midtown","home","house","cabin","ranch","farm","test1","test2","test3","test4","test5","channel1","channel2","channel3","mesh1","mesh2","mesh3","group1","group2","group3","team1","team2","team3","net1","net2","net3","relay","relays","link","links","hub","hubs","core","backbone","qso","ragchew","net","nets","roundtable","simplex","duplex","vhf","uhf","hf","2m","70cm","33cm","23cm","900mhz","915mhz","ism","ism-band","ism915","ism868","license-free","event","events","exercise","drill","training","practice","race","marathon","cycling","running","triathlon","ironman","festival","concert","gathering","meetup","meet-up","convention","hamfest","ham-fest","field-day","fieldday","winter-field-day","sota","pota","summits","parks","parks-on-the-air","2024","2025","2026","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec","winter","spring","summer","fall","autumn","mountain","mountains","hills","peak","summit","ridge","canyon","beach","coast","coastal","shore","bay","lake","river","creek","park","forest","woods","desert","island","peninsula","urban","suburban","rural","metro","area","zone","sector","base","mobile","portable","handheld","fixed","station","primary","secondary","backup","alternate","spare","alpha","bravo","charlie","delta","echo","foxtrot","red","blue","green","yellow","orange","purple","black","white","trace","traces","log","logs","metrics","stats","statistics","raw","stream","feed","live","realtime","real-time","sync","replication","mirror","copy","archive","open","closed","free","premium","pro","plus","lite","basic","new","old","legacy","current","next","future","one","two","three","four","five","six","seven","eight","nine","ten","hamradio","ham-radio","amateurradio","amateur-radio","arrl","dxcc","dxing","morsecode","morse-code","fldigi","js8call","winlink","vara","pactor","packet","ax25","aprsmesh","qrp","qro","qrz","qsl","qth","ragchew","rag-chew","elmer","elmers","technician","amateur","microwave","satellite","ariss","amsat","cubesat","sdr","rtlsdr","rtl-sdr","hackrf","portapack","yaesu","icom","kenwood","elecraft","flexradio","alinco","baofeng","quansheng","antennas","dipole","vertical","yagi","efhw","endfed","wwff","iota","contesting","cwops","auxcomm","satern","maker","makers","makerspace","maker-space","hackerspace","hacker-space","fablab","fab-lab","doityourself","homebrew","home-brew","fromscratch","arduino","esp32","esp8266","stm32","teensy","pico","rp2040","attiny","raspberrypi","raspberry-pi","rpi","beaglebone","beagle-bone","orangepi","orange-pi","kicad","eagle","altium","oshpark","jlcpcb","pcbway","soldering","throughhole","oscilloscope","multimeter","logicanalyzer","logic-analyzer","testbench","3dprinting","3d-printing","3dprint","printer","prusa","ender","creality","bambu","voron","lasercutter","laser-cutter","woodworking","metalworking","welding","resin","fdm","sla","fusion360","fusion-360","freecad","openscad","solidworks","programming","coding","software","developer","developers","devops","sysadmin","linux","unix","bsd","freebsd","openbsd","netbsd","macos","windows","android","ios","python","javascript","typescript","rust","golang","java","kotlin","swift","ruby","perl","csharp","dotnet","haskell","lisp","clojure","elixir","erlang","react","angular","svelte","nodejs","deno","nextjs","nuxt","docker","kubernetes","terraform","ansible","puppet","vagrant","github","gitlab","bitbucket","opensource","open-source","foss","floss","homelab","home-lab","selfhost","self-host","selfhosted","self-hosted","homelabbers","homeassistant","home-assistant","hass","openhab","domoticz","nodered","node-red","mqtt","zigbee","zwave","thread","wifi","bluetooth","rfid","infosec","cybersec","cybersecurity","cyber-security","netsec","opsec","hacking","hacker","hackers","pentest","pentesting","redteam","red-team","blueteam","blue-team","capture-the-flag","bugbounty","bug-bounty","vuln","exploit","malware","reverse","defcon","blackhat","bsides","shmoocon","derbycon","toorcon","hacktheplanet","lockpicking","locksport","toool","deviant","socialeng","social-eng","osint","privacy","anonymity","encryption","crypto","signal","hiking","hiker","hikers","backpacking","backpacker","thru-hike","thruhike","camper","campers","glamping","dispersed","primitive","wilderness","climbing","climber","climbers","rockclimbing","rock-climbing","bouldering","trad","sport","mountaineering","alpine","peaks","fourteeners","14ers","highpoints","skiing","skier","snowboard","snowboarder","backcountry-ski","touring","splitboard","kayak","kayaking","kayaker","canoe","canoeing","paddle","paddling","paddleboard","surfing","surfer","surfers","bodyboard","longboard","shortboard","waves","scuba","freedive","freediving","snorkel","underwater","spearfishing","fishing","angler","anglers","flyfishing","fly-fishing","trout","hunting","hunter","hunters","archery","bowhunting","bow-hunting","rifle","shotgun","cyclist","biking","bicycle","bicycling","roadbike","road-bike","mountainbike","mountain-bike","mountainbiking","mountain-biking","trailriding","ebike","e-bike","ebikes","electric-bike","peloton","strava","zwift","gravel","gravelbike","gravel-bike","bikepacking","bike-packing","randonneur","fixie","fixedgear","fixed-gear","singlespeed","single-speed","commuter","offroading","off-roading","fourwheeling","4wd","awd","jeeping","wrangler","gladiator","tacoma","runner","4runner","overland","overlander","rooftoptent","rooftop-tent","expedition","utv","sxs","sidebyside","side-by-side","rzr","canam","polaris","dirtbike","dirt-bike","motocross","enduro","dualsport","dual-sport","motorcycle","moto","harley","sportbike","cruiser","rving","motorhome","campervan","camper-van","vanlife","van-life","skoolie","trucker","trucking","diesel","semi","bigrig","big-rig","pilot","pilots","flying","flight","airplane","aircraft","planes","cessna","piper","cirrus","beechcraft","mooney","bonanza","skyhawk","helicopter","heli","rotor","rotorcraft","chopper","robinson","glider","gliding","soaring","sailplane","paraglider","paragliding","hangglider","drones","uav","uas","fpv","quadcopter","multirotor","mavic","phantom","rocketry","rockets","hpr","nar","tripoli","model-rocket","amateur-rocket","spacex","nasa","esa","starlink","starship","falcon","artemis","boat","boats","boater","boaters","yachting","yacht","sail","sailor","powerboat","speedboat","fishing-boat","pontoon","jetski","jet-ski","pwc","waverunner","marina","harbor","harbour","dock","pier","anchorage","mooring","liveaboard","cruising","bluewater","blue-water","inshore","intracoastal","marine-radio","marineradio","ais","chartplotter","navionics","opencpn","prepper","preppers","prepping","survival","survivalist","shtf","teotwawki","bol","bugout","bug-out","bugin","bug-in","edc","everyday-carry","loadout","firstaid","first-aid","trauma","tccc","stopthebleed","aed","waterpurification","water-purification","berkey","sawyer","lifestraw","foodstorage","food-storage","canning","dehydrating","freezedried","freeze-dried","battery","generator","inverter","offgrid","off-grid","griddown","grid-down","communications","gmrs","frs","murs","citizens-band","shortwave","homestead","homesteading","homesteader","farming","farmer","farmers","ranching","garden","gardening","gardener","permaculture","organic","regenerative","sustainable","chickens","poultry","goats","sheep","cattle","pigs","livestock","beekeeping","bees","apiary","greenhouse","hydroponics","aquaponics","vertical-farm","indoor-garden","growroom","grow-room","meteorology","stormchasing","storm-chasing","tornado","hurricane","earthquake","quake","seismic","tsunami","volcano","volcanic","geology","geologist","astronomy","stargazing","telescope","astrophotography","astrophoto","deepsky","deep-sky","citizen-science","citizenscience","research","science","stem","education","learning","gaming","gamer","gamers","videogames","video-games","pcgaming","pc-gaming","console","esports","e-sports","competitive","tournament","lan-party","retrogaming","minecraft","terraria","valheim","rust-game","dayz","tarkov","pubg","fortnite","apex","virtualreality","virtual-reality","augmentedreality","augmented-reality","oculus","tabletop","boardgames","board-games","dungeons-dragons","ttrpg","pathfinder","musician","musicians","bands","livemusic","live-music","concerts","guitar","guitarist","bassist","drums","drummer","keyboard","synth","synthesizer","production","producer","producers","beatmaking","beat-making","ableton","flstudio","audiophile","hifi","hi-fi","vinyl","records","turntable","headphones","speakers","podcast","podcasting","podcaster","streaming","streamer","twitch","youtube","content","photography","photographer","photographers","photog","cameras","dslr","mirrorless","canon","nikon","fuji","fujifilm","panasonic","olympus","leica","hasselblad","portrait","wildlife","macro","nightsky","night-sky","timelapse","videography","videographer","filmmaker","filmmaking","cinematography","editing","premiere","davinci","finalcut","final-cut","aftereffects","after-effects","vfx","artist","artists","artwork","creative","creatives","designer","designers","illustration","illustrator","drawing","sketch","sketching","digital-art","digitalart","graphicdesign","graphic-design","uiux","ui-ux","webdesign","web-design","animation","animator","motion","motiongraphics","motion-graphics","3dart","3d-art","blender","foodie","foodies","cooking","cooks","chef","chefs","culinary","kitchen","barbecue","grilling","smoking","smoker","brisket","ribs","pulled-pork","lownslow","baking","baker","sourdough","pastry","dessert","cakes","cookies","brewing","craft-beer","craftbeer","ipa","lager","stout","espresso","barista","roasting","whiskey","bourbon","cocktails","fitness","workout","lifting","weightlifting","powerlifting","bodybuilding","crossfit","hiit","cardio","runners","ultramarathon","triathlete","swimming","swimmer","openwater","open-water","yoga","pilates","meditation","mindfulness","wellness","nutrition","basketball","football","soccer","baseball","hockey","tennis","volleyball","dogs","puppy","puppies","canine","dogtraining","dog-training","cats","kitten","kittens","feline","meow","pets","animals","birding","birdwatching","bird-watching","aquarium","reeftank","reef-tank","saltwater","freshwater","planted-tank","reptiles","reptile","snakes","lizard","gecko","bearded-dragon","neighborhood","nextdoor","meet-up","volunteer","volunteering","nonprofit","non-profit","charity","mutual-aid","mutualaid","parents","parenting","families","children","youth","teens","seniors","lgbtq","pride","queer","nonbinary","ally","allies","inclusive","diversity","burningman","burning-man","playa","blackrock","coachella","sxsw","defcon","hope","layerone","layer-one","supercon","makerfaire","maker-faire","bamboozle","lightning","ragbrai","burnitdown","burning","regional","decomp","toorcamp","chaos","congress","hackathon","ctf-event","capture","wardriving","foxhunt","fox-hunt","brc","ttitd","center-camp","centercamp","esplanade","deep-playa","effigy","temple","soundcamp","sound-camp","mutant-vehicle","art-car","ranger","rangers","lamplighters","dgs","leave-no-trace","moop","gifting","radical-self","immediacy","participation","decommodification","overlandexpo","overland-expo","overlandtrail","overland-trail","overlandbound","overlandjournal","adventurebike","adventure-bike","dirtevery","rubicontrail","rubicon-trail","moab","deathvalley","death-valley","joshua-tree","joshuatree","bigbear","big-bear","mammoth","tahoe","yosemite","sequoia","kingscyn","kings-canyon","meshcore","mesh-core","meshcore-test","meshcore-dev","meshcore-beta","mctest","mc-test","mcdev","mc-dev","mcmain","mc-main","mcpublic","meshcorebot","meshcore-bot","mcbot","mc-bot","meshchat","mesh-chat","meshnet","mesh-net","meshnetwork","mesh-network","meshlink","mesh-link","meshhub","mesh-hub","meshnode","mesh-node","meshrelay","mesh-relay","meshgateway","mesh-gateway","meshbridge","mesh-bridge","meshrouter","meshtalk","mesh-talk","meshvoice","mesh-voice","meshdata","mesh-data","meshsensor","mesh-sensor","meshtrack","mesh-track","meshgps","mesh-gps","meshmap","mesh-map","meshstatus","mesh-status","meshping","mesh-ping","meshtest","mesh-test","meshtesting","mesh-testing","meshdev","mesh-dev","meshops","mesh-ops","meshadmin","mesh-admin","meshmon","mesh-mon","meshlog","mesh-log","meshdebug","mesh-debug","meshdiag","mesh-diag","meshcore-alpha","meshcore-stable","meshcore-main","meshcore-local","mc-alpha","mc-beta","mc-stable","mc-local","mc-ops","mc-admin","meshcoretest","meshcoredev","meshcorebeta","meshcorealpha","meshcoremain","meshcorelocal","meshcoreops","meshcoreadmin","meshcoremon","meshcorelog","meshcorechat","meshcorenet","meshcorelink","meshcorehub","meshcorenode","meshcorerelay","meshcoregateway","meshcorebridge","meshcorerouter","meshcoresensor","meshcoretrack","meshcoregps","meshcoremap","meshcoreping","mcnetwork","mc-network","mcchat","mc-chat","mclink","mc-link","mchub","mc-hub","mcnode","mc-node","mcrelay","mc-relay","mcgateway","mc-gateway","mcbridge","mc-bridge","mcrouter","mc-router","mcsensor","mc-sensor","mctrack","mc-track","mcgps","mc-gps","mcmap","mc-map","mcstatus","mc-status","mcping","mc-ping","mcmon","mc-mon","mclog","mc-log","mcdebug","mc-debug","mcdiag","mc-diag","meshroom","mesh-room","meshrooms","mesh-rooms","meshserver","mesh-server","meshclient","mesh-client","meshcompanion","mesh-companion","meshrepeater","mesh-repeater","meshbase","mesh-base","meshportal","mesh-portal","meshtastic","mesh-tastic","meshtastictest","meshtastic-test","meshtasticdev","meshtastic-dev","meshtasticlocal","meshtastic-local","mttest","mt-test","mtdev","mt-dev","mtlocal","mt-local","longfast","long-fast","longmod","long-mod","longslow","long-slow","shortfast","short-fast","shortslow","short-slow","medfast","med-fast","medslow","med-slow","verylongslow","very-long-slow","meshtastic-alpha","meshtastic-beta","meshtastic-main","meshtastic-stable","meshtasticbeta","meshtasticalpha","meshtasticmain","meshtasticstable","mtbeta","mt-beta","mtalpha","mt-alpha","mtmain","mt-main","mtstable","mt-stable","mtops","mt-ops","mtadmin","mt-admin","mtchat","mt-chat","mtnet","mt-net","mtlink","mt-link","mthub","mt-hub","mtnode","mt-node","mtrelay","mt-relay","longrange","long-range","shortrange","short-range","medrange","med-range","ultralong","ultra-long","ultrafast","ultra-fast","ultraslow","ultra-slow","mediumfast","medium-fast","mediumslow","medium-slow","mediummod","medium-mod","turbofast","turbo-fast","turboslow","turbo-slow","lora","lo-ra","lorawan","lora-wan","loratest","lora-test","loradev","lora-dev","loranet","lora-net","loramesh","lora-mesh","loralink","lora-link","lorahub","lora-hub","loranode","lora-node","lora915","lora-915","lora868","lora-868","lora433","lora-433","sx1262","sx1276","sx1278","semtech","chirp","chirpstack","lorabeta","lora-beta","loraalpha","lora-alpha","loramain","lora-main","lorastable","lora-stable","loraops","lora-ops","loraadmin","lora-admin","lorachat","lora-chat","lorarelay","lora-relay","loragateway","lora-gateway","lorabridge","lora-bridge","lorarouter","lora-router","loraserver","lora-server","lorasensor","lora-sensor","loratrack","lora-track","loragps","lora-gps","loramap","lora-map","lorastatus","lora-status","loraping","lora-ping","loramon","lora-mon","loralog","lora-log","loradebug","lora-debug","lora923","lora-923","lora865","lora-865","lora470","lora-470","sx1261","sx1280","sx1268","sx126x","sx127x","sx128x","llcc68","lr1110","lr1120","lr1121","stm32wl","ra01","ra02","heltec","heltec-lora","ttgo","ttgo-lora","lilygo","lilygo-lora","rak","rak-lora","rak4631","rak3172","rak811","wisblock","test","testing","test1","test2","test3","test123","testchannel","test-channel","testnet","test-net","testmesh","test-mesh","dev","devel","develop","development","devtest","dev-test","sandbox","playground","scratch","temp","temporary","tmp","debug","debugging","diag","diagnostic","diagnostics","alpha","beta","gamma","canary","nightly","unstable","stable","experiment","experimental","trial","pilot","prototype","poc","test4","test5","test6","test7","test8","test9","test10","test01","test02","test03","test-1","test-2","test-3","testA","testB","testC","test-a","test-b","test-c","testing1","testing2","testing3","testing-1","testing-2","testing-3","devnet","dev-net","devmesh","dev-mesh","devchannel","dev-channel","stagenet","stage-net","staging","stage","stagetest","stage-test","qanet","qa-net","qa","qatest","qa-test","qachannel","qa-channel","labnet","lab-net","lab","labtest","lab-test","testlab","test-lab","benchnet","bench-net","benchmark","bench","perftest","perf-test","loadtest","load-test","stresstest","stress-test","smoketest","smoke-test","unittest","unit-test","integtest","integ-test","e2etest","e2e-test","mocknet","mock-net","mock","faker","dummy","sample","example","demonet","demo-net","demo","showcase","preview","prerelease","pre-release","release","rc","release-candidate","releasecandidate","final","production","emergency","emergencies","emer","emerg","911","999","112","sos","mayday","help","rescue","distress","urgent","priority","alert","alerts","warning","warnings","alarm","alarms","safety","safe","danger","hazard","caution","critical","evacuation","evac","evacuate","shelter","shelterinplace","shelter-in-place","lockdown","allclear","all-clear","fire","fires","wildfire","wildfires","brushfire","forestfire","flood","floods","flooding","flashflood","flash-flood","quake","earthquake","aftershock","tsunami","tremor","tornado","hurricane","cyclone","typhoon","storm","severe","missing","missingperson","missing-person","amber","silveralert","medical","medic","ems","ambulance","paramedic","firstaid","first-aid","police","sheriff","lawenforcement","law-enforcement","cert","cert-team","certteam","voad","redcross","red-cross","emergencynet","emergency-net","emergencychannel","emergency-channel","emeralert","emer-alert","sosnet","sos-net","soschannel","sos-channel","maydaynet","mayday-net","maydaychannel","mayday-channel","helpnet","help-net","helpchannel","help-channel","helpline","help-line","rescuenet","rescue-net","rescuechannel","rescue-channel","rescueteam","rescue-team","disaster","disasters","disasternet","disaster-net","disasterrelief","disaster-relief","crisis","crisisnet","crisis-net","crisischannel","crisis-channel","incident","incidentnet","incident-net","incidentchannel","incident-channel","alertnet","alert-net","alertchannel","alert-channel","alertsystem","alert-system","warningnet","warning-net","warningchannel","warning-channel","safetynet","safety-net","safetychannel","safety-channel","safetycheck","safety-check","hazardnet","hazard-net","hazardchannel","hazard-channel","hazmat","haz-mat","firenet","fire-net","firechannel","fire-channel","firefighter","fire-fighter","firedept","fire-dept","firehouse","fire-house","firestation","fire-station","wildfirenet","wildfire-net","wildfirechannel","wildfire-channel","campfire","camp-fire","structurefire","structure-fire","grassfire","grass-fire","floodnet","flood-net","floodchannel","flood-channel","floodwatch","flood-watch","floodwarning","flood-warning","highwater","high-water","risingwater","rising-water","earthquakenet","earthquake-net","earthquakechannel","earthquake-channel","tornadonet","tornado-net","tornadochannel","tornado-channel","hurricanenet","hurricane-net","hurricanechannel","hurricane-channel","stormnet","storm-net","stormchannel","storm-channel","severeweather","severe-weather","medicalnet","medical-net","medicalchannel","medical-channel","traumanet","trauma-net","traumachannel","trauma-channel","traumacenter","trauma-center","hospital","hospitals","clinic","clinics","urgent-care","urgentcare","poisoncontrol","poison-control","cpr-net","cprnet","lifesaver","life-saver","searchandrescue","search-and-rescue","sar","sarnet","sar-net","sarteam","sar-team","coastguard","coast-guard","uscg","lifeguard","life-guard","beachpatrol","beach-patrol","mountainrescue","mountain-rescue","caverescue","cave-rescue","swiftwater","swift-water","k9unit","k9-unit","searchdog","search-dog","rescuedog","rescue-dog","civildefense","civil-defense","fema","dhs","oem","eoc","eocnet","eoc-net","weather","wx","wxalert","wx-alert","wxwatch","wx-watch","wxwarning","wx-warning","wxreport","wx-report","wxupdate","wx-update","forecast","conditions","climate","temperature","temp","temps","rain","rainfall","precipitation","precip","snow","snowfall","wind","winds","windy","gust","gusts","breeze","humidity","humid","dewpoint","dew-point","barometer","pressure","sunny","cloudy","overcast","fog","foggy","mist","haze","smog","heat","heatwave","heat-wave","cold","coldsnap","cold-snap","freeze","lightning","thunder","thunderstorm","tstorm","t-storm","hail","sleet","ice","icy","blackice","black-ice","frost","noaa","nws","skywarn","spotter","spotters","stormspotter","weathernet","weather-net","weatherchannel","weather-channel","wxnet","wx-net","wxchannel","wx-channel","wxstation","wx-station","forecastnet","forecast-net","forecastchannel","forecast-channel","localwx","local-wx","localweather","local-weather","dailywx","daily-wx","hourlywx","hourly-wx","weeklyforecast","weekly-forecast","rainnet","rain-net","rainchannel","rain-channel","rainalert","rain-alert","rainwatch","rain-watch","rainwarning","rain-warning","heavyrain","heavy-rain","snownet","snow-net","snowchannel","snow-channel","snowalert","snow-alert","snowwatch","snow-watch","snowwarning","snow-warning","heavysnow","heavy-snow","blizzard","blizzardwatch","blizzard-watch","blizzardwarning","blizzard-warning","windnet","wind-net","windchannel","wind-channel","windalert","wind-alert","windwatch","wind-watch","windwarning","wind-warning","highwind","high-wind","tempnet","temp-net","tempchannel","temp-channel","tempalert","temp-alert","heatnet","heat-net","heatchannel","heat-channel","heatalert","heat-alert","heatwatch","heat-watch","heatwarning","heat-warning","extremeheat","extreme-heat","coldnet","cold-net","coldchannel","cold-channel","coldalert","cold-alert","coldwatch","cold-watch","coldwarning","cold-warning","extremecold","extreme-cold","winterstorm","winter-storm","icestorm","ice-storm","freezingrain","freezing-rain","thunderstormnet","thunderstorm-net","thunderstormwatch","thunderstorm-watch","thunderstormwarning","thunderstorm-warning","severethunderstorm","severe-thunderstorm","lightningnet","lightning-net","lightningchannel","lightning-channel","lightningalert","lightning-alert","lightningwatch","lightning-watch","tornadowatch","tornado-watch","tornadowarning","tornado-warning","hurricanewatch","hurricane-watch","hurricanewarning","hurricane-warning","tropicalstorm","tropical-storm","tropicaldepression","tropical-depression","stormwatch","storm-watch","stormwarning","storm-warning","stormalert","storm-alert","skywarnnet","skywarn-net","skywarnchannel","skywarn-channel","spotternetwork","spotter-network","stormchase","storm-chase","stormchaser","storm-chaser","amateurwx","amateur-wx","citizenwx","citizen-wx","pwswx","pws-wx","weatherstation","weather-station","wxstation","wx-station","metar","taf","status","stat","stats","statistics","metrics","health","healthcheck","monitor","monitoring","mon","watch","watcher","watchdog","uptime","downtime","outage","outages","incident","incidents","report","reports","reporting","update","updates","bulletin","announce","announcement","announcements","broadcast","broadcasts","notify","notification","notifications","ping","pong","heartbeat","check","checkin","check-in","checkout","check-out","rollcall","roll-call","statusnet","status-net","statuschannel","status-channel","statusupdate","status-update","statusreport","status-report","statuscheck","status-check","statusboard","status-board","monitornet","monitor-net","monitorchannel","monitor-channel","monitoringnet","monitoring-net","monitoringchannel","monitoring-channel","watchnet","watch-net","watchchannel","watch-channel","watchlist","watch-list","healthnet","health-net","healthchannel","health-channel","healthstatus","health-status","uptimenet","uptime-net","uptimechannel","uptime-channel","uptimemonitor","uptime-monitor","outagenet","outage-net","outagechannel","outage-channel","outagereport","outage-report","incidentnet","incident-net","incidentchannel","incident-channel","incidentreport","incident-report","incidentresponse","incident-response","alertsnet","alerts-net","alertschannel","alerts-channel","updatenet","update-net","updatechannel","update-channel","updatefeed","update-feed","bulletinnet","bulletin-net","bulletinchannel","bulletin-channel","bulletinboard","bulletin-board","noticeboard","notice-board","announcenet","announce-net","announcechannel","announce-channel","broadcastnet","broadcast-net","broadcastchannel","broadcast-channel","notifynet","notify-net","notifychannel","notify-channel","pingnet","ping-net","pingchannel","ping-channel","pingtest","ping-test","heartbeatnet","heartbeat-net","heartbeatchannel","heartbeat-channel","rollcallnet","rollcall-net","rollcallchannel","rollcall-channel","checkinnet","checkin-net","checkinchannel","checkin-channel","headcount","head-count","accountability","welfare","wellbeing","well-being","ops","operations","opsnet","ops-net","opschannel","ops-channel","admin","admins","administrator","root","superuser","sudo","control","command","cmd","hq","headquarters","base","basecamp","dispatch","dispatcher","coord","coordinate","coordination","tactical","tac","tacnet","tac-net","tacchannel","tac-channel","logistics","logi","supply","supplies","resource","resources","comms","comm","communications","radio","radionet","radio-net","opsteam","ops-team","opsgroup","ops-group","opscenter","ops-center","opsroom","ops-room","opsdesk","ops-desk","opslead","ops-lead","adminnet","admin-net","adminchannel","admin-channel","adminteam","admin-team","adminops","admin-ops","admingroup","admin-group","admindesk","admin-desk","controlnet","control-net","controlchannel","control-channel","controlroom","control-room","controlcenter","control-center","commandnet","command-net","commandchannel","command-channel","commandpost","command-post","commandcenter","command-center","hqnet","hq-net","hqchannel","hq-channel","hqops","hq-ops","dispatchnet","dispatch-net","dispatchchannel","dispatch-channel","dispatchcenter","dispatch-center","dispatchdesk","dispatch-desk","coordnet","coord-net","coordchannel","coord-channel","coordteam","coord-team","coordcenter","coord-center","coordinationcenter","coordination-center","tacops","tac-ops","tacteam","tac-team","tacgroup","tac-group","taccom","tac-com","taccomms","tac-comms","tacradio","tac-radio","logisticsnet","logistics-net","logisticschannel","logistics-channel","logisticsteam","logistics-team","logisticsops","logistics-ops","supplynet","supply-net","supplychannel","supply-channel","supplychain","supply-chain","resourcenet","resource-net","resourcechannel","resource-channel","commsnet","comms-net","commschannel","comms-channel","commsteam","comms-team","commsops","comms-ops","commscheck","comms-check","commstest","comms-test","radioops","radio-ops","radioteam","radio-team","radiocheck","radio-check","netcontrol","net-control","netops","net-ops","noc","nocnet","noc-net","info","information","infochannel","info-channel","fyi","news","newsfeed","news-feed","headlines","breaking","latest","traffic","trafficreport","traffic-report","roadconditions","road-conditions","transit","bus","train","subway","metro","commute","commuter","events","calendar","schedule","agenda","upcoming","whats-on","infonet","info-net","infohub","info-hub","infodesk","info-desk","infoboard","info-board","infopoint","info-point","infoline","info-line","newsnet","news-net","newschannel","news-channel","newshub","news-hub","newsdesk","news-desk","newsroom","news-room","newsflash","news-flash","breakingnews","breaking-news","latestnews","latest-news","topnews","top-news","localnews","local-news","regionalnews","regional-news","worldnews","world-news","trafficnet","traffic-net","trafficchannel","traffic-channel","trafficupdate","traffic-update","trafficalert","traffic-alert","roadnet","road-net","roadchannel","road-channel","roadupdate","road-update","transitnet","transit-net","transitchannel","transit-channel","transitupdate","transit-update","transitalert","transit-alert","busnet","bus-net","buschannel","bus-channel","busupdate","bus-update","trainnet","train-net","trainchannel","train-channel","trainupdate","train-update","subwaynet","subway-net","subwaychannel","subway-channel","metronet","metro-net","metrochannel","metro-channel","metroupdate","metro-update","commuternet","commuter-net","commuterchannel","commuter-channel","eventsnet","events-net","eventschannel","events-channel","eventshub","events-hub","eventcalendar","event-calendar","localevents","local-events","calendarnet","calendar-net","calendarchannel","calendar-channel","schedulenet","schedule-net","schedulechannel","schedule-channel","agendanet","agenda-net","agendachannel","agenda-channel","upcomingnet","upcoming-net","upcomingchannel","upcoming-channel","location","locations","gps","position","positions","coordinates","track","tracker","tracking","trace","tracer","tracing","beacon","beacons","waypoint","waypoints","checkpoint","checkpoints","geofence","geolocation","geo","mapping","maps","navigate","navigation","locationnet","location-net","locationchannel","location-channel","locationtrack","location-track","locationshare","location-share","gpsnet","gps-net","gpschannel","gps-channel","gpstrack","gps-track","gpsshare","gps-share","gpslog","gps-log","gpsdata","gps-data","positionnet","position-net","positionchannel","position-channel","positiontrack","position-track","positionshare","position-share","coordnet","coord-net","coordchannel","coord-channel","coordshare","coord-share","tracknet","track-net","trackchannel","track-channel","trackshare","track-share","trackingnet","tracking-net","trackingchannel","tracking-channel","tracernet","tracer-net","tracerchannel","tracer-channel","beaconnet","beacon-net","beaconchannel","beacon-channel","beacontrack","beacon-track","beaconshare","beacon-share","waypointnet","waypoint-net","waypointchannel","waypoint-channel","waypointshare","waypoint-share","waypointlog","waypoint-log","checkpointnet","checkpoint-net","checkpointchannel","checkpoint-channel","geofencenet","geofence-net","geofencechannel","geofence-channel","geofencealert","geofence-alert","geozonenet","geozone-net","geonet","geo-net","geochannel","geo-channel","geotrack","geo-track","mappingnet","mapping-net","mappingchannel","mapping-channel","mapnet","map-net","mapchannel","map-channel","mapshare","map-share","navnet","nav-net","navchannel","nav-channel","navtrack","nav-track","navigationnet","navigation-net","navigationchannel","navigation-channel","fleettrack","fleet-track","fleetnet","fleet-net","assettrack","asset-track","whereis","where-is","findme","find-me","locateme","locate-me","nocap","no-cap","frfr","fr-fr","bussin","sheesh","slay","slaps","goated","goat","goats","based","cringe","mid","lowkey","highkey","vibe","vibes","vibing","vibecheck","vibe-check","goodvibes","good-vibes","sus","sussy","sussy-baka","imposter","amongus","among-us","bet","bets","yeet","yeeted","yoink","skibidi","rizz","ohio","bruh","bruv","fam","bestie","besties","squad","squadgoals","squad-goals","slayyy","periodt","purr","queen","king","icon","iconic","legend","main-character","maincharacter","npc","npcs","side-quest","sidequest","understood-the-assignment","ate","served","mother","mothering","rent-free","rentfree","living-rent-free","touch-grass","touchgrass","copium","hopium","doom","doomer","bloomer","zoomer","zoomers","ratio","ratiod","caught-in-4k","receipts","tea","spillthetea","spill-the-tea","simp","simping","stan","stanning","oomf","moots","mutuals","tiktok","fyp","foryou","for-you","foryoupage","trending","viral","cheugy","basic","pick-me","pickme","girlboss","girl-boss","iykyk","iyky","ifykyk","valid","hits-different","hitsdifferent","unhinged","chaotic","feral","unalive","delulu","delusion","bereal","be-real","dump","photodump","photo-dump","core","coded","aesthetic","cottagecore","darkacademia","dark-academia","goblinmode","goblin-mode","softlaunch","soft-launch","hardlaunch","hard-launch","ngl","tbh","ong","on-god","ongod","deadass","dead-ass","fr","real","cap","capping","no-cap-fr","nocapfr","respectfully","allegedly","understood","assignment","ate-that","atethat","devoured","cleared","snatched","slayed","bodied","ended","finished","done","over","deceased","screaming","crying","sobbing","im-weak","imweak","sending-me","sendingme","its-giving","itsgiving","giving","serve","serving","ate-left-no-crumbs","main","protagonist","background-character","backgroundcharacter","side-character","sidecharacter","villain-era","villainera","redemption-arc","character-development","characterdevelopment","plot-twist","plottwist","lore","lore-drop","loredrop","deep-lore","deeplore","canon","fanon","ick","icks","red-flag","redflag","green-flag","greenflag","beige-flag","situationship","talking-stage","talkingstage","roster","rotation","era","eras","villain-arc","healing-era","flop-era","flopping","ate-and-left","understood-assignment","no-thoughts","nothoughts","brain-rot","brainrot","rotted","chronically-online","chronicallyonline","parasocial","hyperfixation","hyperfixating","special-interest","infodump","info-dump","infodumping","yapping","yap","yapper","glazing","glaze","glazer","meat-riding","meatriding","dickriding","aura","aura-points","aurapoints","negative-aura","positiveaura","sigma","sigma-grindset","sigmagrindset","alpha","beta","omega","mewing","mew","looksmax","looksmaxxing","mogging","mog","mogger","gyat","gyatt","bussin-bussin","respectfully-disrespectfully","real-ones","realones","day-ones","dayones","ride-or-die","rideordie","caught-lacking","caughtlacking","down-bad","downbad","down-tremendous","downhorrendous","down-horrendous","astronomically-down","abysmal","its-joever","joever","its-so-over","we-are-so-back","weareback","lock-in","lockin","locked-in","lockedin","locked-tf-in","cooked","cooking","cookin","chef","michelin","gourmet","fr-ong","frong","no-diddy","nodiddy","pause","unpause","resume","edging","edged","gooning","gooned","fanum-tax","fanumtax","hawk-tuah","hawktuah","kai-cenat","speed","ishowspeed","prime","adulting","adult","grown","grownup","grown-up","oldmillennial","avocadotoast","avocado-toast","brunch","brunching","mimosas","doggo","doggie","pupper","puppers","floof","chonk","chonky","birb","smol","smoll","smolbean","smol-bean","boop","snoot","blep","mlem","feels","allthefeels","all-the-feels","rightinthefeels","right-in-the-feels","mood","bigmood","big-mood","sadboi","sad-boi","sadgirl","sad-girl","aesthetic","vsco","vsco-girl","vscogirl","sksksk","andioop","and-i-oop","netflix","netflixandchill","netflix-and-chill","binge","bingewatch","throwback","tbt","throwbackthursday","throwback-thursday","flashback","nostalgia","nostalgic","90skid","90s-kid","80skid","80s-kid","pokemon","pikachu","nintendo","zelda","mario","sonic","sega","harrypotter","harry-potter","hogwarts","hufflepuff","gryffindor","slytherin","ravenclaw","muggle","potterhead","potter-head","starwars","star-wars","jedi","sith","mandalorian","mando","yoda","marvel","mcu","avengers","thanos","ironman","iron-man","spiderman","lotr","lordoftherings","lord-of-the-rings","hobbit","gandalf","frodo","gameofthrones","game-of-thrones","got","thrones","winteriscoming","nailed-it","nailedit","winning","fail","fails","epic","epicfail","fml","yolo","swag","swagger","legit","literally","literally-cant","cant-even","canteven","dying","dead","imdead","im-dead","deceased","goals","lifegoals","life-goals","relationshipgoals","relationship-goals","bae","babe","babes","hubby","wifey","fiance","soulmate","soul-mate","foodporn","food-porn","foodie","nomnom","nom-nom","yummy","delish","wanderlust","travelbug","travel-bug","jetset","jet-set","jetsetter","selfie","selfies","selfietime","selfie-time","groupie","photobomb","blessed","grateful","thankful","humbled","mindblown","mind-blown","extra","salty","shook","triggered","woke","cancelled","cancel","ghosting","ghosted","ghost","friendzone","friend-zone","friendzoned","shade","throwing-shade","tea","spill","spilltea","spill-tea","savage","clap-back","clapback","drag","dragged","read","receipts","tfw","mfw","mrw","dae","eli5","tldr","tl-dr","ama","iama","reddit","redditor","upvote","downvote","karma","cakeday","cake-day","meme","memes","dank","dankmemes","dank-memes","memelord","meme-lord","oldmillenial","xennial","geriatricmillennial","geriatric-millennial","youngmillennial","young-millennial","eldermillennial","elder-millennial","millennialproblems","millennial-problems","millenniallife","millennial-life","firstworldproblems","first-world-problems","struggle","struggles","thestruggle","broke","brokemillennial","broke-millennial","studentloans","student-loans","sidehustle","side-hustle","hustleculture","hustle-culture","grind","grinding","worklifebalance","work-life-balance","burnout","burn-out","selfcare","self-care","treatyoself","treat-yo-self","treatyourself","indulgence","splurge","athleisure","leggings","yoga","yogapants","yoga-pants","pilates","kale","quinoa","acai","matcha","oatmilk","oat-milk","plantbased","plant-based","glutenfree","gluten-free","organic","nongmo","non-gmo","farmtotable","farm-to-table","craftbeer","craft-beer","craftcocktails","craft-cocktails","speakeasy","rooftopbar","rooftop-bar","happyhour","happy-hour","winenight","wine-night","tacotuesday","taco-tuesday","pizzanight","pizza-night","takeout","take-out","doordash","ubereats","uber-eats","grubhub","postmates","instacart","plantmom","plant-mom","plantdad","plant-dad","plantparent","plant-parent","crazycatlady","crazy-cat-lady","dogmom","dog-mom","dogdad","dog-dad","furbaby","fur-baby","furbabies","rescuedog","rescue-dog","adoptdontshop","engagement","engaged","shesaidyes","she-said-yes","weddingplanning","wedding-planning","bridesquad","bride-squad","groomsmen","bachelorette","bachelor","honeymoon","firsthome","first-home","homeowner","home-owner","housegoals","house-goals","diy","diyer","fixer-upper","fixerupper","hgtv","pinterestfail","pinterest-fail","netflix-queue","netflixqueue","bingeing","binge-watching","streamingwars","truecrimeobsessed","true-crime-obsessed","truecrime","true-crime","murderino","podcastaddict","podcast-addict","serialpodcast","serial-podcast","officelife","office-life","corporatelife","corporate-life","cubicle","openoffice","slack","slackchannel","slack-channel","zoomlife","zoom-life","zoommeetings","wfh","workfromhome","work-from-home","remotework","remote-work","hybridwork","quietquitting","quiet-quitting","thegreatresignation","thegreatreshuffling","sundayscaries","sunday-scaries","mondaymotivation","monday-motivation","humpday","hump-day","tgif","fridayfeeling","friday-feeling","fridayvibes","itstheweekend","weekendvibes","weekend-vibes","weekendmode","weekend-mode","lol","lmao","lmfao","rofl","roflmao","omg","wtf","ftw","smh","tbh","icymi","fomo","jomo","fwiw","imho","imo","brb","gtg","ttyl","nbd","idk","idgaf","stfu","nsfw","tmi","btw","afaik","iirc","ymmv","ianal","whatever","whatev","whatevs","meh","blah","ugh","duh","psych","noway","no-way","asif","as-if","getreal","get-real","talktotheh","talk-to-the-hand","nottt","not","sike","syke","psyche","gnarly","rad","radical","tubular","bodacious","righteous","excellent","bogus","heinous","grody","gag-me","gagme","barf","barfbag","gross","dude","dudes","dudette","bro","bros","broski","homie","homies","homes","peeps","posse","crew","gang","clique","tribe","chill","chillax","chillaxin","chilling","chillin","kickin","kickback","kick-back","hangout","hang-out","hangtime","hang-time","couch","couchpotato","couch-potato","vegging","veggingout","vegging-out","slacker","slackers","slack","slacking","procrastinate","procrastinating","grunge","grungy","alternative","alt","indie","underground","mtv","vh1","headbangers","headbanging","moshing","moshpit","mosh-pit","nirvana","cobain","soundgarden","pearljam","pearl-jam","aliceinchains","beavis","butthead","beavisandbutthead","daria","simpsons","bartman","waynesworld","waynes-world","partyon","party-on","schwing","excellent","billted","bill-ted","bogusjourney","bogus-journey","stationn","ferris","ferrisbueller","ferris-bueller","dayoff","day-off","buellerr","breakfast-club","breakfastclub","sixteen-candles","sixteencandles","pretty-in-pink","prettyinpink","mollyringwald","molly-ringwald","johnhughes","john-hughes","hughes","brat-pack","bratpack","pager","beeper","pagenme","page-me","callme","call-me","hitmeup","snailmail","snail-mail","aol","aim","icq","uh-oh","a-s-l","asl","netscape","geocities","angelfire","tripod","webcrawler","askjeeves","gen-x","genx","genxer","gen-xer","xer","xers","forgottengeneration","latchkeykid","latchkey-kid","latchkey","unsupervised","freerange","free-range","mtv-generation","mtvgeneration","mtvkids","mtv-kids","videokilled","video-killed","reagan-era","reaganera","coldwar","cold-war","coldwarkids","cold-war-kids","afterschoolspecial","after-school-special","justdontdoit","saynotodrugs","dareprogram","dare-program","scared-straight","scaredstraight","whatcha-talkin-bout","diffrentstrokes","factsoflife","facts-of-life","familyties","family-ties","growinpains","growin-pains","cosby","cheers","thirtysomething","thirty-something","madaboutyou","mad-about-you","seinfeld","seinfeldian","kramers","masterofyourdomain","yada-yada-yada","friends","centralpark","central-perk","rachel","ross","chandler","monica","melrose","melroseplace","melrose-place","90210","beverlyhills90210","myso-called-life","mysocalledlife","angela","jordan-catalano","jordancatalano","freaksandgeeks","freaks-and-geeks","lindsay","undeclared","realworld","real-world","truestory","true-story","roadrules","road-rules","unplugged","mtv-unplugged","mtvunplugged","acoustic","coffehouse","grunge-era","grungeera","seattlesound","seattle-sound","subpop","sub-pop","smellsliketeenspirit","smells-like-teen-spirit","nevermind","bleach","ten","superunknown","dirt","facelift","jaroffies","jar-of-flies","greenday","green-day","dookie","basketcase","basket-case","wheniseptember","blink182","blink-182","enema","whats-my-age-again","allthesmallthings","sublime","santeria","wrongway","wrong-way","40oz","forty-oz","rage","ratm","rageagainstthemachine","killinginthename","bulls-on-parade","tool","lateralus","aenima","undertow","opiate","spiralout","spiral-out","nineinchnails","nine-inch-nails","nin","closer","headlikeahole","smashingpumpkins","smashing-pumpkins","siamesedream","mellon-collie","radiohead","okcomputer","ok-computer","creep","karma-police","paranoidandroid","beck","loser","odelay","whereitsat","where-its-at","twoturnstables","pulpfiction","pulp-fiction","royalewithcheese","saywhatagain","ezekiel","clerks","viewaskew","view-askew","jayandsilentbob","snootchie","officespace","office-space","tpsreports","tps-reports","piecesofflair","thematrix","the-matrix","redpill","bluepill","neo","morpheus","followthewhiterabbit","fightclub","fight-club","firstrandbeof","projectmayhem","tylerdurden","xfiles","x-files","mulderandscully","thetruthisoutthere","iwanttobelieve","buffy","buffythevampireslayer","buffy-tvs","scoobygang","sunnydale","groovy","far-out","farout","outtasite","outta-sight","righteous","cool","coolio","coolcat","cool-cat","coolbeans","cool-beans","neato","solid","solidgold","solid-gold","golden","goldies","oldies","classics","keen","swell","peachy","peachykeen","peachy-keen","hunky-dory","hunkydory","hip","hipster","hipcat","hip-cat","hep","hepcat","hep-cat","jazzy","square","squares","squaresville","uptight","uncool","unhip","bread","dough","moolah","bucks","clams","greenbacks","benjamins","pad","crib","digs","joint","spot","place","casa","hacienda","wheels","ride","whip","jalopy","hooptie","beater","clunker","oldtimer","old-timer","oldschool","old-school","vintage","retro","classic","backyard","frontporch","front-porch","patio","deck","garage","workshop","hamshack","ham-shack","radioshack","radio-shack","basement","attic","lodge","elks","moose","eagles","vfw","legion","american-legion","rotary","kiwanis","lions","shriners","masons","masonic","fraternal","church","chapel","parish","congregation","fellowship","ministry","sunday","sabbath","potluck","pot-luck","social","supper","supperclub","bridge","bridgeclub","bridge-club","cards","cardgame","card-game","bingo","bunco","poker","pokernight","poker-night","gamenight","game-night","bowling","bowlingalley","bowling-alley","bowlingleague","bowling-league","golf","golfclub","golf-club","teeoff","tee-off","links","fairway","fishing","fishinghole","fishing-hole","fishingbuddy","fishing-buddy","hunting","huntingcamp","hunting-camp","deercamp","deer-camp","cabin","rv","rvclub","rv-club","camper","campground","koa","goodsam","good-sam","snowbird","snowbirds","sunbird","sunbirds","winter-texan","wintertexan","retired","retirement","goldenage","golden-age","goldenyears","golden-years","aarp","seniors","seniormoments","senior-moments","grandkids","grandchildren","boomer","boomers","babyboomer","baby-boomer","babyboomers","baby-boomers","woodstock","woodstocknation","woodstock-nation","hippie","hippies","hippy","peacelove","peace-love","peacesign","peace-sign","makelovenotowar","flowerpower","flower-power","flowerchild","flower-child","summerofove","counterculture","counter-culture","freebird","free-bird","freespirit","tune-in-turn-on","dropmeout","trippingout","tripping-out","psychedelic","grateful-dead","gratefuldead","deadhead","dead-head","deadheads","beatles","beatlemania","fab-four","fabfour","johnpaugeorgeringo","rollingstones","rolling-stones","stones","jagger","keithrichards","thewho","the-who","mygeneration","my-generation","tommyboy","ledzeppelin","led-zeppelin","zeppelin","stairway","stairwaytoheaven","pinkfloyd","pink-floyd","thewall","the-wall","darkside","darksidemoon","doors","thedoors","jimmorrison","jim-morrison","lightmyfire","riders","hendrix","jimi","jimihendrix","purplehaze","purple-haze","voodoo-child","janis","janisjoplin","janis-joplin","mercedesbenz","piecemyheart","ccr","creedence","creedence-clearwater","fortunateson","badmoonrising","eagles","hotelcalifornia","hotel-california","desperado","takiteasy","fleetwood","fleetwoodmac","fleetwood-mac","rumours","dreams","thchain","carlysimon","carly-simon","youresovain","anticipation","simongarfunkel","simon-garfunkel","soundofsilence","bridgeovertroubledwater","caroleking","carole-king","tapestry","youvegotafriend","naturalwoman","crosbystillsnash","crosby-stills-nash","csny","suite-judy-blue-eyes","vietnam","vietnamera","vietnam-era","vietnamvet","vietnam-vet","napalm","civilrights","civil-rights","mlk","martin-luther-king","ihaveadream","moonlanding","moon-landing","apollo","apollo11","onesmallstep","jfk","kennedy","camelot","asknotwhat","cubanmissilecrisis","coldwars","watergate","nixon","rosemarywoods","18minutes","deepthroat","mash","allinthefamily","all-in-the-family","archie","archiebunker","happydays","happy-days","fonzie","thfonz","aaayyyy","jumptheshark","laverne-shirley","laverneshirley","schlemiel","schlimazel","marytylermore","mary-tyler-moore","rhoda","lou-grant","lourant","bobnehart","bob-newhart","newhart","hiimbob","thisislarrybrother","sanford-son","sanfordandson","bigdummy","elizabethimcoming","jeffersons","thejeffersons","movingonup","moving-on-up","deluxe","goodtimes","good-times","dynomite","dy-no-mite","jj","chico-man","chicoman","chicoandtheman","lookingfordwardo","kolchak","nightstalker","night-stalker","barnaby","barnabyjones","columbo","onmorething","one-more-thing","justonemorething","magnum","magnumpi","magnum-pi","selleck","tomelleck","ferrari308","rockfordfiles","rockford-files","jimrockford","answeringmachine","dallastv","dallas-tv","whoshotjr","who-shot-jr","ewingsouthfork","dynasty","alexis","crystalcarrington","catfight","shoulderpads","sixmilliondollarman","bionicwoman","bionic-woman","wecanrebuildhim","the","be","to","of","and","a","in","that","have","i","it","for","not","on","with","he","as","you","do","at","this","but","his","by","from","they","we","say","her","she","or","an","will","my","one","all","would","there","their","what","so","up","out","if","about","who","get","which","go","me","when","make","can","like","time","no","just","him","know","take","people","into","year","your","good","some","could","them","see","other","than","then","now","look","only","come","its","over","think","also","back","after","use","two","how","our","work","first","well","way","even","new","want","because","any","these","give","day","most","us","is","are","was","were","been","good","bad","great","best","worst","first","last","next","only","own","free","open","close","closed","new","old","young","big","small","little","long","short","high","low","fast","slow","quick","hot","cold","warm","cool","hard","soft","easy","difficult","simple","complex","clear","dark","light","bright","deep","shallow","wide","narrow","thick","thin","heavy","full","empty","clean","dirty","wet","dry","loud","quiet","silent","strong","weak","rich","poor","cheap","expensive","safe","dangerous","healthy","sick","happy","sad","angry","calm","busy","lazy","crazy","smart","stupid","clever","wise","dumb","funny","serious","strange","normal","weird","perfect","broken","whole","complete","partial","ready","active","passive","alive","dead","awake","asleep","aware","blind","bold","brave","calm","careful","certain","chief","common","curious","current","direct","double","early","entire","exact","extra","fair","false","famous","final","fine","firm","flat","former","forward","fresh","front","frozen","general","giant","global","golden","grand","green","gross","guilty","hidden","hollow","honest","huge","human","humble","hungry","ideal","ill","inner","instant","intense","internal","joint","just","keen","key","kind","known","large","late","latter","leading","legal","likely","limited","linear","liquid","live","living","local","logical","lonely","loose","lost","lovely","lower","lucky","mad","magic","main","major","male","female","manual","married","massive","master","maximum","mean","medium","mental","middle","military","minimum","minor","missing","mixed","mobile","modern","monthly","moral","mutual","naked","narrow","nasty","native","natural","nearby","neat","negative","nervous","neutral","next","nice","noble","noisy","normal","northern","novel","obvious","odd","official","ok","okay","olympic","only","open","opening","opposite","optional","orange","ordinary","organic","original","other","outdoor","outer","outside","overall","overseas","owing","own","pale","parallel","partial","particular","past","patient","peaceful","peculiar","permanent","personal","petty","physical","pink","plain","pleasant","plenty","plus","pointed","polite","political","popular","positive","possible","potential","powerful","practical","precious","precise","pregnant","present","presidential","pretty","previous","primary","prime","principal","prior","private","probable","productive","professional","profound","progressive","prominent","proper","prospective","protective","proud","provincial","psychological","public","pure","purple","qualified","quick","quiet","radical","random","rapid","rare","raw","ready","real","realistic","reasonable","recent","red","redundant","regional","regular","relative","relevant","reliable","religious","reluctant","remaining","remarkable","remote","representative","resident","resistant","respective","responsible","resulting","revolutionary","rich","ridiculous","right","rigid","rising","risky","rival","romantic","rough","round","royal","ruling","running","rural","sacred","sad","safe","salty","same","sample","go","come","get","give","take","make","do","say","see","look","find","use","tell","ask","work","seem","feel","try","leave","call","keep","let","begin","start","show","hear","play","run","move","live","believe","hold","bring","happen","write","provide","sit","stand","lose","pay","meet","include","continue","set","learn","change","lead","understand","watch","follow","stop","create","speak","read","allow","add","spend","grow","open","walk","win","offer","remember","love","consider","appear","buy","wait","serve","die","send","expect","build","stay","fall","cut","reach","kill","remain","suggest","raise","pass","sell","require","report","decide","pull","break","push","throw","catch","jump","kick","hit","fly","swim","drive","ride","climb","dance","sing","cook","eat","drink","sleep","wake","wash","dress","fight","help","save","teach","study","test","check","join","connect","link","share","post","send","receive","accept","reject","approve","deny","confirm","cancel","reset","restart","refresh","reload","update","upgrade","install","uninstall","download","upload","sync","backup","restore","recover","repair","fix","solve","resolve","complete","finish","time","year","people","way","day","man","woman","child","world","life","hand","part","place","case","week","company","system","program","question","work","government","number","night","point","home","water","room","mother","area","money","story","fact","month","lot","right","study","book","eye","job","word","business","issue","side","kind","head","house","service","friend","father","power","hour","game","line","end","member","law","car","city","community","name","president","team","minute","idea","kid","body","information","back","parent","face","others","level","office","door","health","person","art","war","history","party","result","change","morning","reason","research","girl","guy","moment","air","teacher","force","education","hello","hi","hey","hola","bonjour","ciao","aloha","howdy","greetings","welcome","goodbye","bye","farewell","later","peace","cheers","thanks","thankyou","thank-you","please","sorry","excuse","pardon","congrats","congratulations","bravo","wow","amazing","awesome","cool","nice","great","excellent","perfect","wonderful","fantastic","incredible","unbelievable","omg","wtf","lol","lmao","rofl","haha","hehe","xoxo","hugs","kisses","python","javascript","typescript","java","csharp","cpp","cplusplus","golang","go-lang","rust","rustlang","rust-lang","ruby","php","perl","swift","kotlin","scala","haskell","lisp","clojure","erlang","elixir","fsharp","ocaml","lua","r-lang","rlang","julia","dart","fortran","cobol","assembly","asm","wasm","webassembly","sql","nosql","graphql","mongodb","postgres","postgresql","mysql","mariadb","sqlite","redis","memcached","cassandra","dynamodb","firebase","supabase","prisma","sequelize","typeorm","react","reactjs","react-native","reactnative","angular","angularjs","vue","vuejs","svelte","sveltekit","nextjs","next-js","nuxt","nuxtjs","gatsby","remix","astro","solid","solidjs","preact","qwik","htmx","alpine","tailwind","tailwindcss","bootstrap","bulma","foundation","materialui","chakra","antd","ant-design","shadcn","radix","headlessui","daisyui","nodejs","node-js","deno","bun","express","fastify","koa","nestjs","django","flask","fastapi","rails","rubyonrails","laravel","symfony","spring","springboot","spring-boot","dotnet","aspnet","blazor","maui","electron","tauri","flutter","ionic","capacitor","cordova","xamarin","unity","unreal","godot","pygame","phaser","threejs","three-js","babylon","webpack","vite","rollup","parcel","esbuild","swc","babel","eslint","prettier","jest","vitest","mocha","jasmine","cypress","playwright","selenium","puppeteer","storybook","chromatic","ladle","histoire","docker","kubernetes","k8s","k3s","minikube","helm","istio","envoy","podman","containerd","crio","rancher","openshift","nomad","consul","terraform","pulumi","crossplane","ansible","puppet","chef","saltstack","vagrant","packer","vault","boundary","waypoint","atlantis","argocd","argo-cd","fluxcd","flux-cd","jenkins","circleci","travisci","travis-ci","github-actions","githubactions","gitlab-ci","gitlabci","bitbucket-pipelines","azure-devops","azuredevops","teamcity","bamboo","drone","tekton","spinnaker","aws","amazon","azure","gcp","google-cloud","googlecloud","digitalocean","linode","vultr","hetzner","ovh","scaleway","upcloud","heroku","vercel","netlify","cloudflare","fastly","akamai","cloudfront","railway","render","fly-io","flyio","deno-deploy","workers","cloudflare-workers","lambda","serverless","faas","paas","iaas","saas","baas","kaas","daas","nginx","apache","caddy","traefik","haproxy","envoy","kong","apisix","grafana","prometheus","loki","tempo","jaeger","zipkin","datadog","newrelic","splunk","elastic","elasticsearch","kibana","logstash","elk","fluentd","fluentbit","vector","telegraf","influxdb","timescaledb","questdb","pagerduty","opsgenie","victorops","statuspage","incident-io","rootly","ai","artificial-intelligence","ml","machine-learning","machinelearning","deep-learning","deeplearning","neural","neuralnet","neural-network","tensorflow","pytorch","keras","jax","flax","scikit","sklearn","scipy","numpy","pandas","matplotlib","seaborn","plotly","bokeh","altair","huggingface","hugging-face","transformers","diffusers","datasets","openai","gpt","gpt4","gpt-4","chatgpt","chat-gpt","claude","anthropic","gemini","bard","palm","llama","llama2","llama-2","mistral","mixtral","falcon","mpt","dolly","alpaca","vicuna","orca","phi","zephyr","yi","qwen","deepseek","codellama","code-llama","starcoder","codegen","copilot","cursor","tabnine","codeium","replit","sourcegraph","cody","continue","langchain","llamaindex","llama-index","autogpt","auto-gpt","babyagi","agentgpt","superagi","crewai","autogen","semantic-kernel","guidance","ollama","lmstudio","lm-studio","localai","local-ai","gpt4all","koboldai","oobabooga","text-generation-webui","vllm","tgi","triton","tensorrt","stable-diffusion","stablediffusion","midjourney","dalle","dall-e","imagen","sdxl","controlnet","lora","dreambooth","textual-inversion","automatic1111","comfyui","invokeai","fooocus","kohya","runpod","replicate","banana","modal","anyscale","ray","mlflow","weights-biases","wandb","comet","neptune","clearml","dvc","lakefs","pachyderm","kubeflow","mlrun","seldon","bentoml","mlserver","torchserve","triton-inference","sagemaker","vertex","azure-ml","databricks","snowflake","dbt","airbyte","fivetran","security","cybersec","infosec","netsec","appsec","devsecops","secops","hacking","hacker","hackers","pentest","pentesting","redteam","red-team","blueteam","blue-team","purpleteam","purple-team","bugbounty","bug-bounty","ctf","capture-the-flag","wargames","hackthebox","tryhackme","picoctf","overthewire","vulnhub","exploit","exploits","exploit-db","cve","nvd","mitre","attck","att-ck","owasp","sans","nist","iso27001","soc2","gdpr","hipaa","pci","pci-dss","compliance","audit","forensics","malware","ransomware","trojan","virus","worm","rootkit","botnet","phishing","spearphishing","whaling","vishing","smishing","social-eng","osint","recon","reconnaissance","footprinting","scanning","enumeration","privilege-escalation","privesc","lateral-movement","persistence","exfil","firewall","ids","ips","waf","siem","soar","edr","xdr","mdr","ndr","vpn","proxy","tor","onion","i2p","freenet","darknet","darkweb","encryption","decryption","cipher","hash","hashing","sha","md5","bcrypt","argon2","scrypt","aes","rsa","ecc","ecdsa","ed25519","curve25519","ssl","tls","https","certificates","pki","x509","acme","letsencrypt","oauth","oauth2","oidc","saml","jwt","tokens","sessions","cookies","mfa","2fa","totp","hotp","fido","fido2","webauthn","passkeys","biometrics","password","passwords","passphrase","keychain","vault","secrets","keys","nmap","masscan","zmap","shodan","censys","greynoise","binaryedge","burp","burpsuite","zap","owasp-zap","nikto","sqlmap","metasploit","cobalt-strike","cobaltstrike","empire","covenant","sliver","mythic","mimikatz","bloodhound","responder","impacket","crackmapexec","evil-winrm","hashcat","john","johntheripper","hydra","medusa","aircrack","aircrack-ng","wireshark","tcpdump","tshark","scapy","ettercap","bettercap","mitmproxy","ghidra","ida","radare2","r2","binary-ninja","hopper","cutter","x64dbg","immunity","ollydbg","gdb","lldb","windbg","frida","objection","cycript","blockchain","crypto","cryptocurrency","defi","de-fi","cefi","ce-fi","bitcoin","btc","ethereum","eth","solana","sol","cardano","ada","polkadot","dot","avalanche","avax","polygon","matic","arbitrum","arb","optimism","op","base","zksync","zk-sync","starknet","scroll","linea","cosmos","atom","osmosis","osmo","celestia","tia","injective","inj","near","nearprotocol","aptos","apt","sui","mina","algorand","algo","tezos","xtz","hedera","hbar","fantom","ftm","harmony","one","elrond","egld","flow","icp","internet-computer","filecoin","fil","arweave","ar","storj","sia","akash","akt","render","rndr","chainlink","link","thegraph","grt","api3","band","uma","tellor","uniswap","uni","sushiswap","sushi","pancakeswap","cake","curve","crv","aave","compound","comp","makerdao","maker","mkr","dai","synthetix","lido","steth","rocketpool","reth","frax","convex","cvx","yearn","yfi","dydx","gmx","perpetual","perp","vertex","hyperliquid","drift","opensea","blur","looksrare","x2y2","sudoswap","nftx","rarible","foundation","nft","nfts","pfp","generative","ordinals","inscriptions","brc20","brc-20","wallet","wallets","metamask","phantom","rainbow","rabby","frame","zerion","ledger","trezor","coldcard","bitbox","keystone","hardware-wallet","seed","seedphrase","seed-phrase","mnemonic","private-key","privatekey","mining","miner","miners","hashrate","hash-rate","pow","pos","dpos","staking","stake","validator","validators","delegation","slashing","gas","gwei","eip","eip1559","erc20","erc721","erc1155","erc4626","dao","daos","governance","proposal","voting","snapshot","tally","multisig","multi-sig","gnosis","safe","timelock","vesting","airdrop","hardware","electronics","circuits","pcb","breadboard","soldering","arduino","esp32","esp8266","stm32","teensy","pico","rp2040","attiny","raspberrypi","raspberry-pi","rpi","rpi4","rpi5","rpi-zero","rpizero","beaglebone","beagle-bone","orangepi","orange-pi","bananapi","banana-pi","jetson","nvidia-jetson","nano","xavier","orin","coral","edge-tpu","fpga","verilog","vhdl","systemverilog","chisel","myhdl","amaranth","xilinx","altera","intel-fpga","lattice","gowin","efinix","anlogic","asic","risc","risc-v","riscv","arm","arm64","aarch64","x86","x64","mips","powerpc","sparc","xtensa","avr","pic","msp430","8051","microcontroller","mcu","soc","cpu","gpu","npu","tpu","dpu","ipu","memory","ram","dram","sram","flash","eeprom","rom","nvram","mram","ssd","nvme","hdd","storage","raid","nas","san","das","iscsi","usb","usb-c","thunderbolt","pcie","sata","nvlink","hdmi","displayport","ethernet","wifi","bluetooth","ble","zigbee","zwave","thread","matter","lora","lorawan","sigfox","nbiot","nb-iot","lte-m","catm1","5g","4g","antenna","antennas","rf","sdr","rtl-sdr","hackrf","limesdr","pluto","oscilloscope","logic-analyzer","multimeter","power-supply","signal-gen","3dprinter","3d-printer","3dprinting","fdm","sla","resin","filament","cnc","laser","lasercutter","laser-cutter","plasma","waterjet","edm","physics","quantum","quantum-physics","quantumphysics","quantummechanics","relativity","einstein","newton","particle","particles","hadron","cern","fermion","boson","higgs","quark","lepton","neutrino","photon","electron","proton","neutron","atom","atoms","atomic","nuclear","fission","fusion","plasma","magnetism","electromagnetism","gravity","gravitation","spacetime","blackhole","black-hole","singularity","wormhole","darkmatter","dark-matter","darkenergy","dark-energy","cosmology","bigbang","big-bang","inflation","astronomy","astrophysics","cosmos","universe","multiverse","galaxy","galaxies","milkyway","milky-way","andromeda","nebula","nebulae","pulsar","quasar","magnetar","supernova","nova","dwarf","whitedwarf","reddwarf","star","stars","stellar","solar","sun","sunspot","corona","flare","planet","planets","planetary","exoplanet","mercury","venus","earth","mars","jupiter","saturn","uranus","neptune","pluto","ceres","eris","moon","moons","lunar","asteroid","asteroids","comet","comets","meteor","telescope","telescopes","hubble","webb","jwst","james-webb","chandra","spitzer","kepler","tess","gaia","vlt","elt","keck","alma","ska","nasa","esa","jaxa","isro","roscosmos","cnsa","spacex","blueorigin","virgin-galactic","rocketlab","relativity-space","firefly","astra","chemistry","chem","chemical","chemicals","molecule","molecules","molecular","organic","inorganic","polymer","polymers","catalyst","reaction","synthesis","element","elements","periodic","periodic-table","hydrogen","helium","lithium","carbon","nitrogen","oxygen","sulfur","phosphorus","potassium","calcium","iron","copper","zinc","silver","gold","platinum","uranium","plutonium","biology","bio","biological","bioscience","lifescience","life-science","cell","cells","cellular","dna","rna","mrna","gene","genes","genetic","genetics","genomics","genome","chromosome","protein","proteins","enzyme","bacteria","bacterial","virus","viral","microbe","microbes","microbiology","fungus","fungi","yeast","algae","plankton","protozoa","amoeba","evolution","darwin","natural-selection","species","taxonomy","phylogeny","ecology","ecosystem","biodiversity","conservation","endangered","extinction","botany","botanical","plant","plants","flora","flower","flowers","tree","trees","forest","forests","rainforest","jungle","grassland","savanna","zoology","animal","animals","fauna","mammal","mammals","reptile","reptiles","amphibian","amphibians","bird","birds","avian","fish","fishes","marine","insect","insects","arthropod","arachnid","spider","spiders","butterfly","earth","earthscience","earth-science","geology","geological","geologist","rock","rocks","mineral","minerals","crystal","crystals","gem","gems","volcano","volcanoes","volcanic","lava","magma","eruption","tectonic","earthquake","earthquakes","seismic","seismology","fault","faults","mountain","mountains","peak","peaks","summit","ridge","range","alps","himalayas","rockies","andes","everest","kilimanjaro","fuji","denali","ocean","oceans","oceanic","atlantic","pacific","indian","arctic","antarctic","sea","seas","mediterranean","caribbean","baltic","adriatic","aegean","river","rivers","stream","streams","creek","creeks","delta","estuary","lake","lakes","pond","ponds","reservoir","wetland","wetlands","swamp","island","islands","peninsula","cape","bay","gulf","strait","channel","continent","continents","africa","asia","europe","northamerica","southamerica","australia","oceania","antarctica","arctic","polar","tropical","equator","climate","weather","meteorology","atmosphere","stratosphere","troposphere","temperature","precipitation","humidity","pressure","wind","winds","storm","storms","hurricane","typhoon","cyclone","tornado","tornadoes","lightning","thunder","thunderstorm","monsoon","blizzard","drought","environment","environmental","eco","ecology","green","sustainable","sustainability","renewable","renewables","solar","solar-power","solarpower","wind-power","windpower","hydro","hydroelectric","geothermal","biomass","nuclear-power","nuclearpower","fusion-power","fusionpower","clean-energy","carbon","carbon-neutral","carbonneutral","netzero","net-zero","emissions","greenhouse","co2","methane","ozone","pollution","pollutants","smog","recycle","recycling","compost","composting","waste","zerowaste","zero-waste","plastic","plastics","microplastic","biodegradable","reusable","disposable","organic","natural","vegan","vegetarian","plantbased","plant-based","climate-change","climatechange","global-warming","globalwarming","ipcc","paris-agreement","cop","cop28","unfccc","epa","wwf","greenpeace","sports","sport","athletics","athletic","athlete","athletes","fitness","workout","workouts","exercise","exercises","training","trainer","gym","football","nfl","soccer","fifa","worldcup","world-cup","premier-league","champions-league","laliga","la-liga","bundesliga","seriea","serie-a","basketball","nba","wnba","ncaa","march-madness","hoops","dunk","slam","baseball","mlb","homerun","home-run","worldseries","world-series","hockey","nhl","ice-hockey","icehockey","puck","slap-shot","goalie","tennis","atp","wta","wimbledon","usopen","us-open","roland-garros","golf","pga","lpga","masters","ryder-cup","birdie","eagle","hole-in-one","boxing","mma","ufc","bellator","wrestling","wwe","aew","judo","karate","taekwondo","jiu-jitsu","jiujitsu","bjj","muay-thai","kickboxing","kung-fu","olympics","olympic","paralympics","paralympic","commonwealthgames","running","runner","runners","marathon","marathons","half-marathon","5k","10k","ultra","ultramarathon","trail-running","trailrunning","cross-country","cycling","cyclist","cycling","tour-de-france","tourdefrance","giro","vuelta","time-trial","peloton","velodrome","bmx","mountainbike","mtb","swimming","swimmer","swimmers","pool","freestyle","backstroke","butterfly","triathlon","triathlete","ironman","sprint-tri","olympic-tri","duathlon","weightlifting","powerlifting","crossfit","bodybuilding","strongman","yoga","pilates","aerobics","zumba","hiit","cardio","stretching","mobility","surfing","surf","surfer","surfers","waves","barrel","pipeline","wsl","skateboarding","skate","skater","skaters","sk8","halfpipe","vert","street","snowboarding","snowboard","snowboarder","skiing","ski","skier","slopes","climbing","climber","climbers","bouldering","trad","sport-climbing","parkour","freerunning","free-running","traceur","movement","calisthenics","music","musician","musicians","musical","song","songs","album","albums","artist","artists","band","bands","singer","singers","vocalist","voice","rock","rock-music","rockmusic","rocknroll","rock-n-roll","classic-rock","pop","pop-music","popmusic","kpop","k-pop","jpop","j-pop","cpop","c-pop","hiphop","hip-hop","rap","rapper","rappers","trap","drill","grime","rnb","r-n-b","soul","funk","disco","motown","reggae","dancehall","ska","jazz","jazz-music","jazzmusic","bebop","swing","bigband","big-band","blues","blues-music","bluesmusic","delta-blues","chicago-blues","electric","country","country-music","countrymusic","bluegrass","americana","folk","electronic","edm","techno","house","trance","dubstep","drum-and-bass","dnb","drumnbass","ambient","chillout","chill-out","lofi","lo-fi","beats","classical","classical-music","classicalmusic","orchestra","symphony","opera","choir","choral","chamber","baroque","romantic","contemporary","metal","heavy-metal","heavymetal","death-metal","black-metal","thrash","punk","punk-rock","punkrock","hardcore","emo","screamo","post-punk","indie","indie-rock","indierock","indie-pop","indiepop","alternative","grunge","shoegaze","dream-pop","dreampop","noise","experimental","world-music","worldmusic","latin","salsa","merengue","bachata","cumbia","afrobeat","afro-beat","afropop","afro-pop","highlife","juju","mbalax","guitar","guitarist","bass","bassist","drums","drummer","percussion","keyboard","keyboardist","piano","pianist","synth","synthesizer","keys","violin","violinist","cello","cellist","viola","bass","doublebass","saxophone","sax","trumpet","trombone","clarinet","flute","oboe","horn","dj","deejay","turntable","turntables","mixing","mixer","scratching","producer","producers","production","beatmaker","beat-maker","beats","recording","studio","studios","mastering","mixing","mixing-board","spotify","apple-music","applemusic","tidal","deezer","soundcloud","bandcamp","youtube-music","youtubemusic","amazon-music","amazonmusic","vinyl","records","record","lp","ep","single","singles","discography","concert","concerts","gig","gigs","tour","touring","festival","festivals","coachella","glastonbury","lollapalooza","bonnaroo","burning-man","sxsw","grammy","grammys","brit-awards","vma","ama","billboard","rolling-stone","movies","movie","film","films","cinema","cinematic","theater","theatre","hollywood","bollywood","nollywood","tollywood","anime","animation","documentary","documentaries","doc","docs","docuseries","docu-series","tv","television","series","show","shows","episode","episodes","season","drama","dramas","comedy","comedies","romcom","rom-com","sitcom","sitcoms","action","adventure","thriller","thrillers","horror","scary","slasher","scifi","sci-fi","science-fiction","sciencefiction","fantasy","dystopia","superhero","superheroes","marvel","mcu","dc","dceu","batman","superman","spiderman","spider-man","avengers","xmen","x-men","fantastic-four","starwars","star-wars","startrek","star-trek","trekkie","trekkies","lotr","lord-of-the-rings","lordoftherings","hobbit","tolkien","middle-earth","harrypotter","harry-potter","hogwarts","wizarding","potterhead","gameofthrones","game-of-thrones","got","westeros","houseofdragon","stranger-things","strangerthings","breaking-bad","breakingbad","bettercallsaul","netflix","hulu","disney-plus","disneyplus","hbo","hbomax","max","amazon-prime","amazonprime","primevideo","prime-video","appletv","paramount-plus","paramountplus","peacock","criterion","mubi","shudder","director","directors","filmmaker","filmmakers","cinematographer","dop","actor","actors","actress","actresses","cast","casting","audition","screenwriter","screenwriting","script","scripts","screenplay","storyboard","oscar","oscars","academy-awards","academyawards","emmy","emmys","golden-globe","goldenglobes","bafta","cannes","sundance","tribeca","toronto","tiff","venice","berlinale","sxsw-film","telluride","gaming","gamer","gamers","games","game","videogames","video-games","pc-gaming","pcgaming","console","consoles","handheld","mobile-gaming","playstation","ps5","ps4","ps3","psn","xbox","xboxone","xbox-series","nintendo","switch","switch-2","wii","wiiu","gamecube","n64","snes","nes","steam","steamdeck","steam-deck","epic","epicgames","epic-games","gog","rpg","jrpg","mmorpg","mmo","fps","tps","rts","moba","battle-royale","sandbox","survival","roguelike","roguelite","metroidvania","souls-like","platformer","puzzle","adventure","simulation","sim","sims","strategy","minecraft","fortnite","valorant","csgo","cs2","counterstrike","counter-strike","league","leagueoflegends","league-of-legends","lol","dota","dota2","overwatch","ow2","apex","apexlegends","apex-legends","warzone","callofduty","gta","grandtheftauto","grand-theft-auto","gta6","gta5","rockstar","eldenring","elden-ring","darksouls","dark-souls","bloodborne","sekiro","zelda","totk","botw","tears-of-the-kingdom","breath-of-the-wild","link","mario","supermario","super-mario","mariokart","mario-kart","smashbros","pokemon","pokemongo","pokemon-go","pikachu","scarlet","violet","finalfantasy","final-fantasy","ff16","ff14","ffxiv","squareenix","destiny","destiny2","bungie","halo","haloinfinite","343industries","diablo","diablo4","worldofwarcraft","world-of-warcraft","wow","blizzard","starcraft","hearthstone","overwatch","battlenet","battle-net","assassinscreed","assassins-creed","farcry","far-cry","watchdogs","ubisoft","cyberpunk","cyberpunk2077","witcher","witcher3","cdprojekt","cdpr","baldursgate","baldurs-gate","bg3","larian","divinity","dos2","esports","e-sports","competitive","tournament","tournaments","lan","twitch","streamer","streamers","streaming","youtube-gaming","kick","speedrun","speedrunner","speedrunning","gdq","agdq","sgdq","food","foods","foodie","foodies","cooking","cook","cooks","chef","chefs","recipe","recipes","kitchen","kitchens","culinary","gastronomy","gourmet","restaurant","restaurants","dining","dine","eat","eating","meal","meals","breakfast","brunch","lunch","dinner","supper","snack","snacks","dessert","appetizer","appetizers","entree","entrees","side","sides","course","pizza","pizzas","burger","burgers","sandwich","sandwiches","wrap","wraps","taco","tacos","burrito","burritos","quesadilla","nachos","enchilada","sushi","sashimi","ramen","udon","soba","tempura","teriyaki","bento","pasta","spaghetti","lasagna","ravioli","gnocchi","risotto","italian","steak","steaks","bbq","barbeque","barbecue","grill","grilling","smoker","chicken","beef","pork","lamb","fish","seafood","shrimp","lobster","crab","vegetarian","vegan","plantbased","plant-based","meatless","tofu","tempeh","salad","salads","soup","soups","stew","stews","chili","curry","curries","bread","breads","baking","baker","bakery","pastry","pastries","cake","cookies","brownies","pie","pies","tart","tarts","donut","donuts","coffee","espresso","latte","cappuccino","mocha","americano","coldbrew","tea","teas","greentea","green-tea","blacktea","black-tea","herbal","chai","beer","beers","craft-beer","craftbeer","ipa","lager","stout","ale","brew","wine","wines","redwine","red-wine","whitewine","white-wine","rose","sparkling","cocktail","cocktails","mixology","bartender","bartending","spirits","whiskey","whisky","bourbon","scotch","vodka","gin","rum","tequila","fashion","style","styling","stylist","stylish","trendy","trend","trends","clothing","clothes","outfit","outfits","ootd","lookbook","wardrobe","dress","dresses","shirt","shirts","pants","jeans","shorts","skirt","jacket","jackets","coat","coats","sweater","hoodie","hoodies","blazer","shoes","sneakers","boots","heels","sandals","loafers","footwear","accessories","accessory","jewelry","jewellery","watch","watches","bag","bags","handbag","purse","wallet","sunglasses","hat","hats","scarf","designer","designers","luxury","luxe","haute-couture","hautecouture","runway","catwalk","model","models","modeling","modelling","supermodel","vogue","elle","harpers-bazaar","gq","esquire","cosmopolitan","instyle","beauty","beautiful","gorgeous","stunning","glam","glamour","glamorous","makeup","make-up","cosmetics","lipstick","mascara","eyeliner","eyeshadow","foundation","concealer","blush","bronzer","highlighter","contour","skincare","skin-care","skincareroutine","cleanser","moisturizer","serum","sunscreen","spf","anti-aging","antiaging","wrinkles","acne","pores","hair","haircare","hair-care","hairstyle","hairstyles","haircut","haircolor","blonde","brunette","redhead","highlights","balayage","ombre","extensions","nails","manicure","pedicure","nailart","nail-art","gelnails","acrylics","fragrance","perfume","cologne","scent","scents","aromatherapy","essentials","travel","traveling","travelling","traveler","traveller","travelers","trip","trips","vacation","vacations","holiday","holidays","getaway","adventure","adventures","explore","exploring","explorer","wanderlust","backpacking","backpacker","backpackers","hostel","hostels","hotel","hotels","airbnb","vrbo","booking","expedia","tripadvisor","kayak","skyscanner","flight","flights","airline","airlines","airport","airports","terminal","cruise","cruises","cruising","sailing","yacht","charter","island-hopping","roadtrip","road-trip","roadtrips","driving","scenic","route","routes","hiking","hike","hikes","trail","trails","trek","trekking","camping","beach","beaches","coastal","seaside","oceanfront","beachfront","shore","mountain","mountains","alpine","summit","peak","valley","canyon","gorge","city","cities","urban","metropolitan","downtown","cityscape","skyline","village","villages","town","towns","countryside","rural","scenic","landmark","landmarks","monument","monuments","heritage","unesco","historic","paris","london","newyork","new-york","tokyo","rome","barcelona","amsterdam","berlin","vienna","prague","budapest","lisbon","madrid","athens","istanbul","dubai","singapore","hongkong","hong-kong","bangkok","seoul","taipei","sydney","melbourne","auckland","capetown","cape-town","cairo","marrakech","nairobi","rio","buenosaires","buenos-aires","mexicocity","mexico-city","lima","bogota","sanfrancisco","san-francisco","losangeles","los-angeles","chicago","miami","lasvegas","las-vegas","seattle","boston","austin","denver","portland","vancouver","toronto","montreal","calgary","ottawa","quebec","edmonton","family","families","familytime","family-time","familyfirst","famfam","parents","parenting","parent","parenthood","parentlife","parent-life","mom","moms","momlife","mom-life","mommy","mother","mothers","motherhood","dad","dads","dadlife","dad-life","daddy","father","fathers","fatherhood","kids","kid","children","child","childhood","kidlife","kid-life","toddler","baby","babies","newborn","infant","pregnancy","pregnant","expecting","grandparents","grandma","grandpa","grandmother","grandfather","nana","papa","siblings","sibling","brother","brothers","sister","sisters","twins","friends","friend","friendship","friendships","bestfriend","best-friend","bff","besties","bestie","squad","squadgoals","squad-goals","crew","gang","dating","date","dates","relationship","relationships","couple","couples","boyfriend","girlfriend","partner","partners","significant-other","so","engaged","engagement","fiance","fiancee","wedding","weddings","bride","groom","married","marriage","spouse","husband","wife","newlyweds","anniversary","anniversaries","love","loving","romance","romantic","single","singles","singlelife","single-life","bachelor","bachelorette","divorce","divorced","separated","coparenting","co-parenting","stepparent","blended","blendedfamily","blended-family","adoption","adopted","foster","lgbtq","lgbt","lgbtqia","queer","pride","pridemonth","pride-month","gay","gays","lesbian","lesbians","bisexual","bi","pansexual","pan","transgender","trans","nonbinary","non-binary","nb","genderfluid","genderqueer","asexual","ace","aromantic","aro","demisexual","demi","intersex","ally","coming-out","comingout","outandproud","out-and-proud","loveislove","love-is-love","feminist","feminism","feminists","womensrights","womens-rights","equality","civilrights","civil-rights","humanrights","human-rights","socialjustice","blm","blacklivesmatter","black-lives-matter","antiracism","anti-racism","indigenous","native","firstnations","first-nations","aboriginal","tribal","disability","disabled","accessibility","a11y","inclusion","inclusive","neurodivergent","adhd","autism","autistic","dyslexia","dyslexic","mental-health","mentalhealth","anxiety","depression","bipolar","ptsd","ocd","therapy","selfcare","self-care","wellness","wellbeing","well-being","mindfulness","meditation","meditate","mindful","zen","calm","peace","peaceful","serenity","recovery","sober","sobriety","clean","aa","na","12steps","12-steps","support","supportgroup","support-group","community","communities","tribe","religion","religious","faith","faithful","belief","believe","believer","spiritual","spirituality","spirit","spirits","soul","souls","divine","christian","christianity","christians","church","churches","jesus","christ","catholic","catholicism","catholics","protestant","evangelical","baptist","methodist","lutheran","presbyterian","orthodox","episcopal","anglican","mormon","lds","latterday","latter-day","jehovah","adventist","pentecostal","jewish","judaism","jews","hebrew","israel","israeli","kosher","sabbath","torah","talmud","synagogue","temple","rabbi","hanukkah","passover","yom-kippur","muslim","islam","islamic","muslims","quran","koran","allah","muhammad","mosque","masjid","imam","halal","ramadan","eid","hajj","mecca","medina","hindu","hinduism","hindus","vedic","yoga","karma","dharma","mantra","temple","temples","krishna","shiva","vishnu","ganesh","diwali","holi","buddhist","buddhism","buddhists","buddha","zen","tibetan","dalai-lama","meditation","enlightenment","nirvana","sangha","dharma","sutra","sikh","sikhism","sikhs","guru","gurus","gurdwara","punjabi","pagan","paganism","wicca","wiccan","witchcraft","witch","witches","atheist","atheism","agnostic","agnosticism","secular","humanist","humanism","prayer","prayers","praying","worship","worshipping","praise","praising","blessing","blessings","blessed","miracle","miracles","grace","salvation","heaven","hell","afterlife","eternal","eternity","resurrection","redemption","work","working","worker","workers","workplace","worklife","work-life","job","jobs","career","careers","profession","professional","professionals","office","offices","corporate","corporation","company","companies","business","startup","startups","entrepreneur","entrepreneurs","entrepreneurship","founder","ceo","cto","cfo","coo","cmo","ciso","vp","director","manager","lead","employee","employees","employer","employers","hr","humanresources","human-resources","hiring","hire","recruit","recruiting","recruitment","talent","headhunter","interview","interviews","interviewing","resume","cv","linkedin","networking","salary","salaries","compensation","benefits","perks","bonus","bonuses","promotion","promoted","raise","negotiation","negotiate","contract","contracts","remote","remotework","remote-work","wfh","workfromhome","work-from-home","hybrid","flexible","flexibility","freelance","freelancer","freelancing","gig","gigeconomy","gig-economy","sideproject","side-project","sidehustle","meeting","meetings","presentation","presentations","conference","conferences","project","projects","deadline","deadlines","milestone","milestones","deliverable","team","teams","teamwork","collaboration","collaborate","agile","scrum","kanban","leadership","leader","leaders","management","manage","managing","productivity","efficiency","efficient","effective","performance","kpi","okr","metrics","burnout","stress","stressed","workload","overtime","quit","quitting","resign","retirement","retired","retiring","pension","401k","ira","savings","invest","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","42","50","60","69","70","80","88","90","99","100","101","111","123","200","222","247","300","333","365","400","404","420","444","500","555","666","700","777","800","888","900","911","999","1000","1111","1234","2000","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2050","3000","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ch1","ch2","ch3","ch4","ch5","ch6","ch7","ch8","ch9","ch10","ch11","ch12","ch13","ch14","ch15","ch16","ch17","ch18","ch19","ch20","channel1","channel2","channel3","channel4","channel5","channel6","channel7","channel8","channel9","channel10","channel11","channel12","channel13","room1","room2","room3","room4","room5","room6","room7","room8","room9","room10","group1","group2","group3","group4","group5","group6","group7","group8","group9","group10","team1","team2","team3","team4","team5","team6","team7","team8","team9","team10","zone1","zone2","zone3","zone4","zone5","zone6","zone7","zone8","zone9","zone10","area1","area2","area3","area4","area5","area6","area7","area8","area9","area10","sector1","sector2","sector3","sector4","sector5","sector6","sector7","sector8","net1","net2","net3","net4","net5","net6","net7","net8","net9","net10","link1","link2","link3","link4","link5","link6","link7","link8","link9","link10","node1","node2","node3","node4","node5","node6","node7","node8","node9","node10","hub1","hub2","hub3","hub4","hub5","hub6","hub7","hub8","hub9","hub10","mesh1","mesh2","mesh3","mesh4","mesh5","mesh6","mesh7","mesh8","mesh9","mesh10","radio1","radio2","radio3","radio4","radio5","radio6","radio7","radio8","radio9","relay1","relay2","relay3","relay4","relay5","relay6","relay7","relay8","relay9","base1","base2","base3","base4","base5","base6","base7","base8","base9","base10","unit1","unit2","unit3","unit4","unit5","unit6","unit7","unit8","unit9","unit10","server1","server2","server3","server4","server5","server6","server7","server8","dev1","dev2","dev3","dev4","dev5","prod1","prod2","prod3","stage1","stage2","test1","test2","test3","test4","test5","test6","test7","test8","test9","test10","user1","user2","user3","user4","user5","admin1","admin2","admin3","ops1","ops2","alpha","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliet","kilo","lima","mike","november","oscar","papa","quebec","romeo","sierra","tango","uniform","victor","whiskey","xray","x-ray","yankee","zulu","alpha1","bravo1","charlie1","delta1","echo1","foxtrot1","alpha-team","bravo-team","charlie-team","delta-team","echo-team","team-alpha","team-bravo","team-charlie","team-delta","team-echo","red","blue","green","yellow","orange","purple","pink","black","white","gray","grey","brown","gold","silver","bronze","copper","platinum","cyan","magenta","teal","navy","maroon","olive","lime","aqua","coral","crimson","indigo","violet","turquoise","beige","ivory","tan","khaki","red-team","blue-team","green-team","yellow-team","orange-team","purple-team","team-red","team-blue","team-green","team-yellow","team-orange","team-purple","rednet","bluenet","greennet","blacknet","whitenet","darknet","clearnet","monday","tuesday","wednesday","thursday","friday","saturday","sunday","mon","tue","wed","thu","fri","sat","sun","weekday","weekend","january","february","march","april","may","june","july","august","september","october","november","december","jan","feb","mar","apr","jun","jul","aug","sep","oct","nov","dec","spring","summer","fall","autumn","winter","season","seasons","seasonal","morning","afternoon","evening","night","midnight","noon","dawn","dusk","daily","weekly","monthly","yearly","annual","quarterly","hourly","today","tomorrow","yesterday","now","later","soon","always","never","24-7","247","round-the-clock","nonstop","non-stop","always-on","alwayson","north","south","east","west","northeast","northwest","southeast","southwest","northern","southern","eastern","western","central","middle","center","up","down","left","right","top","bottom","front","back","side","upper","lower","inner","outer","inside","outside","above","below","near","far","close","distant","local","remote","nearby","faraway","here","there","everywhere","anywhere","somewhere","nowhere","wherever","mini","micro","nano","tiny","small","little","medium","large","big","huge","giant","massive","mega","giga","tera","peta","exa","ultra","super","hyper","extreme","max","maximum","min","minimum","plus","extra","lite","light","heavy","full","empty","half","partial","complete","total","all-chat","allchat","main-chat","mainchat","public-chat","publicchat","general-chat","generalchat","global-chat","globalchat","world-chat","worldchat","local-chat","localchat","open-chat","openchat","free-chat","freechat","random-chat","randomchat","voice-chat","voicechat","text-chat","textchat","all-net","allnet","main-net","mainnet","test-net","testnet","dev-net","devnet","local-net","localnet","global-net","globalnet","public-net","publicnet","mesh-net","meshnet","radio-net","radionet","ham-net","hamnet","emerg-net","emergnet","all-hands","allhands","town-hall","townhall","standby","stand-by","on-call","oncall","help-desk","helpdesk","support","tech-support","techsupport","customer-support","feedback","suggestions","ideas","feature-requests","featurerequests","bug-reports","watercooler","water-cooler","coffee-break","coffeebreak","break-room","breakroom","off-topic","offtopic","random","misc","miscellaneous","other","everything-else","introductions","intro","intros","welcome","new-members","newmembers","onboarding","announcements","announce","news","updates","changelog","releases","roadmap","rules","guidelines","faq","faqs","help","how-to","howto","tutorial","tutorials","resources","links","useful-links","usefullinks","bookmarks","reference","docs","showcase","show-and-tell","showandtell","gallery","portfolio","projects","builds","jobs","hiring","careers","opportunities","gigs","freelance","classifieds","buy-sell","buysell","marketplace","trade","trading","swap","swaps","deals","events","meetups","meetup","gatherings","conferences","workshops","webinars","study-group","studygroup","book-club","bookclub","movie-night","movienight","game-night","gamenight","trivia","quiz","contests","challenges","competitions","reddit","twitter","x","facebook","fb","instagram","ig","insta","tiktok","youtube","yt","pinterest","snapchat","snap","linkedin","tumblr","threads","mastodon","fediverse","bluesky","bsky","discord","slack","telegram","signal","whatsapp","messenger","wechat","line","kakao","viber","matrix","element","clubhouse","spaces","periscope","vine","myspace","digg","stumbleupon","quora","medium","substack","patreon","onlyfans","fanhouse","gumroad","behance","dribbble","deviantart","artstation","pixiv","flickr","500px","meme","memes","dank","dankmemes","dank-memes","cursed","blessed","blursed","cringe","based","redpill","redpilled","blackpill","copium","hopium","cope","poggers","pog","pogchamp","pepe","wojak","gigachad","chad","virgin","simp","simping","stan","stanning","parasocial","irl","afk","brb","ttyl","fomo","yolo","goat","goated","lit","fire","slay","slaying","periodt","sus","sussy","imposter","amogus","amongus","among-us","crewmate","ratio","ratiod","L","W","big-L","big-W","touch-grass","touchgrass","npc","npcs","normie","normies","sheeple","boomer","zoomer","doomer","coomer","consoomer","wagie","neet","incel","volcel","blackpilled","glowie","janny","jannie","based-and-redpilled","keyed","kino","sovl","tfw","mfw","mrw","imo","imho","afaik","eli5","tldr","tl-dr","reddit-moment","leddit","hivemind","groupthink","echo-chamber","circlejerk","wholesome","wholesome100","chungus","big-chungus","keanu","reeves","stonks","not-stonks","diamond-hands","diamondhands","paper-hands","hodl","to-the-moon","tothemoon","moon","mooning","ape","apes","ape-together","tendies","gme","gamestop","wallstreetbets","wsb","yeet","yeeted","yoink","noob","newb","newbie","scrub","pwned","owned","rekt","wrecked","gg","ggwp","ggez","ez","ezpz","no-cap","nocap","cap","capping","fr","frfr","bussin","valid","bet","no-shot","sheesh","sheeesh","ong","ongggg","mid","L-take","W-take","hot-take","cold-take","spicy","spicy-take","rent-free","rentfree","living-rent-free","unhinged","brainrot","brain-rot","vtuber","vtubers","vtubing","hololive","nijisanji","vshoujo","idol","content","content-creator","contentcreator","creator","creators","influencer","influencers","viral","viralvideo","viral-video","trending","fyp","foryou","for-you","foryoupage","algorithm","algo","engagement","analytics","metrics","subscriber","subscribers","subs","sub","follower","followers","following","like","likes","share","shares","repost","reposts","retweet","rt","quote","comment","comments","reply","replies","dm","dms","direct-message","inbox","notification","notifications","notif","notifs","ping","pings","mention","highlight","highlights","clip","clips","vod","vods","archive","archives","premiere","premieres","watchparty","watch-party","reaction","reactions","react","reacting","review","reviews","tier-list","tierlist","ranking","collab","collabs","collaboration","crossover","feature","featured","guest","host","hosting","cohost","co-host","panel","panels","podcast","podcasts","episode","ep","eps","season","seasons","series","miniseries","mini-series","subreddit","subreddits","sub","subs","thread","threads","post","posts","forum","forums","board","boards","chan","chans","4chan","8chan","8kun","imageboard","textboard","bbs","bulletin-board","usenet","newsgroup","irc","ircnet","efnet","freenode","libera","oftc","rizon","undernet","xmpp","jabber","mumble","teamspeak","ts3","ventrilo","vent","raidcall","wiki","wikipedia","wikia","fandom","tvtropes","knowyourmeme","kym","encyclopediadramatica","ed","urban-dictionary","urbandictionary","ud","google","alphabet","apple","microsoft","msft","amazon","meta","facebook","nvidia","nvda","amd","intel","qualcomm","broadcom","samsung","tsmc","oracle","sap","salesforce","adobe","autodesk","vmware","dell","hp","hpe","ibm","cisco","juniper","arista","palo-alto","fortinet","crowdstrike","palantir","snowflake","databricks","mongodb","elastic","splunk","datadog","zoom","webex","teams","meet","slack","atlassian","jira","confluence","notion","airtable","coda","asana","monday","clickup","trello","basecamp","figma","sketch","invision","zeplin","framer","webflow","squarespace","wix","shopify","bigcommerce","magento","woocommerce","stripe","paypal","square","plaid","brex","ramp","affirm","klarna","afterpay","coinbase","binance","robinhood","fidelity","vanguard","schwab","etrade","interactive-brokers","uber","lyft","doordash","grubhub","instacart","postmates","deliveroo","airbnb","vrbo","booking","expedia","kayak","tripadvisor","yelp","spotify","apple-music","pandora","soundcloud","bandcamp","tidal","deezer","dropbox","box","onedrive","gdrive","google-drive","icloud","mega","nintendo","sony","playstation","xbox","microsoft-gaming","activision","blizzard","activision-blizzard","ea","electronic-arts","ubisoft","epic","valve","steam","rockstar","take-two","2k","bethesda","zenimax","id-software","bioware","dice","respawn","bungie","343","naughtydog","insomniac","santa-monica","guerrilla","sucker-punch","bend","bluepoint","housemarque","fromsoftware","from-software","bandainamco","bandai-namco","capcom","konami","sega","atlus","squareenix","square-enix","enix","square","level5","gamefreak","game-freak","creatures","pokemon-company","mihoyo","hoyoverse","riot","riot-games","tencent","netease","nexon","ncsoft","krafton","pubg","supercell","king","rovio","zynga","playtika","scopely","jam-city","paradox","firaxis","amplitude","creative-assembly","relic","obsidian","larian","cd-projekt","cdpr","techland","4a-games","remedy","io-interactive","disney","pixar","marvel","lucasfilm","warner","warnerbros","warner-bros","universal","paramount","sony-pictures","lionsgate","mgm","dreamworks","illumination","laika","ghibli","studio-ghibli","toei","sunrise","bones","madhouse","mappa","wit","trigger","kyoani","kyoto-animation","ufotable","a1-pictures","cloverworks","shaft","gainax","khara","production-ig","ig","netflix","hulu","hbo","max","disney-plus","prime-video","peacock","paramount-plus","apple-tv","crunchyroll","funimation","hidive","vrv","cbs","nbc","abc","fox","cw","amc","fx","showtime","starz","epix","bbc","itv","channel4","sky","britbox","hayu","acorn","curiositystream","discovery","discovery-plus","history","natgeo","nat-geo","animal-planet","tesla","rivian","lucid","nio","xpeng","byd","polestar","fisker","ford","gm","general-motors","chevy","chevrolet","dodge","ram","jeep","chrysler","toyota","honda","nissan","mazda","subaru","mitsubishi","hyundai","kia","genesis","volkswagen","vw","audi","bmw","mercedes","porsche","lamborghini","ferrari","maserati","alfa-romeo","fiat","volvo","land-rover","range-rover","jaguar","bentley","rolls-royce","aston-martin","mclaren","bugatti","koenigsegg","pagani","rimac","lotus","alpine","medical","medicine","healthcare","health-care","hospital","hospitals","doctor","doctors","dr","physician","physicians","surgeon","surgeons","nurse","nurses","nursing","rn","lpn","cna","np","pa","physician-assistant","pharmacy","pharmacist","pharmacists","pharma","pharmaceutical","rx","dentist","dentists","dental","dentistry","orthodontist","orthodontics","optometrist","ophthalmologist","optometry","vision","eye-care","eyecare","therapist","therapists","therapy","counselor","counseling","psychologist","psychiatrist","psychiatry","psychology","mental-health","mentalhealth","physical-therapy","pt","occupational-therapy","ot","speech-therapy","slp","chiropractor","chiropractic","acupuncture","acupuncturist","naturopath","emt","paramedic","paramedics","ems","emergency","er","icu","nicu","radiology","radiologist","xray","mri","ct","ultrasound","imaging","pathology","pathologist","lab","laboratory","diagnostics","testing","oncology","oncologist","cancer","tumor","chemotherapy","radiation","cardiology","cardiologist","heart","cardiac","cardiovascular","cv","neurology","neurologist","neuro","brain","spine","neurosurgery","pediatrics","pediatrician","peds","children","child-health","childhealth","geriatrics","geriatrician","elderly","senior-care","seniorcare","aging","dermatology","dermatologist","derm","skin","skincare","skin-care","orthopedics","orthopedic","ortho","bone","joint","sports-medicine","gastroenterology","gastro","gi","digestive","gut","intestinal","endocrinology","endocrine","diabetes","thyroid","hormone","hormones","pulmonology","pulmonologist","respiratory","lung","lungs","breathing","nephrology","nephrologist","kidney","kidneys","renal","dialysis","urology","urologist","bladder","prostate","urinary","reproductive","obgyn","ob-gyn","obstetrics","gynecology","obstetrician","gynecologist","fertility","ivf","reproductive-health","reproductivehealth","prenatal","legal","lawyer","lawyers","attorney","attorneys","law","laws","lawfirm","paralegal","paralegals","legal-assistant","legalassistant","clerk","clerks","judge","judges","court","courts","courthouse","trial","trials","jury","litigation","litigator","litigators","lawsuit","lawsuits","case","cases","criminal","criminal-law","defense","defender","prosecution","prosecutor","civil","civil-law","tort","torts","injury","personal-injury","malpractice","corporate-law","corporatelaw","business-law","commercial","contracts","intellectual-property","ip","patent","patents","trademark","copyright","family-law","familylaw","divorce","custody","child-support","alimony","immigration","immigration-law","visa","visas","citizenship","naturalization","real-estate-law","property-law","estate","estates","probate","trusts","tax-law","taxlaw","irs","tax-attorney","taxattorney","audit","audits","employment-law","labor-law","hr-law","discrimination","harassment","constitutional","constitutional-law","civil-rights","human-rights","environmental-law","epa","regulation","regulations","compliance","bankruptcy","restructuring","insolvency","creditor","debtor","debt","education","educator","educators","teach","teaching","teacher","teachers","professor","professors","prof","profs","faculty","academic","academics","student","students","pupil","pupils","learner","learners","learning","school","schools","elementary","primary","middle-school","middleschool","high-school","highschool","secondary","k12","k-12","grade","grades","college","colleges","university","universities","uni","campus","campuses","undergraduate","undergrad","graduate","grad","postgrad","phd","doctorate","masters","bachelors","associates","degree","degrees","diploma","diplomas","curriculum","syllabus","course","courses","class","classes","lecture","seminar","seminars","workshop","workshops","lab","labs","laboratory","tutor","tutors","tutoring","mentor","mentors","mentoring","mentorship","homeschool","homeschooling","unschool","unschooling","montessori","waldorf","stem","steam","science","math","mathematics","calculus","algebra","english","literature","writing","grammar","composition","rhetoric","history","geography","social-studies","socialstudies","civics","economics","art","arts","music","drama","theater","theatre","dance","visual-arts","physical-education","pe","gym","athletics","sports","health","wellness","construction","contractor","contractors","builder","builders","building","carpenter","carpenters","carpentry","woodwork","woodworking","woodworker","electrician","electricians","electrical","electric","wiring","power","plumber","plumbers","plumbing","pipes","piping","drainage","sewage","hvac","heating","cooling","ac","air-conditioning","ventilation","duct","roofer","roofers","roofing","roof","roofs","shingles","gutters","mason","masons","masonry","brick","bricks","stone","concrete","cement","painter","painters","painting","paint","wallpaper","drywall","finishing","welder","welders","welding","fabrication","fabricator","metalwork","machinist","machinists","machining","lathe","mill","milling","turning","mechanic","mechanics","mechanical","automotive","auto","car-repair","landscaper","landscapers","landscaping","lawn","garden","gardening","surveyor","surveyors","surveying","survey","land","property","boundary","architect","architects","architecture","architectural","design","drafting","engineer","engineers","engineering","structural","civil-engineering","inspector","inspectors","inspection","code","codes","permit","permits","firefighter","firefighters","fire","fire-department","firedepartment","fd","police","police-officer","policeofficer","cop","cops","officer","officers","sheriff","sheriffs","deputy","deputies","detective","detectives","state-trooper","trooper","troopers","highway-patrol","patrol","patrolling","swat","tactical","k9","k-9","canine","bomb-squad","bombsquad","hostage","emt","emts","paramedic","paramedics","ambulance","ems","first-responder","dispatcher","dispatchers","dispatch","911","emergency","emergencies","search-rescue","sar","rescue","rescuer","rescuers","coast-guard","lifeguard","hazmat","hazardous","decon","decontamination","chemical","biological","military","armed-forces","armedforces","defense","defence","dod","mod","army","soldier","soldiers","infantry","armor","artillery","cavalry","navy","sailor","sailors","naval","fleet","submarine","surface","carrier","airforce","air-force","pilot","pilots","aviator","aviation","fighter","marines","marine","marinecorps","marine-corps","leatherneck","oorah","coastguard","coast-guard","uscg","maritime","port","harbor","border","spaceforce","space-force","ussf","space","satellite","orbital","launch","national-guard","nationalguard","guard","reserve","reserves","reservist","veteran","veterans","vet","vets","retired","retiree","retirees","officer","officers","enlisted","nco","warrant","general","admiral","special-ops","specialops","specops","sof","delta","seals","rangers","green-berets","greenberets","airborne","paratrooper","paratroopers","outdoor","outdoors","outside","nature","wilderness","wild","backcountry","hiking","hiker","hikers","backpacking","backpacker","thru-hike","thruhike","camping","camper","campers","campsite","tent","tenting","glamping","rv","rving","campervan","vanlife","van-life","overlanding","overland","fishing","fisher","fishers","angler","anglers","angling","fly-fishing","hunting","hunter","hunters","hunt","game","wildlife","deer","elk","duck","birding","birdwatching","bird-watching","birder","birders","ornithology","foraging","forager","foragers","mushroom","mushrooms","fungi","mycology","kayaking","kayak","kayaker","kayakers","canoeing","canoe","paddling","rafting","raft","rafts","whitewater","white-water","rapids","river","scuba","diving","diver","divers","snorkeling","snorkel","freediving","sailing","sailor","sailors","sail","sailboat","yacht","yachting","rock-climbing","rockclimbing","bouldering","climber","climbers","crag","mountaineering","mountaineer","alpinism","alpine","summit","peak-bagging","caving","caver","cavers","spelunking","spelunker","cave","caves","offroad","off-road","atv","utv","sxs","dirtbike","dirt-bike","quad","photography","photographer","photographers","photo","photos","camera","videography","videographer","video","videos","filming","filmmaking","painting","painter","painters","canvas","acrylic","oil","watercolor","drawing","drawer","drawers","sketch","sketching","pencil","charcoal","sculpting","sculptor","sculptors","sculpture","clay","pottery","ceramics","knitting","knitter","knitters","knit","yarn","wool","needles","pattern","crocheting","crochet","crocheter","hook","hooks","amigurumi","blanket","sewing","sewer","sewers","seamstress","tailor","fabric","quilting","embroidery","embroiderer","cross-stitch","crossstitch","needlepoint","woodworking","woodworker","woodworkers","carpentry","furniture","lathe","metalworking","metalworker","blacksmith","blacksmithing","forge","forging","leatherworking","leatherwork","leather","leathercraft","tanning","tooling","jewelry-making","jewelrymaking","jeweler","beading","beads","wirework","origami","paper-craft","papercraft","scrapbooking","scrapbook","cardmaking","calligraphy","calligrapher","lettering","hand-lettering","handlettering","candle-making","candlemaking","soap-making","soapmaking","bath-bombs","collecting","collector","collectors","collection","collections","collectible","stamps","stamp","philately","philatelist","postage","postal","letters","coins","coin","numismatics","numismatist","currency","bullion","precious","cards","card","trading-cards","tradingcards","tcg","ccg","mtg","pokemon-tcg","comics","comic","comic-books","comicbooks","graphic-novels","graphicnovels","manga","manhwa","manhua","webtoon","webtoons","light-novel","lightnovel","figurines","figure","figures","statue","statues","action-figures","toys","funko","funko-pop","funkopop","pop","pops","nendoroid","figma","sh-figuarts","model-kits","modelkits","gunpla","gundam","plamo","scale-models","miniatures","lego","legos","bricks","moc","mocs","afol","tfol","kfol","megabloks","antiques","antique","vintage","retro","thrift","thrifting","estate-sale","vinyl","records","record","lp","lps","turntable","audiophile","hifi","watches","watch","horology","horologist","timepiece","wristwatch","pocket","boardgame","boardgames","board-games","board-game","tabletop","table-top","cardgame","cardgames","card-games","card-game","deckbuilder","deck-builder","rpg","rpgs","tabletop-rpg","ttrpg","pen-and-paper","roleplay","roleplaying","dnd","d-and-d","dungeons-and-dragons","dungeonsanddragons","dungeon","dragon","pathfinder","starfinder","call-of-cthulhu","coc","shadowrun","cyberpunk-red","warhammer","warhammer40k","40k","age-of-sigmar","aos","sigmar","gw","warmachine","hordes","infinity","malifaux","necromunda","kill-team","killteam","miniature","miniatures","minis","mini","wargaming","wargames","wargamer","painting-minis","paintingminis","mini-painting","minipainting","terrain","chess","checkers","go","baduk","weiqi","shogi","mahjong","mah-jong","poker","blackjack","bridge","canasta","rummy","hearts","spades","solitaire","catan","settlers","ticket-to-ride","tickettoride","pandemic","wingspan","gloomhaven","spirit-island","spiritisland","terraforming-mars","scythe","pets","pet","petcare","pet-care","petowner","pet-owner","petparents","dogs","dog","puppy","puppies","pupper","doggo","doggos","canine","k9","cats","cat","kitten","kittens","kitty","kitties","feline","meow","birds","bird","parrot","parrots","parakeet","budgie","cockatiel","finch","fish","aquarium","aquariums","fishtank","fish-tank","freshwater","saltwater","reef","reeftank","reef-tank","coral","corals","marine","aquascape","reptiles","reptile","snake","snakes","lizard","lizards","gecko","bearded","turtle","turtles","tortoise","tortoises","terrapin","amphibian","frog","rabbit","rabbits","bunny","bunnies","hare","lagomorph","binky","binkies","hamster","hamsters","gerbil","gerbils","mouse","mice","rat","rats","guinea-pig","guineapig","guinea","cavy","cavies","chinchilla","ferret","horse","horses","equine","equestrian","pony","ponies","riding","stable","farm","farming","farmlife","farm-life","livestock","chicken","chickens","goat","goats","sheep","lamb","lambs","pig","pigs","cow","cows","cattle","english","spanish","espanol","french","francais","german","deutsch","italian","italiano","portuguese","portugues","russian","russkiy","japanese","nihongo","chinese","mandarin","cantonese","zhongwen","korean","hangul","hangugeo","arabic","hindi","urdu","bengali","turkish","turkce","persian","farsi","dutch","nederlands","polish","swedish","svenska","norwegian","norsk","danish","dansk","finnish","greek","ellinika","hebrew","ivrit","vietnamese","tiengviet","thai","indonesian","bahasa","malay","tagalog","filipino","swahili","kiswahili","czech","cestina","hungarian","magyar","romanian","romana","ukrainian","usa","united-states","unitedstates","america","american","americans","canada","canadian","canadians","mexico","mexican","mexicans","brasil","brazil","brazilian","argentina","argentine","chile","chilean","peru","colombia","colombian","venezuela","venezuelan","ecuador","uruguay","uk","united-kingdom","unitedkingdom","britain","british","england","scotland","scottish","wales","welsh","ireland","irish","northern-ireland","france","french","germany","german","germans","italy","italian","italians","spain","spanish","portugal","portuguese","netherlands","dutch","belgium","switzerland","swiss","austria","austrian","poland","polish","czech","russia","russian","russians","ukraine","ukrainian","ukrainians","belarus","china","chinese","taiwan","taiwanese","hongkong","hong-kong","macau","japan","japanese","korea","korean","koreans","north-korea","south-korea","india","indian","indians","pakistan","pakistani","bangladesh","bangladeshi","australia","australian","australians","aussie","aussies","nz","newzealand","new-zealand","kiwi","kiwis","fiji","fijian","samoa","samoan","tonga","philippines","filipino","filipinos","pinoy","pinay","vietnam","vietnamese","thailand","thai","thais","indonesia","indonesian","malaysia","malaysian","singapore","singaporean","brunei","myanmar","burmese","cambodia","cambodian","laos","laotian","nepal","nepali","srilanka","sri-lanka","srilankan","egypt","egyptian","egyptians","morocco","moroccan","algeria","algerian","tunisia","tunisian","libya","libyan","sudan","sudanese","ethiopia","kenya","kenyan","kenyans","tanzania","tanzanian","uganda","ugandan","nigeria","nigerian","nigerians","ghana","ghanaian","senegal","senegalese","southafrica","south-africa","southafrican","south-african","namibia","botswana","zimbabwe","zambia","mozambique","angola","congo","congolese","israel","israeli","israelis","palestine","palestinian","palestinians","jordan","jordanian","lebanon","lebanese","syria","syrian","iraq","iraqi","iran","iranian","iranians","persian","persians","saudi","saudi-arabia","uae","emirates","emirati","dubai","abudhabi","abu-dhabi","qatar","qatari","kuwait","kuwaiti","bahrain","bahraini","oman","omani","yemen","yemeni","turkey","turkish","turks","greece","greek","greeks","cyprus","cypriot","scandinavia","scandinavian","nordic","norway","norwegian","sweden","swedish","denmark","danish","finland","finnish","finns","iceland","icelandic","baltics","baltic","estonia","estonian","latvia","latvian","lithuania","balkans","balkan","serbia","serbian","croatia","croatian","bosnia","slovenia","slovenian","macedonia","macedonian","albania","albanian","romania","romanian","bulgaria","bulgarian","hungary","hungarian","slovakia","slovak","slovakian","moldova","moldovan","georgia","georgian","armenia","armenian","azerbaijan","azerbaijani","kazakhstan","kazakh","uzbekistan","uzbek","turkmenistan","kyrgyzstan","tajikistan","mongolia","caribbean","jamaica","jamaican","bahamas","bahamian","barbados","trinidad","cuba","cuban","haiti","haitian","dominican","puerto-rico","puertorico","latin","latino","latina","latinx","hispanic","latinoamerica","latam","california","cali","ca","socal","norcal","bayarea","bay-area","la","texas","tx","houston","dallas","austin","sanantonio","san-antonio","florida","fl","miami","orlando","tampa","jacksonville","fortlauderdale","newyork","new-york","ny","nyc","brooklyn","manhattan","queens","bronx","pennsylvania","pa","philly","philadelphia","pittsburgh","harrisburg","illinois","il","chicago","chi","chiraq","chitown","springfield","ohio","oh","cleveland","columbus","cincinnati","toledo","akron","georgia","ga","atlanta","atl","savannah","augusta","macon","northcarolina","north-carolina","nc","charlotte","raleigh","durham","southcarolina","south-carolina","sc","charleston","columbia","greenville","michigan","mi","detroit","annarbor","ann-arbor","grandrapids","lansing","newjersey","new-jersey","nj","jersey","newark","trenton","atlantic-city","virginia","va","richmond","norfolk","vb","virginia-beach","alexandria","washington","wa","seattle","tacoma","spokane","olympia","bellevue","arizona","az","phoenix","phx","tucson","scottsdale","mesa","tempe","massachusetts","ma","boston","cambridge","worcester","springfield","tennessee","tn","nashville","memphis","knoxville","chattanooga","indiana","in","indianapolis","indy","fortwayne","fort-wayne","southbend","missouri","mo","stlouis","st-louis","kansascity","kansas-city","springfield","maryland","md","baltimore","bmore","annapolis","bethesda","rockville","wisconsin","wi","milwaukee","madison","greenbay","green-bay","kenosha","colorado","co","denver","boulder","coloradosprings","colorado-springs","minnesota","mn","minneapolis","stpaul","st-paul","twincities","twin-cities","alabama","al","birmingham","montgomery","mobile","huntsville","tuscaloosa","louisiana","la","neworleans","new-orleans","nola","batonrouge","baton-rouge","kentucky","ky","louisville","lexington","bowling-green","frankfort","oregon","or","portland","pdx","eugene","salem","bend","medford","oklahoma","ok","okc","oklahomacity","oklahoma-city","tulsa","norman","connecticut","ct","hartford","newhaven","new-haven","stamford","bridgeport","utah","ut","saltlakecity","salt-lake-city","slc","provo","ogden","iowa","ia","desmoines","des-moines","cedarrapids","cedar-rapids","davenport","nevada","nv","lasvegas","las-vegas","vegas","reno","henderson","sparks","arkansas","ar","littlerock","little-rock","fayetteville","fortsmith","mississippi","ms","jackson","gulfport","biloxi","hattiesburg","southaven","kansas","ks","wichita","overlandpark","overland-park","kansascity","topeka","newmexico","new-mexico","nm","albuquerque","santafe","santa-fe","lascruces","nebraska","ne","omaha","lincoln","bellevue","grandisland","grand-island","idaho","id","boise","meridian","nampa","idahofalls","idaho-falls","pocatello","westvirginia","west-virginia","wv","charleston","huntington","morgantown","hawaii","hi","honolulu","maui","oahu","kauai","bigisland","big-island","newhampshire","new-hampshire","nh","manchester","nashua","concord","portsmouth","maine","me","portland","lewiston","bangor","auburn","augusta","rhodeisland","rhode-island","ri","providence","warwick","cranston","newport","montana","mt","billings","missoula","greatfalls","great-falls","bozeman","delaware","de","wilmington","dover","newark","middletown","smyrna","southdakota","south-dakota","sd","siouxfalls","sioux-falls","rapidcity","northdakota","north-dakota","nd","fargo","bismarck","grandforks","grand-forks","alaska","ak","anchorage","fairbanks","juneau","sitka","ketchikan","vermont","vt","burlington","essex","rutland","colchester","bennington","wyoming","wy","cheyenne","casper","laramie","gillette","rocksprings","dc","washingtondc","washington-dc","dmv","nova","northern-virginia","puertorico","puerto-rico","pr","sanjuan","san-juan","bayamon","carolina","midwest","midwestern","northeast","northeastern","southeast","southeastern","southwest","southwestern","northwest","northwestern","pacificnorthwest","pnw","newengland","new-england","deepouth","deep-south","sunbelt","sun-belt","rustbelt","rust-belt","biblebelt","bible-belt","cornbelt","corn-belt",...If];async function Of(a){const e=function(a){let e=a.startsWith("#")?a.slice(1):a;return e=e.toLowerCase().replace(/[^a-z0-9-]/g,""),e=e.replace(/-+/g,"-"),e=e.replace(/^-+|-+$/g,""),e}(a);if(!e)throw new Error(`Invalid channel name: "${a}" filters to empty string`);const n=`#${e}`,t=(new TextEncoder).encode(n),o=(await kf(t)).slice(0,16),r=(await kf(o))[0],s=new Uint8Array(32);return s.set(o),{name:`#${e}`,channelHash:r,aesKey:o,hmacKey:s,autoDiscovered:!0}}let $f=null,Wf=null;const Uf=new Map;let Hf=null;const Yf="pymc_discovered_channels";function Gf(a){Uf.set(a.channelHash,a),a.autoDiscovered&&function(){try{const a=[];for(const e of Uf.values())e.autoDiscovered&&a.push({name:e.name,hash:e.channelHash});localStorage.setItem(Yf,JSON.stringify(a))}catch(a){}}()}async function Kf(){$f||(Wf||(Wf=(async()=>{await async function(){try{const a=localStorage.getItem(Yf);if(!a)return;const e=JSON.parse(a);for(const{name:n}of e)try{const a=await Of(n);Uf.set(a.channelHash,a)}catch{}e.length}catch(a){}}();const a=new Map;for(const e of Vf)try{const n=await Of(e),t=a.get(n.channelHash)||[];t.push(n),a.set(n.channelHash,t)}catch{}$f=a})()),await Wf)}async function Xf(a,e,n){const t=await async function(a,e){if(gf())try{const n=new ArrayBuffer(a.length);new Uint8Array(n).set(a);const t=new ArrayBuffer(e.length);new Uint8Array(t).set(e);const o=await crypto.subtle.importKey("raw",n,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),r=await crypto.subtle.sign("HMAC",o,t);return new Uint8Array(r)}catch{}return async function(a,e){const n=64;let t;a.length>n?(t=new Uint8Array(n),t.set(wf(a))):(t=new Uint8Array(n),t.set(a));const o=new Uint8Array(n),r=new Uint8Array(n);for(let c=0;c=2024&&n<=2030;if(!t)return{valid:!1,confidence:"low"};const o=a.slice(5);if(0===o.length)return{valid:!1,confidence:"low"};let r=0,s=!1;for(let l=0;l=32&&a<=126||0===a||10===a||13===a||9===a)&&r++,58===a&&(s=!0)}const i=r/o.length;return i>=.85&&s&&t?{valid:!0,confidence:"high"}:i>=.7&&t?{valid:!0,confidence:"medium"}:{valid:!1,confidence:"low"}}async function Zf(a,e,n){await Kf();const t=await async function(){return Hf||(Hf=await async function(a,e=!1){const n=df(a.secret),t=(await kf(n))[0],o=new Uint8Array(32);return o.set(n.slice(0,32)),{name:a.name,channelHash:t,aesKey:o.slice(0,16),hmacKey:o,autoDiscovered:e}}(_f)),Hf}();if(t.channelHash===a&&await Xf(t.hmacKey,e,n))return{channelName:"Public",plaintext:qf(t.aesKey,n),keys:t};const o=Uf.get(a);if(o&&await Xf(o.hmacKey,e,n)){const a=qf(o.aesKey,n);return{channelName:o.name,plaintext:a,keys:o}}const r=(null==$f?void 0:$f.get(a))||[],s=[];for(const l of r){if(await Xf(l.hmacKey,e,n)){Gf(l);const a=qf(l.aesKey,n);return{channelName:l.name,plaintext:a,keys:l}}s.push(l)}let i=null;for(const l of s)try{const a=qf(l.aesKey,n),e=Jf(a);if(e.valid){if("high"===e.confidence)return{channelName:l.name,plaintext:a,keys:l,macCorrupted:!0};"medium"!==e.confidence||i||(i={keys:l,plaintext:a,confidence:"medium"})}}catch{}return i?{channelName:i.keys.name,plaintext:i.plaintext,keys:i.keys,macCorrupted:!0}:null}async function Qf(a){return await Kf(),((null==$f?void 0:$f.get(a))||[]).map(a=>a.name)}async function ay(a,e,n,t){try{const o=await Of(a);if(o.channelHash!==e)return{success:!1,error:`Hash mismatch: "${a}" has hash 0x${o.channelHash.toString(16).toUpperCase().padStart(2,"0")}, packet has 0x${e.toString(16).toUpperCase().padStart(2,"0")}`};if(!(await Xf(o.hmacKey,n,t)))return{success:!1,error:"MAC verification failed - wrong channel name or corrupted data"};const r=qf(o.aesKey,t);return Gf(o),{success:!0,result:{channelName:o.name,plaintext:r,keys:o}}}catch(o){return{success:!1,error:`Error: ${o instanceof Error?o.message:String(o)}`}}}let ey=null,ny=[];function ty(a){return{decoded:a.success?{type:"grp_txt",channelHash:a.channelHash,channelName:a.channelName,text:a.text??"",decrypted:!0,senderName:a.senderName,timestamp:a.timestamp,flags:a.flags,macCorrupted:a.macCorrupted,isPublicHashChannel:!0}:null,timestamp:a.packetTimestamp,rssi:a.rssi,snr:a.snr}}const oy=w((a,e)=>{let n=!1;return{messages:new Map,stableMessages:new Map,lastSnapshotUpdate:0,processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1},initialDecodeComplete:!1,queueDecryption:async(t,o)=>{const{messages:r,processing:s}=e(),i=(null==o?void 0:o.quickMode)??!1;let l=t.filter(a=>(a.type??a.payload_type)===$b.GRP_TXT&&a.raw_packet&&!r.has(a.packet_hash)&&!s.has(a.packet_hash));if(0===l.length)return;if(i&&l.length>100&&(l=l.sort((a,e)=>(e.timestamp??0)-(a.timestamp??0)).slice(0,100)),n){const a=new Set(ny.map(a=>a.packet_hash)),e=l.filter(e=>!a.has(e.packet_hash));return void(e.length>0&&ny.push(...e))}n=!0;const c=new Set(l.map(a=>a.packet_hash));a(a=>({processing:new Set([...a.processing,...c]),progress:{total:l.length,processed:0,percent:0,isDecoding:!0}}));try{const{totalCount:n}=await vb.decrypt(l,{onProgress:(e,n)=>{a({progress:{total:n,processed:e,percent:Math.round(e/n*100),isDecoding:!0}})},onResults:n=>{const{messages:t}=e();for(const a of n)t.set(a.packetHash,ty(a));a({messages:t}),ey&&clearTimeout(ey),ey=setTimeout(()=>{a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now()})},500)}});ey&&(clearTimeout(ey),ey=null);const t=e().messages;if(t.size>5e4){const a=Array.from(t.entries()).sort((a,e)=>a[1].timestamp-e[1].timestamp).slice(0,t.size-5e4);for(const[e]of a)t.delete(e)}if(a({messages:t,stableMessages:new Map(t),lastSnapshotUpdate:Date.now(),processing:new Set,initialDecodeComplete:!0,progress:{total:n,processed:n,percent:100,isDecoding:!1}}),ny.length>0){const a=ny;ny=[],setTimeout(()=>{e().queueDecryption(a)},50)}}catch(d){a({processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1}})}finally{n=!1}},queueChannelDecryption:async(t,o)=>{const{messages:r,processing:s}=e(),i=await async function(a){const e=await async function(a){return Of(a.startsWith("#")?a.slice(1):a)}(a);return{name:e.name,channelHash:e.channelHash,aesKeyHex:uf(e.aesKey),hmacKeyHex:uf(e.hmacKey)}}(o),l=t.filter(a=>{if((a.type??a.payload_type)!==$b.GRP_TXT||!a.raw_packet)return!1;if(r.has(a.packet_hash)||s.has(a.packet_hash))return!1;const e=a.raw_packet;if(e.length<4)return!1;const n=3&parseInt(e.slice(0,2),16);let t=2;return 0!==n&&3!==n||(t=10),t+=2+2*parseInt(e.slice(t,t+2),16),parseInt(e.slice(t,t+2),16)===i.channelHash});if(0===l.length)return;if(n)return;n=!0;const c=new Set(l.map(a=>a.packet_hash));a(a=>({processing:new Set([...a.processing,...c]),progress:{total:l.length,processed:0,percent:0,isDecoding:!0}}));try{const{totalCount:n}=await vb.decrypt(l,{knownKey:i,onProgress:(e,n)=>{a({progress:{total:n,processed:e,percent:Math.round(e/n*100),isDecoding:!0}})},onResults:n=>{const{messages:t}=e();for(const a of n)t.set(a.packetHash,ty(a));a({messages:t}),ey&&clearTimeout(ey),ey=setTimeout(()=>{a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now()})},500)}});ey&&(clearTimeout(ey),ey=null),a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now(),processing:new Set,progress:{total:n,processed:n,percent:100,isDecoding:!1}})}catch(d){a({processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1}})}finally{n=!1}},getMessage:a=>e().messages.get(a),getSuccessfulMessages:()=>{var a;const{messages:n}=e(),t=[];for(const e of n.values())(null==(a=e.decoded)?void 0:a.decrypted)&&!e.decoded.macCorrupted&&t.push(e);return t.sort((a,e)=>a.timestamp-e.timestamp)},clear:()=>{ey&&(clearTimeout(ey),ey=null),a({messages:new Map,stableMessages:new Map,lastSnapshotUpdate:0,processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1},initialDecodeComplete:!1})}}});function ry(a){return oy(e=>e.messages.get(a))}function sy(){return oy(a=>a.progress)}function iy(){return oy(a=>a.initialDecodeComplete)}function ly(){return oy(a=>a.stableMessages)}function cy(){return oy(a=>a.stableMessages)}function dy(a){return a.startsWith("0x")||a.startsWith("0X")?a.slice(2,4).toUpperCase():a.slice(0,2).toUpperCase()}function uy(a,e){let n=a.forwarded_path??a.original_path;if("string"==typeof n)try{n=JSON.parse(n)}catch{return null}if(!n||!Array.isArray(n)||0===n.length)return null;const t=n.map(a=>String(a).toUpperCase()),o=e?dy(e):null,r=t[t.length-1],s=null!==o&&r===o,i=s?t.slice(0,-1):[...t];return{effective:i,original:t,hadLocal:s,effectiveLength:i.length}}function hy(a,e){const n=a.toUpperCase();return e.startsWith("0x")||e.startsWith("0X")?e.slice(2).toUpperCase().startsWith(n):e.toUpperCase().startsWith(n)}const my=[{label:"20m",minutes:20,buckets:80},{label:"1h",minutes:60,buckets:80},{label:"3h",minutes:180,buckets:80},{label:"12h",minutes:720,buckets:80},{label:"24h",minutes:1440,buckets:80},{label:"3d",minutes:4320,buckets:80},{label:"7d",minutes:10080,buckets:80},{label:"14d",minutes:20160,buckets:80}],py=[{label:"1h",hours:1},{label:"3h",hours:3},{label:"12h",hours:12},{label:"24h",hours:24},{label:"3d",hours:72},{label:"7d",hours:168},{label:"14d",hours:336}];function gy(a,e=12){return Math.max(e,Math.round(a/15))}const by={hero:gy(1200),statsCard:gy(380)};function fy(a){switch(a){case 1:return 3600;case 3:case 12:return 5400;case 24:return 8640;case 72:case 168:case 336:return 720;default:{const e=3600*a,n=Math.round(e/10);return Math.min(Math.max(360,n),720)}}}const yy="'JetBrains Mono', 'SF Mono', Monaco, monospace",vy={stats:3e3,packets:3e3,logs:2e3,system:3e3},wy={DEBUG:"text-sys-brown",INFO:"text-sys-cyan",WARNING:"text-sys-amber",ERROR:"text-sys-red",CRITICAL:"text-sys-pink"};function ky(a){return wy[a]??"text-text-muted border-border-subtle"}function xy(a){return a?(a.startsWith("0x")?a.slice(2):a).slice(0,2).toUpperCase():""}function jy(a,e){if(!a)return"expired";const n=e/1e3-a;return n<=10800?"active":n<=86400?"stale":"expired"}function zy(a,e,n=Date.now()){if(!a)return[];const t=Object.keys(a);if(0===t.length)return[];const o=[];for(let r=0;re.count!==a.count?e.count-a.count:e.lastSeen-a.lastSeen),o}const Cy={critical:0,high:150,medium:300,low:450};let Ay=!1;const Dy=[],Ey=new Set;function By(a,e="medium"){if(Ay){const n=setTimeout(()=>{a(),Ey.delete(n)},Cy[e]);return Ey.add(n),()=>{clearTimeout(n),Ey.delete(n)}}{const n={callback:a,priority:e};return Dy.push(n),()=>{const a=Dy.indexOf(n);-1!==a&&Dy.splice(a,1)}}}const Fy="pymc-hidden-contacts",qy="pymc-quick-neighbors",Sy="pymc-local-hash",My="pymc-global-time-range";let Ty=null;function Py(a){return 4===(a.type??a.payload_type)&&!0!==a.transmitted&&function(a){const e=function(a){if(Array.isArray(a))return a;if("string"==typeof a&&a.startsWith("["))try{const e=JSON.parse(a);return Array.isArray(e)?e:[]}catch{return[]}return[]}(a.original_path),n=a.route??a.route_type;return 2===(t=n)||3===t?0===e.length:ir(n)?e.length<=1:0===e.length;var t}(a)}function Ly(a,e,n,t){if(!a)return null;let o=a;if(a.length<=4){const t=a.replace(/^0x/i,"").toUpperCase();if(t===e)return null;const r=n.get(t);if(!r)return null;o=r}return t.has(o)?dy(o)===e?null:o:null}function Ry(a,e){a.count++,void 0!==e.rssi&&null!==e.rssi&&(a.rssiSum+=e.rssi,a.rssiCount++),void 0!==e.snr&&null!==e.snr&&(a.snrSum+=e.snr,a.snrCount++);const n=e.timestamp??0;n>a.lastSeen&&(a.lastSeen=n)}function Ny(a){return{hash:a,count:0,rssiSum:0,rssiCount:0,snrSum:0,snrCount:0,lastSeen:0}}function Iy(a,e){const n=function(a,e){const n=e-1e3*a;return n<=6048e5?"active":n<=12096e5?"stale":"expired"}(a.lastSeen,e);return"expired"===n?null:{hash:a.hash,prefix:dy(a.hash),count:a.count,avgRssi:a.rssiCount>0?a.rssiSum/a.rssiCount:null,avgSnr:a.snrCount>0?a.snrSum/a.snrCount:null,lastSeen:a.lastSeen,status:n}}function _y(){if("undefined"==typeof window)return[];try{const a=localStorage.getItem(qy);if(a)return JSON.parse(a)}catch{}return[]}function Vy(a){"undefined"!=typeof window&&(Ty&&clearTimeout(Ty),Ty=setTimeout(()=>{try{localStorage.setItem(qy,JSON.stringify(a))}catch{}Ty=null},1e3))}function Oy(){if("undefined"!=typeof window)try{const a=localStorage.getItem(Sy);if(a)return a}catch{}}function $y(a){if("undefined"!=typeof window)try{localStorage.setItem(Sy,a)}catch{}}function Wy(){if("undefined"==typeof window)return new Set;try{const a=localStorage.getItem(Fy);if(a)return new Set(JSON.parse(a))}catch{}return new Set}function Uy(){if("undefined"==typeof window)return 4;try{const a=localStorage.getItem(My);if(a){const e=parseInt(a,10);if(!isNaN(e)&&e>=0&&e<=7)return e>4?4:e}}catch{}return 4}const Hy=w((a,e)=>({stats:null,statsLoading:!1,statsError:null,packets:Jg.getPackets(),packetsLoading:!1,packetsError:null,lastPacketTimestamp:Jg.getNewestTimestamp(),logs:[],logsLoading:!1,liveMode:!0,flashReceived:0,flashAdvert:0,pendingAdvertLocalHash:null,pendingAdvertTimestamp:null,resourceHistory:[],lastResourceFetch:0,hardwareStats:null,hardwareStatsLoading:!1,hardwareStatsError:null,hiddenContacts:Wy(),quickNeighbors:_y(),cachedLocalHash:Oy(),initialized:!1,packetCacheState:Jg.getState(),mutationsInFlight:new Set,globalTimeRangeIndex:Uy(),initializeApp:async()=>{const{initialized:n}=e();if(n)return;a({initialized:!0,statsLoading:!0,packetsLoading:!0}),Jg.subscribe(e=>{a({packetCacheState:e})});const{hiddenContacts:t}=e();let o=0;Dg().then(e=>{const n=zy(e.neighbors,t),o=e.local_hash;a({stats:e,statsLoading:!1,quickNeighbors:n,cachedLocalHash:o}),Vy(n),o&&$y(o)}).catch(e=>{a({statsError:e instanceof Error?e.message:"Failed to fetch stats",statsLoading:!1})}),Jg.initialLoad(()=>{const e=Date.now();if(e-o>=50){o=e;const n=Jg.getPackets();if(n.length>0){const e=Jg.getNewestTimestamp();a({packets:n,lastPacketTimestamp:e})}}}).then(n=>{if(n.length>0){const t=Jg.getNewestTimestamp();a({packets:n,packetsLoading:!1,lastPacketTimestamp:t});const o=(a,e)=>{"requestIdleCallback"in window?requestIdleCallback(()=>a(),{timeout:e}):setTimeout(a,100)};o(()=>e().triggerTopologyCompute(),2e3),o(()=>e().triggerSparklineCompute(),1e3),setTimeout(()=>function(){if(!Ay){Ay=!0;for(const a of Dy){const e=Cy[a.priority],n=setTimeout(()=>{a.callback(),Ey.delete(n)},e);Ey.add(n)}Dy.length=0}}(),16),setTimeout(()=>{oy.getState().queueDecryption(n,{quickMode:!0})},500)}else a({packetsLoading:!1})}).catch(e=>{a({packetsError:e instanceof Error?e.message:"Failed to load packets",packetsLoading:!1})}),rb.getState().initialize(),nb.onPacket(n=>{const{lastPacketTimestamp:t,mutationsInFlight:o}=e();if(o.size>0)return;ob.stage(n);const r=n.timestamp??0;r>t&&a({flashReceived:e().flashReceived+1,lastPacketTimestamp:r})}),nb.onStats(n=>{const{mutationsInFlight:t,hiddenContacts:o}=e();if(t.size>0)return;const r=zy(n.neighbors,o),s=n.local_hash;a({stats:n,statsLoading:!1,statsError:null,quickNeighbors:r,cachedLocalHash:s}),Vy(r),s&&$y(s)}),nb.onPacketStats(n=>{const{stats:t,mutationsInFlight:o}=e();if(!t||o.size>0)return;const r={...t,rx_count:n.rx_count??t.rx_count,tx_count:n.tx_count??t.tx_count,forwarded_count:n.forwarded_count??t.forwarded_count,dropped_count:n.dropped_count??t.dropped_count};a({stats:r})});{const n="";$g.init({apiBaseUrl:n,authToken:ig()??void 0,statsIntervalMs:vy.stats,packetsIntervalMs:vy.packets}).then(()=>{if($g.onStats((n,t)=>{const{mutationsInFlight:o,hiddenContacts:r}=e();if(o.size>0)return;const s=zy(n.neighbors,r),i=n.local_hash;a({stats:n,statsLoading:!1,statsError:null,quickNeighbors:s,cachedLocalHash:i}),Vy(s),i&&$y(i),yb.getState().updateRestHealth(!0)}),$g.onPackets((n,t,o)=>{if(0===n.length)return;const{lastPacketTimestamp:r}=e(),s=n.map(a=>a.packet_hash).filter(a=>!!a);ob.confirmBatch(s),Jg.mergePacketsDirectly(n),o>r&&qg();const i=Jg.getPackets();a({packets:i,packetsLoading:!1,packetsError:null,lastPacketTimestamp:Math.max(o,r)}),oy.getState().queueDecryption(n)}),$g.onError((e,n)=>{"stats"===e?(a({statsError:n}),yb.getState().updateRestHealth(!1)):a({packetsError:n})}),"undefined"!=typeof document){let a=Date.now();const n=3e5;document.addEventListener("visibilitychange",async()=>{if(document.hidden)a=Date.now();else{const t=Date.now()-a>n;t&&(nb.resetSupported(),nb.isConnected()?await nb.verifyConnection(3e3)||(nb.disconnect(),nb.connect()):nb.isSupported()&&nb.connect()),$g.forceRefresh(),t&&e().fetchStats({force:!0})}})}}).catch(a=>{!function(a){setInterval(()=>{Jg.isHeavyLoadInProgress()||a().fetchStats()},vy.stats),setInterval(()=>{a().liveMode&&!Jg.isHeavyLoadInProgress()&&a().fetchPackets()},vy.packets)}(e)})}e().fetchHardwareStats(),setInterval(()=>{"undefined"!=typeof document&&document.hidden||e().fetchHardwareStats()},vy.system)},prefetchForRoute:a=>{switch(a){case"/logs":Eg().catch(()=>{});break;case"/system":Mg().catch(()=>{});break;case"/statistics":(async function(a=24){return xg(`/api/packet_type_graph_data?hours=${a}`)})(3).catch(()=>{}),Bg(3).catch(()=>{});break;case"/settings":(async function(){return xg("/api/radio_presets")})().catch(()=>{})}},fetchStats:async n=>{const{stats:t,mutationsInFlight:o,hiddenContacts:r}=e();if(!(o.size>0)||(null==n?void 0:n.force)){t||a({statsLoading:!0}),a({statsError:null});try{const e=await Dg(),n=zy(e.neighbors,r),t=e.local_hash;a({stats:e,statsLoading:!1,quickNeighbors:n,cachedLocalHash:t}),Vy(n),t&&$y(t)}catch(s){a({statsError:s instanceof Error?s.message:"Failed to fetch stats",statsLoading:!1})}}},fetchPackets:async n=>{const{packets:t,lastPacketTimestamp:o}=e();0===t.length&&a({packetsLoading:!0}),a({packetsError:null});try{const n=await Jg.poll(),r=Jg.getNewestTimestamp(),s=r>o&&o>0,i=n.length!==t.length||s;s&&(a({flashReceived:e().flashReceived+1}),qg()),i?(a({packets:n,packetsLoading:!1,lastPacketTimestamp:r||o}),oy.getState().queueDecryption(n)):a({packetsLoading:!1})}catch(r){a({packetsError:r instanceof Error?r.message:"Failed to fetch packets",packetsLoading:!1})}},fetchLogs:async()=>{const{logs:n}=e();0===n.length&&a({logsLoading:!0});try{const e=await Eg();a({logs:e.logs,logsLoading:!1})}catch{a({logsLoading:!1})}},setLiveMode:e=>{a({liveMode:e}),$g.isReady()&&$g.setLiveMode(e)},setMode:async n=>{const t="setMode",{mutationsInFlight:o}=e(),r=new Set(o);r.add(t),a({mutationsInFlight:r});try{if(!(await Rg(n)).success)throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}catch(s){const{mutationsInFlight:n}=e(),o=new Set(n);throw o.delete(t),a({mutationsInFlight:o}),s}},clearModeMutation:()=>{const{mutationsInFlight:n}=e(),t=new Set(n);t.delete("setMode"),a({mutationsInFlight:t})},setDutyCycle:async n=>{const t="setDutyCycle",{mutationsInFlight:o}=e(),r=new Set(o);r.add(t),a({mutationsInFlight:r});try{if(!(await Ng(n)).success)throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}finally{const{mutationsInFlight:n}=e(),o=new Set(n);o.delete(t),a({mutationsInFlight:o})}},setDutyCycleConfig:async n=>{var t;const o="setDutyCycleConfig",{mutationsInFlight:r}=e(),s=new Set(r);s.add(o),a({mutationsInFlight:s});try{const a=await async function(a){return xg("/api/update_duty_cycle_config",{method:"POST",body:JSON.stringify(a)})}(n);if(!a.success&&!(null==(t=a.data)?void 0:t.persisted))throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}catch(i){const{mutationsInFlight:n}=e(),t=new Set(n);throw t.delete(o),a({mutationsInFlight:t}),i}},clearDutyCycleMutation:()=>{const{mutationsInFlight:n}=e(),t=new Set(n);t.delete("setDutyCycleConfig"),a({mutationsInFlight:t})},startMutation:n=>{const{mutationsInFlight:t}=e(),o=new Set(t);o.add(n),a({mutationsInFlight:o})},clearMutation:n=>{const{mutationsInFlight:t}=e(),o=new Set(t);o.delete(n),a({mutationsInFlight:o})},sendAdvert:async()=>{try{const n=await Lg();return n.success?(a({flashAdvert:e().flashAdvert+1}),{success:!0}):{success:!1,error:n.error||"Failed to send advert"}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Unknown error"}}},triggerFlashReceived:()=>{a({flashReceived:e().flashReceived+1})},triggerFlashAdvert:()=>{a({flashAdvert:e().flashAdvert+1})},fetchHardwareStats:async()=>{try{const n=await Mg();if(n.success&&n.data){const t=n.data;a({hardwareStats:t,hardwareStatsLoading:!1,hardwareStatsError:null});const o=80;e().addResourceDataPoint(t.cpu.usage_percent,t.memory.usage_percent,o)}else a({hardwareStatsError:n.error??"Failed to fetch hardware stats",hardwareStatsLoading:!1})}catch(n){a({hardwareStatsError:n instanceof Error?n.message:"Failed to fetch hardware stats",hardwareStatsLoading:!1})}},addResourceDataPoint:(n,t,o)=>{const r=Date.now(),{lastResourceFetch:s,resourceHistory:i}=e();if(r-s<1e3)return;const l=[...i,{timestamp:r,time:new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),cpu:n,memory:t}],c=l.length>o?l.slice(-o):l;a({resourceHistory:c,lastResourceFetch:r})},hideContact:n=>{const{hiddenContacts:t}=e(),o=new Set(t);o.add(n),a({hiddenContacts:o}),function(a){if("undefined"!=typeof window)try{localStorage.setItem(Fy,JSON.stringify([...a]))}catch{}}(o)},clearPacketCache:()=>{Jg.clear(),a({packets:[],lastPacketTimestamp:0}),Jg.quickLoad().then(n=>{if(n.length>0){const t=n.reduce((a,e)=>Math.max(a,e.timestamp??0),0);a({packets:n,lastPacketTimestamp:t}),e().triggerTopologyCompute()}})},triggerTopologyCompute:()=>{var a,n,t,o;const{packets:r,stats:s,hiddenContacts:i}=e();if(0===r.length||!s)return;const l=s.neighbors??{},c=Object.fromEntries(Object.entries(l).filter(([a])=>!i.has(a))),d=s.local_hash;let u=null==(n=null==(a=s.config)?void 0:a.repeater)?void 0:n.latitude,h=null==(o=null==(t=s.config)?void 0:t.repeater)?void 0:o.longitude;if(!u||!h||0===u&&0===h){const a=bb.getState().getEffectiveLocation();a&&(u=a.latitude,h=a.longitude)}const m=[];for(const[e,g]of Object.entries(c))g.zero_hop&&m.push({hash:e,advertCount:g.advert_count??1,avgRssi:g.rssi??null,avgSnr:g.snr??null,lastSeen:g.last_seen??0,latitude:g.latitude,longitude:g.longitude});const p=db.getState().getTerrainGridForDisambiguation();ab.compute(r,c,d,u,h,void 0,m,p??void 0)},triggerDeepAnalysis:async()=>{await Jg.forceDeepLoad();const n=Jg.getPackets();if(n.length>0){const t=n.reduce((a,e)=>Math.max(a,e.timestamp??0),0);a({packets:n,lastPacketTimestamp:t}),e().triggerTopologyCompute(),e().triggerSparklineCompute()}},updateQuickNeighbors:()=>{const{packets:n,stats:t,hiddenContacts:o}=e();if(0===n.length||!t)return;const r=t.neighbors??{},s=function(a,e,n){if(!n||0===a.length||0===Object.keys(e).length)return[];const t=Date.now(),o=dy(n),r=new Set(Object.keys(e)),s=function(a){var e,n;const t=new Map;for(const o of Object.keys(a)){const r=dy(o),s=t.get(r);if(s){const i=null==(e=a[s])?void 0:e.zero_hop;(null==(n=a[o])?void 0:n.zero_hop)&&!i&&t.set(r,o)}else t.set(r,o)}return t}(e),i=new Map;for(const c of a){if(!Py(c))continue;const a=Ly(c.src_hash,o,s,r);if(!a)continue;let e=i.get(a);e||(e=Ny(a),i.set(a,e)),Ry(e,c)}for(const[c,d]of Object.entries(e))dy(c)!==o&&d.zero_hop&&!i.has(c)&&i.set(c,{hash:c,count:d.advert_count??0,rssiSum:d.rssi??0,rssiCount:void 0!==d.rssi?1:0,snrSum:d.snr??0,snrCount:void 0!==d.snr?1:0,lastSeen:d.last_seen??0});const l=[];for(const c of i.values()){const a=Iy(c,t);a&&l.push(a)}return l.sort((a,e)=>e.count!==a.count?e.count-a.count:e.lastSeen-a.lastSeen),l}(n,Object.fromEntries(Object.entries(r).filter(([a])=>!o.has(a))),t.local_hash),i=e().quickNeighbors;(s.length!==i.length||s.some((a,e)=>{var n,t;return a.hash!==(null==(n=i[e])?void 0:n.hash)||a.count!==(null==(t=i[e])?void 0:t.count)}))&&(a({quickNeighbors:s}),Vy(s))},triggerSparklineCompute:()=>{const{packets:a,stats:n,hiddenContacts:t}=e();if(0===a.length||!n)return;const o=n.neighbors??{},r=Object.keys(o).filter(a=>!t.has(a));0!==r.length&&eb.compute(a,r)},requestSevenDayData:async()=>{let n=0;await Jg.loadSevenDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Jg.getPackets()}))});const t=Jg.getPackets();a({packets:t,lastPacketTimestamp:Jg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),oy.getState().queueDecryption(t)},{timeout:2e3})},requestThreeDayData:async()=>{let n=0;await Jg.loadThreeDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Jg.getPackets()}))});const t=Jg.getPackets();a({packets:t,lastPacketTimestamp:Jg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),oy.getState().queueDecryption(t)},{timeout:2e3})},requestFourteenDayData:async()=>{let n=0;await Jg.loadFourteenDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Jg.getPackets()}))});const t=Jg.getPackets();a({packets:t,lastPacketTimestamp:Jg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),oy.getState().queueDecryption(t)},{timeout:5e3})},setGlobalTimeRange:n=>{a({globalTimeRangeIndex:n}),function(a){if("undefined"!=typeof window)try{localStorage.setItem(My,a.toString())}catch{}}(n);const t={0:1,1:1,2:3,3:12,4:24,5:72,6:168,7:336}[n]??24;$g.setTimeWindow(t);const{packetCacheState:o,requestThreeDayData:r,requestSevenDayData:s,requestFourteenDayData:i,triggerTopologyCompute:l,triggerSparklineCompute:c}=e();let d=!1;if(5!==n||o.threeDayLoadComplete||o.isBackgroundLoading||(r(),d=!0),6!==n||o.sevenDayLoadComplete||o.isBackgroundLoading||(s(),d=!0),7!==n||o.fourteenDayLoadComplete||o.isBackgroundLoading||(i(),d=!0),!d&&n>=5&&(l(),c()),!d){const{packets:a}=e();oy.getState().queueDecryption(a)}}})),Yy=Hy,Gy=()=>Hy(a=>a.stats),Ky=()=>Hy(a=>a.statsError),Xy=()=>Hy(a=>a.packets),Jy=()=>Hy(a=>a.packetsLoading),Zy=()=>Hy(a=>a.logs),Qy=()=>Hy(a=>a.logsLoading),av=()=>Hy(a=>a.liveMode),ev=()=>Hy(a=>a.fetchLogs),nv=()=>Hy(a=>a.setLiveMode),tv=()=>Hy(a=>a.resourceHistory),ov=()=>Hy(a=>a.hardwareStats),rv=()=>Hy(a=>a.hardwareStatsLoading),sv=()=>Hy(a=>a.hardwareStatsError),iv=()=>Hy(a=>a.fetchHardwareStats),lv=()=>Hy(a=>a.hiddenContacts),cv=()=>Hy(a=>a.hideContact),dv=()=>Hy(a=>a.packetCacheState),uv=()=>Hy(a=>a.quickNeighbors),hv=()=>Hy(a=>a.cachedLocalHash),mv=()=>Hy(a=>a.lastPacketTimestamp),pv=()=>Hy(a=>a.globalTimeRangeIndex),gv=()=>Hy(a=>a.setGlobalTimeRange),bv=()=>Hy(a=>null!==a.stats&&a.packetCacheState.backgroundLoadComplete),fv=()=>Hy(a=>a.packets.length>0);function yv(){const a=Hy(a=>{var e,n,t;return null==(t=null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.repeater)?void 0:t.latitude}),e=Hy(a=>{var e,n,t;return null==(t=null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.repeater)?void 0:t.longitude}),n=Hy(a=>{var e,n,t;return(null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.node_name)||(null==(t=a.stats)?void 0:t.node_name)||"Local Node"}),t=bb(a=>a.latitude),o=bb(a=>a.longitude),r=bb(a=>a.enabled);return a&&e&&(0!==a||0!==e)?{latitude:a,longitude:e,name:n,isStealth:!1}:r&&null!==t&&null!==o?{latitude:t,longitude:o,name:n,isStealth:!0}:null}const vv={healthy:{p3:"color(display-p3 0.2 1 0.4)",fallback:"#00FF66"},degraded:{p3:"color(display-p3 1 0.7 0.2)",fallback:"#FFB020"},offline:{p3:"color(display-p3 1 0.3 0.3)",fallback:"#EF4444"},connecting:{p3:"color(display-p3 0.4 0.6 1)",fallback:"#6699FF"},rx:{p3:"color(display-p3 0.2 1 0.4)",fallback:"#00FF66"},tx:{p3:"color(display-p3 1 0.9 0.2)",fallback:"#FFDD00"},idle:{p3:"color(display-p3 0.3 0.3 0.35)",fallback:"#4A4A55"}};function wv({color:a,pulse:e=!1,className:n}){var t;return r.jsx("span",{className:i("inline-block rounded-full w-1 h-1",e&&"animate-pulse",n),style:{backgroundColor:a.fallback,...(null==(t=CSS.supports)?void 0:t.call(CSS,"color","color(display-p3 1 1 1)"))&&{backgroundColor:a.p3}}})}function kv({showLabel:a=!1,className:e}){const n=Hy(a=>a.flashReceived),t=Hy(a=>a.flashAdvert),s=rb(a=>"connected"===a.connectionState),l=yb(a=>a.health),c=yb(a=>a.isInitializing),[d,u]=o.useState("idle"),h=o.useRef(0),m=o.useRef(0);o.useEffect(()=>{if(n<=0)return;const a=Date.now();if(a-h.current<50)return;h.current=a,u("rx");const e=setTimeout(()=>u("idle"),100);return()=>clearTimeout(e)},[n]),o.useEffect(()=>{if(t<=0)return;const a=Date.now();if(a-m.current<50)return;m.current=a,u("tx");const e=setTimeout(()=>u("idle"),100);return()=>clearTimeout(e)},[t]);let p=vv.healthy,g=!1,b="LIVE",f="Real-time (WebSocket)";c?(p=vv.connecting,g=!0,b="WAIT",f="Connecting..."):"offline"===l?(p=vv.offline,g=!0,b="DOWN",f="Cannot reach server"):"degraded"===l?(p=vv.degraded,b="POLL",f="Real-time unavailable, using REST polling"):s?(p=vv.healthy,b="LIVE",f="Real-time (WebSocket)"):(p=vv.healthy,b="POLL",f="Database polling");const y="rx"===d?vv.rx:"tx"===d?vv.tx:vv.idle;return r.jsxs("span",{className:i("inline-flex items-center gap-1.5",e),title:f,children:[r.jsxs("span",{className:"inline-flex items-center justify-center gap-1 w-5 h-5 rounded bg-black border border-white/[0.08]",children:[r.jsx(wv,{color:p,pulse:g}),r.jsx(wv,{color:y})]}),a&&r.jsx("span",{className:i("font-mono text-[10px] tracking-wider","DOWN"===b?"text-status-danger":"WAIT"===b?"text-accent-primary":"POLL"===b?"text-status-warning":"text-text-muted"),children:b})]})}function xv({borderRadius:a}){return r.jsx(up.div,{initial:{opacity:0},animate:{opacity:.8,backgroundPosition:["200% 0%","-200% 0%"]},exit:{opacity:0},transition:{opacity:{duration:.2},backgroundPosition:{duration:2,ease:"easeInOut",repeat:1/0}},style:{position:"absolute",inset:0,zIndex:1,pointerEvents:"none",borderRadius:a,padding:2,background:"linear-gradient(\n 90deg,\n transparent 0%,\n transparent 25%,\n var(--accent-primary) 50%,\n transparent 75%,\n transparent 100%\n )",backgroundSize:"200% 100%",mask:"\n linear-gradient(#fff 0 0) content-box,\n linear-gradient(#fff 0 0)\n ",maskComposite:"exclude",WebkitMaskComposite:"xor"}})}function jv({children:a,isLoading:e=!0,className:n,borderRadius:t=12}){return r.jsxs("div",{className:i("relative overflow-hidden",n),style:{borderRadius:t},children:[r.jsx(Jh,{children:e&&r.jsx(xv,{borderRadius:t})}),r.jsx("div",{className:"relative z-10",children:a})]})}function zv({className:a}){return r.jsx("div",{className:i("relative w-10 h-1 rounded-sm overflow-hidden","bg-bg-elevated",a),children:r.jsx(up.div,{animate:{backgroundPosition:["200% 0%","-200% 0%"]},transition:{duration:1.5,ease:"easeInOut",repeat:1/0},className:"absolute inset-0",style:{background:"linear-gradient(\n 90deg,\n transparent 0%,\n var(--accent-primary) 50%,\n transparent 100%\n )",backgroundSize:"200% 100%"}})})}const Cv=w(a=>({sparklines:new Map,isComputing:!1,lastUpdated:0,nodeCount:0,setSparklines:e=>a({sparklines:e,lastUpdated:Date.now(),nodeCount:e.size,isComputing:!1}),setComputing:e=>a({isComputing:e})}));"undefined"!=typeof window&&setTimeout(()=>{eb.subscribe((a,e)=>{const n=Cv.getState();e&&!n.isComputing?n.setComputing(!0):!e&&a.size>0?n.setSparklines(a):!e&&n.isComputing&&n.setComputing(!1)})},0);const Av=()=>Cv(a=>a.sparklines),Dv=()=>Cv(a=>a.isComputing),Ev=[],Bv=new Map;function Fv(a){return Cv(e=>{const n=e.sparklines.get(a);if(!n||0===n.length)return Ev;const t=Bv.get(a);return t===n?t:(Bv.set(a,n),n)})}const qv=w(a=>({topology:{edges:[],validatedEdges:[],weakEdges:[],certainEdges:[],uncertainEdges:[],edgeMap:new Map,maxPacketCount:0,maxCertainCount:0,neighborAffinity:new Map,fullAffinity:new Map,localPrefix:null,centrality:new Map,hubNodes:[],gatewayNodes:[],loops:[],loopEdgeKeys:new Set,txDelayRecommendations:new Map,pathRegistry:Qg(),edgeBetweenness:new Map,backboneEdges:[],nodeMobility:new Map,mobileNodes:[],pathHealth:[],lastHopNeighbors:[],disambiguationStats:{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:[],viterbiStats:{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map,communityCount:0,backboneNodes:[]},isComputing:!1,lastComputeTimeMs:0,lastUpdated:0,setTopology:(e,n)=>a({topology:e,lastComputeTimeMs:n,lastUpdated:Date.now(),isComputing:!1}),setComputing:e=>a({isComputing:e})}));"undefined"!=typeof window&&ab.subscribe((a,e)=>{qv.getState().setTopology(a,e)});const Sv=()=>qv(a=>a.topology),Mv=()=>qv(a=>a.topology.hubNodes),Tv=()=>qv(a=>a.topology.centrality),Pv=()=>qv(a=>a.topology.fullAffinity),Lv=()=>qv(a=>a.isComputing),Rv=()=>qv(a=>a.lastUpdated);let Nv=null,Iv=null,_v=null,Vv=null;const Ov=()=>qv(a=>(a.topology.hubNodes!==Iv&&(Iv=a.topology.hubNodes,Nv=new Set(a.topology.hubNodes)),Nv)),$v=()=>qv(a=>a.topology.pathHealth),Wv=()=>qv(a=>a.topology.disambiguationStats),Uv=()=>qv(a=>a.topology.disambiguationStats.highCollisionPrefixes),Hv=()=>qv(a=>a.topology.disambiguationStats.totalPrefixes>0),Yv=()=>qv(a=>a.topology.discoveredNodes),Gv=()=>qv(a=>a.topology.viterbiStats),Kv=()=>qv(a=>(a.topology.discoveredNodes!==Vv&&(Vv=a.topology.discoveredNodes,_v=a.topology.discoveredNodes.filter(a=>a.isLikelyReal)),_v)),Xv=()=>qv(a=>a.topology.nodeMetrics);function Jv(a){if(a<60)return`${Math.floor(a)}s`;const e=Math.floor(a/86400),n=Math.floor(a%86400/3600),t=Math.floor(a%3600/60),o=[];return e>0&&o.push(`${e}d`),n>0&&o.push(`${n}h`),(t>0||0===o.length)&&o.push(`${t}m`),o.join(" ")}function Zv(a){const e=Date.now()/1e3-a;return e<60?"just now":e<3600?`${Math.floor(e/60)}m ago`:e<86400?`${Math.floor(e/3600)}h ago`:`${Math.floor(e/86400)}d ago`}function Qv(a){return new Date(1e3*a).toLocaleString()}function aw(a){const e=new Date(1e3*a);return`${e.toLocaleString("en-US",{month:"short"})} ${e.getDate()}, ${e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}`}function ew(a){return new Date(1e3*a).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function nw(a){return`${(a/1e6).toFixed(3)} MHz`}function tw(a){return`${(a/1e3).toFixed(1)} kHz`}function ow(a){const e=a>1e12?a:1e3*a,n=Date.now(),t=Math.abs(n-e),o=Math.floor(t/1e3),r=Math.floor(o/60),s=Math.floor(r/60),i=Math.floor(s/24);return i>0?`${i} day${1!==i?"s":""}`:s>0?`${s} hour${1!==s?"s":""}`:r>0?`${r} minute${1!==r?"s":""}`:`${o} second${1!==o?"s":""}`}function rw(a){a<0&&(a=0);const e=Math.floor(a/1e3),n=Math.floor(e/60),t=Math.floor(n/60);if(t>0){const a=n%60;return a>0?`${t}h ${a}m`:`${t}h`}if(n>0){const a=e%60;return a>0?`${n}m ${a}s`:`${n}m`}if(e>0){const n=a%1e3;return n>0?`${e}.${Math.floor(n/100)}s`:`${e}s`}return`${a}ms`}function sw(a){return a<1024?`${a}B`:a<1048576?`${(a/1024).toFixed(1)}K`:`${(a/1048576).toFixed(1)}M`}o.memo(function({options:a,data:e,className:n="",onCreate:t}){const s=o.useRef(null),i=o.useRef(null);return o.useEffect(()=>{const n=s.current;if(!n)return;const o=n.getBoundingClientRect(),r=Math.floor(o.width)||400,l=Math.floor(o.height)||200,c=new Ho({...a,width:r,height:l},e,n);return i.current=c,null==t||t(c),()=>{c.destroy(),i.current=null}},[a]),o.useEffect(()=>{i.current&&e&&i.current.setData(e)},[e]),o.useEffect(()=>{const a=s.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!i.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&i.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),r.jsx("div",{ref:s,className:`w-full h-full ${n}`,style:{minHeight:100}})});const iw=o.memo(function({items:a,direction:e="horizontal",size:n="sm",className:t,highlightedKey:o,onItemClick:s,onItemHover:l}){const c="horizontal"===e,d="sm"===n;return r.jsx("div",{className:i("flex font-mono",c?"flex-wrap gap-x-4 gap-y-1":"flex-col gap-1",d?"text-xs":"text-sm",t),children:a.map(a=>{const e=null!=o&&o!==a.key,n=s||l;return r.jsxs("div",{className:i("flex items-center gap-1.5 transition-opacity",e&&"opacity-30",n&&"cursor-pointer hover:opacity-80"),onClick:()=>null==s?void 0:s(a.key),onMouseEnter:()=>null==l?void 0:l(a.key),onMouseLeave:()=>null==l?void 0:l(null),children:[r.jsx("div",{className:i("shrink-0 rounded-xs",d?"w-3 h-3":"w-4 h-4"),style:{backgroundColor:a.color}}),r.jsx("span",{className:"text-text-secondary whitespace-nowrap",children:a.label}),void 0!==a.value&&r.jsx("span",{className:"text-text-muted tabular-nums",children:a.formatValue?a.formatValue(a.value):a.value})]},a.key)})})}),lw="#AD7F58",cw={4:"#3B82F6",5:"#5B5BD6",6:"#8E4EC6",0:"#00A2C7",2:"#12A594",7:"#46A758",1:"#F5D90A",10:"#FFB224",8:"#F76B15",9:"#E5484D",3:"#D6409F",15:lw},dw=lw;function uw(a){return cw[a]??dw}let hw=null,mw=0;const pw=1e3;function gw({activeTypes:a,totalByType:e}){const n=[...a].reverse().map(a=>({key:String(a),label:or[a]??`TYPE_${a}`,color:uw(a),value:e[a]??0,formatValue:a=>sw(a)}));return r.jsx(iw,{items:n})}const bw=o.memo(function({buckets:a,activeTypes:e,onHover:n,gridColor:t="rgba(255,255,255,0.1)",axisTickColor:s="rgba(255,255,255,0.6)"}){const i=o.useRef(null),l=o.useRef(null),c=o.useRef(a),d=o.useRef(e),u=o.useRef({gridColor:t,axisTickColor:s});c.current=a,d.current=e,u.current={gridColor:t,axisTickColor:s};const h=a.length,m=o.useMemo(()=>[a.map(a=>a.start),a.map(()=>1)],[h]),p=o.useCallback(e=>{if(!i.current||0===a.length)return;const t=i.current.getBoundingClientRect(),o=(e.clientX-t.left-48)/(t.width-48-8);if(o<0||o>1)return void(null==n||n(null,null,null));const r=Math.min(a.length-1,Math.max(0,Math.floor(o*a.length)));null==n||n(r,a[r],o)},[a,n]),g=o.useCallback(()=>{null==n||n(null,null,null)},[n]);return o.useEffect(()=>{if(!i.current||0===h)return;const a=i.current,e=a.getBoundingClientRect(),n={width:Math.floor(e.width)||400,height:Math.floor(e.height)||200,padding:[8,8,28,48],cursor:{show:!1},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],legend:{show:!1},hooks:{draw:[a=>{const e=a.ctx,{left:n,top:t,width:o,height:r}=a.bbox,s=window.devicePixelRatio||1,i=u.current;!function(a,e,n,t,o,r,s){if(0===e.length||0===n.length)return;const i=e.length,l=r/i;let c=0;for(const d of e)d.totalBytes>c&&(c=d.totalBytes);0===c&&(c=1);for(let d=0;dc&&(c=f.totalBytes);if(0===c)return;const d=function(){const a=performance.now();if(hw&&a-mw{const e=a.getBoundingClientRect();e.width>0&&e.height>0&&l.current&&l.current.setSize({width:Math.floor(e.width),height:Math.floor(e.height)})});return o.observe(a),()=>{o.disconnect(),t.destroy(),l.current=null}},[h]),o.useEffect(()=>{l.current&&l.current.redraw()},[a,e]),0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:i,className:"w-full h-full",onMouseMove:p,onMouseLeave:g})}),fw=new Map;function yw(a){var e;if(!a.startsWith("var("))return a;const n=fw.get(a);if(n)return n;const t=a.match(/var\(([^,)]+)(?:,\s*([^)]+))?\)/);if(!t)return a;const o=t[1].trim(),r=(null==(e=t[2])?void 0:e.trim())||"#888888",s=getComputedStyle(document.documentElement).getPropertyValue(o).trim()||r;return fw.set(a,s),s}function vw(a,e,n=!1){if(e.length<2)return;if(a.beginPath(),a.moveTo(e[0].x,e[0].y),2===e.length)return void a.lineTo(e[1].x,e[1].y);const t=.5;for(let o=0;o{p.current=a,g.current=e,b.current=t,f.current=n});const v=o.useRef({band:s,innerBand:i,mean:l,median:c,average:d,cursor:u});o.useLayoutEffect(()=>{v.current={band:s,innerBand:i,mean:l,median:c,average:d,cursor:u}});const w=o.useMemo(()=>[a.map(a=>a.timestamp),a.map(a=>a.max)],[a]),k=o.useMemo(()=>{const a=function(a,e,n,t){return{hooks:{draw:o=>{const r=a.current,s=e.current,i=n.current,l=t.current;if(0===r.length)return;const c=o.ctx,d=o.bbox,u=d.left,h=d.top,m=d.width,p=d.height;if(m<=0||p<=0)return;const g=o.data[0],b=g.length;if(0===b)return;const f=g[0],y=g[b-1]-f||1,v=a=>u+(a-f)/y*m,w=a=>h+p*(1-a/s),k={min:r.map(a=>({x:v(a.timestamp),y:w(a.min)})),max:r.map(a=>({x:v(a.timestamp),y:w(a.max)})),p5:r.map(a=>({x:v(a.timestamp),y:w(a.p5)})),p95:r.map(a=>({x:v(a.timestamp),y:w(a.p95)})),p25:r.map(a=>({x:v(a.timestamp),y:w(a.p25)})),p75:r.map(a=>({x:v(a.timestamp),y:w(a.p75)})),mean:r.map(a=>({x:v(a.timestamp),y:w(a.mean)})),median:r.map(a=>({x:v(a.timestamp),y:w(a.median)})),average:r.map(a=>({x:v(a.timestamp),y:w(a.average)}))},x=(a,e)=>i?i===a?Math.min(1,1.5*e):"minMax"===i||"p5p95"===i||"p25p75"===i?.3*e:e:e,j=a=>i?i===a?1:"mean"===i||"median"===i||"average"===i?.3:1:1,z={band:yw(l.band),innerBand:yw(l.innerBand),mean:yw(l.mean),median:yw(l.median),average:yw(l.average)};c.save(),c.strokeStyle=z.average,c.lineWidth=4,c.globalAlpha=j("average"),vw(c,k.average),c.stroke(),c.globalAlpha=x("minMax",.15),c.fillStyle=z.band,c.beginPath(),vw(c,k.max);const C=[...k.min].reverse();for(const a of C)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.globalAlpha=x("p5p95",.3),c.fillStyle=z.band,c.beginPath(),vw(c,k.p95);const A=[...k.p5].reverse();for(const a of A)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.globalAlpha=x("p25p75",.55),c.fillStyle=z.innerBand,c.beginPath(),vw(c,k.p75);const D=[...k.p25].reverse();for(const a of D)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.strokeStyle=z.median,c.lineWidth=1.5,c.globalAlpha=j("median"),c.setLineDash([4,4]),vw(c,k.median),c.stroke(),c.strokeStyle=z.mean,c.lineWidth=1.5,c.globalAlpha=j("mean"),c.setLineDash([]),vw(c,k.mean),c.stroke(),c.restore()}}}}(p,g,b,v);return{width:400,height:200,padding:[4,4,4,4],cursor:{show:!0,x:!0,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,e]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],hooks:{setCursor:[a=>{var e,n;const t=a.cursor.idx;null!=t&&t>=0?null==(e=f.current)||e.call(f,t):null==(n=f.current)||n.call(f,null)}]},plugins:[a]}},[e]);o.useEffect(()=>{const e=h.current;if(!e||0===a.length)return;const n=y.current,t=a.length,o=Math.abs(t-n);if(!(!m.current||o>100||n>0&&o/n>.1)&&m.current)return m.current.setData(w),void(y.current=t);m.current&&m.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...k,width:s,height:i},w,e);return m.current=l,y.current=t,()=>{l.destroy(),m.current=null}},[k,w,a.length]),o.useEffect(()=>{const a=h.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!m.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&m.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{m.current&&m.current.redraw()},[t,a]);const x=o.useCallback(()=>{null==n||n(null)},[n]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:h,className:"w-full h-full rounded-2xl overflow-hidden",onMouseLeave:x})});const ww="undefined"!=typeof window&&(null==(e=null==(a=window.matchMedia)?void 0:a.call(window,"(color-gamut: p3)"))?void 0:e.matches);let kw=null,xw=0;function jw(){const a=performance.now();if(kw&&a-xw<1e3)return kw;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--chart-axis-tick").trim()||"rgba(255, 255, 255, 0.4)",o=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)",r=e.getPropertyValue("--text-muted").trim()||"#727272",s=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",i=e.getPropertyValue("--signal-critical").trim()||"#EF4444",l=e.getPropertyValue("--bg-body").trim()||"#171717";return kw={fontFamily:n,axisColor:t,gridColor:o,textMuted:r,textPrimary:s,signalCritical:i,bgBody:l},xw=a,kw}const zw=["min","max","p75","p95","p99","mean","median","average","midpoint"];function Cw(a){const e=cr(function(a){const{colormap:e,baseIndex:n,halfSize:t}=hr(),o=Math.max(0,Math.min(1,a)),r=Math.min(n+Math.floor(o*(t-1)),e.discrete.length-1);return e.discrete[r]}(a)),n=`color(display-p3 ${(e.r/255).toFixed(3)} ${(e.g/255).toFixed(3)} ${(e.b/255).toFixed(3)})`;return{...e,p3:n}}function Aw(a,e,n,t,o,r,s,i,l,c=null,d=null,u=1,h=null,m="airtime",p=.5){if(0===e.length)return;const g=a.ctx,{left:b,top:f,width:y,height:v}=a.bbox,w=window.devicePixelRatio||1;if(y<=0||v<=0)return;const k=a.data[0],x=k.length;if(0===x)return;const j=k[0],z=k[x-1],C=n,A="share"===m,D=A?function(a){const e=[10,20,25,50,100,200,250,500,1e3],n=a/4.5;for(const t of e)if(t>=n)return t;return a>5e3?1e3*Math.ceil(n/1e3):100*Math.ceil(n/100)}(C):5,E=r.signalCritical,B=r.bgBody;g.save(),g.fillStyle="#000000";const F=8*w;g.beginPath(),g.roundRect(b,f,y,v,F),g.fill(),g.restore();const q=parseInt(B.slice(1,3),16)||23,S=parseInt(B.slice(3,5),16)||23,M=parseInt(B.slice(5,7),16)||23;if(!A&&C>=20){g.save();const a=f+v*(1-20/C);g.fillStyle=`rgba(${q}, ${S}, ${M}, 0.5)`,g.fillRect(b,f,y,a-f),g.restore()}g.save(),g.lineWidth=1*w,g.setLineDash([4*w,4*w]);for(let P=D;Pn+o)return;const i=jw().textPrimary;a.save(),a.strokeStyle=i,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()}(g,h,b,f,y,v,w),s){!function(a,e,n,t,o,r,s=null,i=null,l=1,c=25){const{points:d,rawValues:u,count:h,packetTypes:m,timestamps:p}=e,g=1*l*(window.devicePixelRatio||1);a.globalCompositeOperation="source-over";const b=s?parseInt(s.replace("TYPE_",""),10):null;for(let f=0;f=i.start&&a0&&function(a,e,n,t,o,r,s,i,l,c,d=.5){if(0===e.length)return;const u=l-i||1,h=function(a,e=1.3,n=.15){const t=function(a){const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e){const a=parseFloat(e[1]),n=parseFloat(e[2]),t=parseFloat(e[3]);return{r:Math.round(255*a),g:Math.round(255*n),b:Math.round(255*t),p3r:a,p3g:n,p3b:t}}if(a.startsWith("#")){const e=a.replace("#",""),n=parseInt(e.slice(0,2),16),t=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return{r:n,g:t,b:o,p3r:n/255,p3g:t/255,p3b:o/255}}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);if(n){const a=Math.round(parseFloat(n[1])),e=Math.round(parseFloat(n[2])),t=Math.round(parseFloat(n[3]));return{r:a,g:e,b:t,p3r:a/255,p3g:e/255,p3b:t/255}}return{r:255,g:255,b:255,p3r:1,p3g:1,p3b:1}}(a),o=function(a,e,n,t=1.25,o=.15){const r=(Math.max(a,e,n)+Math.min(a,e,n))/2;return{p3r:Math.min(1,r+(a-r)*t+o),p3g:Math.min(1,r+(e-r)*t+o),p3b:Math.min(1,r+(n-r)*t+o)}}(t.p3r,t.p3g,t.p3b,e,n);return{r:Math.round(255*Math.min(1,o.p3r)),g:Math.round(255*Math.min(1,o.p3g)),b:Math.round(255*Math.min(1,o.p3b)),p3r:Math.min(1,o.p3r),p3g:Math.min(1,o.p3g),p3b:Math.min(1,o.p3b)}}(jw().signalCritical);a.save(),a.globalAlpha=d,a.fillStyle=ww?`color(display-p3 ${h.p3r} ${h.p3g} ${h.p3b})`:`rgb(${h.r}, ${h.g}, ${h.b})`;for(const m of e){if(m.endTsl)continue;const e=t+(Math.max(m.startTs,i)-i)/u*r,n=t+(Math.min(m.endTs,l)-i)/u*r,d=Math.max(n-e,2*c);a.fillRect(e,o,d,s)}a.restore()}(g,i,0,b,f,y,v,j,z,w,d?Math.max(.03,.03*p):p)}o.memo(function({data:a,maxValue:e,visibleLines:n=zw,highlightedLine:t=null,onHover:s,scatterData:i=null,noiseFloorAnomalies:l=null,showNoiseFloorOverlay:c=!1,overlayOpacity:d=.5,highlightedType:u=null,hoveredTimeRange:h=null,timeRangeHours:m=24,yAxisMode:p="airtime"}){const g=o.useRef(null),b=o.useRef(null),f=o.useRef(a),y=o.useRef(e),v=o.useRef(n),w=o.useRef(t),k=o.useRef(s),x=o.useRef(i),j=o.useRef(l),z=o.useRef(c),C=o.useRef(u),A=o.useRef(h),D=o.useRef(null),E=o.useRef(null),B=o.useRef(p),F=o.useRef(d),q=m<=12?1.2:1,S=o.useRef(q),M=o.useRef(a.length);o.useLayoutEffect(()=>{f.current=a,y.current=e,v.current=n,w.current=t,k.current=s,x.current=i,j.current=l,z.current=c,C.current=u,A.current=h,S.current=q,B.current=p,F.current=d}),o.useEffect(()=>{D.current=jw()},[]);const T=o.useMemo(()=>[a.map(a=>a.timestamp),new Array(a.length).fill(1)],[a]),P=o.useMemo(()=>({hooks:{draw:a=>{const e=D.current||jw();Aw(a,f.current,y.current,v.current,w.current,e,x.current,j.current,z.current,C.current,A.current,S.current,E.current,B.current,F.current)}}}),[]),L=o.useMemo(()=>({width:400,height:200,padding:[8,0,8,28],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[P]}),[P]);o.useEffect(()=>{const e=g.current;if(!e||0===a.length)return;const n=M.current,t=a.length,o=Math.abs(t-n);if(!(!b.current||o>100||n>0&&o/n>.1)&&b.current)return b.current.setData(T),void(M.current=t);b.current&&b.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...L,width:s,height:i},T,e);return b.current=l,M.current=t,()=>{l.destroy(),b.current=null}},[L,T,a.length]),o.useEffect(()=>{const a=g.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!b.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&b.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{b.current&&b.current.redraw()},[t,n,a,i,l,c,d,u,h,q]);const R=o.useCallback(e=>{var n,t;const o=g.current,r=b.current;if(!o||!r||0===a.length)return;const s=o.getBoundingClientRect(),i=e.clientX-s.left,l=window.devicePixelRatio||1,c=r.bbox,d=c.left/l,u=c.width/l;if(id+u)return E.current=null,r.redraw(),void(null==(n=k.current)||n.call(k,null));E.current=i*l;const h=(i-d)/u,m=a.length,p=Math.floor(h*m),f=Math.max(0,Math.min(m-1,p));r.redraw(),null==(t=k.current)||t.call(k,f)},[a.length]),N=o.useCallback(()=>{var a;E.current=null,b.current&&b.current.redraw(),null==(a=k.current)||a.call(k,null)},[]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:g,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:R,onMouseLeave:N})});const Dw=-70;let Ew=null,Bw=0;function Fw(a,e){if(0===a.length)return 0;const n=e/100*(a.length-1),t=Math.floor(n),o=Math.ceil(n);return t===o?a[t]:a[t]+(a[o]-a[t])*(n-t)}function qw(a){const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)\)/);if(e)return{r:Math.round(255*parseFloat(e[1])),g:Math.round(255*parseFloat(e[2])),b:Math.round(255*parseFloat(e[3]))};const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:{r:250,g:189,b:47}}function Sw(a,e){const n=Math.max(0,Math.min(1,a))*(e.length-1),t=Math.floor(n),o=n-t;if(t>=e.length-1)return e[e.length-1];const r=e[t],s=e[t+1];return{r:Math.round(r.r+(s.r-r.r)*o),g:Math.round(r.g+(s.g-r.g)*o),b:Math.round(r.b+(s.b-r.b)*o)}}function Mw(a,e,n){const t=Math.max(0,Math.min(1,a));return{r:Math.round(e.r+(n.r-e.r)*t),g:Math.round(e.g+(n.g-e.g)*t),b:Math.round(e.b+(n.b-e.b)*t)}}const Tw=o.memo(function({timestamps:a,values:e,onStatsChange:n,compact:t=!1,height:s}){var i,l;const[c,d]=o.useState(!0),u=o.useRef(null),h=o.useRef(null),m=o.useRef(null),p=o.useRef(t),g=o.useMemo(()=>{const a=e.filter(a=>a<=Dw);if(0===a.length)return null;const n=Math.min(...a),t=Math.max(...a),o=a.reduce((a,e)=>a+e,0)/a.length,r=[...a].sort((a,e)=>a-e);return{min:n,max:t,avg:o,p5:Fw(r,5),p95:Fw(r,95)}},[e]);o.useEffect(()=>{null==n||n(g)},[g]);const b=o.useCallback(()=>{d(a=>!a)},[]),{heatmapData:f,xLabels:y,yLabels:v}=o.useMemo(()=>{if(0===a.length||0===e.length||!g)return{heatmapData:null,xLabels:[],yLabels:[]};let n,o;if(c){const a=e.filter(a=>a<=Dw);if(0===a.length)return{heatmapData:null,xLabels:[],yLabels:[]};const t=[...a].sort((a,e)=>a-e),r=Fw(t,5),s=Fw(t,95),i=.1*(s-r||1);n=r-i,o=s+i}else{const a=e.filter(a=>a<=Dw);if(0===a.length)return{heatmapData:null,xLabels:[],yLabels:[]};const t=Math.min(...a),r=Math.max(...a),s=.1*(r-t||1);n=t-s,o=r+s}const r=o-n,s=a[0],i=a[a.length-1]-s||1,l=120,d=48,u=new Float32Array(5760),h=[];for(let t=0;tDw)continue;const m=(a[t]-s)/i,p=1-(Math.max(n,Math.min(o,c))-n)/r;u[Math.min(119,Math.floor(m*l))*d+Math.min(47,Math.floor(p*d))]++,h.push(a[t])}let m=0;for(let a=0;am&&(m=u[a]);const p=[],b=[];for(let a=0;ae&&(e=t,n=o)}if(-1===n||0===e)continue;const t=o-(n+.5)/d*r,c=s+(a+.5)/l*i;p.push(c),b.push(t)}const f=function(a,e,n){if(0===a.length)return[];const t=function(a,e){if(0===a.length)return[];const n=Math.floor(e/2),t=new Array(a.length),o=new Array(e);for(let r=0;ra-e),t[r]=o[n]}return t}(a,e),o=new Array(a.length);o[0]=t[0];for(let r=1;r0){const a=Math.min(...f),e=Math.max(...f),n=.4*(e-a||1);y=a-n,v=e+n,w=v-y}const k=[];for(let a=0;a{m.current=f,p.current=t});const w=o.useMemo(()=>{if(0===a.length)return[[],[]];const e=new Array(a.length).fill(1);return[a,e]},[a]),k=o.useMemo(()=>({hooks:{draw:a=>{!function(a,e,n){if(!e)return;const t=a.ctx,{left:o,top:r,width:s,height:i}=a.bbox,l=window.devicePixelRatio||1;if(s<=0||i<=0)return;const c=function(){const a=performance.now();if(Ew&&a-Bw<1e3)return Ew;const e=getComputedStyle(document.documentElement);return Ew={heatGradient:[qw(e.getPropertyValue("--sys-purple").trim()),qw(e.getPropertyValue("--sys-blue").trim()),qw(e.getPropertyValue("--sys-teal").trim()),qw(e.getPropertyValue("--sys-amber").trim()),qw(e.getPropertyValue("--sys-orange").trim())],trendLineColor:qw(e.getPropertyValue("--accent-secondary").trim()),stabilityHot:qw(e.getPropertyValue("--sys-amber").trim()),stabilityCool:qw(e.getPropertyValue("--sys-blue").trim()),typography:{fontFamily:e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',textMuted:e.getPropertyValue("--text-muted").trim()||"#727272",textSecondary:e.getPropertyValue("--text-secondary").trim()||"#A0A0A0",gridColor:e.getPropertyValue("--chart-grid-line").trim()||"rgba(255,255,255,0.06)"}},Bw=a,Ew}();t.clearRect(o,r,s,i),n||function(a,e,n,t,o,r,s){a.save(),a.strokeStyle=s,a.lineWidth=1*r,a.setLineDash([3*r,3*r]);for(const i of[0,.25,.5,.75,1]){const r=Math.round(n+o*i)+.5;a.beginPath(),a.moveTo(e,r),a.lineTo(e+t,r),a.stroke()}a.restore()}(t,o,r,s,i,l,c.typography.gridColor),function(a,e,n,t,o,r,s,i,l){const{trendLine:c,trendCount:d}=e;if(d<2)return;a.save();const u=s?3*.6:3;if(a.lineWidth=u*i,a.lineCap="round",a.lineJoin="round",s){let e=1/0,s=-1/0;for(let a=0;as&&(s=n)}const i=(e+s)/2,u=(s-e)/2||.01;for(let h=1;h({width:400,height:200,padding:[0,0,0,0],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[k]}),[k,t]);return o.useEffect(()=>{const e=u.current;if(!e||0===a.length)return;h.current&&h.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...x,width:t,height:o},w,e);return h.current=r,()=>{r.destroy(),h.current=null}},[x,w,a.length]),o.useEffect(()=>{const a=u.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!h.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&h.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{h.current&&h.current.redraw()},[f,c]),f?t?r.jsx("div",{ref:u,className:"w-full",style:{height:s??28},role:"img","aria-label":"Noise floor sparkline"}):r.jsxs("div",{className:"relative w-full h-full",role:"img","aria-label":`RF noise floor heatmap showing values from ${(null==(i=null==g?void 0:g.min)?void 0:i.toFixed(0))??"N/A"} to ${(null==(l=null==g?void 0:g.max)?void 0:l.toFixed(0))??"N/A"} dBm`,children:[r.jsx("div",{className:"absolute top-0 left-0 flex flex-col justify-between",style:{width:32,bottom:20},"aria-hidden":"true",children:v.map((a,e)=>r.jsx("span",{className:"type-data-xs text-text-secondary tabular-nums text-right pr-1.5",style:{position:"absolute",top:`${a.pos}%`,transform:"translateY(-50%)",right:0},children:a.label},e))}),r.jsx("div",{ref:u,className:"absolute overflow-hidden",style:{left:32,right:0,top:0,bottom:20},children:r.jsx("button",{type:"button",onClick:b,className:"absolute bottom-1 right-1 z-10 p-1.5 rounded bg-tooltip-bg/80 hover:bg-tooltip-bg active:bg-tooltip-bg transition-colors touch-manipulation",title:c?"Show full range (min/max)":"Show trimmed range (P5-P95)","aria-label":c?"Expand to show full data range":"Shrink to show trimmed percentile range","aria-pressed":!c,children:c?r.jsx(Or,{className:"w-3.5 h-3.5 text-text-muted","aria-hidden":"true"}):r.jsx(ns,{className:"w-3.5 h-3.5 text-text-muted","aria-hidden":"true"})})}),r.jsx("div",{className:"absolute left-0 right-0 bottom-0",style:{left:32,height:20},"aria-hidden":"true",children:y.map((a,e)=>r.jsx("span",{className:"type-data-xs text-text-secondary tabular-nums absolute top-1",style:{left:`${a.pos}%`,transform:"translateX(-50%)"},children:a.label},e))})]}):t?r.jsx("div",{className:"w-full rounded bg-bg-subtle/50",style:{height:s??28},"aria-hidden":"true"}):r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No noise floor data available"})});let Pw=null,Lw=0;function Rw(){const a=performance.now();if(Pw&&a-Lw<1e3)return Pw;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--chart-axis-tick").trim()||"rgba(255, 255, 255, 0.4)",o=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)",r=e.getPropertyValue("--text-muted").trim()||"#727272",s=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",i=e.getPropertyValue("--signal-critical").trim()||"#EF4444",l=e.getPropertyValue("--bg-body").trim()||"#171717";return Pw={fontFamily:n,axisColor:t,gridColor:o,textMuted:r,textPrimary:s,signalCritical:i,bgBody:l},Lw=a,Pw}function Nw(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}function Iw(a){return Nw(uw(a))}const _w=o.memo(function({scatterData:a,yAxisMode:e,onHover:n,noiseFloorAnomalies:t=null,showNoiseFloorOverlay:s=!1,overlayOpacity:i=.5,highlightedType:l=null,timeRangeHours:c=24}){const d=o.useRef(null),u=o.useRef(null),h=o.useRef(a),m=o.useRef(e),p=o.useRef(n),g=o.useRef(t),b=o.useRef(s),f=o.useRef(i),y=o.useRef(l),v=o.useRef(null),w=o.useRef(null),k=c<=12?1.2:1,x=o.useRef(k),j=(null==a?void 0:a.maxValue)??("share"===e?200:10),z=o.useRef(j);o.useLayoutEffect(()=>{h.current=a,m.current=e,p.current=n,g.current=t,b.current=s,f.current=i,y.current=l,x.current=k,z.current=j}),o.useEffect(()=>{v.current=Rw()},[]);const C=o.useMemo(()=>{if(!a||0===a.count)return[[0],[0]];const e=[];for(let t=0;ta-e);const n=e.map(()=>1);return[e,n]},[a]),A=o.useMemo(()=>({hooks:{draw:a=>{const e=v.current||Rw();!function(a,e,n,t,o,r,s,i,l,c,d){if(!e||0===e.count)return;const u=a.ctx,{left:h,top:m,width:p,height:g}=a.bbox,b=window.devicePixelRatio||1;if(p<=0||g<=0)return;const f=a.data[0],y=f.length;if(0===y)return;const v=f[0],w=f[y-1],k="share"===t,x=function(a,e){if("airtime"===e)return 5;const n=[10,20,25,50,100,200,250,500,1e3],t=a/4.5;for(const o of n)if(o>=t)return o;return a>5e3?1e3*Math.ceil(t/1e3):100*Math.ceil(t/100)}(n,t);if(!k&&n>=20){u.save();const a=m+g*(1-20/n),e=parseInt(o.bgBody.slice(1,3),16)||23,t=parseInt(o.bgBody.slice(3,5),16)||23,r=parseInt(o.bgBody.slice(5,7),16)||23;u.fillStyle=`rgba(${e}, ${t}, ${r}, 0.5)`,u.fillRect(h,m,p,a-m),u.restore()}u.save(),u.lineWidth=1*b,u.setLineDash([4*b,4*b]);for(let z=x;zn+o||(a.save(),a.strokeStyle=i.textPrimary,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()))}(u,d,h,m,p,g,b,o),function(a,e,n,t,o,r,s,i,l){const{points:c,rawValues:d,count:u,packetTypes:h}=e,m=1*i*(window.devicePixelRatio||1);a.globalCompositeOperation="source-over";const p=s?parseInt(s.replace("TYPE_",""),10):null;for(let g=0;g0&&function(a,e,n,t,o,r,s,i,l,c,d){if(0===e.length)return;const u=i-s||1,h=Nw(d.signalCritical);a.save(),a.globalAlpha=c,a.fillStyle=`rgb(${h.r}, ${h.g}, ${h.b})`;for(const m of e){if(m.endTsi)continue;const e=n+(Math.max(m.startTs,s)-s)/u*o,c=n+(Math.min(m.endTs,i)-s)/u*o,d=Math.max(c-e,2*l);a.fillRect(e,t,d,r)}a.restore()}(u,r,h,m,p,g,v,w,b,i,o)}(a,h.current,z.current,m.current,e,g.current,b.current,f.current,y.current,x.current,w.current)}}}),[]),D=o.useMemo(()=>({width:400,height:200,padding:[8,0,8,28],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[A]}),[A]);o.useEffect(()=>{const e=d.current;if(!e||!a||0===a.count)return;u.current&&u.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...D,width:t,height:o},C,e);return u.current=r,()=>{r.destroy(),u.current=null}},[D,C,null==a?void 0:a.count]),o.useEffect(()=>{const a=d.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!u.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&u.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{u.current&&u.current.redraw()},[a,t,s,i,l,k,e]);const E=o.useCallback(e=>{var n,t;const o=d.current,r=u.current;if(!o||!r||!a||0===a.count)return;const s=o.getBoundingClientRect(),i=e.clientX-s.left,l=window.devicePixelRatio||1,c=r.bbox,h=c.left/l,m=c.width/l;if(ih+m)return w.current=null,r.redraw(),void(null==(n=p.current)||n.call(p,null,void 0));w.current=i*l;const g=(i-h)/m,b=Math.floor(g*a.count),f=Math.max(0,Math.min(a.count-1,b));r.redraw(),null==(t=p.current)||t.call(p,f,g)},[null==a?void 0:a.count]),B=o.useCallback(()=>{var a;w.current=null,u.current&&u.current.redraw(),null==(a=p.current)||a.call(p,null,void 0)},[]);return a&&0!==a.count?r.jsx("div",{ref:d,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:E,onMouseLeave:B}):r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"})}),Vw=new class{constructor(){t(this,"observer",null),t(this,"subscribers",new Set),t(this,"isObserving",!1)}subscribe(a){return this.subscribers.add(a),this.isObserving||this.startObserving(),()=>{this.subscribers.delete(a),0===this.subscribers.size&&this.stopObserving()}}get subscriberCount(){return this.subscribers.size}startObserving(){"undefined"!=typeof window&&(this.isObserving||(this.observer=new MutationObserver(a=>{for(const e of a)if("data-theme"===e.attributeName||"data-color-scheme"===e.attributeName||"class"===e.attributeName){setTimeout(()=>this.notifySubscribers(),50);break}}),this.observer.observe(document.documentElement,{attributes:!0}),this.isObserving=!0))}stopObserving(){this.observer&&(this.observer.disconnect(),this.observer=null),this.isObserving=!1}notifySubscribers(){for(const e of this.subscribers)try{e()}catch(a){}}};function Ow(a){if(!a)return null;const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e)return{r:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[1])))),g:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[2])))),b:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[3]))))};if(a.startsWith("#")){const e=a.replace("#","");if(3===e.length)return{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)};if(e.length>=6)return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);return n?{r:Math.round(parseFloat(n[1])),g:Math.round(parseFloat(n[2])),b:Math.round(parseFloat(n[3]))}:null}function $w(a){return"undefined"==typeof window?"":getComputedStyle(document.documentElement).getPropertyValue(a).trim()}function Ww(a){return function(a){if(!a)return"";if(a.startsWith("#"))return a;const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e){const a=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[1])))),n=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[2])))),t=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[3]))));return`#${a.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}`}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);if(n){const a=Math.round(parseFloat(n[1])),e=Math.round(parseFloat(n[2])),t=Math.round(parseFloat(n[3]));return`#${a.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}`}return a}($w(a))}function Uw(a,e){const[n,t]=o.useState(e),r=o.useCallback(()=>{t(a())},[a]);return o.useEffect(()=>(r(),Vw.subscribe(r)),[r]),n}const Hw={chart1:"#719CDF",chart2:"#0074BE",chart3:"#6FBCBD",chart4:"#DFBC72",chart5:"#719872",chart6:"#E12672",chart7:"#E17899",chart8:"#999ABD"},Yw="#00FF00",Gw="#8CE619",Kw="#FFD900",Xw="#FF8C26",Jw="#FF3333",Zw={primary:"#719CDF",secondary:"#DFBC72",tertiary:"#6FBCBD",success:"#719872",danger:"#E12672"},Qw={primary:"#E4E4E4",secondary:"#BFBFBF",muted:"#727272"},ak={nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hubColor:"#8E4EC6",hubStroke:"rgba(255,255,255,0.9)",gatewayColor:"#5B5BD6",gatewayStroke:"rgba(255,255,255,0.85)",localColor:"#FFB224",neighborColor:"#FFB224",neighborStroke:"rgba(0,0,0,0.4)",mobileColor:"#F76B15",roomColor:"#D6409F",ghostColor:"#00A2C7"};function ek(){return"undefined"==typeof window?Hw:{chart1:$w("--chart-1")||Hw.chart1,chart2:$w("--chart-2")||Hw.chart2,chart3:$w("--chart-3")||Hw.chart3,chart4:$w("--chart-4")||Hw.chart4,chart5:$w("--chart-5")||Hw.chart5,chart6:$w("--chart-6")||Hw.chart6,chart7:$w("--chart-7")||Hw.chart7,chart8:$w("--chart-8")||Hw.chart8}}function nk(){return"undefined"==typeof window?Qw:{primary:$w("--text-primary")||Qw.primary,secondary:$w("--text-secondary")||Qw.secondary,muted:$w("--text-muted")||Qw.muted}}function tk(){return"undefined"==typeof window?Zw:{primary:$w("--accent-primary")||Zw.primary,secondary:$w("--accent-secondary")||Zw.secondary,tertiary:$w("--accent-tertiary")||Zw.tertiary,success:$w("--accent-success")||Zw.success,danger:$w("--accent-danger")||Zw.danger}}function ok(){return Uw(ek,Hw)}function rk(){return Uw(nk,Qw)}function sk(){return Uw(tk,Zw)}function ik(){return"undefined"==typeof window?ak:{nodeFill:$w("--map-node-fill")||ak.nodeFill,nodeStroke:$w("--map-node-stroke")||ak.nodeStroke,hubColor:$w("--map-hub-color")||ak.hubColor,hubStroke:$w("--map-hub-stroke")||ak.hubStroke,gatewayColor:$w("--map-gateway-color")||ak.gatewayColor,gatewayStroke:$w("--map-gateway-stroke")||ak.gatewayStroke,localColor:$w("--map-local-color")||ak.localColor,neighborColor:$w("--map-neighbor-color")||ak.neighborColor,neighborStroke:$w("--map-neighbor-stroke")||ak.neighborStroke,mobileColor:$w("--map-mobile-color")||ak.mobileColor,roomColor:$w("--map-room-color")||ak.roomColor,ghostColor:$w("--map-ghost-color")||ak.ghostColor}}function lk(){return Uw(ik,ak)}const ck={nodeStroke:"rgba(0,0,0,0.6)",hubStroke:"rgba(0,0,0,0.5)",gatewayStroke:"rgba(0,0,0,0.45)",neighborStroke:"rgba(0,0,0,0.5)"},dk={nodeStroke:"rgba(255,255,255,0.9)",hubStroke:"rgba(255,255,255,0.9)",gatewayStroke:"rgba(255,255,255,0.85)",neighborStroke:"rgba(0,0,0,0.4)"};function uk(a){if("undefined"==typeof window)return ak;const e="light"===function(){if("undefined"==typeof window)return"dark";const a=document.querySelector("[data-basemap]");return a&&a.getAttribute("data-basemap")||"dark"}()?ck:dk;return{nodeFill:Ww("--map-node-fill")||ak.nodeFill,nodeStroke:e.nodeStroke,hubColor:Ww("--map-hub-color")||ak.hubColor,hubStroke:e.hubStroke,gatewayColor:Ww("--map-gateway-color")||ak.gatewayColor,gatewayStroke:e.gatewayStroke,localColor:Ww("--map-local-color")||ak.localColor,neighborColor:Ww("--map-neighbor-color")||ak.neighborColor,neighborStroke:e.neighborStroke,mobileColor:Ww("--map-mobile-color")||ak.mobileColor,roomColor:Ww("--map-room-color")||ak.roomColor,ghostColor:Ww("--map-ghost-color")||ak.ghostColor}}const hk={rest:"#4B4B4B",restBright:"#616161",restDim:"#3F3F3F",hoverDirect:"#6FBCBD",hoverLoop:"#8B7BAD",hoverStandard:"#8A8A8A",hoverNeighbor:"#FBBF24",highlight:"#FFD700"},mk={rest:"rgba(0, 0, 0, 0.20)",restBright:"rgba(0, 0, 0, 0.30)",restDim:"rgba(0, 0, 0, 0.12)"},pk={rest:"rgba(255, 255, 255, 0.25)",restBright:"rgba(255, 255, 255, 0.35)",restDim:"rgba(255, 255, 255, 0.15)"};function gk(a){if("undefined"==typeof window)return hk;const e="light"===a?mk:pk;return{rest:e.rest,restBright:e.restBright,restDim:e.restDim,hoverDirect:Ww("--map-edge-hover-direct")||hk.hoverDirect,hoverLoop:Ww("--map-edge-hover-loop")||hk.hoverLoop,hoverStandard:Ww("--map-edge-hover-standard")||hk.hoverStandard,hoverNeighbor:Ww("--map-edge-hover-neighbor")||hk.hoverNeighbor,highlight:Ww("--map-edge-highlight")||hk.highlight}}const bk={grid:"rgba(191, 191, 191, 0.15)",axisTick:"#BFBFBF",cursor:"rgba(255, 255, 255, 0.2)"};function fk(){return"undefined"==typeof window?bk:{grid:$w("--chart-grid")||bk.grid,axisTick:$w("--chart-axis-tick")||bk.axisTick,cursor:$w("--chart-cursor")||bk.cursor}}function yk(){return Uw(fk,bk)}function vk(a,e){return $w(`--palette-${a}-${e}`)||""}function wk(){const a=[];for(let e=0;e<24;e++){const n=e/23,t=1-n,o=vk("aqua",[900,800,700,600,500,400,300,200,100,50][Math.min(8,Math.floor(9*t))]),r=parseInt(o.slice(1,3),16)||0,s=parseInt(o.slice(3,5),16)||0,i=parseInt(o.slice(5,7),16)||0,l=Math.round(80+130*n);a.push([r,s,i,l])}return a}function kk(){const a=$w("--signal-excellent")||Yw,e=$w("--signal-good")||Gw,n=$w("--signal-fair")||Kw,t=$w("--signal-poor")||Xw,o=$w("--signal-critical")||Jw,r=[];for(let s=0;s<24;s++){let i;i=s<5?a:s<10?e:s<15?n:s<20?t:o,r.push(i)}return r}function xk(){const a=Ww("--signal-excellent")||Yw,e=Ww("--signal-good")||Gw,n=Ww("--signal-fair")||Kw,t=Ww("--signal-poor")||Xw,o=Ww("--signal-critical")||Jw,r=[];for(let s=0;s<24;s++){let i;i=s<5?a:s<10?e:s<15?n:s<20?t:o,r.push(i)}return r}function jk(){const[a,e]=o.useState(()=>kk());return o.useEffect(()=>{const a=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e(kk())})})};return a(),Vw.subscribe(a)},[]),a}function zk(a){const e=(Math.max(-12,Math.min(12,a))- -12)/24;return Math.round(23*(1-e))}const Ck={red:"#E5484D",orange:"#F76B15",amber:"#FFB224",yellow:"#F5D90A",brown:"#AD7F58",green:"#46A758",teal:"#12A594",cyan:"#00A2C7",blue:"#3B82F6",indigo:"#5B5BD6",purple:"#8E4EC6",pink:"#D6409F"};function Ak(){return"undefined"==typeof window?Ck:{red:Ww("--sys-red")||Ck.red,orange:Ww("--sys-orange")||Ck.orange,amber:Ww("--sys-amber")||Ck.amber,yellow:Ww("--sys-yellow")||Ck.yellow,brown:Ww("--sys-brown")||Ck.brown,green:Ww("--sys-green")||Ck.green,teal:Ww("--sys-teal")||Ck.teal,cyan:Ww("--sys-cyan")||Ck.cyan,blue:Ww("--sys-blue")||Ck.blue,indigo:Ww("--sys-indigo")||Ck.indigo,purple:Ww("--sys-purple")||Ck.purple,pink:Ww("--sys-pink")||Ck.pink}}function Dk(){const a=o.useCallback(()=>"undefined"!=typeof document&&document.documentElement.classList.contains("ribbon-mode"),[]),[e,n]=o.useState(a);return o.useEffect(()=>(n(a()),Vw.subscribe(()=>n(a()))),[a]),e}let Ek=null,Bk=0;function Fk(){const a=performance.now();if(Ek&&a-Bk<1e3)return Ek;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",o=e.getPropertyValue("--text-secondary").trim()||"#BFBFBF",r=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)";return Ek={fontFamily:n,textPrimary:t,textSecondary:o,gridColor:r},Bk=a,Ek}function qk(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}let Sk=null,Mk=0;function Tk(a,e){return"airtime"===e?`${a}%`:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(0)}K`:`${a}`}function Pk(a,e,n,t,o,r,s,i,l,c,d,u=.9,h=!1){if(0===e.length)return;const m=e[0].timestamp,p=e[e.length-1].timestamp-m||1;if(a.save(),a.strokeStyle=`rgba(${t.r}, ${t.g}, ${t.b}, ${u})`,a.lineWidth=d*c,a.lineCap="round",a.lineJoin="round",h){a.beginPath();let t=!1,c=0,d=0;for(let u=0;u{l.current=a,c.current=e,d.current=n,u.current=t}),o.useEffect(()=>{h.current=Fk()},[]);const p=o.useMemo(()=>0===a.length?[[0],[0]]:[a.map(a=>a.timestamp),a.map(()=>1)],[a]),g=o.useMemo(()=>({hooks:{draw:a=>{const e=h.current||Fk();!function(a,e,n,t,o,r){if(0===e.length)return;const s=a.ctx,{left:i,top:l,width:c,height:d}=a.bbox,u=window.devicePixelRatio||1;if(c<=0||d<=0)return;const h=function(){const a=performance.now();return Sk&&a-Mk<1e3||(Sk=Ak(),Mk=a),Sk}(),m=qk(h.blue),p=qk(h.red),g=qk(h.yellow),b=(f=n,"airtime"===t?f<=5?1:f<=10?2:f<=20?5:Math.ceil(f/5):f<=100?25:f<=500?100:f<=1e3?200:f<=5e3?1e3:f<=1e4?2e3:1e3*Math.ceil(f/5e3));var f;s.save(),s.strokeStyle=o.textSecondary,s.globalAlpha=.3,s.lineWidth=1*u,s.setLineDash([3*u,3*u]);for(let v=b;vn+o||(a.save(),a.strokeStyle=i.textPrimary,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()))}(s,r,i,l,c,d,u,o),Pk(s,e,"rxSmooth",g,i,l,c,d,n,u,2,1,!0),Pk(s,e,"tx",p,i,l,c,d,n,u,2.5,.9,!1),Pk(s,e,"rx",m,i,l,c,d,n,u,2.5,.9,!1)}(a,l.current,d.current,c.current,e,m.current)}}}),[]),b=o.useMemo(()=>({width:400,height:200,padding:[8,8,8,44],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[g]}),[g]);o.useEffect(()=>{const e=s.current;if(!e||0===a.length)return;i.current&&i.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...b,width:t,height:o},p,e);return i.current=r,()=>{r.destroy(),i.current=null}},[b,p,a.length]),o.useEffect(()=>{const a=s.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!i.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&i.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{i.current&&i.current.redraw()},[a,n,e]);const f=o.useCallback(e=>{var n,t;const o=s.current,r=i.current;if(!o||!r||0===a.length)return;const l=o.getBoundingClientRect(),c=e.clientX-l.left,d=window.devicePixelRatio||1,h=r.bbox,p=h.left/d,g=h.width/d;if(cp+g)return m.current=null,r.redraw(),void(null==(n=u.current)||n.call(u,null));m.current=c*d;const b=(c-p)/g,f=Math.floor(b*a.length),y=Math.max(0,Math.min(a.length-1,f));r.redraw(),null==(t=u.current)||t.call(u,y)},[a.length]),y=o.useCallback(()=>{var a;m.current=null,i.current&&i.current.redraw(),null==(a=u.current)||a.call(u,null)},[]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:s,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:f,onMouseLeave:y})}),Rk=[{name:"Dashboard",to:"/",icon:Hr},{name:"Contacts",to:"/contacts",icon:Kr},{name:"Packets",to:"/packets",icon:Yr},{name:"Statistics",to:"/statistics",icon:Ir},{name:"MeshGraph",to:"/meshgraph",icon:rs},{name:"System",to:"/system",icon:Wr},{name:"Logs",to:"/logs",icon:$r},{name:"Terminal",to:"/terminal",icon:os},{name:"Configuration",to:"/configuration",icon:es}];function Nk(){var a,e,n,t,s,l;const{pathname:c}=k(),{stats:d,setMode:u,setDutyCycle:h,sendAdvert:m}=Yy(),p=function(){const a=ig();if(!a)return null;const e=ug(a);return e&&e.sub?e.sub:null}(),g=Hy(a=>a.prefetchForRoute),b=dv(),f=Hy(a=>a.packetCacheState.dataTier),y=pv(),v=Math.max(1,Math.ceil(my[y].minutes/60)),w=Dv(),x=Lv(),j=Kv();let z=null;try{z=function(){const a=o.useContext(Pp);if(!a)throw new Error("useSidebar must be used within a SidebarLayout");return a}()}catch{}const[C,A]=o.useState(!1),[D,E]=o.useState("idle"),[B,F]=o.useState(null),[q,S]=o.useState([]),M=o.useRef(null),T=o.useCallback(a=>{a!==c&&(M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{g(a)},100))},[c,g]),P=o.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null)},[]);o.useEffect(()=>{const a=async()=>{var a;try{const e=await Bg(v);e.success&&(null==(a=e.data)?void 0:a.history)&&S(e.data.history)}catch{}};a();const e=setInterval(a,6e4);return()=>clearInterval(e)},[v]);const L=null==d?void 0:d.noise_floor_dbm,R=(null==(e=null==(a=null==d?void 0:d.config)?void 0:a.repeater)?void 0:e.mode)??"forward",N=(null==(t=null==(n=null==d?void 0:d.config)?void 0:n.duty_cycle)?void 0:t.enforcement_enabled)??!1,I=(null==(l=null==(s=null==d?void 0:d.config)?void 0:s.duty_cycle)?void 0:l.max_airtime_percent)??10,_=b.isLoading||b.isBackgroundLoading||b.isTopologyLoading,V=_||w||x,O=b.loadProgress,$=()=>{null==z||z.close()};return r.jsxs(Dp,{children:[r.jsxs(Ep,{className:"px-5 py-6",children:[r.jsx("h1",{className:"sr-only",children:"pyMC Console"}),r.jsx(Xp,{responsive:!0,className:"block"}),r.jsxs("p",{className:"type-data-xs text-text-muted mt-1.5",children:["v",Gp]})]}),r.jsxs(Bp,{className:"py-4",children:[r.jsx(qp,{children:Rk.map(a=>{const e=c===a.to;return r.jsxs(Sp,{href:a.to,current:e,onClick:$,onMouseEnter:()=>T(a.to),onMouseLeave:P,children:[r.jsx(a.icon,{}),r.jsx(Mp,{children:a.name}),"/contacts"===a.to&&j.length>0&&r.jsxs(Tp,{variant:"accent",children:[r.jsx(Ur,{className:"w-3 h-3"}),r.jsx("span",{children:j.length})]}),"/meshgraph"===a.to&&r.jsx(Tp,{variant:"default",children:"Beta"})]},a.name)})}),V&&r.jsx("div",{className:"px-0 py-3",children:r.jsx(jv,{isLoading:_,borderRadius:12,children:r.jsxs("div",{className:"bg-glass-surface/50 rounded-xl p-2",children:[r.jsxs("div",{className:"flex items-center gap-2 px-1 py-0.5",children:[r.jsxs("div",{className:"relative flex h-2 w-2",children:[r.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-primary opacity-75"}),r.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-accent-primary"})]}),r.jsx("span",{className:"type-data-xs text-text-muted flex-1 truncate",children:b.isLoading&&O?"Loading 24h history...":b.isBackgroundLoading&&O?b.statusMessage||`Loading ${f} history...`:b.isTopologyLoading?"Loading topology data...":w?"Computing sparklines":x?"Building topology":"Analyzing database"}),null!==(null==O?void 0:O.percent)&&void 0!==(null==O?void 0:O.percent)&&_&&r.jsxs("span",{className:"type-data-xs text-text-muted tabular-nums",children:[O.percent,"%"]})]}),r.jsx("div",{className:"mt-1.5 h-1 bg-subtle-fill rounded-full overflow-hidden",children:null!==(null==O?void 0:O.percent)&&void 0!==(null==O?void 0:O.percent)&&_?r.jsx("div",{className:"h-full bg-accent-primary/60 rounded-full transition-all duration-300 ease-out",style:{width:`${O.percent}%`}}):r.jsx("div",{className:"h-full bg-accent-primary/40 rounded-full w-full"})}),!_&&r.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 px-1",children:[r.jsx("span",{className:"type-micro text-text-muted",children:"Data:"}),r.jsx("span",{className:"type-data-xs text-accent-primary",children:(a=>{switch(a){case"24h":return"24 hours";case"3d":return"3 days";case"7d":return"7 days";case"14d":return"14 days";default:return a}})(f)})]})]})})}),r.jsx("div",{className:"flex-1"}),r.jsx(Yp,{label:"Controls",icon:r.jsx(ts,{className:"w-5 h-5 text-accent-primary"}),defaultOpen:!1,direction:"up",dataId:"controls",children:r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx(Sr,{color:"success"===D?"success":"error"===D?"danger":"primary",onClick:async()=>{A(!0),E("idle"),F(null);const a=await m();A(!1),a.success?(E("success"),setTimeout(()=>E("idle"),1500)):(E("error"),F(a.error||"Failed to send"),setTimeout(()=>{E("idle"),F(null)},3e3))},disabled:C,className:"w-full justify-center",children:C?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{"data-slot":"icon",className:"animate-spin",viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending..."]}):"success"===D?r.jsxs(r.Fragment,{children:[r.jsx("svg",{"data-slot":"icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:r.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Sent!"]}):"error"===D?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{"data-slot":"icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Failed"]}):r.jsxs(r.Fragment,{children:[r.jsx(as,{"data-slot":"icon"}),"Send Advert"]})}),B&&r.jsx("p",{className:"text-accent-danger text-xs text-center",children:B}),r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-xs text-text-muted",children:"Repeat"}),r.jsx("span",{className:i("text-xs font-medium","forward"===R?"text-accent-success":"text-accent-secondary"),children:"forward"===R?"ON":"OFF"})]}),r.jsx(Sr,{color:"forward"===R?"success":"warning",onClick:()=>{u("forward"===R?"monitor":"forward")},className:"w-full justify-center",children:"forward"===R?r.jsxs(r.Fragment,{children:[r.jsx(Zr,{"data-slot":"icon"}),"Repeating"]}):r.jsxs(r.Fragment,{children:[r.jsx(Jr,{"data-slot":"icon"}),"Monitor Only"]})}),r.jsxs("div",{className:"flex items-center justify-between gap-2 mt-1",children:[r.jsx("span",{className:"text-xs text-text-muted",children:"Duty Cycle"}),r.jsx("span",{className:i("text-xs font-medium tabular-nums",N?"text-accent-secondary":"text-text-muted"),children:N?`${I}%`:"OFF"})]}),r.jsxs(Sr,{color:N?"warning":"muted",onClick:()=>{h(!N)},className:"w-full justify-center",children:[r.jsx(Wr,{"data-slot":"icon"}),N?`Limited to ${I}%`:"Disabled"]})]})})]}),r.jsx(Fp,{children:r.jsxs("div",{className:"p-3 flex flex-col gap-1",children:[void 0!==(null==d?void 0:d.uptime_seconds)&&r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[r.jsx(Vr,{className:"w-5 h-5 text-text-muted flex-shrink-0"}),r.jsxs("span",{className:"type-data-xs text-text-secondary tabular-nums",children:[Jv(d.uptime_seconds)," uptime"]})]}),r.jsxs("div",{className:"flex items-center gap-3 px-3 pt-2 pb-0.5",children:[r.jsx(Qr,{className:"w-5 h-5 text-accent-primary flex-shrink-0"}),r.jsx("span",{className:"type-data-xs text-text-muted",children:"Noise Floor"}),r.jsx("span",{className:"ml-auto type-data text-text-primary tabular-nums",children:null!=L?`${L.toFixed(0)} dBm`:"—"})]}),q.length>0&&r.jsx("div",{className:"px-3 pt-1 pb-1",children:r.jsxs("div",{className:"relative rounded-sm border-x border-white/25 bg-transparent overflow-hidden py-2",children:[r.jsx("div",{className:"absolute inset-y-0 left-0 w-2 bg-gradient-to-r from-sys-amber/15 to-transparent pointer-events-none"}),r.jsx("div",{className:"absolute inset-y-0 right-0 w-2 bg-gradient-to-l from-sys-amber/15 to-transparent pointer-events-none"}),r.jsx(Tw,{timestamps:q.map(a=>a.timestamp),values:q.map(a=>a.noise_floor_dbm),compact:!0,height:28})]})}),r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[r.jsx(kv,{showLabel:!0}),(null==d?void 0:d.version)&&r.jsxs("span",{className:"type-data-xs text-text-muted truncate",title:`v${d.version}`,children:["v",d.version]})]}),r.jsxs("button",{onClick:()=>{cg(),window.location.href="/login"},className:"flex items-center gap-3 px-3 py-2 rounded-xl text-text-muted hover:text-accent-danger hover:bg-accent-danger/10 transition-all duration-150",children:[r.jsx(Gr,{className:"w-5 h-5 flex-shrink-0"}),r.jsx("span",{className:"type-body-sm",children:"Sign Out"}),p&&r.jsxs("span",{className:"ml-auto type-data-xs",children:["(",p,")"]})]})]})})]})}function Ik(){const a=dv(),e=a.isLoading||a.isBackgroundLoading||a.isTopologyLoading;return r.jsxs(Ip,{children:[r.jsxs(_p,{children:[r.jsx("h1",{className:"sr-only",children:"pyMC Console"}),r.jsx(Xp,{height:26,className:"block"}),e&&r.jsx(zv,{className:"ml-2"})]}),r.jsx(Vp,{}),r.jsxs(_p,{children:[r.jsxs("p",{className:"type-data-xs text-text-muted",children:["v",Gp]}),r.jsx(kv,{})]})]})}const _k=o.memo(function(){const{theme:a}=nr(),{backgroundImage:e,brightness:n,colorScheme:t}=a,o=fa(t),s=(null==o?void 0:o.meta.backgroundImage)||null==o?void 0:o.meta.backgroundColor,i=(100-n)/100;return r.jsxs(r.Fragment,{children:[e?r.jsx("div",{className:"fixed inset-0 -z-20",style:{contain:"paint"},"aria-hidden":"true",children:r.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-300 ease-out",style:{backgroundImage:`url(${e})`}})}):s?r.jsx("div",{className:"fixed inset-0 -z-20 transition-colors duration-300 ease-out",style:{backgroundColor:s,contain:"paint"},"aria-hidden":"true"}):null,r.jsx("div",{className:"fixed inset-0 -z-10 bg-black pointer-events-none transition-opacity duration-200 ease-out",style:{opacity:i,contain:"paint"},"aria-hidden":"true"})]})}),Vk=20,Ok=12,$k=o.createContext(null);function Wk({children:a}){const[e,n]=o.useState({content:null,mouseX:0,mouseY:0,visible:!1}),t=o.useRef(null),[s,i]=o.useState({x:0,y:0}),l=o.useCallback((a,e,t)=>{n({content:a,mouseX:e,mouseY:t,visible:!0})},[]),c=o.useCallback(()=>{n(a=>({...a,visible:!1}))},[]),d=o.useCallback((a,e)=>{n(n=>n.visible?{...n,mouseX:a,mouseY:e}:n)},[]);o.useEffect(()=>{if(!e.visible||!t.current)return;const a=t.current.getBoundingClientRect(),{mouseX:n,mouseY:o}=e,r=window.innerWidth,s=window.innerHeight;let l,c;l=n+Vk+a.width+Ok>r?n-Vk-a.width:n+Vk,l=Math.max(Ok,Math.min(l,r-a.width-Ok)),c=o-Vk-a.height{c.current&&(clearTimeout(c.current),c.current=null)},h=o.useCallback(e=>{u(),c.current=setTimeout(()=>{d.current=!0,t(a,e.clientX,e.clientY)},n)},[t,a,n]),m=o.useCallback(a=>{d.current&&i(a.clientX,a.clientY)},[i]),p=o.useCallback(()=>{u(),d.current=!1,s()},[s]),g=o.useCallback(()=>{if(u(),!l.current)return;const e=l.current.getBoundingClientRect();c.current=setTimeout(()=>{d.current=!0,t(a,e.left+e.width/2,e.top)},n)},[t,a,n]),b=o.useCallback(()=>{u(),d.current=!1,s()},[s]);return o.useEffect(()=>()=>{u(),d.current&&(d.current=!1,s())},[s]),o.useEffect(()=>{const a=()=>{d.current&&(u(),d.current=!1,s())};return document.addEventListener("click",a,!0),()=>document.removeEventListener("click",a,!0)},[s]),r.jsx("span",{ref:l,onMouseEnter:h,onMouseMove:m,onMouseLeave:p,onFocus:g,onBlur:b,className:"contents",children:e})}function Hk({label:a}){return r.jsx("div",{className:"min-h-[50vh]","aria-label":`Loading ${a}`,"aria-busy":"true"})}function Yk(){return r.jsx(Hk,{label:"dashboard"})}function Gk(){return r.jsx(Hk,{label:"list"})}function Kk(){return r.jsx(Hk,{label:"map"})}function Xk(){return r.jsx(Hk,{label:"charts"})}function Jk(){return r.jsx(Hk,{label:"settings"})}function Zk(){return r.jsx(Hk,{label:"system"})}function Qk({children:a}){return r.jsx(r.Fragment,{children:a})}const ax=o.lazy(()=>y(()=>import("./Login-CLMnOgmx.js"),__vite__mapDeps([0,1,2,3]))),ex=o.lazy(()=>y(()=>import("./Dashboard-0Mm3av1O.js"),__vite__mapDeps([4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,3,24,25,26]))),nx=o.lazy(()=>y(()=>import("./Packets-DNl0vhne.js"),__vite__mapDeps([27,1,13,9,10,11,12,14,15,16,17,18,19,20,21,22,8,28,5,25,3]))),tx=o.lazy(()=>y(()=>import("./Contacts-BZbynpbU.js").then(a=>a.C),__vite__mapDeps([29,1,30,5,31,17,23,11,19,13,28,32,16,20,33,34,3,35,15,36,37]))),ox=o.lazy(()=>y(()=>import("./Statistics-D_MqXTgr.js"),__vite__mapDeps([38,1,39,18,40,7,8,5,13,33,34,3,17,16,25,41,31,26,42,35,37]))),rx=o.lazy(()=>y(()=>import("./MeshGraph-BcggNpqL.js"),__vite__mapDeps([43,1,44,2,13,31,21,15,36,42,35,3]))),sx=o.lazy(()=>y(()=>import("./MeshGraphLabelTest-SejBKwwA.js"),__vite__mapDeps([45,1,15,3]))),ix=o.lazy(()=>y(()=>import("./System-ZsL3Sv4K.js"),__vite__mapDeps([46,1,5,17,25,12,35,19,47,26,3]))),lx=o.lazy(()=>y(()=>import("./Logs-DOPaGEpF.js"),__vite__mapDeps([48,1,39,5,25,3]))),cx=o.lazy(()=>y(()=>import("./Terminal-Val-2gFV.js"),__vite__mapDeps([49,1,30,3,10,5]))),dx=o.lazy(()=>y(()=>import("./Configuration-DnJo15di.js"),__vite__mapDeps([50,1,32,17,51,24,5,13,25,15,41,26,20,47,14,3])));function ux({children:a}){const e=k();return dg()?r.jsx(r.Fragment,{children:a}):r.jsx(z,{to:"/login",state:{from:e},replace:!0})}class hx extends o.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}render(){var a;return this.state.hasError?r.jsxs("div",{className:"surface-base rounded-2xl p-8 text-center",children:[r.jsx("p",{className:"type-subheading text-accent-red mb-2",children:"Page failed to render"}),r.jsx("p",{className:"type-body text-white/50 mb-4",children:(null==(a=this.state.error)?void 0:a.message)||"Unknown error"}),r.jsx("button",{onClick:()=>this.setState({hasError:!1}),className:"px-4 py-2 bg-accent-primary/20 text-accent-primary rounded-lg hover:bg-accent-primary/30 transition-colors",children:"Try Again"})]}):this.props.children}}function mx(){const a=Hy(a=>a.initializeApp),e=dg();return o.useEffect(()=>{if(!e)return;a(),yb.getState().initialize();const n=setInterval(()=>{yg()},3e4);return yg(),function(){if(vg)return;if("undefined"==typeof document)return;const a=async()=>{if("visible"!==document.visibilityState)return;if(!ig())return;if(hg())return cg(),void("undefined"==typeof window||window.location.pathname.includes("/login")||(window.location.href="/login"));const a=mg();a>0&&a<300&&await bg()};document.addEventListener("visibilitychange",a),vg=!0,"visible"===document.visibilityState&&a()}(),()=>clearInterval(n)},[a,e]),r.jsxs(Wk,{children:[r.jsx(_k,{}),r.jsxs(x,{children:[r.jsx(j,{path:"/login",element:r.jsx(o.Suspense,{fallback:r.jsx("div",{className:"min-h-screen bg-bg-body"}),children:r.jsx(ax,{})})}),r.jsx(j,{path:"/meshgraph-label-test",element:r.jsx(o.Suspense,{fallback:r.jsx("div",{className:"min-h-screen bg-black"}),children:r.jsx(sx,{})})}),r.jsx(j,{path:"/*",element:r.jsx(ux,{children:r.jsx(Np,{sidebar:r.jsx(Nk,{}),navbar:r.jsx(Ik,{}),children:r.jsx("div",{className:"px-4 sm:px-6 lg:px-8 pt-5 pb-4 sm:pb-6 lg:pb-8 max-w-7xl mx-auto",children:r.jsx(hx,{children:r.jsxs(x,{children:[r.jsx(j,{path:"/",element:r.jsx(o.Suspense,{fallback:r.jsx(Yk,{}),children:r.jsx(Qk,{children:r.jsx(ex,{})})})}),r.jsx(j,{path:"/packets",element:r.jsx(o.Suspense,{fallback:r.jsx(Gk,{}),children:r.jsx(Qk,{children:r.jsx(nx,{})})})}),r.jsx(j,{path:"/contacts",element:r.jsx(o.Suspense,{fallback:r.jsx(Kk,{}),children:r.jsx(Qk,{children:r.jsx(tx,{})})})}),r.jsx(j,{path:"/statistics",element:r.jsx(o.Suspense,{fallback:r.jsx(Xk,{}),children:r.jsx(Qk,{children:r.jsx(ox,{})})})}),r.jsx(j,{path:"/meshgraph",element:r.jsx(o.Suspense,{fallback:r.jsx(Xk,{}),children:r.jsx(Qk,{children:r.jsx(rx,{})})})}),r.jsx(j,{path:"/system",element:r.jsx(o.Suspense,{fallback:r.jsx(Zk,{}),children:r.jsx(Qk,{children:r.jsx(ix,{})})})}),r.jsx(j,{path:"/logs",element:r.jsx(o.Suspense,{fallback:r.jsx(Gk,{}),children:r.jsx(Qk,{children:r.jsx(lx,{})})})}),r.jsx(j,{path:"/terminal",element:r.jsx(o.Suspense,{fallback:r.jsx(Gk,{}),children:r.jsx(Qk,{children:r.jsx(cx,{})})})}),r.jsx(j,{path:"/configuration",element:r.jsx(o.Suspense,{fallback:r.jsx(Jk,{}),children:r.jsx(Qk,{children:r.jsx(dx,{})})})})]})})})})})})]})]})}const px=console.warn;console.warn=(...a)=>{const e=a[0];if("string"==typeof e){if(e.includes("width")&&e.includes("height")&&e.includes("chart should be greater than 0"))return;if(e.includes("Unable to load glyph range"))return}px.apply(console,a)},f.createRoot(document.getElementById("root")).render(r.jsx(o.StrictMode,{children:r.jsx(er,{children:r.jsx(C,{children:r.jsx(mx,{})})})}));export{ls as $,Jh as A,Ar as B,cy as C,my as D,Zv as E,gv as F,vb as G,xp as H,Cp as I,_r as J,Ky as K,kv as L,fv as M,dv as N,Sg as O,Xp as P,Ir as Q,Qr as R,gw as S,Uk as T,bw as U,or as V,rr as W,Sr as X,ss as Y,Lc as Z,Dc as _,Ho as a,Jr as a$,ds as a0,lf as a1,cf as a2,df as a3,kr as a4,ew as a5,fr as a6,yr as a7,hy as a8,bp as a9,bv as aA,Av as aB,Dv as aC,yv as aD,Ak as aE,zg as aF,Cg as aG,Lk as aH,gr as aI,_w as aJ,Zo as aK,jk as aL,sk as aM,ok as aN,rk as aO,Dk as aP,yy as aQ,Wv as aR,Hv as aS,Kv as aT,rs as aU,py as aV,fy as aW,Tw as aX,By as aY,Sv as aZ,Xv as a_,am as aa,Wb as ab,Qv as ac,Vr as ad,ay as ae,as as af,kk as ag,zk as ah,Ov as ai,Pv as aj,Yv as ak,ry as al,Dr as am,rw as an,aw as ao,sr as ap,Op as aq,$v as ar,Gv as as,Ur as at,ow as au,Uv as av,Yy as aw,cv as ax,Mv as ay,Tv as az,uw as b,Tb as b$,Zr as b0,vy as b1,ov as b2,rv as b3,sv as b4,iv as b5,tv as b6,Jv as b7,Tg as b8,Zy as b9,Ub as bA,Pf as bB,Gb as bC,pf as bD,Rf as bE,Sf as bF,Mf as bG,Tf as bH,Hb as bI,Kb as bJ,Yb as bK,Lf as bL,sf as bM,af as bN,ef as bO,Ob as bP,Vb as bQ,Rb as bR,qb as bS,Fb as bT,_b as bU,Lb as bV,Pb as bW,Sb as bX,Ib as bY,Nb as bZ,Mb as b_,Qy as ba,ev as bb,nv as bc,$r as bd,ky as be,Gp as bf,uf as bg,Dg as bh,Lg as bi,Rg as bj,Ng as bk,Pg as bl,Ig as bm,os as bn,wb as bo,Bb as bp,kb as bq,xb as br,jb as bs,zb as bt,rf as bu,tf as bv,of as bw,Nf as bx,hf as by,mf as bz,Nr as c,Zf as c0,Qf as c1,Qb as c2,Zb as c3,Jb as c4,Xb as c5,nf as c6,xg as c7,nr as c8,Ea as c9,Zc as cA,Ni as cB,ms as cC,Ec as cD,pl as cE,al as cF,ml as cG,ac as cH,Cs as cI,js as cJ,pd as cK,gd as cL,gu as cM,iu as cN,kd as cO,eh as cP,Tc as cQ,ul as cR,ou as cS,Gh as cT,_s as cU,rh as cV,Lv as cW,Rv as cX,jv as cY,Ta as ca,bb as cb,es as cc,ts as cd,nw as ce,tw as cf,zp as cg,Ap as ch,xk as ci,Ow as cj,uk as ck,gk as cl,lk as cm,wk as cn,Jg as co,uy as cp,ir as cq,Fv as cr,hv as cs,db as ct,Os as cu,qd as cv,fd as cw,lm as cx,Vh as cy,jc as cz,by as d,Xy as e,Jy as f,og as g,av as h,dg as i,Gy as j,uv as k,gg as l,up as m,lv as n,pv as o,Bg as p,mv as q,dy as r,rg as s,oy as t,yk as u,ly as v,ob as w,sy as x,iy as y,$b as z}; diff --git a/frontend/dist/assets/index-_WuEOacy.js b/frontend/dist/assets/index-_WuEOacy.js deleted file mode 100644 index 97a418dd..00000000 --- a/frontend/dist/assets/index-_WuEOacy.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-Cq--s1gM.js","assets/vendor-react-BKIq8k5U.js","assets/config-C7QO3CEB.js","assets/vendor-core-D1aqi_5O.js","assets/Dashboard-OzXZ0ZNo.js","assets/PageLayout-C4LpOVqW.js","assets/link-scoring-0iadiYJr.js","assets/TimeRangeSelector-DuDkpPdY.js","assets/index-DU6QWVJT.js","assets/PacketList-BKgLb74Z.js","assets/payload-decoders-BC60O4FC.js","assets/SignalIndicator-BLxNXr0z.js","assets/arrow-up-Bfc4DrcP.js","assets/DataBox-ihLFk7Um.js","assets/chevron-right-DMrbDIps.js","assets/loader-circle-E8BhCd6Y.js","assets/map-pin-yDOfK60-.js","assets/triangle-alert-aHb4szMy.js","assets/route-C2p1jL3a.js","assets/activity-CYJ1WO67.js","assets/circle-check-COooBZCl.js","assets/database-DzqBwrzM.js","assets/house-BBcJvvl1.js","assets/LightSparkline-CdHE3FTK.js","assets/NodeInformationCard-Cdt6BsTw.js","assets/Card-BSUcfChC.js","assets/Grid-BkE6UU8f.js","assets/Packets-CnekH9QD.js","assets/users-DMMZTLQq.js","assets/Contacts-CoDOi-Be.js","assets/ping-BaWqaU2w.js","assets/git-branch-BPL9j6g1.js","assets/ConfirmModal-DDMJAre1.js","assets/CollisionExplorerModal-DgkiEMYI.js","assets/BasemapLayer-BldfARb5.js","assets/network-DFMZ0mT7.js","assets/target-SwsSSLmm.js","assets/maplibre-gl-B1CfjdFi.css","assets/Statistics-CQXTbOcj.js","assets/usePolling-_rZ6EKji.js","assets/compass-BKAMqa2d.js","assets/info-Gfj05Fvi.js","assets/settings-2-DSst-qFC.js","assets/MeshGraph-CQV_BObm.js","assets/DeepAnalysisModal-Bs0eqWHM.js","assets/MeshGraphLabelTest-k3DKgt5_.js","assets/System-CtoOYGp_.js","assets/refresh-cw-J1p21ufp.js","assets/Logs-BwAIrcrO.js","assets/Terminal-CV8ay32y.js","assets/Configuration-dmqkTiMy.js","assets/font-loader-jlbdh9Fw.js"])))=>i.map(i=>d[i]); -var a,e,n=Object.defineProperty,t=(a,e,t)=>((a,e,t)=>e in a?n(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t)(a,"symbol"!=typeof e?e+"":e,t);import{r as o,j as r,b as s,c as i,L as l,h as c,z as d,Q as u,y as h,x as m,X as p,d as g,e as b,f}from"./vendor-react-BKIq8k5U.js";import{_ as y}from"./deckgl-DTsmDcfs.js";import{L as v,c as w,u as k,R as x,a as j,N as z,B as C}from"./vendor-core-D1aqi_5O.js";!function(){const a=document.createElement("link").relList;if(!(a&&a.supports&&a.supports("modulepreload"))){for(const a of document.querySelectorAll('link[rel="modulepreload"]'))e(a);new MutationObserver(a=>{for(const n of a)if("childList"===n.type)for(const a of n.addedNodes)"LINK"===a.tagName&&"modulepreload"===a.rel&&e(a)}).observe(document,{childList:!0,subtree:!0})}function e(a){if(a.ep)return;a.ep=!0;const e=function(a){const e={};return a.integrity&&(e.integrity=a.integrity),a.referrerPolicy&&(e.referrerPolicy=a.referrerPolicy),"use-credentials"===a.crossOrigin?e.credentials="include":"anonymous"===a.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(a);fetch(a.href,e)}}();const A={surfaces:{glass:{tint:"#252525",light:"#ffffff",dark:"#000000",reflexLight:.15,reflexDark:.8,blur:6,blurElevated:8,brightness:1,opacity:8,opacityElevated:12},card:{radius:"1.125rem",padding:"1.25rem",paddingCompact:"0.75rem"},sidebar:{tint:"rgba(113, 156, 223, 0.06)",width:"16rem",drawerWidth:"85vw"},modal:{radius:"1.125rem",backdropBlur:"8px",backdropColor:"rgba(0, 0, 0, 0.6)"}},colors:{bg:{body:"#171717",surface:"#252525",elevated:"#333233",subtle:"#3F3F3F"},border:{subtle:"#4B4B4B",strong:"#616161"},text:{primary:"#E1E1E1",secondary:"#BFBFBF",muted:"#727272",inverse:"#171717"},accent:{primary:"#719CDF",secondary:"#DFBC72",tertiary:"#6FBCBD",success:"#719872",danger:"#E12672"},signal:{excellent:"#00FF00",good:"#8CE619",fair:"#FFD900",poor:"#FF8C26",critical:"#FF3333",unknown:"#616161"},status:{success:"#719872",warning:"#DFBC72",danger:"#E12672",info:"#6FBCBD",muted:"#616161"},chart:{c1:"#719CDF",c2:"#0074BE",c3:"#6FBCBD",c4:"#DFBC72",c5:"#719872",c6:"#E12672",c7:"#E17899",c8:"#999ABD",grid:"rgba(255, 255, 255, 0.06)",axis:"rgba(255, 255, 255, 0.4)",cursor:"rgba(255, 255, 255, 0.2)"},metric:{received:"#719872",forwarded:"#0074BE",transmitted:"#DFBC72",dropped:"#E12672"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#8E4EC6",local:"#FFB224",neighbor:"#46A758",mobile:"#F76B15",room:"#D6409F",edge:"#4B4B4B",edgeHover:"#6FBCBD"}},typography:{font:{title:"'Inter', system-ui, sans-serif",display:"'Inter', system-ui, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Monaco, monospace"},size:{xs:"0.64rem",sm:"0.8rem",base:"1rem",md:"1.125rem",lg:"1.25rem",xl:"1.563rem",xxl:"1.953rem",hero:"3.052rem"},weight:{normal:400,medium:500,semibold:600,bold:700},leading:{tight:1.1,snug:1.25,normal:1.5},tracking:{tight:"-0.02em",normal:"0",wide:"0.05em"}},spacing:{space:{gap:"1.5rem",gapMobile:"0.75rem",page:"1.5rem",pageMobile:"1rem",section:"2rem"},radius:{sm:"0.5rem",md:"0.875rem",lg:"1.125rem",xl:"1.5rem",pill:"9999px"}},motion:{fast:"0.1s",normal:"0.15s",slow:"0.4s",easing:"ease-out"}};function D(a){const e=a.replace("#","");if(6!==e.length&&3!==e.length)return a;let n,t,o;return 3===e.length?(n=parseInt(e[0]+e[0],16)/255,t=parseInt(e[1]+e[1],16)/255,o=parseInt(e[2]+e[2],16)/255):(n=parseInt(e.slice(0,2),16)/255,t=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255),`color(display-p3 ${n.toFixed(3)} ${t.toFixed(3)} ${o.toFixed(3)})`}function E(){return"undefined"!=typeof window&&CSS.supports("color","color(display-p3 1 1 1)")}function B(a,e){const n={...a};for(const t of Object.keys(e)){const o=e[t],r=a[t];void 0!==o&&("object"!=typeof o||null===o||Array.isArray(o)||"object"!=typeof r||null===r||Array.isArray(r)?n[t]=o:n[t]=B(r,o))}return n}function F(a){return{meta:a.meta,display:a.display,surfaces:a.surfaces?B(A.surfaces,a.surfaces):A.surfaces,colors:a.colors?B(A.colors,a.colors):A.colors,typography:a.typography?B(A.typography,a.typography):A.typography,spacing:a.spacing?B(A.spacing,a.spacing):A.spacing,motion:a.motion?B(A.motion,a.motion):A.motion}}function q(a){const e=a.replace("#","");return 6===e.length?`${parseInt(e.slice(0,2),16)}, ${parseInt(e.slice(2,4),16)}, ${parseInt(e.slice(4,6),16)}`:"255, 255, 255"}function S(a){return{id:a.meta.id,colorScheme:{name:a.meta.name,dataTheme:a.meta.dataTheme,previewColor:a.meta.previewColor},background:{src:a.meta.backgroundImage,suggestedBrightness:a.meta.backgroundBrightness},display:{font:a.display.font,color:a.display.color,size:a.display.size,paletteColors:a.display.palette}}}const M="#fafafa",T="#a1a1aa",P="#71717a",L="#3f3f46",R="#27272a",N="#18181b",I="#09090b",_="#ef4444",V="#f97316",O="#f59e0b",$="#eab308",W="#22c55e",U="#10b981",H="#06b6d4",Y="#3b82f6",G="#8b5cf6",K=F({meta:{id:"",name:"",dataTheme:"",previewColor:Y,backgroundImage:"",backgroundBrightness:100,isDark:!0},display:{font:"Inter, sans-serif",color:T,size:1,palette:[[Y,W,$,V,_],[I,N,R,L,M]]},typography:{font:{title:"Inter, sans-serif",display:"Inter, sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},weight:{normal:400,medium:500,semibold:600,bold:700,badge:700},tracking:{tight:"-0.02em",normal:"0",wide:"0.025em"},badge:{textTransform:"capitalize"}},surfaces:{glass:{tint:N,light:L,dark:I,reflexLight:0,reflexDark:0,blur:0,blurElevated:0,brightness:1,opacity:100,opacityElevated:100,catalystMode:!0},sidebar:{tint:`${R}80`},card:{radius:"0.5rem"},modal:{radius:"0.75rem"}},colors:{bg:{body:I,surface:N,elevated:R,subtle:R},border:{subtle:R,strong:"#52525b"},text:{primary:"#fff",secondary:T,muted:P,inverse:I},accent:{primary:Y,secondary:$,tertiary:H,success:W,danger:_},signal:{excellent:W,good:"#84cc16",fair:$,poor:V,critical:_,unknown:P},status:{success:W,warning:O,danger:_,info:Y,muted:P},chart:{c1:Y,c2:U,c3:O,c4:V,c5:"#f43f5e",c6:G,c7:H,c8:P,grid:`${M}0d`,axis:`${M}33`,cursor:`${Y}33`},metric:{received:Y,forwarded:U,transmitted:V,dropped:_},map:{nodeFill:Y,nodeStroke:`${M}e6`,hub:G,local:O,neighbor:U,mobile:V,room:"#ec4899",edge:L,edgeHover:Y}}}),X=K;S(K);const J=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#B39DF3",backgroundImage:"/assets/sand.jpg",backgroundBrightness:80,isDark:!0},display:{font:"'Rubik Mono One', monospace",color:"#4A4A52",size:.8,palette:[["#B49DFF","#F9D26F","#71F8E5","#39D98A","#FF5C7A"],["#4CFFB5","#FF8A5C","#A78BFA","#60A5FA","#F472B6"]]},typography:{font:{title:"'Rubik Mono One', monospace"}},surfaces:{glass:{tint:"#252525",blur:6,blurElevated:8},sidebar:{tint:"rgba(113, 156, 223, 0.06)"}}}),Z=J;S(J);const Q=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#fabd2f",backgroundImage:"/assets/magma.webp",backgroundBrightness:50,isDark:!0},display:{font:"'Jacquard 12', serif",color:"#fe8019",size:1.75,palette:[["#fabd2f","#fb4934","#8ec07c","#b8bb26","#d3869b"],["#fe8019","#83a598","#d65d0e","#928374","#ebdbb2"]]},typography:{font:{title:"'Jacquard 12', serif"},size:{xxl:"2.344rem"}},surfaces:{glass:{tint:"#282828"},sidebar:{tint:"rgba(250, 189, 47, 0.06)"}},colors:{accent:{primary:"#fabd2f",secondary:"#fb4934",tertiary:"#8ec07c",success:"#b8bb26",danger:"#fb4934"},signal:{excellent:"#b8bb26",good:"#8ec07c",fair:"#fabd2f",poor:"#fe8019",critical:"#fb4934",unknown:"#928374"},status:{success:"#b8bb26",warning:"#fabd2f",danger:"#fb4934",info:"#83a598",muted:"#928374"},chart:{c1:"#fabd2f",c2:"#fe8019",c3:"#fb4934",c4:"#d3869b",c5:"#b8bb26",c6:"#8ec07c",c7:"#83a598",c8:"#d65d0e",grid:"rgba(251, 241, 199, 0.06)",axis:"rgba(251, 241, 199, 0.4)",cursor:"rgba(251, 241, 199, 0.2)"},metric:{received:"#b8bb26",forwarded:"#83a598",transmitted:"#fabd2f",dropped:"#fb4934"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b16286",local:"#fabd2f",neighbor:"#fabd2f",mobile:"#fe8019",room:"#d3869b",edge:"#665c54",edgeHover:"#8ec07c"}}}),aa=Q;S(Q);const ea=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#83a598",backgroundImage:"/assets/water.webp",backgroundBrightness:40,isDark:!0},display:{font:"'Cantora One', sans-serif",color:"#83a598",size:1.25,palette:[["#83a598","#a89984","#8ec07c","#d79921","#b16286"],["#fe8019","#cc241d","#7c6f64","#bdae93","#ebdbb2"]]},typography:{font:{title:"'Cantora One', sans-serif"},size:{xxl:"2.148rem"},weight:{semibold:500}},surfaces:{glass:{tint:"#1e1e1e"},sidebar:{tint:"rgba(131, 165, 152, 0.06)"}},colors:{accent:{primary:"#83a598",secondary:"#a89984",tertiary:"#8ec07c",success:"#8ec07c",danger:"#cc241d"},signal:{excellent:"#8ec07c",good:"#b8bb26",fair:"#d79921",poor:"#fe8019",critical:"#cc241d",unknown:"#7c6f64"},status:{success:"#8ec07c",warning:"#d79921",danger:"#cc241d",info:"#83a598",muted:"#7c6f64"},chart:{c1:"#83a598",c2:"#8ec07c",c3:"#d79921",c4:"#b16286",c5:"#fe8019",c6:"#cc241d",c7:"#a89984",c8:"#7c6f64",grid:"rgba(213, 196, 161, 0.06)",axis:"rgba(213, 196, 161, 0.4)",cursor:"rgba(213, 196, 161, 0.2)"},metric:{received:"#8ec07c",forwarded:"#83a598",transmitted:"#d79921",dropped:"#cc241d"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b16286",local:"#d79921",neighbor:"#d79921",mobile:"#fe8019",room:"#b16286",edge:"#504945",edgeHover:"#83a598"}}}),na=ea;S(ea);const ta=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#33859d",backgroundImage:"/assets/stars.jpg",backgroundBrightness:100,isDark:!0},display:{font:"'IBM Plex Mono', monospace",color:"#c23127",size:1.25,palette:[["#33859d","#edb54b","#26a98b","#c23127","#888ca6"],["#195465","#d26939","#99d1ce","#4e5165","#0c1014"]]},typography:{font:{title:"'IBM Plex Mono', monospace"}},surfaces:{glass:{tint:"#0a0e14",blur:1,blurElevated:2},sidebar:{tint:"rgba(51, 133, 157, 0.06)"}},colors:{accent:{primary:"#33859d",secondary:"#edb54b",tertiary:"#26a98b",success:"#26a98b",danger:"#c33027"},signal:{excellent:"#26a98b",good:"#7ec07c",fair:"#edb54b",poor:"#d26939",critical:"#c33027",unknown:"#195465"},status:{success:"#26a98b",warning:"#edb54b",danger:"#c33027",info:"#599caa",muted:"#195465"},chart:{c1:"#33859d",c2:"#edb54b",c3:"#26a98b",c4:"#599caa",c5:"#d26939",c6:"#c33027",c7:"#888ba5",c8:"#195465",grid:"rgba(153, 209, 206, 0.06)",axis:"rgba(153, 209, 206, 0.4)",cursor:"rgba(153, 209, 206, 0.2)"},metric:{received:"#26a98b",forwarded:"#33859d",transmitted:"#edb54b",dropped:"#c33027"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#888ba5",local:"#edb54b",neighbor:"#edb54b",mobile:"#d26939",room:"#888ba5",edge:"#245361",edgeHover:"#26a98b"}}}),oa=ta;S(ta);const ra="#2D2D2D",sa="#4A4A4A",ia="#7A7A7A",la=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#9ed072",backgroundImage:"",backgroundColor:"#F5F5F5",backgroundBrightness:100,isDark:!1},display:{font:"'JetBrains Mono', monospace",color:"#2D2D2D",size:1,palette:[["#9ed072","#fc5d7c","#76cce0","#e7c664","#b39df3"],["#f39660","#7f8490","#e2e2e3","#55575e","#2c2e34"]]},typography:{font:{title:"'JetBrains Mono', 'SF Mono', Monaco, monospace",display:"'Instrument Sans', system-ui, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Monaco, monospace",cardTitle:"'JetBrains Mono', 'SF Mono', Monaco, monospace"},size:{xxl:"1.875rem",cardTitle:"1rem"},weight:{normal:400,medium:500,semibold:600,bold:600,cardTitle:600}},surfaces:{glass:{tint:"#FFFFFF",light:"rgba(255, 255, 255, 1)",dark:"rgba(0, 0, 0, 0.1)",reflexLight:0,reflexDark:0,blur:0,blurElevated:0,brightness:1,opacity:0,opacityElevated:0,ribbonMode:!0,ribbonBorderWidth:2,ribbonBorderColor:ia},sidebar:{tint:"rgba(0, 0, 0, 0.02)"}},colors:{bg:{body:"#F5F5F5",surface:"#FFFFFF",elevated:"#FFFFFF",subtle:"#EBEBEB"},border:{subtle:"#E0E0E0",strong:"#BFBFBF"},text:{primary:ra,secondary:sa,muted:ia,inverse:"#FFFFFF"},accent:{primary:"#9ed072",secondary:"#e7c664",tertiary:"#76cce0",success:"#9ed072",danger:"#fc5d7c"},signal:{excellent:"#9ed072",good:"#c5d93d",fair:"#e7c664",poor:"#f39660",critical:"#fc5d7c",unknown:"#7f8490"},status:{success:"#9ed072",warning:"#e7c664",danger:"#fc5d7c",info:"#76cce0",muted:"#7f8490"},chart:{c1:"#2E8B57",c2:"#E14D6B",c3:"#D4A832",c4:"#4A9EA0",c5:"#8B6BAE",c6:"#D97A4A",c7:ia,c8:sa,grid:"rgba(45, 45, 45, 0.08)",axis:"rgba(45, 45, 45, 0.5)",cursor:"rgba(45, 45, 45, 0.15)"},metric:{received:"#9ed072",forwarded:"#76cce0",transmitted:"#e7c664",dropped:"#fc5d7c"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#b39df3",local:"#e7c664",neighbor:"#e7c664",mobile:"#f39660",room:"#fc5d7c",edge:ia,edgeHover:"#76cce0"},icon:{pageTitle:ra,cardTitle:ra,widget:sa,action:sa,nav:ia,navActive:ra},sidebar:{bg:"rgba(0, 0, 0, 0.02)",navHoverBg:"rgba(0, 0, 0, 0.04)",navActiveBg:"rgba(0, 0, 0, 0.06)",navActiveText:ra}}}),ca=la;S(la);const da=F({meta:{id:"",name:"",dataTheme:"",previewColor:"#7E9CD8",backgroundImage:"/assets/folds.webp",backgroundBrightness:50,isDark:!0},display:{font:"'Inter', sans-serif",color:"#7E9CD8",size:1.25,palette:[["#7E9CD8","#E46876","#7AA89F","#DCA561","#957FB8"],["#7FB4CA","#D27E99","#98BB6C","#727169","#1F1F28"]]},typography:{font:{title:"'Inter', sans-serif"}},surfaces:{glass:{tint:"#1F1F28"},sidebar:{tint:"rgba(126, 156, 216, 0.06)"}},colors:{accent:{primary:"#7E9CD8",secondary:"#E6C384",tertiary:"#7FB4CA",success:"#98BB6C",danger:"#E46876"},signal:{excellent:"#98BB6C",good:"#B8CC5C",fair:"#E6C384",poor:"#FFA066",critical:"#E46876",unknown:"#54546D"},status:{success:"#98BB6C",warning:"#E6C384",danger:"#E46876",info:"#7FB4CA",muted:"#727169"},chart:{c1:"#7E9CD8",c2:"#E6C384",c3:"#98BB6C",c4:"#957FB8",c5:"#7FB4CA",c6:"#E46876",c7:"#FFA066",c8:"#D27E99",grid:"rgba(220, 215, 186, 0.06)",axis:"rgba(220, 215, 186, 0.4)",cursor:"rgba(220, 215, 186, 0.2)"},metric:{received:"#98BB6C",forwarded:"#7E9CD8",transmitted:"#E6C384",dropped:"#E46876"},map:{nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hub:"#957FB8",local:"#E6C384",neighbor:"#E6C384",mobile:"#FFA066",room:"#D27E99",edge:"#54546D",edgeHover:"#7AA89F"}}}),ua=da;S(da);const ha={"KDE Breeze":X,Magma:aa,Folds:ua,Ribbon:ca,BLKSAND:Z,Waves:na,Stars:oa};function ma(a,e){const n=a.toLowerCase();return{...e,meta:{...e.meta,id:n,name:a,dataTheme:n}}}const pa=Object.fromEntries(Object.entries(ha).map(([a,e])=>[a,ma(a,e)])),ga=Object.fromEntries(Object.entries(pa).map(([a,e])=>[a,S(e)])),ba=Object.values(pa);function fa(a){return ba.find(e=>e.meta.id===a)}new Map(Object.entries(pa));const ya=Object.values(ga);new Map(Object.entries(ga));const va=Object.entries(ga).map(([a,e])=>function(a,e){return{id:a.id,name:a.colorScheme.name,displayName:e,colorScheme:a.id,backgroundImage:a.background.src,paletteColors:a.display.paletteColors,displayFont:a.display.font,displayColor:a.display.color,displaySize:a.display.size}}(e,a)),wa=ya.map(function(a){return{id:a.id,name:a.colorScheme.name,dataTheme:a.colorScheme.dataTheme,previewColor:a.colorScheme.previewColor}}),ka=ya.map(function(a){return{id:a.id,src:a.background.src,suggestedScheme:a.id,suggestedBrightness:a.background.suggestedBrightness}}),xa=pa["KDE Breeze"];ga["KDE Breeze"];const ja=xa.meta.id,za=xa.meta.backgroundImage,Ca=xa.meta.backgroundBrightness,Aa=wa,Da=ka,Ea=va,Ba={colorScheme:ja,backgroundImage:za,brightness:Ca},Fa="pymc-color-scheme",qa="pymc-background-image",Sa="pymc-bg-brightness",Ma="pymc-background";function Ta(a){(new Image).src=a}const Pa={50:.97,100:.92,200:.84,300:.73,400:.62,500:.5,600:.4,700:.32,800:.24,900:.16},La=[50,100,200,300,400,500,600,700,800,900],Ra=["red","orange","yellow","green","aqua","blue","purple"];function Na(a,e,n){const t=a=>Math.round(Math.max(0,Math.min(255,a))).toString(16).padStart(2,"0");return`#${t(a)}${t(e)}${t(n)}`}function Ia(a){const e=a/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _a(a){const e=a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055;return Math.round(255*e)}function Va(a,e,n){const t=n*(Math.PI/180),o=e*Math.cos(t),r=e*Math.sin(t),s=a+.3963377774*o+.2158037573*r,i=a-.1055613458*o-.0638541728*r,l=a-.0894841775*o-1.291485548*r,c=s*s*s,d=i*i*i,u=l*l*l,h=-1.2684380046*c+2.6097574011*d-.3413193965*u,m=-.0041960863*c-.7034186147*d+1.707614701*u;return[_a(4.0767416621*c-3.3077115913*d+.2309699292*u),_a(h),_a(m)]}function Oa(a){const[e,n,t]=function(a){const e=a.replace("#","");return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}(a),[,o,r]=function(a,e,n){const t=Ia(a),o=Ia(e),r=Ia(n),s=.4122214708*t+.5363325363*o+.0514459929*r,i=.2119034982*t+.6806995451*o+.1073969566*r,l=.0883024619*t+.2817188376*o+.6299787005*r,c=Math.cbrt(s),d=Math.cbrt(i),u=Math.cbrt(l),h=.2104542553*c+.793617785*d-.0040720468*u,m=1.9779984951*c-2.428592205*d+.4505937099*u,p=.0259040371*c+.7827717662*d-.808675766*u,g=Math.sqrt(m*m+p*p);let b=Math.atan2(p,m)*(180/Math.PI);return b<0&&(b+=360),[h,g,b]}(e,n,t),s={};for(const i of La){const a=Pa[i],e=o*(1-.3*Math.abs(a-.5)),[n,t,l]=Va(a,e,r);s[i]=Na(n,t,l)}return s}function $a(a){return"undefined"==typeof window?"":getComputedStyle(document.documentElement).getPropertyValue(a).trim()}function Wa(a,e){"undefined"!=typeof document&&document.documentElement.style.setProperty(a,e)}const Ua="u-off",Ha="u-label",Ya="width",Ga="height",Ka="top",Xa="bottom",Ja="left",Za="right",Qa="#000",ae=Qa+"0",ee="mousemove",ne="mousedown",te="mouseup",oe="mouseenter",re="mouseleave",se="dblclick",ie="change",le="dppxchange",ce="--",de="undefined"!=typeof window,ue=de?document:null,he=de?window:null,me=de?navigator:null;let pe,ge;function be(a,e){if(null!=e){let n=a.classList;!n.contains(e)&&n.add(e)}}function fe(a,e){let n=a.classList;n.contains(e)&&n.remove(e)}function ye(a,e,n){a.style[e]=n+"px"}function ve(a,e,n,t){let o=ue.createElement(a);return null!=e&&be(o,e),null!=n&&n.insertBefore(o,t),o}function we(a,e){return ve("div",a,e)}const ke=new WeakMap;function xe(a,e,n,t,o){let r="translate("+e+"px,"+n+"px)";r!=ke.get(a)&&(a.style.transform=r,ke.set(a,r),e<0||n<0||e>t||n>o?be(a,Ua):fe(a,Ua))}const je=new WeakMap;function ze(a,e,n){let t=e+n;t!=je.get(a)&&(je.set(a,t),a.style.background=e,a.style.borderColor=n)}const Ce=new WeakMap;function Ae(a,e,n,t){let o=e+""+n;o!=Ce.get(a)&&(Ce.set(a,o),a.style.height=n+"px",a.style.width=e+"px",a.style.marginLeft=t?-e/2+"px":0,a.style.marginTop=t?-n/2+"px":0)}const De={passive:!0},Ee={...De,capture:!0};function Be(a,e,n,t){e.addEventListener(a,n,t?Ee:De)}function Fe(a,e,n,t){e.removeEventListener(a,n,De)}function qe(a,e,n,t){let o;n=n||0;let r=(t=t||e.length-1)<=2147483647;for(;t-n>1;)o=r?n+t>>1:Xe((n+t)/2),e[o]{let o=-1,r=-1;for(let s=n;s<=t;s++)if(a(e[s])){o=s;break}for(let s=t;s>=n;s--)if(a(e[s])){r=s;break}return[o,r]}}de&&function a(){let e=devicePixelRatio;pe!=e&&(pe=e,ge&&Fe(ie,ge,a),ge=matchMedia(`(min-resolution: ${pe-.001}dppx) and (max-resolution: ${pe+.001}dppx)`),Be(ie,ge,a),he.dispatchEvent(new CustomEvent(le)))}();const Me=a=>null!=a,Te=a=>null!=a&&a>0,Pe=Se(Me),Le=Se(Te);function Re(a,e,n,t){let o=nn(a),r=nn(e);a==e&&(-1==o?(a*=n,e/=n):(a/=n,e*=n));let s=10==n?tn:on,i=1==r?Ze:Xe,l=(1==o?Xe:Ze)(s(Ke(a))),c=i(s(Ke(e))),d=en(n,l),u=en(n,c);return 10==n&&(l<0&&(d=xn(d,-l)),c<0&&(u=xn(u,-c))),t||2==n?(a=d*o,e=u*r):(a=kn(a,d),e=wn(e,u)),[a,e]}function Ne(a,e,n,t){let o=Re(a,e,n,t);return 0==a&&(o[0]=0),0==e&&(o[1]=0),o}const Ie={mode:3,pad:.1},_e={pad:0,soft:null,mode:0},Ve={min:_e,max:_e};function Oe(a,e,n,t){return Sn(n)?We(a,e,n):(_e.pad=n,_e.soft=t?0:null,_e.mode=t?3:0,We(a,e,Ve))}function $e(a,e){return null==a?e:a}function We(a,e,n){let t=n.min,o=n.max,r=$e(t.pad,0),s=$e(o.pad,0),i=$e(t.hard,-sn),l=$e(o.hard,sn),c=$e(t.soft,sn),d=$e(o.soft,-sn),u=$e(t.mode,0),h=$e(o.mode,0),m=e-a,p=tn(m),g=an(Ke(a),Ke(e)),b=tn(g),f=Ke(b-p);(m<1e-24||f>10)&&(m=0,0!=a&&0!=e||(m=1e-24,2==u&&c!=sn&&(r=0),2==h&&d!=-sn&&(s=0)));let y=m||g||1e3,v=tn(y),w=en(10,Xe(v)),k=xn(kn(a-y*(0==m?0==a?.1:1:r),w/10),24),x=a>=c&&(1==u||3==u&&k<=c||2==u&&k>=c)?c:sn,j=an(i,k=x?x:Qe(x,k)),z=xn(wn(e+y*(0==m?0==e?.1:1:s),w/10),24),C=e<=d&&(1==h||3==h&&z>=d||2==h&&z<=d)?d:-sn,A=Qe(l,z>C&&e<=C?C:an(C,z));return j==A&&0==j&&(A=100),[j,A]}const Ue=new Intl.NumberFormat(de?me.language:"en-US"),He=a=>Ue.format(a),Ye=Math,Ge=Ye.PI,Ke=Ye.abs,Xe=Ye.floor,Je=Ye.round,Ze=Ye.ceil,Qe=Ye.min,an=Ye.max,en=Ye.pow,nn=Ye.sign,tn=Ye.log10,on=Ye.log2,rn=(a,e=1)=>Ye.asinh(a/e),sn=1/0;function ln(a){return 1+(0|tn((a^a>>31)-(a>>31)))}function cn(a,e,n){return Qe(an(a,e),n)}function dn(a){return"function"==typeof a}function un(a){return dn(a)?a:()=>a}const hn=a=>a,mn=(a,e)=>e,pn=a=>null,gn=a=>!0,bn=(a,e)=>a==e,fn=/\.\d*?(?=9{6,}|0{6,})/gm,yn=a=>{if(Fn(a)||jn.has(a))return a;const e=`${a}`,n=e.match(fn);if(null==n)return a;let t=n[0].length-1;if(-1!=e.indexOf("e-")){let[a,n]=e.split("e");return+`${yn(a)}e${n}`}return xn(a,t)};function vn(a,e){return yn(xn(yn(a/e))*e)}function wn(a,e){return yn(Ze(yn(a/e))*e)}function kn(a,e){return yn(Xe(yn(a/e))*e)}function xn(a,e=0){if(Fn(a))return a;let n=10**e,t=a*n*(1+Number.EPSILON);return Je(t)/n}const jn=new Map;function zn(a){return((""+a).split(".")[1]||"").length}function Cn(a,e,n,t){let o=[],r=t.map(zn);for(let s=e;s=0?0:e)+(s>=r[i]?0:r[i]),d=10==a?l:xn(l,c);o.push(d),jn.set(d,c)}}return o}const An={},Dn=[],En=[null,null],Bn=Array.isArray,Fn=Number.isInteger;function qn(a){return"string"==typeof a}function Sn(a){let e=!1;if(null!=a){let n=a.constructor;e=null==n||n==Object}return e}function Mn(a){return null!=a&&"object"==typeof a}const Tn=Object.getPrototypeOf(Uint8Array),Pn="__proto__";function Ln(a,e=Sn){let n;if(Bn(a)){let t=a.find(a=>null!=a);if(Bn(t)||e(t)){n=Array(a.length);for(let t=0;tr){for(t=s-1;t>=0&&null==a[t];)a[t--]=null;for(t=s+1;tPromise.resolve().then(a):queueMicrotask,_n=["January","February","March","April","May","June","July","August","September","October","November","December"],Vn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function On(a){return a.slice(0,3)}const $n=Vn.map(On),Wn=_n.map(On),Un={MMMM:_n,MMM:Wn,WWWW:Vn,WWW:$n};function Hn(a){return(a<10?"0":"")+a}const Yn={YYYY:a=>a.getFullYear(),YY:a=>(a.getFullYear()+"").slice(2),MMMM:(a,e)=>e.MMMM[a.getMonth()],MMM:(a,e)=>e.MMM[a.getMonth()],MM:a=>Hn(a.getMonth()+1),M:a=>a.getMonth()+1,DD:a=>Hn(a.getDate()),D:a=>a.getDate(),WWWW:(a,e)=>e.WWWW[a.getDay()],WWW:(a,e)=>e.WWW[a.getDay()],HH:a=>Hn(a.getHours()),H:a=>a.getHours(),h:a=>{let e=a.getHours();return 0==e?12:e>12?e-12:e},AA:a=>a.getHours()>=12?"PM":"AM",aa:a=>a.getHours()>=12?"pm":"am",a:a=>a.getHours()>=12?"p":"a",mm:a=>Hn(a.getMinutes()),m:a=>a.getMinutes(),ss:a=>Hn(a.getSeconds()),s:a=>a.getSeconds(),fff:a=>{return((e=a.getMilliseconds())<10?"00":e<100?"0":"")+e;var e}};function Gn(a,e){e=e||Un;let n,t=[],o=/\{([a-z]+)\}|[^{]+/gi;for(;n=o.exec(a);)t.push("{"==n[0][0]?Yn[n[1]]:n[0]);return a=>{let n="";for(let o=0;oa%1==0,Jn=[1,2,2.5,5],Zn=Cn(10,-32,0,Jn),Qn=Cn(10,0,32,Jn),at=Qn.filter(Xn),et=Zn.concat(Qn),nt="{YYYY}",tt="\n"+nt,ot="{M}/{D}",rt="\n"+ot,st=rt+"/{YY}",it="{aa}",lt="{h}:{mm}"+it,ct="\n"+lt,dt=":{ss}",ut=null;function ht(a){let e=1e3*a,n=60*e,t=60*n,o=24*t,r=30*o,s=365*o;return[(1==a?Cn(10,0,3,Jn).filter(Xn):Cn(10,-3,0,Jn)).concat([e,5*e,10*e,15*e,30*e,n,5*n,10*n,15*n,30*n,t,2*t,3*t,4*t,6*t,8*t,12*t,o,2*o,3*o,4*o,5*o,6*o,7*o,8*o,9*o,10*o,15*o,r,2*r,3*r,4*r,6*r,s,2*s,5*s,10*s,25*s,50*s,100*s]),[[s,nt,ut,ut,ut,ut,ut,ut,1],[28*o,"{MMM}",tt,ut,ut,ut,ut,ut,1],[o,ot,tt,ut,ut,ut,ut,ut,1],[t,"{h}"+it,st,ut,rt,ut,ut,ut,1],[n,lt,st,ut,rt,ut,ut,ut,1],[e,dt,st+" "+lt,ut,rt+" "+lt,ut,ct,ut,1],[a,dt+".{fff}",st+" "+lt,ut,rt+" "+lt,ut,ct,ut,1]],function(e){return(i,l,c,d,u,h)=>{let m=[],p=u>=s,g=u>=r&&u=o?o:u,s=v+(Xe(c)-Xe(f))+wn(f-v,r);m.push(s);let p=e(s),g=p.getHours()+p.getMinutes()/n+p.getSeconds()/t,b=u/t,y=h/i.axes[l]._space;for(;s=xn(s+u,1==a?0:3),!(s>d);)if(b>1){let a=Xe(xn(g+b,6))%24,n=e(s).getHours()-a;n>1&&(n=-1),s-=n*t,g=(g+b)%24,xn((s-m[m.length-1])/u,3)*y>=.7&&m.push(s)}else m.push(s)}return m}}]}const[mt,pt,gt]=ht(1),[bt,ft,yt]=ht(.001);function vt(a,e){return a.map(a=>a.map((n,t)=>0==t||8==t||null==n?n:e(1==t||0==a[8]?n:a[1]+n)))}function wt(a,e){return(n,t,o,r,s)=>{let i,l,c,d,u,h,m=e.find(a=>s>=a[0])||e[e.length-1];return t.map(e=>{let n=a(e),t=n.getFullYear(),o=n.getMonth(),r=n.getDate(),s=n.getHours(),p=n.getMinutes(),g=n.getSeconds(),b=t!=i&&m[2]||o!=l&&m[3]||r!=c&&m[4]||s!=d&&m[5]||p!=u&&m[6]||g!=h&&m[7]||m[1];return i=t,l=o,c=r,d=s,u=p,h=g,b(n)})}}function kt(a,e,n){return new Date(a,e,n)}function xt(a,e){return e(a)}function jt(a,e){return(n,t,o,r)=>null==r?ce:e(a(t))}Cn(2,-53,53,[1]);const zt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(a,e){let n=a.series[e];return n.width?n.stroke(a,e):n.points.width?n.points.stroke(a,e):null},fill:function(a,e){return a.series[e].fill(a,e)},dash:"solid"},idx:null,idxs:null,values:[]},Ct=[0,0];function At(a,e,n,t=!0){return a=>{0==a.button&&(!t||a.target==e)&&n(a)}}function Dt(a,e,n,t=!0){return a=>{(!t||a.target==e)&&n(a)}}const Et={show:!0,x:!0,y:!0,lock:!1,move:function(a,e,n){return Ct[0]=e,Ct[1]=n,Ct},points:{one:!1,show:function(a,e){let n=a.cursor.points,t=we(),o=n.size(a,e);ye(t,Ya,o),ye(t,Ga,o);let r=o/-2;ye(t,"marginLeft",r),ye(t,"marginTop",r);let s=n.width(a,e,o);return s&&ye(t,"borderWidth",s),t},size:function(a,e){return a.series[e].points.size},width:0,stroke:function(a,e){let n=a.series[e].points;return n._stroke||n._fill},fill:function(a,e){let n=a.series[e].points;return n._fill||n._stroke}},bind:{mousedown:At,mouseup:At,click:At,dblclick:At,mousemove:Dt,mouseleave:Dt,mouseenter:Dt},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(a,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(a,e,n,t,o)=>t-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Bt={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ft=Rn({},Bt,{filter:mn}),qt=Rn({},Ft,{size:10}),St=Rn({},Bt,{show:!1}),Mt='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Tt="bold "+Mt,Pt={show:!0,scale:"x",stroke:Qa,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tt,side:2,grid:Ft,ticks:qt,border:St,font:Mt,lineGap:1.5,rotate:0},Lt={show:!0,scale:"x",auto:!1,sorted:1,min:sn,max:-sn,idxs:[]};function Rt(a,e,n,t,o){return e.map(a=>null==a?"":He(a))}function Nt(a,e,n,t,o,r,s){let i=[],l=jn.get(o)||0;for(let c=n=s?n:xn(wn(n,o),l);c<=t;c=xn(c+o,l))i.push(Object.is(c,-0)?0:c);return i}function It(a,e,n,t,o,r,s){const i=[],l=a.scales[a.axes[e].scale].log,c=Xe((10==l?tn:on)(n));o=en(l,c),10==l&&(o=et[qe(o,et)]);let d=n,u=o*l;10==l&&(u=et[qe(u,et)]);do{i.push(d),d+=o,10!=l||jn.has(d)||(d=xn(d,jn.get(o))),d>=u&&(u=(o=d)*l,10==l&&(u=et[qe(u,et)]))}while(d<=t);return i}function _t(a,e,n,t,o,r,s){let i=a.scales[a.axes[e].scale].asinh,l=t>i?It(a,e,an(i,n),t,o):[i],c=t>=0&&n<=0?[0]:[];return(n<-i?It(a,e,an(i,-t),-n,o):[i]).reverse().map(a=>-a).concat(c,l)}const Vt=/./,Ot=/[12357]/,$t=/[125]/,Wt=/1/,Ut=(a,e,n,t)=>a.map((a,o)=>4==e&&0==a||o%t==0&&n.test(a.toExponential()[a<0?1:0])?a:null);function Ht(a,e,n,t,o){let r=a.axes[n],s=r.scale,i=a.scales[s],l=a.valToPos,c=r._space,d=l(10,s),u=l(9,s)-d>=c?Vt:l(7,s)-d>=c?Ot:l(5,s)-d>=c?$t:Wt;if(u==Wt){let a=Ke(l(1,s)-d);if(ao,Zt={show:!0,auto:!0,sorted:0,gaps:Jt,alpha:1,facets:[Rn({},Xt,{scale:"x"}),Rn({},Xt,{scale:"y"})]},Qt={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Jt,alpha:1,points:{show:function(a,e){let{scale:n,idxs:t}=a.series[0],o=a._data[0],r=a.valToPos(o[t[0]],n,!0),s=a.valToPos(o[t[1]],n,!0),i=Ke(s-r)/(a.series[e].points.space*pe);return t[1]-t[0]<=i},filter:null},values:null,min:sn,max:-sn,idxs:[],path:null,clip:null};function ao(a,e,n,t,o){return n/10}const eo={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},no=Rn({},eo,{time:!1,ori:1}),to={};function oo(a,e){let n=to[a];return n||(n={key:a,plots:[],sub(a){n.plots.push(a)},unsub(a){n.plots=n.plots.filter(e=>e!=a)},pub(a,e,t,o,r,s,i){for(let l=0;l{let g=a.pxRound;const b=i.dir*(0==i.ori?1:-1),f=0==i.ori?bo:fo;let y,v;1==b?(y=n,v=t):(y=t,v=n);let w=g(c(e[y],i,m,u)),k=g(d(s[y],l,p,h)),x=g(c(e[v],i,m,u)),j=g(d(1==r?l.max:l.min,l,p,h)),z=new Path2D(o);return f(z,x,j),f(z,w,j),f(z,w,k),z})}function co(a,e,n,t,o,r){let s=null;if(a.length>0){s=new Path2D;const i=0==e?yo:vo;let l=n;for(let e=0;en[0]){let a=n[0]-l;a>0&&i(s,l,t,a,t+r),l=n[1]}}let c=n+o-l,d=10;c>0&&i(s,l,t-d/2,c,t+r+d)}return s}function uo(a,e,n,t,o,r,s){let i=[],l=a.length;for(let c=1==o?n:t;c>=n&&c<=t;c+=o)if(null===e[c]){let d=c,u=c;if(1==o)for(;++c<=t&&null===e[c];)u=c;else for(;--c>=n&&null===e[c];)u=c;let h=r(a[d]),m=u==d?h:r(a[u]),p=d-o;h=s<=0&&p>=0&&p=0&&g>=0&&g=h&&i.push([h,m])}return i}function ho(a){return 0==a?hn:1==a?Je:e=>vn(e,a)}function mo(a){let e=0==a?po:go,n=0==a?(a,e,n,t,o,r)=>{a.arcTo(e,n,t,o,r)}:(a,e,n,t,o,r)=>{a.arcTo(n,e,o,t,r)},t=0==a?(a,e,n,t,o)=>{a.rect(e,n,t,o)}:(a,e,n,t,o)=>{a.rect(n,e,o,t)};return(a,o,r,s,i,l=0,c=0)=>{0==l&&0==c?t(a,o,r,s,i):(l=Qe(l,s/2,i/2),c=Qe(c,s/2,i/2),e(a,o+l,r),n(a,o+s,r,o+s,r+i,l),n(a,o+s,r+i,o,r+i,c),n(a,o,r+i,o,r,c),n(a,o,r,o+s,r,l),a.closePath())}}const po=(a,e,n)=>{a.moveTo(e,n)},go=(a,e,n)=>{a.moveTo(n,e)},bo=(a,e,n)=>{a.lineTo(e,n)},fo=(a,e,n)=>{a.lineTo(n,e)},yo=mo(0),vo=mo(1),wo=(a,e,n,t,o,r)=>{a.arc(e,n,t,o,r)},ko=(a,e,n,t,o,r)=>{a.arc(n,e,t,o,r)},xo=(a,e,n,t,o,r,s)=>{a.bezierCurveTo(e,n,t,o,r,s)},jo=(a,e,n,t,o,r,s)=>{a.bezierCurveTo(n,e,o,t,s,r)};function zo(a){return(a,e,n,t,o)=>ro(a,e,(e,r,s,i,l,c,d,u,h,m,p)=>{let g,b,{pxRound:f,points:y}=e;0==i.ori?(g=po,b=wo):(g=go,b=ko);const v=xn(y.width*pe,3);let w=(y.size-y.width)/2*pe,k=xn(2*w,3),x=new Path2D,j=new Path2D,{left:z,top:C,width:A,height:D}=a.bbox;yo(j,z-k,C-k,A+2*k,D+2*k);const E=a=>{if(null!=s[a]){let e=f(c(r[a],i,m,u)),n=f(d(s[a],l,p,h));g(x,e+w,n),b(x,e,n,w,0,2*Ge)}};if(o)o.forEach(E);else for(let a=n;a<=t;a++)E(a);return{stroke:v>0?x:null,fill:x,clip:j,flags:3}})}function Co(a){return(e,n,t,o,r,s)=>{t!=o&&(r!=t&&s!=t&&a(e,n,t),r!=o&&s!=o&&a(e,n,o),a(e,n,s))}}const Ao=Co(bo),Do=Co(fo);function Eo(a){const e=$e(null==a?void 0:a.alignGaps,0);return(a,n,t,o)=>ro(a,n,(r,s,i,l,c,d,u,h,m,p,g)=>{[t,o]=Pe(i,t,o);let b,f,y=r.pxRound,v=a=>y(d(a,l,p,h)),w=a=>y(u(a,c,g,m));0==l.ori?(b=bo,f=Ao):(b=fo,f=Do);const k=l.dir*(0==l.ori?1:-1),x={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},j=x.stroke;let z=!1;if(o-t>=4*p){let e,n,r,c=e=>a.posToVal(e,l.key,!0),d=null,u=null,h=v(s[1==k?t:o]),m=v(s[t]),p=v(s[o]),g=c(1==k?m+1:p-1);for(let a=1==k?t:o;a>=t&&a<=o;a+=k){let t=s[a],o=(1==k?tg)?h:v(t),r=i[a];o==h?null!=r?(n=r,null==d?(b(j,o,w(n)),e=d=u=n):nu&&(u=n)):null===r&&(z=!0):(null!=d&&f(j,h,w(d),w(u),w(e),w(n)),null!=r?(n=r,b(j,o,w(n)),d=u=e=n):(d=u=null,null===r&&(z=!0)),h=o,g=c(h+k))}null!=d&&d!=u&&r!=h&&f(j,h,w(d),w(u),w(e),w(n))}else for(let a=1==k?t:o;a>=t&&a<=o;a+=k){let e=i[a];null===e?z=!0:null!=e&&b(j,v(s[a]),w(e))}let[C,A]=so(a,n);if(null!=r.fill||0!=C){let e=x.fill=new Path2D(j),i=w(r.fillTo(a,n,r.min,r.max,C)),l=v(s[t]),c=v(s[o]);-1==k&&([c,l]=[l,c]),b(e,c,i),b(e,l,i)}if(!r.spanGaps){let c=[];z&&c.push(...uo(s,i,t,o,k,v,e)),x.gaps=c=r.gaps(a,n,t,o,c),x.clip=co(c,l.ori,h,m,p,g)}return 0!=A&&(x.band=2==A?[lo(a,n,t,o,j,-1),lo(a,n,t,o,j,1)]:lo(a,n,t,o,j,A)),x})}function Bo(a,e,n,t,o,r,s=sn){if(a.length>1){let i=null;for(let l=0,c=1/0;l0!=t[a]>0?n[a]=0:(n[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/t[a-1]+(l[a]+2*l[a-1])/t[a]),isFinite(n[a])||(n[a]=0));n[s-1]=t[s-2];for(let c=0;c{Ho.pxRatio=pe}));const Mo=Eo(),To=zo();function Po(a,e,n,t){return(t?[a[0],a[1]].concat(a.slice(2)):[a[0]].concat(a.slice(1))).map((a,t)=>Lo(a,t,e,n))}function Lo(a,e,n,t){return Rn({},0==e?n:t,a)}function Ro(a,e,n){return null==e?En:[e,n]}const No=Ro;function Io(a,e,n){return null==e?En:Oe(e,n,.1,!0)}function _o(a,e,n,t){return null==e?En:Re(e,n,a.scales[t].log,!1)}const Vo=_o;function Oo(a,e,n,t){return null==e?En:Ne(e,n,a.scales[t].log,!1)}const $o=Oo;function Wo(a){let e,n;return[a=a.replace(/(\d+)px/,(a,t)=>(e=Je((n=+t)*pe))+"px"),e,n]}function Uo(a){a.show&&[a.font,a.labelFont].forEach(a=>{let e=xn(a[2]*pe,1);a[0]=a[0].replace(/[0-9.]+px/,e+"px"),a[1]=e})}function Ho(a,e,n){const t={mode:$e(a.mode,1)},o=t.mode;function r(a,e,n,t){let o=e.valToPct(a);return t+n*(-1==e.dir?1-o:o)}function s(a,e,n,t){let o=e.valToPct(a);return t+n*(-1==e.dir?o:1-o)}function i(a,e,n,t){return 0==e.ori?r(a,e,n,t):s(a,e,n,t)}t.valToPosH=r,t.valToPosV=s;let l=!1;t.status=0;const c=t.root=we("uplot");null!=a.id&&(c.id=a.id),be(c,a.class),a.title&&(we("u-title",c).textContent=a.title);const d=ve("canvas"),u=t.ctx=d.getContext("2d"),h=we("u-wrap",c);Be("click",h,a=>{a.target===p&&(Jn!=Hn||Zn!=Yn)&&ct.click(t,a)},!0);const m=t.under=we("u-under",h);h.appendChild(d);const p=t.over=we("u-over",h),g=+$e((a=Ln(a)).pxAlign,1),b=ho(g);(a.plugins||[]).forEach(e=>{e.opts&&(a=e.opts(t,a)||a)});const f=a.ms||.001,y=t.series=1==o?Po(a.series||[],Lt,Qt,!1):(v=a.series||[null],w=Zt,v.map((a,e)=>0==e?{}:Rn({},w,a)));var v,w;const k=t.axes=Po(a.axes||[],Pt,Kt,!0),x=t.scales={},j=t.bands=a.bands||[];j.forEach(a=>{a.fill=un(a.fill||null),a.dir=$e(a.dir,-1)});const z=2==o?y[1].facets[0].scale:y[0].scale,C={axes:function(){for(let a=0;a_e[a]):f,v=2==m.distr?_e[f[1]]-_e[f[0]]:d,w=e.ticks,j=e.border,z=w.show?w.size:0,C=Je(z*pe),A=Je((2==e.alignTo?e._size-z-e.gap:e.gap)*pe),D=e._rotate*-Ge/180,E=b(e._pos*pe),B=E+(C+A)*c;o=0==s?B:0,n=1==s?B:0,Xe(e.font[0],l,1==e.align?Ja:2==e.align?Za:D>0?Ja:D<0?Za:0==s?"center":3==r?Za:Ja,D||1==s?"middle":2==r?Ka:Xa);let F=e.font[1]*e.lineGap,q=f.map(a=>b(i(a,m,p,g))),S=e._values;for(let a=0;a0){let a=y.some(a=>a._focus)&&Se!=Fa.alpha;a&&(u.globalAlpha=Se=Fa.alpha),y.forEach((a,n)=>{if(n>0&&a.show&&(hn(n,!1),hn(n,!0),null==a._paths)){let r=Se;Se!=a.alpha&&(u.globalAlpha=Se=a.alpha);let s=2==o?[0,e[n][0].length-1]:function(a){let e=cn($a-1,0,Oa-1),n=cn(Wa+1,0,Oa-1);for(;null==a[e]&&e>0;)e--;for(;null==a[n]&&n{if(e>0&&a.show){let n=Se;Se!=a.alpha&&(u.globalAlpha=Se=a.alpha),null!=a._paths&&fn(e,!1);{let n=null!=a._paths?a._paths.gaps:null,o=a.points.show(t,e,$a,Wa,n),r=a.points.filter(t,e,o,n);(o||r)&&(a.points._paths=a.points.paths(t,e,$a,Wa,r),fn(e,!0))}Se!=n&&(u.globalAlpha=Se=n),xo("drawSeries",e)}}),a&&(u.globalAlpha=Se=1)}}},A=(a.drawOrder||["axes","series"]).map(a=>C[a]);function D(a){const e=3==a.distr?e=>tn(e>0?e:a.clamp(t,e,a.min,a.max,a.key)):4==a.distr?e=>rn(e,a.asinh):100==a.distr?e=>a.fwd(e):a=>a;return n=>{let t=e(n),{_min:o,_max:r}=a;return(t-o)/(r-o)}}function E(e){let n=x[e];if(null==n){let t=(a.scales||An)[e]||An;if(null!=t.from){E(t.from);let a=Rn({},x[t.from],t,{key:e});a.valToPct=D(a),x[e]=a}else{n=x[e]=Rn({},e==z?eo:no,t),n.key=e;let a=n.time,r=n.range,s=Bn(r);if((e!=z||2==o&&!a)&&(!s||null!=r[0]&&null!=r[1]||(r={min:null==r[0]?Ie:{mode:1,hard:r[0],soft:r[0]},max:null==r[1]?Ie:{mode:1,hard:r[1],soft:r[1]}},s=!1),!s&&Sn(r))){let a=r;r=(e,n,t)=>null==n?En:Oe(n,t,a)}n.range=un(r||(a?No:e==z?3==n.distr?Vo:4==n.distr?$o:Ro:3==n.distr?_o:4==n.distr?Oo:Io)),n.auto=un(!s&&n.auto),n.clamp=un(n.clamp||ao),n._min=n._max=null,n.valToPct=D(n)}}}E("x"),E("y"),1==o&&y.forEach(a=>{E(a.scale)}),k.forEach(a=>{E(a.scale)});for(let Ua in a.scales)E(Ua);const B=x[z],F=B.distr;let q,S;0==B.ori?(be(c,"u-hz"),q=r,S=s):(be(c,"u-vt"),q=s,S=r);const M={};for(let Ua in x){let a=x[Ua];null==a.min&&null==a.max||(M[Ua]={min:a.min,max:a.max},a.min=a.max=null)}const T=a.tzDate||(a=>new Date(Je(a/f))),P=a.fmtDate||Gn,L=1==f?gt(T):yt(T),R=wt(T,vt(1==f?pt:ft,P)),N=jt(T,xt("{YYYY}-{MM}-{DD} {h}:{mm}{aa}",P)),I=[],_=t.legend=Rn({},zt,a.legend),V=t.cursor=Rn({},Et,{drag:{y:2==o}},a.cursor),O=_.show,$=V.show,W=_.markers;let U,H,Y;_.idxs=I,W.width=un(W.width),W.dash=un(W.dash),W.stroke=un(W.stroke),W.fill=un(W.fill);let G,K=[],X=[],J=!1,Z={};if(_.live){const a=y[1]?y[1].values:null;J=null!=a,G=J?a(t,1,0):{_:0};for(let e in G)Z[e]=ce}if(O)if(U=ve("table","u-legend",c),Y=ve("tbody",null,U),_.mount(t,U),J){H=ve("thead",null,U,Y);let a=ve("tr",null,H);for(var Q in ve("th",null,a),G)ve("th",Ha,a).textContent=Q}else be(U,"u-inline"),_.live&&be(U,"u-live");const aa={show:!0},ea={show:!1},na=new Map;function ta(a,e,n,o=!0){const r=na.get(e)||{},s=V.bind[a](t,e,n,o);s&&(Be(a,e,r[a]=s),na.set(e,r))}function oa(a,e,n){const t=na.get(e)||{};for(let o in t)null!=a&&o!=a||(Fe(o,e,t[o]),delete t[o]);null==a&&na.delete(e)}let ra=0,sa=0,ia=0,la=0,ca=0,da=0,ua=ca,ha=da,ma=ia,pa=la,ga=0,ba=0,fa=0,ya=0;t.bbox={};let va=!1,wa=!1,ka=!1,xa=!1,ja=!1,za=!1;function Ca(a,e,n){(n||a!=t.width||e!=t.height)&&Aa(a,e),Nn(!1),ka=!0,wa=!0,rt()}function Aa(a,e){t.width=ra=ia=a,t.height=sa=la=e,ca=da=0,function(){let a=!1,e=!1,n=!1,t=!1;k.forEach((o,r)=>{if(o.show&&o._show){let{side:r,_size:s}=o,i=r%2,l=s+(null!=o.label?o.labelSize:0);l>0&&(i?(ia-=l,3==r?(ca+=l,t=!0):n=!0):(la-=l,0==r?(da+=l,a=!0):e=!0))}}),Na[0]=a,Na[1]=n,Na[2]=e,Na[3]=t,ia-=Va[1]+Va[3],ca+=Va[3],la-=Va[2]+Va[0],da+=Va[0]}(),function(){let a=ca+ia,e=da+la,n=ca,t=da;function o(o,r){switch(o){case 1:return a+=r,a-r;case 2:return e+=r,e-r;case 3:return n-=r,n+r;case 0:return t-=r,t+r}}k.forEach((a,e)=>{if(a.show&&a._show){let e=a.side;a._pos=o(e,a._size),null!=a.label&&(a._lpos=o(e,a.labelSize))}})}();let n=t.bbox;ga=n.left=vn(ca*pe,.5),ba=n.top=vn(da*pe,.5),fa=n.width=vn(ia*pe,.5),ya=n.height=vn(la*pe,.5)}const Da=3;if(t.setSize=function({width:a,height:e}){Ca(a,e)},null==V.dataIdx){let a=V.hover,n=a.skip=new Set(a.skip??[]);n.add(void 0);let t=a.prox=un(a.prox),o=a.bias??(a.bias=0);V.dataIdx=(a,r,s,i)=>{if(0==r)return s;let l=s,c=t(a,r,s,i)??sn,d=c>=0&&c0;)n.has(p[a])||(e=a);if(0==o||1==o)for(a=s;null==t&&a++c&&(l=null);return l}}const Ea=a=>{V.event=a};V.idxs=I,V._lock=!1;let Ba=V.points;Ba.show=un(Ba.show),Ba.size=un(Ba.size),Ba.stroke=un(Ba.stroke),Ba.width=un(Ba.width),Ba.fill=un(Ba.fill);const Fa=t.focus=Rn({},a.focus||{alpha:.3},V.focus),qa=Fa.prox>=0,Sa=qa&&Ba.one;let Ma=[],Ta=[],Pa=[];function La(a,e){let n=Ba.show(t,e);if(n instanceof HTMLElement)return be(n,"u-cursor-pt"),be(n,a.class),xe(n,-10,-10,ia,la),p.insertBefore(n,Ma[e]),n}function Ra(a,e){if(1==o||e>0){let e=1==o&&x[a.scale].time,n=a.value;a.value=e?qn(n)?jt(T,xt(n,P)):n||N:n||Gt,a.label=a.label||(e?"Time":"Value")}if(Sa||e>0){a.width=null==a.width?1:a.width,a.paths=a.paths||Mo||pn,a.fillTo=un(a.fillTo||io),a.pxAlign=+$e(a.pxAlign,g),a.pxRound=ho(a.pxAlign),a.stroke=un(a.stroke||null),a.fill=un(a.fill||null),a._stroke=a._fill=a._paths=a._focus=null;let e=xn(1*(3+2*(an(1,a.width)||1)),3),n=a.points=Rn({},{size:e,width:an(1,.2*e),stroke:a.stroke,space:2*e,paths:To,_stroke:null,_fill:null},a.points);n.show=un(n.show),n.filter=un(n.filter),n.fill=un(n.fill),n.stroke=un(n.stroke),n.paths=un(n.paths),n.pxAlign=a.pxAlign}if(O){let n=function(a,e){if(0==e&&(J||!_.live||2==o))return En;let n=[],r=ve("tr","u-series",Y,Y.childNodes[e]);be(r,a.class),a.show||be(r,Ua);let s=ve("th",null,r);if(W.show){let a=we("u-marker",s);if(e>0){let n=W.width(t,e);n&&(a.style.border=n+"px "+W.dash(t,e)+" "+W.stroke(t,e)),a.style.background=W.fill(t,e)}}let i=we(Ha,s);for(var l in a.label instanceof HTMLElement?i.appendChild(a.label):i.textContent=a.label,e>0&&(W.show||(i.style.color=a.width>0?W.stroke(t,e):W.fill(t,e)),ta("click",s,e=>{if(V._lock)return;Ea(e);let n=y.indexOf(a);if((e.ctrlKey||e.metaKey)!=_.isolate){let a=y.some((a,e)=>e>0&&e!=n&&a.show);y.forEach((e,t)=>{t>0&&Dt(t,a?t==n?aa:ea:aa,!0,zo.setSeries)})}else Dt(n,{show:!a.show},!0,zo.setSeries)},!1),qa&&ta(oe,s,e=>{V._lock||(Ea(e),Dt(y.indexOf(a),St,!0,zo.setSeries))},!1)),G){let a=ve("td","u-value",r);a.textContent="--",n.push(a)}return[r,n]}(a,e);K.splice(e,0,n[0]),X.splice(e,0,n[1]),_.values.push(null)}if($){I.splice(e,0,null);let n=null;Sa?0==e&&(n=La(a,e)):e>0&&(n=La(a,e)),Ma.splice(e,0,n),Ta.splice(e,0,0),Pa.splice(e,0,0)}xo("addSeries",e)}t.addSeries=function(a,e){e=null==e?y.length:e,a=1==o?Lo(a,e,Lt,Qt):Lo(a,e,{},Zt),y.splice(e,0,a),Ra(y[e],e)},t.delSeries=function(a){if(y.splice(a,1),O){_.values.splice(a,1),X.splice(a,1);let e=K.splice(a,1)[0];oa(null,e.firstChild),e.remove()}$&&(I.splice(a,1),Ma.splice(a,1)[0].remove(),Ta.splice(a,1),Pa.splice(a,1)),xo("delSeries",a)};const Na=[!1,!1,!1,!1];function Ia(a,e,n,t){let[o,r,s,i]=n,l=e%2,c=0;return 0==l&&(i||r)&&(c=0==e&&!o||2==e&&!s?Je(Pt.size/3):0),1==l&&(o||s)&&(c=1==e&&!r||3==e&&!i?Je(Kt.size/2):0),c}const _a=t.padding=(a.padding||[Ia,Ia,Ia,Ia]).map(a=>un($e(a,Ia))),Va=t._padding=_a.map((a,e)=>a(t,e,Na,0));let Oa,$a=null,Wa=null;const Qa=1==o?y[0].idxs:null;let ie,de,me,ge,ke,je,Ce,De,Ee,Se,_e=null,Ve=!1;function We(a,n){if(e=null==a?[]:a,t.data=t._data=e,2==o){Oa=0;for(let a=1;a=0,za=!0,rt()}}function Ue(){let a,n;Ve=!0,1==o&&(Oa>0?($a=Qa[0]=0,Wa=Qa[1]=Oa-1,a=e[0][$a],n=e[0][Wa],2==F?(a=$a,n=Wa):a==n&&(3==F?[a,n]=Re(a,a,B.log,!1):4==F?[a,n]=Ne(a,a,B.log,!1):B.time?n=a+Je(86400/f):[a,n]=Oe(a,n,.1,!0))):($a=Qa[0]=a=null,Wa=Qa[1]=n=null)),At(z,a,n)}function He(a,e,n,t,o,r){a??(a=ae),n??(n=Dn),t??(t="butt"),o??(o=ae),r??(r="round"),a!=ie&&(u.strokeStyle=ie=a),o!=de&&(u.fillStyle=de=o),e!=me&&(u.lineWidth=me=e),r!=ke&&(u.lineJoin=ke=r),t!=je&&(u.lineCap=je=t),n!=ge&&u.setLineDash(ge=n)}function Xe(a,e,n,t){e!=de&&(u.fillStyle=de=e),a!=Ce&&(u.font=Ce=a),n!=De&&(u.textAlign=De=n),t!=Ee&&(u.textBaseline=Ee=t)}function nn(a,e,n,o,r=0){if(o.length>0&&a.auto(t,Ve)&&(null==e||null==e.min)){let e=$e($a,0),t=$e(Wa,o.length-1),s=null==n.min?function(a,e,n,t=0,o=!1){let r=o?Le:Pe,s=o?Te:Me;[e,n]=r(a,e,n);let i=a[e],l=a[e];if(e>-1)if(1==t)i=a[e],l=a[n];else if(-1==t)i=a[n],l=a[e];else for(let c=e;c<=n;c++){let e=a[c];s(e)&&(el&&(l=e))}return[i??sn,l??-sn]}(o,e,t,r,3==a.distr):[n.min,n.max];a.min=Qe(a.min,n.min=s[0]),a.max=an(a.max,n.max=s[1])}}t.setData=We;const on={min:null,max:null};function hn(a,e){let n=e?y[a].points:y[a];n._stroke=n.stroke(t,a),n._fill=n.fill(t,a)}function fn(a,n){let o=n?y[a].points:y[a],{stroke:r,fill:s,clip:i,flags:l,_stroke:c=o._stroke,_fill:d=o._fill,_width:h=o.width}=o._paths;h=xn(h*pe,3);let m=null,p=h%2/2;n&&null==d&&(d=h>0?"#fff":c);let g=1==o.pxAlign&&p>0;if(g&&u.translate(p,p),!n){let a=ga-h/2,e=ba-h/2,n=fa+h,t=ya+h;m=new Path2D,m.rect(a,e,n,t)}n?wn(c,h,o.dash,o.cap,d,r,s,l,i):function(a,n,o,r,s,i,l,c,d,u,h){let m=!1;0!=d&&j.forEach((p,g)=>{if(p.series[0]==a){let a,b=y[p.series[1]],f=e[p.series[1]],v=(b._paths||An).band;Bn(v)&&(v=1==p.dir?v[0]:v[1]);let w=null;b.show&&v&&function(a,e,n){for(e=$e(e,0),n=$e(n,a.length-1);e<=n;){if(null!=a[e])return!0;e++}return!1}(f,$a,Wa)?(w=p.fill(t,g)||i,a=b._paths.clip):v=null,wn(n,o,r,s,w,l,c,d,u,h,a,v),m=!0}}),m||wn(n,o,r,s,i,l,c,d,u,h)}(a,c,h,o.dash,o.cap,d,r,s,l,m,i),g&&u.translate(-p,-p)}const yn=3;function wn(a,e,n,t,o,r,s,i,l,c,d,h){He(a,e,n,t,o),(l||c||h)&&(u.save(),l&&u.clip(l),c&&u.clip(c)),h?(i&yn)==yn?(u.clip(h),d&&u.clip(d),Cn(o,s),kn(a,r,e)):2&i?(Cn(o,s),u.clip(h),kn(a,r,e)):1&i&&(u.save(),u.clip(h),d&&u.clip(d),Cn(o,s),u.restore(),kn(a,r,e)):(Cn(o,s),kn(a,r,e)),(l||c||h)&&u.restore()}function kn(a,e,n){n>0&&(e instanceof Map?e.forEach((a,e)=>{u.strokeStyle=ie=e,u.stroke(a)}):null!=e&&a&&u.stroke(e))}function Cn(a,e){e instanceof Map?e.forEach((a,e)=>{u.fillStyle=de=e,u.fill(a)}):null!=e&&a&&u.fill(e)}function Fn(a,e,n,t,o,r,s,i,l,c){let d=s%2/2;1==g&&u.translate(d,d),He(i,s,l,c,i),u.beginPath();let h,m,p,b,f=o+(0==t||3==t?-r:r);0==n?(m=o,b=f):(h=o,p=f);for(let g=0;g{if(!n.show)return;let r=x[n.scale];if(null==r.min)return void(n._show&&(e=!1,n._show=!1,Nn(!1)));n._show||(e=!1,n._show=!0,Nn(!1));let s=n.side,i=s%2,{min:l,max:c}=r,[d,u]=function(a,e,n,o){let r,s=k[a];if(o<=0)r=[0,0];else{let i=s._space=s.space(t,a,e,n,o);r=function(a,e,n,t,o){let r=an(ln(a),ln(e)),s=e-a,i=qe(o/t*s,n);do{let a=n[i],e=t*a/s;if(e>=o&&r+(a<5?jn.get(a):0)<=17)return[a,e]}while(++i_e[a]):m,g=2==r.distr?_e[m[1]]-_e[m[0]]:d,b=n._values=n.values(t,n.filter(t,p,o,u,g),o,u,g);n._rotate=2==s?n.rotate(t,b,o,u):0;let f=n._size;n._size=Ze(n.size(t,b,o,a)),null!=f&&n._size!=f&&(e=!1)}),e}function Pn(a){let e=!0;return _a.forEach((n,o)=>{let r=n(t,o,Na,a);r!=Va[o]&&(e=!1),Va[o]=r}),e}function Nn(a){y.forEach((e,n)=>{n>0&&(e._paths=null,a&&(1==o?(e.min=null,e.max=null):e.facets.forEach(a=>{a.min=null,a.max=null})))})}let _n,Vn,On,$n,Wn,Un,Hn,Yn,Kn,Xn,Jn,Zn,Qn=!1,nt=!1,tt=[];function ot(){nt=!1;for(let a=0;a0){y.forEach((n,r)=>{if(1==o){let o=n.scale,s=M[o];if(null==s)return;let i=a[o];if(0==r){let a=i.range(t,i.min,i.max,o);i.min=a[0],i.max=a[1],$a=qe(i.min,e[0]),Wa=qe(i.max,e[0]),Wa-$a>1&&(e[0][$a]i.max&&Wa--),n.min=_e[$a],n.max=_e[Wa]}else n.show&&n.auto&&nn(i,s,n,e[r],n.sorted);n.idxs[0]=$a,n.idxs[1]=Wa}else if(r>0&&n.show&&n.auto){let[t,o]=n.facets,s=t.scale,i=o.scale,[l,c]=e[r],d=a[s],u=a[i];null!=d&&nn(d,M[s],t,l,t.sorted),null!=u&&nn(u,M[i],o,c,o.sorted),n.min=o.min,n.max=o.max}});for(let e in a){let n=a[e],o=M[e];if(null==n.from&&(null==o||null==o.min)){let a=n.range(t,n.min==sn?null:n.min,n.max==-sn?null:n.max,e);n.min=a[0],n.max=a[1]}}}for(let e in a){let n=a[e];if(null!=n.from){let o=a[n.from];if(null==o.min)n.min=n.max=null;else{let a=n.range(t,o.min,o.max,e);n.min=a[0],n.max=a[1]}}}let n={},r=!1;for(let e in a){let t=a[e],o=x[e];if(o.min!=t.min||o.max!=t.max){o.min=t.min,o.max=t.max;let a=o.distr;o._min=3==a?tn(o.min):4==a?rn(o.min,o.asinh):100==a?o.fwd(o.min):o.min,o._max=3==a?tn(o.max):4==a?rn(o.max,o.asinh):100==a?o.fwd(o.max):o.max,n[e]=r=!0}}if(r){y.forEach((a,e)=>{2==o?e>0&&n.y&&(a._paths=null):n[a.scale]&&(a._paths=null)});for(let a in n)ka=!0,xo("setScale",a);$&&V.left>=0&&(xa=za=!0)}for(let e in M)M[e]=null}(),va=!1),ka&&(function(){let a=!1,e=0;for(;!a;){e++;let n=Tn(e),o=Pn(e);a=e==Da||n&&o,a||(Aa(t.width,t.height),wa=!0)}}(),ka=!1),wa){if(ye(m,Ja,ca),ye(m,Ka,da),ye(m,Ya,ia),ye(m,Ga,la),ye(p,Ja,ca),ye(p,Ka,da),ye(p,Ya,ia),ye(p,Ga,la),ye(h,Ya,ra),ye(h,Ga,sa),d.width=Je(ra*pe),d.height=Je(sa*pe),k.forEach(({_el:a,_show:e,_size:n,_pos:t,side:o})=>{if(null!=a)if(e){let e=o%2==1;ye(a,e?"left":"top",t-(3===o||0===o?n:0)),ye(a,e?"width":"height",n),ye(a,e?"top":"left",e?da:ca),ye(a,e?"height":"width",e?la:ia),fe(a,Ua)}else be(a,Ua)}),ie=de=me=ke=je=Ce=De=Ee=ge=null,Se=1,to(!0),ca!=ua||da!=ha||ia!=ma||la!=pa){Nn(!1);let a=ia/ma,e=la/pa;if($&&!xa&&V.left>=0){V.left*=a,V.top*=e,On&&xe(On,Je(V.left),0,ia,la),$n&&xe($n,0,Je(V.top),ia,la);for(let n=0;n=0&&ht.width>0){ht.left*=a,ht.width*=a,ht.top*=e,ht.height*=e;for(let a in lo)ye(kt,a,ht[a])}ua=ca,ha=da,ma=ia,pa=la}xo("setSize"),wa=!1}ra>0&&sa>0&&(u.clearRect(0,0,d.width,d.height),xo("drawClear"),A.forEach(a=>a()),xo("draw")),ht.show&&ja&&(Ct(ht),ja=!1),$&&xa&&(Xt(null,!0,!1),xa=!1),_.show&&_.live&&za&&(Wt(),za=!1),l||(l=!0,t.status=1,xo("ready")),Ve=!1,Qn=!1}function it(a,n){let o=x[a];if(null==o.from){if(0==Oa){let e=o.range(t,n.min,n.max,a);n.min=e[0],n.max=e[1]}if(n.min>n.max){let a=n.min;n.min=n.max,n.max=a}if(Oa>1&&null!=n.min&&null!=n.max&&n.max-n.min<1e-16)return;a==z&&2==o.distr&&Oa>0&&(n.min=qe(n.min,e[0]),n.max=qe(n.max,e[0]),n.min==n.max&&n.max++),M[a]=n,va=!0,rt()}}t.batch=function(a,e=!1){Qn=!0,nt=e,a(t),st(),e&&tt.length>0&&queueMicrotask(ot)},t.redraw=(a,e)=>{ka=e||!1,!1!==a?At(z,B.min,B.max):rt()},t.setScale=it;let lt=!1;const ct=V.drag;let dt=ct.x,ut=ct.y;$&&(V.x&&(_n=we("u-cursor-x",p)),V.y&&(Vn=we("u-cursor-y",p)),0==B.ori?(On=_n,$n=Vn):(On=Vn,$n=_n),Jn=V.left,Zn=V.top);const ht=t.select=Rn({show:!0,over:!0,left:0,width:0,top:0,height:0},a.select),kt=ht.show?we("u-select",ht.over?p:m):null;function Ct(a,e){if(ht.show){for(let e in a)ht[e]=a[e],e in lo&&ye(kt,e,a[e]);!1!==e&&xo("setSelect")}}function At(a,e,n){it(a,{min:e,max:n})}function Dt(a,e,n,r){null!=e.focus&&function(a){if(a!=qt){let e=null==a,n=1!=Fa.alpha;y.forEach((t,r)=>{if(1==o||r>0){let o=e||0==r||r==a;t._focus=e?null:o,n&&function(a,e){y[a].alpha=e,$&&null!=Ma[a]&&(Ma[a].style.opacity=e),O&&K[a]&&(K[a].style.opacity=e)}(r,o?1:Fa.alpha)}}),qt=a,n&&rt()}}(a),null!=e.show&&y.forEach((n,t)=>{t>0&&(a==t||null==a)&&(n.show=e.show,function(a){if(y[a].show)O&&fe(K[a],Ua);else if(O&&be(K[a],Ua),$){let e=Sa?Ma[0]:Ma[a];null!=e&&xe(e,-10,-10,ia,la)}}(t),2==o?(At(n.facets[0].scale,null,null),At(n.facets[1].scale,null,null)):At(n.scale,null,null),rt())}),!1!==n&&xo("setSeries",a,e),r&&Do("setSeries",t,a,e)}let Bt,Ft,qt;t.setSelect=Ct,t.setSeries=Dt,t.addBand=function(a,e){a.fill=un(a.fill||null),a.dir=$e(a.dir,-1),e=null==e?j.length:e,j.splice(e,0,a)},t.setBand=function(a,e){Rn(j[a],e)},t.delBand=function(a){null==a?j.length=0:j.splice(a,1)};const St={focus:!0};function Mt(a,e,n){let t=x[e];n&&(a=a/pe-(1==t.ori?da:ca));let o=ia;1==t.ori&&(o=la,a=o-a),-1==t.dir&&(a=o-a);let r=t._min,s=r+(t._max-r)*(a/o),i=t.distr;return 3==i?en(10,s):4==i?((a,e=1)=>Ye.sinh(a)*e)(s,t.asinh):100==i?t.bwd(s):s}function Tt(a,e){ye(kt,Ja,ht.left=a),ye(kt,Ya,ht.width=e)}function Vt(a,e){ye(kt,Ka,ht.top=a),ye(kt,Ga,ht.height=e)}O&&qa&&ta(re,U,a=>{V._lock||(Ea(a),null!=qt&&Dt(null,St,!0,zo.setSeries))}),t.valToIdx=a=>qe(a,e[0]),t.posToIdx=function(a,n){return qe(Mt(a,z,n),e[0],$a,Wa)},t.posToVal=Mt,t.valToPos=(a,e,n)=>0==x[e].ori?r(a,x[e],n?fa:ia,n?ga:0):s(a,x[e],n?ya:la,n?ba:0),t.setCursor=(a,e,n)=>{Jn=a.left,Zn=a.top,Xt(null,e,n)};let Ot=0==B.ori?Tt:Vt,$t=1==B.ori?Tt:Vt;function Wt(a,e){if(null!=a&&(a.idxs?a.idxs.forEach((a,e)=>{I[e]=a}):void 0!==a.idx&&I.fill(a.idx),_.idx=I[0]),O&&_.live){for(let a=0;a0||1==o&&!J)&&Ut(a,I[a]);!function(){if(O&&_.live)for(let a=2==o?1:0;aWa;Bt=sn,Ft=null;let l=0==B.ori?ia:la,c=1==B.ori?ia:la;if(Jn<0||0==Oa||i){s=V.idx=null;for(let a=0;a0&&a.show){let n=null==w?-10:w==s?r:q(1==o?e[0][w]:e[b][0][w],B,l,0),f=null==k?-10:S(k,1==o?x[a.scale]:x[a.facets[1].scale],c,0);if(qa&&null!=k){let e=1==B.ori?Jn:Zn,n=Ke(Fa.dist(t,b,w,f,e));if(n=0?1:-1;r==(k>=0?1:-1)&&(1==r?1==t?k>=o:k<=o:1==t?k<=o:k>=o)&&(Bt=n,Ft=b)}else Bt=n,Ft=b}}if(za||Sa){let a,e;0==B.ori?(a=n,e=f):(a=f,e=n);let o,r,s,l,c,y,v=!0,w=Ba.bbox;if(null!=w){v=!1;let a=w(t,b);s=a.left,l=a.top,o=a.width,r=a.height}else s=a,l=e,o=r=Ba.size(t,b);if(y=Ba.fill(t,b),c=Ba.stroke(t,b),Sa)b==Ft&&Bt<=Fa.prox&&(i=s,d=l,u=o,h=r,m=v,p=y,g=c);else{let a=Ma[b];null!=a&&(Ta[b]=s,Pa[b]=l,Ae(a,o,r,v),ze(a,y,c),xe(a,Ze(s),Ze(l),ia,la))}}}}if(Sa){let a=Fa.prox;if(za||(null==qt?Bt<=a:Bt>a||Ft!=qt)){let a=Ma[0];null!=a&&(Ta[0]=i,Pa[0]=d,Ae(a,u,h,m),ze(a,p,g),xe(a,Ze(i),Ze(d),ia,la))}}}if(ht.show&<)if(null!=a){let[e,n]=zo.scales,[t,o]=zo.match,[r,s]=a.cursor.sync.scales,i=a.cursor.drag;if(dt=i._x,ut=i._y,dt||ut){let i,d,u,h,m,{left:p,top:g,width:b,height:f}=a.select,y=a.scales[r].ori,v=a.posToVal,w=null!=e&&t(e,r),k=null!=n&&o(n,s);w&&dt?(0==y?(i=p,d=b):(i=g,d=f),u=x[e],h=q(v(i,r),u,l,0),m=q(v(i+d,r),u,l,0),Ot(Qe(h,m),Ke(m-h))):Ot(0,l),k&&ut?(1==y?(i=p,d=b):(i=g,d=f),u=x[n],h=S(v(i,s),u,c,0),m=S(v(i+d,s),u,c,0),$t(Qe(h,m),Ke(m-h))):$t(0,c)}else co()}else{let a=Ke(Kn-Wn),e=Ke(Xn-Un);if(1==B.ori){let n=a;a=e,e=n}dt=ct.x&&a>=ct.dist,ut=ct.y&&e>=ct.dist;let n,t,o=ct.uni;null!=o?dt&&ut&&(dt=a>=o,ut=e>=o,dt||ut||(e>a?ut=!0:dt=!0)):ct.x&&ct.y&&(dt||ut)&&(dt=ut=!0),dt&&(0==B.ori?(n=Hn,t=Jn):(n=Yn,t=Zn),Ot(Qe(n,t),Ke(t-n)),ut||$t(0,c)),ut&&(1==B.ori?(n=Hn,t=Jn):(n=Yn,t=Zn),$t(Qe(n,t),Ke(t-n)),dt||Ot(0,l)),dt||ut||(Ot(0,0),$t(0,0))}if(ct._x=dt,ct._y=ut,null==a){if(r){if(null!=Co){let[a,e]=zo.scales;zo.values[0]=null!=a?Mt(0==B.ori?Jn:Zn,a):null,zo.values[1]=null!=e?Mt(1==B.ori?Jn:Zn,e):null}Do(ee,t,Jn,Zn,ia,la,s)}if(qa){let a=r&&zo.setSeries,e=Fa.prox;null==qt?Bt<=e&&Dt(Ft,St,!0,a):Bt>e?Dt(null,St,!0,a):Ft!=qt&&Dt(Ft,St,!0,a)}}za&&(_.idx=s,Wt()),!1!==n&&xo("setCursor")}t.setLegend=Wt;let Jt=null;function to(a=!1){a?Jt=null:(Jt=p.getBoundingClientRect(),xo("syncRect",Jt))}function ro(a,e,n,t,o,r,s){V._lock||lt&&null!=a&&0==a.movementX&&0==a.movementY||(so(a,e,n,t,o,r,0,!1,null!=a),null!=a?Xt(null,!0,!0):Xt(e,!0,!1))}function so(a,e,n,o,r,s,l,c,d){if(null==Jt&&to(!1),Ea(a),null!=a)n=a.clientX-Jt.left,o=a.clientY-Jt.top;else{if(n<0||o<0)return Jn=-10,void(Zn=-10);let[a,t]=zo.scales,l=e.cursor.sync,[c,d]=l.values,[u,h]=l.scales,[m,p]=zo.match,g=e.axes[0].side%2==1,b=0==B.ori?ia:la,f=1==B.ori?ia:la,y=g?s:r,v=g?r:s,w=g?o:n,k=g?n:o;if(n=null!=u?m(a,u)?i(c,x[a],b,0):-10:b*(w/y),o=null!=h?p(t,h)?i(d,x[t],f,0):-10:f*(k/v),1==B.ori){let a=n;n=o,o=a}}!d||null!=e&&e.cursor.event.type!=ee||((n<=1||n>=ia-1)&&(n=vn(n,ia)),(o<=1||o>=la-1)&&(o=vn(o,la))),c?(Wn=n,Un=o,[Hn,Yn]=V.move(t,n,o)):(Jn=n,Zn=o)}Object.defineProperty(t,"rect",{get:()=>(null==Jt&&to(!1),Jt)});const lo={width:0,height:0,left:0,top:0};function co(){Ct(lo,!1)}let uo,mo,po,go;function bo(a,e,n,o,r,s,i){lt=!0,dt=ut=ct._x=ct._y=!1,so(a,e,n,o,r,s,0,!0,!1),null!=a&&(ta(te,ue,fo,!1),Do(ne,t,Hn,Yn,ia,la,null));let{left:l,top:c,width:d,height:u}=ht;uo=l,mo=c,po=d,go=u}function fo(a,e,n,o,r,s,i){lt=ct._x=ct._y=!1,so(a,e,n,o,r,s,0,!1,!0);let{left:l,top:c,width:d,height:u}=ht,h=d>0||u>0,m=uo!=l||mo!=c||po!=d||go!=u;if(h&&m&&Ct(ht),ct.setScale&&h&&m){let a=l,e=d,n=c,t=u;if(1==B.ori&&(a=c,e=u,n=l,t=d),dt&&At(z,Mt(a,z),Mt(a+e,z)),ut)for(let o in x){let a=x[o];o!=z&&null==a.from&&a.min!=sn&&At(o,Mt(n+t,o),Mt(n,o))}co()}else V.lock&&(V._lock=!V._lock,Xt(e,!0,null!=a));null!=a&&(oa(te,ue),Do(te,t,Jn,Zn,ia,la,null))}function yo(a,e,n,o,r,s,i){V._lock||(Ea(a),Ue(),co(),null!=a&&Do(se,t,Jn,Zn,ia,la,null))}function vo(){k.forEach(Uo),Ca(t.width,t.height,!0)}Be(le,he,vo);const wo={};wo.mousedown=bo,wo.mousemove=ro,wo.mouseup=fo,wo.dblclick=yo,wo.setSeries=(a,e,n,o)=>{-1!=(n=(0,zo.match[2])(t,e,n))&&Dt(n,o,!0,!1)},$&&(ta(ne,p,bo),ta(ee,p,ro),ta(oe,p,a=>{Ea(a),to(!1)}),ta(re,p,function(a,e,n,t,o,r,s){if(V._lock)return;Ea(a);let i=lt;if(lt){let a,e,n=!0,t=!0,o=10;0==B.ori?(a=dt,e=ut):(a=ut,e=dt),a&&e&&(n=Jn<=o||Jn>=ia-o,t=Zn<=o||Zn>=la-o),a&&n&&(Jn=Jn{a.call(null,t,e,n)})}(a.plugins||[]).forEach(a=>{for(let e in a.hooks)ko[e]=(ko[e]||[]).concat(a.hooks[e])});const jo=(a,e,n)=>n,zo=Rn({key:null,setSeries:!1,filters:{pub:gn,sub:gn},scales:[z,y[1]?y[1].scale:null],match:[bn,bn,jo],values:[null,null]},V.sync);2==zo.match.length&&zo.match.push(jo),V.sync=zo;const Co=zo.key,Ao=oo(Co);function Do(a,e,n,t,o,r,s){zo.filters.pub(a,e,n,t,o,r,s)&&Ao.pub(a,e,n,t,o,r,s)}function Eo(){xo("init",a,e),We(e||a.data,!1),M[z]?it(z,M[z]):Ue(),ja=ht.show&&(ht.width>0||ht.height>0),xa=za=!0,Ca(a.width,a.height)}return Ao.sub(t),t.pub=function(a,e,n,t,o,r,s){zo.filters.sub(a,e,n,t,o,r,s)&&wo[a](null,e,n,t,o,r,s)},t.destroy=function(){Ao.unsub(t),qo.delete(t),na.clear(),Fe(le,he,vo),c.remove(),null==U||U.remove(),xo("destroy")},y.forEach(Ra),k.forEach(function(a,e){if(a._show=a.show,a.show){let n=a.side%2,o=x[a.scale];null==o&&(a.scale=n?y[1].scale:z,o=x[a.scale]);let r=o.time;a.size=un(a.size),a.space=un(a.space),a.rotate=un(a.rotate),Bn(a.incrs)&&a.incrs.forEach(a=>{!jn.has(a)&&jn.set(a,zn(a))}),a.incrs=un(a.incrs||(2==o.distr?at:r?1==f?mt:bt:et)),a.splits=un(a.splits||(r&&1==o.distr?L:3==o.distr?It:4==o.distr?_t:Nt)),a.stroke=un(a.stroke),a.grid.stroke=un(a.grid.stroke),a.ticks.stroke=un(a.ticks.stroke),a.border.stroke=un(a.border.stroke);let s=a.values;a.values=Bn(s)&&!Bn(s[0])?un(s):r?Bn(s)?wt(T,vt(s,P)):qn(s)?function(a,e){let n=Gn(e);return(e,t,o,r,s)=>t.map(e=>n(a(e)))}(T,s):s||R:s||Rt,a.filter=un(a.filter||(o.distr>=3&&10==o.log?Ht:3==o.distr&&2==o.log?Yt:mn)),a.font=Wo(a.font),a.labelFont=Wo(a.labelFont),a._size=a.size(t,null,e,0),a._space=a._rotate=a._incrs=a._found=a._splits=a._values=null,a._size>0&&(Na[e]=!0,a._el=we("u-axis",h))}}),n?n instanceof HTMLElement?(n.appendChild(c),Eo()):n(t,Eo):Eo(),t}Ho.assign=Rn,Ho.fmtNum=He,Ho.rangeNum=Oe,Ho.rangeLog=Re,Ho.rangeAsinh=Ne,Ho.orient=ro,Ho.pxRatio=pe,Ho.join=function(a,e){if(function(a){let e=a[0][0],n=e.length;for(let t=1;t=t&&null==a[o];)o--;if(o<=t)return!0;const r=an(1,Xe((o-t+1)/e));for(let s=a[t],i=t+r;i<=o;i+=r){const e=a[i];if(null!=e){if(e<=s)return!1;s=e}}return!0}(e[0])||(e=function(a){let e=a[0],n=e.length,t=Array(n);for(let r=0;re[a]-e[n]);let o=[];for(let r=0;ra-e)],o=t[0].length,r=new Map;for(let s=0;sro(a,r,(l,c,d,u,h,m,p,g,b,f,y)=>{[s,i]=Pe(d,s,i);let v=l.pxRound,{left:w,width:k}=a.bbox,x=a=>v(m(a,u,f,g)),j=a=>v(p(a,h,y,b)),z=0==u.ori?bo:fo;const C={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},A=C.stroke,D=u.dir*(0==u.ori?1:-1);let E=j(d[1==D?s:i]),B=x(c[1==D?s:i]),F=B,q=B;o&&-1==e&&(q=w,z(A,q,E)),z(A,B,E);for(let a=1==D?s:i;a>=s&&a<=i;a+=D){let n=d[a];if(null==n)continue;let t=x(c[a]),o=j(n);1==e?z(A,t,E):z(A,F,o),z(A,t,o),E=o,F=t}let S=F;o&&1==e&&(S=w+k,z(A,S,E));let[M,T]=so(a,r);if(null!=l.fill||0!=M){let e=C.fill=new Path2D(A),n=j(l.fillTo(a,r,l.min,l.max,M));z(e,S,n),z(e,q,n)}if(!l.spanGaps){let o=[];o.push(...uo(c,d,s,i,D,x,t));let h=l.width*pe/2,m=n||1==e?h:-h,p=n||-1==e?-h:h;o.forEach(a=>{a[0]+=m,a[1]+=p}),C.gaps=o=l.gaps(a,r,s,i,o),C.clip=co(o,u.ori,g,b,f,y)}return 0!=T&&(C.band=2==T?[lo(a,r,s,i,A,-1),lo(a,r,s,i,A,1)]:lo(a,r,s,i,A,T)),C})},a.bars=function(a){const e=$e((a=a||An).size,[.6,sn,1]),n=a.align||0,t=a.gap||0;let o=a.radius;o=null==o?[0,0]:"number"==typeof o?[o,0]:o;const r=un(o),s=1-e[0],i=$e(e[1],sn),l=$e(e[2],1),c=$e(a.disp,An),d=$e(a.each,a=>{}),{fill:u,stroke:h}=c;return(a,e,o,m)=>ro(a,e,(p,g,b,f,y,v,w,k,x,j,z)=>{let C,A,D=p.pxRound,E=n,B=t*pe,F=i*pe,q=l*pe;0==f.ori?[C,A]=r(a,e):[A,C]=r(a,e);const S=f.dir*(0==f.ori?1:-1);let M,T,P,L=0==f.ori?yo:vo,R=0==f.ori?d:(a,e,n,t,o,r,s)=>{d(a,e,n,o,t,s,r)},N=$e(a.bands,Dn).find(a=>a.series[0]==e),I=null!=N?N.dir:0,_=p.fillTo(a,e,p.min,p.max,I),V=D(w(_,y,z,x)),O=j,$=D(p.width*pe),W=!1,U=null,H=null,Y=null,G=null;null==u||0!=$&&null==h||(W=!0,U=u.values(a,e,o,m),H=new Map,new Set(U).forEach(a=>{null!=a&&H.set(a,new Path2D)}),$>0&&(Y=h.values(a,e,o,m),G=new Map,new Set(Y).forEach(a=>{null!=a&&G.set(a,new Path2D)})));let{x0:K,size:X}=c;if(null!=K&&null!=X){E=1,g=K.values(a,e,o,m),2==K.unit&&(g=g.map(e=>a.posToVal(k+e*j,f.key,!0)));let n=X.values(a,e,o,m);T=2==X.unit?n[0]*j:v(n[0],f,j,k)-v(0,f,j,k),O=Bo(g,b,v,f,j,k,O),P=O-T+B}else O=Bo(g,b,v,f,j,k,O),P=O*s+B,T=O-P;P<1&&(P=0),$>=T/2&&($=0),P<5&&(D=hn);let J=P>0;T=D(cn(O-P-(J?$:0),q,F)),M=(0==E?T/2:E==S?0:T)-E*S*((0==E?B/2:0)+(J?$/2:0));const Z={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Q=W?null:new Path2D;let aa=null;if(null!=N)aa=a.data[N.series[1]];else{let{y0:n,y1:t}=c;null!=n&&null!=t&&(b=t.values(a,e,o,m),aa=n.values(a,e,o,m))}let ea=C*T,na=A*T;for(let n=1==S?o:m;n>=o&&n<=m;n+=S){let t=b[n];if(null==t)continue;if(null!=aa){let a=aa[n]??0;if(t-a==0)continue;V=w(a,y,z,x)}let o=v(2!=f.distr||null!=c?g[n]:n,f,j,k),r=w($e(t,_),y,z,x),s=D(o-M),i=D(an(r,V)),l=D(Qe(r,V)),d=i-l;if(null!=t){let o=t<0?na:ea,r=t<0?ea:na;W?($>0&&null!=Y[n]&&L(G.get(Y[n]),s,l+Xe($/2),T,an(0,d-$),o,r),null!=U[n]&&L(H.get(U[n]),s,l+Xe($/2),T,an(0,d-$),o,r)):L(Q,s,l+Xe($/2),T,an(0,d-$),o,r),R(a,e,n,s-$/2,l,T+$,d)}}return $>0?Z.stroke=W?G:Q:W||(Z._fill=0==p.width?p._fill:p._stroke??p._fill,Z.width=0),Z.fill=W?H:Q,Z})},a.spline=function(a){return function(a,e){const n=$e(null==e?void 0:e.alignGaps,0);return(e,t,o,r)=>ro(e,t,(s,i,l,c,d,u,h,m,p,g,b)=>{[o,r]=Pe(l,o,r);let f,y,v,w=s.pxRound,k=a=>w(u(a,c,g,m)),x=a=>w(h(a,d,b,p));0==c.ori?(f=po,v=bo,y=xo):(f=go,v=fo,y=jo);const j=c.dir*(0==c.ori?1:-1);let z=k(i[1==j?o:r]),C=z,A=[],D=[];for(let a=1==j?o:r;a>=o&&a<=r;a+=j)if(null!=l[a]){let e=k(i[a]);A.push(C=e),D.push(x(l[a]))}const E={stroke:a(A,D,f,v,y,w),fill:null,clip:null,band:null,gaps:null,flags:1},B=E.stroke;let[F,q]=so(e,t);if(null!=s.fill||0!=F){let a=E.fill=new Path2D(B),n=x(s.fillTo(e,t,s.min,s.max,F));v(a,C,n),v(a,z,n)}if(!s.spanGaps){let a=[];a.push(...uo(i,l,o,r,j,k,n)),E.gaps=a=s.gaps(e,t,o,r,a),E.clip=co(a,c.ori,m,p,g,b)}return 0!=q&&(E.band=2==q?[lo(e,t,o,r,B,-1),lo(e,t,o,r,B,1)]:lo(e,t,o,r,B,q)),E})}(Fo,a)}}const Yo=new Map;function Go(a){var e;if(!a.startsWith("var("))return a;const n=Yo.get(a);if(n)return n;const t=a.match(/var\(([^,)]+)(?:,\s*([^)]+))?\)/);if(!t)return a;const o=t[1].trim(),r=(null==(e=t[2])?void 0:e.trim())||"#888888",s=getComputedStyle(document.documentElement).getPropertyValue(o).trim()||r;return Yo.set(a,s),s}function Ko(a){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);if(e)return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i.exec(a);return n?[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]:[0,0,0]}let Xo=null,Jo=0;const Zo=o.memo(function({timestamps:a,series:e,onHover:n,onSeriesHover:t,highlightedKey:s=null,cursorColor:i="rgba(255,255,255,0.5)",overlayLine:l=null}){const c=o.useRef(null),d=o.useRef(null),u=o.useRef(e),h=o.useRef(s),m=o.useRef(l),p=o.useRef(n),g=o.useRef(t),b=o.useRef(null),f=o.useRef(a.length);o.useLayoutEffect(()=>{u.current=e,h.current=s,m.current=l,p.current=n,g.current=t});const y=o.useMemo(()=>{const e=new Array(a.length).fill(1);return[a,e]},[a]),v=o.useMemo(()=>({hooks:{draw:a=>{(function(a,e,n,t){if(0===e.length)return;const o=a.ctx,r=a.bbox,s=r.left,i=r.top,l=r.width,c=r.height;if(l<=0||c<=0)return;const d=8*(window.devicePixelRatio||1);o.save(),o.beginPath(),o.roundRect(s,i,l,c,d),o.clip();const u=a.data[0],h=u.length;if(0===h)return;const m=u[0],p=u[h-1]-m||1,g=h>1?u[1]-u[0]:p/h,b=a=>s+(a-m)/p*l,f=a=>i+c*(1-a);for(let y=0;y=0;e--){const a=u[e],n=f(r[e]),t=b(e0&&o.lineTo(s,f(r[e-1]))}o.closePath(),o.fill(),o.restore()}t&&t.values.length>0&&function(a,e){const n=a.ctx,t=a.bbox,o=t.left,r=t.top,s=t.width,i=t.height;if(s<=0||i<=0)return;const l=a.data[0],c=l.length,d=e.values;if(0===c||0===d.length)return;const u=window.devicePixelRatio||1,h=l[0],m=l[c-1]-h||1,p=a=>o+(a-h)/m*s,g=a=>r+i*(1-a),b=Go(e.color),f=(e.lineWidth??2)*u;n.save(),n.strokeStyle=b,n.lineWidth=f,n.lineCap="round",n.lineJoin="round",n.beginPath();let y=0;for(;y=c)return void n.restore();const v=p(l[y]),w=g(d[y]);n.moveTo(v,w);for(let x=y+1;x({width:400,height:200,padding:[8,0,0,32],cursor:{show:!0,x:!0,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],hooks:{setCursor:[a=>{var e,n,t,o;const r=a.cursor.idx;if(null!=r&&r>=0){const t=a.data[0][r];null==(e=p.current)||e.call(p,r,t);const o=a.cursor.left,s=a.cursor.top;if(void 0!==o&&void 0!==s&&null!==o&&null!==s){const e=window.devicePixelRatio||1,t=a.ctx,r=Math.round((a.bbox.left/e+o)*e),i=Math.round((a.bbox.top/e+s)*e),l=t.getImageData(r,i,1,1).data,c=l[0],d=l[1],h=l[2];let m=null;if(l[3]>10){const a=u.current;for(const e of a){const a=Go(e.color),[n,t,o]=Ko(a),r=30;if(Math.abs(c-n)<=r&&Math.abs(d-t)<=r&&Math.abs(h-o)<=r){m=e.key;break}}}m!==b.current&&(b.current=m,null==(n=g.current)||n.call(g,m))}}else null==(t=p.current)||t.call(p,null,null),null!==b.current&&(b.current=null,null==(o=g.current)||o.call(g,null))}]},plugins:[v]}),[v]);o.useEffect(()=>{const e=c.current;if(!e||0===a.length)return;const n=f.current,t=a.length,o=Math.abs(t-n);if(!(!d.current||o>100||n>0&&o/n>.1)&&d.current)return d.current.setData(y),void(f.current=t);d.current&&d.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...w,width:s,height:i},y,e);return d.current=l,f.current=t,()=>{l.destroy(),d.current=null}},[w,y,a.length]),o.useEffect(()=>{const a=c.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!d.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&d.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{d.current&&d.current.redraw()},[s,e,l]);const k=o.useCallback(()=>{null==n||n(null,null),null==t||t(null),b.current=null},[n,t]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:c,className:"w-full h-full overflow-hidden",onMouseLeave:k})}),Qo=o.createContext(null);function ar(a){const e=fa(a);e&&function(a){if("undefined"==typeof document)return;const e=function(a){var e;const n={},t=a.surfaces.glass;n["--glass-tint"]=t.tint,n["--glass-light"]=t.light,n["--glass-dark"]=t.dark,n["--glass-reflex-light"]=String(t.reflexLight),n["--glass-reflex-dark"]=String(t.reflexDark),n["--glass-blur"]=`${t.blur}px`,n["--glass-blur-elevated"]=`${t.blurElevated}px`,n["--glass-brightness"]=String(t.brightness),n["--glass-bg-opacity"]=`${t.opacity}%`,n["--glass-bg-opacity-elevated"]=`${t.opacityElevated}%`,n["--glass-stroke-only"]=t.strokeOnly?"1":"0",n["--glass-stroke-width"]=t.strokeWidth?`${t.strokeWidth}px`:"0px",n["--glass-stroke-color"]=t.strokeColor||"transparent",n["--glass-ribbon-mode"]=t.ribbonMode?"1":"0",n["--glass-ribbon-border-width"]=t.ribbonBorderWidth?`${t.ribbonBorderWidth}px`:"0px",n["--glass-ribbon-border-color"]=t.ribbonBorderColor||"transparent",n["--sidebar-tint"]=a.surfaces.sidebar.tint,n["--tooltip-bg"]=a.colors.bg.surface,n["--hover-tint"]=`rgba(${q(a.colors.accent.primary)}, 0.08)`,n["--shadow-tint"]=`rgba(${q(a.colors.accent.primary)}, 0.35)`,n["--bg-body"]=a.colors.bg.body,n["--bg-surface"]=a.colors.bg.surface,n["--bg-elevated"]=a.colors.bg.elevated,n["--bg-subtle"]=a.colors.bg.subtle,n["--border-subtle"]=a.colors.border.subtle,n["--border-strong"]=a.colors.border.strong,n["--text-primary"]=a.colors.text.primary,n["--text-secondary"]=a.colors.text.secondary,n["--text-muted"]=a.colors.text.muted,n["--text-invert"]=a.colors.text.inverse,n["--accent-primary"]=a.colors.accent.primary,n["--accent-secondary"]=a.colors.accent.secondary,n["--accent-tertiary"]=a.colors.accent.tertiary,n["--accent-success"]=a.colors.accent.success,n["--accent-danger"]=a.colors.accent.danger,n["--signal-excellent"]=a.colors.signal.excellent,n["--signal-good"]=a.colors.signal.good,n["--signal-fair"]=a.colors.signal.fair,n["--signal-poor"]=a.colors.signal.poor,n["--signal-critical"]=a.colors.signal.critical,n["--signal-unknown"]=a.colors.signal.unknown,n["--sparkline-excellent"]=a.colors.signal.excellent,n["--sparkline-good"]=a.colors.signal.good,n["--sparkline-fair"]=a.colors.signal.fair,n["--sparkline-poor"]=a.colors.signal.poor,n["--sparkline-critical"]=a.colors.signal.critical,n["--status-success"]=a.colors.status.success,n["--status-warning"]=a.colors.status.warning,n["--status-danger"]=a.colors.status.danger,n["--status-info"]=a.colors.status.info,n["--status-muted"]=a.colors.status.muted;const o=a.colors.chart;n["--pkt-advert"]=a.colors.accent.secondary,n["--pkt-flood"]=a.colors.accent.tertiary,n["--pkt-txt-msg"]=a.colors.accent.success,n["--pkt-ack"]=o.c8,n["--pkt-trace"]=o.c3,n["--pkt-req"]=o.c2,n["--pkt-response"]=o.c5,n["--pkt-grp-txt"]=a.colors.map.room,n["--pkt-grp-data"]=a.colors.accent.danger,n["--pkt-path"]=o.c3,n["--pkt-anon"]=a.colors.accent.secondary,n["--pkt-unknown"]=a.colors.status.muted,n["--route-flood"]=a.colors.accent.primary,n["--route-direct"]=a.colors.accent.secondary,n["--route-transport"]=o.c8,n["--chart-1"]=o.c1,n["--chart-2"]=o.c2,n["--chart-3"]=o.c3,n["--chart-4"]=o.c4,n["--chart-5"]=o.c5,n["--chart-6"]=o.c6,n["--chart-7"]=o.c7,n["--chart-8"]=o.c8,n["--chart-grid"]=o.grid,n["--chart-axis-tick"]=o.axis,n["--chart-cursor"]=o.cursor,n["--metric-received"]=a.colors.metric.received,n["--metric-forwarded"]=a.colors.metric.forwarded,n["--metric-transmitted"]=a.colors.metric.transmitted,n["--metric-dropped"]=a.colors.metric.dropped,n["--metric-neutral"]=a.colors.text.secondary,n["--log-debug"]=a.colors.status.muted,n["--log-info"]=a.colors.status.info,n["--log-warning"]=a.colors.status.warning,n["--log-error"]=a.colors.accent.danger,n["--log-critical"]=a.colors.accent.danger;const r=a.colors.map;n["--map-node-fill"]="#3B82F6",n["--map-node-stroke"]="rgba(255,255,255,0.9)",n["--map-hub-color"]="#8E4EC6",n["--map-hub-stroke"]="rgba(255,255,255,0.9)",n["--map-gateway-color"]="#5B5BD6",n["--map-gateway-stroke"]="rgba(255,255,255,0.85)",n["--map-local-color"]="#FFB224",n["--map-neighbor-color"]="#FFB224",n["--map-neighbor-stroke"]="rgba(0,0,0,0.4)",n["--map-mobile-color"]="#F76B15",n["--map-room-color"]="#D6409F",n["--map-ghost-color"]="#00A2C7",n["--map-edge-rest"]=r.edge,n["--map-edge-rest-bright"]=a.colors.border.strong,n["--map-edge-rest-dim"]=a.colors.bg.subtle,n["--map-edge-hover-direct"]=r.edgeHover,n["--map-edge-hover-loop"]="#8E4EC6",n["--map-edge-hover-standard"]=a.colors.text.muted,n["--map-edge-hover-neighbor"]="#FFB224",n["--link-strong"]=a.colors.accent.success,n["--link-medium"]=a.colors.accent.secondary,n["--link-weak"]=a.colors.accent.danger,n["--hop-0"]=a.colors.accent.tertiary,n["--hop-1"]=a.colors.accent.success,n["--hop-2"]=o.c3,n["--hop-3"]=a.colors.accent.secondary,n["--hop-distant"]=a.colors.text.muted,n["--hop-hub"]=r.local;const s=a.colors.icon;n["--icon-page-title"]=(null==s?void 0:s.pageTitle)??a.colors.accent.primary,n["--icon-card-title"]=(null==s?void 0:s.cardTitle)??a.colors.accent.primary,n["--icon-widget"]=(null==s?void 0:s.widget)??a.colors.text.secondary,n["--icon-action"]=(null==s?void 0:s.action)??a.colors.text.secondary,n["--icon-nav"]=(null==s?void 0:s.nav)??a.colors.text.muted,n["--icon-nav-active"]=(null==s?void 0:s.navActive)??a.colors.accent.primary,n["--toggle-on"]=a.colors.accent.success,n["--toggle-off"]=a.colors.bg.elevated;const i=a.colors.sidebar;n["--sidebar-bg"]=(null==i?void 0:i.bg)??"transparent",n["--sidebar-nav-hover-bg"]=(null==i?void 0:i.navHoverBg)??"rgba(255, 255, 255, 0.05)",n["--sidebar-nav-active-bg"]=(null==i?void 0:i.navActiveBg)??`color-mix(in srgb, ${a.colors.accent.primary} 15%, transparent)`,n["--sidebar-nav-active-text"]=(null==i?void 0:i.navActiveText)??a.colors.accent.primary;const l=a.meta.isDark;n["--data-box-bg"]=l?"rgba(255, 255, 255, 0.03)":"rgba(0, 0, 0, 0.03)",n["--data-box-border"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.08)",n["--subtle-fill"]=l?"rgba(255, 255, 255, 0.03)":"rgba(0, 0, 0, 0.03)",n["--subtle-fill-hover"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.05)",n["--subtle-fill-strong"]=l?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",n["--color-pill-bg"]=l?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.3)",n["--terminal-bg"]=l?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0.03)",n["--terminal-bg-input"]=l?"rgba(0, 0, 0, 0.5)":"rgba(0, 0, 0, 0.05)",n["--terminal-bg-status"]=l?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.02)",n["--terminal-border"]=l?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.08)",n["--terminal-autocomplete-bg"]=l?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.95)",n["--terminal-autocomplete-border"]=l?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.15)",n["--terminal-autocomplete-hover"]=l?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",n["--livedot-idle"]=l?"#666677":"#999999",n["--ctrl-panel-top"]=l?"rgba(30, 30, 30, 0.95)":"rgba(240, 240, 240, 0.95)",n["--ctrl-panel-mid"]=l?"rgba(25, 25, 25, 0.95)":"rgba(235, 235, 235, 0.95)",n["--ctrl-panel-bottom"]=l?"rgba(20, 20, 20, 0.95)":"rgba(230, 230, 230, 0.95)",n["--ctrl-panel-border"]=l?"rgba(60, 60, 60, 1)":"rgba(200, 200, 200, 1)",n["--chart-grid-line"]=l?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.08)",n["--map-control-active-amber"]=l?"rgba(251, 191, 36, 0.15)":"rgba(217, 119, 6, 0.12)",n["--map-control-active-sky"]=l?"rgba(56, 189, 248, 0.15)":"rgba(14, 165, 233, 0.12)",n["--map-control-active-teal"]=l?"rgba(45, 212, 191, 0.15)":"rgba(20, 184, 166, 0.12)",n["--sidebar-action-active-green"]=l?"rgba(10, 26, 10, 1)":"rgba(220, 252, 231, 1)",n["--sidebar-action-active-teal"]=l?"rgba(10, 36, 32, 1)":"rgba(204, 251, 241, 1)",n["--sidebar-action-active-amber"]=l?"rgba(26, 20, 8, 1)":"rgba(254, 243, 199, 1)",n["--thumbnail-brightness"]=l?"1.5":"1.8",n["--font-title"]=a.typography.font.title,n["--font-display"]=a.typography.font.display,n["--font-data"]=a.typography.font.mono,n["--font-card-title"]=a.typography.font.cardTitle??a.typography.font.display,n["--font-badge"]=a.typography.font.badge??a.typography.font.display,n["--font-normal"]=String(a.typography.weight.normal),n["--font-medium"]=String(a.typography.weight.medium),n["--font-semibold"]=String(a.typography.weight.semibold),n["--font-bold"]=String(a.typography.weight.bold),n["--font-card-title-weight"]=String(a.typography.weight.cardTitle??a.typography.weight.semibold),n["--font-badge-weight"]=String(a.typography.weight.badge??a.typography.weight.medium),n["--badge-text-transform"]=(null==(e=a.typography.badge)?void 0:e.textTransform)??"none";const c=a.typography.size;c.xxl&&(n["--text-2xl"]=c.xxl),c.xl&&(n["--text-xl"]=c.xl),c.lg&&(n["--text-lg"]=c.lg),c.md&&(n["--text-md"]=c.md),c.base&&(n["--text-base"]=c.base),c.sm&&(n["--text-sm"]=c.sm),c.xs&&(n["--text-xs"]=c.xs),c.hero&&(n["--text-5xl"]=c.hero),c.cardTitle&&(n["--text-card-title"]=c.cardTitle);const d=a.typography.tracking;return d&&(n["--tracking-tight"]=d.tight,n["--tracking-normal"]=d.normal,n["--tracking-wide"]=d.wide),n["--theme-transition"]=`${a.motion.slow} ${a.motion.easing}`,function(a){if(!E())return a;const e={},n=/^#[0-9A-Fa-f]{3,6}$/;for(const[t,o]of Object.entries(a))e[t]=n.test(o)?D(o):o;return e}(n)}(a),n=document.documentElement;for(const[t,o]of Object.entries(e))n.style.setProperty(t,o);a.surfaces.glass.strokeOnly?n.classList.add("stroke-only"):n.classList.remove("stroke-only"),a.surfaces.glass.ribbonMode?n.classList.add("ribbon-mode"):n.classList.remove("ribbon-mode"),a.surfaces.glass.catalystMode?n.classList.add("catalyst-mode"):n.classList.remove("catalyst-mode")}(e),document.documentElement.dataset.colorScheme=a}function er({children:a}){const[e,n]=o.useState(()=>function(){if("undefined"==typeof window)return Ba;try{let n=localStorage.getItem(Fa),t=localStorage.getItem(qa);const o=localStorage.getItem(Sa);if(!n&&!t){const a=localStorage.getItem(Ma);if(a){const e=Ea.find(e=>e.id===a);e&&(n=e.colorScheme,t=e.backgroundImage,localStorage.setItem(Fa,n),localStorage.setItem(qa,t),localStorage.removeItem(Ma))}}const r=n&&"string"==typeof(e=n)&&Aa.some(a=>a.id===e)?n:Ba.colorScheme;let s=Ba.backgroundImage;""===t?s="":t&&"string"==typeof(a=t)&&Da.some(e=>e.src===a)&&(s=t);let i=Ba.brightness;if(o){const a=parseInt(o,10);!isNaN(a)&&a>=0&&a<=100&&(i=a)}return{colorScheme:r,backgroundImage:s,brightness:i}}catch{return Ba}var a,e}()),t=o.useRef(!1),s=o.useRef(null),[i,l]=o.useState(null);o.useEffect(()=>{s.current&&(clearTimeout(s.current),s.current=null),t.current&&(l("#808080"),s.current=setTimeout(()=>{l(null),s.current=null},1800)),t.current=!0,ar(e.colorScheme),Yo.clear(),requestAnimationFrame(()=>{!function(){if("undefined"==typeof window)return;for(const e of Ra){const a=$a(`--palette-${e}-bright`),n=$a(`--palette-${e}`),t=a||n;if(!t)continue;const o=Oa(t);for(const r of La)Wa(`--palette-${e}-${r}`,o[r])}const a=$a("--palette-bg-4");if(a){const e=Oa(a);for(const a of La)Wa(`--palette-neutral-${a}`,e[a])}}()})},[e.colorScheme]),o.useEffect(()=>{!function(a){if("undefined"!=typeof window)try{localStorage.setItem(Fa,a.colorScheme),localStorage.setItem(qa,a.backgroundImage),localStorage.setItem(Sa,String(a.brightness))}catch{}}(e)},[e]),o.useEffect(()=>{Da.forEach(a=>{(new Image).src=a.src})},[]);const c=o.useCallback(a=>{n(e=>({...e,colorScheme:a}))},[]),d=o.useCallback(a=>{const e=Da.find(e=>e.src===a);n(n=>({...n,backgroundImage:a,brightness:(null==e?void 0:e.suggestedBrightness)??n.brightness}))},[]),u=o.useCallback(a=>{const e=Math.max(0,Math.min(100,Math.round(a)));n(a=>({...a,brightness:e}))},[]),h=o.useCallback(a=>{const e=Ea.find(e=>e.id===a);if(e){const a=!e.backgroundImage,t=a?null:Da.find(a=>a.src===e.backgroundImage);n(n=>({...n,colorScheme:e.colorScheme,backgroundImage:e.backgroundImage,brightness:a?100:(null==t?void 0:t.suggestedBrightness)??n.brightness}))}},[]),m=o.useMemo(()=>({theme:e,setColorScheme:c,setBackgroundImage:d,setBrightness:u,setThemePreset:h}),[e,c,d,u,h]);return r.jsxs(Qo.Provider,{value:m,children:[a,i&&r.jsx("div",{className:"fixed inset-0 pointer-events-none z-[9999]",style:{backgroundColor:i,animation:"theme-crossfade 1.8s ease-out forwards"}},e.colorScheme),r.jsx("style",{children:"\n @keyframes theme-crossfade {\n from { opacity: 0.35; }\n to { opacity: 0; }\n }\n "})]})}function nr(){const a=o.useContext(Qo);if(!a)throw new Error("useTheme must be used within a ThemeProvider. Wrap your app with in App.tsx.");return a}const tr=o.forwardRef(function(a,e){const{href:n,...t}=a;return n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?r.jsx(s,{children:r.jsx("a",{...t,href:n,ref:e})}):r.jsx(s,{children:r.jsx(v,{...t,to:n,ref:e})})}),or={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"},rr={0:"T_FLOOD",1:"FLOOD",2:"DIRECT",3:"T_DIRECT"},sr={REQ:0,RESPONSE:1,TXT_MSG:2,ACK:3,ADVERT:4,GRP_TXT:5,GRP_DATA:6,ANON_REQ:7,PATH:8,TRACE:9,MULTIPART:10,RAW_CUSTOM:15};function ir(a){return 1===a||0===a}const lr={acton:{discrete:["#260D40","#2B1345","#2F194B","#342152","#382657","#3C2C5C","#403261","#443766","#483E6C","#4C4371","#504876","#544D7B","#57527F","#5D5884","#625C88","#685F8A","#6E618C","#74628D","#7B638D","#81638E","#88648E","#8E648E","#95658F","#9D658F","#A4668F","#AB6690","#B26790","#BB6992","#C26B94","#C86F97","#CD749B","#D07AA0","#D382A7","#D688AC","#D88FB2","#D995B8","#DB9CBD","#DEA4C4","#DFABC9","#E1B1CE","#E3B7D3","#E5BED8","#E6C5DE","#E8CBE2","#E9D0E6","#EBD6EA","#ECDBEE","#EDE1F3","#EFE6F6","#F0EAFA"],categorical:["#260D40","#F0EAFA","#A76690","#DDA1C2","#585380","#7D638E","#E8CAE1","#CF789E","#403261","#4C4371","#ECDBEE","#69608B","#E3B6D2","#D78CB0","#91648F","#BE6A92","#342152","#EAD3E8","#524B79","#73628D","#463A69","#605B86","#E5C0DA","#D382A7","#C86F97","#86648E","#EEE3F4","#DA97B9","#9B658F","#B26790","#2D1749","#E0ACCA","#3A2959","#8B648E","#311C4D","#EBD7EB","#EDDFF1","#AC6790","#A1668F","#6E618C","#E6C5DE","#78628D","#433665","#DEA7C6","#81638E","#554F7C","#B86891","#3D2D5D","#4F4775","#EFE7F7","#E9CEE4","#D27DA3","#2A1244","#655D89","#C36C94","#E1B1CE","#493F6D","#5C5783","#CC739A","#DB9CBD","#D892B4","#D587AB","#96658F","#E4BBD6","#362455","#4E4573","#7F638E","#D37FA5","#E1AECC","#382657","#EBD9ED","#DFA9C8","#A4668F","#8E648E","#99658F","#675F8A","#B56891","#BB6992","#E5BED8","#E2B4D0","#D07AA0","#71618C","#E6C2DC","#AA6690","#625C88","#EDE1F3","#E8CCE3","#AF6790","#CA7199","#C16B93","#453867","#57517E","#84638E","#4B416F","#E7C7DF","#423463","#514977","#3E2F5F","#544D7B","#93658F"]},bam:{discrete:["#65024B","#701057","#7B1B61","#88276E","#923078","#9B3881","#A4418A","#AC4993","#B5549C","#BC5CA3","#C266AB","#C970B2","#CF7AB9","#D587C1","#DA93C8","#DF9ECE","#E3AAD4","#E7B5DA","#EBC2E0","#EECCE5","#F1D5E9","#F3DDED","#F5E4F0","#F6EBF1","#F6EFF1","#F5F2F0","#F3F3ED","#EFF3E6","#EBF1DF","#E5EFD5","#DDEBCA","#D4E6BD","#C8DEAB","#BCD79B","#B0CE8C","#A3C67D","#97BC6F","#88B161","#7CA856","#72A04D","#679845","#5E903D","#538735","#4B7F2E","#427827","#397021","#306819","#245D10","#195507","#0D4C00"],categorical:["#65024B","#701057","#7B1B61","#88276E","#923078","#9B3881","#A4418A","#AC4993","#B5549C","#BC5CA3","#C266AB","#C970B2","#CF7AB9","#D587C1","#DA93C8","#DF9ECE","#E3AAD4","#E7B5DA","#EBC2E0","#EECCE5","#F1D5E9","#F3DDED","#F5E4F0","#F6EBF1","#F6EFF1","#F5F2F0","#F3F3ED","#EFF3E6","#EBF1DF","#E5EFD5","#DDEBCA","#D4E6BD","#C8DEAB","#BCD79B","#B0CE8C","#A3C67D","#97BC6F","#88B161","#7CA856","#72A04D","#679845","#5E903D","#538735","#4B7F2E","#427827","#397021","#306819","#245D10","#195507","#0D4C00"]},bamako:{discrete:["#003B47","#023C46","#053E45","#083F43","#0A4141","#0D4340","#0F443E","#12463C","#16483A","#194A38","#1C4D36","#204F34","#235132","#28542F","#2C572C","#305A2A","#355C27","#395F24","#3F6321","#44661E","#49691A","#4E6D17","#537014","#5A7410","#5F780D","#657C09","#6A7F05","#718302","#788501","#7F8700","#858800","#8C8A00","#948C01","#9B8E04","#A1920B","#A89713","#AE9C1B","#B7A225","#BEA82E","#C5AD37","#CBB341","#D2B84D","#D9BF5B","#DEC567","#E4CA73","#E9D07E","#EFD58A","#F5DB97","#FAE0A3","#FFE5AD"],categorical:["#003B47","#FFE5AD","#61790B","#B4A022","#245231","#406420","#898900","#DDC464","#0F443E","#EFD58A","#CAB23F","#194A38","#748401","#506E16","#9E9108","#315A29","#083F43","#A99815","#948C01","#6A7F05","#BFA930","#7F8700","#14473B","#1E4E35","#F7DD9C","#2A562D","#043D45","#597411","#E6CC77","#385F25","#48691B","#D4BB51","#0B4241","#8F8A00","#44661E","#1B4C37","#547113","#6F8203","#12463D","#998E03","#27542F","#4C6B18","#A4940E","#2E582B","#355C27","#B9A529","#215033","#EAD181","#FBE1A5","#C5AD37","#3C6122","#848800","#063E44","#E2C86E","#D9BF5B","#CFB648","#16493A","#798600","#023C46","#667C08","#5D770E","#0D433F","#AE9C1B","#F3D993","#094042","#A69611","#8C8A00","#053E45","#0C4240","#365E26","#6D8004","#9C8F05","#4A6A1A","#D6BD56","#B19E1F","#F9DFA0","#647B0A","#2F592A","#10453D","#818800","#C7AF3B","#46681C","#0E443F","#265330","#174A39","#335B28","#5B750F","#778501","#5F780D","#E8CF7C","#718302","#F1D78E","#978D02","#F5DB97","#204F34","#AC9A18","#29552E","#A1920B","#B7A225","#033C46"]},bamo:{discrete:["#4F3043","#56304B","#603354","#6D3961","#793F6B","#834675","#8D4E7E","#965587","#A05E91","#A86698","#B06EA0","#B877A7","#BF81AF","#C78DB8","#CD98BE","#D2A3C4","#D6ADC8","#D9B5CB","#DABECC","#DAC3CC","#D9C7CA","#D8CAC8","#D6CBC6","#D4CDC2","#D1CDBE","#CCCDB9","#C6CBB1","#BCC5A4","#B2BE97","#A7B58A","#9CAB7E","#92A174","#889669","#808D62","#79855C","#737D56","#6D7552","#666C4C","#616548","#5C5D45","#575642","#54503F","#50493D","#4D453C","#4B403B","#4A3C3A","#49393A","#49343B","#4A313E","#4E3042"],categorical:["#4F3043","#56304B","#603354","#6D3961","#793F6B","#834675","#8D4E7E","#965587","#A05E91","#A86698","#B06EA0","#B877A7","#BF81AF","#C78DB8","#CD98BE","#D2A3C4","#D6ADC8","#D9B5CB","#DABECC","#DAC3CC","#D9C7CA","#D8CAC8","#D6CBC6","#D4CDC2","#D1CDBE","#CCCDB9","#C6CBB1","#BCC5A4","#B2BE97","#A7B58A","#9CAB7E","#92A174","#889669","#808D62","#79855C","#737D56","#6D7552","#666C4C","#616548","#5C5D45","#575642","#54503F","#50493D","#4D453C","#4B403B","#4A3C3A","#49393A","#49343B","#4A313E","#4E3042"]},batlow:{discrete:["#011959","#06215B","#0A285C","#0D315D","#0E375E","#103D5F","#114260","#124761","#144D62","#165162","#195662","#1C5A62","#205E61","#26635F","#2C665D","#33695A","#3A6C57","#416F53","#4A724E","#52744A","#5A7745","#627941","#6A7B3D","#747E38","#7D8134","#868330","#8F862D","#9B892B","#A58B2C","#AF8D2E","#B98F32","#C29037","#CD923F","#D69446","#DE964F","#E69858","#ED9A62","#F39E70","#F8A17B","#FAA587","#FCA993","#FDAC9E","#FDB1AB","#FDB4B6","#FDB8C0","#FDBCCB","#FCBFD6","#FCC4E3","#FBC8EF","#FACCFA"],categorical:["#011959","#FACCFA","#828231","#226061","#F29D6D","#4D734D","#114360","#C09036","#FDB4B4","#DD954D","#356A59","#FCBFD6","#175262","#677B3E","#A18A2B","#0D315D","#FCA890","#FBC6E8","#2B655E","#B18D2F","#5A7745","#FDAEA2","#CF9340","#0F3B5F","#E9995C","#FDBAC4","#416F53","#91862D","#1B5962","#08255B","#747E38","#134B61","#F9A380","#8A842F","#0E365E","#124761","#154F62","#E39754","#7B8034","#1E5D62","#99882C","#195662","#0B2B5C","#FDB7BC","#C8913B","#FCC3DF","#EE9B64","#A98C2C","#FDB1AB","#FDBCCD","#FBC9F1","#051F5A","#F6A077","#607942","#FDAB9A","#477150","#3B6D56","#B98F32","#26635F","#537549","#D69446","#6D7C3B","#30685C","#103F60","#FBA689","#BD8F34","#CB923E","#EB9A60","#FDB8C0","#FBC7EC","#F09C69","#8E852E","#FDBBC9","#7F8133","#031C5A","#114160","#FDAC9E","#5D7844","#FCA995","#185462","#787F36","#A58B2C","#0A285C","#9D892B","#33695A","#0D335E","#637A40","#165062","#124561","#205E61","#144D62","#1D5B62","#0C2E5D","#D9954A","#3E6E55","#AD8C2D","#F49F72","#868330","#B58E30","#577647"]},batlowk:{discrete:["#04050A","#0A0D15","#0F141E","#121B29","#152233","#18293D","#1C3146","#21384F","#274156","#2C485B","#314E5E","#36535F","#3B575F","#405C5E","#445F5D","#49625B","#4D6558","#526756","#586B52","#5E6E4F","#63724B","#6A7548","#717845","#797D41","#81813E","#8A853B","#938839","#9F8D38","#A99139","#B3943B","#BE973E","#C89A43","#D39D4C","#DB9F54","#E2A15D","#E8A366","#EEA570","#F3A77C","#F6A986","#F8AC91","#FAAE9A","#FCB1A4","#FDB4B0","#FDB7B9","#FDBAC3","#FDBDCD","#FDC1D8","#FCC5E4","#FBC8EF","#FACCFA"],categorical:["#04050A","#FDC0D6","#787C41","#38555F","#E5A160","#536855","#AF933A","#FAAE9A","#1A2E43","#FDB6B7","#294458","#455F5C","#63724B","#CD9B47","#91883A","#F3A77E","#111A27","#F7AB8D","#FDBBC5","#FCB2AA","#D99E52","#A18E38","#4C6459","#21384F","#3F5B5E","#152335","#0C1019","#EEA570","#5B6D50","#6C7647","#314E5E","#85823D","#BE973E","#7E7F3F","#FBB0A2","#49625B","#576A53","#0F151F","#2D495B","#DFA059","#727944","#FDBDCD","#253E54","#EAA368","#C69942","#3C585F","#998B38","#677449","#F1A678","#F9AC92","#141F2F","#1D3248","#506657","#090C13","#A99139","#5F6F4E","#35525F","#435D5D","#FDB8BD","#F5A984","#B5953B","#FDB5B2","#17273B","#D39D4C","#8C853B","#9D8C38","#415C5E","#1F354B","#33505E","#FCB1A6","#101723","#3E595F","#121C2B","#757B43","#06080F","#FCB3AE","#3A565F","#274156","#61704D","#88843C","#2B475A","#FDBED1","#6A7548","#596C51","#192B3F","#6F7845","#233B51","#C99A45","#F0A574","#DC9F55","#2F4B5D","#47615C","#F6AA88","#FDB9C1","#C29840","#4A635A","#FAAD96","#81813E","#7B7E40","#E7A264"]},batloww:{discrete:["#011959","#06215B","#0A285C","#0D315D","#0E375E","#103D5F","#114260","#124761","#144C62","#165062","#185562","#1B5962","#1F5D62","#246261","#2A665F","#30695D","#366C5A","#3D7056","#467352","#4E764E","#56794A","#5E7C46","#667F42","#70823D","#798539","#828936","#8C8C33","#989032","#A29433","#AD9738","#B79B3F","#C19E48","#CBA154","#D3A45E","#D9A669","#DFA872","#E4AA7C","#E9AC88","#EEAF91","#F2B39C","#F6B9A8","#F9C0B5","#FCCAC4","#FED3CF","#FFDBDA","#FFE3E2","#FFEAEA","#FFF2F2","#FFF8F8","#FFFEFE"],categorical:["#FFFEFE","#011959","#7E8737","#205F61","#E7AB84","#497451","#114360","#FED1CD","#BF9D46","#637E44","#9E9233","#FFEAEA","#0D315D","#326B5C","#F5B7A6","#165162","#D7A564","#0F3B5F","#1A5862","#3D7056","#FFF5F5","#FFDFDD","#FAC3BA","#134A61","#08255B","#70823D","#EEB094","#56794A","#E0A874","#8E8D33","#28655F","#AF9839","#CBA154","#EBAD8B","#1D5C62","#051F5A","#124761","#FFE5E4","#B79B3F","#A79535","#386D59","#5C7B47","#185562","#DBA76D","#F8BDAF","#FFF0F0","#246261","#F2B39C","#868A35","#4F774D","#E4AA7C","#2D685E","#77853A","#FED8D6","#103F60","#FFFAF9","#968F32","#D1A35C","#144E62","#FCCAC4","#437254","#698040","#0E365E","#0B2B5C","#C59F4C","#30695D","#1C5A62","#A29433","#407155","#FFDBDA","#0C2E5D","#F7BAAA","#E5AB80","#175362","#828936","#1F5D62","#BB9C42","#E9AC88","#FFF7F7","#3A6E58","#9A9132","#8A8B34","#4C754F","#FFEDED","#D9A669","#144C62","#266460","#FDCDC9","#FCC6BF","#FFE2E1","#FFFCFC","#7B8639","#2B675E","#155062","#5F7C45","#F9C0B5","#356C5A","#F3B5A1","#EDAF8F","#FED5D2"]},berlin:{discrete:["#9EB0FF","#93AFFA","#87ADF4","#79ABED","#6CA9E6","#60A5DF","#54A0D5","#489ACA","#3E90BC","#3787AF","#327EA3","#2D7597","#296B8B","#25607C","#225771","#1E4E65","#1B465A","#183D4F","#153342","#122C38","#11242E","#101D25","#11181C","#121214","#160E0D","#1B0B07","#210B03","#270D01","#2D0E00","#340F00","#3B1100","#421301","#4B1602","#541905","#5D1E09","#68240F","#732B16","#803620","#8A3F2A","#944834","#9E513F","#A85A4A","#B46658","#BE6F63","#C8796F","#D2837A","#DD8D86","#EA9995","#F4A3A1","#FFADAD"],categorical:["#9EB0FF","#93AFFA","#87ADF4","#79ABED","#6CA9E6","#60A5DF","#54A0D5","#489ACA","#3E90BC","#3787AF","#327EA3","#2D7597","#296B8B","#25607C","#225771","#1E4E65","#1B465A","#183D4F","#153342","#122C38","#11242E","#101D25","#11181C","#121214","#160E0D","#1B0B07","#210B03","#270D01","#2D0E00","#340F00","#3B1100","#421301","#4B1602","#541905","#5D1E09","#68240F","#732B16","#803620","#8A3F2A","#944834","#9E513F","#A85A4A","#B46658","#BE6F63","#C8796F","#D2837A","#DD8D86","#EA9995","#F4A3A1","#FFADAD"]},bilbao:{discrete:["#4C0001","#54070B","#5B0E13","#64161A","#6B1D20","#712227","#77282D","#7D2E34","#84343B","#8A3A41","#8F4047","#94464B","#984C4F","#9B5253","#9D5754","#9E5C56","#A06057","#A16458","#A26959","#A36D5A","#A4715B","#A5745B","#A6785C","#A77C5D","#A8805E","#A9845F","#AA875F","#AC8C60","#AD9061","#AE9463","#AF9864","#B19D68","#B3A36E","#B6A975","#B8AD7E","#BBB287","#BDB590","#C0B99A","#C2BCA3","#C4BFAA","#C6C2B2","#C8C5B9","#CBCAC1","#CFCEC9","#D5D4D1","#DBDBDA","#E3E3E2","#EDEDED","#F6F6F6","#FFFFFF"],categorical:["#4C0001","#F8F8F8","#A9815E","#984D50","#BEB794","#AF9965","#CCCAC3","#78292F","#A26A59","#9F5D56","#64161A","#B6AA77","#C4C0AC","#A6765C","#8A3A41","#AC8C60","#DDDDDB","#A16358","#C7C5B7","#B3A16B","#A4705A","#6E2024","#EAEAE9","#92434A","#BAB185","#9C5554","#AD9262","#580B10","#813137","#C1BCA1","#AA865F","#D2D2CE","#A77C5D","#D7D7D4","#BCB48D","#B4A571","#C0B99A","#9E5955","#AB8960","#A6795C","#A36D5A","#8E3F46","#85353C","#A16758","#732529","#CAC7BD","#F1F1F0","#520509","#AC8F61","#5E1115","#C6C2B2","#E3E3E2","#691B1F","#B8AD7E","#95484D","#AE9663","#B19D68","#A5735B","#A06057","#9A5152","#A87E5D","#7D2E34","#A9835E","#C3BEA6","#CFCEC9","#A46E5A","#F4F4F4","#DADAD8","#B29F69","#EDEDED","#BBB289","#9D5754","#AF9764","#904148","#994F51","#B3A36E","#A87F5E","#A26859","#AC8D61","#BDB590","#AA875F","#A77A5D","#AB8A60","#A4715B","#611418","#BFB897","#E6E6E6","#9B5353","#D5D4D1","#974A4F","#C8C6BA","#A16558","#9F5E56","#76272C","#67191D","#8C3C43","#B9AF82","#C3BFA9","#B5A874","#4F0205"]},broc:{discrete:["#2C1A4C","#2B2154","#2B295B","#2A3164","#29396C","#284174","#29497C","#2A5183","#305C8C","#376593","#416D9A","#4B76A0","#567FA6","#6489AD","#6F92B3","#7B9BBA","#86A3C0","#92ACC6","#A0B7CD","#ACC0D3","#B8C9DA","#C4D2E0","#D0DBE6","#DEE5EC","#E7ECED","#EDEFE9","#EDEEE1","#E9E9D4","#E4E4C8","#DEDEBD","#D8D8B1","#D2D2A5","#C9C996","#C1C18A","#B8B87E","#AEAE73","#A3A369","#97975E","#8D8D56","#83834D","#797945","#70703D","#646434","#5B5B2C","#525224","#49491D","#404016","#36360F","#2E2E08","#262600"],categorical:["#2C1A4C","#2B2154","#2B295B","#2A3164","#29396C","#284174","#29497C","#2A5183","#305C8C","#376593","#416D9A","#4B76A0","#567FA6","#6489AD","#6F92B3","#7B9BBA","#86A3C0","#92ACC6","#A0B7CD","#ACC0D3","#B8C9DA","#C4D2E0","#D0DBE6","#DEE5EC","#E7ECED","#EDEFE9","#EDEEE1","#E9E9D4","#E4E4C8","#DEDEBD","#D8D8B1","#D2D2A5","#C9C996","#C1C18A","#B8B87E","#AEAE73","#A3A369","#97975E","#8D8D56","#83834D","#797945","#70703D","#646434","#5B5B2C","#525224","#49491D","#404016","#36360F","#2E2E08","#262600"]},broco:{discrete:["#372F38","#36303D","#363144","#36354E","#363957","#373F60","#39456A","#3C4D75","#415780","#47608A","#4D6992","#55729A","#5D7BA2","#6886AA","#728FB1","#7C97B7","#86A0BD","#91A8C2","#9DB2C8","#A7BACC","#B1C1CE","#BAC8D0","#C2CDD0","#CAD1CD","#CED3C8","#CFD3C2","#CFD1B9","#CBCCAD","#C6C6A2","#BFBF96","#B8B78B","#AFAF7F","#A4A472","#9B9A68","#91915E","#888755","#7E7E4C","#737243","#6B693D","#626137","#5B5932","#54512E","#4C482B","#474229","#423D29","#3F3829","#3C352B","#39322E","#383032","#372F37"],categorical:["#372F38","#36303D","#363144","#36354E","#363957","#373F60","#39456A","#3C4D75","#415780","#47608A","#4D6992","#55729A","#5D7BA2","#6886AA","#728FB1","#7C97B7","#86A0BD","#91A8C2","#9DB2C8","#A7BACC","#B1C1CE","#BAC8D0","#C2CDD0","#CAD1CD","#CED3C8","#CFD3C2","#CFD1B9","#CBCCAD","#C6C6A2","#BFBF96","#B8B78B","#AFAF7F","#A4A472","#9B9A68","#91915E","#888755","#7E7E4C","#737243","#6B693D","#626137","#5B5932","#54512E","#4C482B","#474229","#423D29","#3F3829","#3C352B","#39322E","#383032","#372F37"]},buda:{discrete:["#B301B3","#B30BAE","#B314AA","#B31CA6","#B323A2","#B3289F","#B32E9D","#B4339A","#B53998","#B63E96","#B84394","#B94892","#BB4C91","#BD528F","#BE568D","#C05B8C","#C15F8A","#C36389","#C46987","#C66D86","#C77184","#C97583","#CA7982","#CB7E80","#CD837F","#CE877E","#CF8B7D","#D0917B","#D1957A","#D29979","#D49E78","#D5A277","#D6A776","#D7AC75","#D8B073","#D9B572","#DAB971","#DCBF70","#DDC36F","#DEC86E","#DFCC6C","#E0D16B","#E2D76A","#E4DC69","#E6E168","#E9E667","#EDEC67","#F3F366","#F9F966","#FFFF66"],categorical:["#B301B3","#FFFF66","#CD857E","#BC4E90","#DBBD70","#C56A87","#B32F9C","#E3DB69","#D4A177","#EDEC67","#D1937B","#B73F95","#C05C8B","#DFCB6D","#C97882","#B31CA6","#D8AE74","#E7E368","#DAB572","#B311AC","#D39A79","#C36389","#C77184","#B53798","#E1D36B","#BE558E","#B94793","#CB7E80","#CF8C7C","#DDC46E","#B326A0","#F6F566","#D6A875","#DAB971","#C66E86","#E2D76A","#B32B9E","#B317A9","#B4339A","#BA4B91","#C46788","#C2608A","#B309AF","#D49E78","#B63B97","#BD528F","#DCC06F","#EAE767","#FAFA66","#D2977A","#F1F066","#D0907C","#CE897D","#C87483","#CC827F","#D5A576","#B321A3","#E5DF68","#B84394","#D9B273","#E0CF6C","#CA7B81","#DEC86E","#BF598C","#D7AB75","#E6E168","#D1957A","#CC8080","#D39C78","#E0CD6C","#CD847F","#B63D96","#C87384","#C66C86","#F8F866","#D49F78","#D9B473","#DAB772","#BF578D","#CB7D81","#CF8A7D","#B32D9D","#D08E7C","#DBBB71","#C2628A","#E2D56A","#DCBF70","#BC508F","#C46987","#C05B8C","#DFCA6D","#DDC26F","#C15E8B","#D7AD74","#F3F366","#DEC66E","#D5A377","#B31AA7","#BA4992","#CE877E"]},bukavu:{discrete:["#1A3333","#1B373D","#1C3C47","#1E4255","#1F4762","#214E71","#235582","#255E92","#2969A1","#2C73AD","#2F7CB8","#3485C2","#3B8EC7","#4799C8","#50A1C9","#59AAC9","#62B2CA","#6BBACB","#76C3CB","#81CCCD","#92D5D1","#A4DED5","#B6E7DA","#CCF2DF","#DDFBE3","#034224","#08491F","#115119","#1C5914","#2B6212","#3D6915","#4E6E1B","#617224","#6F742B","#7B7631","#867836","#917B3C","#9E7E45","#AA844F","#B48D5D","#BC976C","#C3A27C","#CAB08F","#CFBBA0","#D5C6B0","#DACFC1","#DFD7D0","#E4DFE0","#E9E6ED","#EDEDFC"],categorical:["#1A3333","#1B373D","#1C3C47","#1E4255","#1F4762","#214E71","#235582","#255E92","#2969A1","#2C73AD","#2F7CB8","#3485C2","#3B8EC7","#4799C8","#50A1C9","#59AAC9","#62B2CA","#6BBACB","#76C3CB","#81CCCD","#92D5D1","#A4DED5","#B6E7DA","#CCF2DF","#DDFBE3","#034224","#08491F","#115119","#1C5914","#2B6212","#3D6915","#4E6E1B","#617224","#6F742B","#7B7631","#867836","#917B3C","#9E7E45","#AA844F","#B48D5D","#BC976C","#C3A27C","#CAB08F","#CFBBA0","#D5C6B0","#DACFC1","#DFD7D0","#E4DFE0","#E9E6ED","#EDEDFC"]},cork:{discrete:["#2C194C","#2B2254","#2B295C","#2A3265","#293A6D","#284275","#284A7C","#2A5284","#2F5C8D","#366493","#3F6C99","#49749F","#527CA4","#5E85AA","#688DB0","#7395B6","#7E9DBB","#8AA6C2","#99B1C9","#A5BBD0","#B2C5D7","#C0CFDE","#CDD9E5","#DCE5EB","#E5ECED","#E6EEEA","#E0EAE1","#D4E2D4","#C8DBC8","#BCD3BC","#B0CAB0","#A4C2A3","#95B895","#89B088","#7DA87D","#71A071","#669966","#599059","#4F894E","#458244","#3B7B3A","#317430","#266A25","#1F611D","#1A5816","#174E12","#14450E","#123A0A","#103107","#0F2903"],categorical:["#2C194C","#2B2254","#2B295C","#2A3265","#293A6D","#284275","#284A7C","#2A5284","#2F5C8D","#366493","#3F6C99","#49749F","#527CA4","#5E85AA","#688DB0","#7395B6","#7E9DBB","#8AA6C2","#99B1C9","#A5BBD0","#B2C5D7","#C0CFDE","#CDD9E5","#DCE5EB","#E5ECED","#E6EEEA","#E0EAE1","#D4E2D4","#C8DBC8","#BCD3BC","#B0CAB0","#A4C2A3","#95B895","#89B088","#7DA87D","#71A071","#669966","#599059","#4F894E","#458244","#3B7B3A","#317430","#266A25","#1F611D","#1A5816","#174E12","#14450E","#123A0A","#103107","#0F2903"]},corko:{discrete:["#3F3E3A","#3E3D3F","#3E3D44","#3E3D4B","#3E3F52","#3E425A","#3F4762","#414C6C","#445578","#485D82","#4E658B","#546E94","#5C779C","#6581A5","#6E8AAC","#7792B2","#809BB8","#89A3BD","#94ACC2","#9CB3C5","#A3BAC7","#A9C0C8","#AEC5C7","#B0C9C4","#B0CABF","#ADCAB9","#A9C9B2","#A2C5A8","#9BC19F","#93BC95","#8BB68B","#82B081","#78A775","#709F6A","#689760","#608E56","#5A864C","#537B42","#4F733B","#4B6B35","#486431","#465D2E","#44562C","#43512C","#424D2D","#42492E","#414630","#404333","#404036","#3F3E3A"],categorical:["#3F3E3A","#3E3D3F","#3E3D44","#3E3D4B","#3E3F52","#3E425A","#3F4762","#414C6C","#445578","#485D82","#4E658B","#546E94","#5C779C","#6581A5","#6E8AAC","#7792B2","#809BB8","#89A3BD","#94ACC2","#9CB3C5","#A3BAC7","#A9C0C8","#AEC5C7","#B0C9C4","#B0CABF","#ADCAB9","#A9C9B2","#A2C5A8","#9BC19F","#93BC95","#8BB68B","#82B081","#78A775","#709F6A","#689760","#608E56","#5A864C","#537B42","#4F733B","#4B6B35","#486431","#465D2E","#44562C","#43512C","#424D2D","#42492E","#414630","#404333","#404036","#3F3E3A"]},davos:{discrete:["#00054A","#010E51","#041459","#081C61","#0C2368","#102A6F","#133075","#17377C","#1C3F83","#204588","#244C8D","#295291","#2D5895","#335F98","#38649A","#3C699C","#416E9D","#46729D","#4C779D","#517B9C","#567F9B","#5A829A","#5F8598","#658996","#698C94","#6E8F92","#739290","#78968D","#7D998C","#829D8A","#88A089","#8DA488","#95AA87","#9BAF88","#A3B489","#ABBB8C","#B4C190","#BFCA96","#C9D29E","#D2D9A6","#DBE0AF","#E3E7B8","#EBEDC4","#F0F1CD","#F4F4D6","#F7F7DE","#FAF9E6","#FCFCF0","#FDFDF7","#FEFEFE"],categorical:["#00054A","#FDFDF4","#688B94","#2D5895","#B2C08F","#E8EBC0","#87A089","#133075","#4B769D","#5A829A","#204588","#76958E","#D0D8A4","#99AD88","#F6F6DB","#3C699C","#081C61","#031256","#1A3B7F","#537C9C","#A4B68A","#C1CC98","#7E9A8B","#FAFAE8","#356199","#0E266B","#DEE3B3","#274F90","#6F9091","#618697","#8FA588","#F0F1CD","#43709D","#1D4084","#47739D","#F3F4D4","#658996","#567F9B","#17367A","#FCFBEE","#4F799D","#C9D29E","#93A987","#39659B","#D8DEAB","#ABBB8C","#739290","#B9C693","#F8F8E1","#234A8C","#112B70","#7A978D","#9EB188","#315C97","#829D8A","#05175B","#010C50","#3F6C9D","#0B2065","#5D8499","#2A5392","#8BA388","#6B8D93","#EDEFC7","#E3E7B8","#22488A","#638897","#122E73","#00094D","#AEBD8D","#4D789D","#CDD5A1","#5F8598","#58819A","#071A5E","#0C2368","#18387D","#91A787","#37639A","#EBEDC4","#F2F2D0","#FBFBEB","#74938F","#2F5A96","#335F98","#809B8B","#BDC995","#49759D","#719191","#9BAF88","#F7F7DE","#1B3E82","#A8B88B","#849E89","#557E9B","#E6E9BC","#45719D","#1E4386","#96AB87","#89A188"]},devon:{discrete:["#2C1A4C","#2B1E51","#2B2356","#2A295B","#2A2D60","#293265","#29376A","#283B6E","#274174","#27467A","#274C7F","#275186","#28568C","#2A5C95","#2D609C","#3064A3","#3468AA","#396BB1","#3F70B9","#4774C0","#4F79C6","#597DCC","#6382D1","#6F88D7","#798CDB","#8290DF","#8C95E2","#969AE6","#9E9EE9","#A6A3EB","#ACA7ED","#B1ACEF","#B7B1F0","#BBB5F1","#BFB9F2","#C3BEF3","#C7C2F4","#CCC7F4","#D0CCF5","#D4D0F6","#D8D4F7","#DCD9F8","#E1DEF9","#E5E3FA","#E9E7FB","#EDECFB","#F2F0FC","#F7F6FD","#FBFAFE","#FFFFFF"],categorical:["#2C1A4C","#F8F8FE","#758AD9","#C6C0F3","#28568C","#29376A","#AAA5ED","#DEDCF8","#3D6EB7","#EBE9FB","#9197E4","#3063A2","#274579","#577CCB","#D2CEF6","#2A285A","#BAB3F1","#B2ADEF","#F2F0FC","#274E82","#2A2F62","#CCC7F4","#9E9EE9","#4875C1","#C0BAF2","#2B5D98","#3669AD","#2B2154","#E4E2FA","#8290DF","#D8D4F7","#6784D3","#283E71","#C9C4F4","#BDB7F1","#DBD8F8","#283A6D","#4F79C6","#A4A2EB","#EEEDFC","#CFCBF5","#E8E5FA","#5F80CF","#4272BC","#B6B0F0","#2B1D50","#AEA9EE","#275287","#2A2B5E","#989BE7","#293366","#27497D","#8A94E1","#295A92","#3266A7","#F5F4FD","#7B8DDC","#274174","#2D609C","#2B2558","#6F88D7","#E1DEF9","#3A6CB2","#D5D1F6","#C3BEF3","#2E629F","#3165A4","#8D95E3","#3468AA","#DAD6F7","#D1CDF5","#9B9CE8","#275084","#B8B2F0","#27477B","#6382D1","#4573BF","#A2A0EA","#F7F6FD","#C7C2F4","#F3F2FD","#274376","#8692E0","#2B1F52","#CAC6F4","#ACA7ED","#E3E0F9","#F0EEFC","#E6E4FA","#386AB0","#2C1C4E","#6B86D5","#28396B","#283C6F","#2A5C95","#2A2D60","#BEB9F2","#C2BCF2","#7E8FDD","#3F70B9"]},fes:{discrete:["#0D0D0D","#181818","#212121","#2B2B2B","#343434","#3C3C3C","#454545","#4D4D4D","#565656","#5E5E5E","#656565","#6D6D6D","#747474","#7C7C7C","#848484","#8B8B8B","#939393","#9C9C9C","#A7A7A7","#B1B1B1","#BBBBBB","#C5C5C5","#D1D1D1","#DFDFDF","#ECECEC","#094225","#184822","#2B4F20","#3A5420","#485822","#555B24","#615E26","#6F6229","#7A652B","#86682E","#926B30","#9F7035","#AD7940","#B6834D","#BD8E5C","#C2996C","#C6A47C","#CCB18F","#D1BCA0","#D5C6B0","#DACFC1","#DFD7CF","#E4DFE0","#E8E6ED","#EDEDFC"],categorical:["#0D0D0D","#181818","#212121","#2B2B2B","#343434","#3C3C3C","#454545","#4D4D4D","#565656","#5E5E5E","#656565","#6D6D6D","#747474","#7C7C7C","#848484","#8B8B8B","#939393","#9C9C9C","#A7A7A7","#B1B1B1","#BBBBBB","#C5C5C5","#D1D1D1","#DFDFDF","#ECECEC","#094225","#184822","#2B4F20","#3A5420","#485822","#555B24","#615E26","#6F6229","#7A652B","#86682E","#926B30","#9F7035","#AD7940","#B6834D","#BD8E5C","#C2996C","#C6A47C","#CCB18F","#D1BCA0","#D5C6B0","#DACFC1","#DFD7CF","#E4DFE0","#E8E6ED","#EDEDFC"]},glasgow:{discrete:["#361338","#3B1434","#401530","#45172C","#491828","#4D1924","#511B21","#561C1D","#5B1E18","#602014","#662210","#6B260B","#6F2B07","#723203","#743802","#743E01","#754300","#744900","#744F01","#745402","#735905","#725F0B","#716413","#70691E","#6E6E27","#6C7231","#6B763A","#697B46","#677F4F","#658359","#648763","#628B6C","#618F78","#609381","#60978A","#619B94","#659F9D","#6CA5A8","#74A9B0","#7DADB8","#86B1BF","#8EB4C6","#99B9CE","#A1BCD5","#AABFDB","#B2C3E1","#BBC6E7","#C6CBF0","#D0CFF7","#DBD3FF"],categorical:["#361338","#DBD3FF","#6D702B","#69A3A5","#702D06","#A0BBD3","#638968","#521B20","#745101","#84B0BE","#754001","#5F9587","#BBC6E7","#612013","#45172C","#687D4A","#726210","#618F78","#4B1926","#3E1532","#629C96","#658359","#CACCF3","#76AAB2","#6B763A","#744900","#6A250C","#ADC1DD","#735905","#92B6C9","#591D1A","#743702","#70681C","#4F1A23","#754400","#6D2909","#60998E","#41162F","#744D00","#745503","#B4C3E2","#697A42","#7DADB8","#628C70","#8BB3C3","#561C1D","#D2D0F9","#99B9CE","#3A1435","#6F6C23","#743B01","#60927F","#662210","#648661","#659F9D","#678051","#725E0A","#481829","#6FA6AB","#6C7332","#5D1E17","#A6BED8","#C2C9ED","#723203","#716617","#68240E","#6F6A20","#C6CBF0","#79ABB5","#72600D","#754200","#43162D","#67A1A1","#6B7536","#5F1F15","#735B07","#571C1B","#72A8AF","#744F01","#BEC8EA","#381337","#8EB4C6","#628B6C","#677E4D","#60917B","#639E9A","#4A1827","#A3BDD6","#3C1433","#743901","#632112","#B7C5E5","#4D1924","#65845D","#618E74","#609483","#9CBAD1","#46172A","#87B1C1","#6D712F"]},grayc:{discrete:["#000000","#090909","#111111","#171717","#1C1C1C","#212121","#252525","#2A2A2A","#303030","#343434","#393939","#3D3D3D","#424242","#474747","#4B4B4B","#505050","#545454","#585858","#5D5D5D","#616161","#656565","#696969","#6D6D6D","#717171","#757575","#797979","#7D7D7D","#818181","#858585","#898989","#8E8E8E","#929292","#979797","#9C9C9C","#A1A1A1","#A6A6A6","#ABABAB","#B1B1B1","#B6B6B6","#BCBCBC","#C1C1C1","#C7C7C7","#CECECE","#D5D5D5","#DBDBDB","#E2E2E2","#E8E8E8","#F1F1F1","#F8F8F8","#FFFFFF"],categorical:["#070707","#F9F9F9","#777777","#454545","#AEAEAE","#909090","#292929","#5F5F5F","#D1D1D1","#9E9E9E","#525252","#E4E4E4","#6C6C6C","#BFBFBF","#1A1A1A","#373737","#848484","#595959","#222222","#B6B6B6","#A6A6A6","#3E3E3E","#7D7D7D","#666666","#969696","#8A8A8A","#4B4B4B","#DADADA","#C8C8C8","#313131","#717171","#131313","#EFEFEF","#C4C4C4","#A2A2A2","#424242","#878787","#252525","#2D2D2D","#4F4F4F","#3B3B3B","#808080","#1E1E1E","#BBBBBB","#AAAAAA","#EAEAEA","#696969","#7A7A7A","#DFDFDF","#636363","#565656","#B2B2B2","#0E0E0E","#9A9A9A","#5C5C5C","#747474","#F3F3F3","#333333","#6E6E6E","#D5D5D5","#8D8D8D","#939393","#494949","#CCCCCC","#171717","#BDBDBD","#575757","#C1C1C1","#404040","#828282","#E2E2E2","#151515","#1C1C1C","#0B0B0B","#9C9C9C","#858585","#2F2F2F","#B4B4B4","#888888","#242424","#272727","#3C3C3C","#B0B0B0","#353535","#545454","#5B5B5B","#393939","#D7D7D7","#A4A4A4","#A8A8A8","#959595","#767676","#646464","#989898","#444444","#474747","#111111","#F6F6F6","#ECECEC","#4D4D4D"]},hawaii:{discrete:["#8C0273","#8E0D6E","#8F1569","#901D63","#91235F","#91285A","#922D56","#933252","#94384D","#943D4A","#954246","#964742","#964C3F","#97523B","#985638","#985C34","#996131","#9A662E","#9B6C2A","#9B7226","#9C7823","#9C7E20","#9D841E","#9D8C1C","#9C921C","#9B991D","#9AA021","#97A828","#94AE30","#91B439","#8CB942","#88BE4C","#82C359","#7EC663","#79CA6E","#74CE79","#70D183","#6AD591","#66D89C","#62DCA7","#60DFB2","#5FE2BD","#61E6CA","#67E9D5","#6FEBDE","#7AEEE7","#87EFEE","#98F1F5","#A6F1F9","#B3F2FD"],categorical:["#8C0273","#B3F2FD","#9C951C","#6CD48C","#964D3E","#8ABC48","#9B6D29","#66E8D3","#922E55","#9C801F","#87EFEE","#995D34","#7BC969","#901D63","#60DEB0","#96AA2B","#943D4A","#975439","#82C359","#5FE4C2","#9AA021","#73CE7B","#65D99E","#954544","#9D8A1C","#8E126B","#91B439","#9DF1F7","#73ECE2","#91265C","#9C7724","#9A652E","#93364F","#922A59","#996131","#9D851D","#9D901C","#9A692C","#68D695","#902160","#9B9A1E","#985836","#9B7226","#933252","#77CC72","#9C7B21","#954147","#8D0A6F","#93AF32","#62DCA7","#92F0F3","#8F1867","#7DEEE8","#97513C","#6CEBDB","#61E6CA","#A8F2FA","#964941","#7FC661","#86BF50","#98A526","#70D183","#5FE1B9","#8DB840","#94394D","#9C7923","#8F1569","#985A35","#60E0B4","#9A6B2A","#91245E","#97A828","#9B7425","#6AD591","#95AD2E","#5FE2BD","#60E5C6","#953F48","#933054","#63E7CF","#84C154","#8D0671","#82EFEB","#9B9D1F","#99A323","#88BE4C","#6ED288","#6FEBDE","#9A672D","#91285A","#75CD76","#995F32","#68E9D7","#9B7028","#61DDAB","#943B4B","#933450","#8DF0F0","#8F1A65","#81C45D"]},imola:{discrete:["#1A33B3","#1C37B1","#1E3AAF","#203EAD","#2242AB","#2345AA","#2548A8","#274CA6","#2950A4","#2A53A3","#2C56A1","#2E599F","#2F5D9E","#32609B","#346499","#366797","#386A95","#3B6C92","#3E708F","#41738C","#44768A","#467987","#4A7C85","#4E8082","#518480","#56887E","#5A8C7D","#5F927B","#64967A","#689B79","#6DA078","#72A576","#78AB75","#7DB074","#82B572","#87BA71","#8CBF70","#93C66E","#98CB6D","#9ED06C","#A4D66A","#ACDB69","#B5E268","#BFE767","#C8EB67","#D3F066","#DDF466","#EAF866","#F5FB66","#FFFF66"],categorical:["#1A33B3","#FFFF66","#54867F","#305E9D","#91C36F","#3F718E","#2549A8","#BDE667","#70A377","#2B53A2","#376896","#80B373","#A3D56B","#DDF466","#203EAD","#487B86","#62947A","#2D59A0","#88BB71","#5B8D7D","#CDED66","#4E8082","#EEF966","#33639A","#284EA5","#44768A","#2344AA","#AFDE69","#3B6C92","#78AB75","#1D39B0","#99CC6D","#699C79","#3D6F90","#2C56A1","#2F5B9E","#5E917B","#4B7D84","#9ED06C","#1F3CAE","#C4EA67","#84B772","#274CA6","#D5F066","#2951A4","#74A776","#578A7E","#2446A9","#1C36B1","#A9D96A","#95C86E","#467888","#2141AC","#7CAF74","#356598","#B5E268","#66987A","#396A94","#F7FC66","#8CBF70","#E6F666","#32609B","#518380","#41738C","#6DA078","#6B9E78","#B9E468","#7AAD74","#528580","#32629B","#86B971","#3C6E91","#5C8F7C","#C8EB67","#ACDB69","#D1EF66","#E2F566","#97CA6D","#1B35B2","#1C37B0","#2345AA","#2F5D9E","#1F3DAE","#457789","#3A6B93","#598B7D","#D9F266","#346499","#386995","#A6D76A","#366797","#274DA6","#56887E","#A1D36B","#42748B","#7EB173","#72A576","#477987","#4C7F83","#F2FB66"]},lajolla:{discrete:["#191900","#1E1B02","#221C05","#271E08","#2C200B","#31220E","#362411","#3C2614","#442817","#4B2B1B","#532D1F","#5B3023","#633328","#6E362D","#783932","#813C37","#8B3F3B","#96423F","#A24543","#AD4746","#B74A48","#C04D49","#C9514B","#D1564C","#D75C4D","#DB634E","#DD694F","#E0714F","#E17750","#E37D50","#E48351","#E58951","#E79052","#E89652","#E99C52","#EAA253","#EBA853","#EDAF54","#EEB555","#F0BC57","#F1C25A","#F3CA5F","#F5D369","#F7DA74","#F9E282","#FBE890","#FCEF9F","#FDF5B0","#FEFABE","#FFFECB"],categorical:["#191900","#FFFECB","#D85F4D","#ECAC54","#653329","#F7D971","#A44544","#E58751","#362411","#E1744F","#C44E4A","#E99A52","#4B2B1B","#833D38","#F1C159","#FCEF9F","#271E08","#FEF7B6","#402716","#D0554C","#FAE587","#E79052","#EFB655","#B54947","#201C04","#E37D50","#743830","#DD694F","#EBA353","#94413E","#572F21","#F4CD61","#2E210C","#FDF3AB","#32220F","#241D06","#F5D369","#7B3B34","#1D1B02","#F0BC57","#5E3125","#F8DF7C","#512D1E","#CA514B","#E48251","#E68C51","#EA9E53","#E89552","#BC4C49","#6C362C","#EDB154","#9C4341","#E27950","#FBEA93","#3B2513","#FEFBC0","#452918","#EBA853","#F2C75C","#8B3F3B","#DB644E","#AD4746","#DF6E4F","#D55A4D","#2B200A","#783932","#E79352","#D75C4D","#FEF9BB","#EDAF54","#E0714F","#7F3C36","#613227","#F7DC77","#C7504B","#F1C45A","#30210D","#F4D065","#1E1B03","#FAE78D","#F9E282","#DA614E","#392412","#4E2C1D","#E99C52","#EFB956","#221C05","#EBA553","#FDF5B0","#984240","#E38050","#8F403D","#542E20","#ECAA54","#E68E51","#70372E","#DE6C4F","#B94A48","#291F09","#1B1A01"]},lapaz:{discrete:["#1A0C64","#1C1368","#1E196D","#202071","#212675","#222B79","#23317D","#253681","#263C85","#274189","#29478C","#2A4C8F","#2C5192","#2E5795","#305C98","#32609A","#35659C","#386A9E","#3C70A0","#3F74A1","#4379A2","#487DA3","#4D81A3","#5386A4","#588AA3","#5E8EA3","#6591A2","#6C95A1","#7398A0","#7A9A9E","#809D9D","#879F9B","#90A199","#97A397","#9EA596","#A5A795","#ADAA95","#B7AD96","#BFB199","#C8B69C","#D2BBA2","#DAC1A8","#E4C9B2","#EBCFBB","#F1D5C4","#F5DBCD","#F9E1D6","#FBE8E1","#FDEDEA","#FEF2F3"],categorical:["#1A0C64","#FEF2F3","#5B8BA3","#B3AC96","#2C5292","#3C70A0","#EACEB9","#859E9C","#24327E","#6F96A1","#33619A","#202071","#D0BAA0","#9BA496","#F9E1D6","#4A7FA3","#284289","#90A199","#FCEAE5","#1D176B","#37699D","#F3D8C8","#A7A895","#5285A4","#7A9A9E","#2F5A97","#4278A2","#263A84","#6591A2","#C1B299","#DEC3AB","#222978","#2A4B8E","#5688A4","#D7BEA6","#FDEEEC","#608EA3","#EFD3C0","#A1A696","#6A94A1","#FBE6DD","#ADAA95","#F6DDCF","#4E82A3","#2E5695","#3A6D9F","#C8B69C","#1C1268","#232D7B","#3F74A1","#467BA3","#1E1C6E","#7F9C9D","#BAAF97","#253681","#315E99","#29478C","#E4C9B2","#74989F","#273E87","#212575","#95A398","#8AA09A","#35659C","#2B4F91","#23307C","#E7CBB5","#F1D5C4","#2B4D90","#202373","#588AA3","#D3BCA3","#5487A4","#447AA2","#6792A2","#24347F","#253882","#ECD0BD","#879F9B","#305C98","#E1C6AF","#1E196D","#5D8DA3","#AAA995","#386B9E","#487DA3","#77999F","#F7DFD3","#BEB098","#1F1E70","#325F99","#4176A2","#F4DACB","#4C80A3","#2D5494","#8DA099","#6C95A1","#FAE3DA","#FDECE8","#B7AD96"]},lipari:{discrete:["#031326","#05192F","#062038","#092844","#0C2E4D","#103557","#163C5F","#1E4368","#294B70","#345075","#3E5578","#47587A","#4F5B7B","#575C7A","#5D5D79","#635E78","#695E76","#6E5F75","#765F73","#7C6071","#826070","#89606E","#90616C","#98616A","#A06268","#A86266","#B06364","#BA6462","#C36660","#CB685F","#D46B5E","#DB705F","#E27760","#E77E63","#E98567","#EA8D6B","#EA946F","#E89C75","#E7A279","#E6A87E","#E5AF84","#E5B58A","#E6BD92","#E7C49A","#EACCA3","#EDD3AD","#F0DBB7","#F5E5C4","#F9EDCF","#FDF5DA"],categorical:["#031326","#FDF5DA","#A56267","#525B7A","#E99B74","#785F72","#DA6F5E","#183E61","#E7C398","#8D616D","#365176","#092844","#655E77","#E98466","#BF6561","#F0DBB7","#E5AD82","#B26364","#EBCFA7","#5C5D79","#061D35","#25486D","#0E3353","#EA906D","#98616A","#E37861","#E5B88C","#826070","#CD685F","#6E5F75","#45587A","#F6E8C9","#E7A37A","#615E78","#E77E63","#D46B5E","#9F6268","#E99570","#93616B","#87606E","#7D6071","#F3E1C0","#575C7A","#0B2D4B","#2D4D72","#E6A87E","#E9C99F","#FAEED1","#1E4368","#EA8A69","#B86462","#6A5E76","#AB6365","#735F74","#DF735F","#E5B287","#13385A","#05182D","#E6BD92","#3E5578","#EDD5AF","#07223C","#C6665F","#4C5A7A","#E8A077","#B56363","#FBF1D6","#A26267","#E6C095","#0A2A48","#F8EBCD","#EACCA3","#AE6364","#7A5F72","#635E78","#E98768","#041629","#715F74","#ECD2AB","#A86266","#8A606E","#96616B","#545C7A","#EFD8B3","#F5E5C4","#9B6169","#F2DEBB","#765F73","#6C5F75","#294B70","#22466B","#E89D76","#E88165","#BC6461","#E6A67C","#85606F","#C36660","#1B4064","#D06A5E","#103557"]},lisbon:{discrete:["#E6E5FF","#D8DCF7","#CBD2EF","#BBC6E5","#ADBCDE","#A0B3D6","#93A9CE","#86A0C6","#7794BD","#6A8BB5","#5E81AC","#5177A4","#456E9B","#38628F","#2F5984","#274F78","#20476D","#1B3F61","#173653","#142E48","#12283E","#112233","#111D2A","#121921","#15181B","#181A18","#1E1D17","#252419","#2D2B1C","#353220","#3E3A25","#46422A","#514C31","#5A5536","#645E3C","#6D6741","#777047","#837B4F","#8D8556","#988F5E","#A29A67","#ADA470","#B9B17D","#C3BC89","#CDC795","#D7D2A2","#E0DCAF","#ECE9BE","#F5F4CB","#FFFFD9"],categorical:["#E6E5FF","#D8DCF7","#CBD2EF","#BBC6E5","#ADBCDE","#A0B3D6","#93A9CE","#86A0C6","#7794BD","#6A8BB5","#5E81AC","#5177A4","#456E9B","#38628F","#2F5984","#274F78","#20476D","#1B3F61","#173653","#142E48","#12283E","#112233","#111D2A","#121921","#15181B","#181A18","#1E1D17","#252419","#2D2B1C","#353220","#3E3A25","#46422A","#514C31","#5A5536","#645E3C","#6D6741","#777047","#837B4F","#8D8556","#988F5E","#A29A67","#ADA470","#B9B17D","#C3BC89","#CDC795","#D7D2A2","#E0DCAF","#ECE9BE","#F5F4CB","#FFFFD9"]},managua:{discrete:["#FFCF67","#F9C564","#F3BB60","#EBB05D","#E5A659","#DF9D56","#D99554","#D38C51","#CC824D","#C67B4B","#C07348","#B96C46","#B36444","#AB5C41","#A4553F","#9D4F3D","#95483C","#8E423A","#843B39","#7C3639","#743139","#6D2D3A","#662A3D","#5F2941","#5A2846","#552A4C","#522C53","#4F315D","#4D3566","#4C3B6F","#4C4179","#4C4883","#4D518E","#4F5897","#51609F","#5367A7","#556FAE","#5878B6","#5B80BC","#5E88C2","#6190C8","#6498CE","#68A3D5","#6BACDB","#6FB5E1","#72BEE6","#76C7EC","#7AD3F3","#7DDDF9","#81E7FF"],categorical:["#FFCF67","#F9C564","#F3BB60","#EBB05D","#E5A659","#DF9D56","#D99554","#D38C51","#CC824D","#C67B4B","#C07348","#B96C46","#B36444","#AB5C41","#A4553F","#9D4F3D","#95483C","#8E423A","#843B39","#7C3639","#743139","#6D2D3A","#662A3D","#5F2941","#5A2846","#552A4C","#522C53","#4F315D","#4D3566","#4C3B6F","#4C4179","#4C4883","#4D518E","#4F5897","#51609F","#5367A7","#556FAE","#5878B6","#5B80BC","#5E88C2","#6190C8","#6498CE","#68A3D5","#6BACDB","#6FB5E1","#72BEE6","#76C7EC","#7AD3F3","#7DDDF9","#81E7FF"]},navia:{discrete:["#031327","#041930","#051E3A","#052546","#062B50","#06315A","#073764","#083E6D","#0B4578","#0E4C80","#115286","#15588B","#195E8E","#1E6491","#216991","#246D91","#27718F","#2A748E","#2D788C","#307A8A","#337D89","#368087","#398385","#3C8683","#3F8981","#428C7F","#468F7D","#4A937A","#4E9678","#529A76","#579E73","#5BA271","#62A86E","#67AD6B","#6EB269","#76B768","#7FBD68","#8CC56A","#98CB6F","#A4D176","#B1D67F","#BCDB89","#C9E096","#D3E3A1","#DCE7AC","#E3EAB6","#EAEDBF","#F1F0CA","#F7F2D2","#FCF4D9"],categorical:["#031327","#FCF4D9","#408A80","#87C269","#1B608F","#59A072","#073966","#D1E39F","#2F798B","#EAEDBF","#052546","#266F90","#6BB06A","#0E4D81","#AED57D","#4C947A","#378186","#DFE8B0","#337D89","#2A748E","#14578A","#051C36","#9ACC70","#0A4374","#468F7D","#529A76","#F4F1CD","#062F56","#C1DC8D","#206891","#78B968","#62A86E","#3C8583","#569D74","#236C91","#F8F3D3","#D8E5A8","#0C487B","#04182E","#71B469","#B8D985","#07345E","#05213E","#4F9778","#5DA470","#3E8882","#062A4E","#7FBD68","#EFEFC6","#C9E096","#115286","#2C768D","#1E6491","#49917B","#66AC6C","#28718F","#A4D176","#90C76C","#438C7F","#175C8D","#083E6D","#E5EAB8","#317B8A","#357F87","#398385","#B3D781","#0D4A7E","#1C6290","#052342","#579F73","#9FCE73","#448D7E","#051A32","#FAF3D6","#428B7F","#29738F","#104F84","#5FA66F","#509877","#8CC56A","#094071","#2D788C","#083B6A","#D5E4A3","#2B758D","#226A91","#04162B","#BCDB89","#47907C","#4D9579","#E2E9B4","#7BBB68","#6EB269","#135488","#4A937A","#F1F0CA","#5BA271","#C5DE92","#F6F2D0","#CDE19B"]},naviaw:{discrete:["#041427","#051A31","#05203B","#062747","#072D52","#08345C","#0A3A66","#0C416F","#0F4979","#135080","#175686","#1B5D8A","#1F628D","#23698F","#276D8F","#2A728F","#2D758E","#30798D","#347D8B","#378089","#3A8388","#3D8686","#408984","#448C82","#489080","#4B937E","#50977C","#559C79","#5AA077","#5FA575","#65AA73","#6CAF71","#76B671","#7FBD71","#89C474","#95CB78","#A2D27F","#B1D98A","#BEDF95","#C9E5A1","#D3E9AD","#DBEDB9","#E4F1C6","#E9F4D0","#EEF6D9","#F2F8E1","#F6FAE9","#F9FCF1","#FCFDF7","#FEFEFD"],categorical:["#041427","#FBFDF6","#478F80","#9FD07D","#1F628D","#64A973","#E3F0C4","#0A3A66","#337C8B","#C7E49E","#7DBC71","#549B7A","#2A718F","#135080","#F2F8E1","#3C8586","#062747","#D7EBB2","#418A83","#B4DB8C","#2E778D","#6FB271","#EBF5D4","#0E4574","#051D37","#4D957D","#256B8F","#195A88","#388189","#F7FAEC","#5CA276","#8CC574","#073056","#31798C","#367E8A","#69AD72","#E7F3CC","#104A7A","#95CB78","#EFF6DB","#0B406D","#2C748E","#4A927F","#DDEEBB","#50987C","#165584","#589E78","#76B671","#3F8785","#05192F","#BEDF95","#448C82","#22678E","#06223F","#A9D684","#08355E","#CFE8A8","#F9FCF1","#286E8F","#85C172","#072C50","#F5F9E7","#1C5F8B","#3A8387","#60A675","#F3F9E4","#0C4271","#266D8F","#81BE72","#0A3D6A","#4B937E","#9ACD7B","#EDF5D7","#90C876","#A4D381","#378089","#1B5D8A","#489080","#145282","#DAECB6","#67AB73","#CBE6A3","#B9DD90","#3D8686","#23698F","#6CAF71","#FAFCF3","#79B971","#D3E9AD","#5AA077","#458E81","#72B471","#327B8C","#E5F1C8","#051B33","#F8FBEE","#062443","#398288","#2B728F","#06294C"]},nuuk:{discrete:["#05598C","#0E5B8B","#155C89","#1C5E87","#226085","#276184","#2C6383","#326682","#386982","#3E6C82","#446F82","#4A7283","#517584","#587A86","#5F7D88","#66818A","#6C858C","#73898E","#7B8E91","#819192","#879594","#8D9996","#939C97","#99A097","#9EA498","#A2A798","#A6AA97","#ABAD96","#AEAF95","#B1B194","#B3B492","#B6B690","#B8B88E","#BABA8C","#BDBC8A","#BFBE88","#C1C187","#C4C385","#C7C684","#CAC983","#CDCD83","#D2D184","#D7D787","#DDDD8B","#E3E290","#E8E895","#EEEE9C","#F4F4A4","#F9F9AB","#FEFEB2"],categorical:["#05598C","#FEFEB2","#A1A698","#537785","#C3C385","#B5B591","#7D8F91","#2D6483","#DDDD8B","#919B96","#BCBC8B","#3F6C82","#CDCD83","#1C5E87","#ADAE95","#68838B","#EEEE9C","#A7AA97","#879594","#C8C783","#F6F6A7","#135C89","#B9B98E","#497183","#73898E","#366882","#C0BF88","#D4D486","#99A097","#B1B293","#5E7D88","#256185","#E6E693","#829293","#788C90","#9DA398","#AAAC96","#E1E18F","#3B6A82","#638089","#B3B492","#A4A897","#446F82","#BABA8C","#D8D888","#185D88","#8C9895","#215F86","#BEBD89","#B7B78F","#CACA83","#4E7484","#C1C186","#959E97","#F2F2A1","#AFB094","#326682","#587A86","#296284","#FAFAAD","#6E868C","#C5C584","#D1D084","#0D5B8B","#E9E997","#DFDF8D","#66818A","#B0B194","#5B7B87","#2B6383","#859493","#CCCB83","#F8F8AA","#D2D285","#1F5F86","#70878D","#4B7383","#768B8F","#FCFCAF","#A9AB97","#BFBE88","#C9C983","#346782","#DBDA89","#236085","#BDBD8A","#BAB98D","#B8B88E","#2F6583","#939C97","#9FA498","#A2A798","#CFCF84","#B4B591","#C4C485","#979F97","#F0F09E","#155C89","#9BA298","#517584"]},oleron:{discrete:["#1A2659","#212E61","#293568","#323F72","#3A477A","#424F82","#4A578A","#535F92","#5D699C","#6572A5","#6E7BAE","#7784B7","#808DC0","#8B97CA","#94A1D3","#9DAADC","#A6B3E5","#AFBCEC","#B9C6F2","#C0CDF5","#C7D4F7","#CEDAF9","#D4E1FB","#DCE9FD","#E3F0FE","#1F4E00","#2C5100","#3A5600","#445900","#4F5C02","#5A6005","#65660C","#736D18","#7E7423","#8A7B2E","#94823A","#9F8945","#AC9253","#B79A5E","#C3A36A","#CEAC75","#D9B581","#E5C090","#EDC99D","#F2D2A9","#F6DAB5","#F8E2C0","#FAECCE","#FBF4DA","#FDFDE6"],categorical:["#1A2659","#212E61","#293568","#323F72","#3A477A","#424F82","#4A578A","#535F92","#5D699C","#6572A5","#6E7BAE","#7784B7","#808DC0","#8B97CA","#94A1D3","#9DAADC","#A6B3E5","#AFBCEC","#B9C6F2","#C0CDF5","#C7D4F7","#CEDAF9","#D4E1FB","#DCE9FD","#E3F0FE","#1F4E00","#2C5100","#3A5600","#445900","#4F5C02","#5A6005","#65660C","#736D18","#7E7423","#8A7B2E","#94823A","#9F8945","#AC9253","#B79A5E","#C3A36A","#CEAC75","#D9B581","#E5C090","#EDC99D","#F2D2A9","#F6DAB5","#F8E2C0","#FAECCE","#FBF4DA","#FDFDE6"]},oslo:{discrete:["#010101","#04070B","#060C13","#0A121B","#0C1620","#0D1927","#0E1D2D","#0F2133","#10263C","#112A43","#122E4A","#133251","#153758","#173C61","#194169","#1B4670","#1E4A78","#214F80","#255589","#295A91","#2E5F99","#3364A1","#3A6AA9","#4371B2","#4B77B9","#537DBE","#5B83C3","#6489C6","#6B8EC8","#7292C9","#7896C9","#7E9ACA","#859ECA","#8BA2C9","#91A6C9","#97A9C9","#9DADC9","#A4B2CA","#AAB6CA","#B1BBCB","#B8BFCD","#BFC5CF","#C7CCD3","#CFD2D8","#D7D9DD","#DEE0E2","#E6E7E9","#EFF0F1","#F7F7F8","#FFFFFF"],categorical:["#030609","#F9F9F9","#507BBC","#163B5E","#A0AFC9","#7B98CA","#27588E","#0E2032","#CACED5","#122D48","#3767A6","#1D4875","#8DA3C9","#E2E3E5","#678BC7","#B4BDCC","#0C151F","#BFC5CF","#97A9C9","#4371B2","#10263D","#080E16","#7292C9","#215081","#2E5F99","#AAB6CA","#ECEDEE","#0D1A28","#143454","#D5D8DC","#5B83C3","#19426A","#859ECA","#13314E","#0E1D2D","#3D6CAC","#6C8FC8","#7795C9","#F3F3F4","#4976B8","#245488","#DBDDE0","#112A43","#92A6C9","#C5C9D2","#809BCA","#0F2337","#3263A0","#050A10","#B9C1CD","#1F4C7B","#183E64","#A5B3CA","#0A121B","#9CACC9","#6187C5","#0D1824","#8AA1CA","#2A5B93","#547EBF","#D1D3D9","#E6E7E9","#1B456F","#B0BACB","#153758","#7494C9","#D8DADE","#6A8DC8","#90A5C9","#99ABC9","#235285","#133251","#060C13","#406EAF","#7E9ACA","#173C61","#4C78BA","#122F4B","#1C4772","#87A0CA","#CED1D7","#C2C7D1","#0F253A","#2C5D96","#C7CCD3","#112B45","#EFF0F1","#6F90C9","#0E1E2F","#ADB8CB","#7997CA","#4673B5","#15395B","#091018","#194067","#30619C","#94A8C9","#F6F6F6","#0F2135","#A3B1CA"]},roma:{discrete:["#7E1700","#832504","#883008","#8F3C0C","#934610","#984E14","#9C5717","#A05F1B","#A5681F","#A97023","#AD7826","#B0802B","#B58930","#BA9437","#BE9D3E","#C2A647","#C7B051","#CBBA5D","#CFC66D","#D1CF7B","#D2D78A","#D2DE98","#D0E4A6","#CBE8B4","#C4EABE","#BDEAC6","#B3E9CD","#A6E6D2","#9BE2D5","#8EDDD7","#81D7D7","#74CFD6","#64C6D5","#59BDD2","#4FB5D0","#46ACCC","#3EA4C9","#379AC5","#3292C2","#2E8ABF","#2B82BB","#287AB8","#2471B4","#2269B0","#1F60AD","#1C58A9","#194FA5","#1344A0","#0C3B9C","#033198"],categorical:["#7E1700","#832504","#883008","#8F3C0C","#934610","#984E14","#9C5717","#A05F1B","#A5681F","#A97023","#AD7826","#B0802B","#B58930","#BA9437","#BE9D3E","#C2A647","#C7B051","#CBBA5D","#CFC66D","#D1CF7B","#D2D78A","#D2DE98","#D0E4A6","#CBE8B4","#C4EABE","#BDEAC6","#B3E9CD","#A6E6D2","#9BE2D5","#8EDDD7","#81D7D7","#74CFD6","#64C6D5","#59BDD2","#4FB5D0","#46ACCC","#3EA4C9","#379AC5","#3292C2","#2E8ABF","#2B82BB","#287AB8","#2471B4","#2269B0","#1F60AD","#1C58A9","#194FA5","#1344A0","#0C3B9C","#033198"]},romao:{discrete:["#733957","#773850","#7A3849","#7E3942","#823C3D","#863F38","#8A4334","#8E4831","#94502E","#98572C","#9D5F2B","#A3672C","#A8712E","#AF7D32","#B58837","#BB933F","#C19F47","#C6AA52","#CDB761","#D1C26E","#D4CB7B","#D6D388","#D5D995","#D3DEA3","#CEE0AD","#C8E1B6","#C1E1BE","#B6DEC5","#ABDBC9","#A0D6CC","#94D0CE","#88C9CF","#7BC0CE","#70B8CD","#67AFCA","#5FA6C7","#589CC4","#5291BE","#4F88B9","#4E7EB3","#4F75AC","#516BA4","#55609A","#595891","#5D5087","#62497D","#664474","#6B3F69","#6F3B60","#723959"],categorical:["#733957","#773850","#7A3849","#7E3942","#823C3D","#863F38","#8A4334","#8E4831","#94502E","#98572C","#9D5F2B","#A3672C","#A8712E","#AF7D32","#B58837","#BB933F","#C19F47","#C6AA52","#CDB761","#D1C26E","#D4CB7B","#D6D388","#D5D995","#D3DEA3","#CEE0AD","#C8E1B6","#C1E1BE","#B6DEC5","#ABDBC9","#A0D6CC","#94D0CE","#88C9CF","#7BC0CE","#70B8CD","#67AFCA","#5FA6C7","#589CC4","#5291BE","#4F88B9","#4E7EB3","#4F75AC","#516BA4","#55609A","#595891","#5D5087","#62497D","#664474","#6B3F69","#6F3B60","#723959"]},tofino:{discrete:["#DED9FF","#D0CFF9","#C3C6F3","#B3BBEC","#A6B1E6","#98A8E1","#8B9FDB","#7E95D4","#6E89CB","#617FC3","#5575B8","#4A6BAC","#4262A0","#395790","#334F83","#2E4776","#293F6A","#24385D","#1F304F","#1B2943","#172338","#141D2E","#111824","#0F151B","#0D1516","#0D1712","#0F1B12","#112113","#142716","#162F19","#1A361C","#1D3E20","#224825","#26512A","#2A5A2E","#2E6233","#336C38","#39773E","#3F8144","#488B4A","#529551","#5FA059","#70AB63","#7FB46B","#8EBD73","#9DC57B","#ACCD83","#BDD68C","#CCDE94","#DBE69B"],categorical:["#DED9FF","#D0CFF9","#C3C6F3","#B3BBEC","#A6B1E6","#98A8E1","#8B9FDB","#7E95D4","#6E89CB","#617FC3","#5575B8","#4A6BAC","#4262A0","#395790","#334F83","#2E4776","#293F6A","#24385D","#1F304F","#1B2943","#172338","#141D2E","#111824","#0F151B","#0D1516","#0D1712","#0F1B12","#112113","#142716","#162F19","#1A361C","#1D3E20","#224825","#26512A","#2A5A2E","#2E6233","#336C38","#39773E","#3F8144","#488B4A","#529551","#5FA059","#70AB63","#7FB46B","#8EBD73","#9DC57B","#ACCD83","#BDD68C","#CCDE94","#DBE69B"]},tokyo:{discrete:["#1C0E34","#241036","#2D1339","#37163D","#3F1A40","#481E43","#4F2345","#562948","#5D304A","#62354C","#663B4D","#69404E","#6B454F","#6D4B50","#6E4F50","#6F5251","#6F5651","#705951","#715C52","#715F52","#716252","#726452","#726753","#736B53","#736E53","#747153","#757554","#757A54","#767E55","#778355","#788856","#798E57","#7B9558","#7C9B5A","#7EA25C","#81A95E","#84B062","#88B968","#8DC16E","#93CA76","#9BD27F","#A4DA8A","#AFE398","#BAEAA4","#C5EFB0","#CFF4BB","#D8F7C5","#E2F9CF","#E9FBD7","#EFFCDD"],categorical:["#1C0E34","#EFFCDD","#747053","#6C4750","#87B666","#B8E8A1","#512446","#715D52","#798B56","#7D9F5B","#37163D","#726653","#99D07D","#63374C","#6F5451","#D8F7C5","#767C54","#705951","#5B2D49","#7B9558","#441D41","#291238","#E5FAD2","#C9F1B4","#716252","#81AA5F","#683F4E","#736B53","#6E4E50","#757654","#8EC370","#A7DD8E","#778455","#747354","#84B062","#231036","#93CA76","#DFF9CC","#30143A","#A0D785","#7FA45D","#EAFBD8","#6A434F","#C1EDAB","#736D53","#562948","#6D4B50","#7A9057","#7C9A59","#4B2044","#715F52","#663B4D","#D1F4BD","#705651","#8ABD6A","#6E5151","#AFE398","#5F324B","#757954","#3E193F","#726853","#726452","#778055","#705B52","#788756","#61344C","#746E53","#ABE093","#532747","#85B364","#7EA25C","#261137","#736C53","#E8FBD5","#4E2245","#88B968","#798E57","#767E55","#726753","#757754","#715E52","#3A183E","#6E4F51","#778255","#7B9759","#DCF8C9","#EDFCDA","#411B40","#7D9C5A","#767B54","#726352","#6F5551","#726552","#82AD60","#D5F6C1","#34153C","#9CD481","#747454","#C5EFB0","#481E43"]},turku:{discrete:["#000000","#090908","#111110","#181816","#1D1D1A","#22221F","#272723","#2C2C27","#33322B","#38382F","#3D3D32","#424235","#474738","#4E4D3C","#53523E","#585841","#5D5D43","#626246","#686848","#6E6D4B","#73724D","#797750","#7F7D52","#878356","#8E8859","#968E5C","#9D9360","#A79864","#AF9C68","#B69F6C","#BEA270","#C4A474","#CCA579","#D1A67D","#D7A781","#DBA886","#E0A98B","#E6AB92","#EAAD98","#EFB09F","#F2B4A7","#F6B9AE","#F9BFB7","#FBC4BF","#FDC9C6","#FECFCC","#FED4D3","#FFDBDA","#FFE0E0","#FFE6E6"],categorical:["#070707","#FFE6E6","#948D5B","#E5AA90","#4D4C3B","#2C2C27","#C3A374","#6D6C4A","#FBC4BF","#D6A780","#F2B4A7","#1C1C19","#3D3D32","#AC9A67","#7E7C52","#FED6D4","#5D5D43","#35342D","#DDA888","#141312","#55543F","#242420","#FDCDCA","#F7BCB3","#898456","#B8A06D","#ECAE9B","#CDA57A","#FFDEDD","#646447","#454537","#9F9461","#76744E","#71704C","#30302A","#414135","#181816","#FCC8C4","#EFB1A1","#838054","#F5B8AD","#E1A98C","#C8A477","#686848","#595941","#20201D","#8E8859","#D1A67D","#B29D6A","#E9AC95","#BEA270","#FED1CF","#0E0E0D","#A59764","#DAA784","#282823","#F9C0B9","#51503D","#393930","#FFDAD9","#49493A","#606045","#FFE2E1","#9A915E","#797750","#F4B6AA","#F6BAB0","#CBA578","#FFD8D6","#FECFCC","#262622","#C0A272","#868255","#1A1A18","#FAC2BC","#8B8658","#E3AA8E","#161614","#4F4E3C","#C6A475","#2E2E28","#BBA16F","#6B6A49","#E7AB93","#CFA67C","#626246","#53523E","#5B5B42","#FED3D1","#7C7A51","#817E53","#73724D","#FFDCDB","#37372E","#F8BEB6","#0B0B0A","#575740","#DFA98A","#474738","#B59F6C"]},vanimo:{discrete:["#FFCDFD","#F7BEF2","#F0B0E8","#E6A0DC","#DE93D2","#D786C8","#CF7ABF","#C76FB5","#BD63AA","#B45AA1","#AB5198","#A1498E","#964184","#883977","#7C326B","#6E2C60","#612654","#542148","#451C3B","#391931","#2F1728","#281521","#22141C","#1D1417","#1A1414","#191612","#191811","#1B1D11","#1D2212","#212913","#253014","#2B3916","#324419","#384D1B","#3F561E","#456021","#4C6924","#547427","#5A7C2A","#60852E","#678E32","#6E9737","#77A33F","#7FAE47","#88BA51","#92C65D","#9CD26B","#A9E27F","#B3EF92","#BEFDA5"],categorical:["#FFCDFD","#F7BEF2","#F0B0E8","#E6A0DC","#DE93D2","#D786C8","#CF7ABF","#C76FB5","#BD63AA","#B45AA1","#AB5198","#A1498E","#964184","#883977","#7C326B","#6E2C60","#612654","#542148","#451C3B","#391931","#2F1728","#281521","#22141C","#1D1417","#1A1414","#191612","#191811","#1B1D11","#1D2212","#212913","#253014","#2B3916","#324419","#384D1B","#3F561E","#456021","#4C6924","#547427","#5A7C2A","#60852E","#678E32","#6E9737","#77A33F","#7FAE47","#88BA51","#92C65D","#9CD26B","#A9E27F","#B3EF92","#BEFDA5"]},vik:{discrete:["#001261","#011A66","#02226B","#022B71","#023376","#023A7B","#034280","#034A85","#06548B","#0B5D91","#136697","#1E6F9D","#2B79A4","#3C85AC","#4B90B3","#5A9ABA","#6AA4C1","#7AAEC8","#8DBAD0","#9DC4D6","#ADCDDD","#BDD6E3","#CCDFE8","#DEE6E9","#E8E7E5","#EEE3DC","#EEDBD0","#EBD0C0","#E7C6B2","#E3BCA5","#DFB298","#DBA88B","#D69D7C","#D29470","#CE8B64","#CA8258","#C6794C","#C26E3F","#BE6533","#B85C28","#B2511D","#A94512","#9C3709","#912D06","#872406","#7E1D06","#741506","#6A0D07","#620607","#590008"],categorical:["#001261","#011A66","#02226B","#022B71","#023376","#023A7B","#034280","#034A85","#06548B","#0B5D91","#136697","#1E6F9D","#2B79A4","#3C85AC","#4B90B3","#5A9ABA","#6AA4C1","#7AAEC8","#8DBAD0","#9DC4D6","#ADCDDD","#BDD6E3","#CCDFE8","#DEE6E9","#E8E7E5","#EEE3DC","#EEDBD0","#EBD0C0","#E7C6B2","#E3BCA5","#DFB298","#DBA88B","#D69D7C","#D29470","#CE8B64","#CA8258","#C6794C","#C26E3F","#BE6533","#B85C28","#B2511D","#A94512","#9C3709","#912D06","#872406","#7E1D06","#741506","#6A0D07","#620607","#590008"]},viko:{discrete:["#4F1A3D","#4B1D43","#48214A","#432653","#3F2C5B","#3C3263","#38396C","#354174","#334B7F","#345487","#365E8F","#3B6797","#42719E","#4D7DA6","#5787AD","#6391B4","#709ABA","#7DA4BF","#8EAEC4","#9BB5C7","#A9BBC8","#B5C0C8","#C0C2C5","#CBC2BF","#D2C0B8","#D6BDAF","#D9B7A6","#D9AF99","#D8A88D","#D6A082","#D39776","#CF8D6B","#C8825D","#C27752","#BB6D47","#B3623D","#AA5633","#9F492A","#953E25","#8C3521","#822C1F","#7A251E","#721F1F","#6B1A21","#661824","#611627","#5C152B","#571631","#531736","#50193C"],categorical:["#4F1A3D","#4B1D43","#48214A","#432653","#3F2C5B","#3C3263","#38396C","#354174","#334B7F","#345487","#365E8F","#3B6797","#42719E","#4D7DA6","#5787AD","#6391B4","#709ABA","#7DA4BF","#8EAEC4","#9BB5C7","#A9BBC8","#B5C0C8","#C0C2C5","#CBC2BF","#D2C0B8","#D6BDAF","#D9B7A6","#D9AF99","#D8A88D","#D6A082","#D39776","#CF8D6B","#C8825D","#C27752","#BB6D47","#B3623D","#AA5633","#9F492A","#953E25","#8C3521","#822C1F","#7A251E","#721F1F","#6B1A21","#661824","#611627","#5C152B","#571631","#531736","#50193C"]}};function cr(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}const dr={waves:"batlow",blksand:"tokyo",breeze:"imola",magma:"batlow",ribbon:"hawaii",stars:"batlow",folds:"imola"},ur={[sr.ADVERT]:1,[sr.TXT_MSG]:4,[sr.GRP_TXT]:2,[sr.RESPONSE]:8,[sr.REQ]:13,[sr.ANON_REQ]:7,[sr.ACK]:11,[sr.PATH]:24,[sr.TRACE]:16,[sr.GRP_DATA]:34,[sr.MULTIPART]:52,[sr.RAW_CUSTOM]:14};function hr(){let a="waves",e=!0;if("undefined"!=typeof window){a=localStorage.getItem("pymc-color-scheme")||"waves";const n=fa(a);e=(null==n?void 0:n.meta.isDark)??!0}const n=dr[a]??"batlow",t=lr[n],o=t.discrete.length,r=Math.floor(o/2);return{colormap:t,colormapName:n,isDark:e,baseIndex:e?r:0,halfSize:r}}let mr=null;function pr(a){const{colormap:e,isDark:n}=hr();if("number"!=typeof a)return n?"#A5A5A5":"#666666";const t=ur[a];if(void 0===t)return n?"#A5A5A5":"#666666";const o=e.categorical;return o[Math.min(t,o.length-1)]}function gr(a){const e=pr(a);return null===mr&&(mr=E()),mr?function(a){return E()?D(a):a}(e):e}function br(a){return cr(pr(a))}function fr(a){return null==a?"UNKNOWN":or[a]||`TYPE_${a}`}function yr(a){return null==a?"UNKNOWN":rr[a]||`ROUTE_${a}`}function vr(a,e){return(Math.max(a,e)+.05)/(Math.min(a,e)+.05)}function wr(a){const e=function(a){const e=a.replace("#",""),n=parseInt(e.slice(0,2),16)/255,t=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255,r=a=>a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*r(n)+.7152*r(t)+.0722*r(o)}(a);return vr(e,1)>vr(e,0)?"light":"dark"}function kr(a){return 1===a||!0===a}const xr=i("inline-flex items-center gap-1","radius-badge px-1.5 py-0.5","text-xs"),jr={fontFamily:"var(--font-badge)",fontWeight:"var(--font-badge-weight)",textTransform:"var(--badge-text-transform, none)"},zr={red:"var(--sys-red)",orange:"var(--sys-orange)",amber:"var(--sys-amber)",yellow:"var(--sys-yellow)",lime:"var(--sys-green)",green:"var(--sys-green)",emerald:"var(--sys-green)",teal:"var(--sys-teal)",cyan:"var(--sys-cyan)",sky:"var(--sys-cyan)",blue:"var(--sys-blue)",indigo:"var(--sys-indigo)",violet:"var(--sys-indigo)",purple:"var(--sys-purple)",fuchsia:"var(--sys-pink)",pink:"var(--sys-pink)",rose:"var(--sys-red)",brown:"var(--sys-brown)",zinc:"var(--text-muted)"};function Cr(a){if(!a.startsWith("var("))return a;if("undefined"!=typeof window){const e=a.match(/var\((--[^,)]+)/);if(e){const a=getComputedStyle(document.documentElement).getPropertyValue(e[1]).trim();if(a&&a.startsWith("#"))return a}}return"#666666"}function Ar({color:a="zinc",customColor:e,filled:n=!1,compact:t=!1,className:s,title:l,children:c}){const d=o.useMemo(()=>{const t=e??zr[a];if(n){if(e){const a=wr(Cr(e));return{backgroundColor:e,color:"light"===a?"rgba(255,255,255,0.95)":"rgba(0,0,0,0.85)"}}return{backgroundColor:t,color:["amber","yellow","lime"].includes(a)?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.95)"}}return{backgroundColor:`color-mix(in srgb, ${t} 15%, transparent)`,color:t}},[a,e,n]);return r.jsx("span",{className:i(xr,t&&"!px-1 !py-0 !text-[10px]",s),style:{...jr,...d},title:l,children:c})}const Dr=o.forwardRef(function({color:a="zinc",customColor:e,filled:n=!1,compact:t=!1,className:s,children:c,...d},u){const h=o.useMemo(()=>{const t=e??zr[a];if(n){if(e){const a=wr(Cr(e));return{backgroundColor:e,color:"light"===a?"rgba(255,255,255,0.95)":"rgba(0,0,0,0.85)"}}return{backgroundColor:t,color:["amber","yellow","lime"].includes(a)?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.95)"}}return{backgroundColor:`color-mix(in srgb, ${t} 15%, transparent)`,color:t}},[a,e,n]),m=i(xr,t&&"!px-1 !py-0 !text-[10px]","interactive hover-opacity",s);return"href"in d&&void 0!==d.href?r.jsx(tr,{...d,ref:u,className:m,style:{...jr,...h},children:c}):r.jsx(l,{...d,ref:u,className:m,style:{...jr,...h},children:c})}),Er=i("relative inline-flex items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","radius-inner px-3 py-1.5","ring-focus","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-base","[&>[data-slot=icon]]:w-4 [&>[data-slot=icon]]:h-4 [&>[data-slot=icon]]:shrink-0"),Br={primary:i("bg-accent-primary text-white","hover:bg-accent-primary/90","active:bg-accent-primary/80","border border-accent-primary/20"),success:i("bg-accent-success text-white","hover:bg-accent-success/90","active:bg-accent-success/80","border border-accent-success/20"),danger:i("bg-accent-danger text-white","hover:bg-accent-danger/90","active:bg-accent-danger/80","border border-accent-danger/20"),warning:i("bg-accent-secondary text-bg-body","hover:bg-accent-secondary/90","active:bg-accent-secondary/80","border border-accent-secondary/20"),muted:i("bg-bg-elevated text-text-primary","hover:bg-bg-subtle","active:bg-bg-elevated","border border-border-subtle")},Fr={primary:i("bg-transparent text-accent-primary","border border-accent-primary/30","hover:bg-accent-primary/10 hover:border-accent-primary/50","active:bg-accent-primary/20"),success:i("bg-transparent text-accent-success","border border-accent-success/30","hover:bg-accent-success/10 hover:border-accent-success/50","active:bg-accent-success/20"),danger:i("bg-transparent text-accent-danger","border border-accent-danger/30","hover:bg-accent-danger/10 hover:border-accent-danger/50","active:bg-accent-danger/20"),warning:i("bg-transparent text-accent-secondary","border border-accent-secondary/30","hover:bg-accent-secondary/10 hover:border-accent-secondary/50","active:bg-accent-secondary/20"),muted:i("bg-transparent text-text-muted","border border-border-subtle","hover:bg-bg-subtle hover:text-text-primary hover:border-border-strong","active:bg-bg-elevated")},qr={primary:i("bg-transparent text-accent-primary border-transparent","hover:bg-accent-primary/10","active:bg-accent-primary/20"),success:i("bg-transparent text-accent-success border-transparent","hover:bg-accent-success/10","active:bg-accent-success/20"),danger:i("bg-transparent text-accent-danger border-transparent","hover:bg-accent-danger/10","active:bg-accent-danger/20"),warning:i("bg-transparent text-accent-secondary border-transparent","hover:bg-accent-secondary/10","active:bg-accent-secondary/20"),muted:i("bg-transparent text-text-muted border-transparent","hover:bg-bg-subtle hover:text-text-primary","active:bg-bg-elevated")},Sr=o.forwardRef(function({color:a="muted",outline:e=!1,plain:n=!1,className:t,children:o,...s},c){const d=i(Er,n?qr[a]:e?Fr[a]:Br[a],t);return"href"in s&&void 0!==s.href?r.jsx(tr,{...s,ref:c,className:d,children:o}):r.jsx(l,{...s,ref:c,className:d,children:o})}),Mr=a=>{const e=(a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,e,n)=>n?n.toUpperCase():e.toLowerCase()))(a);return e.charAt(0).toUpperCase()+e.slice(1)},Tr=(...a)=>a.filter((a,e,n)=>Boolean(a)&&""!==a.trim()&&n.indexOf(a)===e).join(" ").trim(),Pr=a=>{for(const e in a)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0};var Lr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Rr=o.forwardRef(({color:a="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i,...l},c)=>o.createElement("svg",{ref:c,...Lr,width:e,height:e,stroke:a,strokeWidth:t?24*Number(n)/Number(e):n,className:Tr("lucide",r),...!s&&!Pr(l)&&{"aria-hidden":"true"},...l},[...i.map(([a,e])=>o.createElement(a,e)),...Array.isArray(s)?s:[s]])),Nr=(a,e)=>{const n=o.forwardRef(({className:n,...t},r)=>{return o.createElement(Rr,{ref:r,iconNode:e,className:Tr(`lucide-${s=Mr(a),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,n),...t});var s});return n.displayName=Mr(a),n},Ir=Nr("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),_r=Nr("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Vr=Nr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Or=Nr("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),$r=Nr("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Wr=Nr("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),Ur=Nr("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),Hr=Nr("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),Yr=Nr("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]),Gr=Nr("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Kr=Nr("map-pin-plus",[["path",{d:"M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"fcdtly"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M19 15v6",key:"10aioa"}]]),Xr=Nr("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),Jr=Nr("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),Zr=Nr("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),Qr=Nr("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),as=Nr("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),es=Nr("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ns=Nr("shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]),ts=Nr("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]),os=Nr("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),rs=Nr("waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]]),ss=Nr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),is=o.createContext({});function ls(a){const e=o.useRef(null);return null===e.current&&(e.current=a()),e.current}const cs="undefined"!=typeof window,ds=cs?o.useLayoutEffect:o.useEffect,us=o.createContext(null);function hs(a,e){-1===a.indexOf(e)&&a.push(e)}function ms(a,e){const n=a.indexOf(e);n>-1&&a.splice(n,1)}const ps=(a,e,n)=>n>e?e:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function fs(a){return"object"==typeof a&&null!==a}const ys=a=>/^0[^.\s]+$/u.test(a);function vs(a){let e;return()=>(void 0===e&&(e=a()),e)}const ws=a=>a,ks=(a,e)=>n=>e(a(n)),xs=(...a)=>a.reduce(ks),js=(a,e,n)=>{const t=e-a;return 0===t?1:(n-a)/t};class zs{constructor(){this.subscriptions=[]}add(a){return hs(this.subscriptions,a),()=>ms(this.subscriptions,a)}notify(a,e,n){const t=this.subscriptions.length;if(t)if(1===t)this.subscriptions[0](a,e,n);else for(let o=0;o1e3*a,As=a=>a/1e3;function Ds(a,e){return e?a*(1e3/e):0}const Es=(a,e,n)=>(((1-3*n+3*e)*a+(3*n-6*e))*a+3*e)*a;function Bs(a,e,n,t){if(a===e&&n===t)return ws;return o=>0===o||1===o?o:Es(function(a,e,n,t,o){let r,s,i=0;do{s=e+(n-e)/2,r=Es(s,t,o)-a,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++i<12);return s}(o,0,1,a,n),e,t)}const Fs=a=>e=>e<=.5?a(2*e)/2:(2-a(2*(1-e)))/2,qs=a=>e=>1-a(1-e),Ss=Bs(.33,1.53,.69,.99),Ms=qs(Ss),Ts=Fs(Ms),Ps=a=>(a*=2)<1?.5*Ms(a):.5*(2-Math.pow(2,-10*(a-1))),Ls=a=>1-Math.sin(Math.acos(a)),Rs=qs(Ls),Ns=Fs(Ls),Is=Bs(.42,0,1,1),_s=Bs(0,0,.58,1),Vs=Bs(.42,0,.58,1),Os=a=>Array.isArray(a)&&"number"!=typeof a[0],$s=a=>Array.isArray(a)&&"number"==typeof a[0],Ws={linear:ws,easeIn:Is,easeInOut:Vs,easeOut:_s,circIn:Ls,circInOut:Ns,circOut:Rs,backIn:Ms,backInOut:Ts,backOut:Ss,anticipate:Ps},Us=a=>{if($s(a)){a.length;const[e,n,t,o]=a;return Bs(e,n,t,o)}return"string"==typeof a?Ws[a]:a},Hs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ys(a,e){let n=!1,t=!0;const o={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=Hs.reduce((a,e)=>(a[e]=function(a){let e=new Set,n=new Set,t=!1,o=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function i(e){r.has(e)&&(l.schedule(e),a()),e(s)}const l={schedule:(a,o=!1,s=!1)=>{const i=s&&t?e:n;return o&&r.add(a),i.has(a)||i.add(a),a},cancel:a=>{n.delete(a),r.delete(a)},process:a=>{s=a,t?o=!0:(t=!0,[e,n]=[n,e],e.forEach(i),e.clear(),t=!1,o&&(o=!1,l.process(a)))}};return l}(r),a),{}),{setup:i,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:m,postRender:p}=s,g=()=>{const r=gs.useManualTiming?o.timestamp:performance.now();n=!1,gs.useManualTiming||(o.delta=t?1e3/60:Math.max(Math.min(r-o.timestamp,40),1)),o.timestamp=r,o.isProcessing=!0,i.process(o),l.process(o),c.process(o),d.process(o),u.process(o),h.process(o),m.process(o),p.process(o),o.isProcessing=!1,n&&e&&(t=!1,a(g))};return{schedule:Hs.reduce((e,r)=>{const i=s[r];return e[r]=(e,r=!1,s=!1)=>(n||(n=!0,t=!0,o.isProcessing||a(g)),i.schedule(e,r,s)),e},{}),cancel:a=>{for(let e=0;e(void 0===Zs&&ai.set(Xs.isProcessing||gs.useManualTiming?Xs.timestamp:performance.now()),Zs),set:a=>{Zs=a,queueMicrotask(Qs)}},ei=a=>e=>"string"==typeof e&&e.startsWith(a),ni=ei("--"),ti=ei("var(--"),oi=a=>!!ti(a)&&ri.test(a.split("/*")[0].trim()),ri=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function si(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}const ii={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},li={...ii,transform:a=>ps(0,1,a)},ci={...ii,default:1},di=a=>Math.round(1e5*a)/1e5,ui=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,hi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mi=(a,e)=>n=>Boolean("string"==typeof n&&hi.test(n)&&n.startsWith(a)||e&&!function(a){return null==a}(n)&&Object.prototype.hasOwnProperty.call(n,e)),pi=(a,e,n)=>t=>{if("string"!=typeof t)return t;const[o,r,s,i]=t.match(ui);return{[a]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==i?parseFloat(i):1}},gi={...ii,transform:a=>Math.round((a=>ps(0,255,a))(a))},bi={test:mi("rgb","red"),parse:pi("red","green","blue"),transform:({red:a,green:e,blue:n,alpha:t=1})=>"rgba("+gi.transform(a)+", "+gi.transform(e)+", "+gi.transform(n)+", "+di(li.transform(t))+")"},fi={test:mi("#"),parse:function(a){let e="",n="",t="",o="";return a.length>5?(e=a.substring(1,3),n=a.substring(3,5),t=a.substring(5,7),o=a.substring(7,9)):(e=a.substring(1,2),n=a.substring(2,3),t=a.substring(3,4),o=a.substring(4,5),e+=e,n+=n,t+=t,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(t,16),alpha:o?parseInt(o,16)/255:1}},transform:bi.transform},yi=a=>({test:e=>"string"==typeof e&&e.endsWith(a)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${a}`}),vi=yi("deg"),wi=yi("%"),ki=yi("px"),xi=yi("vh"),ji=yi("vw"),zi=(()=>({...wi,parse:a=>wi.parse(a)/100,transform:a=>wi.transform(100*a)}))(),Ci={test:mi("hsl","hue"),parse:pi("hue","saturation","lightness"),transform:({hue:a,saturation:e,lightness:n,alpha:t=1})=>"hsla("+Math.round(a)+", "+wi.transform(di(e))+", "+wi.transform(di(n))+", "+di(li.transform(t))+")"},Ai={test:a=>bi.test(a)||fi.test(a)||Ci.test(a),parse:a=>bi.test(a)?bi.parse(a):Ci.test(a)?Ci.parse(a):fi.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?bi.transform(a):Ci.transform(a),getAnimatableNone:a=>{const e=Ai.parse(a);return e.alpha=0,Ai.transform(e)}},Di=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ei="number",Bi="color",Fi=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qi(a){const e=a.toString(),n=[],t={color:[],number:[],var:[]},o=[];let r=0;const s=e.replace(Fi,a=>(Ai.test(a)?(t.color.push(r),o.push(Bi),n.push(Ai.parse(a))):a.startsWith("var(")?(t.var.push(r),o.push("var"),n.push(a)):(t.number.push(r),o.push(Ei),n.push(parseFloat(a))),++r,"${}")).split("${}");return{values:n,split:s,indexes:t,types:o}}function Si(a){return qi(a).values}function Mi(a){const{split:e,types:n}=qi(a),t=e.length;return a=>{let o="";for(let r=0;r"number"==typeof a?0:Ai.test(a)?Ai.getAnimatableNone(a):a,Pi={test:function(a){var e,n;return isNaN(a)&&"string"==typeof a&&((null==(e=a.match(ui))?void 0:e.length)||0)+((null==(n=a.match(Di))?void 0:n.length)||0)>0},parse:Si,createTransformer:Mi,getAnimatableNone:function(a){const e=Si(a);return Mi(a)(e.map(Ti))}};function Li(a,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?a+6*(e-a)*n:n<.5?e:n<2/3?a+(e-a)*(2/3-n)*6:a}function Ri(a,e){return n=>n>0?e:a}const Ni=(a,e,n)=>a+(e-a)*n,Ii=(a,e,n)=>{const t=a*a,o=n*(e*e-t)+t;return o<0?0:Math.sqrt(o)},_i=[fi,bi,Ci];function Vi(a){const e=(n=a,_i.find(a=>a.test(n)));var n;if(!Boolean(e))return!1;let t=e.parse(a);return e===Ci&&(t=function({hue:a,saturation:e,lightness:n,alpha:t}){a/=360,n/=100;let o=0,r=0,s=0;if(e/=100){const t=n<.5?n*(1+e):n+e-n*e,i=2*n-t;o=Li(i,t,a+1/3),r=Li(i,t,a),s=Li(i,t,a-1/3)}else o=r=s=n;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*s),alpha:t}}(t)),t}const Oi=(a,e)=>{const n=Vi(a),t=Vi(e);if(!n||!t)return Ri(a,e);const o={...n};return a=>(o.red=Ii(n.red,t.red,a),o.green=Ii(n.green,t.green,a),o.blue=Ii(n.blue,t.blue,a),o.alpha=Ni(n.alpha,t.alpha,a),bi.transform(o))},$i=new Set(["none","hidden"]);function Wi(a,e){return n=>Ni(a,e,n)}function Ui(a){return"number"==typeof a?Wi:"string"==typeof a?oi(a)?Ri:Ai.test(a)?Oi:Gi:Array.isArray(a)?Hi:"object"==typeof a?Ai.test(a)?Oi:Yi:Ri}function Hi(a,e){const n=[...a],t=n.length,o=a.map((a,n)=>Ui(a)(a,e[n]));return a=>{for(let e=0;e{for(const e in t)n[e]=t[e](a);return n}}const Gi=(a,e)=>{const n=Pi.createTransformer(e),t=qi(a),o=qi(e);return t.indexes.var.length===o.indexes.var.length&&t.indexes.color.length===o.indexes.color.length&&t.indexes.number.length>=o.indexes.number.length?$i.has(a)&&!o.values.length||$i.has(e)&&!t.values.length?function(a,e){return $i.has(a)?n=>n<=0?a:e:n=>n>=1?e:a}(a,e):xs(Hi(function(a,e){const n=[],t={color:0,var:0,number:0};for(let o=0;o{const e=({timestamp:e})=>a(e);return{start:(a=!0)=>Gs.update(e,a),stop:()=>Ks(e),now:()=>Xs.isProcessing?Xs.timestamp:ai.now()}},Ji=(a,e,n=10)=>{let t="";const o=Math.max(Math.round(e/n),2);for(let r=0;r=Zi?1/0:e}function al(a,e=100,n){const t=n({...a,keyframes:[0,e]}),o=Math.min(Qi(t),Zi);return{type:"keyframes",ease:a=>t.next(o*a).value/e,duration:As(o)}}function el(a,e,n){const t=Math.max(e-5,0);return Ds(n-a(t),e-t)}const nl=.01,tl=2,ol=.005,rl=.5;const sl=12;function il(a,e){return a*Math.sqrt(1-e*e)}const ll=["duration","bounce"],cl=["stiffness","damping","mass"];function dl(a,e){return e.some(e=>void 0!==a[e])}function ul(a=.3,e=.3){const n="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:e}:a;let{restSpeed:t,restDelta:o}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:r},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:m}=function(a){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...a};if(!dl(a,cl)&&dl(a,ll))if(a.visualDuration){const n=a.visualDuration,t=2*Math.PI/(1.2*n),o=t*t,r=2*ps(.05,1,1-(a.bounce||0))*Math.sqrt(o);e={...e,mass:1,stiffness:o,damping:r}}else{const n=function({duration:a=800,bounce:e=.3,velocity:n=0,mass:t=1}){let o,r,s=1-e;s=ps(.05,1,s),a=ps(.01,10,As(a)),s<1?(o=e=>{const t=e*s,o=t*a;return.001-(t-n)/il(e,s)*Math.exp(-o)},r=e=>{const t=e*s*a,r=t*n+n,i=Math.pow(s,2)*Math.pow(e,2)*a,l=Math.exp(-t),c=il(Math.pow(e,2),s);return(.001-o(e)>0?-1:1)*((r-i)*l)/c}):(o=e=>Math.exp(-e*a)*((e-n)*a+1)-.001,r=e=>Math.exp(-e*a)*(a*a*(n-e)));const i=function(a,e,n){let t=n;for(let o=1;o{const n=Math.exp(-g*f*e);return s-n*((p+g*f*b)/a*Math.sin(a*e)+b*Math.cos(a*e))}}else if(1===g)v=a=>s-Math.exp(-f*a)*(b+(p+f*b)*a);else{const a=f*Math.sqrt(g*g-1);v=e=>{const n=Math.exp(-g*f*e),t=Math.min(a*e,300);return s-n*((p+g*f*b)*Math.sinh(t)+a*b*Math.cosh(t))/a}}const w={calculatedDuration:m&&u||null,next:a=>{const e=v(a);if(m)i.done=a>=u;else{let n=0===a?p:0;g<1&&(n=0===a?Cs(p):el(v,a,e));const r=Math.abs(n)<=t,l=Math.abs(s-e)<=o;i.done=r&&l}return i.value=i.done?s:e,i},toString:()=>{const a=Math.min(Qi(w),Zi),e=Ji(e=>w.next(a*e).value,a,30);return a+"ms "+e},toTransition:()=>{}};return w}function hl({keyframes:a,velocity:e=0,power:n=.8,timeConstant:t=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:d}){const u=a[0],h={done:!1,value:u},m=a=>void 0===i?l:void 0===l||Math.abs(i-a)-p*Math.exp(-a/t),y=a=>b+f(a),v=a=>{const e=f(a),n=y(a);h.done=Math.abs(e)<=c,h.value=h.done?b:n};let w,k;const x=a=>{var e;e=h.value,(void 0!==i&&el)&&(w=a,k=ul({keyframes:[h.value,m(h.value)],velocity:el(y,a,h.value),damping:o,stiffness:r,restDelta:c,restSpeed:d}))};return x(0),{calculatedDuration:null,next:a=>{let e=!1;return k||void 0!==w||(e=!0,v(a),x(a)),void 0!==w&&a>=w?k.next(a-w):(!e&&v(a),h)}}}function ml(a,e){const n=a[a.length-1];for(let t=1;t<=e;t++){const o=js(0,e,t);a.push(Ni(n,1,o))}}function pl(a){const e=[0];return ml(e,a.length-1),e}function gl({duration:a=300,keyframes:e,times:n,ease:t="easeInOut"}){const o=Os(t)?t.map(Us):Us(t),r={done:!1,value:e[0]},s=function(a,e){return a.map(a=>a*e)}(n&&n.length===e.length?n:pl(e),a),i=function(a,e,{clamp:n=!0,ease:t,mixer:o}={}){const r=a.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const s=a[0]===a[1];a[0]>a[r-1]&&(a=[...a].reverse(),e=[...e].reverse());const i=function(a,e,n){const t=[],o=n||gs.mix||Ki,r=a.length-1;for(let s=0;s{if(s&&n1)for(;tc(ps(a[0],a[r-1],e)):c}(s,e,{ease:Array.isArray(o)?o:(l=e,c=o,l.map(()=>c||Vs).splice(0,l.length-1))});var l,c;return{calculatedDuration:a,next:e=>(r.value=i(e),r.done=e>=a,r)}}ul.applyToOptions=a=>{const e=al(a,100,ul);return a.ease=e.ease,a.duration=Cs(e.duration),a.type="keyframes",a};const bl=a=>null!==a;function fl(a,{repeat:e,repeatType:n="loop"},t,o=1){const r=a.filter(bl),s=o<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return s&&void 0!==t?t:r[s]}const yl={decay:hl,inertia:hl,tween:gl,keyframes:gl,spring:ul};function vl(a){"string"==typeof a.type&&(a.type=yl[a.type])}class wl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,e){return this.finished.then(a,e)}}const kl=a=>a/100;class xl extends wl{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,e;const{motionValue:n}=this.options;n&&n.updatedAt!==ai.now()&&this.tick(ai.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(a=this.options).onStop)||e.call(a))},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause()}initAnimation(){const{options:a}=this;vl(a);const{type:e=gl,repeat:n=0,repeatDelay:t=0,repeatType:o,velocity:r=0}=a;let{keyframes:s}=a;const i=e||gl;i!==gl&&"number"!=typeof s[0]&&(this.mixKeyframes=xs(kl,Ki(s[0],s[1])),s=[0,100]);const l=i({...a,keyframes:s});"mirror"===o&&(this.mirroredGenerator=i({...a,keyframes:[...s].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Qi(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+t,this.totalDuration=this.resolvedDuration*(n+1)-t,this.generator=l}updateTime(a){const e=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(a,e=!1){const{generator:n,totalDuration:t,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:i}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:h,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-t/this.speed,this.startTime)),e?this.currentTime=a:this.updateTime(a);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),f=this.playbackSpeed>=0?b<0:b>t;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=t);let y=this.currentTime,v=n;if(d){const a=Math.min(this.currentTime,t)/s;let e=Math.floor(a),n=a%1;!n&&a>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===u?(n=1-n,h&&(n-=h/s)):"mirror"===u&&(v=r)),y=ps(0,1,n)*s}const w=f?{done:!1,value:c[0]}:v.next(y);o&&(w.value=o(w.value));let{done:k}=w;f||null===i||(k=this.playbackSpeed>=0?this.currentTime>=t:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return x&&m!==hl&&(w.value=fl(c,this.options,g,this.speed)),p&&p(w.value),x&&this.finish(),w}then(a,e){return this.finished.then(a,e)}get duration(){return As(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+As(a)}get time(){return As(this.currentTime)}set time(a){var e;a=Cs(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(ai.now());const e=this.playbackSpeed!==a;this.playbackSpeed=a,e&&(this.time=As(this.currentTime))}play(){var a,e;if(this.isStopped)return;const{driver:n=Xi,startTime:t}=this.options;this.driver||(this.driver=n(a=>this.tick(a))),null==(e=(a=this.options).onPlay)||e.call(a);const o=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=o):null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime||(this.startTime=t??o),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ai.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(a=this.options).onComplete)||e.call(a)}cancel(){var a,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(a=this.options).onCancel)||e.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),a.observe(this)}}const jl=a=>180*a/Math.PI,zl=a=>{const e=jl(Math.atan2(a[1],a[0]));return Al(e)},Cl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:zl,rotateZ:zl,skewX:a=>jl(Math.atan(a[1])),skewY:a=>jl(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Al=a=>((a%=360)<0&&(a+=360),a),Dl=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),El=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Bl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dl,scaleY:El,scale:a=>(Dl(a)+El(a))/2,rotateX:a=>Al(jl(Math.atan2(a[6],a[5]))),rotateY:a=>Al(jl(Math.atan2(-a[2],a[0]))),rotateZ:zl,rotate:zl,skewX:a=>jl(Math.atan(a[4])),skewY:a=>jl(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Fl(a){return a.includes("scale")?1:0}function ql(a,e){if(!a||"none"===a)return Fl(e);const n=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let t,o;if(n)t=Bl,o=n;else{const e=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);t=Cl,o=e}if(!o)return Fl(e);const r=t[e],s=o[1].split(",").map(Sl);return"function"==typeof r?r(s):s[r]}function Sl(a){return parseFloat(a.trim())}const Ml=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tl=(()=>new Set(Ml))(),Pl=a=>a===ii||a===ki,Ll=new Set(["x","y","z"]),Rl=Ml.filter(a=>!Ll.has(a)),Nl={width:({x:a},{paddingLeft:e="0",paddingRight:n="0"})=>a.max-a.min-parseFloat(e)-parseFloat(n),height:({y:a},{paddingTop:e="0",paddingBottom:n="0"})=>a.max-a.min-parseFloat(e)-parseFloat(n),top:(a,{top:e})=>parseFloat(e),left:(a,{left:e})=>parseFloat(e),bottom:({y:a},{top:e})=>parseFloat(e)+(a.max-a.min),right:({x:a},{left:e})=>parseFloat(e)+(a.max-a.min),x:(a,{transform:e})=>ql(e,"x"),y:(a,{transform:e})=>ql(e,"y")};Nl.translateX=Nl.x,Nl.translateY=Nl.y;const Il=new Set;let _l=!1,Vl=!1,Ol=!1;function $l(){if(Vl){const a=Array.from(Il).filter(a=>a.needsMeasurement),e=new Set(a.map(a=>a.element)),n=new Map;e.forEach(a=>{const e=function(a){const e=[];return Rl.forEach(n=>{const t=a.getValue(n);void 0!==t&&(e.push([n,t.get()]),t.set(n.startsWith("scale")?1:0))}),e}(a);e.length&&(n.set(a,e),a.render())}),a.forEach(a=>a.measureInitialState()),e.forEach(a=>{a.render();const e=n.get(a);e&&e.forEach(([e,n])=>{var t;null==(t=a.getValue(e))||t.set(n)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}Vl=!1,_l=!1,Il.forEach(a=>a.complete(Ol)),Il.clear()}function Wl(){Il.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Vl=!0)})}class Ul{constructor(a,e,n,t,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=e,this.name=n,this.motionValue=t,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Il.add(this),_l||(_l=!0,Gs.read(Wl),Gs.resolveKeyframes($l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:e,element:n,motionValue:t}=this;if(null===a[0]){const o=null==t?void 0:t.get(),r=a[a.length-1];if(void 0!==o)a[0]=o;else if(n&&e){const t=n.readValue(e,r);null!=t&&(a[0]=t)}void 0===a[0]&&(a[0]=r),t&&void 0===o&&t.set(a[0])}!function(a){for(let e=1;evoid 0!==window.ScrollTimeline),Yl={};function Gl(a,e){const n=vs(a);return()=>Yl[e]??n()}const Kl=Gl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),Xl=([a,e,n,t])=>`cubic-bezier(${a}, ${e}, ${n}, ${t})`,Jl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function Zl(a,e){return a?"function"==typeof a?Kl()?Ji(a,e):"ease-out":$s(a)?Xl(a):Array.isArray(a)?a.map(a=>Zl(a,e)||Jl.easeOut):Jl[a]:void 0}function Ql(a,e,n,{delay:t=0,duration:o=300,repeat:r=0,repeatType:s="loop",ease:i="easeOut",times:l}={},c=void 0){const d={[e]:n};l&&(d.offset=l);const u=Zl(i,o);Array.isArray(u)&&(d.easing=u);const h={delay:t,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"};return c&&(h.pseudoElement=c),a.animate(d,h)}function ac(a){return"function"==typeof a&&"applyToOptions"in a}class ec extends wl{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:e,name:n,keyframes:t,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:s,onComplete:i}=a;this.isPseudoElement=Boolean(o),this.allowFlatten=r,this.options=a,a.type;const l=function({type:a,...e}){return ac(a)&&Kl()?a.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(a);this.animation=Ql(e,n,t,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const a=fl(t,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(a):function(a,e,n){(a=>a.startsWith("--"))(e)?a.style.setProperty(e,n):a.style[e]=n}(e,n,a),this.animation.cancel()}null==i||i(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,e;null==(e=(a=this.animation).finish)||e.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,e;this.isPseudoElement||null==(e=(a=this.animation).commitStyles)||e.call(a)}get duration(){var a,e;const n=(null==(e=null==(a=this.animation.effect)?void 0:a.getComputedTiming)?void 0:e.call(a).duration)||0;return As(Number(n))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+As(a)}get time(){return As(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cs(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:e}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&Hl()?(this.animation.timeline=a,ws):e(this)}}const nc={anticipate:Ps,backInOut:Ts,circInOut:Ns};class tc extends ec{constructor(a){var e;"string"==typeof(e=a).ease&&e.ease in nc&&(e.ease=nc[e.ease]),vl(a),super(a),void 0!==a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:e,onUpdate:n,onComplete:t,element:o,...r}=this.options;if(!e)return;if(void 0!==a)return void e.set(a);const s=new xl({...r,autoplay:!1}),i=Math.max(10,ai.now()-this.startTime),l=ps(0,10,i-10);e.setWithVelocity(s.sample(Math.max(0,i-l)).value,s.sample(i).value,l),s.stop()}}const oc=(a,e)=>!("zIndex"===e||"number"!=typeof a&&!Array.isArray(a)&&("string"!=typeof a||!Pi.test(a)&&"0"!==a||a.startsWith("url(")));function rc(a){a.duration=0,a.type="keyframes"}const sc=new Set(["opacity","clipPath","filter","transform"]),ic=vs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class lc extends wl{constructor({autoplay:a=!0,delay:e=0,type:n="keyframes",repeat:t=0,repeatDelay:o=0,repeatType:r="loop",keyframes:s,name:i,motionValue:l,element:c,...d}){var u;super(),this.stop=()=>{var a,e;this._animation&&(this._animation.stop(),null==(a=this.stopTimeline)||a.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=ai.now();const h={autoplay:a,delay:e,type:n,repeat:t,repeatDelay:o,repeatType:r,name:i,motionValue:l,element:c,...d},m=(null==c?void 0:c.KeyframeResolver)||Ul;this.keyframeResolver=new m(s,(a,e,n)=>this.onKeyframesResolved(a,e,h,!n),i,l,c),null==(u=this.keyframeResolver)||u.scheduleResolve()}onKeyframesResolved(a,e,n,t){var o,r;this.keyframeResolver=void 0;const{name:s,type:i,velocity:l,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=ai.now(),function(a,e,n,t){const o=a[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const r=a[a.length-1],s=oc(o,e),i=oc(r,e);return!(!s||!i)&&(function(a){const e=a[0];if(1===a.length)return!0;for(let n=0;n40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:a},m=!d&&function(a){var e;const{motionValue:n,name:t,repeatDelay:o,repeatType:r,damping:s,type:i}=a;if(!((null==(e=null==n?void 0:n.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return ic()&&t&&sc.has(t)&&("transform"!==t||!c)&&!l&&!o&&"mirror"!==r&&0!==s&&"inertia"!==i}(h),p=null==(r=null==(o=h.motionValue)?void 0:o.owner)?void 0:r.current,g=m?new tc({...h,element:p}):new xl(h);g.finished.then(()=>{this.notifyFinished()}).catch(ws),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(a,e){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||(null==(a=this.keyframeResolver)||a.resume(),Ol=!0,Wl(),$l(),Ol=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),null==(a=this.keyframeResolver)||a.cancel()}}function cc(a,e,n,t=0,o=1){const r=Array.from(a).sort((a,e)=>a.sortNodePosition(e)).indexOf(e),s=a.size,i=(s-1)*t;return"function"==typeof n?n(r,s):1===o?r*t:i-r*t}const dc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uc(a,e,n=1){const[t,o]=function(a){const e=dc.exec(a);if(!e)return[,];const[,n,t,o]=e;return[`--${n??t}`,o]}(a);if(!t)return;const r=window.getComputedStyle(e).getPropertyValue(t);if(r){const a=r.trim();return bs(a)?parseFloat(a):a}return oi(o)?uc(o,e,n+1):o}const hc={type:"spring",stiffness:500,damping:25,restSpeed:10},mc={type:"keyframes",duration:.8},pc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gc=a=>null!==a;function bc(a,e){return(null==a?void 0:a[e])??(null==a?void 0:a.default)??a}const fc=(a,e,n,t={},o,r)=>s=>{const i=bc(t,a)||{},l=i.delay||t.delay||0;let{elapsed:c=0}=t;c-=Cs(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...i,delay:-c,onUpdate:a=>{e.set(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:a,motionValue:e,element:r?void 0:o};(function({when:a,delay:e,delayChildren:n,staggerChildren:t,staggerDirection:o,repeat:r,repeatType:s,repeatDelay:i,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(i)||Object.assign(d,((a,{keyframes:e})=>e.length>2?mc:Tl.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:hc:pc)(a,d)),d.duration&&(d.duration=Cs(d.duration)),d.repeatDelay&&(d.repeatDelay=Cs(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(rc(d),0===d.delay&&(u=!0)),(gs.instantAnimations||gs.skipAnimations)&&(u=!0,rc(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,u&&!r&&void 0!==e.get()){const a=function(a,{repeat:e,repeatType:n="loop"}){const t=a.filter(gc);return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(d.keyframes,i);if(void 0!==a)return void Gs.update(()=>{d.onUpdate(a),d.onComplete()})}return i.isSync?new xl(d):new lc(d)};function yc(a){const e=[{},{}];return null==a||a.values.forEach((a,n)=>{e[0][n]=a.get(),e[1][n]=a.getVelocity()}),e}function vc(a,e,n,t){if("function"==typeof e){const[o,r]=yc(t);e=e(void 0!==n?n:a.custom,o,r)}if("string"==typeof e&&(e=a.variants&&a.variants[e]),"function"==typeof e){const[o,r]=yc(t);e=e(void 0!==n?n:a.custom,o,r)}return e}function wc(a,e,n){const t=a.getProps();return vc(t,e,void 0!==n?n:t.custom,a)}const kc=new Set(["width","height","top","left","right","bottom",...Ml]);class xc{constructor(a,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var e;const n=ai.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(null==(e=this.events.change)||e.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=e.owner}setCurrent(a){var e;this.current=a,this.updatedAt=ai.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,e){this.events[a]||(this.events[a]=new zs);const n=this.events[a].add(e);return"change"===a?()=>{n(),Gs.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,e){this.passiveEffect=a,this.stopPassiveEffect=e}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-n}jump(a,e=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;null==(a=this.events.change)||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=ai.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ds(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(a){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=a(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var a,e;null==(a=this.dependents)||a.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jc(a,e){return new xc(a,e)}const zc=a=>Array.isArray(a);function Cc(a,e,n){a.hasValue(e)?a.getValue(e).set(n):a.addValue(e,jc(n))}function Ac(a){return zc(a)?a[a.length-1]||0:a}function Dc(a,e){const n=wc(a,e);let{transitionEnd:t={},transition:o={},...r}=n||{};r={...r,...t};for(const s in r)Cc(a,s,Ac(r[s]))}const Ec=a=>Boolean(a&&a.getVelocity);function Bc(a,e){const n=a.getValue("willChange");if(t=n,Boolean(Ec(t)&&t.add))return n.add(e);if(!n&&gs.WillChange){const n=new gs.WillChange("auto");a.addValue("willChange",n),n.add(e)}var t}function Fc(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const qc="data-"+Fc("framerAppearId");function Sc(a){return a.props[qc]}function Mc({protectedKeys:a,needsAnimating:e},n){const t=a.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,t}function Tc(a,e,{delay:n=0,transitionOverride:t,type:o}={}){let{transition:r=a.getDefaultTransition(),transitionEnd:s,...i}=e;t&&(r=t);const l=[],c=o&&a.animationState&&a.animationState.getState()[o];for(const d in i){const e=a.getValue(d,a.latestValues[d]??null),t=i[d];if(void 0===t||c&&Mc(c,d))continue;const o={delay:n,...bc(r||{},d)},s=e.get();if(void 0!==s&&!e.isAnimating&&!Array.isArray(t)&&t===s&&!o.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const e=Sc(a);if(e){const a=window.MotionHandoffAnimation(e,d,Gs);null!==a&&(o.startTime=a,u=!0)}}Bc(a,d),e.start(fc(d,e,t,a.shouldReduceMotion&&kc.has(d)?{type:!1}:o,a,u));const h=e.animation;h&&l.push(h)}return s&&Promise.all(l).then(()=>{Gs.update(()=>{s&&Dc(a,s)})}),l}function Pc(a,e,n={}){var t;const o=wc(a,e,"exit"===n.type?null==(t=a.presenceContext)?void 0:t.custom:void 0);let{transition:r=a.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const s=o?()=>Promise.all(Tc(a,o,n)):()=>Promise.resolve(),i=a.variantChildren&&a.variantChildren.size?(t=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=r;return function(a,e,n=0,t=0,o=0,r=1,s){const i=[];for(const l of a.variantChildren)l.notify("AnimationStart",e),i.push(Pc(l,e,{...s,delay:n+("function"==typeof t?0:t)+cc(a.variantChildren,l,t,o,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(i)}(a,e,t,o,s,i,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[a,e]="beforeChildren"===l?[s,i]:[i,s];return a().then(()=>e())}return Promise.all([s(),i(n.delay)])}function Lc(a,e,n={}){let t;if(a.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Pc(a,e,n));t=Promise.all(o)}else if("string"==typeof e)t=Pc(a,e,n);else{const o="function"==typeof e?wc(a,e,n.custom):e;t=Promise.all(Tc(a,o,n))}return t.then(()=>{a.notify("AnimationComplete",e)})}const Rc=a=>e=>e.test(a),Nc=[ii,ki,wi,vi,ji,xi,{test:a=>"auto"===a,parse:a=>a}],Ic=a=>Nc.find(Rc(a));function _c(a){return"number"==typeof a?0===a:null===a||"none"===a||"0"===a||ys(a)}const Vc=new Set(["brightness","contrast","saturate","opacity"]);function Oc(a){const[e,n]=a.slice(0,-1).split("(");if("drop-shadow"===e)return a;const[t]=n.match(ui)||[];if(!t)return a;const o=n.replace(t,"");let r=Vc.has(e)?1:0;return t!==n&&(r*=100),e+"("+r+o+")"}const $c=/\b([a-z-]*)\(.*?\)/gu,Wc={...Pi,getAnimatableNone:a=>{const e=a.match($c);return e?e.map(Oc).join(" "):a}},Uc={...ii,transform:Math.round},Hc={borderWidth:ki,borderTopWidth:ki,borderRightWidth:ki,borderBottomWidth:ki,borderLeftWidth:ki,borderRadius:ki,borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomRightRadius:ki,borderBottomLeftRadius:ki,width:ki,maxWidth:ki,height:ki,maxHeight:ki,top:ki,right:ki,bottom:ki,left:ki,inset:ki,insetBlock:ki,insetBlockStart:ki,insetBlockEnd:ki,insetInline:ki,insetInlineStart:ki,insetInlineEnd:ki,padding:ki,paddingTop:ki,paddingRight:ki,paddingBottom:ki,paddingLeft:ki,paddingBlock:ki,paddingBlockStart:ki,paddingBlockEnd:ki,paddingInline:ki,paddingInlineStart:ki,paddingInlineEnd:ki,margin:ki,marginTop:ki,marginRight:ki,marginBottom:ki,marginLeft:ki,marginBlock:ki,marginBlockStart:ki,marginBlockEnd:ki,marginInline:ki,marginInlineStart:ki,marginInlineEnd:ki,fontSize:ki,backgroundPositionX:ki,backgroundPositionY:ki,rotate:vi,rotateX:vi,rotateY:vi,rotateZ:vi,scale:ci,scaleX:ci,scaleY:ci,scaleZ:ci,skew:vi,skewX:vi,skewY:vi,distance:ki,translateX:ki,translateY:ki,translateZ:ki,x:ki,y:ki,z:ki,perspective:ki,transformPerspective:ki,opacity:li,originX:zi,originY:zi,originZ:ki,zIndex:Uc,fillOpacity:li,strokeOpacity:li,numOctaves:Uc},Yc={...Hc,color:Ai,backgroundColor:Ai,outlineColor:Ai,fill:Ai,stroke:Ai,borderColor:Ai,borderTopColor:Ai,borderRightColor:Ai,borderBottomColor:Ai,borderLeftColor:Ai,filter:Wc,WebkitFilter:Wc},Gc=a=>Yc[a];function Kc(a,e){let n=Gc(a);return n!==Wc&&(n=Pi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Xc=new Set(["auto","none","0"]);class Jc extends Ul{constructor(a,e,n,t,o){super(a,e,n,t,o,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(a).set(n)}),this.resolveNoneKeyframes()}}function Zc(a,e,n){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let e=document;const t=(null==n?void 0:n[a])??e.querySelectorAll(a);return t?Array.from(t):[]}return Array.from(a).filter(a=>null!=a)}const Qc=(a,e)=>e&&"number"==typeof a?e.transform(a):a;function ad(a){return fs(a)&&"offsetHeight"in a}const{schedule:ed}=Ys(queueMicrotask,!1),nd={x:!1,y:!1};function td(){return nd.x||nd.y}function od(a,e){const n=Zc(a),t=new AbortController;return[n,{passive:!0,...e,signal:t.signal},()=>t.abort()]}function rd(a){return!("touch"===a.pointerType||td())}const sd=(a,e)=>!!e&&(a===e||sd(a,e.parentElement)),id=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary,ld=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cd(a){return ld.has(a.tagName)||!0===a.isContentEditable}const dd=new WeakSet;function ud(a){return e=>{"Enter"===e.key&&a(e)}}function hd(a,e){a.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function md(a){return id(a)&&!td()}function pd(a){return fs(a)&&"ownerSVGElement"in a}function gd(a){return pd(a)&&"svg"===a.tagName}const bd=[...Nc,Ai,Pi],fd=()=>({x:{min:0,max:0},y:{min:0,max:0}}),yd={current:null},vd={current:!1},wd="undefined"!=typeof window,kd=new WeakMap;function xd(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function jd(a){return"string"==typeof a||Array.isArray(a)}const zd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cd=["initial",...zd];function Ad(a){return xd(a.animate)||Cd.some(e=>jd(a[e]))}function Dd(a){return Boolean(Ad(a)||a.variants)}const Ed=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Bd={};function Fd(a){Bd=a}class qd{scrapeMotionValuesFromProps(a,e,n){return{}}constructor({parent:a,props:e,presenceContext:n,reducedMotionConfig:t,blockInitialAnimation:o,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ul,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const a=ai.now();this.renderScheduledAtthis.bindToMotionValue(e,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(vd.current||function(){if(vd.current=!0,wd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),e=()=>yd.current=a.matches;a.addEventListener("change",e),e()}else yd.current=!1}(),this.shouldReduceMotion=yd.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),Ks(this.notifyUpdate),Ks(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(a=this.parent)||a.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const a=this.features[e];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,e){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const n=Tl.has(a);n&&this.onBindTransform&&this.onBindTransform();const t=e.on("change",e=>{this.latestValues[a]=e,this.props.onUpdate&&Gs.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,a,e)),this.valueSubscriptions.set(a,()=>{t(),o&&o(),e.owner&&e.stop()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in Bd){const e=Bd[a];if(!e)continue;const{isEnabled:n,Feature:t}=e;if(!this.features[a]&&t&&n(this.props)&&(this.features[a]=new t(this)),this.features[a]){const e=this.features[a];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,e){this.latestValues[a]=e}update(a,e){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;ne.variantChildren.delete(a)}addValue(a,e){const n=this.values.get(a);e!==n&&(n&&this.removeValue(a),this.bindToMotionValue(a,e),this.values.set(a,e),this.latestValues[a]=e.get())}removeValue(a){this.values.delete(a);const e=this.valueSubscriptions.get(a);e&&(e(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,e){if(this.props.values&&this.props.values[a])return this.props.values[a];let n=this.values.get(a);return void 0===n&&void 0!==e&&(n=jc(null===e?void 0:e,{owner:this}),this.addValue(a,n)),n}readValue(a,e){let n=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];var t;return null!=n&&("string"==typeof n&&(bs(n)||ys(n))?n=parseFloat(n):(t=n,!bd.find(Rc(t))&&Pi.test(e)&&(n=Kc(a,e))),this.setBaseTarget(a,Ec(n)?n.get():n)),Ec(n)?n.get():n}setBaseTarget(a,e){this.baseTarget[a]=e}getBaseTarget(a){var e;const{initial:n}=this.props;let t;if("string"==typeof n||"object"==typeof n){const o=vc(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);o&&(t=o[a])}if(n&&void 0!==t)return t;const o=this.getBaseTargetFromProps(this.props,a);return void 0===o||Ec(o)?void 0!==this.initialValues[a]&&void 0===t?void 0:this.baseTarget[a]:o}on(a,e){return this.events[a]||(this.events[a]=new zs),this.events[a].add(e)}notify(a,...e){this.events[a]&&this.events[a].notify(...e)}scheduleRenderMicrotask(){ed.render(this.render)}}class Sd extends qd{constructor(){super(...arguments),this.KeyframeResolver=Jc}sortInstanceNodePosition(a,e){return 2&a.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(a,e){const n=a.style;return n?n[e]:void 0}removeValueFromRenderState(a,{vars:e,style:n}){delete e[a],delete n[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Ec(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class Md{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Td({top:a,left:e,right:n,bottom:t}){return{x:{min:e,max:n},y:{min:a,max:t}}}function Pd(a){return void 0===a||1===a}function Ld({scale:a,scaleX:e,scaleY:n}){return!Pd(a)||!Pd(e)||!Pd(n)}function Rd(a){return Ld(a)||Nd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Nd(a){return Id(a.x)||Id(a.y)}function Id(a){return a&&"0%"!==a}function _d(a,e,n){return n+e*(a-n)}function Vd(a,e,n,t,o){return void 0!==o&&(a=_d(a,o,t)),_d(a,n,t)+e}function Od(a,e=0,n=1,t,o){a.min=Vd(a.min,e,n,t,o),a.max=Vd(a.max,e,n,t,o)}function $d(a,{x:e,y:n}){Od(a.x,e.translate,e.scale,e.originPoint),Od(a.y,n.translate,n.scale,n.originPoint)}const Wd=.999999999999,Ud=1.0000000000001;function Hd(a,e){a.min=a.min+e,a.max=a.max+e}function Yd(a,e,n,t,o=.5){Od(a,e,n,Ni(a.min,a.max,o),t)}function Gd(a,e){Yd(a.x,e.x,e.scaleX,e.scale,e.originX),Yd(a.y,e.y,e.scaleY,e.scale,e.originY)}function Kd(a,e){return Td(function(a,e){if(!e)return a;const n=e({x:a.left,y:a.top}),t=e({x:a.right,y:a.bottom});return{top:n.y,left:n.x,bottom:t.y,right:t.x}}(a.getBoundingClientRect(),e))}const Xd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jd=Ml.length;function Zd(a,e,n){const{style:t,vars:o,transformOrigin:r}=a;let s=!1,i=!1;for(const l in e){const a=e[l];if(Tl.has(l))s=!0;else if(ni(l))o[l]=a;else{const e=Qc(a,Hc[l]);l.startsWith("origin")?(i=!0,r[l]=e):t[l]=e}}if(e.transform||(s||n?t.transform=function(a,e,n){let t="",o=!0;for(let r=0;r{if(!e.target)return a;if("string"==typeof a){if(!ki.test(a))return a;a=parseFloat(a)}return`${au(a,e.target.x)}% ${au(a,e.target.y)}%`}},nu={correct:(a,{treeScale:e,projectionDelta:n})=>{const t=a,o=Pi.parse(a);if(o.length>5)return t;const r=Pi.createTransformer(a),s="number"!=typeof o[0]?1:0,i=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=i,o[1+s]/=l;const c=Ni(i,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),r(o)}},tu={borderRadius:{...eu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomLeftRadius:eu,borderBottomRightRadius:eu,boxShadow:nu};function ou(a){for(const e in a)tu[e]=a[e],ni(e)&&(tu[e].isCSSVariable=!0)}function ru(a,{layout:e,layoutId:n}){return Tl.has(a)||a.startsWith("origin")||(e||void 0!==n)&&(!!tu[a]||"opacity"===a)}function su(a,e,n){var t;const o=a.style,r=null==e?void 0:e.style,s={};if(!o)return s;for(const i in o)(Ec(o[i])||r&&Ec(r[i])||ru(i,a)||void 0!==(null==(t=null==n?void 0:n.getValue(i))?void 0:t.liveStyle))&&(s[i]=o[i]);return s}class iu extends Sd{constructor(){super(...arguments),this.type="html",this.renderInstance=Qd}readValueFromInstance(a,e){var n,t;if(Tl.has(e))return(null==(n=this.projection)?void 0:n.isProjecting)?Fl(e):((a,e)=>{const{transform:n="none"}=getComputedStyle(a);return ql(n,e)})(a,e);{const n=(t=a,window.getComputedStyle(t)),o=(ni(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof o?o.trim():o}}measureInstanceViewportBox(a,{transformPagePoint:e}){return Kd(a,e)}build(a,e,n){Zd(a,e,n.transformTemplate)}scrapeMotionValuesFromProps(a,e,n){return su(a,e,n)}}const lu={offset:"stroke-dashoffset",array:"stroke-dasharray"},cu={offset:"strokeDashoffset",array:"strokeDasharray"},du=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uu(a,{attrX:e,attrY:n,attrScale:t,pathLength:o,pathSpacing:r=1,pathOffset:s=0,...i},l,c,d){if(Zd(a,i,c),l)return void(a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox));a.attrs=a.style,a.style={};const{attrs:u,style:h}=a;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(null==d?void 0:d.transformBox)??"fill-box",delete u.transformBox);for(const m of du)void 0!==u[m]&&(h[m]=u[m],delete u[m]);void 0!==e&&(u.x=e),void 0!==n&&(u.y=n),void 0!==t&&(u.scale=t),void 0!==o&&function(a,e,n=1,t=0,o=!0){a.pathLength=1;const r=o?lu:cu;a[r.offset]=""+-t,a[r.array]=`${e} ${n}`}(u,o,r,s,!1)}const hu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),mu=a=>"string"==typeof a&&"svg"===a.toLowerCase();function pu(a,e,n){const t=su(a,e,n);for(const o in a)(Ec(a[o])||Ec(e[o]))&&(t[-1!==Ml.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=a[o]);return t}class gu extends Sd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fd}getBaseTargetFromProps(a,e){return a[e]}readValueFromInstance(a,e){if(Tl.has(e)){const a=Gc(e);return a&&a.default||0}return e=hu.has(e)?e:Fc(e),a.getAttribute(e)}scrapeMotionValuesFromProps(a,e,n){return pu(a,e,n)}build(a,e,n){uu(a,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(a,e,n,t){!function(a,e,n,t){Qd(a,e,void 0,t);for(const o in e.attrs)a.setAttribute(hu.has(o)?o:Fc(o),e.attrs[o])}(a,e,0,t)}mount(a){this.isSVGTag=mu(a.tagName),super.mount(a)}}const bu=Cd.length;function fu(a){if(!a)return;if(!a.isControllingVariants){const e=a.parent&&fu(a.parent)||{};return void 0!==a.props.initial&&(e.initial=a.props.initial),e}const e={};for(let n=0;nPromise.all(e.map(({animation:e,options:n})=>Lc(a,e,n)))}(a),n=zu(),t=!0;const o=e=>(n,t)=>{var o;const r=wc(a,t,"exit"===e?null==(o=a.presenceContext)?void 0:o.custom:void 0);if(r){const{transition:a,transitionEnd:e,...t}=r;n={...n,...t,...e}}return n};function r(r){const{props:s}=a,i=fu(a.parent)||{},l=[],c=new Set;let d={},u=1/0;for(let e=0;eu&&g,w=!1;const k=Array.isArray(p)?p:[p];let x=k.reduce(o(h),{});!1===b&&(x={});const{prevResolvedValues:j={}}=m,z={...j,...x},C=e=>{v=!0,c.has(e)&&(w=!0,c.delete(e)),m.needsAnimating[e]=!0;const n=a.getValue(e);n&&(n.liveStyle=!1)};for(const a in z){const e=x[a],n=j[a];if(d.hasOwnProperty(a))continue;let t=!1;t=zc(e)&&zc(n)?!yu(e,n):e!==n,t?null!=e?C(a):c.add(a):void 0!==e&&c.has(a)?C(a):m.protectedKeys[a]=!0}m.prevProp=p,m.prevResolvedValues=x,m.isActive&&(d={...d,...x}),t&&a.blockInitialAnimation&&(v=!1);const A=f&&y;v&&(!A||w)&&l.push(...k.map(e=>{const n={type:h};if("string"==typeof e&&t&&!A&&a.manuallyAnimateOnMount&&a.parent){const{parent:t}=a,o=wc(t,e);if(t.enteringChildren&&o){const{delayChildren:e}=o.transition||{};n.delay=cc(t.enteringChildren,a,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof s.initial){const n=wc(a,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const t=a.getBaseTarget(n),o=a.getValue(n);o&&(o.liveStyle=!0),e[n]=t??null}),l.push({animation:e})}let h=Boolean(l.length);return!t||!1!==s.initial&&s.initial!==s.animate||a.manuallyAnimateOnMount||(h=!1),t=!1,h?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,t){var o;if(n[e].isActive===t)return Promise.resolve();null==(o=a.variantChildren)||o.forEach(a=>{var n;return null==(n=a.animationState)?void 0:n.setActive(e,t)}),n[e].isActive=t;const s=r(e);for(const a in n)n[a].protectedKeys={};return s},setAnimateFunction:function(n){e=n(a)},getState:()=>n,reset:()=>{n=zu()}}}function xu(a,e){return"string"==typeof e?e!==a:!!Array.isArray(e)&&!yu(e,a)}function ju(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zu(){return{animate:ju(!0),whileInView:ju(),whileHover:ju(),whileTap:ju(),whileDrag:ju(),whileFocus:ju(),exit:ju()}}function Cu(a,e){a.min=e.min,a.max=e.max}function Au(a,e){Cu(a.x,e.x),Cu(a.y,e.y)}function Du(a,e){a.translate=e.translate,a.scale=e.scale,a.originPoint=e.originPoint,a.origin=e.origin}function Eu(a){return a.max-a.min}function Bu(a,e,n,t=.5){a.origin=t,a.originPoint=Ni(e.min,e.max,a.origin),a.scale=Eu(n)/Eu(e),a.translate=Ni(n.min,n.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function Fu(a,e,n,t){Bu(a.x,e.x,n.x,t?t.originX:void 0),Bu(a.y,e.y,n.y,t?t.originY:void 0)}function qu(a,e,n){a.min=n.min+e.min,a.max=a.min+Eu(e)}function Su(a,e,n){a.min=e.min-n.min,a.max=a.min+Eu(e)}function Mu(a,e,n){Su(a.x,e.x,n.x),Su(a.y,e.y,n.y)}function Tu(a,e,n,t,o){return a=_d(a-=e,1/n,t),void 0!==o&&(a=_d(a,1/o,t)),a}function Pu(a,e,[n,t,o],r,s){!function(a,e=0,n=1,t=.5,o,r=a,s=a){if(wi.test(e)&&(e=parseFloat(e),e=Ni(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let i=Ni(r.min,r.max,t);a===r&&(i-=e),a.min=Tu(a.min,e,n,i,o),a.max=Tu(a.max,e,n,i,o)}(a,e[n],e[t],e[o],e.scale,r,s)}const Lu=["x","scaleX","originX"],Ru=["y","scaleY","originY"];function Nu(a,e,n,t){Pu(a.x,e,Lu,n?n.x:void 0,t?t.x:void 0),Pu(a.y,e,Ru,n?n.y:void 0,t?t.y:void 0)}function Iu(a){return 0===a.translate&&1===a.scale}function _u(a){return Iu(a.x)&&Iu(a.y)}function Vu(a,e){return a.min===e.min&&a.max===e.max}function Ou(a,e){return Math.round(a.min)===Math.round(e.min)&&Math.round(a.max)===Math.round(e.max)}function $u(a,e){return Ou(a.x,e.x)&&Ou(a.y,e.y)}function Wu(a){return Eu(a.x)/Eu(a.y)}function Uu(a,e){return a.translate===e.translate&&a.scale===e.scale&&a.originPoint===e.originPoint}function Hu(a){return[a("x"),a("y")]}const Yu=["TopLeft","TopRight","BottomLeft","BottomRight"],Gu=Yu.length,Ku=a=>"string"==typeof a?parseFloat(a):a,Xu=a=>"number"==typeof a||ki.test(a);function Ju(a,e){return void 0!==a[e]?a[e]:a.borderRadius}const Zu=ah(0,.5,Rs),Qu=ah(.5,.95,ws);function ah(a,e,n){return t=>te?1:n(js(a,e,t))}function eh(a,e,n){const t=Ec(a)?a:jc(a);return t.start(fc("",t,e,n)),t.animation}function nh(a,e,n,t={passive:!0}){return a.addEventListener(e,n,t),()=>a.removeEventListener(e,n)}const th=(a,e)=>a.depth-e.depth;class oh{constructor(){this.children=[],this.isDirty=!1}add(a){hs(this.children,a),this.isDirty=!0}remove(a){ms(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(th),this.isDirty=!1,this.children.forEach(a)}}function rh(a,e){const n=ai.now(),t=({timestamp:o})=>{const r=o-n;r>=e&&(Ks(t),a(r-e))};return Gs.setup(t,!0),()=>Ks(t)}function sh(a){return Ec(a)?a.get():a}class ih{constructor(){this.members=[]}add(a){hs(this.members,a),a.scheduleRender()}remove(a){if(ms(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){const e=this.members.findIndex(e=>a===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const a=this.members[t];if(!1!==a.isPresent){n=a;break}}return!!n&&(this.promote(n),!0)}promote(a,e){const n=this.lead;if(a!==n&&(this.prevLead=n,this.lead=a,a.show(),n)){n.instance&&n.scheduleRender(),a.scheduleRender();const t=n.options.layoutDependency,o=a.options.layoutDependency;void 0!==t&&void 0!==o&&t===o||(a.resumeFrom=n,e&&(a.resumeFrom.preserveOpacity=!0),n.snapshot&&(a.snapshot=n.snapshot,a.snapshot.latestValues=n.animationValues||n.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));const{crossfade:r}=a.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:e,resumingFrom:n}=a;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const lh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ch=["","X","Y","Z"];let dh=0;function uh(a,e,n,t){const{latestValues:o}=e;o[a]&&(n[a]=o[a],e.setStaticValue(a,0),t&&(t[a]=0))}function hh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:e}=a.options;if(!e)return;const n=Sc(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:t}=a.options;window.MotionCancelOptimisedAnimation(n,"transform",Gs,!(e||t))}const{parent:t}=a;t&&!t.hasCheckedOptimisedAppear&&hh(t)}function mh({attachResizeListener:a,defaultParent:e,measureScroll:n,checkIsScrollRoot:t,resetTransform:o}){return class{constructor(a={},n=(null==e?void 0:e())){this.id=dh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(bh),this.nodes.forEach(jh),this.nodes.forEach(zh),this.nodes.forEach(fh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;Gs.read(()=>{t=window.innerWidth}),a(e,()=>{const a=window.innerWidth;a!==t&&(t=a,this.root.updateBlockedByResize=!0,n&&n(),n=rh(o,250),lh.hasAnimatedSinceResize&&(lh.hasAnimatedSinceResize=!1,this.nodes.forEach(xh)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||t)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:t})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||Fh,{onLayoutAnimationStart:s,onLayoutAnimationComplete:i}=o.getProps(),l=!this.targetLayout||!$u(this.targetLayout,t),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...bc(r,"layout"),onPlay:s,onComplete:i};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(a,c)}else e||xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=t})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ks(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ch),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Eu(this.snapshot.measuredBox.x)||Eu(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;nWd&&(e.x=1),e.yWd&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Du(this.prevProjectionDelta.x,this.projectionDelta.x),Du(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Fu(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===i&&Uu(this.projectionDelta.x,this.prevProjectionDelta.x)&&Uu(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),a){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(a,e=!1){const n=this.snapshot,t=n?n.latestValues:{},o={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s={x:{min:0,max:0},y:{min:0,max:0}},i=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(i&&!c&&!0===this.options.crossfade&&!this.path.some(Bh));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,m,p,g,b;Dh(r.x,a.x,n),Dh(r.y,a.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mu(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,g=s,b=n,Eh(m.x,p.x,g.x,b),Eh(m.y,p.y,g.y,b),u&&(l=this.relativeTarget,h=u,Vu(l.x,h.x)&&Vu(l.y,h.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Au(u,this.relativeTarget)),i&&(this.animationValues=o,function(a,e,n,t,o,r){o?(a.opacity=Ni(0,n.opacity??1,Zu(t)),a.opacityExit=Ni(e.opacity??1,0,Qu(t))):r&&(a.opacity=Ni(e.opacity??1,n.opacity??1,t));for(let s=0;s{lh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jc(0)),this.currentAnimation=eh(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),a.onUpdate&&a.onUpdate(e)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:e,target:n,layout:t,latestValues:o}=a;if(e&&n&&t){if(this!==a&&this.layout&&t&&Th(this.options.animationType,this.layout.layoutBox,t.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Eu(this.layout.layoutBox.x);n.x.min=a.target.x.min,n.x.max=n.x.min+e;const t=Eu(this.layout.layoutBox.y);n.y.min=a.target.y.min,n.y.max=n.y.min+t}Au(e,n),Gd(e,o),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(a,e){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ih),this.sharedNodes.get(a).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const a=this.getStack();return!a||a.lead===this}getLead(){var a;const{layoutId:e}=this.options;return e&&(null==(a=this.getStack())?void 0:a.lead)||this}getPrevLead(){var a;const{layoutId:e}=this.options;return e?null==(a=this.getStack())?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:e,preserveFollowOpacity:n}={}){const t=this.getStack();t&&t.promote(this,n),a&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let e=!1;const{latestValues:n}=a;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const t={};n.z&&uh("z",a,t,this.animationValues);for(let o=0;o{var e;return null==(e=a.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(vh),this.root.sharedNodes.clear()}}}function ph(a){a.updateLayout()}function gh(a){var e;const n=(null==(e=a.resumeFrom)?void 0:e.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:t}=a.layout,{animationType:o}=a.options,r=n.source!==a.layout.source;"size"===o?Hu(a=>{const t=r?n.measuredBox[a]:n.layoutBox[a],o=Eu(t);t.min=e[a].min,t.max=t.min+o}):Th(o,n.layoutBox,e)&&Hu(t=>{const o=r?n.measuredBox[t]:n.layoutBox[t],s=Eu(e[t]);o.max=o.min+s,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[t].max=a.relativeTarget[t].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Fu(s,e,n.layoutBox);const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Fu(i,a.applyTransform(t,!0),n.measuredBox):Fu(i,e,n.layoutBox);const l=!_u(s);let c=!1;if(!a.resumeFrom){const t=a.getClosestProjectingParent();if(t&&!t.resumeFrom){const{snapshot:o,layout:r}=t;if(o&&r){const s={x:{min:0,max:0},y:{min:0,max:0}};Mu(s,n.layoutBox,o.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};Mu(i,e,r.layoutBox),$u(s,i)||(c=!0),t.options.layoutRoot&&(a.relativeTarget=i,a.relativeTargetOrigin=s,a.relativeParent=t)}}}a.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(a.isLead()){const{onExitComplete:e}=a.options;e&&e()}a.options.transition=void 0}function bh(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=Boolean(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fh(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function yh(a){a.clearSnapshot()}function vh(a){a.clearMeasurements()}function wh(a){a.isLayoutDirty=!1}function kh(a){const{visualElement:e}=a.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),a.resetTransform()}function xh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function jh(a){a.resolveTargetDelta()}function zh(a){a.calcProjection()}function Ch(a){a.resetSkewAndRotation()}function Ah(a){a.removeLeadSnapshot()}function Dh(a,e,n){a.translate=Ni(e.translate,0,n),a.scale=Ni(e.scale,1,n),a.origin=e.origin,a.originPoint=e.originPoint}function Eh(a,e,n,t){a.min=Ni(e.min,n.min,t),a.max=Ni(e.max,n.max,t)}function Bh(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}const Fh={duration:.45,ease:[.4,0,.1,1]},qh=a=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Sh=qh("applewebkit/")&&!qh("chrome/")?Math.round:ws;function Mh(a){a.min=Sh(a.min),a.max=Sh(a.max)}function Th(a,e,n){return"position"===a||"preserve-aspect"===a&&(t=Wu(e),o=Wu(n),!(Math.abs(t-o)<=.2));var t,o}function Ph(a){var e;return a!==a.root&&(null==(e=a.scroll)?void 0:e.wasRoot)}const Lh=mh({attachResizeListener:(a,e)=>nh(a,"resize",e),measureScroll:()=>{var a,e;return{x:document.documentElement.scrollLeft||(null==(a=document.body)?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Rh=a=>!a.isLayoutDirty&&a.willUpdate(!1);function Nh(){const a=new Set,e=new WeakMap,n=()=>a.forEach(Rh);return{add:t=>{a.add(t),e.set(t,t.addEventListener("willUpdate",n))},remove:t=>{a.delete(t);const o=e.get(t);o&&(o(),e.delete(t)),n()},dirty:n}}const Ih={current:void 0},_h=mh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Ih.current){const a=new Lh({});a.mount(window),a.setOptions({layoutScroll:!0}),Ih.current=a}return Ih.current},resetTransform:(a,e)=>{a.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:a=>Boolean("fixed"===window.getComputedStyle(a).position)}),Vh=o.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Oh(a,e){if("function"==typeof a)return a(e);null!=a&&(a.current=e)}class $h extends o.Component{getSnapshotBeforeUpdate(a){const e=this.props.childRef.current;if(e&&a.isPresent&&!this.props.isPresent){const a=e.offsetParent,n=ad(a)&&a.offsetWidth||0,t=ad(a)&&a.offsetHeight||0,o=this.props.sizeRef.current;o.height=e.offsetHeight||0,o.width=e.offsetWidth||0,o.top=e.offsetTop,o.left=e.offsetLeft,o.right=n-o.width-o.left,o.bottom=t-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Wh({children:a,isPresent:e,anchorX:n,anchorY:t,root:s}){var i;const l=o.useId(),c=o.useRef(null),d=o.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=o.useContext(Vh),h=(null==(i=a.props)?void 0:i.ref)??(null==a?void 0:a.ref),m=function(...a){return o.useCallback(function(...a){return e=>{let n=!1;const t=a.map(a=>{const t=Oh(a,e);return n||"function"!=typeof t||(n=!0),t});if(n)return()=>{for(let e=0;e{const{width:a,height:o,top:r,left:i,right:h,bottom:m}=d.current;if(e||!c.current||!a||!o)return;const p="left"===n?`left: ${i}`:`right: ${h}`,g="bottom"===t?`bottom: ${m}`:`top: ${r}`;c.current.dataset.motionPopId=l;const b=document.createElement("style");u&&(b.nonce=u);const f=s??document.head;return f.appendChild(b),b.sheet&&b.sheet.insertRule(`\n [data-motion-pop-id="${l}"] {\n position: absolute !important;\n width: ${a}px !important;\n height: ${o}px !important;\n ${p}px !important;\n ${g}px !important;\n }\n `),()=>{f.contains(b)&&f.removeChild(b)}},[e]),r.jsx($h,{isPresent:e,childRef:c,sizeRef:d,children:o.cloneElement(a,{ref:m})})}const Uh=({children:a,initial:e,isPresent:n,onExitComplete:t,custom:s,presenceAffectsLayout:i,mode:l,anchorX:c,anchorY:d,root:u})=>{const h=ls(Hh),m=o.useId();let p=!0,g=o.useMemo(()=>(p=!1,{id:m,initial:e,isPresent:n,custom:s,onExitComplete:a=>{h.set(a,!0);for(const e of h.values())if(!e)return;t&&t()},register:a=>(h.set(a,!1),()=>h.delete(a))}),[n,h,t]);return i&&p&&(g={...g}),o.useMemo(()=>{h.forEach((a,e)=>h.set(e,!1))},[n]),o.useEffect(()=>{!n&&!h.size&&t&&t()},[n]),"popLayout"===l&&(a=r.jsx(Wh,{isPresent:n,anchorX:c,anchorY:d,root:u,children:a})),r.jsx(us.Provider,{value:g,children:a})};function Hh(){return new Map}function Yh(a=!0){const e=o.useContext(us);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:t,register:r}=e,s=o.useId();o.useEffect(()=>{if(a)return r(s)},[a]);const i=o.useCallback(()=>a&&t&&t(s),[s,t,a]);return!n&&t?[!1,i]:[!0]}function Gh(){return null===(a=o.useContext(us))||a.isPresent;var a}const Kh=a=>a.key||"";function Xh(a){const e=[];return o.Children.forEach(a,a=>{o.isValidElement(a)&&e.push(a)}),e}const Jh=({children:a,custom:e,initial:n=!0,onExitComplete:t,presenceAffectsLayout:s=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",anchorY:d="top",root:u})=>{const[h,m]=Yh(l),p=o.useMemo(()=>Xh(a),[a]),g=l&&!h?[]:p.map(Kh),b=o.useRef(!0),f=o.useRef(p),y=ls(()=>new Map),v=o.useRef(new Set),[w,k]=o.useState(p),[x,j]=o.useState(p);ds(()=>{b.current=!1,f.current=p;for(let a=0;a{const o=Kh(a),w=!(l&&!h)&&(p===x||g.includes(o));return r.jsx(Uh,{isPresent:w,initial:!(b.current&&!n)&&void 0,custom:e,presenceAffectsLayout:s,mode:i,root:u,onExitComplete:w?void 0:()=>{if(v.current.has(o))return;if(v.current.add(o),!y.has(o))return;y.set(o,!0);let a=!0;y.forEach(e=>{e||(a=!1)}),a&&(null==C||C(),j(f.current),l&&(null==m||m()),t&&t())},anchorX:c,anchorY:d,children:a},o)})})},Zh=o.createContext(null);const Qh=a=>!0===a,am=({children:a,id:e,inherit:n=!0})=>{const t=o.useContext(is),s=o.useContext(Zh),[i,l]=function(){const a=function(){const a=o.useRef(!1);return ds(()=>(a.current=!0,()=>{a.current=!1}),[]),a}(),[e,n]=o.useState(0),t=o.useCallback(()=>{a.current&&n(e+1)},[e]);return[o.useCallback(()=>Gs.postRender(t),[t]),e]}(),c=o.useRef(null),d=t.id||s;null===c.current&&((a=>Qh(!0===a)||"id"===a)(n)&&d&&(e=e?d+"-"+e:d),c.current={id:e,group:Qh(n)&&t.group||Nh()});const u=o.useMemo(()=>({...c.current,forceRender:i}),[l]);return r.jsx(is.Provider,{value:u,children:a})},em=o.createContext({strict:!1}),nm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let tm=!1;function om(){return function(){if(tm)return;const a={};for(const e in nm)a[e]={isEnabled:a=>nm[e].some(e=>!!a[e])};Fd(a),tm=!0}(),Bd}const rm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sm(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||rm.has(a)}let im=a=>!sm(a);function lm(a){"function"==typeof a&&(im=e=>e.startsWith("on")?!sm(e):a(e))}try{lm(require("@emotion/is-prop-valid").default)}catch{}const cm=o.createContext({});function dm(a){return Array.isArray(a)?a.join(" "):a}function um(a,e,n){for(const t in e)Ec(e[t])||ru(t,n)||(a[t]=e[t])}function hm(a,e){const n={},t=function(a,e){const n={};return um(n,a.style||{},a),Object.assign(n,function({transformTemplate:a},e){return o.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Zd(n,e,a),Object.assign({},n.vars,n.style)},[e])}(a,e)),n}(a,e);return a.drag&&!1!==a.dragListener&&(n.draggable=!1,t.userSelect=t.WebkitUserSelect=t.WebkitTouchCallout="none",t.touchAction=!0===a.drag?"none":"pan-"+("x"===a.drag?"y":"x")),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(n.tabIndex=0),n.style=t,n}function mm(a,e,n,t){const r=o.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return uu(n,e,mu(t),a.transformTemplate,a.style),{...n.attrs,style:{...n.style}}},[e]);if(a.style){const e={};um(e,a.style,a),r.style={...e,...r.style}}return r}const pm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function gm(a){return"string"==typeof a&&!a.includes("-")&&!!(pm.indexOf(a)>-1||/[A-Z]/u.test(a))}function bm(a,e,n,{latestValues:t},r,s=!1,i){const l=(i??gm(a)?mm:hm)(e,t,r,a),c=function(a,e,n){const t={};for(const o in a)"values"===o&&"object"==typeof a.values||(im(o)||!0===n&&sm(o)||!e&&!sm(o)||a.draggable&&o.startsWith("onDrag"))&&(t[o]=a[o]);return t}(e,"string"==typeof a,s),d=a!==o.Fragment?{...c,...l,ref:n}:{},{children:u}=e,h=o.useMemo(()=>Ec(u)?u.get():u,[u]);return o.createElement(a,{...d,children:h})}function fm(a,e,n,t){const o={},r=t(a,{});for(const h in r)o[h]=sh(r[h]);let{initial:s,animate:i}=a;const l=Ad(a),c=Dd(a);e&&c&&!l&&!1!==a.inherit&&(void 0===s&&(s=e.initial),void 0===i&&(i=e.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?i:s;if(u&&"boolean"!=typeof u&&!xd(u)){const e=Array.isArray(u)?u:[u];for(let n=0;n(e,n)=>{const t=o.useContext(cm),r=o.useContext(us),s=()=>function({scrapeMotionValuesFromProps:a,createRenderState:e},n,t,o){return{latestValues:fm(n,t,o,a),renderState:e()}}(a,e,t,r);return n?s():ls(s)},vm=ym({scrapeMotionValuesFromProps:su,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),wm=ym({scrapeMotionValuesFromProps:pu,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),km=Symbol.for("motionComponentSymbol");function xm(a,e,n){const t=o.useRef(n);o.useInsertionEffect(()=>{t.current=n});const r=o.useRef(null);return o.useCallback(n=>{var o;n&&(null==(o=a.onMount)||o.call(a,n)),e&&(n?e.mount(n):e.unmount());const s=t.current;if("function"==typeof s)if(n){const a=s(n);"function"==typeof a&&(r.current=a)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n)},[e])}const jm=o.createContext({});function zm(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}function Cm(a,e,n,t,r,s){var i,l;const{visualElement:c}=o.useContext(cm),d=o.useContext(em),u=o.useContext(us),h=o.useContext(Vh).reducedMotion,m=o.useRef(null),p=o.useRef(!1);t=t||d.renderer,!m.current&&t&&(m.current=t(a,{visualState:e,parent:c,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h,isSVG:s}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const g=m.current,b=o.useContext(jm);!g||g.projection||!r||"html"!==g.type&&"svg"!==g.type||function(a,e,n,t){const{layoutId:o,layout:r,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;a.projection=new n(a.latestValues,e["data-framer-portal-id"]?void 0:Am(a.parent)),a.projection.setOptions({layoutId:o,layout:r,alwaysMeasureLayout:Boolean(s)||i&&zm(i),visualElement:a,animationType:"string"==typeof r?r:"both",initialPromotionConfig:t,crossfade:d,layoutScroll:l,layoutRoot:c})}(m.current,n,r,b);const f=o.useRef(!1);o.useInsertionEffect(()=>{g&&f.current&&g.update(n,u)});const y=n[qc],v=o.useRef(Boolean(y)&&!(null==(i=window.MotionHandoffIsComplete)?void 0:i.call(window,y))&&(null==(l=window.MotionHasOptimisedAnimation)?void 0:l.call(window,y)));return ds(()=>{p.current=!0,g&&(f.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),v.current&&g.animationState&&g.animationState.animateChanges())}),o.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var a;null==(a=window.MotionHandoffMarkAsComplete)||a.call(window,y)}),v.current=!1),g.enteringChildren=void 0)}),g}function Am(a){if(a)return!1!==a.options.allowProjection?a.projection:Am(a.parent)}function Dm(a,{forwardMotionProps:e=!1,type:n}={},t,s){t&&function(a){const e=om();for(const n in a)e[n]={...e[n],...a[n]};Fd(e)}(t);const i=n?"svg"===n:gm(a),l=i?wm:vm;function c(n,t){let c;const d={...o.useContext(Vh),...n,layoutId:Em(n)},{isStatic:u}=d,h=function(a){const{initial:e,animate:n}=function(a,e){if(Ad(a)){const{initial:e,animate:n}=a;return{initial:!1===e||jd(e)?e:void 0,animate:jd(n)?n:void 0}}return!1!==a.inherit?e:{}}(a,o.useContext(cm));return o.useMemo(()=>({initial:e,animate:n}),[dm(e),dm(n)])}(n),m=l(n,u);if(!u&&cs){o.useContext(em).strict;const e=function(a){const e=om(),{drag:n,layout:t}=e;if(!n&&!t)return{};const o={...n,...t};return{MeasureLayout:(null==n?void 0:n.isEnabled(a))||(null==t?void 0:t.isEnabled(a))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(d);c=e.MeasureLayout,h.visualElement=Cm(a,m,d,s,e.ProjectionNode,i)}return r.jsxs(cm.Provider,{value:h,children:[c&&h.visualElement?r.jsx(c,{visualElement:h.visualElement,...d}):null,bm(a,n,xm(m,h.visualElement,t),m,u,e,i)]})}c.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;const d=o.forwardRef(c);return d[km]=a,d}function Em({layoutId:a}){const e=o.useContext(is).id;return e&&void 0!==a?e+"-"+a:a}function Bm(a,e){if("undefined"==typeof Proxy)return Dm;const n=new Map,t=(n,t)=>Dm(n,t,a,e);return new Proxy((a,e)=>t(a,e),{get:(o,r)=>"create"===r?t:(n.has(r)||n.set(r,Dm(r,void 0,a,e)),n.get(r))})}const Fm=(a,e)=>e.isSVG??gm(a)?new gu(e):new iu(e,{allowProjection:a!==o.Fragment});let qm=0;const Sm={animation:{Feature:class extends Md{constructor(a){super(a),a.animationState||(a.animationState=ku(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();xd(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:e}=this.node.prevProps||{};a!==e&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),null==(a=this.unmountControls)||a.call(this)}}},exit:{Feature:class extends Md{constructor(){super(...arguments),this.id=qm++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===n)return;const t=this.node.animationState.setActive("exit",!a);e&&!a&&t.then(()=>{e(this.id)})}mount(){const{register:a,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),a&&(this.unmount=a(this.id))}unmount(){}}}};function Mm(a){return{point:{x:a.pageX,y:a.pageY}}}function Tm(a,e,n,t){return nh(a,e,(a=>e=>id(e)&&a(e,Mm(e)))(n),t)}const Pm=({current:a})=>a?a.ownerDocument.defaultView:null,Lm=(a,e)=>Math.abs(a-e),Rm=new Set(["auto","scroll"]);class Nm{constructor(a,e,{transformPagePoint:n,contextWindow:t=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=Vm(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(a,e){const n=Lm(a.x,e.x),t=Lm(a.y,e.y);return Math.sqrt(n**2+t**2)}(a.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:t}=a,{timestamp:o}=Xs;this.history.push({...t,timestamp:o});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,a)},this.handlePointerMove=(a,e)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=Im(e,this.transformPagePoint),Gs.update(this.updatePoint,!0)},this.handlePointerUp=(a,e)=>{this.end();const{onEnd:n,onSessionEnd:t,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=Vm("pointercancel"===a.type?this.lastMoveEventInfo:Im(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(a,r),t&&t(a,r)},!id(a))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=t||window;const i=Im(Mm(a),this.transformPagePoint),{point:l}=i,{timestamp:c}=Xs;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=e;d&&d(a,Vm(i,this.history)),this.removeListeners=xs(Tm(this.contextWindow,"pointermove",this.handlePointerMove),Tm(this.contextWindow,"pointerup",this.handlePointerUp),Tm(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(a){let e=a.parentElement;for(;e;){const a=getComputedStyle(e);(Rm.has(a.overflowX)||Rm.has(a.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const e=this.scrollPositions.get(a);if(!e)return;const n=a===window,t=n?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},o=t.x-e.x,r=t.y-e.y;0===o&&0===r||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=r):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=r),this.scrollPositions.set(a,t),Gs.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ks(this.updatePoint)}}function Im(a,e){return e?{point:e(a.point)}:a}function _m(a,e){return{x:a.x-e.x,y:a.y-e.y}}function Vm({point:a},e){return{point:a,delta:_m(a,$m(e)),offset:_m(a,Om(e)),velocity:Wm(e,.1)}}function Om(a){return a[0]}function $m(a){return a[a.length-1]}function Wm(a,e){if(a.length<2)return{x:0,y:0};let n=a.length-1,t=null;const o=$m(a);for(;n>=0&&(t=a[n],!(o.timestamp-t.timestamp>Cs(e)));)n--;if(!t)return{x:0,y:0};const r=As(o.timestamp-t.timestamp);if(0===r)return{x:0,y:0};const s={x:(o.x-t.x)/r,y:(o.y-t.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Um(a,e,n){return{min:void 0!==e?a.min+e:void 0,max:void 0!==n?a.max+n-(a.max-a.min):void 0}}function Hm(a,e){let n=e.min-a.min,t=e.max-a.max;return e.max-e.min{e?(this.stopAnimation(),this.snapToCursor(Mm(a).point)):this.pauseAnimation()},onStart:(a,e)=>{this.stopAnimation();const{drag:n,dragPropagation:t,onDragStart:o}=this.getProps();if(n&&!t&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=n)||"y"===r?nd[r]?null:(nd[r]=!0,()=>{nd[r]=!1}):nd.x||nd.y?null:(nd.x=nd.y=!0,()=>{nd.x=nd.y=!1}),!this.openDragLock))return;var r;this.latestPointerEvent=a,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hu(a=>{let e=this.getAxisMotionValue(a).get()||0;if(wi.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const t=n.layout.layoutBox[a];t&&(e=Eu(t)*(parseFloat(e)/100))}}this.originPoint[a]=e}),o&&Gs.postRender(()=>o(a,e)),Bc(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(a,e)=>{this.latestPointerEvent=a,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:t,onDirectionLock:o,onDrag:r}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=e;if(t&&null===this.currentDirection)return this.currentDirection=function(a,e=10){let n=null;return Math.abs(a.y)>e?n="y":Math.abs(a.x)>e&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),r&&r(a,e)},onSessionEnd:(a,e)=>{this.latestPointerEvent=a,this.latestPanInfo=e,this.stop(a,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Hu(a=>{var e;return"paused"===this.getAnimationState(a)&&(null==(e=this.getAxisMotionValue(a).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:Pm(this.visualElement),element:this.visualElement.current})}stop(a,e){const n=a||this.latestPointerEvent,t=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!t||!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Gs.postRender(()=>s(n,t))}cancel(){this.isDragging=!1;const{projection:a,animationState:e}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,e,n){const{drag:t}=this.getProps();if(!n||!Zm(a,t,this.currentDirection))return;const o=this.getAxisMotionValue(a);let r=this.originPoint[a]+n[a];this.constraints&&this.constraints[a]&&(r=function(a,{min:e,max:n},t){return void 0!==e&&an&&(a=t?Ni(n,a,t.max):Math.min(a,n)),a}(r,this.constraints[a],this.elastic[a])),o.set(r)}resolveConstraints(){var a;const{dragConstraints:e,dragElastic:n}=this.getProps(),t=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(a=this.visualElement.projection)?void 0:a.layout,o=this.constraints;e&&zm(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!t)&&function(a,{top:e,left:n,bottom:t,right:o}){return{x:Um(a.x,n,o),y:Um(a.y,e,t)}}(t.layoutBox,e),this.elastic=function(a=Ym){return!1===a?a=0:!0===a&&(a=Ym),{x:Gm(a,"left","right"),y:Gm(a,"top","bottom")}}(n),o!==this.constraints&&t&&this.constraints&&!this.hasMutatedConstraints&&Hu(a=>{!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=function(a,e){const n={};return void 0!==e.min&&(n.min=e.min-a.min),void 0!==e.max&&(n.max=e.max-a.min),n}(t.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:e}=this.getProps();if(!a||!zm(a))return!1;const n=a.current,{projection:t}=this.visualElement;if(!t||!t.layout)return!1;const o=function(a,e,n){const t=Kd(a,n),{scroll:o}=e;return o&&(Hd(t.x,o.offset.x),Hd(t.y,o.offset.y)),t}(n,t.root,this.visualElement.getTransformPagePoint());let r=function(a,e){return{x:Hm(a.x,e.x),y:Hm(a.y,e.y)}}(t.layout.layoutBox,o);if(e){const a=e(function({x:a,y:e}){return{top:e.min,right:a.max,bottom:e.max,left:a.min}}(r));this.hasMutatedConstraints=!!a,a&&(r=Td(a))}return r}startAnimation(a){const{drag:e,dragMomentum:n,dragElastic:t,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),i=this.constraints||{},l=Hu(s=>{if(!Zm(s,e,this.currentDirection))return;let l=i&&i[s]||{};r&&(l={min:0,max:0});const c=t?200:1e6,d=t?40:1e7,u={type:"inertia",velocity:n?a[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,u)});return Promise.all(l).then(s)}startAxisValueAnimation(a,e){const n=this.getAxisMotionValue(a);return Bc(this.visualElement,a),n.start(fc(a,n,0,e,this.visualElement,!1))}stopAnimation(){Hu(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Hu(a=>{var e;return null==(e=this.getAxisMotionValue(a).animation)?void 0:e.pause()})}getAnimationState(a){var e;return null==(e=this.getAxisMotionValue(a).animation)?void 0:e.state}getAxisMotionValue(a){const e=`_drag${a.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(a,(n.initial?n.initial[a]:void 0)||0)}snapToCursor(a){Hu(e=>{const{drag:n}=this.getProps();if(!Zm(e,n,this.currentDirection))return;const{projection:t}=this.visualElement,o=this.getAxisMotionValue(e);if(t&&t.layout){const{min:n,max:r}=t.layout.layoutBox[e],s=o.get()||0;o.set(a[e]-Ni(n,r,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!zm(e)||!n||!this.constraints)return;this.stopAnimation();const t={x:0,y:0};Hu(a=>{const e=this.getAxisMotionValue(a);if(e&&!1!==this.constraints){const n=e.get();t[a]=function(a,e){let n=.5;const t=Eu(a),o=Eu(e);return o>t?n=js(e.min,e.max-t,a.min):t>o&&(n=js(a.min,a.max-o,e.min)),ps(0,1,n)}({min:n,max:n},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Hu(e=>{if(!Zm(e,a,null))return;const n=this.getAxisMotionValue(e),{min:o,max:r}=this.constraints[e];n.set(Ni(o,r,t[e]))})}addListeners(){if(!this.visualElement.current)return;Xm.set(this.visualElement,this);const a=this.visualElement.current,e=Tm(a,"pointerdown",e=>{const{drag:n,dragListener:t=!0}=this.getProps(),o=e.target,r=o!==a&&cd(o);n&&t&&!r&&this.start(e)}),n=()=>{const{dragConstraints:a}=this.getProps();zm(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:t}=this.visualElement,o=t.addEventListener("measure",n);t&&!t.layout&&(t.root&&t.root.updateScroll(),t.updateLayout()),Gs.read(n);const r=nh(window,"resize",()=>this.scalePositionWithinConstraints()),s=t.addEventListener("didUpdate",({delta:a,hasLayoutChanged:e})=>{this.isDragging&&e&&(Hu(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=a[e].translate,n.set(n.get()+a[e].translate))}),this.visualElement.render())});return()=>{r(),e(),o(),s&&s()}}getProps(){const a=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:t=!1,dragConstraints:o=!1,dragElastic:r=Ym,dragMomentum:s=!0}=a;return{...a,drag:e,dragDirectionLock:n,dragPropagation:t,dragConstraints:o,dragElastic:r,dragMomentum:s}}}function Zm(a,e,n){return!(!0!==e&&e!==a||null!==n&&n!==a)}const Qm=a=>(e,n)=>{a&&Gs.postRender(()=>a(e,n))};let ap=!1;class ep extends o.Component{componentDidMount(){const{visualElement:a,layoutGroup:e,switchLayoutGroup:n,layoutId:t}=this.props,{projection:o}=a;o&&(e.group&&e.group.add(o),n&&n.register&&t&&n.register(o),ap&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lh.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:e,visualElement:n,drag:t,isPresent:o}=this.props,{projection:r}=n;return r?(r.isPresent=o,a.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),ap=!0,t||a.layoutDependency!==e||void 0===e||a.isPresent!==o?r.willUpdate():this.safeToRemove(),a.isPresent!==o&&(o?r.promote():r.relegate()||Gs.postRender(()=>{const a=r.getStack();a&&a.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),ed.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:t}=a;ap=!0,t&&(t.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(t),n&&n.deregister&&n.deregister(t))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function np(a){const[e,n]=Yh(),t=o.useContext(is);return r.jsx(ep,{...a,layoutGroup:t,switchLayoutGroup:o.useContext(jm),isPresent:e,safeToRemove:n})}const tp={pan:{Feature:class extends Md{constructor(){super(...arguments),this.removePointerDownListener=ws}onPointerDown(a){this.session=new Nm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:e,onPan:n,onPanEnd:t}=this.node.getProps();return{onSessionStart:Qm(a),onStart:Qm(e),onMove:n,onEnd:(a,e)=>{delete this.session,t&&Gs.postRender(()=>t(a,e))}}}mount(){this.removePointerDownListener=Tm(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Md{constructor(a){super(a),this.removeGroupControls=ws,this.removeListeners=ws,this.controls=new Jm(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ws}update(){const{dragControls:a}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};a!==e&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:_h,MeasureLayout:np}};function op(a,e,n){const{props:t}=a;a.animationState&&t.whileHover&&a.animationState.setActive("whileHover","Start"===n);const o=t["onHover"+n];o&&Gs.postRender(()=>o(e,Mm(e)))}function rp(a,e,n){const{props:t}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&t.whileTap&&a.animationState.setActive("whileTap","Start"===n);const o=t["onTap"+("End"===n?"":n)];o&&Gs.postRender(()=>o(e,Mm(e)))}const sp=new WeakMap,ip=new WeakMap,lp=a=>{const e=sp.get(a.target);e&&e(a)},cp=a=>{a.forEach(lp)};const dp={some:0,all:1},up=Bm({...Sm,inView:{Feature:class extends Md{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:e,margin:n,amount:t="some",once:o}=a,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof t?t:dp[t]};return function(a,e,n){const t=function({root:a,...e}){const n=a||document;ip.has(n)||ip.set(n,{});const t=ip.get(n),o=JSON.stringify(e);return t[o]||(t[o]=new IntersectionObserver(cp,{root:a,...e})),t[o]}(e);return sp.set(a,n),t.observe(a),()=>{sp.delete(a),t.unobserve(a)}}(this.node.current,r,a=>{const{isIntersecting:e}=a;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:t}=this.node.getProps(),r=e?n:t;r&&r(a)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:a,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:e={}}={}){return n=>a[n]!==e[n]}(a,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Md{mount(){const{current:a}=this.node;a&&(this.unmount=function(a,e,n={}){const[t,o,r]=od(a,n),s=a=>{const t=a.currentTarget;if(!md(a))return;dd.add(t);const r=e(t,a),s=(a,e)=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",l),dd.has(t)&&dd.delete(t),md(a)&&"function"==typeof r&&r(a,{success:e})},i=a=>{s(a,t===window||t===document||n.useGlobalTarget||sd(t,a.target))},l=a=>{s(a,!1)};window.addEventListener("pointerup",i,o),window.addEventListener("pointercancel",l,o)};return t.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ad(a)&&(a.addEventListener("focus",a=>((a,e)=>{const n=a.currentTarget;if(!n)return;const t=ud(()=>{if(dd.has(n))return;hd(n,"down");const a=ud(()=>{hd(n,"up")});n.addEventListener("keyup",a,e),n.addEventListener("blur",()=>hd(n,"cancel"),e)});n.addEventListener("keydown",t,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",t),e)})(a,o)),cd(a)||a.hasAttribute("tabindex")||(a.tabIndex=0))}),r}(a,(a,e)=>(rp(this.node,e,"Start"),(a,{success:e})=>rp(this.node,a,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Md{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(e){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xs(nh(this.node.current,"focus",()=>this.onFocus()),nh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Md{mount(){const{current:a}=this.node;a&&(this.unmount=function(a,e,n={}){const[t,o,r]=od(a,n),s=a=>{if(!rd(a))return;const{target:n}=a,t=e(n,a);if("function"!=typeof t||!n)return;const r=a=>{rd(a)&&(t(a),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,o)};return t.forEach(a=>{a.addEventListener("pointerenter",s,o)}),r}(a,(a,e)=>(op(this.node,e,"Start"),a=>op(this.node,a,"End"))))}unmount(){}}},...tp,layout:{ProjectionNode:_h,MeasureLayout:np}},Fm),hp={duration:.15,ease:[.4,0,.2,1]},mp={type:"tween",duration:.25,ease:[.4,0,.2,1]},pp={type:"tween",duration:.3,ease:[.4,0,.2,1]},gp=o.createContext(!1);function bp(){return o.useContext(gp)}const fp=o.createContext(void 0);function yp(){return o.useContext(fp)}const vp="#1A1A1A",wp="#737373",kp={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl",full:"sm:max-w-[calc(100vw-2rem)]"};function xp({open:a,onClose:e,size:n="md",className:t,children:s,bottomSheet:l=!0,motionPlus:u=!1,basemapMode:h,solid:m=!1}){const p="light"===h,[g,b]=o.useState(!1),f=o.useRef(null);o.useEffect(()=>(f.current&&(clearTimeout(f.current),f.current=null),a?f.current=setTimeout(()=>{b(!0)},350):queueMicrotask(()=>b(!1)),()=>{f.current&&(clearTimeout(f.current),f.current=null)}),[a]);const y=o.useCallback((a,n)=>{(n.offset.y>100||n.velocity.y>500)&&e()},[e]),v=u?pp:mp,w=u?.98:.99,k=l?8:4;return r.jsx(Jh,{mode:"wait",children:a&&r.jsxs(c,{static:!0,open:a,onClose:e,className:"relative z-[10010]",children:[r.jsx(up.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:hp,className:"fixed inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":"true"}),r.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:r.jsx("div",{className:i("flex min-h-full justify-center",l?"items-end sm:items-center sm:p-4":"items-center p-4"),children:r.jsx(up.div,{drag:!!l&&"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.4},onDragEnd:y,initial:{opacity:0,scale:w,y:k},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.99,y:l?40:4},transition:v,style:{willChange:"transform, opacity"},className:i(l&&"w-full sm:w-auto"),children:r.jsx(d,{className:i("relative w-full shadow-2xl flex flex-col",!h&&!m&&"bg-bg-surface/80 backdrop-blur-xl",!h&&m&&"bg-bg-1",!h&&"ring-1 ring-inset ring-white/10",kp[n],l?"radius-card overflow-hidden pb-safe":"radius-card overflow-hidden",t),style:h?{backgroundColor:p?"#F8F8F8":"var(--bg-surface)",boxShadow:"inset 0 0 0 1px "+(p?"rgba(0, 0, 0, 0.08)":"rgba(255, 255, 255, 0.1)")}:void 0,children:r.jsx(fp.Provider,{value:h,children:r.jsx(gp.Provider,{value:g,children:s})})})})})})]})})}function jp({className:a,...e}){const n=yp(),t="light"===n;return r.jsx(u,{...e,className:i("text-base font-semibold sm:text-lg",!n&&"text-text-primary",a),style:n?{color:t?vp:"var(--text-primary)"}:void 0})}function zp({icon:a,title:e,onClose:n,className:t}){const o=yp(),s="light"===o;return r.jsxs("div",{className:i("flex items-center justify-between p-4 border-b",!o&&"border-border-subtle",t),style:o?{borderColor:s?"rgba(0, 0, 0, 0.12)":"var(--border-subtle)"}:void 0,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[a&&r.jsx("div",{className:i("p-2 radius-inner",!o&&"bg-bg-subtle text-icon-card-title"),style:o?{backgroundColor:s?"#EEEEEE":"var(--bg-subtle)",color:s?"#4A4A4A":"var(--icon-card-title)"}:void 0,children:a}),r.jsx(jp,{children:e})]}),n&&r.jsx("button",{onClick:n,className:i("p-2 radius-inner transition-colors",!o&&"text-text-muted hover:text-text-primary hover:bg-bg-subtle"),style:o?{color:s?wp:"var(--text-muted)"}:void 0,onMouseEnter:a=>{o&&(a.currentTarget.style.color=s?vp:"var(--text-primary)",a.currentTarget.style.backgroundColor=s?"rgba(0, 0, 0, 0.06)":"var(--bg-subtle)")},onMouseLeave:a=>{o&&(a.currentTarget.style.color=s?wp:"var(--text-muted)",a.currentTarget.style.backgroundColor="transparent")},"aria-label":"Close",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}function Cp({className:a,...e}){return r.jsx("div",{...e,className:i("p-4",a)})}function Ap({className:a,...e}){return r.jsx("div",{...e,className:i("flex flex-col-reverse gap-3 p-4 pt-0","sm:flex-row sm:justify-end","*:w-full sm:*:w-auto",a)})}function Dp({className:a,...e}){return r.jsx("nav",{...e,className:i(a,"flex h-full min-h-0 flex-col")})}function Ep({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex flex-col border-b border-border-subtle p-4","[&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function Bp({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex flex-1 flex-col p-3","overflow-y-auto sidebar-scroll","[&>[data-slot=section]+[data-slot=section]]:mt-6")})}function Fp({className:a,...e}){return r.jsx("div",{...e,className:i(a,"mt-auto flex flex-col border-t border-border-subtle","[&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function qp({className:a,...e}){const n=o.useId();return r.jsx(am,{id:n,children:r.jsx("div",{...e,"data-slot":"section",className:i(a,"flex flex-col gap-0.5")})})}const Sp=o.forwardRef(function(a,e){const{current:n,className:t,children:o,...s}=a,c=i("flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left","min-h-[44px]","text-sm font-medium","[&>svg]:w-5 [&>svg]:h-5 [&>svg]:flex-shrink-0",n?"bg-accent-primary/15 text-accent-primary [&>svg]:text-accent-primary":"text-text-muted hover:text-text-primary hover:bg-subtle-fill [&>svg]:text-text-muted hover:[&>svg]:text-text-primary","transition-all duration-150");return r.jsxs("span",{className:i(t,"relative"),children:[n&&r.jsx(up.span,{layoutId:"sidebar-current-indicator",className:"absolute inset-y-2 -left-3 w-0.5 rounded-full bg-accent-primary"}),"string"==typeof s.href?r.jsx(v,{to:s.href,onClick:s.onClick,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,className:c,"data-current":n?"true":void 0,ref:e,children:o}):r.jsx(l,{...s,className:i("cursor-default",c),"data-current":n?"true":void 0,ref:e,children:o})]})});function Mp({className:a,...e}){return r.jsx("span",{...e,className:i(a,"truncate")})}function Tp({className:a,variant:e="default",...n}){return r.jsx("span",{...n,className:i("ml-auto flex items-center gap-1 px-1.5 py-0.5 rounded-full","text-xs font-medium",{default:"bg-bg-subtle text-text-muted",accent:"bg-accent-primary/20 text-accent-primary",success:"bg-accent-success/20 text-accent-success",warning:"bg-accent-secondary/20 text-accent-secondary",danger:"bg-accent-danger/20 text-accent-danger"}[e],a)})}const Pp=o.createContext(null),Lp={type:"spring",visualDuration:.35,bounce:.15};function Rp({open:a,onClose:e,children:n}){return r.jsx(Jh,{children:a&&r.jsxs(c,{static:!0,open:a,onClose:e,className:"lg:hidden relative z-[10002]",children:[r.jsx(up.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:"easeOut"},className:"fixed inset-0 bg-black/60 backdrop-blur-sm","aria-hidden":"true"}),r.jsx(up.div,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:Lp,className:"fixed inset-y-0 left-0 w-72 max-w-[85vw] z-[10003]",children:r.jsx(d,{className:"h-full",children:r.jsxs("div",{className:"flex h-full flex-col sidebar-panel",children:[r.jsx("div",{className:"absolute top-4 right-4 z-10",children:r.jsx(h,{className:"p-2 rounded-lg text-text-muted hover:text-text-primary hover:bg-subtle-fill transition-colors","aria-label":"Close navigation",children:r.jsx(ss,{className:"w-5 h-5"})})}),n]})})})]})})}function Np({sidebar:a,navbar:e,children:n,className:t}){const[s,l]=o.useState(!1),c=()=>l(!0),d=()=>l(!1),u={isOpen:s,open:c,close:d,toggle:()=>l(a=>!a)};return r.jsx(Pp.Provider,{value:u,children:r.jsxs("div",{className:"flex h-screen overflow-hidden bg-bg-body",children:[r.jsx("aside",{className:"hidden lg:flex flex-col w-64 flex-shrink-0 h-full relative sidebar-panel",children:a}),r.jsx(Rp,{open:s,onClose:d,children:a}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsx("header",{className:"lg:hidden sticky top-0 z-[10001] h-14 mobile-header",children:r.jsxs("div",{className:"flex items-center h-full px-4",children:[r.jsx("button",{onClick:c,className:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-subtle-fill active:bg-subtle-fill transition-colors mr-2","aria-label":"Open navigation",children:r.jsx(Xr,{className:"w-5 h-5 text-text-primary"})}),r.jsx("div",{className:"flex-1 min-w-0",children:e})]})}),r.jsx("main",{className:i("flex-1 overflow-y-auto main-content",t),children:n})]})]})})}function Ip({className:a,...e}){return r.jsx("nav",{...e,className:i(a,"flex flex-1 items-center gap-3")})}function _p({className:a,...e}){return r.jsx("div",{...e,className:i(a,"flex items-center gap-3")})}function Vp({className:a,...e}){return r.jsx("div",{"aria-hidden":"true",...e,className:i(a,"flex-1")})}const Op="bg-bg-surface/80 backdrop-blur-lg ring-1 ring-inset ring-white/10",$p={sm:"radius-inner",md:"radius-inset",lg:"radius-card",xl:"radius-hero",full:"radius-pill",none:"radius-none"};function Wp({defaultOpen:a=!1,className:e,children:n}){return r.jsx(p,{defaultOpen:a,children:r.jsx("div",{className:i("flex flex-col",e),children:n})})}o.forwardRef(function({children:a,elevated:e,compact:n,noPadding:t,radius:o="lg",glass:s=!0,stroke:l=!0,shadow:c,reflex:d=!1,glow:u=!1,onClick:h,className:m,style:p,...g},b){const f=c??e??!1,y=d?{...p,"--surface-reflex":"1"}:p;return r.jsx("div",{ref:b,className:i($p[o],s&&(e?"bg-bg-surface/85 backdrop-blur-xl":"bg-bg-surface/80 backdrop-blur-lg"),!s&&"bg-bg-surface",l&&!u&&"ring-1 ring-inset ring-white/10",u&&"ring-1 ring-inset ring-accent-primary/40",f&&(e?"shadow-xl":"shadow-lg"),d&&"surface-reflex","h-full flex flex-col relative",!t&&(n?"p-3 sm:p-4":"p-4 sm:p-5"),h&&"cursor-pointer",m),style:y,onClick:h,...g,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex items-center justify-between gap-4","pb-4 mb-4","border-b border-border-subtle",e),...n,children:a})}),o.forwardRef(function({children:a,icon:e,className:n,...t},o){return r.jsxs("h3",{ref:o,className:i("flex items-center gap-2","text-base font-semibold text-text-primary",n),...t,children:[e&&r.jsx("span",{className:"text-icon-card-title w-5 h-5 flex-shrink-0",children:e}),a]})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("p",{ref:t,className:i("text-sm text-text-muted",e),...n,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex-1 min-h-0",e),...n,children:a})}),o.forwardRef(function({children:a,className:e,...n},t){return r.jsx("div",{ref:t,className:i("flex items-center justify-end gap-3","pt-4 mt-4","border-t border-border-subtle",e),...n,children:a})}),o.forwardRef(function({children:a,border:e,className:n,...t},o){return r.jsx("div",{ref:o,className:i(e&&"pt-4 mt-4 border-t border-border-subtle",n),...t,children:a})});const Up=o.forwardRef(function({className:a,icon:e,children:n,...t},o){return r.jsx(m,{ref:o,className:i("flex w-full items-center justify-between gap-3","px-3 py-2 radius-inner","text-sm font-medium text-text-muted","row-hover hover:text-text-primary","ring-focus",a),...t,children:({open:a})=>r.jsxs(r.Fragment,{children:[n,r.jsx("span",{className:i("transition-transform duration-200",a?"rotate-180":"rotate-0"),children:e||r.jsx(_r,{className:"w-4 h-4"})})]})})});function Hp({direction:a="down",className:e,children:n}){const t={hidden:{height:0,opacity:0,y:"up"===a?8:-8},visible:{height:"auto",opacity:1,y:0}};return r.jsx(g,{static:!0,children:({open:o})=>r.jsx(Jh,{initial:!1,children:o&&r.jsx(up.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:t,transition:{height:{duration:.2,ease:[.4,0,.2,1]},opacity:{duration:.15},y:{duration:.15}},className:i("overflow-hidden",e),children:r.jsx("div",{className:i("up"===a?"pb-2":"pt-2"),children:n})})})})}function Yp({label:a,icon:e,defaultOpen:n=!0,direction:t="down",className:o,dataId:s,children:l}){const c=s?{[`data-${s}-disclosure`]:!0}:{},d=r.jsxs("span",{className:"flex items-center gap-3",children:[e,r.jsx("span",{className:"text-sm font-medium",children:a})]});return"up"===t?r.jsx(p,{defaultOpen:n,children:({open:n})=>r.jsxs("div",{className:i("relative",o),children:[r.jsx(g,{static:!0,className:"relative z-50",children:r.jsx(Jh,{initial:!1,mode:"wait",children:n&&r.jsxs(up.div,{initial:{y:12,scale:.96,opacity:0},animate:{y:0,scale:1,opacity:1},exit:{y:6,scale:.98,opacity:0},transition:{type:"spring",stiffness:400,damping:30,mass:.5,opacity:{duration:.15,ease:"easeOut"}},className:"absolute bottom-full left-0 right-0 z-50 mb-1 mx-1 origin-bottom radius-inset shadow-lg border-card bg-bg-surface/80 backdrop-blur-xl",children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsxs("span",{className:"flex items-center gap-3",children:[e,r.jsx("span",{className:"text-sm font-medium text-text-primary",children:a})]}),r.jsx(m,{className:"p-1 rounded hover:bg-white/10 transition-colors",children:r.jsx(up.span,{initial:{rotate:0},animate:{rotate:180},exit:{rotate:0},transition:{type:"spring",stiffness:400,damping:25},children:r.jsx(_r,{className:"w-4 h-4"})})})]}),r.jsx("div",{className:"px-3 pb-3",children:l})]})})}),r.jsx(up.div,{animate:{opacity:n?.4:1,scale:n?.98:1},transition:{type:"spring",stiffness:500,damping:35},children:r.jsxs(m,{...c,className:i("flex w-full items-center justify-between gap-3","px-3 py-2 radius-inner","text-sm font-medium text-text-muted","row-hover hover:text-text-primary","ring-focus"),children:[d,r.jsx(up.span,{animate:{rotate:n?180:0},transition:{type:"spring",stiffness:400,damping:25},children:r.jsx(_r,{className:"w-4 h-4"})})]})})]})}):r.jsxs(Wp,{defaultOpen:n,className:o,children:[r.jsx(Up,{...c,children:d}),r.jsx(Hp,{direction:"down",children:r.jsx("div",{className:"bg-subtle-fill radius-inset mx-1 mt-1",children:l})})]})}const Gp="0.9.218",Kp="'JetBrains Mono', monospace",Xp=o.memo(function({height:a=16,responsive:e=!1,className:n=""}){const t="var(--accent-primary)",o="var(--text-primary)";if(e){const a=145,e=24;return r.jsxs("svg",{className:n,viewBox:`0 0 ${a} ${e}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"pyMC:Console",style:{display:"block",width:"80%",height:"auto"},children:[r.jsx("style",{children:`\n .logo-text {\n font-family: ${Kp};\n }\n .logo-accent {\n fill: var(--accent-primary, #719CDF);\n }\n .logo-main {\n fill: var(--text-primary, #FFFFFF);\n }\n `}),r.jsxs("text",{x:"0",y:"18",className:"logo-text",fontSize:"20",fontWeight:"400",letterSpacing:"-0.02em",children:[r.jsx("tspan",{className:"logo-accent",children:"py"}),r.jsx("tspan",{className:"logo-main",children:"MC"}),r.jsx("tspan",{className:"logo-accent",children:":"}),r.jsx("tspan",{className:"logo-main",children:"Console"})]})]})}const s="string"==typeof a?parseFloat(a):a,i={fontFamily:Kp,fontSize:.8*s+"px",fontWeight:400,lineHeight:1,letterSpacing:"-0.02em",whiteSpace:"nowrap"};return r.jsxs("span",{className:n,style:i,role:"img","aria-label":"pyMC:Console",children:[r.jsx("span",{style:{color:t},children:"py"}),r.jsx("span",{style:{color:o},children:"MC"}),r.jsx("span",{style:{color:t},children:":"}),r.jsx("span",{style:{color:o},children:"Console"})]})}),Jp="pymc_jwt_token",Zp="pymc_client_id",Qp="pymc_remember_me",ag=new Set;function eg(a){return ag.add(a),()=>ag.delete(a)}function ng(a){for(const n of ag)try{n(a)}catch(e){}}function tg(){let a=localStorage.getItem(Zp);return a||(a=`${Date.now()}-${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(Zp,a)),a}function og(){return"true"===localStorage.getItem(Qp)}function rg(a){a?localStorage.setItem(Qp,"true"):localStorage.removeItem(Qp)}function sg(){return og()?localStorage:sessionStorage}function ig(){return sg().getItem(Jp)||localStorage.getItem(Jp)||sessionStorage.getItem(Jp)}function lg(a){sg().setItem(Jp,a),og()?sessionStorage.removeItem(Jp):localStorage.removeItem(Jp),ng(a)}function cg(){localStorage.removeItem(Jp),sessionStorage.removeItem(Jp),ng(null)}function dg(){return!(!ig()||hg()&&(cg(),1))}function ug(a){try{const e=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(e).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch{return null}}function hg(){const a=ig();if(!a)return!0;const e=ug(a);return!e||!e.exp||Date.now()>=1e3*e.exp-6e4}function mg(){const a=ig();if(!a)return 0;const e=ug(a);return e&&e.exp?Math.max(0,Math.floor((1e3*e.exp-Date.now())/1e3)):0}function pg(){const a=ig();if(!a)return!1;const e=ug(a);if(!e||!e.exp)return!1;const n=1e3*e.exp-Date.now();return n>0&&n<3e5}async function gg(a,e,n=!1){rg(n);try{const n=await fetch("/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a,password:e,client_id:tg()})}),t=n.headers.get("content-type");if(!t||!t.includes("application/json"))return{success:!1,error:`Server error: ${n.status}`};const o=await n.json();return o.success&&o.token?(lg(o.token),{success:!0}):{success:!1,error:o.error||"Login failed"}}catch(t){return{success:!1,error:"Connection error. Please try again."}}}async function bg(){const a=ig();if(!a)return!1;const e=ug(a);(null==e?void 0:e.exp)&&Math.floor((1e3*e.exp-Date.now())/1e3);try{const e=await fetch("/auth/refresh",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({client_id:tg()})});if(!e.ok){let a="";try{const n=await e.json();a=n.error||JSON.stringify(n)}catch{a=e.statusText}return!1}const n=await e.json();if(n.success&&n.token){lg(n.token);const a=ug(n.token);return(null==a?void 0:a.exp)&&Math.floor((1e3*a.exp-Date.now())/1e3),!0}return!1}catch(n){return!1}}let fg=null;async function yg(){const a=ig();if(!a)return!1;const e=ug(a);return(null==e?void 0:e.exp)&&Math.floor((1e3*e.exp-Date.now())/1e3),!pg()||fg||(fg=bg().finally(()=>{fg=null}),fg)}let vg=!1;const wg=new Map;let kg=!1;async function xg(a,e,n=!1){const t=function(a,e){return(null==e?void 0:e.method)&&"GET"!==e.method?"":a}(a,e);if(t){const a=wg.get(t);if(a)return a}const o=`${a}`;!n&&pg()&&await bg();const r=ig();if(!r&&!a.includes("/auth/"))throw window.location.href="/login",new Error("Not authenticated");const s={Accept:"application/json",...r?{Authorization:`Bearer ${r}`}:{}};if(null==e?void 0:e.headers){const a=e.headers;a instanceof Headers?a.forEach((a,e)=>{s[e]=a}):Array.isArray(a)?a.forEach(([a,e])=>{s[a]=e}):Object.assign(s,a)}(null==e?void 0:e.body)&&(s["Content-Type"]="application/json");const i=(async()=>{const t=await fetch(o,{...e,headers:s});if(401===t.status){if(!n&&!kg&&await bg())return xg(a,e,!0);throw kg||(kg=!0,cg(),window.location.replace("/login")),new Error("Session expired. Please log in again.")}if(!t.ok)throw new Error(`API error: ${t.status} ${t.statusText} (${a})`);return t.json()})();return t&&(wg.set(t,i),i.finally(()=>{wg.delete(t)})),i}const jg={spreadingFactor:7,bandwidthHz:125e3,codingRate:5,preambleLength:8,crcEnabled:!0,explicitHeader:!0};function zg(a){if(a.raw_packet){const e=a.raw_packet;if(/^[0-9a-fA-F]+$/.test(e)&&e.length%2==0)return e.length/2;if(/^[A-Za-z0-9+/=]+$/.test(e)){const a=(e.match(/=+$/)||[""])[0].length;return Math.floor(3*e.length/4)-a}return e.length}if(a.length&&a.length>0)return a.length;if(a.payload_length&&a.payload_length>0)return a.payload_length;if(a.payload){const e=a.payload;return/^[0-9a-fA-F]+$/.test(e)&&e.length%2==0?e.length/2:e.length}return 32}function Cg(a,e={}){return void 0!==a.airtime_ms&&a.airtime_ms>0?a.airtime_ms:function(a,e={}){const n=e.spreadingFactor??jg.spreadingFactor,t=e.bandwidthHz??jg.bandwidthHz,o=e.codingRate??jg.codingRate,r=e.preambleLength??jg.preambleLength??8,s=e.crcEnabled??jg.crcEnabled?1:0,i=e.explicitHeader??jg.explicitHeader?0:1,l=n>=11&&t<=125e3?1:0,c=t/1e3,d=Math.pow(2,n)/c,u=(r+4.25)*d,h=Math.max(8*a-4*n+28+16*s-20*i,0),m=4*(n-2*l);return u+(8+Math.ceil(h/m)*o)*d}(zg(a),e)}function Ag(a){return a&&"chat node"===a.toLowerCase()?"Companion":a}async function Dg(){return function(a){if(a.neighbors)for(const e of Object.values(a.neighbors))e.contact_type=Ag(e.contact_type);return a}(await xg("/api/stats"))}async function Eg(){return xg("/api/logs")}async function Bg(a=24){return xg(`/api/noise_floor_history?hours=${a}`)}const Fg=new Map;function qg(a=!1){if(a)Fg.clear();else for(const[e]of Fg)parseInt(e.split("-")[0],10)<=60&&Fg.delete(e)}function Sg(a,e,n,t){const o=60*a/e,r=Math.floor(Date.now()/1e3),s=Math.floor(r/o)*o,i=s-60*a,l=n.filter(a=>a.timestamp>=i&&a.timestamp<=s),c=t?function(a){var e;const n=null==(e=null==a?void 0:a.config)?void 0:e.radio;return{spreadingFactor:(null==n?void 0:n.spreading_factor)??jg.spreadingFactor,bandwidthHz:(null==n?void 0:n.bandwidth)??jg.bandwidthHz,codingRate:(null==n?void 0:n.coding_rate)??jg.codingRate,preambleLength:(null==n?void 0:n.preamble_length)??jg.preambleLength,crcEnabled:!0,explicitHeader:!0}}(t):jg,d=function(a,e,n,t,o){const r=new Array(e),s=new Array(e),i=new Array(e),l=new Array(e),c=new Array(e),d=new Array(e),u=new Array(e);for(let m=0;m=e)continue;const g=Cg(h,o),b=h.packet_origin;if("tx_local"===b?(i[p].count++,i[p].airtime_ms+=g):"tx_forward"===b||h.transmitted?(l[p].count++,l[p].airtime_ms+=g):h.drop_reason&&(c[p].count++,c[p].airtime_ms+=g),"tx_local"!==b){r[p].count++,r[p].airtime_ms+=g,d[p].snr+=h.snr||0,d[p].rssi+=h.rssi||0,d[p].count++;const a=h.packet_hash;a&&!u[p].has(a)&&(u[p].add(a),s[p].count++,s[p].airtime_ms+=g)}}for(let m=0;m0&&(r[m].avg_snr=d[m].snr/d[m].count,r[m].avg_rssi=d[m].rssi/d[m].count);return{received:r,unique_received:s,transmitted:i,forwarded:l,dropped:c}}(l,e,i,o,c);return{time_range_minutes:a,bucket_count:e,bucket_duration_seconds:o,start_time:i,end_time:s,...d}}async function Mg(){return xg("/api/hardware_stats")}async function Tg(){return xg("/api/hardware_processes")}async function Pg(a){return xg("/api/update_radio_config",{method:"POST",body:JSON.stringify(a)})}async function Lg(){return xg("/api/send_advert",{method:"POST",body:"{}"})}async function Rg(a){return xg("/api/set_mode",{method:"POST",body:JSON.stringify({mode:a})})}async function Ng(a){return xg("/api/set_duty_cycle",{method:"POST",body:JSON.stringify({enabled:a})})}async function Ig(a){try{return await xg("/api/log_level",{method:"POST",body:JSON.stringify({level:a})})}catch(e){return{success:!1,error:e instanceof Error?e.message:"Unknown error"}}}async function _g(a,e,n,t=!1){const o=`/api/bulk_packets?${new URLSearchParams({limit:String(1e4),start_timestamp:String(a),end_timestamp:String(e)})}`,r={Accept:"application/json","Accept-Encoding":"gzip, deflate"},s=ig();s&&(r.Authorization=`Bearer ${s}`);const i=new AbortController,l=setTimeout(()=>i.abort(),6e4);try{const s=await fetch(o,{headers:r,signal:i.signal});if(401===s.status&&!t&&await bg())return _g(a,e,n,!0);if(!s.ok)throw new Error(`API ${s.status}`);const l=await s.json();return l.success&&l.data?l.data:[]}finally{clearTimeout(l)}}async function Vg(a,e,n,t,o){let r=0,s=0,i=o??Math.floor(Date.now()/1e3);for(null==e||e({loaded:0,phase:"fetching",chunk:0});i>a&&s<100;){s++;try{const o=await _g(a,i,t);if(0===o.length)break;r+=o.length;const l=Math.min(...o.map(a=>a.timestamp??i))-.001;if(l>=i)break;if(i=l,null==n||n(o),null==e||e({loaded:r,phase:"fetching",chunk:s}),o.length<1e4)break}catch(l){if(l instanceof Error&&"AbortError"===l.name)break;break}}return null==e||e({loaded:r,phase:"complete",chunk:s}),r}const Og=new class{constructor(){t(this,"worker",null),t(this,"isInitialized",!1),t(this,"statsListeners",new Set),t(this,"packetsListeners",new Set),t(this,"errorListeners",new Set),t(this,"readyResolve",null),t(this,"readyPromise",null),t(this,"unsubscribeTokenChange",null)}async init(a){if(!this.isInitialized&&"undefined"!=typeof window){this.readyPromise=new Promise(a=>{this.readyResolve=a});try{this.worker=new Worker(new URL("/assets/polling.worker-B_pFWyb2.js",import.meta.url),{type:"module"}),this.worker.onmessage=this.handleMessage.bind(this),this.worker.onerror=a=>{};const e={type:"init",config:{apiBaseUrl:a.apiBaseUrl,authToken:a.authToken,statsIntervalMs:a.statsIntervalMs??3e3,packetsIntervalMs:a.packetsIntervalMs??3e3}};this.worker.postMessage(e),this.isInitialized=!0,this.unsubscribeTokenChange=eg(a=>{this.setAuthToken(a)}),await this.readyPromise}catch(e){throw e}}}handleMessage(a){var e;const n=a.data;switch(n.type){case"ready":null==(e=this.readyResolve)||e.call(this);break;case"stats":for(const a of this.statsListeners)try{a(n.data,n.timestamp)}catch(t){}break;case"packets":for(const a of this.packetsListeners)try{a(n.newPackets,n.totalCount,n.newestTimestamp)}catch(t){}break;case"packetsReset":for(const a of this.packetsListeners)try{a([],0,n.newestTimestamp)}catch(t){}break;case"error":for(const a of this.errorListeners)try{a(n.source,n.error)}catch(t){}}}onStats(a){return this.statsListeners.add(a),()=>this.statsListeners.delete(a)}onPackets(a){return this.packetsListeners.add(a),()=>this.packetsListeners.delete(a)}onError(a){return this.errorListeners.add(a),()=>this.errorListeners.delete(a)}setAuthToken(a){if(!this.worker)return;const e={type:"setAuth",token:a};this.worker.postMessage(e)}setLiveMode(a){if(!this.worker)return;const e={type:"setLiveMode",enabled:a};this.worker.postMessage(e)}forceRefresh(){this.worker&&this.worker.postMessage({type:"forceRefresh"})}pausePolling(){this.worker&&this.worker.postMessage({type:"pause"})}resumePolling(){this.worker&&this.worker.postMessage({type:"resume"})}clearCache(){this.worker&&this.worker.postMessage({type:"clearCache"})}setTimeWindow(a){if(!this.worker)return;const e={type:"setTimeWindow",hours:a};this.worker.postMessage(e)}terminate(){if(this.unsubscribeTokenChange&&(this.unsubscribeTokenChange(),this.unsubscribeTokenChange=null),this.worker){const a={type:"stop"};this.worker.postMessage(a),this.worker.terminate(),this.worker=null}this.isInitialized=!1,this.statsListeners.clear(),this.packetsListeners.clear(),this.errorListeners.clear()}isReady(){return this.isInitialized}},$g="pymc-packet-cache",Wg="pymc-packet-cache-meta",Ug=36e5,Hg=2592e5,Yg=6048e5,Gg=12096e5,Kg=5e5,Xg=new class{constructor(){t(this,"packets",new Map),t(this,"sortedPackets",[]),t(this,"sortedDirty",!0),t(this,"meta",{oldestTimestamp:0,newestTimestamp:0,lastUpdated:0,packetCount:0,backgroundLoadComplete:!1,topologyLoadComplete:!1,dataTier:"24h",threeDayLoadComplete:!1,sevenDayLoadComplete:!1,fourteenDayLoadComplete:!1}),t(this,"isLoading",!1),t(this,"isBackgroundLoading",!1),t(this,"isTopologyLoading",!1),t(this,"listeners",new Set),t(this,"loadProgress",null),t(this,"statusMessage",""),this.loadFromStorage()}subscribe(a){return this.listeners.add(a),a(this.getState()),()=>this.listeners.delete(a)}getState(){return{isLoading:this.isLoading,isBackgroundLoading:this.isBackgroundLoading,isTopologyLoading:this.isTopologyLoading,backgroundLoadComplete:this.meta.backgroundLoadComplete,topologyLoadComplete:this.meta.topologyLoadComplete,packetCount:this.packets.size,statusMessage:this.statusMessage,loadProgress:this.loadProgress,dataTier:this.meta.dataTier,threeDayLoadComplete:this.meta.threeDayLoadComplete,sevenDayLoadComplete:this.meta.sevenDayLoadComplete,fourteenDayLoadComplete:this.meta.fourteenDayLoadComplete}}getDataTier(){return this.meta.dataTier}getPackets(){return this.sortedDirty&&(this.sortedPackets=Array.from(this.packets.values()).sort((a,e)=>(a.timestamp??0)-(e.timestamp??0)),this.sortedDirty=!1),this.sortedPackets}getNewestTimestamp(){return this.meta.newestTimestamp}getOldestTimestamp(){return this.meta.oldestTimestamp}isStale(){return 0===this.packets.size||Date.now()-this.meta.lastUpdated>Ug}isHeavyLoadInProgress(){return this.isBackgroundLoading||this.isTopologyLoading}async initialLoad(a){if(this.meta.backgroundLoadComplete&&this.packets.size>0)return this.getPackets();0===this.packets.size&&(this.meta.oldestTimestamp=1/0,this.meta.newestTimestamp=0),this.sortedDirty=!0,this.isLoading=!0,this.loadProgress={loaded:this.packets.size,target:3e4,percent:0},this.notifyListeners();const e=Math.floor((Date.now()-864e5)/1e3);try{await Vg(e,a=>{this.loadProgress={loaded:a.loaded,target:Math.max(3e4,a.loaded),percent:"complete"===a.phase?100:Math.min(95,10*a.chunk)},a.chunk%2==0&&this.notifyListeners()},e=>{this.bulkInsert(e),null==a||a()}),this.meta.packetCount=this.packets.size,this.meta.backgroundLoadComplete=!0,this.meta.dataTier="24h",this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.saveToStorage()}catch(n){}finally{this.isLoading=!1,this.loadProgress=null,this.notifyListeners()}return this.getPackets()}bulkInsert(a){let e=this.meta.oldestTimestamp;e!==1/0&&0!==e||(e=Number.MAX_SAFE_INTEGER);let n=this.meta.newestTimestamp;for(let t=0;tn&&(n=s)}e0&&s<1/0?s:o;if(i<=r)return this.isBackgroundLoading=!1,void Og.resumePolling();const l=3e4*("3d"===a?2:"7d"===a?6:13),c=this.packets.size,d=c+l;this.loadProgress={loaded:c,target:d,percent:0},this.statusMessage=`Loading ${a} history...`,this.notifyListeners();let u=0;try{await Vg(r,a=>{this.loadProgress={loaded:c+a.loaded,target:Math.max(d,c+a.loaded),percent:Math.min(99,Math.round((c+a.loaded)/d*100))},a.chunk%2==0&&this.notifyListeners()},a=>{const e=this.packets.size;this.bulkInsert(a),u+=this.packets.size-e,null==n||n()},void 0,i),this.enforceMemoryCap();const e=Date.now()-1e3*this.meta.oldestTimestamp;"3d"===a?(this.meta.threeDayLoadComplete=e>=Hg,this.meta.threeDayLoadComplete&&(this.meta.dataTier="3d")):"7d"===a?(this.meta.sevenDayLoadComplete=e>=Yg,this.meta.sevenDayLoadComplete&&(this.meta.dataTier="7d")):(this.meta.fourteenDayLoadComplete=e>=Gg,this.meta.fourteenDayLoadComplete&&(this.meta.dataTier="14d")),this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.notifyListeners(),this.saveToStorage()}catch(h){this.statusMessage=`${a} load failed`}finally{this.isBackgroundLoading=!1,this.statusMessage="",this.loadProgress=null,this.notifyListeners(),Og.resumePolling()}}isDataTierAvailable(a){switch(a){case"24h":return this.meta.backgroundLoadComplete;case"3d":return this.meta.threeDayLoadComplete;case"7d":return this.meta.sevenDayLoadComplete;case"14d":return this.meta.fourteenDayLoadComplete;default:return!1}}async topologyLoad(){if(!this.meta.topologyLoadComplete&&!this.isTopologyLoading)return this.doTopologyLoad()}async forceTopologyLoad(){if(!this.isTopologyLoading)return this.meta.topologyLoadComplete=!1,this.doTopologyLoad()}async forceDeepLoad(){return this.forceTopologyLoad()}async doTopologyLoad(){this.isTopologyLoading=!0,Og.pausePolling();const a=Date.now(),e=Math.floor(a/1e3),n=Math.floor((a-Gg)/1e3),t=this.meta.oldestTimestamp,o=t>0&&t<1/0?t:e;if(o<=n)return this.meta.topologyLoadComplete=!0,this.isTopologyLoading=!1,void Og.resumePolling();const r=this.packets.size,s=r+42e4;this.statusMessage="Loading topology data...",this.loadProgress={loaded:r,target:s,percent:0},this.notifyListeners();let i=0;try{await Vg(n,a=>{this.loadProgress={loaded:r+a.loaded,target:Math.max(s,r+a.loaded),percent:Math.min(99,Math.round((r+a.loaded)/s*100))},a.chunk%2==0&&this.notifyListeners()},a=>{const e=this.packets.size;this.bulkInsert(a),i+=this.packets.size-e},void 0,o),this.enforceMemoryCap(),this.statusMessage=`Processing ${this.packets.size.toLocaleString()} packets...`,this.loadProgress={loaded:this.packets.size,target:this.packets.size,percent:100},this.notifyListeners(),this.meta.topologyLoadComplete=!0,this.meta.threeDayLoadComplete=!0,this.meta.sevenDayLoadComplete=!0,this.meta.fourteenDayLoadComplete=!0,this.meta.dataTier="14d",this.saveToStorage()}catch(l){this.statusMessage="Load failed"}finally{this.isTopologyLoading=!1,this.statusMessage="",this.loadProgress=null,this.notifyListeners(),Og.resumePolling()}}async poll(){try{const a=await this.fetchRecentPackets(100);if(a.success&&a.data){const e=this.packets.size;this.mergePackets(a.data),this.packets.size>e&&(this.saveToStorage(),this.notifyListeners())}}catch(a){}return this.getPackets()}clear(){this.packets.clear(),this.sortedPackets=[],this.sortedDirty=!0,this.meta={oldestTimestamp:0,newestTimestamp:0,lastUpdated:0,packetCount:0,backgroundLoadComplete:!1,topologyLoadComplete:!1,dataTier:"24h",threeDayLoadComplete:!1,sevenDayLoadComplete:!1,fourteenDayLoadComplete:!1},this.clearStorage(),this.notifyListeners()}mergePacketsDirectly(a){const e=this.packets.size;this.mergePackets(a);const n=this.packets.size-e;return n>0&&(this.enforceMemoryCap(),this.saveToStorage(),this.notifyListeners()),n}mergePackets(a){let e=!1;for(const n of a){const a=n.packet_hash;if(!a)continue;const t=n.timestamp??0,o=`${a}:${t}`;this.packets.has(o)||(this.packets.set(o,n),e=!0),(0===this.meta.oldestTimestamp||tthis.meta.newestTimestamp&&(this.meta.newestTimestamp=t)}e&&(this.sortedDirty=!0),this.meta.lastUpdated=Date.now(),this.meta.packetCount=this.packets.size}notifyListeners(){const a=this.getState();for(const e of this.listeners)e(a)}enforceMemoryCap(){if(this.packets.size<=Kg)return;const a=this.getPackets(),e=a.length-Kg;for(let n=0;ne&&(this.meta.oldestTimestamp=a[e].timestamp??0)}loadFromStorage(){if("undefined"!=typeof window)try{const a=localStorage.getItem(Wg);a&&(this.meta=JSON.parse(a));const e=localStorage.getItem($g);if(e){const a=JSON.parse(e);let n=1/0,t=0;for(const e of a)if(e.packet_hash){const a=e.timestamp??0,o=`${e.packet_hash}:${a}`;this.packets.set(o,e),a>0&&at&&(t=a)}this.packets.size>0&&n!==1/0&&(this.meta.oldestTimestamp=n,this.meta.newestTimestamp=t)}if(this.meta.lastUpdated>0&&Date.now()-this.meta.lastUpdated>Ug)return void this.clear();this.meta.backgroundLoadComplete=!1,this.meta.threeDayLoadComplete=!1,this.meta.sevenDayLoadComplete=!1,this.meta.fourteenDayLoadComplete=!1,this.meta.dataTier="24h";const n=37500;this.meta.topologyLoadComplete&&this.packets.size3e3?a.slice(-3e3):a;localStorage.setItem($g,JSON.stringify(e))}catch(a){if(a instanceof DOMException&&"QuotaExceededError"===a.name)try{localStorage.removeItem($g),localStorage.setItem(Wg,JSON.stringify(this.meta))}catch{}}}clearStorage(){if("undefined"!=typeof window)try{localStorage.removeItem($g),localStorage.removeItem(Wg)}catch(a){}}async fetchRecentPackets(a=1e3,e=!1){const n=`/api/recent_packets?limit=${a}`,t=ig(),o={Accept:"application/json"};t&&(o.Authorization=`Bearer ${t}`);const r=await fetch(n,{headers:o});if(401===r.status&&!e&&await bg())return this.fetchRecentPackets(a,!0);if(!r.ok)throw new Error(`API error: ${r.status}`);return r.json()}};function Jg(a){return{paths:a.paths,byEndpoints:new Map(a.byEndpointsEntries),canonicalPaths:new Map(a.canonicalPathsEntries),totalObservations:a.totalObservations,uniquePathCount:a.uniquePathCount}}function Zg(){return{paths:[],byEndpoints:new Map,canonicalPaths:new Map,totalObservations:0,uniquePathCount:0}}const Qg=new class{constructor(){t(this,"worker",null),t(this,"listeners",new Set),t(this,"currentTopology",{edges:[],validatedEdges:[],weakEdges:[],certainEdges:[],uncertainEdges:[],edgeMap:new Map,maxPacketCount:0,maxCertainCount:0,neighborAffinity:new Map,fullAffinity:new Map,localPrefix:null,centrality:new Map,hubNodes:[],gatewayNodes:[],loops:[],loopEdgeKeys:new Set,txDelayRecommendations:new Map,pathRegistry:Zg(),edgeBetweenness:new Map,backboneEdges:[],nodeMobility:new Map,mobileNodes:[],pathHealth:[],lastHopNeighbors:[],disambiguationStats:{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:[],viterbiStats:{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map,communityCount:0,backboneNodes:[]}),t(this,"isComputing",!1),t(this,"pendingRequest",null),t(this,"debounceTimer",null),t(this,"debounceMs",100),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/topology.worker-B6JO1dmH.js",import.meta.url),{type:"module"}),this.worker.onmessage=a=>{this.handleWorkerMessage(a.data)},this.worker.onerror=a=>{}}catch(a){}}handleWorkerMessage(a){if(this.isComputing=!1,"error"!==a.type){var e;this.currentTopology={edges:(e=a.payload).edges??[],validatedEdges:e.validatedEdges??[],weakEdges:e.weakEdges??[],certainEdges:e.certainEdges??[],uncertainEdges:e.uncertainEdges??[],maxPacketCount:e.maxPacketCount??0,maxCertainCount:e.maxCertainCount??0,localPrefix:e.localPrefix??null,hubNodes:e.hubNodes??[],gatewayNodes:e.gatewayNodes??[],edgeMap:new Map(e.edgeMapEntries??[]),neighborAffinity:new Map(e.neighborAffinityEntries??[]),fullAffinity:new Map(e.fullAffinityEntries??[]),centrality:new Map(e.centralityEntries??[]),loops:e.loops??[],loopEdgeKeys:new Set(e.loopEdgeKeyEntries??[]),txDelayRecommendations:new Map(e.txDelayRecommendationEntries??[]),pathRegistry:e.pathRegistry?Jg(e.pathRegistry):Zg(),edgeBetweenness:new Map(e.edgeBetweennessEntries??[]),backboneEdges:e.backboneEdges??[],nodeMobility:new Map(e.nodeMobilityEntries??[]),mobileNodes:e.mobileNodes??[],pathHealth:e.pathHealth??[],lastHopNeighbors:e.lastHopNeighbors??[],disambiguationStats:e.disambiguationStats??{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:e.discoveredNodes??[],viterbiStats:e.viterbiStats??{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map(e.nodeMetricsEntries??[]),communityCount:e.communityCount??0,backboneNodes:e.backboneNodes??[]};for(const e of this.listeners)try{e(this.currentTopology,a.computeTimeMs)}catch(n){}if(this.pendingRequest){const a=this.pendingRequest;this.pendingRequest=null,this.computeInternal(a)}}}computeInternal(a){if(!this.worker)return;this.isComputing=!0;const e={type:"compute",payload:a};this.worker.postMessage(e)}compute(a,e,n,t,o,r,s,i){const l={packets:a,neighbors:e,localHash:n,localLat:t,localLon:o,airtimeMs:r,zeroHopNeighbors:s,terrainGrid:i,enableTerrainAware:void 0!==i};this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.isComputing?this.pendingRequest=l:this.computeInternal(l)},this.debounceMs)}subscribe(a){return this.listeners.add(a),this.currentTopology.edges.length>0&&a(this.currentTopology,0),()=>{this.listeners.delete(a)}}getTopology(){return this.currentTopology}isWorking(){return this.isComputing}terminate(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.worker&&(this.worker.terminate(),this.worker=null),this.listeners.clear()}},ab=new class{constructor(){t(this,"worker",null),t(this,"listeners",new Set),t(this,"sparklines",new Map),t(this,"isComputing",!1),t(this,"lastComputeTimeMs",0),t(this,"pendingRequest",null),t(this,"debounceTimer",null),t(this,"debounceMs",150),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/sparkline.worker-CmKhBAy5.js",import.meta.url),{type:"module"}),this.worker.onmessage=a=>{this.handleWorkerMessage(a.data)},this.worker.onerror=a=>{this.isComputing=!1,this.notifyListeners()}}catch(a){}}handleWorkerMessage(a){if(this.isComputing=!1,"error"!==a.type){if(this.sparklines=new Map(a.payload.sparklineEntries),this.lastComputeTimeMs=a.computeTimeMs,this.notifyListeners(),this.pendingRequest){const a=this.pendingRequest;this.pendingRequest=null,this.computeInternal(a.packets,a.nodeHashes)}}else this.notifyListeners()}computeInternal(a,e){if(!this.worker)return;if(0===e.length)return this.isComputing=!1,void this.notifyListeners();this.isComputing=!0,this.notifyListeners();const n={type:"compute",payload:{packets:a,nodeHashes:e}};this.worker.postMessage(n)}notifyListeners(){for(const e of this.listeners)try{e(this.sparklines,this.isComputing)}catch(a){}}compute(a,e){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.isComputing?this.pendingRequest={packets:a,nodeHashes:e}:this.computeInternal(a,e)},this.debounceMs)}getSparkline(a){return this.sparklines.get(a)??[]}getAllSparklines(){return this.sparklines}hasSparkline(a){return this.sparklines.has(a)}isWorking(){return this.isComputing}getLastComputeTime(){return this.lastComputeTimeMs}subscribe(a){return this.listeners.add(a),a(this.sparklines,this.isComputing),()=>{this.listeners.delete(a)}}clear(){this.sparklines.clear(),this.notifyListeners()}terminate(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.worker&&(this.worker.terminate(),this.worker=null),this.listeners.clear()}},eb=new class{constructor(){t(this,"ws",null),t(this,"connectionState","disconnected"),t(this,"reconnectAttempts",0),t(this,"pingIntervalId",null),t(this,"lastPongTime",Date.now()),t(this,"reconnectTimeoutId",null),t(this,"packetListeners",new Set),t(this,"statsListeners",new Set),t(this,"systemStatsListeners",new Set),t(this,"packetStatsListeners",new Set),t(this,"connectionListeners",new Set),t(this,"unsubscribeTokenChange",null),t(this,"wsSupported",!0)}buildWsUrl(){const a=ig(),e=tg(),n=new URLSearchParams;a&&n.set("token",a),e&&n.set("client_id",e);const t=n.toString()?`?${n.toString()}`:"";return`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}/ws/packets${t}`}connect(){var a,e;if((null==(a=this.ws)?void 0:a.readyState)!==WebSocket.OPEN&&(null==(e=this.ws)?void 0:e.readyState)!==WebSocket.CONNECTING&&this.wsSupported){this.setConnectionState("connecting");try{const a=this.buildWsUrl();this.ws=new WebSocket(a),this.ws.onopen=this.handleOpen.bind(this),this.ws.onmessage=this.handleMessage.bind(this),this.ws.onerror=this.handleError.bind(this),this.ws.onclose=this.handleClose.bind(this),this.unsubscribeTokenChange||(this.unsubscribeTokenChange=eg(a=>{a&&"connected"===this.connectionState&&(this.disconnect(),this.connect())}))}catch(n){this.wsSupported=!1,this.setConnectionState("disconnected")}}}disconnect(){this.clearPingInterval(),this.clearReconnectTimeout(),this.ws&&(this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.readyState!==WebSocket.OPEN&&this.ws.readyState!==WebSocket.CONNECTING||this.ws.close(1e3,"Client disconnect"),this.ws=null),this.setConnectionState("disconnected"),this.reconnectAttempts=0}isConnected(){var a;return(null==(a=this.ws)?void 0:a.readyState)===WebSocket.OPEN}getConnectionState(){return this.connectionState}isSupported(){return this.wsSupported}resetSupported(){this.wsSupported||(this.wsSupported=!0,this.reconnectAttempts=0)}send(a){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;try{return this.ws.send(JSON.stringify(a)),!0}catch(e){return!1}}onPacket(a){return this.packetListeners.add(a),()=>this.packetListeners.delete(a)}onStats(a){return this.statsListeners.add(a),()=>this.statsListeners.delete(a)}onSystemStats(a){return this.systemStatsListeners.add(a),()=>this.systemStatsListeners.delete(a)}onPacketStats(a){return this.packetStatsListeners.add(a),()=>this.packetStatsListeners.delete(a)}onConnectionChange(a){return this.connectionListeners.add(a),a(this.connectionState,this.reconnectAttempts),()=>this.connectionListeners.delete(a)}handleOpen(){this.setConnectionState("connected"),this.reconnectAttempts=0,this.lastPongTime=Date.now();const a=ig();a&&this.ws&&this.ws.send(JSON.stringify({type:"auth",token:a})),this.startPingInterval()}handleMessage(a){try{const e=JSON.parse(a.data);switch(e.type){case"packet":this.notifyPacketListeners(e.data);break;case"stats":{const a=e.data;a&&"noise_floor_dbm"in a&&this.notifyStatsListeners(a),(null==a?void 0:a.packet_stats)&&this.notifyPacketStatsListeners(a.packet_stats),(null==a?void 0:a.system_stats)&&this.notifySystemStatsListeners(a.system_stats);break}case"packet_stats":{const a=e.data;this.notifyPacketStatsListeners(a);break}case"system_stats":this.notifySystemStatsListeners(e.data);break;case"ping":this.lastPongTime=Date.now(),this.send({type:"pong"});break;case"pong":this.lastPongTime=Date.now()}}catch(e){}}handleError(a){}handleClose(a){this.clearPingInterval(),1e3!==a.code?(1006===a.code&&this.reconnectAttempts,this.scheduleReconnect()):this.setConnectionState("disconnected")}setConnectionState(a){if(this.connectionState!==a){this.connectionState=a;for(const n of this.connectionListeners)try{n(a,this.reconnectAttempts)}catch(e){}}}notifyPacketListeners(a){for(const n of this.packetListeners)try{n(a)}catch(e){}}notifyStatsListeners(a){for(const n of this.statsListeners)try{n(a)}catch(e){}}notifySystemStatsListeners(a){for(const n of this.systemStatsListeners)try{n(a)}catch(e){}}notifyPacketStatsListeners(a){for(const n of this.packetStatsListeners)try{n(a)}catch(e){}}startPingInterval(){this.clearPingInterval(),this.pingIntervalId=setInterval(()=>{var a;(null==(a=this.ws)?void 0:a.readyState)===WebSocket.OPEN&&(this.send({type:"ping"}),Date.now()-this.lastPongTime>6e4&&(this.disconnect(),this.connect()))},3e4)}async verifyConnection(a=5e3){return!(!this.ws||this.ws.readyState!==WebSocket.OPEN)&&new Promise(e=>{const n=Date.now(),t=this.lastPongTime;this.send({type:"ping"});const o=setInterval(()=>{this.lastPongTime>t?(clearInterval(o),e(!0)):Date.now()-n>a&&(clearInterval(o),e(!1))},100)})}clearPingInterval(){this.pingIntervalId&&(clearInterval(this.pingIntervalId),this.pingIntervalId=null)}scheduleReconnect(){if(this.reconnectAttempts>=20)return this.wsSupported=!1,void this.setConnectionState("disconnected");this.setConnectionState("reconnecting");const a=Math.min(1e3*Math.pow(2,Math.min(this.reconnectAttempts,5)),3e4);this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout(()=>{this.reconnectTimeoutId=null,this.connect()},a)}clearReconnectTimeout(){this.reconnectTimeoutId&&(clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=null)}terminate(){this.disconnect(),this.unsubscribeTokenChange&&(this.unsubscribeTokenChange(),this.unsubscribeTokenChange=null),this.packetListeners.clear(),this.statsListeners.clear(),this.systemStatsListeners.clear(),this.packetStatsListeners.clear(),this.connectionListeners.clear()}},nb=3e4,tb=new class{constructor(){t(this,"staged",new Map),t(this,"recentlyConfirmed",new Map),t(this,"listeners",new Set),t(this,"pruneIntervalId",null),this.startPruneInterval()}stage(a){const e=a.packet_hash;if(!e)return;if(this.staged.has(e))return;const n=this.recentlyConfirmed.get(e);n&&Date.now()-n=100&&this.removeOldest(),this.staged.set(e,{packet:a,stagedAt:Date.now()}),this.notifyListeners())}confirm(a){this.staged.delete(a)&&this.notifyListeners()}confirmBatch(a){let e=!1;const n=Date.now();for(const t of a)this.recentlyConfirmed.set(t,n),this.staged.delete(t)&&(e=!0);if(this.recentlyConfirmed.size>200){const a=n-nb;for(const[e,n]of this.recentlyConfirmed)n(e.packet.timestamp??0)-(a.packet.timestamp??0))}isPending(a){return!!a&&this.staged.has(a)}getPendingCount(){return this.staged.size}subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}clear(){this.staged.size>0&&(this.staged.clear(),this.notifyListeners())}terminate(){this.stopPruneInterval(),this.staged.clear(),this.listeners.clear()}notifyListeners(){const a=this.getPendingPackets();for(const n of this.listeners)try{n(a)}catch(e){}}pruneExpired(){const a=Date.now();let e=!1;for(const[n,t]of this.staged)a-t.stagedAt>nb&&(this.staged.delete(n),e=!0);e&&this.notifyListeners()}removeOldest(){let a=null,e=1/0;for(const[n,t]of this.staged)t.stagedAtthis.pruneExpired(),1e4))}stopPruneInterval(){this.pruneIntervalId&&(clearInterval(this.pruneIntervalId),this.pruneIntervalId=null)}},ob=w(a=>({connectionState:"disconnected",isSupported:!0,reconnectAttempt:0,lastConnected:null,initialize:()=>{eb.onConnectionChange((e,n)=>{a(a=>({connectionState:e,reconnectAttempt:n??0,isSupported:eb.isSupported(),lastConnected:"connected"===e?Date.now():a.lastConnected}))}),eb.connect()}})),rb=.05,sb=1e3,ib="terrarium";function lb(a,e,n){try{return a.queryTerrainElevation({lng:e,lat:n})??0}catch{return 0}}const cb=w((a,e)=>({terrainGrid:null,isLoading:!1,error:null,lastLoadedAt:null,cachedBounds:null,terrainDisambiguationEnabled:!0,loadTerrain:async(n,t)=>{const o=e();if(!(o.isLoading||(r=o.cachedBounds,s=n,r&&r.minLat<=s.minLat&&r.maxLat>=s.maxLat&&r.minLng<=s.minLng&&r.maxLng>=s.maxLng))){var r,s;a({isLoading:!0,error:null});try{t.getTerrain()||(t.getSource(ib)||(t.addSource(ib,{type:"raster-dem",tiles:["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],encoding:"terrarium",tileSize:256}),await new Promise((a,e)=>{const n=setTimeout(()=>e(new Error("Terrain source load timeout")),1e4),o=e=>{e.sourceId===ib&&e.isSourceLoaded&&(clearTimeout(n),t.off("sourcedata",o),a())};t.on("sourcedata",o)})),t.setTerrain({source:ib}),await new Promise(a=>setTimeout(a,500)));const e=await async function(a,e){const{minLat:n,maxLat:t,minLng:o,maxLng:r}=e;let s=Math.ceil((r-o)/.001),i=Math.ceil((t-n)/.001);s>sb&&(s=sb),i>sb&&(i=sb);const l=(r-o)/s,c=(t-n)/i,d=Math.max(l,c),u=new Float32Array(s*i);let h=0;for(let m=0;msetTimeout(a,0))}}return{origin:[n,o],cellSize:d,width:s,height:i,elevations:u}}(t,n);a({terrainGrid:e,isLoading:!1,lastLoadedAt:Date.now(),cachedBounds:n})}catch(i){const e=i instanceof Error?i.message:"Unknown error loading terrain";a({isLoading:!1,error:e})}}},preloadFromNodes:async(a,n)=>{const t=function(a){const e=a.filter(a=>void 0!==a.latitude&&void 0!==a.longitude&&(0!==a.latitude||0!==a.longitude));if(0===e.length)return null;let n=1/0,t=-1/0,o=1/0,r=-1/0;for(const s of e)n=Math.min(n,s.latitude),t=Math.max(t,s.latitude),o=Math.min(o,s.longitude),r=Math.max(r,s.longitude);return{minLat:n-rb,maxLat:t+rb,minLng:o-rb,maxLng:r+rb}}(a);t&&await e().loadTerrain(t,n)},clearTerrain:()=>{a({terrainGrid:null,cachedBounds:null,lastLoadedAt:null,error:null})},setTerrainDisambiguationEnabled:e=>{a({terrainDisambiguationEnabled:e})},getTerrainGridForDisambiguation:()=>{const a=e();return a.terrainDisambiguationEnabled?a.terrainGrid:null}})),db="pymc-stealth-location";function ub(a){if("undefined"!=typeof window)try{localStorage.setItem(db,JSON.stringify(a))}catch{}}function hb(a){return!isNaN(a)&&a>=-90&&a<=90}function mb(a){return!isNaN(a)&&a>=-180&&a<=180}const pb=function(){if("undefined"==typeof window)return{};try{const a=localStorage.getItem(db);if(!a)return{};const e=JSON.parse(a);if("number"==typeof e.latitude&&"number"==typeof e.longitude&&"boolean"==typeof e.enabled&&hb(e.latitude)&&mb(e.longitude))return e}catch{}return{}}(),gb=w((a,e)=>({latitude:pb.latitude??null,longitude:pb.longitude??null,enabled:pb.enabled??!1,setLocation:(n,t)=>{hb(n)&&mb(t)&&(a({latitude:n,longitude:t}),ub({latitude:n,longitude:t,enabled:e().enabled}))},enable:()=>{const{latitude:n,longitude:t}=e();null!==n&&null!==t&&(a({enabled:!0}),ub({latitude:n,longitude:t,enabled:!0}))},disable:()=>{a({enabled:!1});const{latitude:n,longitude:t}=e();null!==n&&null!==t&&ub({latitude:n,longitude:t,enabled:!1})},clear:()=>{a({latitude:null,longitude:null,enabled:!1}),function(){if("undefined"!=typeof window)try{localStorage.removeItem(db)}catch{}}()},getEffectiveLocation:()=>{const{latitude:a,longitude:n,enabled:t}=e();return t&&null!==a&&null!==n?{latitude:a,longitude:n}:null},isActive:()=>{const{latitude:a,longitude:n,enabled:t}=e();return t&&null!==a&&null!==n}}));function bb(a,e,n,t){return!e&&t>=3?"offline":n?"connected"!==a&&e||t>0&&t<3?"degraded":"connected":"offline"}const fb=w((a,e)=>({wsState:"disconnected",wsReconnectAttempt:0,restHealthy:!0,lastSuccessfulFetch:null,consecutiveFailures:0,authValid:!0,authExpiresIn:null,health:"connected",bannerDismissed:!1,isInitializing:!0,initialize:()=>{eb.onConnectionChange((n,t)=>{const{restHealthy:o,authValid:r,consecutiveFailures:s,health:i,isInitializing:l}=e(),c=l&&"connected"===n,d=bb(n,o,r,s);a({wsState:n,wsReconnectAttempt:t??0,health:d,isInitializing:!c&&l,bannerDismissed:(d===i||"connected"!==d)&&e().bannerDismissed})}),e().updateAuthState(),setTimeout(()=>{e().isInitializing&&a({isInitializing:!1})},1e4),setInterval(()=>{e().updateAuthState()},3e4)},updateRestHealth:n=>{const{wsState:t,authValid:o,consecutiveFailures:r,health:s}=e(),i=n?0:r+1,l=n||i<3,c=n?Date.now():e().lastSuccessfulFetch,d=bb(t,l,o,i);a({restHealthy:l,lastSuccessfulFetch:c,consecutiveFailures:i,health:d,bannerDismissed:"connected"!==d&&d===s&&e().bannerDismissed})},updateAuthState:()=>{const n=dg()&&!hg(),t=mg(),{wsState:o,restHealthy:r,consecutiveFailures:s,health:i}=e(),l=bb(o,r,n,s);a({authValid:n,authExpiresIn:t>0?t:null,health:l,bannerDismissed:l===i&&e().bannerDismissed})},dismissBanner:()=>{a({bannerDismissed:!0})}})),yb=new class{constructor(){t(this,"worker",null),t(this,"isReady",!1),t(this,"pendingRequests",[]),t(this,"currentRequest",null),this.initWorker()}initWorker(){if("undefined"!=typeof window)try{this.worker=new Worker(new URL("/assets/decryption.worker-Cwma4a6C.js",import.meta.url),{type:"module"}),this.worker.onmessage=this.handleMessage.bind(this),this.worker.onerror=a=>{}}catch(a){}}handleMessage(a){var e,n,t,o;const r=a.data;switch(r.type){case"ready":this.isReady=!0,this.processNextRequest();break;case"progress":(null==(e=this.currentRequest)?void 0:e.onProgress)&&this.currentRequest.onProgress(r.processed,r.total);break;case"result":(null==(n=this.currentRequest)?void 0:n.onResult)&&this.currentRequest.onResult(r.result);break;case"results":if(null==(t=this.currentRequest)?void 0:t.onResults)this.currentRequest.onResults(r.results);else if(null==(o=this.currentRequest)?void 0:o.onResult)for(const a of r.results)this.currentRequest.onResult(a);break;case"batchComplete":this.currentRequest&&(this.currentRequest.onBatchComplete(r.successCount,r.totalCount,r.computeTimeMs),this.currentRequest=null),this.processNextRequest();break;case"error":this.currentRequest&&(this.currentRequest.onBatchComplete(0,0,0),this.currentRequest=null),this.processNextRequest()}}processNextRequest(){if(!this.isReady||!this.worker||this.currentRequest)return;const a=this.pendingRequests.shift();if(!a)return;this.currentRequest={onProgress:a.onProgress,onResult:a.onResult,onResults:a.onResults,onBatchComplete:a.onBatchComplete};const e={type:"decrypt",packets:a.packets,knownKey:a.knownKey};this.worker.postMessage(e)}decrypt(a,e){return new Promise(n=>{const t=a.map(a=>({packet_hash:a.packet_hash,raw_packet:a.raw_packet||"",timestamp:a.timestamp??0,rssi:a.rssi,snr:a.snr,type:a.type,payload_type:a.payload_type}));this.pendingRequests.push({packets:t,knownKey:null==e?void 0:e.knownKey,onProgress:null==e?void 0:e.onProgress,onResults:null==e?void 0:e.onResults,onResult:null==e?void 0:e.onResult,onBatchComplete:(a,e,t)=>{n({successCount:a,totalCount:e,computeTimeMs:t})}}),this.processNextRequest()})}isServiceReady(){return this.isReady}isProcessing(){return null!==this.currentRequest}getPendingCount(){return this.pendingRequests.length}pause(){if(this.worker){const a={type:"pause"};this.worker.postMessage(a)}}resume(){if(this.worker){const a={type:"resume"};this.worker.postMessage(a)}}terminate(){if(this.worker){const a={type:"stop"};this.worker.postMessage(a),this.worker.terminate(),this.worker=null}this.isReady=!1,this.pendingRequests=[],this.currentRequest=null}},vb=3,wb=2,kb=15,xb=6,jb=3,zb=0,Cb=1,Ab=2,Db=3,Eb={[zb]:"T_FLOOD",[Cb]:"FLOOD",[Ab]:"DIRECT",[Db]:"T_DIRECT"},Bb=0,Fb=1,qb=2,Sb=3,Mb=4,Tb=5,Pb=6,Lb=7,Rb=8,Nb=9,Ib=10,_b=11,Vb=15,Ob={REQ:0,RESPONSE:1,ADVERT:4,GRP_TXT:5,GRP_DATA:6,ANON_REQ:7,TRACE:9},$b={[Bb]:"REQ",[Fb]:"RESPONSE",[qb]:"TXT_MSG",[Sb]:"ACK",[Mb]:"ADVERT",[Tb]:"GRP_TXT",[Pb]:"GRP_DATA",[Lb]:"ANON_REQ",[Rb]:"PATH",[Nb]:"TRACE",[Ib]:"MULTIPART",[_b]:"CONTROL",[Vb]:"RAW_CUSTOM"},Wb=1,Ub=32,Hb=64,Yb=64,Gb=4,Kb=1,Xb=2,Jb=3,Zb=4,Qb=16,af=128,ef=15;function nf(a){return 1===a||0===a}function tf(a){return 2===a||3===a}function of(a){return 0===a||3===a}function rf(a){const e=[];switch(15&a){case 1:e.push("is companion");break;case 2:e.push("is repeater");break;case 3:e.push("is room server");break;case 4:e.push("is sensor")}return 16&a&&e.push("has location"),32&a&&e.push("has feature 1"),64&a&&e.push("has feature 2"),128&a&&e.push("has name"),e.join(", ")||"none"}function sf(a){return Eb[a]??`UNKNOWN(${a})`}function lf(a){return $b[a]??`UNKNOWN(${a})`}function cf(a){const e=a.replace(/^0x/i,"").replace(/\s/g,"");if(e.length%2!=0)throw new Error("Invalid hex string: odd number of characters");const n=new Uint8Array(e.length/2);for(let t=0;ta.toString(16).padStart(2,"0")).join("");return e&&(t=t.toUpperCase()),n&&(t="0x"+t),t}function uf(a,e=!0){const n=(255&a).toString(16).padStart(2,"0");return e?n.toUpperCase():n}function hf(a,e,n,t){if(a+e>n)throw new Error(t)}function mf(a){if(a>256)throw new Error(`payload too large: ${a} > 256`)}function pf(){return"undefined"!=typeof crypto&&void 0!==crypto.subtle&&"function"==typeof crypto.subtle.digest}const gf=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),bf=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function ff(a,e){return(a>>>e|a<<32-e)>>>0}function yf(a,e){let n=a[0],t=a[1],o=a[2],r=a[3],s=a[4],i=a[5],l=a[6],c=a[7];for(let d=0;d<64;d++){if(d>=16){const a=ff(e[d-15&15],7)^ff(e[d-15&15],18)^e[d-15&15]>>>3,n=ff(e[d-2&15],17)^ff(e[d-2&15],19)^e[d-2&15]>>>10;e[15&d]=e[15&d]+a+e[d-7&15]+n>>>0}const a=c+(ff(s,6)^ff(s,11)^ff(s,25))+(s&i^~s&l)+gf[d]+e[15&d]>>>0,u=n&t^n&o^t&o;c=l,l=i,i=s,s=r+a>>>0,r=o,o=t,t=n,n=a+((ff(n,2)^ff(n,13)^ff(n,22))+u>>>0)>>>0}a[0]=a[0]+n>>>0,a[1]=a[1]+t>>>0,a[2]=a[2]+o>>>0,a[3]=a[3]+r>>>0,a[4]=a[4]+s>>>0,a[5]=a[5]+i>>>0,a[6]=a[6]+l>>>0,a[7]=a[7]+c>>>0}function vf(a){const e=new Uint32Array(bf),n=new Uint32Array(16),t=8*a.length,o=a.length+9+63&-64,r=new Uint8Array(o);r.set(a),r[a.length]=128;const s=new DataView(r.buffer);s.setUint32(o-4,t,!1);for(let c=0;c>=1}return n}function Cf(a){let e=a[13];a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=e,e=a[2],a[2]=a[10],a[10]=e,e=a[6],a[6]=a[14],a[14]=e,e=a[3],a[3]=a[7],a[7]=a[11],a[11]=a[15],a[15]=e}function Af(a){for(let e=0;e<16;e++)a[e]=xf[a[e]]}function Df(a,e){for(let n=0;n<16;n++)a[n]^=e[n]}function Ef(a){for(let e=0;e<4;e++){const n=4*e,t=a[n],o=a[n+1],r=a[n+2],s=a[n+3];a[n]=zf(14,t)^zf(11,o)^zf(13,r)^zf(9,s),a[n+1]=zf(9,t)^zf(14,o)^zf(11,r)^zf(13,s),a[n+2]=zf(13,t)^zf(9,o)^zf(14,r)^zf(11,s),a[n+3]=zf(11,t)^zf(13,o)^zf(9,r)^zf(14,s)}}function Bf(a,e){const n=new Uint8Array(a);Df(n,e[10]);for(let t=9;t>=1;t--)Cf(n),Af(n),Df(n,e[t]),Ef(n);return Cf(n),Af(n),Df(n,e[0]),n}function Ff(a,e){const n=function(a){const e=[],n=new Uint8Array(176);n.set(a.slice(0,16));for(let t=16;t<176;t+=4){let a=n[t-4],e=n[t-3],o=n[t-2],r=n[t-1];if(t%16==0){const n=a;a=kf[e]^jf[t/16-1],e=kf[o],o=kf[r],r=kf[n]}n[t]=n[t-16]^a,n[t+1]=n[t-15]^e,n[t+2]=n[t-14]^o,n[t+3]=n[t-13]^r}for(let t=0;t<11;t++)e.push(n.slice(16*t,16*(t+1)));return e}(a),t=new Uint8Array(e.length);for(let o=0;o>>0}function Tf(a,e){return a[e]|a[e+1]<<8}function Pf(a,e){return(a[e]|a[e+1]<<8|a[e+2]<<16|a[e+3]<<24)>>>0}function Lf(a,e,n){e[n]=255&a,e[n+1]=a>>8&255}function Rf(a){return(a instanceof Uint8Array?Array.from(a):a).map(a=>uf(a,!0)).join("->")}const Nf=["10-de-abril","100-mile-house","100milehouse","10deabril","18-de-marzo","18demarzo","1da","1dm","1mh","1ra-seccion-de-izapa","1rasecciondeizapa","1sdi","2da-seccion-de-medio-monte","2dasecciondemediomonte","31-de-octubre","31deoctubre","3do","a1s","aa","aac","aacg","aala","ab","abac","abala","abasolo","abasolo-del-valle","abasolodelvalle","abbeville","abbeydale","abbotsford","abbottstown","abdenago-c-garcia","abdenagocgarcia","abelardo-l-rodriguez","abelardolrodriguez","aberdeen","aberdeen-proving-ground","aberdeenprovingground","abernathy","abilene","abingdon","abington","abita-springs","abitasprings","abram","abrevadero","abs","absarokee","absecon","abts","ac","ac2s","ac3s","acachapanycolmena3raseccion","acachuen","acacoyagua","academy-garden","academygarden","acadia","acahuasco","acahuizotla","acajete","acala","acalanes-ridge","acalanesridge","acalco","acalpican-de-morelos","acalpicandemorelos","acambaro","acambay","acamilpa","acamixtla","acanceh","acapetahua","acapetlahuaya","acaponeta","acapulco-de-juarez","acapulcodejuarez","acatempa","acatempan","acatepec","acatic","acatla","acatlan","acatlan-de-juarez","acatlan-de-osorio","acatlan-de-perez-figueroa","acatlandejuarez","acatlandeosorio","acatlandeperezfigueroa","acatzingo","acatzingoacatzingodelapiedra","acaxochitlan","acaxtlahuacandealbinozertuche","acayuca","acayucan","acazonica","accokeek","accomac","acg","ach","achichipico","achotal-de-moreno","achotaldemoreno","ackerman","ackley","aclc","acm","acme","acoapa","acolman-de-netzahualcoyotl","acolmandenetzahualcoyotl","aconchi","acontitla","acopinalco-del-penon","acopinalcodelpenon","acoxcatlan","acoyotla","acres-green","acresgreen","act","acteopan","actipan","actipan-de-morelos","actipandemorelos","acton","acton-vale","actonvale","actopan","acuaco","acuamanala","acuexcomac","acuitlapan","acuitlapilco","acuitzio-del-canje","acuitziodelcanje","acula","aculco-de-espinoza","aculcodeespinoza","acultzingo","acushnet","acushnet-center","acushnetcenter","acworth","acxotla-del-monte","acxotla-del-rio","acxotladelmonte","acxotladelrio","ad","ada","adairsville","adams","adams-center","adams-morgan","adamscenter","adamsmorgan","adamstown","adamsville","adaz","adb","adc","addis","addison","ade","adel","adelanto","adelphi","adf","adg","adh","adi","adj","adjuntas-del-rio","adjuntasdelrio","adlf","adli","adll","adlm","adlr","adlu","adm","admu","adn","ado","adolfo-lopez-mateos","adolfo-moreno","adolfo-ruiz-cortines","adolfolopezmateos","adolfolopezmateoseltamarindo","adolfomoreno","adolforuizcortines","adp","adpf","adq","adr","adrian","ads","adst","adstock","adt","aduana-del-sasabe","aduanadelsasabe","adv","advance","adwolf","adz","ae","aea","aeb","aeg","af","afa","affton","afton","ag","agassiz","agawam","agb","agcv","aggf","agiabampo-uno","agiabampouno","agincourt-north","agincourt-south-malvern-west","agincourtnorth","agincourtsouthmalvernwest","agostitlan","agoura","agoura-hills","agourahills","agricola-lazaro-cardenas","agricolalazarocardenas","agronomos-mexicanos","agronomosmexicanos","agu","agua-azul","agua-blanca","agua-blanca-serrania","agua-buena","agua-caliente","agua-del-espino","agua-dulce","agua-escondida","agua-fria","agua-gorda","agua-nueva","agua-prieta","agua-senora","agua-verde","agua-zarca","aguaazul","aguablanca","aguablancaserrania","aguabuena","aguacaliente","aguacalientegrandedegastelum","aguacatenango","aguadelespino","aguadulce","aguaescondida","aguafria","aguagorda","agualeguas","aguanga","aguanueva","aguaprieta","aguas-blancas","aguas-buenas","aguas-calientes","aguasblancas","aguasbuenas","aguascalientes","aguasenora","aguaverde","aguazarca","aguilera","aguililla","agustin-de-iturbide","agustindeiturbide","agv","ah","aha","ahlv","ahome","ahoskie","ahtanum","ahuacachahue-ndogyo-itun-tichi","ahuacachahuendogyoituntichi","ahuacatan","ahuacatitlan","ahuacatlan","ahuacatlan-de-guadalupe","ahuacatlandeguadalupe","ahuacuotzingo","ahuajutla","ahualulco-de-mercado","ahualulco-del-sonido-trece","ahualulcodelsonidotrece","ahualulcodemercado","ahuatempan","ahuateno","ahuatepec","ahuatepec-de-camino","ahuatepec-pueblo","ahuatepecdecamino","ahuatepecpueblo","ahuatitla","ahuatlan","ahuaxintitla","ahuazotepec","ahuehuepan","ahuehuetitla","ahuehuetitlan","ahuehuetzingo","ahuehueyo-primero-centro","ahuehueyoprimerocentro","ahuexotitlan","ahueyahualco","ahuihuiyuco","ahuimanu","ahuiran","ahuisculco","ahuntsic-cartierville","ahuntsiccartierville","ahwahnee","ahwatukee-foothills","ahwatukeefoothills","ai","aiea","aiea-heights","aieaheights","aiken","aina-haina","aina-haina-hawaii-loa-ridge","ainahaina","ainahainahawaiiloaridge","ainaloa","ainsworth","air-force-academy","airdrie","airforceacademy","airmont","airville","airway-heights","airwayheights","aitkin","aj","ajacuba","ajalpan","ajax","ajb","ajijic","ajilho","ajo","ajuchitlan","ajuchitlan-del-progreso","ajuchitlancito","ajuchitlandelprogreso","ajuno","ak","akil","akron","akumal","akutan","al","ala-moana","ala-moana-kakaako","alabama","alabaster","alachua","alafaya","alameda","alamo","alamo-heights","alamoana","alamoanakakaako","alamogordo","alamoheights","alamos","alamos-tepetitlan","alamosa","alamosa-east","alamosaeast","alamostepetitlan","alaquines","alaska","albanel","albany","albany-park","albanypark","albarradas","albemarle","albers","albert-lea","albert-parkradisson-heights","alberta","albertlea","alberto-carrera-torres","albertocarreratorres","alberton","albertparkradissonheights","albertson","albertville","albia","albion","alborada","alborada-jaltenco","alboradajaltenco","albuquerque","alburtis","alc","alcaraces","alchichica","alcholoa","alcoa","alcocer","alcozacan","alcozauca-de-guerrero","alcozaucadeguerrero","aldama","aldan","alden","aldergrove","aldergrove-east","aldergroveeast","alderson","alderton","alderwood","alderwood-manor","alderwoodmanor","aldine","aledo","alejo-gonzalez-bilbao","alejogonzalezbilbao","alewa-heights","alewaheights","alexander","alexander-city","alexandercity","alexandria","alexandria-bay","alexandriabay","alfajayucan","alfaro","alfonso-g-calderon-velarde","alfonso-moguel","alfonsogarzongranjasfamiliares","alfonsogcalderonpobladosiete","alfonsogcalderonvelarde","alfonsomoguel","alfred","alfredo-v-bonfil","alfredo-v-bonfil-chacampalco","alfredo-v-bonfil-siete-ejidos","alfredovbonfil","alfredovbonfilchacampalco","alfredovbonfilsieteejidos","algoma","algona","algonac","algonquin","algood","alh","alhambra","alhuaca","alhuey","aliamanu-makai","aliamanu-mauka","aliamanumakai","aliamanumauka","aliamanusaltlakesfostervillage","alianza-real","alianzareal","alice","aliceville","alief","aliquippa","aliso-viejo","alisoviejo","alista","aljojuca","allapattah","allegan","allegany","allegheny-west","alleghenyville","alleghenywest","allen","allen-lane","allen-park","allendale","allende","allenlane","allenpark","allenstown","allentown","alliance","allison","allison-park","allisonpark","alliston","allouez","alloway","allston","allstonbrighton","allyn","alm","alma","almagres","almecatla","almedia","almolonga","almoloya","almoloya-de-alquisiras","almoloya-del-rio","almoloyadealquisiras","almoloyadelrio","almont","almonte","aloha","alondra-park","alondrapark","alorton","alotepec","alpatlahuac","alpaugh","alpena","alpha","alpharetta","alpine","alpoyeca","alpuyeca","alpuyecancingo-de-las-montanas","alpuyecancingodelasmontanas","alr","als","alsip","alstead","alt","alta","alta-sierra","altadena","altadore","altamira","altamira-de-zinaparo","altamiradezinaparo","altamirano","altamont","altamonte-springs","altamontesprings","altar","altasierra","altata","altavista","altepexi","alto","alto-lucero","altolucero","alton","alton-north-historical","altona","altonnorthhistorical","altoona","altotonga","alturas","altus","altus-bosques","altusbosques","altzayanca","alum-creek","alum-rock","alumcreek","alumrock","alva","alvarado","alvaro-obregon","alvaro-obregon-santa-cruz","alvaroobregon","alvaroobregonsantacruz","alvin","alvord","am","ama","amacueca","amacuitlapilco","amacuzac","amado-gomez","amado-nervo","amadogomez","amadonervo","amador","amagansett","amanalco-de-becerra","amanalcodebecerra","amapa","amarillo","amatan","amatenango-de-la-frontera","amatenango-del-valle","amatenangodelafrontera","amatenangodelvalle","amatepec","amatillo","amatitan","amatitlan","amatitlan-de-azueta","amatitlandeazueta","amatlan","amatlan-de-canas","amatlan-de-los-reyes","amatlan-de-quetzalcoatl","amatlandecanas","amatlandelosreyes","amatlandequetzalcoatl","amaxac-de-guerrero","amaxacdeguerrero","amayuca","amazcala","amberley","ambler","amboy","ambridge","amealco","ameca","amecameca","ameche","amelia","amelia-court-house","ameliacourthouse","ameluca","america-libre","americalibre","american-canyon","american-falls","american-fork","american-samoa","americancanyon","americanfalls","americanfork","americansamoa","americus","amery","ames","ames-lake","amesbury","ameslake","amesti","amherst","amherst-center","amherstburg","amherstcenter","amidon","amigo-beach","amigobeach","amilcingo","amite","amity","amity-gardens","amitygardens","amityville","amixtlan","amk","aml","ammon","amory","amos","amozoc-de-mota","amozocdemota","ampliacion-la-hincada","ampliacion-san-mateo","ampliacion-tezoyuca","ampliacionlahincada","ampliacionsanmateo","ampliaciontezoyuca","amqui","amsterdam","amuco-de-la-reforma","amucodelareforma","an","anacleto-canabal-2da-seccion","anacleto-canabal-3ra-seccion","anacletocanabal2daseccion","anacletocanabal3raseccion","anaconda","anacortes","anadarko","anaheim","anahola","anahuac","anamosa","ancaster","anchor-point","anchorage","anchorpoint","ancient-oaks","ancientoaks","andalusia","anderson","anderson-mill","andersonmill","andorra","andover","andres-quintana-roo","andresquintanaroo","andrews","andrews-afb","andrewsafb","anenecuilco","angahuan","angamacutiro-de-la-union","angamacutirodelaunion","ange-gardien","angegardien","angel-albino-corzo-guadalupe","angel-fire","angel-r-cabada","angelalbinocorzoguadalupe","angelfire","angelrcabada","angels-camp","angelscamp","angier","angleton","angola","angola-on-the-lake","angolaonthelake","angora","angostura","angus","angwin","anh","animas-trujano","animastrujano","anit","ankeny","anmore","ann-arbor","anna","anna-maria","annamaria","annandale","annapolis","annarbor","annetta","annex","anniston","annville","anoka","ansihuacuaro","anson","ansonia","ansted","antelope","antelope-valley-crestview","antelopevalleycrestview","anthem","anthony","antigo","antigonish","antiguo-morelos","antiguomorelos","antioch","antlers","anton","anton-lizardo","antonio-amaro","antonio-escobedo","antonio-j-bermudez","antonio-rosales","antonioamaro","antonioescobedo","antoniojbermudez","antoniorosales","antonlizardo","antrim","antunez","antunez-morelos","antunezmorelos","antwerp","anza","ao","aosc","aotl","aots","ap","apache","apache-junction","apachejunction","apalachicola","apalachin","apalani","apan","apango","apango-de-zaragoza","apangodezaragoza","apanteopan","apantla","apapantilla","apapataro","apas","apaseo-el-alto","apaseo-el-grande","apaseoelalto","apaseoelgrande","apatauyan","apatzingan","apaxco-de-ocampo","apaxcodeocampo","apaxtla-de-castrejon","apaxtladecastrejon","apazapan","apbf","apc","apeo","apetatitlan-antonio-carbajal","apetatitlanantoniocarbajal","apex","apg","aph","apipilulco","apison","apizaco","aplington","apo","apoala","apoderado","apollo","apollo-beach","apollobeach","apopka","aporo","apozol","appalachia","apple-creek","apple-mountain-lake","apple-valley","applecreek","applemountainlake","appleton","appleton-city","appletoncity","applevalley","applewood","applewood-park","applewoodpark","appling","appomattox","aptos","aptos-hills-larkin-valley","aptoshillslarkinvalley","apulco","aputzio-de-juarez","aputziodejuarez","aqr","aquebogue","aquia-harbour","aquiaharbour","aquila","aquiles-cordova-moran","aquiles-serdan","aquiles-serdan-1ra-seccion","aquiles-serdan-san-fernando","aquilescordovamoran","aquilesserdan","aquilesserdan1raseccion","aquilesserdansanfernando","aquismon","aquixtla","ar","arab","arabi","aragon","aramberri","arandas","aransas-pass","aransaspass","arantepacua","aranza","arapaho","arapahoe","araro","aratichanguio","arbolada-los-sauces","arboladalossauces","arboledas","arbolillo","arbour-lake","arbourlake","arbuckle","arbutus","arbutus-ridge","arbutusridge","arc","arcade","arcadia","arcanum","arcata","arcelia","arcelia-de-rodriguez","arceliaderodriguez","archbald","archbold","archdale","archer","archer-city","archer-lodge","archercity","archerlodge","archie","arcila","arcinas","arco","arcola","arden-arcade","arden-hills","arden-on-the-severn","ardenarcade","ardenhills","ardenonthesevern","ardmore","ardsley","arellano","arena-1ra-seccion","arena-6ta-seccion-la-bolsa","arena-de-hidalgo","arena1raseccion","arena6taseccionlabolsa","arenadehidalgo","arenal","arenal-santa-ana","arenaldealvarezarenaldepaco","arenalsantaana","arenas-valley","arenasvalley","argentine","argo","argos","argyle","arial","arimatea","ario-de-rayon","ario-de-rosales","arioderayon","arioderosales","aristocrat-ranchettes","aristocratranchettes","arivaca-junction","arivacajunction","arivechi","arizona","arizona-city","arizonacity","arizpe","arkadelphia","arkansas","arkansas-city","arkansascity","arkoma","arlington","arlington-heights","arlingtonheights","arma","armada","armadillo-de-los-infante","armadillodelosinfante","armona","armonk","armour","armstrong","arnaudville","arnett","arnold","arnold-line","arnoldline","arnolds-park","arnoldspark","arnprior","aromas","arriaga","arrochar","arroyo-choapam","arroyo-de-banco","arroyo-de-enmedio","arroyo-del-maiz-uno","arroyo-del-potrero","arroyo-grande","arroyo-granizo","arroyo-hondo","arroyo-hondo-abejonal","arroyo-limon","arroyo-palenque","arroyo-san-isidro","arroyo-seco","arroyo-vista-hermosa","arroyo-zapotillo","arroyochicalnuevoarroyochicali","arroyochoapam","arroyodebanco","arroyodeenmedio","arroyodelmaizuno","arroyodelpotrero","arroyogrande","arroyogranizo","arroyohondo","arroyohondoabejonal","arroyolimon","arroyopalenque","arroyos","arroyosanisidro","arroyoseco","arroyovistahermosa","arroyozapotillo","arteaga","artemio-trevino","artemiotrevino","artesia","arthur","articuloprimeroconstitucional","artondale","arturo-martinez-adame","arturomartinezadame","arundel","arvada","arvenza-uno","arvenzauno","arverne","arviat","arvin","as","as1s","asa","asbury","asbury-lake","asbury-park","asburylake","asburypark","ascencion","ascension","ash-flat","ash-grove","ashaway","ashburn","ashburnham","ashby","ashcroft","ashdown","asheboro","asherton","asheville","ashfield","ashflat","ashford","ashgrove","ashland","ashland-city","ashlandcity","ashley","ashmont","ashtabula","ashton","ashton-sandy-spring","ashtonsandyspring","ashville","ashwaubenon","asi","asientos","asm","asmw","asotin","aspen","aspen-hill","aspen-woods","aspenhill","aspenwoods","aspermont","aspinwall","ass","assf","assiniboia","assonet","assumption","astacinga","astapa","astatula","astor","astoria","asuncion-ixtaltepec","asuncion-nochixtlan","asuncion-ocotlan","asuncion-tlacolulita","asuncionixtaltepec","asuncionnochixtlan","asuncionocotlan","asunciontlacolulita","at","atacco","atacheo-de-regalado","atacheoderegalado","atalpan","atapan","atapaneo","atarasquillo","atarjea","atascadero","atascocita","atasta","atchison","atco","atecax","atemajac-de-brizuela","atemajacdebrizuela","atempan","atenango-del-rio","atenangodelrio","atencingo","atengo","atenguillo","atenxoxola","atequiza","atexcatzingo","atglen","athabasca","athena","athens","atherton","athol","aticama","atikokan","atil","atitalaquia","atizapan","atkins","atkinson","atla","atlacahualoya","atlacholoaya","atlacomulco-de-fabela","atlacomulcodefabela","atlahuilco","atlamajac","atlamajalcingo-del-rio","atlamajalcingodelrio","atlangatepec","atlanta","atlantic","atlantic-beach","atlantic-city","atlantic-highlands","atlantic-mine","atlanticbeach","atlanticcity","atlantichighlands","atlanticmine","atlantis","atlapexco","atlatlahucan","atlatongo","atlautla","atlequizayan","atliaca","atlixco","atlixtac","atlzayanca","atmore","atoka","atolinga","atoluca","atonalisco","atongo","atotonilco","atotonilco-de-tula","atotonilco-el-alto","atotonilco-el-bajo","atotonilco-el-grande","atotonilcodetula","atotonilcoelalto","atotonilcoelbajo","atotonilcoelgrande","atotonilquillo","atoyac","atoyac-de-alvarez","atoyacdealvarez","atoyatempan","attalla","attawapiskat","attica","attleboro","atwater","atwater-village","atwatervillage","atwood","atzacan","atzacoaloya","atzala","atzalan","atzingo","atzingo-la-cumbre","atzingolacumbre","atzitzintla","au","au-sable","auberry","aubrey","auburn","auburn-bay","auburn-gresham","auburn-hills","auburn-lake-trails","auburnbay","auburndale","auburngresham","auburnhills","auburnlaketrails","audubon","audubon-park","audubonpark","august","augusta","augusto-gomez-villanueva","augustogomezvillanueva","ault","ault-field","aultfield","aumsville","aurelio-manrique","aureliomanrique","aurora","aurora-ermita","aurora-esquipulas","auroraermita","auroraesquipulas","ausable","austell","austin","austintown","autan","autlan-de-navarro","autlandenavarro","av","ava","avalon","avb","avbc","avc","avenal","avenel","aventura","avenue-b-and-c","avenuebandc","averill-park","averillpark","avery-creek","averycreek","avh","avila-beach","avilabeach","avilla","avis","aviston","avoca","avocado-heights","avocadoheights","avon","avon-by-the-sea","avon-center","avon-lake","avon-park","avonbythesea","avoncenter","avondale","avondale-estates","avondaleestates","avonia","avonlake","avonpark","avra-valley","avravalley","aw","awendaw","axapusco","axaxacualco","axixintla","axochiapan","axochio","axotlan","axtla-de-terrazas","axtladeterrazas","axutla","axuxco","ayahualulco","ayapa","ayapango","ayden","ayer","aylmer","ayometitla","ayoquezco-de-aldama","ayoquezcodealdama","ayotitlan","ayotla","ayotlan","ayotoxco-de-guerrero","ayotoxcodeguerrero","ayotuxtla","ayotzinapa","ayotzintepec","ayr","ayutla","ayutla-de-los-libres","ayutladeloslibres","az","azalea-park","azaleapark","azcapotzalco","azilda","azle","azoyu","aztalan","aztec","azteca","aztlan","azumbilla","azusa","ba","babbitt","baborigame","babson-park","babsonpark","baburia","babylon","baca","bacabachi","bacabchen","bacadehuachi","bacalar","bacame-nuevo","bacamenuevo","bacanora","bacerac","bachajon","bachigualatito","bachiniva","bachoco","bachomobampo-numero-dos","bachomobamponumerodos","back-bay","back-mountain","back-of-the-hill","backbay","backmountain","backofthehill","bacliff","bacoachi","bacobampo","bacorehuis","bacubirito","bacum","bad-axe","badaxe","baden","badger","badin","badiraguato","baea","bafb","bagdad","bagley","bagojo-colectivo","bagojocolectivo","bahia-asuncion","bahia-de-kino","bahia-de-lobos","bahia-tortugas","bahiaasuncion","bahiadekino","bahiadelobos","bahiatortugas","bahuichivo","baidland","baie-comeau","baie-durfe","baie-saint-paul","baie-ste-anne","baiecomeau","baiedurfe","baiesaintpaul","baiesteanne","bailey","baileys-crossroads","baileyscrossroads","bainbridge","bainbridge-island","bainbridgeisland","baird","baiting-hollow","baitinghollow","baj","baja-california","baja-california-sur","bajacalifornia","bajacaliforniasur","bajio-de-bonillas","bajio-de-san-jose","bajio-de-san-nicolas","bajiodebonillas","bajiodesanjose","bajiodesannicolas","bajos-de-chila","bajos-del-ejido","bajosdechila","bajosdelejido","bajucu","baker","baker-city","baker-island","bakercity","bakerisland","bakersfield","bakerstown","bakersville","bal-harbour","bala-cynwyd","balacynwyd","balancan","balch-springs","balchsprings","balcones-heights","balconesheights","bald-knob","baldknob","baldwin","baldwin-city","baldwin-harbor","baldwin-park","baldwincity","baldwinharbor","baldwinpark","baldwinsville","baldwinville","baldwyn","balfour","balharbour","ball","ball-ground","ballantrae","ballard","ballenger-creek","ballengercreek","balleza","ballground","ballinger","ballplay","balls-creek","ballscreek","ballston-lake","ballston-spa","ballstonlake","ballstonspa","ballville","ballwin","bally","balm","balmville","balsam-lake","balsamlake","baltic","baltimore","baltimore-highlands","baltimorehighlands","bamberg","bamoa","ban","banamichi","banbury-don-mills","banburydonmills","banco-nacional","banconacional","bancroft","bandera","banderas","banderas-del-aguila","banderasdelaguila","banderasguatacalca2daseccion","banderilla","bandon","banff","banff-trail","banfftrail","bangandho","bangor","bangor-trident-base","bangortridentbase","bangs","banks","banks-springs","bankssprings","bankview","banner-elk","banner-hill","bannerelk","bannerhill","banning","bannockburn","banus-vallarta-verde-vallarta","banusvallartaverdevallarta","bar-harbor","bar-nunn","bara-de-chachalacas","baraboo","baradechachalacas","baraga","barataria","barberton","barbourmeade","barboursville","barbourville","bardonia","bardstown","bardwell","bargersville","barharbor","bariometo","barker-heights","barkerheights","barling","barnegat","barnes-lake-millers-lake","barnesboro","barneslakemillerslake","barnesville","barneveld","barnhart","barnsdall","barnstable","barnstead","barnum-island","barnumisland","barnunn","barnwell","barra-de-cazones","barra-de-navidad","barra-de-tecoanapa","barrackville","barradecazones","barradenavidad","barradetecoanapa","barrancas","barrancas-y-amate-3ra-seccion","barrancasyamate3raseccion","barraute","barre","barretal","barretos","barrett","barrhead","barrie","barriere","barrington","barrington-hills","barringtonhills","barrio-aztlan","barrio-bordo-nuevo","barrio-chiquichuca","barrio-cuarto-la-loma","barrio-de-boyecha","barrio-de-canales","barrio-de-centro-del-cerrillo","barrio-de-ensido","barrio-de-espana","barrio-de-guadalupe","barrio-de-la-barranca","barrio-de-mexico","barrio-de-nuevo-leon","barrio-de-puentecillas","barrio-de-san-isidro","barrio-de-san-juan","barrio-de-san-miguel","barrio-de-san-ramon","barrio-del-cajon","barrio-el-boncho","barrio-el-vivero","barrio-la-joya","barrio-la-teneria","barrio-los-tules","barrio-nuevo","barrio-nuevo-de-los-muertos","barrio-san-diego","barrio-san-joaquin-el-junco","barrio-san-miguel-dorami","barrio-santa-cruz","barrio-tlatenco","barrioaztlan","barriobordonuevo","barriochiquichuca","barriocuartolaloma","barriodeboyecha","barriodecanales","barriodecentrodelcerrillo","barriodeensido","barriodeespana","barriodeguadalupe","barriodejesusfraccionprimera","barriodelabarranca","barriodelcajon","barriodemexico","barriodenuevoleon","barriodepuentecillas","barriodesanisidro","barriodesanjuan","barriodesanmiguel","barriodesanpedrolacabecera","barriodesanramon","barrioelboncho","barrioelvivero","barriolajoya","barriolateneria","barriolostules","barrionuevo","barrionuevodelosmuertos","barriosandiego","barriosanjoaquineljunco","barriosanmigueldorami","barriosantacruz","barriotlatenco","barron","barry","barryville","barstow","barstow-heights","barstowheights","bartlesville","bartlett","barton","barton-creek","bartoncreek","bartonsville","bartonville","bartow","bartram-village","bartramvillage","barview","bas","basalt","basaseachic","basconcobe","basehor","basi","basile","basin","basin-city","basincity","basking-ridge","baskingridge","bass-lake","bassano","bassett","basslake","bastrop","basuchil","basye","batavia","batchelor","batesburg","batesburg-leesville","batesburgleesville","batesville","bath","bath-beach","bathbeach","bathurst","bathurst-manor","bathurstmanor","baton-rouge","batonrouge","batopilasdemanuelgomezmorin","battery-park-city","batteryparkcity","battle-creek","battle-ground","battle-mountain","battlecreek","battlefield","battleground","battlement-mesa","battlementmesa","battlemountain","baudette","bautista-chico","bautistachico","baviacora","bavispe","bawcomville","baxley","baxter","baxter-estates","baxter-springs","baxterestates","baxtersprings","bay","bay-city","bay-harbor","bay-harbor-islands","bay-hill","bay-minette","bay-park","bay-pines","bay-point","bay-roberts","bay-saint-louis","bay-shore","bay-springs","bay-st-george-south","bay-street-corridor","bay-village","bay-wood","bayard","bayboro","baychester","baycity","bayfield","bayharbor","bayharborislands","bayhill","bayminette","bayonet-point","bayonetpoint","bayonne","bayou-boeuf","bayou-cane","bayou-gauche","bayou-la-batre","bayou-vista","bayouboeuf","bayoucane","bayougauche","bayoulabatre","bayouvista","baypark","baypines","baypoint","bayport","bayroberts","baysaintlouis","bayshore","bayshore-gardens","bayshoregardens","bayside","baysprings","baystgeorgesouth","baystreetcorridor","baytown","bayview","bayview-village","bayview-woods-steeles","bayviewvillage","bayviewwoodssteeles","bayvillage","bayville","baywood","bb","bbc","bbds","bbl","bbn","bc","bcc","bck","bcll","bcn","bcs","bd","bda","bdb","bdbj","bdc","bde","bdf","bdg","bdj","bdk","bdl","bdla","bdlb","bdlm","bdlp","bdm","bdn","bdnl","bdo","bdp","bdr","bds","bdsi","bdsj","bdsm","bdsn","bdsp","bdsr","bdt","bdz","be","beach","beach-city","beach-haven","beach-haven-west","beach-park","beachcity","beachhaven","beachhavenwest","beachpark","beachwood","beacon","beacon-hill","beacon-square","beaconhill","beaconsfield","beaconsquare","beale-air-force-base","bealeairforcebase","bealeton","bean-station","beanstation","bear","bear-creek","bear-rocks","bear-valley-springs","bearcreek","beardstown","bearrocks","bearvalleysprings","beatrice","beatty","beattystown","beattyville","beauceville","beaufort","beauharnois","beaumont","beaupre","beausejour","beaver","beaver-city","beaver-dam","beaver-dam-lake","beaver-falls","beavercity","beavercreek","beaverdale","beaverdam","beaverdam-lake-salisbury-mills","beaverdamlake","beaverdamlakesalisburymills","beaverfalls","beaverlodge","beaverton","beb","becal","becanchen","becancour","beckemeyer","becker","becket","beckett","beckett-ridge","beckettridge","beckley","beddington-heights","beddingtonheights","bedford","bedford-heights","bedford-hills","bedford-park-nortown","bedfordheights","bedfordhills","bedfordparknortown","bedminster","bee-cave","bee-ridge","beebe","beecave","beech-grove","beech-mountain-lakes","beechborough-greenbrook","beechboroughgreenbrook","beecher","beechgrove","beechmountainlakes","beechwood","beechwood-trails","beechwood-village","beechwoodtrails","beechwoodvillage","beeridge","beeville","beggs","behchoko","bejucal-de-ocampo","bejucaldeocampo","bejucos","bel-air","bel-air-north","bel-air-south","bel-nor","bel-ridge","belair","belairnorth","belairsouth","belchertown","belcourt","belding","belem","belen","belen-atzitzimititlan","belen-del-refugio","belenatzitzimititlan","belendelrefugio","belfair","belfast","belfield","belford","belgium","belgrade","belhaven","belington","belisario-dominguez","belisariodominguez","bell","bell-acres","bell-gardens","bell-road-historical","bella-esperanza","bella-vista","bella-vista-del-rio","bellacres","bellaesperanza","bellair-meadowbrook-terrace","bellaire","bellairmeadowbrookterrace","bellas-fuentes","bellasfuentes","bellavista","bellavistadelrio","bellbrook","belle","belle-chasse","belle-fourche","belle-glade","belle-glade-camp","belle-harbor","belle-haven","belle-isle","belle-meade","belle-plaine","belle-rose","belle-vernon","belleair","belleair-beach","belleair-bluffs","belleairbeach","belleairbluffs","bellechasse","bellefontaine","bellefontaine-neighbors","bellefontaineneighbors","bellefonte","bellefourche","belleglade","bellegladecamp","belleharbor","bellehaven","belleisle","bellemeade","belleplaine","bellerose","bellerose-terrace","belleroseterrace","bellevernon","belleview","belleville","bellevue","bellflower","bellgardens","bellingham","bellmawr","bellmead","bellmore","bellows-falls","bellowsfalls","bellport","bellroadhistorical","bells","bells-corners","bellscorners","bellview","bellville","bellwood","belmar","belmond","belmont","belmont-cragin","belmont-estates","belmontcragin","belmontestates","belnor","beloeil","beloit","belpre","belridge","beltline","belton","beltsville","belvedere","belvedere-park","belvederepark","belvidere","belville","belzoni","bement","bemidji","bemis","ben-avon","ben-lomond","benavides","benavon","benbrook","bend","bendale","benemerito-de-las-americas","benemerito-juarez","benemeritodelasamericas","benemeritojuarez","benicia","benito-garcia-el-zorrillo","benito-gonzalez","benito-juarez","benito-juarez-ii-san-martin","benito-juarez-la-playita","benito-juarez-uno","benito-juarez-vinateria","benitogarciaelzorrillo","benitogonzalez","benitojuarez","benitojuareziisanmartin","benitojuarezlaplayita","benitojuarezuno","benitojuarezvinateria","benjamin","benjamin-hill","benjaminhill","benkelman","benld","benlomond","bennett","bennettsville","bennington","bennsville","bensalem","bensenville","bensley","benson","bensonhurst","bent-creek","bentcreek","bentleyville","benton","benton-city","benton-harbor","benton-heights","bentoncity","bentonharbor","bentonheights","bentonville","benwood","berea","beresford","bergen","bergen-beach","bergenbeach","bergenfield","berino","beristain","berkeley","berkeley-heights","berkeley-lake","berkeley-springs","berkeleyheights","berkeleylake","berkeleysprings","berkley","berkshire-heights","berkshireheights","berlin","bermejillo","bermuda-dunes","bermuda-run","bermudadunes","bermudarun","bernal","bernalillo","bernardston","bernardsville","berne","bernhards-bay","bernhardsbay","bernice","bernie","berrien-springs","berriensprings","berriozabal","berry","berry-creek","berrycreek","berryville","berthierville","berthoud","bertram","bertsch-oceanview","bertschoceanview","berwick","berwyn","berwyn-heights","berwynheights","bessemer","bessemer-city","bessemercity","betania","bethalto","bethania","bethany","bethany-beach","bethanybeach","bethel","bethel-acres","bethel-heights","bethel-island","bethel-park","bethelacres","bethelheights","bethelisland","bethelpark","bethesda","bethlehem","bethlehem-village","bethlehemvillage","bethpage","bettendorf","betulia","beulah","beulaville","bev","bevent","beverly","beverly-cove","beverly-hills","beverlycove","beverlyhills","bevil-oaks","beviloaks","bexar","bexley","bf","bfa","bfh","bg","bg2s","bgc","bgez","bh","bhb","bhi","bhs","bhv","bhw","bi","bicknell","biddeford","bienvenido","big-bass-lake","big-bear-city","big-bear-lake","big-beaver","big-bend","big-coppitt-key","big-flats","big-flats-airport","big-lake","big-park","big-pine","big-pine-key","big-rapids","big-river","big-rock","big-sandy","big-sky","big-spring","big-stone-gap","big-timber","bigbasslake","bigbearcity","bigbearlake","bigbeaver","bigbend","bigcoppittkey","bigflats","bigflatsairport","bigfork","biggar","biggs","biglake","biglerville","bigpark","bigpine","bigpinekey","bigrapids","bigriver","bigrock","bigsandy","bigsky","bigspring","bigstonegap","bigtimber","billerica","billings","billington-heights","billingtonheights","biloxi","biltmore-forest","biltmoreforest","binbrook","bingham-farms","binghamfarms","binghamton","biola","birch-bay","birch-run","birchbay","birchcliffe-cliffside","birchcliffecliffside","birchrun","birchwood","birchwood-lakes","birchwoodlakes","birdsboro","birmingham","bisbee","biscayne-park","biscaynepark","biscoe","bishop","bishopville","bismarck","bison","bithlo","bixby","bj","bjlp","bju","bjv","bk","bl","black-canyon-city","black-creek","black-diamond","black-earth","black-forest","black-jack","black-lick","black-mountain","black-point-green-point","black-river","black-river-falls","black-rock","blackcanyoncity","blackcreek","blackdiamond","blackearth","blackfalds","blackfoot","blackforest","blackhawk","blackjack","blacklick","blacklick-estates","blacklickestates","blackmountain","blackpointgreenpoint","blackriver","blackriverfalls","blackrock","blacksburg","blackshear","blackstone","blackville","blackwater","blackwell","blackwood","bladenboro","bladensburg","blades","blaine","blainville","blair","blairsville","blake-jones","blakejones","blakely","blanca-espuma","blancaespuma","blanchard","blanchester","blanco","bland","blanding","blandon","blasdell","blasillo1raseccionnicolasbravo","blauvelt","blawnox","blb","bledos","blennerhassett","bliss-corner","blisscorner","blissfield","blj","blml","bloomer","bloomfield","bloomfield-hills","bloomfieldhills","blooming-prairie","bloomingdale","bloomingprairie","bloomington","bloomsburg","blossburg","blossom","blossvale","blountstown","blountsville","blountville","blowing-rock","blowingrock","blsm","blt","blue-ash","blue-ball","blue-bell","blue-earth","blue-grass","blue-hills","blue-island","blue-lake","blue-mound","blue-point","blue-ridge","blue-springs","blueash","blueball","bluebell","blueearth","bluefield","bluegrass","bluehills","blueisland","bluelake","bluemound","bluepoint","blueridge","bluesprings","bluewater","bluewell","bluff-city","bluffcity","bluffdale","bluffton","blythe","blytheville","blythewood","bm","bmea","bml","bms","bmt","bn","bnd","bo","boalsburg","boardman","boaz","bobashi-de-guadalupe","bobashideguadalupe","boca-del-mar","boca-del-monte","boca-del-rio","boca-pointe","boca-raton","bocadelmar","bocadelmonte","bocadelrio","bocaneo-san-pedro","bocaneosanpedro","bocapointe","bocaraton","bocas","bochil","bochojbo-alto","bochojboalto","bocoyna","bodega-bay","bodegabay","bodfish","boerne","bogalusa","bogart","bogata","bogota","bohemia","bohners-lake","bohnerslake","boiling-spring-lakes","boiling-springs","boilingspringlakes","boilingsprings","bois-des-filion","boisbriand","boisdesfilion","boise","boise-city","boisecity","boissevain","bokeelia","bokoba","boles-acres","bolesacres","boley","bolinas","bolindale","boling","bolingbrook","bolivar","bolivar-peninsula","bolivarpeninsula","bolivia","bolon","bolonchen-de-rejon","bolonchenderejon","bolton","bomanxotha","bomintzha","bon-accord","bon-air","bon-aqua-junction","bonaccord","bonadelleranchosmaderaranchos","bonair","bonanza","bonaquajunction","bonaventure","bonavista","bondojito","bondsville","bonduel","bondurant","bonham","bonifacio-garcia","bonifacio-moreno-el-aguaje","bonifaciogarcia","bonifaciomorenoelaguaje","bonifay","bonita","bonita-springs","bonitasprings","bonne-terre","bonneau-beach","bonneaubeach","bonneauville","bonner-springs","bonner-west-riverside","bonners-ferry","bonnersferry","bonnersprings","bonnerwestriverside","bonneterre","bonney-lake","bonneylake","bonny-doon","bonnydoon","bonnyville","bono","bonsall","booker","boone","booneville","boonsboro","boonton","boonville","boothbay","boothbay-harbor","boothbayharbor","boothwyn","boquiapa","boquilla-de-las-perlas","boquilladelasperlas","boquillas","bordentown","bordo-blanco","bordoblanco","borger","boron","boronda","borough","borough-park","boroughpark","borrego-springs","borregosprings","boscawen","boscobel","boshindo","bosque-de-saloya","bosque-farms","bosquedesaloya","bosquefarms","bosques-de-la-magdalena","bosques-de-san-pedro","bosquesdelamagdalena","bosquesdesanpedro","bossier-city","bossiercity","boston","boston-heights","boston-seaport","bostonheights","bostonia","bostonseaport","boswell","boswells-corner","boswellscorner","both","bothell","bothell-east","bothell-west","bothelleast","bothellwest","botkins","bottineau","botwood","boucherville","bouctouche","boulder","boulder-city","boulder-creek","boulder-hill","bouldercity","bouldercreek","boulderhill","boulevard-gardens","boulevard-park","boulevardgardens","boulevardpark","bound-brook","boundbrook","bountiful","bourbon","bourbonnais","bourg","bourget","bourne","boutte","bovina","bow-bog","bow-island","bowbells","bowbog","bowdon","bowen-island","bowenisland","bowie","bowisland","bowleys-quarters","bowleysquarters","bowling-green","bowlinggreen","bowman","bowmansville","bowness","box-elder","boxasni","boxborough","boxelder","boxford","boyceville","boyd","boydton","boye","boyertown","boyes-hot-springs","boyeshotsprings","boyette","boyle-heights","boyleheights","boylston","boyne-city","boynecity","boynton-beach","boyntonbeach","bozeman","bp","bpc","bpgp","bpk","bpn","bq","br","bracebridge","bracey","brackenridge","brackettville","bradbury","braddock","braddock-heights","braddock-hills","braddockheights","braddockhills","bradenton","bradenton-beach","bradentonbeach","bradford","bradford-woods","bradfordwoods","bradley","bradley-beach","bradley-gardens","bradleybeach","bradleygardens","bradner","brady","braeside","braham","braidwood","brainerd","braintree","brambleton","brampton","branch","branchport","brandenburg","brandermill","brandon","brandywine","branford","branford-center","branfordcenter","branson","brant","brantford","braselton","brass-castle","brasscastle","bratenahl","brattleboro","bravo","brawley","bray","brazil","brazoria","brazos","brea","breakeyville","breaux-bridge","breauxbridge","breckenridge","breckenridge-hills","breckenridgehills","breckinridge-center","breckinridgecenter","brecksville","breese","breezy-point","breezypoint","breinigsville","bremen","bremerton","brenham","brent","brentwood","brentwood-estates","brentwoodestates","brer","bressler","bret-harte","bretharte","brevard","brewer","brewerton","brewerytown","brewster","brewster-hill","brewsterhill","brewton","brf","brh","briar","briar-hill-belgravia","briarcliff","briarcliff-manor","briarcliffmanor","briarhillbelgravia","briarwood","brice-prairie","briceprairie","brices-creek","bricescreek","brickerville","bridesburg","bridge-city","bridgecity","bridgehampton","bridgeport","bridgeton","bridgetown","bridgeview","bridgeville","bridgewater","bridgman","bridgton","bridlepathsunnybrookyorkmills","bridlewood","bridport","brielle","brier","brigantine","brigham-city","brighamcity","bright","brighton","brighton-beach","brighton-park","brightonbeach","brightonpark","brightwaters","brightwood","brilliant","brillion","brimfield","brinckerhoff","brinkley","brisas-barra-de-suchiate","brisas-de-zicatela","brisas-del-carrizal","brisasbarradesuchiate","brisasdelcarrizal","brisasdezicatela","brisbane","brisenas-de-matamoros","brisenasdematamoros","bristol","bristow","british-columbia","britishcolumbia","britt","brittany-farms-highlands","brittanyfarmshighlands","britton","brme","brmr","broad-channel","broad-creek","broad-ripple","broadalbin","broadchannel","broadcreek","broadlands","broadmoor","broadripple","broadus","broadview","broadview-heights","broadview-north","broadview-park","broadviewheights","broadviewnorth","broadviewpark","broadway","brock-hall","brockhall","brockport","brockton","brockville","brockway","brocton","brodhead","brodheadsville","brogden","broken-arrow","broken-bow","brokenarrow","brokenbow","bromont","bronson","bronx","bronxville","brook-farm","brook-highland","brook-park","brookdale","brookfarm","brookfield","brookfield-center","brookfieldcenter","brookhaven","brookhaven-amesbury","brookhavenamesbury","brookhighland","brookings","brookland","brooklawn","brooklet","brookline","brooklyn","brooklyn-center","brooklyn-heights","brooklyn-park","brooklyncenter","brooklynheights","brooklynpark","brookmont","brookneal","brookpark","brookridge","brooks","brookshire","brookside","brookside-village","brooksidevillage","brookston","brooksville","brooktrails","brookville","brookwood","broomall","broomfield","brossard","brothertown","broussard","broward","broward-estates","browardestates","brown-city","brown-deer","browncity","browndeer","brownfield","browning","brownlee-park","brownleepark","browns-lake","browns-mills","browns-point","brownsboro","brownsburg","brownsburg-chatham","brownsburgchatham","brownsfield","brownslake","brownsmills","brownspoint","brownstown","brownsville","browntown","brownville","brownwood","broxton","bruce","bruceton","bruceville-eddy","brucevilleeddy","brundidge","brunswick","brush","brush-fork","brush-prairie","brushfork","brushprairie","brushy-creek","brushycreek","brusly","brussels","bryan","bryans-road","bryansroad","bryant","bryn-athyn","bryn-mawr","bryn-mawr-skyway","brynathyn","brynmawr","brynmawrskyway","bryson-city","brysoncity","bs","bsa","bsc","bsd","bsg","bsgs","bsl","bsm","bsmd","bsp","bt","btb","buaysiacobe","buayums","bucerias","buchanan","buchanan-dam","buchanandam","buckeye","buckeye-lake","buckeyelake","buckeystown","buckfield","buckhall","buckhannon","buckhead-ridge","buckheadridge","buckhorn","buckingham","buckland","buckley","buckner","bucksport","buctzotz","bucyrus","buda","budd-lake","buddlake","bude","buechel","buellton","buen-retiro-el-retiro","buena","buena-park","buena-vista","buena-vista-1ra-seccion","buena-vista-apasco","buena-vista-de-la-salud","buena-vista-puxcatan","buenapark","buenaventura","buenaventura-lakes","buenaventuralakes","buenavista","buenavista-de-allende","buenavista-de-benito-juarez","buenavista-de-cortes","buenavista-de-cuellar","buenavista-de-juarez","buenavista-de-trujillo","buenavista-matasanos","buenavista-tetela","buenavista-tomatlan","buenavista1raseccion","buenavistaapasco","buenavistadeallende","buenavistadebenitojuarez","buenavistadecortes","buenavistadecuellar","buenavistadejuarez","buenavistadelasalud","buenavistadetrujillo","buenavistamatasanos","buenavistapuxcatan","buenavistatetela","buenavistatomatlan","buenos-aires","buenos-aires-san-isidro","buenosaires","buenosairessanisidro","buenretiroelretiro","buffalo","buffalo-grove","buffalo-historical","buffalogrove","buffalohistorical","buford","buhl","buhler","buies-creek","buiescreek","bull-run","bull-run-mountain-estates","bull-shoals","bull-valley","bullard","bullhead-city","bullheadcity","bullrun","bullrunmountainestates","bullshoals","bullvalley","bulverde","buna","bunche-park","bunchepark","bunk-foss","bunker-hill","bunker-hill-village","bunkerhill","bunkerhillvillage","bunkerville","bunkfoss","bunkie","bunnell","burbank","burford","burgaw","burgeo","burgettstown","burgos","burien","burkburnett","burke","burkesville","burleson","burley","burlingame","burlington","burnaby","burnet","burnettown","burney","burnham","burns","burns-flat","burns-harbor","burns-lake","burnsflat","burnsharbor","burnslake","burnsville","burnt-store-marina","burntstoremarina","burr-ridge","burrridge","burt","burton","burtonsville","burwell","bushland","bushnell","bushwick","bushyhead","bustamante","bustleton","butchers-hill","butchershill","butler","butler-beach","butlerbeach","butner","butte","buttonwillow","buxton","buzzards-bay","buzzardsbay","bv","bv1s","bva","bvdr","bvp","bvs","bvvv","bw","bwr","bws","byers","byesville","byhalia","bylas","byng","bynum","byram","byrdstown","byrnes-mill","byrnesmill","byron","byron-center","byroncenter","bystrom","c0","c1dm","c1ea","c1s","c1sj","c1sm","c2df","c2ds","c2s","c3dm","c41licenciadocarlosamadrazo","c5df","ca","caa","caao","cabano","cabazon","cabbagetown-south-stjames-town","cabbagetownsouthstjamestown","cabecera-de-indigenas","cabeceradeindigenas","cabeza-de-toro","cabezadetoro","cabezas","cabin-john","cabinjohn","cabo-san-lucas","cabool","cabosanlucas","cabot","cac","cacahoatan","cacahuatal","cacalchen","cacalomacan","cacalotan","cacalotenango","cacaloxuchitl","cacalutla","cacao","cacate","cache","cache-creek","cachecreek","cacm","cacouna","cactus","cactus-flat","cactusflat","caddo","caddo-mills","caddomills","cade","cadereyta","cadereyta-jimenez","cadereytajimenez","cadillac","cadiz","cadott","cafb","cag","cahaba-heights","cahabaheights","cahokia","cahuatache","caimanero","cairo","caja-de-agua","cajadeagua","cajahs-mountain","cajahsmountain","cajelitos","cajititlan","cajonos","cala-norte","cala-sur","calabasas","calabash","calais","calamanda","calanorte","calasur","calaveras","calcahualco","calcehtok","calcium","calcutta","calderitas","caldwell","caledon","caledonia","caledonia-fairbank","caledoniafairbank","calera","calera-chica","calerachica","caleras","caleras-de-ameche","calerasdeameche","caleria","calexico","calgary","calhoun","calhoun-city","calhoun-falls","calhouncity","calhounfalls","calichar-palma-sola","calicharpalmasola","calico-rock","calicorock","calido","caliente","califon","california","california-city","californiacity","calihuala","calimaya","calimesa","calipan","calipatria","calistoga","calixtlahuaca","calkini","callahan","callaway","calle-real","callender","callereal","calm","calmar","calmeca","caln","calnali","calotmul","calpaneria-atezquilla","calpaneriaatezquilla","calpulalpan","calt","caltimacan","caltzontzin","calumet","calumet-city","calumet-park","calumetcity","calumetpark","calvario-buenavista","calvario-del-carmen","calvariobuenavista","calvariodelcarmen","calvert","calvert-city","calvertcity","calverton","calverton-park","calvertonpark","calvillo","calzada-del-tepozan","calzada-larga","calzadadeltepozan","calzadalarga","calzadas","cam","camalotita","camalu","camanche","camano","camargo","camarillo","camaron-de-tejeda","camarondetejeda","camas","cambria","cambria-heights","cambriaheights","cambrian-heights","cambrian-park","cambrianheights","cambrianpark","cambridge","cambridge-bay","cambridge-city","cambridge-springs","cambridgebay","cambridgecity","cambridgeport","cambridgesprings","camden","camdenton","camelia-barrio-la-camelia","camelia-roja","cameliabarriolacamelia","cameliaroja","camembaro","cameron","cameron-park","cameron-park-colonia","cameronpark","cameronparkcolonia","camichin-de-jauja","camichindejauja","camilla","camillus","camino","camlachie","camocuautla","camotepec","camotinchan","camotlan-de-miraflores","camotlandemiraflores","camp","camp-hill","camp-hm-smith","camp-lake","camp-meeker","camp-pendleton-north","camp-pendleton-south","camp-point","camp-springs","camp-swift","camp-verde","campanario","campbell","campbell-river","campbellriver","campbellsport","campbellsville","campbellton","campbelltown","campeche","campestre-flamboyanes","campestre-tarimbaro","campestre-villas-del-alamo","campestreflamboyanes","campestretarimbaro","campestrevillasdelalamo","camphill","camphmsmith","campion","camplake","campmeeker","campo","campo-acosta","campo-balbuena","campo-carretero","campo-chico","campo-de-aguila","campo-grande","campo-la-arrocera","campo-pesquero-el-colorado","campo-real","campoacosta","campobalbuena","campocarretero","campochico","campodeaguila","campogrande","campolaarrocera","campopesqueroelcolorado","camporeal","camppendletonnorth","camppendletonsouth","camppoint","campsprings","campswift","campti","campton","campverde","camrose","cana","canaan","canada","canada-de-bustos","canada-de-caracheo","canada-de-cisneros","canada-de-guadarrama","canada-de-madero","canada-de-negros","canada-de-ramirez","canada-del-tabaco","canadadebustos","canadadecaracheo","canadadecisneros","canadadeguadarrama","canadadeltabaco","canadademadero","canadadenegros","canadaderamirez","canadas-de-obregon","canadasdeobregon","canadensis","canadian","canadian-lakes","canadianlakes","canajoharie","canal-fulton","canal-winchester","canalejas","canalfulton","canalwinchester","canandaigua","cananea","canarsie","canas","canastota","canatlan","canby","cancuc","cancun","candela","candelaria","candelaria-loxicha","candelaria-portezuelo","candelarialoxicha","candelariaportezuelo","candia","candiac","candler-mcafee","candlermcafee","cando","cane-savannah","canelas","canesavannah","caney","canfield","canisteo","canitas-de-felipe-pescador","canitasdefelipepescador","canmore","cannelton","cannon-air-force-base","cannon-beach","cannon-falls","cannonairforcebase","cannonbeach","cannonfalls","canoga-park","canogapark","canon-city","canoncity","canonsburg","canora","cansahcab","cantabria","cantamayec","cantera-de-villagran","canteradevillagran","canterbury","canterwood","cantinela","cantioc","cantley","canton","canton-las-delicias","canton-rancho-nuevo","canton-valley","canton-villaflor","cantonlasdelicias","cantonment","cantonranchonuevo","cantonvalley","cantonvillaflor","cantuna","canutillo","canyon","canyon-city","canyon-country","canyon-day","canyon-lake","canyon-meadows","canyon-rim","canyoncity","canyoncountry","canyonday","canyonlake","canyonmeadows","canyonrim","canyonville","cao","caobanal-1ra-seccion-mezcalapa","caobanal1raseccionmezcalapa","caobas","cap-chat","cap-sante","capac","capacho","capacuaro","caparroso","capchat","cape-canaveral","cape-carteret","cape-charles","cape-coral","cape-dorset","cape-girardeau","cape-may","cape-may-court-house","cape-neddick","cape-saint-claire","capecanaveral","capecarteret","capecharles","capecoral","capedorset","capegirardeau","capemay","capemaycourthouse","capeneddick","capesaintclaire","capilla-de-guadalupe","capilla-de-milpillas","capilladeguadalupe","capillademilpillas","capitan","capitol-heights","capitol-hill","capitola","capitolheights","capitolhill","capoluca","capreol","capron","capsante","captain-cook","captaincook","captains-cove","captainscove","capula","capulhuac-de-mirafuentes","capulhuacdemirafuentes","capulin","capulin-de-bustos","capulindebustos","caracuaro","carapan","caraway","carberry","carbo","carbon-cliff","carbon-hill","carboncliff","carbondale","carbonear","carbonera","carboneras","carbonhill","carbonville","cardenas","cardington","cardonal","cardston","carefree","carencro","carey","caribou","carichi","carignan","caristay","carl-junction","carle-place","carleplace","carleton","carleton-place","carleton-sur-mer","carletonplace","carletonsurmer","carlin","carlinville","carlisle","carlisle-rockledge","carlislerockledge","carljunction","carlos-a-carrillo","carlos-a-madrazo","carlosacarrillo","carlosamadrazo","carlsbad","carlstadt","carlton","carlyle","carlyss","carman","carmel","carmel-by-the-sea","carmel-hamlet","carmel-valley-village","carmelbythesea","carmelhamlet","carmelvalleyvillage","carmen","carmen-serdan","carmen-yalchuch","carmen-zacatal","carmenserdan","carmenyalchuch","carmenzacatal","carmi","carmichael","carnation","carnegie","carnesville","carney","carneys-point","carneyspoint","carnot-moon","carnotmoon","carnuel","caro","carol-city","carol-stream","carolcity","carolina-beach","carolina-shores","carolinabeach","carolinashores","carolstream","carona","carpenter","carpentersville","carpinteria","carpinteros","carrabelle","carranco","carrboro","carriage-club","carriageclub","carricitos","carrier-mills","carriere","carriermills","carrillo","carrillo-puerto","carrillopuerto","carrington","carrizal","carrizal-grande","carrizalgrande","carrizalillo","carrizo-springs","carrizosprings","carrizozo","carroll","carroll-park","carroll-valley","carrollpark","carrollton","carrollvalley","carrollwood","carrollwood-village","carrollwoodvillage","carson","carson-city","carsoncity","carstairs","cartagena-fraccionamiento","cartagenafraccionamiento","carter-lake","carteret","carterlake","cartersville","carterville","carthage","caruthers","caruthersville","carver","carver-ranches","carverranches","carville","cary","caryville","cas","casa","casa-blanca","casa-conejo","casa-de-cerros","casa-de-oro-mount-helix","casa-grande","casa-loma","casa-nueva","casablanca","casaconejo","casadecerros","casadeoromounthelix","casagrande","casahuatlan","casaloma","casanueva","casas","casas-adobes","casas-grandes","casas-viejas","casasadobes","casasgrandes","casasviejas","cascade","cascade-chipita-park","cascade-locks","cascade-valley","cascadechipitapark","cascadelocks","cascadevalley","caserio-de-cortes","caseriodecortes","casey","caseyville","casg","cash","cashmere","cashton","casitas","casper","cass-city","casscity","casselberry","casselman","casselton","cassopolis","cassville","castaic","castamay","castanea","castanos","castillo-de-teayo","castillodeteayo","castine","castle-dale","castle-hayne","castle-hills","castle-pines","castle-pines-north","castle-point","castle-rock","castle-shannon","castledale","castlegar","castlehayne","castlehills","castlepines","castlepinesnorth","castlepoint","castleridge","castlerock","castleshannon","castleton","castleton-on-hudson","castletononhudson","castlewood","castro-urdiales","castro-valley","castrourdiales","castrovalley","castroville","catahoula","catalina","catalina-foothills","catalinafoothills","catarino-rodriguez","catarinorodriguez","catasauqua","catawba","catawissa","catazaja","catemaco","cathcart","cathedral-city","cathedralcity","cathlamet","catishtic","catlettsburg","catlin","cato","catonsville","catoosa","catskill","caucel","caurio-de-guadalupe","cauriodeguadalupe","cavalier","cave-city","cave-creek","cave-junction","cave-spring","cave-springs","cavecity","cavecreek","cavejunction","cavespring","cavesprings","cavetown","caxapa","caxhuacan","caxitepec","caxuxi","cayaco","cayce","cayucos","cayuga","cayuga-heights","cayugaheights","cazenovia","cazones-de-herrera","cazonesdeherrera","cb","cbd","cbj","cblc","cbs","cbts","cc","cc3","ccc","ccdc","ccdo","cce","cch","ccp","ccv","cd","cda","cdb","cdba","cdbh","cdbj","cdc","cdd","cdf","cdfp","cdg","cdgb","cdh","cdi","cdj","cdke","cdl","cdlc","cdle","cdlj","cdll","cdlm","cdlp","cdls","cdm","cdmx","cdn","cdo","cdp","cdr","cdrs","cds","cdsf","cdsp","cdt","cdv","cdvp","cdz","ce","cebadilla-1ra-seccion","cebadilla1raseccion","ceballos","cec","cecil-bishop","cecilbishop","cecilia","cecilio-teran","cecilioteran","cedar","cedar-bluff","cedar-city","cedar-falls","cedar-glen-lakes","cedar-glen-west","cedar-grove","cedar-hill","cedar-hills","cedar-knolls","cedar-lake","cedar-mill","cedar-park","cedar-point","cedar-rapids","cedar-ridge","cedar-springs","cedarbluff","cedarbrae","cedarbrook","cedarburg","cedarcity","cedaredge","cedarfalls","cedarglenlakes","cedarglenwest","cedargrove","cedarhill","cedarhills","cedarhurst","cedarknolls","cedarlake","cedarmill","cedarpark","cedarpoint","cedarrapids","cedarridge","cedarsprings","cedartown","cedarville","cedral","cedro-de-la-manzana","cedrodelamanzana","cedros","cef","cefereso-numero-3","ceferesonumero3","ceg","ceiba-1ra-seccion-jahuactal","ceiba1raseccionjahuactal","ceja-de-bravo","cejadebravo","celaya","celayita","celebration","celestun","celina","celoron","cem","cementeras-del-pital","cementerasdelpital","cementon","cenobio-aguilar-la-trinidad","cenobio-moreno","cenobioaguilarlatrinidad","cenobiomoreno","cenotillo","centennial","centennial-park","centennial-scarborough","centennialpark","centennialscarborough","center","center-city","center-harbor","center-hill","center-line","center-moriches","center-point","centerburg","centercity","centereach","centerfield","centerharbor","centerhill","centerline","centermoriches","centerpoint","centerport","centerton","centerville","central","central-business-district","central-city","central-falls","central-garage","central-gardens","central-heights-midland-city","central-high","central-islip","central-park","central-point","central-square","central-valley","central-valley-historical","central-waterford","centralbusinessdistrict","centralcity","centralfalls","centralgarage","centralgardens","centralheightsmidlandcity","centralhigh","centralia","centralislip","centralpark","centralpoint","centralsquare","centralvalley","centralvalleyhistorical","centralwaterford","centre","centre-hall","centrehall","centreville","centro-de-arriba","centro-de-readaptacion-social","centro-familiar-la-soledad","centrodearriba","centrodereadaptacionsocial","centrofamiliarlasoledad","century","century-city","centurycity","cep","cepeda","cer","cerano","ceredo","ceres","cereso-14-el-amate","cereso-del-hongo","cereso-nuevo","cereso14elamate","ceresodelhongo","ceresonuevo","cerocahui","cerrillos-campo-35","cerrilloscampo35","cerrito-de-gasca","cerrito-de-jaral","cerrito-de-la-cruz","cerrito-de-zavala","cerritodegasca","cerritodejaral","cerritodelacruz","cerritodezavala","cerritos","cerritos-de-cardenas","cerritos-del-pilar","cerritosdecardenas","cerritosdelpilar","cerro-agudo","cerro-armadillo-grande","cerro-azul","cerro-colorado","cerro-colorado-de-ocampo","cerro-de-la-cruz","cerro-de-ortega","cerro-de-piedra","cerro-de-san-francisco","cerro-de-san-pedro","cerro-del-aire","cerro-del-murcielago","cerro-gordo","cerro-grande","cerro-guzman","cerro-la-calera","cerro-las-iguanas","cerro-quemado","cerro-santa-fe","cerroagudo","cerroarmadillogrande","cerroazul","cerrocolorado","cerrocoloradodeocampo","cerrodelacruz","cerrodelaire","cerrodelmurcielago","cerrodeortega","cerrodepiedra","cerrodesanfrancisco","cerrodesanpedro","cerrogordo","cerrogrande","cerroguzman","cerrolacalera","cerrolasiguanas","cerroquemado","cerrosantafe","ces","cesar-chavez","cesarchavez","cet","cetronia","ceuta","cez","cf","cfa","cfep","cfgs","cfjm","cflp","cfls","cg","cgbp","cgc","cgdo","cge","cgl","cgm","cgt","cgv","cgw","ch","chable","chablekal","chacala","chacalapa","chacaljocom","chacaltianguis","chachahuantla","chackbay","chacoma","chacsinkin","chadbourn","chadron","chadwicks","chaffee","chagrin-falls","chagrinfalls","chahuite","chahuites","chalahuiyapa","chalam","chalcatzingo","chalchihuapan","chalchihuitan","chalchihuites","chalchocoyo","chalco","chalfont","chalkville","challenge-brownsville","challengebrownsville","challis","chalma","chalmette","chalmita","chama","chamacuaro","chamberlain","chamberlayne","chambersburg","chamblee","chambly","chambord","chametla","champaign","champion-heights","championheights","champlain","champlin","champoton","chamula","chamulapita","chan-cenote","chanal","chancenote","chandler","changata","chanhassen","channahon","channel-islands-beach","channel-lake","channel-port-aux-basques","channelislandsbeach","channellake","channelportauxbasques","channelview","channing","chantilly","chanute","chapa","chapa-de-mota","chapab","chapademota","chapais","chapala","chapalilla","chapallal-grande","chapallalgrande","chapantongo","chaparaco","chaparral","chaparrosa","chapel-hill","chapelhill","chapin","chapman","chapmanville","chapopote-chico","chapopote-nunez","chapopotechico","chapopotenunez","chappaqua","chappell","chapulco","chapulhuacan","chapulhuacanito","chapultenango","chapultepec","charapan","charapendo","charay","charcas","charco-blanco","charco-de-pantoja","charcoblanco","charcodepantoja","chardon","charenton","chariton","charlack","charlemagne","charlemont","charleroi","charles-city","charles-town","charles-village","charlescity","charleston","charlestown","charlesvillage","charleswood","charlevoix","charlotte","charlotte-court-house","charlotte-hall","charlotte-harbor","charlotte-park","charlottecourthouse","charlottehall","charlotteharbor","charlottepark","charlottesville","charlottetown","charlton","charo","charter-oak","charteroak","chase","chase-city","chasecity","chaska","chateau-richer","chateauguay","chateauricher","chatfield","chatham","chatipan","chatmoss","chatom","chatsworth","chattahoochee","chattahoochee-hills","chattahoocheehills","chattanooga","chattanooga-valley","chattanoogavalley","chaucingo","chauncey","chautla","chauvin","chavarria","chavarrillo","chavaxtla","chavinda","cheat-lake","cheatlake","chebanse","cheboygan","checotah","cheektowaga","chehalis","chelan","chelem","chelmsford","chelsea","cheltenham","chemainus","chemax","chenalho","chenango-bridge","chenangobridge","cheney","chenoa","chenoweth","chepachet","cheran","cheran-atzicuirin-cheranastico","cheranatzicuirincheranastico","cheraw","cherokee","cherokee-village","cherokeevillage","cherry-creek","cherry-grove","cherry-hill","cherry-hill-mall","cherry-hills-village","cherry-valley","cherrycreek","cherryfield","cherrygrove","cherryhill","cherryhillmall","cherryhillsvillage","cherryland","cherryvale","cherryvalley","cherryville","chertsey","ches","chesaning","chesapeake","chesapeake-beach","chesapeake-ranch-estates","chesapeakebeach","chesapeakeranchestates","cheshire","cheshire-village","cheshirevillage","chesilhurst","chester","chester-center","chester-heights","chester-springs","chesterbrook","chestercenter","chesterfield","chesterfield-court-house","chesterfieldcourthouse","chesterheights","chesterland","chestermere","chestersprings","chesterton","chestertown","chesterville","chestnut-hill","chestnut-ridge","chestnuthill","chestnutridge","cheswick","cheswold","chet","chetek","chetopa","chetumal","chetwynd","chevak","cheval","cheverly","cheviot","chevy-chase","chevy-chase-heights","chevy-chase-village","chevychase","chevychaseheights","chevychasevillage","chewelah","cheyenne","cheyenne-wells","cheyennewells","chh","chiapa-de-corzo","chiapadecorzo","chiapas","chiapilla","chiaucingo","chiautla","chiautla-de-tapia","chiautladetapia","chibougamau","chicago","chicago-heights","chicago-lawn","chicago-loop","chicago-ridge","chicagoheights","chicagolawn","chicagoloop","chicagoridge","chicahua","chicahuaxtla","chicapa-de-castro","chicapadecastro","chicavasco","chicbul","chichatla","chichen-itza","chichenitza","chichester","chichicapa","chichicastle-1ra-seccion","chichicastle1raseccion","chichicaxtle","chichicuautla","chichihualco","chichimequillas","chichimila","chichiquila","chickamauga","chickasaw","chickasha","chico","chicoasen","chicola","chicoloapan","chicomuselo","chiconamel","chiconcuac","chiconcuautla","chiconquiaco","chicontepec","chicontla","chicopee","chicora","chicualoque","chicuasen","chicumtantic","chicxulub-pueblo","chicxulub-puerto","chicxulubpueblo","chicxulubpuerto","chiefland","chiepetepec","chietla","chigmecatitlan","chignahuapan","chihuahua","chihuahuita","chikindzonot","chila","chila-de-juarez","chila-de-la-sal","chilacachapa","chiladejuarez","chiladelasal","chilapa","chilapa-de-alvarez","chilapadealvarez","chilchota","chilcuautla","childersburg","childress","chilhowie","chililico","chillicothe","chilliwack","chillum","chilolja","chilon","chilpancingo","chiltepec-de-hidalgo","chiltepecdehidalgo","chilton","chiltoyac","chimalapa","chimalpa-viejo","chimalpa-y-tlalayote","chimalpaviejo","chimalpaytlalayote","chimaltitan","chimayo","chimhucum","china","china-grove","china-lake-acres","chinagrove","chinalakeacres","chinameca","chinampa-de-gorostiza","chinampadegorostiza","chinampas","chinantla","chinatown","chinautla","chinchilla","chincoteague","chinipas","chinle","chino","chino-hills","chino-valley","chinobampo","chinohills","chinook","chinook-park","chinookpark","chinovalley","chipahuatlan","chipilodefranciscojaviermina","chipley","chippewa-falls","chippewafalls","chiquihuitlan-de-benito-juarez","chiquihuitlandebenitojuarez","chiquila","chiquilistlan","chiquimitio","chiquinival","chiquinshulum","chirimoya-estacion-chirimoya","chirimoyaestacionchirimoya","chisago-city","chisagocity","chisholm","chiteje-de-garabato","chitejedegarabato","chittenango","chittenden","chixtontic","chm","chmc","chocaman","choccolocco","chochola","choctaw","choctaw-lake","choctawlake","choix","cholul","cholul-canton","cholula","cholulcanton","chonegal","chontalcoatlan","chontalpa","chontla","chosto-de-los-jarros","chostodelosjarros","choteau","chouteau","chowchilla","chp","chrisman","christiana","christiansburg","christmas","christopher","chs","chualar","chubbuck","chuburna","chucandiro","chucarit","chuckey","chula-vista","chulavista","chulum-cardenas","chulum-juarez","chulumcardenas","chulumjuarez","chuluota","chumatlan","chumayel","chunchintok","chunchucmil","chunhuhub","chuniapan-de-arriba","chuniapandearriba","chupaderos","chupio","church-hill","church-point","church-rock","church-yonge-corridor","churchhill","churchill","churchpoint","churchrock","churchville","churchyongecorridor","churintzio","churipitzeo","churubusco","churumuco-de-morelos","churumucodemorelos","chute-aux-outardes","chuteauxoutardes","chv","ci","cia","cib","cibecue","cibolo","cicacalco","cicero","cid","cienega-de-flores","cienega-de-zimatlan","cienega-grande","cienega-springs","cienegadeflores","cienegadezimatlan","cienegagrande","cienegas-terrace","cienegasprings","cienegasterrace","cieneguilla","cieneguillas","cieneguitas","cif","cihuatlan","cimarron","cimarron-hills","cimarronhills","cincinnati","cincinnatus","cinco-de-febrero","cinco-de-mayo","cinco-ranch","cincodefebrero","cincodemayo","cincoranch","cinnaminson","cintalapa","cintalapa-de-figueroa","cintalapadefigueroa","cipreses","circle","circle-d-kc-estates","circle-pines","circledkcestates","circlepines","circleville","cisco","citala","citilcum","citlaltepec","citra","citronelle","citrus","citrus-city","citrus-heights","citrus-hills","citrus-park","citrus-ridge","citrus-springs","citruscity","citrusheights","citrushills","citruspark","citrusridge","citrussprings","city-island","city-of-milford-balance","city-of-sammamish","city-view","cityisland","cityofmilfordbalance","cityofsammamish","cityview","ciudad-acuna","ciudad-altamirano","ciudad-apodaca","ciudad-ayala","ciudad-benito-juarez","ciudad-camargo","ciudad-cerralvo","ciudad-chemuyil","ciudad-constitucion","ciudad-cuauhtemoc","ciudad-de-allende","ciudad-de-armeria","ciudad-de-atlixco","ciudad-de-chiautla-de-tapia","ciudad-de-cuetzalan","ciudad-de-huajuapan-de-leon","ciudad-de-huitzuco","ciudad-de-mexico","ciudad-de-nanacamilpa","ciudad-de-tlatlauquitepec","ciudad-de-villa-de-alvarez","ciudad-de-villaldama","ciudad-del-carmen","ciudad-del-maiz","ciudad-delicias","ciudad-fernandez","ciudad-general-escobedo","ciudad-general-teran","ciudad-guadalupe-victoria","ciudad-gustavo-diaz-ordaz","ciudad-guzman","ciudad-guzman-cereso","ciudad-hidalgo","ciudad-insurgentes","ciudad-juarez","ciudad-lazaro-cardenas","ciudad-lerdo","ciudad-lopez-mateos","ciudad-madero","ciudad-mante","ciudad-manuel-doblado","ciudad-melchor-muzquiz","ciudad-mendoza","ciudad-miguel-aleman","ciudad-morelos","ciudad-nezahualcoyotl","ciudad-obregon","ciudad-pemex","ciudad-rio-bravo","ciudad-sabinas-hidalgo","ciudad-sahagun","ciudad-satelite","ciudad-satelite-del-norte","ciudad-serdan","ciudad-tula","ciudad-valles","ciudad-victoria","ciudadacuna","ciudadaltamirano","ciudadapodaca","ciudadayala","ciudadbenitojuarez","ciudadcamargo","ciudadcerralvo","ciudadchemuyil","ciudadconstitucion","ciudadcuauhtemoc","ciudaddeallende","ciudaddearmeria","ciudaddeatlixco","ciudaddechiautladetapia","ciudaddecuetzalan","ciudaddehuajuapandeleon","ciudaddehuitzuco","ciudaddelcarmen","ciudaddelicias","ciudaddelmaiz","ciudaddemexico","ciudaddenanacamilpa","ciudaddetlatlauquitepec","ciudaddevilladealvarez","ciudaddevillaldama","ciudadfernandez","ciudadgeneralescobedo","ciudadgeneralteran","ciudadguadalupevictoria","ciudadgustavodiazordaz","ciudadguzman","ciudadguzmancereso","ciudadhidalgo","ciudadinsurgentes","ciudadjuarez","ciudadlazarocardenas","ciudadlerdo","ciudadlopezmateos","ciudadmadero","ciudadmante","ciudadmanueldoblado","ciudadmelchormuzquiz","ciudadmendoza","ciudadmiguelaleman","ciudadmorelos","ciudadnezahualcoyotl","ciudadobregon","ciudadpemex","ciudadriobravo","ciudadsabinashidalgo","ciudadsahagun","ciudadsatelite","ciudadsatelitedelnorte","ciudadserdan","ciudadtula","ciudadvalles","ciudadvictoria","cj","cjmm","ck","cl","cl1","cla","clackamas","claiborne","clairlea-birchmount","clairleabirchmount","clairton","clancy","clanton","clanton-park","clantonpark","clara-city","claracity","clarcona","clare","claremont","claremore","clarence","clarence-center","clarence-rockland","clarencecenter","clarencerockland","clarendon","clarendon-hills","clarendonhills","clarenville-shoal-harbour","clarenvilleshoalharbour","claresholm","clarinda","clarion","clark","clark-fulton","clark-mills","clarkdale","clarkesville","clarkfulton","clarkmills","clarks","clarks-green","clarks-summit","clarksburg","clarksdale","clarksgreen","clarkson","clarkson-valley","clarksonvalley","clarkssummit","clarkston","clarkston-heights-vineland","clarkstonheightsvineland","clarksville","clarkton","claryville","clatskanie","claude","clawson","claxton","clay","clay-center","clay-city","claycenter","claycity","claycomo","claymont","claypool","claypool-hill","claypoolhill","claysburg","clayton","clc","cld","cle","cle-elum","clear-lake","clear-lake-riviera","clear-lake-shores","clearbrook-park","clearbrookpark","clearfield","clearlake","clearlake-oaks","clearlakeoaks","clearlakeriviera","clearlakeshores","clearview","clearwater","cleary","cleburne","cleelum","clementon","clemmons","clemson","clendenin","cleona","cleora","clermont","cleveland","cleveland-heights","clevelandheights","clever","cleves","clewiston","clf","cli","cliffcrest","cliffside-park","cliffsidepark","cliffwood-beach","cliffwoodbeach","clifton","clifton-forge","clifton-heights","clifton-park","clifton-springs","cliftonforge","cliftonheights","cliftonpark","cliftonsprings","clint","clinton","clinton-corners","clinton-township","clintoncorners","clintondale","clintontownship","clintonville","clintwood","clio","cliserio-alanis-san-gaspar","cliserioalanissangaspar","clive","cll","clm","cloete","cloquet","closter","clover","clover-hill","cloverdale","cloverhill","cloverleaf","cloverly","cloverport","clovis","clp","clpf","clr","cls","clute","clv","clyde","clyde-hill","clyde-river","clydehill","clyderiver","clymer","cm","cma","cmch","cmcm","cmd","cmen","cmg","cmh","cmm","cmsm","cn","cn3","cne","cnm","cnr","co","coa","coacalco","coachella","coachimalco","coachiti","coacoatzintla","coacotla","coacoyula-de-alvarez","coacoyuladealvarez","coacoyulichan","coacoyulillo","coacuilco","coahuayana-de-hidalgo","coahuayana-viejo","coahuayanadehidalgo","coahuayanaviejo","coahuayutla-de-guerrero","coahuayutladeguerrero","coahuila","coahuila-de-zaragoza","coahuiladezaragoza","coahuitlan","coahuixco","coahuixtla","coajomulco","coal-city","coal-creek","coal-fork","coal-grove","coal-hill","coal-run-village","coal-valley","coalcity","coalcoman-de-vazquez-pallares","coalcomandevazquezpallares","coalcreek","coaldale","coalfield","coalfork","coalgate","coalgrove","coalhill","coalhurst","coaling","coalinga","coalrunvillage","coalvalley","coalville","coamilpa-de-juarez","coamilpadejuarez","coapilla","coarsegold","coatecas-altas","coatecasaltas","coatepec","coatepec-costales","coatepec-harinas","coatepeccostales","coatepecharinas","coatesville","coatetelco","coaticook","coatlan-del-rio","coatlandelrio","coats","coatzacoalcos","coatzingo","coatzintla","coba","cobb","cobb-island","cobbisland","cobbs-creek","cobbscreek","cobden","cobleskill","cobourg","coburg","cochise","cochituate","cochoapa","cochoapa-el-grande","cochoapaelgrande","cochran","cochrane","cochranton","cockeysville","cockrell-hill","cockrellhill","cocoa","cocoa-beach","cocoa-west","cocoabeach","cocoawest","cocohital","coconino","coconut-creek","coconut-grove","coconutcreek","coconutgrove","cocorit","cocotitlan","cocoyoc","cocoyol","cocoyotla","cocucho","cocula","cody","coeburn","coeneo-de-la-libertad","coeneodelalibertad","coetzala","coeur-dalene","coeurdalene","coffeyville","cofradia","cofradia-de-juarez","cofradia-de-morelos","cofradia-de-suchitlan","cofradiadejuarez","cofradiademorelos","cofradiadesuchitlan","coh","cohasset","cohoe","cohoes","cohuecan","coixtlahuaca","cojumatlan-de-regules","cojumatlanderegules","cokato","col","col-bosques-de-las-lomas","colatlan","colbert","colbosquesdelaslomas","colby","colchester","cold-lake","cold-spring","cold-spring-harbor","cold-springs","coldlake","coldspring","coldspringharbor","coldsprings","coldstream","coldwater","cole-camp","cole-harbour","colebrook","colecamp","coleharbour","coleman","coleraine","colesville","colfax","colima","colinas-de-plata","colinas-del-aeropuerto","colinas-del-roble","colinas-del-sol","colinasdelaeropuerto","colinasdelroble","colinasdelsol","colinasdeplata","colipa","collantes","college","college-park","college-place","college-point","college-station","collegedale","collegepark","collegeplace","collegepoint","collegestation","collegeville","colleyville","collier","collierville","collin","collingdale","collings-lakes","collingslakes","collingswood","collingwood","collins","collinsburg","collinsville","collinwood","colma","colmar-manor","colmarmanor","cologne","coloma","colombia-de-guadalupe","colombiadeguadalupe","colon","colona","colonia","colonia-18-de-marzo","colonia-2-de-septiembre","colonia-24-de-febrero","colonia-28-de-mayo-santa-rosa","colonia-3-de-mayo","colonia-3-de-mayo-la-cruz","colonia-adolfo-lopez-mateos","colonia-aeropuerto","colonia-agricola-analco","colonia-alborada","colonia-alvaro-obregon","colonia-aquiles-cordoba-moran","colonia-arboledas-san-andres","colonia-aviacion-autopan","colonia-azteca","colonia-bellavista","colonia-benito-juarez","colonia-campesina","colonia-chalchihuecan","colonia-constitucion","colonia-cuauhtemoc","colonia-de-guadalupe","colonia-del-sol","colonia-del-valle","colonia-doctor-gustavo-baz","colonia-el-florido","colonia-el-mirador","colonia-el-pedregal","colonia-el-pirame","colonia-el-refugio","colonia-el-renacimiento","colonia-el-salado","colonia-emiliano-zapata","colonia-felipe-angeles","colonia-francisco-javier-mina","colonia-gomez-morin","colonia-guadalupana","colonia-guadalupe","colonia-guadalupe-victoria","colonia-gustavo-baz-prada","colonia-hidalgo-el-tecolote","colonia-ignacio-allende","colonia-independencia","colonia-isidro-fabela","colonia-jordan","colonia-jose-maria-morelos","colonia-juarez","colonia-la-asuncion","colonia-la-calzada-la-olla","colonia-la-central","colonia-la-libertad","colonia-las-arboledas","colonia-las-flores","colonia-latinoamericana","colonia-lazaro-cardenas","colonia-lealtad","colonia-libertad","colonia-lindavista","colonia-los-aguiluchos","colonia-los-angeles","colonia-los-cedros","colonia-los-cerritos","colonia-los-remedios","colonia-luces-en-el-mar","colonia-manuel-gonzalez","colonia-michoacana","colonia-miguel-hidalgo","colonia-militar","colonia-morelos","colonia-morelos-el-nueve","colonia-nativitas","colonia-nueva-era","colonia-nueva-revolucion","colonia-nuevo-mexico","colonia-obrera","colonia-padre-hidalgo","colonia-palma","colonia-palo-prieto-chipitongo","colonia-paraiso-escondido","colonia-patria-nueva","colonia-pedro-maria-anaya","colonia-plenitud","colonia-progreso","colonia-rafael-corrales-ayala","colonia-reforma-tlalmimilolpan","colonia-renacimiento","colonia-revolucion","colonia-ricardo-flores-magon","colonia-rincon-viejo","colonia-rincon-villa-del-valle","colonia-rio-lerma-tic-ti","colonia-san-francisco","colonia-san-francisco-de-asis","colonia-san-isidro","colonia-san-juan","colonia-san-luis","colonia-san-luis-rey","colonia-san-ramon","colonia-santa-barbara","colonia-sesenta-y-dos","colonia-tenhe","colonia-terrazas","colonia-tulteca-teopan","colonia-ursulo-galvan","colonia-veinte-de-noviembre","colonia-veintitres-de-mayo","colonia-venustiano-carranza","colonia-wenceslao-labra","colonia-yucatan","colonia18demarzo","colonia24defebrero","colonia28demayosantarosa","colonia2deseptiembre","colonia3demayo","colonia3demayolacruz","coloniaadolfolopezmateos","coloniaaeropuerto","coloniaagricolaalvaroobregon","coloniaagricolaanalco","coloniaagricolamexicopalmitas","coloniaalborada","coloniaalvaroobregon","coloniaaquilescordobamoran","coloniaarboledassanandres","coloniaaviacionautopan","coloniaazteca","coloniabellavista","coloniabenitojuarez","coloniacampesina","coloniachalchihuecan","coloniaconstitucion","coloniacuauhtemoc","coloniadeguadalupe","coloniadelsol","coloniadelvalle","coloniadoctorgustavobaz","coloniaelflorido","coloniaelmirador","coloniaelmiradorllanodelejido","coloniaelpedregal","coloniaelpirame","coloniaelrefugio","coloniaelrenacimiento","coloniaelsalado","coloniaemilianozapata","coloniafelipeangeles","coloniafraccionamientoelpuente","coloniafranciscogarciasalinas","coloniafranciscojaviermina","coloniagomezmorin","coloniaguadalupana","coloniaguadalupe","coloniaguadalupevictoria","coloniagustavobazprada","coloniahidalgoeltecolote","coloniaignacioallende","coloniaindependencia","coloniaisidrofabela","coloniajordan","coloniajosemariamorelos","coloniajuarez","colonial-beach","colonial-heights","colonial-park","colonial-pine-hills","colonialaasuncion","colonialacalzadalaolla","colonialacentral","colonialalibertad","colonialasarboledas","colonialasflores","colonialatinoamericana","colonialazarocardenas","colonialazarocardenasloshornos","colonialbeach","colonialealtad","colonialheights","colonialibertad","colonialindavista","colonialomasdesanramontriquis","colonialosaguiluchos","colonialosangeles","colonialoscedros","colonialoscerritos","colonialosremedios","colonialpark","colonialpinehills","colonialucesenelmar","coloniamanuelgonzalez","coloniamichoacana","coloniamiguelhidalgo","coloniamilitar","coloniamorelos","coloniamoreloselnueve","colonianativitas","colonianuevaera","colonianuevarevolucion","colonianuevomexico","coloniaobrera","coloniapadrehidalgo","coloniapalma","coloniapaloprietochipitongo","coloniaparaisoescondido","coloniapatrianueva","coloniapedromariaanaya","coloniaplenitud","coloniaprogreso","coloniarafaelcorralesayala","coloniareformatlalmimilolpan","coloniarenacimiento","coloniarevolucion","coloniaricardofloresmagon","coloniarinconviejo","coloniarinconvilladelvalle","coloniariolermaticti","colonias-pedernales","coloniasanfrancisco","coloniasanfranciscodeasis","coloniasanisidro","coloniasanjuan","coloniasanluis","coloniasanluisrey","coloniasanramon","coloniasantabarbara","coloniasantacecilialasauceda","coloniasesentaydos","coloniaspedernales","coloniatenhe","coloniaterrazas","coloniatultecateopan","coloniaursulogalvan","coloniaveintedenoviembre","coloniaveintitresdemayo","coloniavenustianocarranza","coloniavistabellalomasdelpeaje","coloniawenceslaolabra","coloniayucatan","colonie","colony-park","colonypark","colorado","colorado-city","colorado-springs","coloradocity","coloradosprings","colorines","colotepec","colotlan","colotlipa","colquitt","colrain","colstrip","colton","colts-neck","coltsneck","colucan","columbia","columbia-city","columbia-falls","columbia-heights","columbiacity","columbiafalls","columbiaheights","columbiana","columbine","columbine-valley","columbinevalley","columbus","columbus-air-force-base","columbus-grove","columbus-junction","columbusairforcebase","columbusgrove","columbusjunction","colusa","colville","colwich","colwood","colwyn","comachuen","comala","comalapa","comalcalco","comales","comaltepec","comanche","comanja","comanjilla","comapa","comb","combee-settlement","combeesettlement","combes","combine","combined-locks","combinedlocks","comejen","comer","comfort","comitan","commack","commerce","commerce-city","commercecity","commercial-point","commercialpoint","communications-hill","communicationshill","como","comoapan","comonfort","comox","compostela","compton","compuertas","comstock-northwest","comstock-park","comstocknorthwest","comstockpark","conashaugh-lakes","conashaughlakes","conca","concentracion-5-de-febrero","concentracion5defebrero","concepcion","concepcion-caro","concepcion-chimalpa","concepcion-cuautla","concepcion-de-buenos-aires","concepcion-del-monte","concepcion-del-oro","concepcion-hidalgo","concepcion-jolalpan","concepcion-la-venta","concepcioncapulaclaexhacienda","concepcioncaro","concepcionchimalpa","concepcioncuautla","concepciondebuenosaires","concepciondelmonte","concepciondeloro","concepcionhidalgo","concepcionjolalpan","concepcionlaventa","conception-bay-south","conceptionbaysouth","concord","concordia","conda","condembaro","condon","conehatta","conejeras","conejos","conemaugh","conestoga","coneto-de-comonfort","conetodecomonfort","coney-island","coneyisland","congers","congregacion-calles","congregacion-el-tajin","congregacion-hidalgo","congregacion-ortiz","congregacion-reforma","congregacioncalles","congregacioneltajin","congregacionhidalgo","congregacionortiz","congregacionreforma","congress","conjunto-urbano-la-loma-i","conjuntohabitacionaleltrebol","conjuntourbanolalomai","conkal","conley","conneaut","conneaut-lakeshore","conneautlakeshore","connecticut","connell","connellsville","connelly-springs","connellysprings","connersville","connerton","conning-towers-nautilus-park","conningtowersnautiluspark","conover","conrad","conroe","conshohocken","constance-bay","constancebay","constancia","constancia-del-rosario","constanciadelrosario","constancio-farfan-la-pascuala","constanciofarfanlapascuala","constantia","constantine","constitucion","constitucion-mexicana","constitucionmexicana","contepec","continental","contla","contoocook","contra-costa","contra-costa-centre","contracosta","contracostacentre","contrecoeur","convent","converse","convoy","conway","conway-springs","conwaysprings","conyers","conyngham","cookeville","cookshire","cookshire-eaton","cookshireeaton","cookstown","cool","cool-valley","coolidge","coolidge-corner","coolidgecorner","coolvalley","coombs","coon-rapids","coonrapids","cooper","cooper-city","coopercity","coopersburg","cooperstown","coopersville","coopertown","coos","coos-bay","coosada","coosbay","copainala","copala","copalillo","copanatoyac","copandaro-copandaro-del-cuatro","copandaro-de-galeana","copandarocopandarodelcuatro","copandarodegaleana","copeland","copiague","copila","coplay","copley","copoya","coppell","copper-canyon","copperas-cove","copperascove","coppercanyon","copperopolis","coquille","coquimatlan","coquitlam","coral-gables","coral-hills","coral-springs","coral-terrace","coralgables","coralhills","coralsprings","coralterrace","coralville","coram","coraopolis","corbin","corcoran","corcovado","cordaville","cordele","cordell","cordes-lakes","cordeslakes","cordoba","cordoba-santa-leticia","cordobasantaleticia","cordova","cordry-sweetwater-lakes","cordrysweetwaterlakes","corerepe","corinna","corinth","cornelia","cornelius","cornell","corner-brook","cornerbrook","cornersville","corning","cornish","cornville","cornwall","cornwells-heights","cornwellsheights","corona","corona-de-tucson","coronadetucson","coronado","coronango","coronel-tito-hernandez","coroneltitohernandez","coroneo","corozal","corpus-christi","corpuschristi","corral-de-barrancos","corral-de-piedra","corral-de-piedras-de-arriba","corral-del-risco-punta-de-mita","corral-falso","corral-nuevo","corraldebarrancos","corraldelriscopuntademita","corraldepiedra","corraldepiedrasdearriba","corralejo-de-arriba","corralejodearriba","corralero","corrales","corralfalso","corralillos","corralitos","corralnuevo","corriente-1ra-seccion","corriente1raseccion","corrigan","corry","corsicana","corso-italia-davenport","corsoitaliadavenport","cortazar","corte-madera","cortemadera","cortez","cortland","cortland-west","cortlandt-manor","cortlandtmanor","cortlandwest","corunna","corupo","corvallis","corydon","cos","cos-cob","cosala","cosamaloapan","cosautlan","coscob","coscomate-del-progreso","coscomatedelprogreso","coscomatepec-de-bravo","coscomatepecdebravo","coshocton","cosio","cosmopolis","cosolapa","cosoleacaque","cosoltepec","costa-azul","costa-mesa","costaazul","costamesa","cotati","cotaxtla","cote-saint-luc","coteau-du-lac","coteaudulac","cotesaintluc","cotija-de-la-paz","cotijadelapaz","coto-de-caza","cotodecaza","cotorina","cottage-city","cottage-grove","cottage-lake","cottagecity","cottagegrove","cottagelake","cottleville","cottonport","cottonwood","cottonwood-falls","cottonwood-heights","cottonwood-shores","cottonwoodfalls","cottonwoodheights","cottonwoodshores","cotuit","cotulla","coudersport","coulee-dam","couleedam","council","council-bluffs","council-grove","councilbluffs","councilgrove","country-club","country-club-estates","country-club-hills","country-club-village","country-homes","country-knolls","country-lake-estates","country-squire-lakes","country-walk","countryclub","countryclubestates","countryclubhills","countryclubvillage","countryhomes","countryknolls","countrylakeestates","countryside","countrysquirelakes","countrywalk","county","coupeville","courtenay","courtland","coushatta","cove-creek","covecreek","covedale","covelo","coventry","coventry-lake","coventrylake","covina","covington","cow-bay","cowan","cowansville","cowarts","cowbay","coweta","cowichan-bay","cowichanbay","cowlitz","cowpens","coxcatlan","coxolico","coxquihui","coxsackie","coyahualco","coyame-del-sotol","coyamedelsotol","coyoacan","coyolito","coyomeapan","coyote","coyotepec","coyotillos","coyotitan","coyuca-de-benitez","coyuca-de-catalan","coyucadebenitez","coyucadecatalan","coyula","coyuquilla-norte","coyuquillanorte","coyutla","cozad","cozotlan-norte","cozotlannorte","cozumel","cp","cpab","cpc","cpe","cpec","cph","cpma","cpn","cppc","cps","cq","cr","crab-orchard","craborchard","crabtree","crafton","craig","craig-beach","craigbeach","craigsville","crainville","cramerton","cranberry-township","cranberrytownship","cranbrook","cranbury","crandall","crandon","crandon-lakes","crandonlakes","crane","cranford","cranston","crawfordsville","crawfordville","crb","crca","cre","creede","creedmoor","creel","creighton","creola","cresaptown","crescencio-morales-san-mateo","crescenciomoralessanmateo","crescent","crescent-city","crescent-springs","crescentcity","crescentsprings","cresco","cresskill","cresson","cressona","crest","crest-hill","crested-butte","crestedbutte","cresthill","crestline","creston","crestview","crestview-hills","crestviewhills","crestwood","crestwood-village","crestwoodvillage","creswell","crete","creve-coeur","crevecoeur","crewe","crfm","cricket","cridersville","crimora","cripple-creek","cripplecreek","crisfield","crisostomos","cristeros-fraccionamiento","cristerosfraccionamiento","cristo-rey","cristobal-colon","cristobal-obregon","cristobalcolon","cristobalobregon","cristorey","crittenden","crn","crocker","crockett","crofton","crompond","cromwell","crooked-lake-park","crookedlakepark","crooks","crookston","crooksville","croom","cropseyville","crosby","crosbyton","cross-city","cross-lake","cross-lake-19a","cross-lanes","cross-mountain","cross-plains","crosscity","crossett","crossfield","crosslake","crosslake19a","crosslanes","crossmountain","crossplains","crossville","croswell","crothersville","croton-on-hudson","crotononhudson","crow-agency","crowagency","crowell","crowley","crown-heights","crown-point","crownheights","crownpoint","crownsville","croydon","crozet","crt","crucecita","crucero-las-pilas","crucerolaspilas","crugers","cruillas","crump","cruz-blanca","cruz-de-huanacaxtle","cruz-del-milagro","cruz-grande","cruz-quemada","cruz-verde","cruzblanca","cruzdehuanacaxtle","cruzdelmilagro","cruzgrande","cruzquemada","cruzton","cruzverde","crv","crystal","crystal-city","crystal-falls","crystal-lake","crystal-lakes","crystal-lawns","crystal-river","crystal-springs","crystalcity","crystalfalls","crystallake","crystallakes","crystallawns","crystalriver","crystalsprings","cs","csac","csb","csc","csdn","csf","csh","csi","csj","csl","cslr","csm","csr","csst","csyd","ct","ct-0001","ct-0002","ct-0003","ct-0004","ct-0005","ct-0006","ct-0007","ct-0008","ct-0009","ct-0010","ct-0011","ct-0012","ct-0013","ct-0014","ct-0015","ct-0016","ct-0017","ct-0018","ct-0019","ct-0021","ct-0022","ct-0023","ct-0024","ct-0025","ct-0026","ct-0027","ct-0028","ct-0029","ct-0030","ct0001","ct0002","ct0003","ct0004","ct0005","ct0006","ct0007","ct0008","ct0009","ct0010","ct0011","ct0012","ct0013","ct0014","ct0015","ct0016","ct0017","ct0018","ct0019","ct0021","ct0022","ct0023","ct0024","ct0025","ct0026","ct0027","ct0028","ct0029","ct0030","cth","ctnp","ctt","cu","cuacnopalan","cuacuila","cuadrilla-de-dolores","cuadrilla-vieja","cuadrilladedolores","cuadrillavieja","cuajinicuilapa","cualac","cualata","cuamiles","cuamio","cuanacaxtitlan","cuanajo","cuanala","cuapaxtitla","cuapiaxtla","cuapiaxtla-de-madero","cuapiaxtlademadero","cuapinolito-azulillo","cuapinolitoazulillo","cuaracurio","cuarta-brigada","cuartabrigada","cuartel-la-mesa-el-asoleadero","cuartellamesaelasoleadero","cuatolol","cuatro-caminos","cuatro-cienegas-de-carranza","cuatrocaminos","cuatrocienegasdecarranza","cuatzoquitengo","cuauchichinola","cuauhtamazaco","cuauhtamingo","cuauhtemoc","cuauhtemoc-campo-cinco","cuauhtemoccampocinco","cuauhtenango","cuautempan","cuautepec","cuautepec-de-hinojosa","cuautepecdehinojosa","cuautinchan","cuautitlan","cuautitlan-izcalli","cuautitlanizcalli","cuautla","cuautlacingo","cuautlancingo","cuautlapan","cuautotola","cuautotolapan-san-jose","cuautotolapansanjose","cuaxomulco","cuaxoxpan","cuaxuxpa","cuazahuatl","cuba","cuba-city","cubacity","cubiri-de-portelas","cubirideportelas","cuch-holoch","cucharas","cuchholoch","cuchicuato","cuchulumtic","cucuchucho","cucurpe","cucuyulapa-primera-seccion","cucuyulapaprimeraseccion","cudahy","cudjoe-key","cudjoekey","cuecuecuatitla","cuencame-de-ceniceros","cuencamedeceniceros","cuendo","cuentepec","cueramaro","cuernavaca","cuero","cuesta-amarilla","cuesta-blanca","cuesta-de-laja","cuesta-de-penones","cuestaamarilla","cuestablanca","cuestadelaja","cuestadepenones","cuetzala-del-progreso","cuetzaladelprogreso","cuetzalan","cuexcomatitlan","cuexpala","cug","cuicatlan","cuichapa","cuilapan-de-guerrero","cuilapandeguerrero","cuisillos","cuitlahuac","cuitzeo-del-porvenir","cuitzeo-la-estancia","cuitzeodelporvenir","cuitzeolaestancia","cuiyachapa","culiacan","culiacancito","culico-2da-seccion","culico2daseccion","cullen","cullman","culloden","cullowhee","culp-creek","culpcreek","culpeper","culver","culver-city","culvercity","cumberland","cumberland-center","cumberland-head","cumberland-hill","cumberlandcenter","cumberlandhead","cumberlandhill","cumbre-de-barranca-honda","cumbredebarrancahonda","cumbres-iii","cumbresiii","cumming","cumpas","cumpich","cumuapa-1ra-seccion","cumuapa1raseccion","cumuato","cuncunul","cunduacan","cuonetzingo","cuparataro","cupareo","cupertino","cupilco","cupuan-del-rio","cupuandelrio","cuquio","curimeo","currituck","curtice","curtisville","curungueo","curwensville","cushing","cusihuiriachi","cusseta","custer","cut-and-shoot","cut-bank","cut-off","cutandshoot","cutbank","cutchogue","cuthbert","cutler","cutler-bay","cutler-ridge","cutlerbay","cutlerridge","cutlerville","cuto-de-la-esperanza","cuto-del-porvenir","cutodelaesperanza","cutodelporvenir","cutoff","cutten","cutzamala-de-pinzon","cutzamaladepinzon","cuxpala","cuyahoga-falls","cuyahogafalls","cuyoaco","cuyutlan","cuyuxtlahuaca","cuzama","cv","cvc","cvda","cvdm","cvdn","cvh","cvv","cw","cwl","cy","cyc","cynthiana","cypress","cypress-gardens","cypress-hills","cypress-lake","cypress-quarters","cypress-village","cypressgardens","cypresshills","cypresslake","cypressquarters","cypressvillage","cyril","cyt","cz","da","dacono","dacula","dade-city","dade-city-north","dadecity","dadecitynorth","dadeville","dahlgren","dahlonega","daingerfield","dajiedi","dakota","dakota-city","dakota-dunes","dakotacity","dakotadunes","dale","dale-city","dalecity","daleville","dalhart","dallas","dallas-center","dallascenter","dallastown","dallesport","dalmeny","dalton","dalton-gardens","daltongardens","dalworthington-gardens","dalworthingtongardens","daly-city","dalycity","dalzell","damariscotta","damasco","damascus","damian-carmona","damiancarmona","dana","dana-point","danapoint","danbury","danby","dandridge","dane","danforth","danforth-east-york","danfortheastyork","dania-beach","daniabeach","daniel","daniels","danielson","danielsville","dannemora","dansville","dantzibojay","danvers","danville","daom","daphne","darby","dardanelle","dardenne-prairie","dardenneprairie","darien","darlington","darmstadt","darnestown","darrington","dartmouth","dassel","dauphin","dauphin-island","dauphinisland","dautillos","daveluyville","davenport","david-city","davidcity","davidson","davidsonville","davidsville","davie","davis","davis-junction","davisboro","davisjunction","davison","dawson","dawson-city","dawson-creek","dawson-springs","dawsoncity","dawsoncreek","dawsonsprings","dawsonville","daxtha","day-heights","day-valley","dayheights","dayton","daytona-beach","daytona-beach-shores","daytonabeach","daytonabeachshores","dayvalley","db","dbd","dbh","dbn","dbp","dbs","dc","dcde","dcdm","dcn","dd","dda","ddb","ddc","dde","ddm","ddn","ddo","dds","ddv","de","de-graff","de-kalb","de-land-southwest","de-leon","de-leon-springs","de-lisle","de-parral","de-pere","de-queen","de-smet","de-soto","de-witt","deadwood","deale","deansboro","dearborn","dearborn-heights","dearbornheights","deatsville","debary","decatur","decaturville","decherd","decorah","decordova","dedham","deenwood","deep-river","deep-river-center","deephaven","deepriver","deeprivercenter","deer-isle","deer-lake","deer-lodge","deer-park","deer-valley","deerfield","deerfield-beach","deerfieldbeach","deering","deerisle","deerlake","deerlodge","deerpark","deervalley","defiance","deforest","defuniak-springs","defuniaksprings","degollado","degraff","dehesa","dekalb","del-aire","del-city","del-mar","del-monte-forest","del-norte","del-rey","del-rey-oaks","del-rio","delafield","delaire","delanco","deland","delandsouthwest","delano","delavan","delavan-lake","delavanlake","delaware","delaware-city","delawarecity","delcambre","delcity","delegacioncuajimalpademorelos","deleon","deleonsprings","delevan","delfino-victoria-santa-fe","delfinovictoriasantafe","delgado-de-abajo","delgado-de-arriba","delgadodeabajo","delgadodearriba","delhi","delhi-hills","delhihills","delisle","dell-rapids","dellrapids","dellwood","delmar","delmont","delmonteforest","delnorte","deloraine","delphi","delphos","delray-beach","delraybeach","delrey","delreyoaks","delrio","delson","delta","deltana","deltaville","deltona","demarest","deming","demopolis","demorest","demotte","denair","dengantzha","denham-springs","denhamsprings","denison","denjhi","denman-island","denman-island-trust-area","denmanisland","denmanislandtrustarea","denmark","dennis","dennis-port","dennison","dennisport","dent","denton","dentsville","denver","denver-city","denvercity","denville","deparral","depere","depew","depoe-bay","depoebay","deposit","depue","dequeen","dequincy","derby","deridder","derma","dermott","derramaderos","derramaderosegundoinfiernillo","derry","derry-village","derryvillage","derwood","des-allemands","des-arc","des-moines","des-peres","des-plaines","desallemands","desarc","descanso","deschutes","deschutes-river-woods","deschutesriverwoods","deseronto","desert-aire","desert-edge","desert-hills","desert-hot-springs","desert-shores","desert-view-highlands","desertaire","desertedge","deserthills","deserthotsprings","desertshores","desertviewhighlands","deshler","desloge","desmet","desmoines","desoto","desoto-lakes","desotolakes","despard","desperes","desplaines","destin","destrehan","detina-san-antonio-detina","detinasanantoniodetina","detroit","detroit-beach","detroit-lakes","detroit-shoreway","detroitbeach","detroitlakes","detroitshoreway","deux-montagnes","deuxmontagnes","devens","deville","devils-lake","devilslake","devine","devola","devon","dewart","dewey","dewey-humboldt","deweyhumboldt","deweyville","dewitt","dexter","dextho-de-victoria","dexthodevictoria","dey","df","dg","dh","dhs","di","diablo","diamante-de-echeverria","diamantedeecheverria","diamond","diamond-bar","diamond-head","diamond-ridge","diamond-springs","diamondbar","diamondhead","diamondridge","diamondsprings","diaz","diberville","diboll","dickens","dickeyville","dickinson","dickson","dickson-city","dicksoncity","didsbury","dieciocho-de-marzo","dieciochodemarzo","dieciseis-de-septiembre","dieciseisdeseptiembre","dieppe","dierks","diez-de-octubre","diezdeoctubre","digby","dighton","dike","dilkon","dilley","dillingham","dillon","dillonvale","dillsboro","dillsburg","dilworth","dimmitt","dimondale","dinuba","dinwiddie","dios-padre","diospadre","discovery-bay","discovery-harbor","discoverybay","discoveryharbor","dishman","disraeli","district-heights","district-of-columbia","districtheights","districtofcolumbia","dita","divernon","divisaderos","division-del-norte","divisiondelnorte","dix-hills","dixfield","dixhills","dixiana","dixmont","dixmoor","dixon","dixon-lane-meadow-creek","dixonlanemeadowcreek","dj","dk","dl","dlmc","dls","dm","dmdo","dmf","dn","do","dobbs-ferry","dobbsferry","dobson","doc","dock-junction","dockjunction","doctor-alberto-oviedo-mota","doctor-arroyo","doctor-belisario-dominguez","doctor-coss","doctor-domingo-chanona","doctor-gonzalez","doctor-montes-de-oca","doctor-mora","doctor-phillips","doctor-samuel-leon-brindis","doctoralbertooviedomota","doctorarroyo","doctorbelisariodominguez","doctorcoss","doctordomingochanona","doctorgonzalez","doctormiguelsilvasanguillermo","doctormontesdeoca","doctormora","doctorphillips","doctorsamuelleonbrindis","dodge-center","dodge-city","dodgecenter","dodgecity","dodgeville","dodson-branch","dodsonbranch","doe-valley","doevalley","doffing","dogtown","dolan-springs","dolansprings","dolbeau-mistassini","dolbeaumistassini","dolgeville","dollar-bay","dollar-corner","dollar-point","dollarbay","dollarcorner","dollard-des-ormeaux","dollarddesormeaux","dollarpoint","dolores","dolores-cuadrilla-de-enmedio","dolores-hidalgo","dolores-jaltenango","dolorescuadrilladeenmedio","doloreshidalgo","doloresjaltenango","dolton","domingo-arenas","domingoarenas","don-antonio","don-diego","don-francisco","don-samuel","don-valley-village","dona-ana","donaana","donaciano-ojeda","donacianoojeda","donaji","donald","donaldsonville","donalsonville","donantonio","dondiego","donfrancisco","dongan-hills","donganhills","dongu","doniphan","donna","donnacona","donora","donovan-estates","donovanestates","donsamuel","donvalleyvillage","doolittle","dooms","dora","doral","doraville","dorchester","dormont","dorneyville","dorset-park","dorsetpark","dorval","dos-arroyos","dos-bocas","dos-ceibas","dos-de-abril","dos-montes","dos-palos","dos-rios","dosarroyos","dosbocas","dosceibas","dosdeabril","dosmontes","dospalos","dosrios","dotegiare","dothan","double-oak","double-springs","doubleoak","doublesprings","douglas","douglass","douglass-hills","douglasshills","douglaston","douglasville","dousman","dove-creek","dove-valley","dovecreek","dover","dover-base-housing","dover-beaches-north","dover-beaches-south","dover-foxcroft","dover-plains","doverbasehousing","doverbeachesnorth","doverbeachessouth","doverfoxcroft","doverplains","dovevalley","dowagiac","dowling","downers-grove","downersgrove","downey","downieville","downingtown","downsview-roding-cfb","downsviewrodingcfb","downtown-brooklyn","downtown-honolulu","downtownbrooklyn","downtownhonolulu","dowsett-highlands","dowsetthighlands","doxey","doxhicho","doxteje-barrio-primero","doxteje-centro","doxtejebarrioprimero","doxtejecentro","doylestown","dp","dq","dr","dracut","drain","dranesville","draper","dravosburg","drayton-valley","draytonvalley","drc","dresden","dresher","drew","drexel","drexel-heights","drexel-hill","drexelheights","drexelhill","driggs","dripping-springs","drippingsprings","dro","druid-hills","druidhills","drum-point","drummondville","drumpoint","drumright","drw","dry-ridge","dry-run","dryden","dryridge","dryrun","ds","dsad","dsi","dslb","dtc","du-quoin","duarte","dublin","dubois","duboistown","dubuque","duchesne","duck-hill","duck-lake","duckhill","ducklake","dudley","due-west","duenweg","duewest","dufferin-grove","dufferingrove","dulac","dulce","dulce-grande","dulcegrande","dulles-town-center","dullestowncenter","duluth","dumas","dumbarton","dumfries","dumont","dunbar","duncan","duncannon","duncansville","duncanville","dundalk","dundas","dundee","dunean","dunedin","dunellen","dunes-city","dunescity","dunham","dunkirk","dunkirk-town-center","dunkirktowncenter","dunlap","dunmore","dunn","dunn-loring","dunnellon","dunnigan","dunnloring","dunnstown","dunnville","dunsmuir","dunstable","dunwoody","dupo","dupont","dupree","duquesne","duquoin","dur","durand","durango","durant","durham","duryea","duson","dutch-harbor","dutchess","dutchharbor","duval","duvall","duxbury","dv","dvh","dvsf","dvv","dw","dwej","dwight","dyer","dyersburg","dyersville","dyker-heights","dykerheights","dysart","dzan","dzemul","dzibalchen","dzibikak","dzidzantun","dzilam-de-bravo","dzilam-gonzalez","dzilamdebravo","dzilamgonzalez","dzitas","dzitbalche","dzitnup","dzitya","dziuche","dzoncauich","dzonot-carretero","dzonotcarretero","dzula","dzununcan","e3","ea","eab","eads","eafb","eag","eagan","eagar","eagle","eagle-butte","eagle-grove","eagle-lake","eagle-mountain","eagle-pass","eagle-point","eagle-river","eaglebutte","eaglegrove","eaglelake","eaglemountain","eaglepass","eaglepoint","eagleriver","eagleton-village","eagletonvillage","eagleview","eagleville","ealm","earle","earlham","earlimart","earlington","earlston","earlville","early","earth","easf","easley","east-alton","east-amherst","east-angus","east-atlantic-beach","east-aurora","east-bangor","east-berlin","east-bernard","east-berwick","east-bethel","east-boston","east-brainerd","east-brewton","east-bridgewater","east-bronson","east-brookfield","east-brooklyn","east-broughton","east-brunswick","east-cambridge","east-canton","east-carbon-city","east-chattanooga","east-chicago","east-cleveland","east-concord","east-conemaugh","east-dennis","east-douglas","east-dublin","east-dubuque","east-dundee","east-earl","east-elmhurst","east-end","east-end-danforth","east-falls","east-falmouth","east-farmingdale","east-flat-rock","east-flatbush","east-florence","east-foothills","east-franklin","east-freehold","east-gaffney","east-garden-city","east-garfield-park","east-glenville","east-grand-forks","east-grand-rapids","east-greenbush","east-greenville","east-greenwich","east-griffin","east-gull-lake","east-gwillimbury","east-haddam","east-hampton","east-hampton-north","east-hanover","east-harlem","east-hartford","east-harwich","east-haven","east-hazel-crest","east-helena","east-hemet","east-highland-park","east-hill-meridian","east-hills","east-honolulu","east-independence","east-islip","east-ithaca","east-jordan","east-kingston","east-la-mirada","east-lake","east-lake-orient-park","east-lansdowne","east-lansing","east-lexington","east-liverpool","east-longmeadow","east-los-angeles","east-machias","east-manoa","east-massapequa","east-mckeesport","east-meadow","east-merrimack","east-millcreek","east-millinocket","east-milton","east-missoula","east-moline","east-moriches","east-mount-airy","east-naples","east-new-york","east-newark","east-newnan","east-norriton","east-northport","east-norwalk","east-norwich","east-oak-lane","east-oakdale","east-orange","east-palatka","east-palestine","east-palo-alto","east-pasadena","east-patchogue","east-pensacola-heights","east-peoria","east-pepperell","east-perrine","east-petersburg","east-pittsburgh","east-point","east-port-orchard","east-porterville","east-prairie","east-providence","east-quincy","east-quogue","east-rancho-dominguez","east-renton-highlands","east-richmond-heights","east-ridge","east-riverdale","east-rochester","east-rockaway","east-rockingham","east-rutherford","east-sahuarita","east-saint-louis","east-san-gabriel","east-sandwich","east-setauket","east-shoreham","east-somerville","east-sonora","east-spencer","east-stroudsburg","east-sumter","east-syracuse","east-tawas","east-tremont","east-troy","east-uniontown","east-valley","east-village","east-washington","east-wellington","east-wenatchee","east-wenatchee-bench","east-williston","east-windsor","east-york","eastalton","eastamherst","eastangus","eastatlanticbeach","eastaurora","eastbangor","eastberlin","eastbernard","eastberwick","eastbethel","eastboston","eastbrainerd","eastbrewton","eastbridgewater","eastbronson","eastbrookfield","eastbrooklyn","eastbroughton","eastbrunswick","eastcambridge","eastcanton","eastcarboncity","eastchattanooga","eastchester","eastchicago","eastcleveland","eastconcord","eastconemaugh","eastdennis","eastdouglas","eastdublin","eastdubuque","eastdundee","eastearl","eastelmhurst","eastend","eastenddanforth","eastfalls","eastfalmouth","eastfarmingdale","eastflatbush","eastflatrock","eastflorence","eastfoothills","eastfranklin","eastfreehold","eastgaffney","eastgardencity","eastgarfieldpark","eastgate","eastglenville","eastgrandforks","eastgrandrapids","eastgreenbush","eastgreenville","eastgreenwich","eastgriffin","eastgulllake","eastgwillimbury","easthaddam","eastham","easthampton","easthamptonnorth","easthanover","eastharlem","easthartford","eastharwich","easthaven","easthazelcrest","easthelena","easthemet","easthighlandpark","easthillmeridian","easthills","easthonolulu","eastindependence","eastislip","eastithaca","eastjordan","eastkingston","eastlake","eastlakeorientpark","eastlamirada","eastland","eastlansdowne","eastlansing","eastlawn-gardens","eastlawngardens","eastlexington","eastliverpool","eastlongmeadow","eastlosangeles","eastmachias","eastman","eastmanoa","eastmassapequa","eastmckeesport","eastmeadow","eastmerrimack","eastmillcreek","eastmillinocket","eastmilton","eastmissoula","eastmoline","eastmont","eastmoriches","eastmountairy","eastnaples","eastnewark","eastnewnan","eastnewyork","eastnorriton","eastnorthport","eastnorwalk","eastnorwich","eastoakdale","eastoaklane","easton","eastorange","eastover","eastpalatka","eastpalestine","eastpaloalto","eastpasadena","eastpatchogue","eastpensacolaheights","eastpeoria","eastpepperell","eastperrine","eastpetersburg","eastpittsburgh","eastpoint","eastpointe","eastport","eastporterville","eastportorchard","eastprairie","eastprovidence","eastquincy","eastquogue","eastranchodominguez","eastrentonhighlands","eastrichmondheights","eastridge","eastriverdale","eastrochester","eastrockaway","eastrockingham","eastrutherford","eastsahuarita","eastsaintlouis","eastsandwich","eastsangabriel","eastsetauket","eastshoreham","eastsomerville","eastsonora","eastspencer","eaststroudsburg","eastsumter","eastsyracuse","easttawas","easttremont","easttroy","eastuniontown","eastvale","eastvalley","eastvillage","eastville","eastwashington","eastwellington","eastwenatchee","eastwenatcheebench","eastwick","eastwilliston","eastwindsor","eastwood","eastyork","eaton","eaton-estates","eaton-rapids","eatonestates","eatonrapids","eatons-neck","eatonsneck","eatonton","eatontown","eatonville","eau-claire","eauclaire","eb","ebano","ebensburg","ebj","ebll","ec","eca","ecatepec-de-morelos","ecatepecdemorelos","ecatzingo-de-hidalgo","ecatzingodehidalgo","ecc","ecdm","ecel","ecep","ecg","echelon","echo-park","echopark","eclectic","eclq","ecm","eco","economy","ecorse","ecr","ecsc","ecu","ecuandureo","ecvh","ecwd","ecx","ecyo","ed","eda","edb","edc","edcouch","edd","eddington","eddystone","eddyville","eden","eden-isle","eden-prairie","eden-roc","eden-valley","edenbridge-humber-valley","edenbridgehumbervalley","edenisle","edenprairie","edenroc","edenton","edenvalley","edfm","edg","edgar","edgard","edgartown","edgecliff-village","edgecliffvillage","edgecomb","edgefield","edgemere","edgemont-park","edgemontpark","edgemoor","edgerton","edgewater","edgewater-park","edgewaterpark","edgewood","edgeworth","edh","edi","edina","edinboro","edinburg","edinburgh","edison","edisto","edl","edlf","edlr","edm","edmond","edmonds","edmonston","edmonton","edmore","edmundston","edna","edneyville","edo","edr","eds","edsf","edson","edt","edtn","edu","edwards","edwards-air-force-base","edwardsairforcebase","edwardsburg","edwardsville","ee","eec","eed","eedc","eer","ees","eev","ef","effingham","effort","efr","efrain-a-gutierrez","efrainagutierrez","eg","egc","egf","egg-harbor-city","eggertsville","eggharborcity","egipto","egl","eglin-air-force-base","eglin-village","eglinairforcebase","eglinton-east","eglintoneast","eglinvillage","eglv","egp","egr","egv","egypt","egypt-lake-leto","egyptlakeleto","eh","ehc","ehdc","ehdg","ehdx","eheg","eheh","ehlc","ehm","ehn","ehp","ehrenberg","ehsi","ehv","ei","eidson-road","eidsonroad","eielson-air-force-base","eielsonairforcebase","ej","ejidal","ejido-benito-juarez","ejido-cinco-de-mayo","ejido-cohuibampo","ejido-de-dolores","ejido-de-guadalupe","ejido-de-la-finca","ejido-de-mozoquilpan","ejido-de-san-mateo-coapexco","ejido-del-tejocote","ejido-del-tunal-nenaxi","ejido-el-castillo","ejido-el-rosario","ejido-el-saucillo","ejido-el-vergel","ejido-general-leandro-valle","ejido-hidalgo","ejido-javier-rojo-gomez","ejido-jesus-maria","ejido-jiquilpan","ejido-la-guayana-rancho-seco","ejido-la-joya","ejido-la-pina-maromilla","ejido-la-quemada","ejido-la-soledad","ejido-lazaro-cardenas","ejido-loma-de-malacota","ejido-los-huastecos","ejido-mayocoba","ejido-michoacan-de-ocampo","ejido-miraflores","ejido-netzahualcoyotl","ejido-nuevo","ejido-nuevo-leon","ejido-ohuira","ejido-ojo-de-agua","ejido-patzcuaro","ejido-plan-de-ayala","ejido-quintana-roo","ejido-saltillo","ejido-san-cristobal","ejido-san-diego","ejido-san-jose-xilatzen","ejido-san-lorenzo-cuauhtenco","ejido-sinaloa","ejido-sonora","ejido-tabasco","ejido-toluca","ejido-tosalibampo","ejido-venustiano-carranza","ejido-vicente-guerrero","ejido-viejo","ejido-yucatan","ejido-zaragoza","ejidobenitojuarez","ejidocajonojodeaguanumerodos","ejidocincodemayo","ejidocohuibampo","ejidodecoscomatedelprogreso","ejidodedolores","ejidodeguadalupe","ejidodelafinca","ejidodeltejocote","ejidodeltunalnenaxi","ejidodemozoquilpan","ejidodesanmateocoapexco","ejidoelcastillo","ejidoelrosario","ejidoelsaucillo","ejidoelvergel","ejidogeneralleandrovalle","ejidohidalgo","ejidojavierrojogomez","ejidojesusmaria","ejidojiquilpan","ejidolaguayanaranchoseco","ejidolajoya","ejidolapinamaromilla","ejidolapitahayasantodomingo","ejidolaquemada","ejidolasoledad","ejidolazarocardenas","ejidolomademalacota","ejidoloshuastecos","ejidomayocoba","ejidomichoacandeocampo","ejidomiraflores","ejidonetzahualcoyotl","ejidonuevo","ejidonuevoleon","ejidoohuira","ejidoojodeagua","ejidopalmaejidosanfrancisco","ejidopatzcuaro","ejidoplandeayala","ejidoquintanaroo","ejidosaltillo","ejidosancristobal","ejidosandiego","ejidosanjosexilatzen","ejidosanlorenzocuauhtenco","ejidosinaloa","ejidosonora","ejidotabasco","ejidotoluca","ejidotosalibampo","ejidovenustianocarranza","ejidovicenteguerrero","ejidoviejo","ejidoyucatan","ejidozaragoza","ejm","ejrg","ejutla","ejutla-de-crespo","ejutladecrespo","ek","ekalaka","ekmul","ekpedz","el","el-abra","el-acebuche","el-aguacatal","el-aguacate","el-aguajito","el-aguila","el-aguila-la-mesa","el-ahuacate","el-alvareno","el-ambar","el-anono","el-arador","el-arco","el-arenal","el-bajio","el-bajio-la-laguna","el-barrido","el-barril","el-barrio-de-la-soledad","el-bejuco","el-bellote-miguel-de-la-madrid","el-bingu","el-blanco","el-bosque","el-botadero","el-boxtha","el-burrion","el-cabezon","el-cabi","el-cahulote-de-santa-ana","el-cajon","el-calvario","el-camalote","el-camaron","el-cambio","el-camino-real","el-campanario-y-oradel","el-campo","el-canario","el-capomal","el-capulin","el-capulin-la-nueva-pochota","el-capulo-la-quebradora","el-caracol","el-carmen","el-carmen-aztama","el-carmen-el-limon","el-carmen-ocotepec","el-carmen-xalpatlahuaya","el-carreton","el-carrizal","el-carrizalito","el-carrizo","el-castillo","el-cazadero","el-cedro","el-cenidor","el-cenizo","el-censo","el-centenario","el-centro","el-cereso","el-cerrillo-vista-hermosa","el-cerrito","el-cerrito-corona","el-cerro","el-cerro-mission","el-cesped","el-chacal","el-chante","el-chauz","el-chayote","el-chico","el-chinaco-el-pujido","el-chocolate","el-chote","el-cid","el-ciervo","el-ciruelo","el-coacoyul","el-cocuite","el-coecillo","el-colegio","el-colomo","el-colorado","el-coloso","el-conchero","el-conejo","el-congo","el-consuelo","el-consuelo-ulapa","el-contadero-de-matamoros","el-control","el-copal","el-copalar","el-copalillo","el-copetillo","el-coporo","el-corcovado","el-corte","el-cortes","el-cortijo","el-coto","el-coyote","el-coyul","el-crucero-de-santa-maria","el-cuenqueno","el-cuervero-cuerveros","el-cuije","el-cuitzillo-grande","el-curtidor","el-cuyo","el-diamante-la-retranca","el-diez","el-divisador","el-dorado","el-dorado-hills","el-dorado-springs","el-durazno","el-eden","el-embarcadero","el-encanto","el-encanto-del-cerril","el-esclavo","el-escobillo","el-escondido","el-escoplo","el-escribano","el-espejo","el-espinal","el-espinalillo","el-estudiante","el-fortin","el-fresno","el-fuerte","el-fuerte-de-la-union","el-galaneno","el-gallinero","el-gallo","el-granada","el-grullo","el-guaco","el-guayabito","el-guayabo","el-habal","el-habillal","el-hatito","el-hielo","el-higo","el-higueral","el-huajote","el-huarache-el-guarache","el-huaxtho","el-huerfano","el-huexco","el-huidero","el-huitusi","el-huixmi","el-huizache","el-humo","el-jabali","el-jacal","el-jaguey","el-jaral","el-jaralito","el-jardin","el-jazmin","el-jebel","el-jiadi","el-jicaral","el-jicote","el-jobo","el-juile","el-lago","el-lampotal","el-largo","el-laurel","el-lencero","el-lequeitio","el-letrero","el-limar","el-limon","el-limon-de-los-ramos","el-limonar","el-lindero","el-llanito","el-llano","el-llano-del-compromiso","el-llano-santa-maria","el-lobo","el-loreto-occidental","el-lucero","el-maguey","el-magueyal","el-maluco","el-mango","el-mentidero","el-meson","el-metlapil","el-mezquitillo","el-milagro","el-mirador","el-mirage","el-mogote","el-molino","el-mollejon","el-monte","el-moral","el-moreno-san-miguel-moreno","el-morro","el-muey","el-nabo","el-nacimiento","el-naranjillo","el-naranjito","el-naranjo","el-nayar","el-nigromante","el-nilo","el-nino","el-nio","el-nith","el-nopal","el-obraje","el-ocotal","el-ocotito","el-ojuelo","el-olvera","el-organal","el-oro","el-oro-de-hidalgo","el-pacayal","el-palacio","el-palmar","el-palmar-grande","el-palmar-san-gabriel","el-palmarcito","el-palmito","el-panorama","el-papayo","el-paracho","el-paraiso","el-paraiso-la-charca","el-paredon","el-paredoncito","el-parral","el-paso","el-pedregal","el-penasco","el-pericon","el-peru","el-pescadero","el-picacho","el-pilar","el-pino","el-pinto","el-pintor","el-pitahayo","el-pital","el-plan","el-platanal","el-plateado-de-joaquin-amaro","el-pochotal","el-polvorin","el-portal","el-porvenir","el-porvenir-agrarista","el-porvenir-de-velasco-suarez","el-porvenir-i","el-potrero","el-potrero-de-san-diego","el-potrero-de-sataya","el-pozo","el-pozole","el-progreso","el-progreso-hidalgo","el-pueblito","el-pueblito-garbanzal","el-puerto","el-puerto-magu","el-puesto","el-quelite","el-quince","el-ramal-porvenir","el-ranchito","el-rancho","el-rayo","el-realito","el-recodo","el-recodo-de-san-jose-axalco","el-recreo","el-refugio","el-refugio-de-los-sauces","el-refugio-de-penuelas","el-remolino","el-reno","el-retiro","el-rincon","el-rincon-citlaltepetl","el-rincon-de-la-candelaria","el-rincon-de-los-perales","el-rio","el-roble","el-rodeo","el-romereno-infonavit","el-rosal","el-rosario","el-rosario-de-arriba","el-rucio","el-sabino","el-sacrificio","el-sahuaral","el-saladito","el-salero","el-salitre","el-salto","el-salto-de-espejo","el-salto-de-eyipantla","el-salvador","el-saneal","el-saucillo","el-saucillo-fraccionamiento","el-saucito-el-horno","el-sauz","el-sauz-de-abajo","el-sauz-el-sauz-de-villasenor","el-sauzal-de-rodriguez","el-segundo","el-sibal","el-silencio","el-sitio","el-siviral-jigica","el-sobrante","el-suchil","el-susto","el-tamarindo","el-tecolote","el-tecuan","el-tejar","el-tejocote","el-tejocote-el-domingo","el-tepetatal","el-tepetate","el-tepeyac","el-tephe","el-tequesquite","el-terrero","el-ticui","el-tigre","el-tintal","el-tizate","el-tortuguero","el-trapiche","el-triunfo","el-triunfo-1ra-seccion-cardona","el-tuito","el-tular","el-tule","el-tulin","el-tumbo","el-tunal","el-tzay","el-vado-de-san-pedro","el-valle-de-arroyo-seco","el-varal","el-vegil","el-veladero","el-venado","el-verano","el-verde","el-vergel","el-vicarlo","el-volador","el-walamo","el-zapotal","el-zapote","el-zapote-bravo","el-zapotillo","ela","elabra","elacebuche","elaguacatal","elaguacate","elaguajito","elaguila","elaguilalamesa","elahuacate","elalvareno","elambar","elambarelambardeecheverria","elanono","elarador","elarco","elarenal","elba","elbajio","elbajiolalaguna","elbarrido","elbarril","elbarriodelasoledad","elbejuco","elbellotemigueldelamadrid","elberta","elberton","elbingu","elblanco","elbosque","elbotadero","elbow-lake","elbowlake","elboxtha","elbridge","elburn","elburrion","elc","elcabezon","elcabi","elcahulotedesantaana","elcajon","elcalvario","elcamalote","elcamaron","elcambio","elcaminoreal","elcampanarioyoradel","elcampo","elcanario","elcapomal","elcapulin","elcapulinlanuevapochota","elcapulolaquebradora","elcaracol","elcarmen","elcarmenaztama","elcarmeneldesiertodelcarmen","elcarmenellimon","elcarmenocotepec","elcarmenxalpatlahuaya","elcarreton","elcarrizal","elcarrizalito","elcarrizo","elcastillo","elcazadero","elcedro","elcenidor","elcenizo","elcenso","elcentenario","elcentro","elcereso","elcerrillovistahermosa","elcerrito","elcerritocorona","elcerro","elcerromission","elcesped","elchacal","elchante","elchauz","elchayote","elchico","elchinacoelpujido","elchocolate","elchote","elcid","elciervo","elciruelo","elcoacoyul","elcocuite","elcoecillo","elcolegio","elcolomo","elcolorado","elcoloso","elconchero","elconejo","elcongo","elconsuelo","elconsueloulapa","elcontaderodematamoros","elcontrol","elcopal","elcopalar","elcopalillo","elcopetillo","elcoporo","elcorcovado","elcorte","elcortes","elcortijo","elcoto","elcoyote","elcoyul","elcrucerodesantamaria","elcuenqueno","elcuerverocuerveros","elcuije","elcuitzillogrande","elcurtidor","elcuyo","eldc","eldersburg","eldiamantelaretranca","eldiez","eldivisador","eldm","eldon","eldora","eldorado","eldorado-at-santa-fe","eldoradoatsantafe","eldoradohills","eldoradosprings","eldridge","eldurazno","eleanor","electra","electric-city","electriccity","eleden","eleele","elembarcadero","elencanto","elencantodelcerril","elephant-butte","elephantbutte","elesclavo","elescobillo","elescondido","elescoplo","elescribano","elespejo","elespinal","elespinalillo","elestudiante","elfers","elfortin","elfresno","elfuerte","elfuertedelaunion","elgalaneno","elgallinero","elgallo","elgin","elgranada","elgrullo","elguaco","elguayabito","elguayabo","elh","elhabal","elhabillal","elhatito","elhielo","elhigo","elhigueral","elhuajote","elhuaracheelguarache","elhuaxtho","elhuerfano","elhuexco","elhuidero","elhuitusi","elhuixmi","elhuizache","elhumo","elida","elim","eliot","elizabeth","elizabeth-city","elizabethcity","elizabethton","elizabethtown","elizabethville","elj","eljabali","eljacal","eljaguey","eljaral","eljaralito","eljardin","eljazmin","eljebel","eljiadi","eljicaral","eljicote","eljobo","eljuile","elk-city","elk-creek","elk-grove","elk-grove-village","elk-plain","elk-point","elk-rapids","elk-ridge","elk-river","elk-run-heights","elkader","elkcity","elkcreek","elkford","elkfork","elkgrove","elkgrovevillage","elkhart","elkhorn","elkin","elkins","elkins-park","elkinspark","elkland","elko","elko-new-market","elkonewmarket","elkplain","elkpoint","elkrapids","elkridge","elkriver","elkrunheights","elkton","elkview","ell","ellago","ellampotal","ellargo","ellaurel","ellaville","ellencero","ellendale","ellensburg","ellenton","ellenville","ellequeitio","ellerbe","elletrero","ellettsville","ellicott","ellicott-city","ellicottcity","ellijay","ellimar","ellimon","ellimonar","ellimondelosramos","ellindero","ellington","ellinwood","elliot-lake","elliotlake","ellis","ellisburg","ellison","ellisville","elllanito","elllano","elllanodelcompromiso","elllanosantamaria","ellobo","elloretooccidental","ellport","ellsworth","ellucero","ellwood-city","ellwoodcity","elm","elm-city","elm-creek","elm-grove","elm-springs","elma","elma-center","elmacenter","elmaguey","elmagueyal","elmaluco","elmango","elmcity","elmcreek","elmendorf","elmendorf-air-force-base","elmendorfairforcebase","elmentidero","elmer","elmeson","elmetlapil","elmezquitillo","elmgrove","elmhurst","elmilagro","elmira","elmira-heights","elmirador","elmirage","elmiraheights","elmogote","elmolino","elmollejon","elmont","elmonte","elmoral","elmore","elmorenosanmiguelmoreno","elmorro","elms-old-rexdale","elmsford","elmsoldrexdale","elmsprings","elmuey","elmvale","elmwood","elmwood-park","elmwood-place","elmwoodpark","elmwoodplace","elnabo","elnacimiento","elnaranjillo","elnaranjito","elnaranjo","elnayar","elnigromante","elnilo","elnino","elnio","elnith","elnopal","elo","elobraje","elocotal","elocotito","elojuelo","elolvera","elon","elop","elorganal","eloro","elorodehidalgo","elotepec","eloxochitlan","eloxochitlan-de-flores-magon","eloxochitlandefloresmagon","eloy","elp","elpacayal","elpalacio","elpalmar","elpalmarcito","elpalmargrande","elpalmarsangabriel","elpalmito","elpanorama","elpapayo","elparacho","elparaiso","elparaisolacharca","elparedon","elparedoncito","elparral","elpaso","elpedregal","elpedregaldeguadalupehidalgo","elpenasco","elpericon","elperu","elpescadero","elpicacho","elpilar","elpino","elpinto","elpintor","elpitahayo","elpital","elplan","elplatanal","elplateadodejoaquinamaro","elpm","elpochotal","elpolvorin","elportal","elporvenir","elporveniragrarista","elporvenirdevelascosuarez","elporvenirelporvenirdearriba","elporveniri","elpotrero","elpotrerodesandiego","elpotrerodesataya","elpozo","elpozole","elprogreso","elprogresohidalgo","elpueblito","elpueblitogarbanzal","elpuerto","elpuertomagu","elpuesto","elq","elquelite","elquince","elramalporvenir","elranchito","elrancho","elrayo","elrealito","elrecodo","elrecododesanjoseaxalco","elrecreo","elrefugio","elrefugiodelossauces","elrefugiodepenuelas","elremolino","elreno","elretiro","elrincon","elrinconcitlaltepetl","elrincondelacandelaria","elrincondelosperales","elrinconsantacruzdelrincon","elrio","elroble","elrodeo","elromerenoinfonavit","elrosal","elrosario","elrosariodearriba","elroy","elrucio","els","elsa","elsabino","elsacrificio","elsahuaral","elsaladito","elsalero","elsalitre","elsalto","elsaltodeespejo","elsaltodeeyipantla","elsalvador","elsaneal","elsaucillo","elsaucillofraccionamiento","elsaucitoelhorno","elsauz","elsauzalderodriguez","elsauzdeabajo","elsauzelsauzdevillasenor","elsberry","elsegundo","elsibal","elsilencio","elsitio","elsiviraljigica","elsm","elsmere","elsobrante","elsuchil","elsusto","elsv","eltamarindo","eltecolote","eltecuan","eltejar","eltejocote","eltejocoteeldomingo","eltepetatal","eltepetate","eltepeyac","eltephe","eltequesquite","elterrero","elticui","eltigre","eltingville","eltintal","eltizate","elton","eltortuguero","eltrapiche","eltriunfo","eltriunfo1raseccioncardona","eltriunfodelastresmaravillas","eltuito","eltular","eltule","eltulin","eltumbo","eltunal","eltzay","elvadodesanpedro","elvalledearroyoseco","elvaral","elvaralsansebastiannumerouno","elvegil","elveladero","elvenado","elverano","elverde","elvergel","elverson","elverta","elvicarlo","elvins","elvolador","elwalamo","elwood","ely","elyria","elysburg","elzapotal","elzapote","elzapotebravo","elzapotillo","em","ema","emancipacion-quetzalapa","emancipacionquetzalapa","emdo","emerald-isle","emerald-lake-hills","emerald-lakes","emerald-mountain","emeraldisle","emeraldlakehills","emeraldlakes","emeraldmountain","emerson","emerson-hill","emersonhill","emeryville","emigsville","emiliano-zapata","emiliano-zapata-casahuates","emiliano-zapata-el-ranchito","emiliano-zapata-san-jose-bata","emiliano-zapata-santo-domingo","emilianozapata","emilianozapatacasahuates","emilianozapataelranchito","emilianozapatasanjosebata","emilianozapatasantodomingo","emilio-carranza","emilio-carranza-santa-cruz","emilio-portes-gil","emiliocarranza","emiliocarranzasantacruz","emilioportesgil","eminence","emmaus","emmetsburg","emmett","emmitsburg","emory","empalme","empalme-escobedo","empalmeescobedo","empaque-tarriba","empaquetarriba","empire","emporia","emporium","emsworth","en","encantada-ranchito-el-calaboz","encantadaranchitoelcalaboz","encanto","encarnacion-de-diaz","encarnaciondediaz","enchanted-hills","enchanted-lake","enchantedhills","enchantedlake","encinal-colorado","encinalcolorado","encinitas","encino","enderby","endicott","endwell","energy","enetai","enfield","england","englehart","englemount-lawrence","englemountlawrence","englewood","englewood-cliffs","englewoodcliffs","english","english-corner","englishcorner","englishtown","enhaut","enid","enigma","enl","enlow","enm","ennis","enoch","enochville","enola","enon","enosburg-falls","enosburgfalls","enramadas","enrique-estrada","enriqueestrada","ensenada","ensley","entabladero","enterprise","enthavi","entiat","entronquedematehualaelhuizache","entronquelaredosalinasvictoria","enumclaw","eny","eo","eoda","eodh","eol","eor","ep","epa","epazoyucan","epda","epds","epg","eph","ephraim","ephrata","epi","epigmenio-gonzalez","epigmeniogonzalez","epitacio-huerta","epitaciohuerta","epkl","eplc","epm","epo","epping","epsg","epsom","epworth","eq","eqr","er","erath","erc","erd","erda","erdp","erec","erh","eri","erick","erie","erin","eringate-centennial-west-deane","eringatecentennialwestdeane","erlands-point-kitsap-lake","erlandspointkitsaplake","erlanger","erma","ermita-de-guadalupe","ermitadeguadalupe","erongaricuaro","erp","ersd","erving","erwin","erwinville","es","esc","escaleras","escalerilla-lagunas","escalerillalagunas","escalerillas","escalon","escambia","escamillas","escanaba","escarcega","escatawpa","escobares","escobedo","escolasticas","escolin-de-olarte","escolindeolarte","escondido","escuadron-doscientos-uno","escuadrondoscientosuno","escuinapa","escuintla","esd","esda","esde","esdr","ese","eseh","esf","esfuerzos-unidos","esfuerzosunidos","esg","esj","esjx","eskasoni-3","eskasoni3","esko","esl","eslc","esm","esmeralda","espanita","espanola","esparto","esperance","esperanza","espinal","espita","espy","esqueda","esquimalt","essex","essex-fells","essex-junction","essex-village","essexfells","essexjunction","essexvillage","essexville","estacada","estacion-bamoa","estacion-camacho","estacion-capomas","estacion-chimaneco","estacion-coahuila","estacion-conchos","estacion-consuelo","estacion-corral","estacion-corralejo","estacion-de-apulco","estacion-de-san-francisco","estacion-dobladero","estacion-huehuetan","estacion-joaquin","estacion-juanita","estacion-la-piedad","estacion-llano","estacion-mogone","estacion-obispo","estacion-penjamo","estacion-pescaderos","estacion-querendaro","estacion-rosales","estacion-san-jose","estacion-san-manuel","estacion-santa-engracia","estacion-tamuin","estacion-tuzantan","estacion-zamora","estacionbamoa","estacioncamacho","estacioncapomas","estacionchimaneco","estacioncoahuila","estacionconchos","estacionconsuelo","estacioncorral","estacioncorralejo","estaciondeapulco","estaciondesanfrancisco","estaciondobladero","estacionhuehuetan","estacionjoaquin","estacionjuanita","estacionlapiedad","estacionllano","estacionmogone","estacionobispo","estacionpenjamo","estacionpescaderos","estacionquerendaro","estacionrosales","estacionsanjose","estacionsanmanuel","estacionsantaengracia","estaciontamuin","estaciontuzantan","estacionzamora","estado-de-mexico","estadodemexico","estancia","estancia-de-animas","estancia-de-guadalupe","estancia-del-llano","estanciadeanimas","estanciadeguadalupe","estanciadelllano","estanzuela","estanzuela-de-romero","estanzueladeromero","estapilla","estell-manor","estelle","estellmanor","ester","esterhazy","estero","estero-de-milpas","estero-del-idolo","esterodelidolo","esterodemilpas","esteros","estes-park","estespark","estevan","esther","estherville","estill","estill-springs","estillsprings","estipa","estrada","estrella-de-belen","estrelladebelen","et","etchojoa","etchoropo","eted","ethete","etna","etobicoke","etobicoke-west-mall","etobicokewestmall","etowah","ettrick","etucuaro","etzatlan","eu","euan","eucalyptus-hills","eucalyptushills","euclid","eudora","eufaula","eugene","euharlee","euless","eunice","eupora","eureka","eureka-de-media-luna-eureka","eureka-mill","eureka-springs","eureka-y-belen","eurekademedialunaeureka","eurekamill","eurekasprings","eurekaybelen","eustis","eutaw","ev","evadale","evans","evans-city","evansburg","evanscity","evansdale","evanston","evansville","evart","evc","eveleth","evendale","everett","evergreen","evergreen-park","evergreenpark","everman","everson","evg","ew","ewa-beach","ewa-gentry","ewa-villages","ewabeach","ewagentry","ewavillages","ewb","ewing","ewm","ex-hacienda-de-guadalupe","ex-hacienda-de-xalpa","ex-hacienda-del-copal","ex-hacienda-el-hospital","ex-hacienda-la-concepcion","ex-hacienda-santa-ines","ex-rancho-san-dimas","ex-vinedos-guadalupe","excelsior","excelsior-springs","excelsiorsprings","excola","exeter","exhaciendadeguadalupe","exhaciendadelcopal","exhaciendadexalpa","exhaciendaelhospital","exhaciendalaconcepcion","exhaciendasantaines","exmore","experiment","exranchosandimas","exton","exvinedosguadalupe","ey","eyb","eyota","ez","ezb","ezc","ezequiel-montes","ezequielmontes","ezer","ezsd","fa","fabens","fabrica-concepcion","fabrica-de-melchor","fabricaconcepcion","fabricademelchor","factoryville","fafb","fair-grove","fair-haven","fair-lawn","fair-oaks","fair-oaks-ranch","fair-plain","fairbank","fairbanks","fairbanks-ranch","fairbanksranch","fairborn","fairburn","fairbury","fairchance","fairchild-air-force-base","fairchildairforcebase","fairchilds","fairdale","fairfax","fairfax-station","fairfaxstation","fairfield","fairfield-bay","fairfield-beach","fairfield-glade","fairfield-harbour","fairfield-heights","fairfieldbay","fairfieldbeach","fairfieldglade","fairfieldharbour","fairfieldheights","fairforest","fairgrove","fairhaven","fairhope","fairland","fairlawn","fairlea","fairless-hills","fairlesshills","fairmead","fairmont","fairmont-city","fairmontcity","fairmount","fairmount-heights","fairmountheights","fairoaks","fairoaksranch","fairplain","fairplains","fairplay","fairport","fairport-harbor","fairportharbor","fairton","fairview","fairview-ferndale","fairview-heights","fairview-park","fairview-shores","fairviewferndale","fairviewheights","fairviewpark","fairviewshores","fairway","fairwinds","fairwood","faja-de-oro","fajadeoro","falcon-heights","falcon-lake-estates","falconer","falconheights","falconlakeestates","falfurrias","falher","falkville","fall-branch","fall-city","fall-creek","fall-river","fallbranch","fallbrook","fallcity","fallcreek","falling-water","fallingbrook","fallingwater","fallon","fallriver","falls-church","falls-city","falls-creek","fallsburg","fallschurch","fallscity","fallscreek","fallston","falmouth","falmouth-foreside","falmouthforeside","faneuil","fannett","fanwood","far-rockaway","fargo","faribault","farley","farm-loop","farmer-city","farmercity","farmers-branch","farmers-loop","farmersbranch","farmersburg","farmersloop","farmersville","farmerville","farmingdale","farmington","farmington-hills","farmingtonhills","farmingville","farmland","farmloop","farmville","farnham","farr-west","farragut","farrell","farrington","farrockaway","farrwest","farwell","fasr","fate","faulkton","faxon","fayette","fayetteville","fb","fba","fc","fcd","fcds","fch","fcn","fco","fcos","fcp","fcs","fcu","fcy","fd","fdc","fdl","fdlf","fdm","fdmt","fdo","fdp","fdv","fe","fearrington-village","fearringtonvillage","feasterville","feather-sound","feathersound","federal-heights","federal-way","federalheights","federalsburg","federalway","fehc","felida","felipe-angeles","felipe-carrillo-puerto","felipe-neri-cuatepec","felipeangeles","felipecarrillopuerto","felipenericuatepec","fellsburg","fellsmere","felton","fennimore","fennville","fenton","fenwaykenmore","ferdinand","fergus","fergus-falls","fergusfalls","ferguson","ferme-neuve","fermeneuve","fermin-rabadan-cervantes","ferminrabadancervantes","fermont","fern-acres","fern-creek","fern-forest","fern-park","fern-prairie","fernacres","fernandina-beach","fernandinabeach","ferncreek","ferndale","fernforest","fernie","fernley","fernpark","fernprairie","fernway","ferriday","ferris","ferrisburgh","ferron","ferrum","ferry-pass","ferrypass","ferrysburg","fessenden","festus","fettershotspringsaguacaliente","ff","ffc","fg","fglp","fgt","fh","fhdb","fhn","fhs","fi","fife","fife-heights","fifeheights","fifth-street","fifthstreet","filer","fillmore","filomeno-mata","filomenomata","fim","financial-district","financialdistrict","fincastle","finderne","findlay","finley","finneytown","fir","fircrest","firebaugh","firestone","firing-range","firingrange","first-mesa","firstmesa","firthcliffe","fish-hawk","fish-lake","fisher","fishers","fishersville","fishhawk","fishhook","fishkill","fishlake","fishtown","fiskdale","fitchburg","fitzgerald","fitzwilliam","five-corners","five-forks","five-points","fivecorners","fiveforks","fivepoints","fivepointville","fjm","fk","fl","fla","flagami","flagler-beach","flagler-estates","flaglerbeach","flaglerestates","flagstaff","flanagan","flanders","flandreau","flat-river","flat-rock","flatbush","flatlands","flatonia","flatriver","flatrock","flatwoods","flda","fle","fleetwood","fleming-island","flemingdon-park","flemingdonpark","flemingisland","flemingsburg","flemington","fletcher","flf","flh","flin-flon","flinflon","flint","flint-city","flintcity","flippin","fll","flm","fln","flomaton","flor-azul","flor-batavia","flor-de-cacao","flora","flora-vista","floral-city","floral-park","florala","floralcity","floralpark","floravista","florazul","florbatavia","flordecacao","florence","florence-graham","florencegraham","florenceville-bristol","florencevillebristol","florencia","floresville","florham-park","florhampark","florida","florida-city","florida-ridge","floridacity","floridaridge","florin","floris","florissant","flossmoor","flourtown","flower-hill","flower-mound","flowerhill","flowermound","flowery-branch","flowerybranch","flowing-wells","flowingwells","flowood","floyd","floydada","flp","flt","flushing","flv","flw","flying-hills","flyinghills","fm","fmb","fmdv","fmi","fmo","fms","fn","fnc","fo","foam-lake","foamlake","fobes-hill","fobeshill","fod","fogo-island","fogoisland","foh","folcroft","foley","folkston","follansbee","folly-beach","follybeach","folsom","fond-du-lac","fonda","fonddulac","fontana","fontezuelas","foothill-farms","foothill-ranch","foothillfarms","foothillranch","for","ford-city","ford-heights","ford-island","fordcity","fordham","fordheights","fordisland","fords","fords-prairie","fordsprairie","fordyce","forest","forest-acres","forest-city","forest-glen","forest-grove","forest-heights","forest-hill","forest-hill-north","forest-hill-south","forest-hills","forest-lake","forest-meadows","forest-oaks","forest-park","forest-ranch","forestacres","forestbrook","forestcity","forestdale","forestglen","forestgrove","forestheights","foresthill","foresthillnorth","foresthills","foresthillsouth","forestlake","forestmeadows","forestoaks","forestpark","forestranch","forestville","forjadores-de-pachuca","forjadoresdepachuca","forked-river","forkedriver","forks","forman","forney","forrest","forrest-city","forrestcity","forreston","forsyth","fort-ashby","fort-atkinson","fort-belknap-agency","fort-belvoir","fort-bend","fort-benton","fort-bliss","fort-bragg","fort-branch","fort-campbell-north","fort-carson","fort-cavazos","fort-clark-springs","fort-collins","fort-coulonge","fort-covington-hamlet","fort-davis","fort-defiance","fort-deposit","fort-dick","fort-dix","fort-dodge","fort-drum","fort-edward","fort-erie","fort-fairfield","fort-frances","fort-gaines","fort-george-g-mead-junction","fort-gibson","fort-hall","fort-hamilton","fort-hancock","fort-hunt","fort-irwin","fort-kent","fort-knox","fort-lauderdale","fort-lee","fort-leonard-wood","fort-loramie","fort-lupton","fort-macleod","fort-madison","fort-mckinley","fort-mcmurray","fort-meade","fort-mill","fort-mitchell","fort-montgomery","fort-morgan","fort-myers","fort-myers-beach","fort-myers-shores","fort-nelson","fort-novosel","fort-oglethorpe","fort-payne","fort-pierce","fort-pierce-north","fort-pierce-south","fort-pierre","fort-plain","fort-polk-north","fort-polk-south","fort-recovery","fort-riley-north","fort-salonga","fort-saskatchewan","fort-scott","fort-shafter","fort-shawnee","fort-smith","fort-st-john","fort-stewart","fort-stockton","fort-sumner","fort-thomas","fort-thompson","fort-totten","fort-valley","fort-wadsworth","fort-walton-beach","fort-washakie","fort-washington","fort-wayne","fort-worth","fort-wright","fort-yates","fortashby","fortatkinson","fortbelknapagency","fortbelvoir","fortbend","fortbenton","fortbliss","fortbragg","fortbranch","fortcampbellnorth","fortcarson","fortcavazos","fortclarksprings","fortcollins","fortcoulonge","fortcovingtonhamlet","fortdavis","fortdefiance","fortdeposit","fortdick","fortdix","fortdodge","fortdrum","fortedward","forterie","fortfairfield","fortfrances","fortgaines","fortgeorgegmeadjunction","fortgibson","forthall","forthamilton","forthancock","forthunt","fortin-de-las-flores","fortindelasflores","fortirwin","fortkent","fortknox","fortlauderdale","fortlee","fortleonardwood","fortloramie","fortlupton","fortmacleod","fortmadison","fortmckinley","fortmcmurray","fortmeade","fortmill","fortmitchell","fortmontgomery","fortmorgan","fortmyers","fortmyersbeach","fortmyersshores","fortnelson","fortnovosel","fortoglethorpe","fortpayne","fortpierce","fortpiercenorth","fortpiercesouth","fortpierre","fortplain","fortpolknorth","fortpolksouth","fortrecovery","fortrileynorth","fortsalonga","fortsaskatchewan","fortscott","fortshafter","fortshawnee","fortsmith","fortstewart","fortstjohn","fortstockton","fortsumner","fortthomas","fortthompson","forttotten","fortuna","fortuna-foothills","fortunafoothills","fortvalley","fortville","fortwadsworth","fortwaltonbeach","fortwashakie","fortwashington","fortwayne","fortworth","fortwright","forty-fort","fortyates","fortyfort","foscoe","fossambault-sur-le-lac","fossambaultsurlelac","fossil","fosston","foster","foster-brook","foster-city","fosterbrook","fostercity","fostoria","fountain","fountain-green","fountain-hill","fountain-hills","fountain-inn","fountain-valley","fountainebleau","fountaingreen","fountainhead-orchard-hills","fountainheadorchardhills","fountainhill","fountainhills","fountaininn","fountainvalley","four-corners","four-oaks","four-seasons","fourcorners","fouroaks","fourseasons","fowler","fowlerville","fox-chapel","fox-chase","fox-creek","fox-farm-college","fox-island","fox-lake","fox-lake-hills","fox-point","fox-river-grove","fox-run","foxborough","foxchapel","foxchase","foxcreek","foxfarmcollege","foxisland","foxlake","foxlakehills","foxpoint","foxrivergrove","foxrun","fp","fpds","fpn","fpr","fps","fr","fraccion-milpillas","fraccion-san-roque-el-prieto","fraccionamiento-ciudad-olmeca","fraccionamiento-ciudad-yagul","fraccionamiento-costa-dorada","fraccionamiento-del-valle","fraccionamiento-la-florida","fraccionamiento-la-mezquitera","fraccionamiento-la-noria","fraccionamiento-la-trinidad","fraccionamiento-la-virgen","fraccionamiento-las-fuentes","fraccionamiento-las-liebres","fraccionamiento-los-alamos","fraccionamiento-los-angeles","fraccionamiento-los-prados","fraccionamiento-metropolis-ii","fraccionamiento-monte-olivo","fraccionamiento-paraiso-real","fraccionamiento-real-del-valle","fraccionamiento-real-palmas","fraccionamiento-san-miguel","fraccionamiento-santa-cruz","fraccionamiento-universo","fraccionamiento-valle-dorado","fraccionamiento-villa-jardin","fraccionamientociudadolmeca","fraccionamientociudadyagul","fraccionamientocolinasdelsol","fraccionamientocostadorada","fraccionamientodelvalle","fraccionamientolaflorida","fraccionamientolamezquitera","fraccionamientolanoria","fraccionamientolasfuentes","fraccionamientolasliebres","fraccionamientolatrinidad","fraccionamientolavirgen","fraccionamientolomasdeahuatlan","fraccionamientolosalamos","fraccionamientolosangeles","fraccionamientolosprados","fraccionamientometropolisii","fraccionamientomisiondelvalle","fraccionamientomonteolivo","fraccionamientoparaisoreal","fraccionamientoprivadasdelsol","fraccionamientorealdelvalle","fraccionamientorealdesanpablo","fraccionamientorealpalmas","fraccionamientosanmiguel","fraccionamientosantacruz","fraccionamientouniverso","fraccionamientovalledorado","fraccionamientovillajardin","fraccionamientovillasdelallave","fraccionmilpillas","fraccionsanroqueelprieto","frackville","framingham","framingham-center","framinghamcenter","francestown","francis","francisco-i-madero","francisco-ibarra-ramos","francisco-ignacio-madero","francisco-javier-mina","francisco-rueda","francisco-sarabia","francisco-serrato-san-bartolo","francisco-villa","francisco-zarco","franciscoibarraramos","franciscoignaciomadero","franciscoimadero","franciscojaviermina","franciscorueda","franciscosarabia","franciscosarabiacerritopelon","franciscoserratosanbartolo","franciscovilla","franciscozarco","francisville","franco","franco-tavera","franconia","francotavera","frankenmuth","frankford","frankfort","frankfort-square","frankfortsquare","franklin","franklin-center","franklin-furnace","franklin-lakes","franklin-park","franklin-springs","franklin-square","franklincenter","franklinfurnace","franklinlakes","franklinpark","franklinsprings","franklinsquare","franklinton","franklinville","frankston","franksville","frankton","fraser","frazee","frazeysburg","frazier-park","frazierpark","frc","frdv","fredepo","frederic","frederick","fredericksburg","frederickson","fredericktown","fredericton","fredonia","freeburg","freedom","freehold","freeland","freeman","freemansburg","freeport","freer","freetown","fremont","french-camp","french-creek","french-island","french-lick","french-settlement","frenchburg","frenchcamp","frenchcreek","frenchisland","frenchlick","frenchsettlement","frenchtown","frenchville","fresh-meadows","freshmeadows","fresnillo","fresno","fresno-nichi","fresnonichi","frewsburg","frg","friars-point","friarspoint","frias","friday-harbor","fridayharbor","fridley","friedens","friend","friendly","friendship","friendship-village","friendshipvillage","friendswood","friona","frisco","frisco-city","friscocity","fritch","fritz-creek","fritzcreek","frn","front-royal","frontenac","frontera","frontera-corozal","frontera-hidalgo","fronteracorozal","fronterahidalgo","fronteras","frontroyal","frostburg","frostproof","frp","fruit-cove","fruit-heights","fruit-hill","fruita","fruitcove","fruitdale","fruitheights","fruithill","fruitland","fruitland-park","fruitlandpark","fruitport","fruitridge-pocket","fruitridgepocket","fruitvale","fruitville","fryeburg","fs","fsc","fscp","fsj","fsll","fsm","fssb","ft","fu","fuentes-del-valle","fuentesdelvalle","fuentezuelas","fulda","fuller-heights","fullerheights","fullerton","fulshear","fulton","fultondale","fundy-bay","fundybay","funny-river","funnyriver","fuquay-varina","fuquayvarina","fussels-corner","fusselscorner","fv","fvd","fvdg","fvj","fw","fwb","fy","fyffe","fz","ga","gabino-barreda","gabinobarreda","gabriel-esquinca","gabriel-hernandez-mancinas","gabriel-leyva-velazquez","gabrielesquinca","gabrielhernandezmancinas","gabrielleyvasolanozapotillodos","gabrielleyvavelazquez","gachupines","gadsden","gaf","gafb","gaffney","gage-park","gagepark","gages-lake","gageslake","gahanna","gail","gainesboro","gainesville","gaithersburg","galax","galaxia-bonito-jalisco","galaxia-la-calera","galaxia-la-noria","galaxiabonitojalisco","galaxialacalera","galaxialanoria","galaxias-toluca","galaxiastoluca","galeana","galecio-narcia","galecionarcia","galena","galena-park","galenapark","galerade-panales","galeradepanales","galeras","gales-ferry","galesburg","galesferry","galesville","galeton","galeville","galindo","galion","gallatin","galliano","gallipolis","gallitzin","gallup","galt","galva","galveston","gam","gambara","gambier","gambino","gambo","gambrills","gameti","gamewell","ganado","gananoque","gander","gandho","gandy","gang-mills","ganges","gangmills","gantt","ganzda","gap","garcia","garden-acres","garden-city","garden-city-park","garden-city-south","garden-court","garden-grove","garden-home-whitford","garden-ridge","garden-view","gardena","gardenacres","gardencity","gardencitypark","gardencitysouth","gardencourt","gardendale","gardengrove","gardenhomewhitford","gardenridge","gardenview","gardere","gardiner","gardner","gardnertown","gardnerville","gardnerville-ranchos","gardnervilleranchos","garfield","garfield-heights","garfieldheights","gargantillo","garland","garner","garnet","garnett","garretson","garrett","garrett-park","garrettpark","garrettsville","garrison","garwood","gary","garyville","gas-city","gasca","gascity","gasj","gaspe","gasport","gasr","gassville","gaston","gastonia","gastonville","gate-city","gatecity","gates-mills","gates-north-gates","gatesmills","gatesnorthgates","gatesville","gateway","gatineau","gatlinburg","gautier","gavia-de-rionda","gaviaderionda","gaviotas-sur-el-cedral","gaviotassurelcedral","gaylord","gb","gbc","gbj","gc","gcc","gcp","gcs","gcv","gd","gda","gdb","gdl","gdm","gdo","gdpb","gdr","gdsc","gdt","ge","gearhart","geary","gee","geistown","genaro-codina","genaro-estrada","genarocodina","genaroestrada","general-alatriste-san-joaquin","general-andres-figueroa","general-angel-flores-la-palma","general-bravo","general-calixto-contreras","general-cepeda","general-enrique-estrada","general-francisco-villa","general-ignacio-zaragoza","general-juan-jose-rios","general-lazaro-cardenas","general-miguel-aleman","general-panfilo-natera","general-pascual-fentes","general-pedro-maria-anaya","general-simon-bolivar","general-trevino","general-zaragoza","general-zuazua","generalalatristesanjoaquin","generalandresfigueroa","generalangelfloreslapalma","generalbravo","generalcalixtocontreras","generalcepeda","generalenriqueestrada","generalfelipeangeleslosangeles","generalfranciscovilla","generalignaciozaragoza","generaljuanjoserios","generallaurogcalocaelrascon","generallazarocardenas","generalmiguelaleman","generalpanfilonatera","generalpascualfentes","generalpedromariaanaya","generalsimonbolivar","generaltrevino","generalzaragoza","generalzuazua","genesee","geneseo","geneva","geneva-on-the-lake","genevaonthelake","genoa","genoa-city","genoacity","genola","gentry","george","george-west","georgetown","georgewest","georgia","georgiana","geovillaslaurelesdelcampanario","gerald","gerber","gering","germantown","germantown-hills","germantownhills","geronimo","gervais","gettysburg","gf","gfn","gfv","gfw","gg","ggc","gge","gh","ghcc","ghm","gholson","ghw","gi","gibbon","gibbons","gibbsboro","gibbstown","gibraltar","gibson","gibson-city","gibsonburg","gibsoncity","gibsonia","gibsons","gibsonton","gibsonville","giddings","gideon","gifford","gig-harbor","gigharbor","gila","gila-bend","gilabend","gilbert","gilbert-creek","gilbertcreek","gilberto-camacho","gilbertocamacho","gilberts","gilbertsville","gilcrest","gildardo-magana-los-angeles","gildardomaganalosangeles","gilford","gilita","gill","gillespie","gillett","gillette","gilman","gilmanton","gilmer","gilroy","gimli","girard","girard-estate","girardestate","girardville","girdwood","giz","gj","gjh","gjjr","gjoa-haven","gjoahaven","gk","gkl","gl","glace-bay","glacebay","glade-spring","gladespring","gladeview","gladewater","gladstone","gladwin","glandorf","glasco","glasford","glasgow","glasgow-village","glasgowvillage","glassboro","glassmanor","glassport","glastonbury","glastonbury-center","glastonburycenter","glc","gldc","gleason","gleed","glen-allen","glen-alpine","glen-avon","glen-burnie","glen-carbon","glen-cove","glen-ellyn","glen-gardner","glen-head","glen-lyon","glen-oaks","glen-raven","glen-ridge","glen-rock","glen-rose","glen-willow","glenallen","glenalpine","glenarden","glenavon","glenburnie","glencarbon","glencoe","glencove","glendale","glendale-heights","glendaleheights","glendive","glendora","gleneagle","glenellyn","glenfield-jane-heights","glenfieldjaneheights","glengardner","glenhead","glenlyon","glenmont","glenmoor","glenmora","glenmore","glenn","glenn-dale","glenn-heights","glenndale","glennheights","glenns-ferry","glennsferry","glennville","glenoaks","glenolden","glenpool","glenraven","glenridge","glenrock","glenrose","glens-falls","glens-falls-north","glensfalls","glensfallsnorth","glenshaw","glenside","glenvar-heights","glenvarheights","glenview","glenville","glenwillow","glenwood","glenwood-city","glenwood-landing","glenwood-springs","glenwoodcity","glenwoodlanding","glenwoodsprings","glidden","glide","gln","globe","gloucester","gloucester-city","gloucester-courthouse","gloucester-point","gloucestercity","gloucestercourthouse","gloucesterpoint","glouster","gloversville","gloverville","glv","glyndon","gm","gma","gmla","gn","gnadenhutten","gnd","gne","gng","gnp","go","gobernador-cruz","gobernadorcruz","gobernadores","goddard","godefroy","goderich","godfrey","godley","goffstown","golconda","gold-bar","gold-beach","gold-camp","gold-canyon","gold-hill","gold-key-lake","gold-river","goldbar","goldbeach","goldcamp","goldcanyon","golden","golden-beach","golden-gate","golden-glades","golden-grove","golden-hills","golden-meadow","golden-shores","golden-triangle","golden-valley","goldenbeach","goldendale","goldengate","goldenglades","goldengrove","goldenhills","goldenmeadow","goldenrod","goldens-bridge","goldensbridge","goldenshores","goldentriangle","goldenvalley","goldfield","goldhill","goldkeylake","goldriver","goldsboro","goldsby","goldthwaite","goleta","golf-manor","golfmanor","golfo-de-santa-clara","golfodesantaclara","goliad","gomez-farias","gomez-palacio","gomez-poniente","gomezfarias","gomezpalacio","gomezponiente","gonzales","gonzales-ortega","gonzalesortega","gonzalez","gonzalez-ortega","gonzalezortega","goochland","good-hope","goodhope","goodhue","gooding","goodings-grove","goodingsgrove","goodland","goodlettsville","goodman","goodrich","goodview","goodwater","goodwell","goodyear","goose-creek","goosecreek","gordo","gordon","gordon-heights","gordonheights","gordonsville","goreville","gorham","gorman","goros-numero-dos","gorosnumerodos","goshen","gosnell","gotha","gothenburg","gotl","goulding","goulds","gouldsboro","gouverneur","gove","gowanda","gower","gp","gpe","gpf","gpma","gpn","gpp","gps","gpw","gq","gr","grabill","graceville","graciano-sanchez","gracianosanchez","grafton","graham","grain-valley","grainvalley","grajales","grambling","gramercy","gramercy-park","gramercypark","gran-morelos","granada","granadas","granadillas-la-colonia","granadillaslacolonia","granados","granbury","granby","grand-bank","grand-bay","grand-bayou-mobile-home-park","grand-blanc","grand-boulevard","grand-canyon","grand-canyon-village","grand-centre","grand-coulee","grand-falls-windsor","grand-forks","grand-forks-air-force-base","grand-haven","grand-island","grand-isle","grand-junction","grand-ledge","grand-marais","grand-meadow","grand-mound","grand-point","grand-prairie","grand-rapids","grand-ronde","grand-saline","grand-terrace","grandbank","grandbay","grandbayoumobilehomepark","grandblanc","grandboulevard","grandcanyon","grandcanyonvillage","grandcentre","grandcoulee","grande-cache","grande-digue","grande-prairie","grandecache","grandedigue","grandeprairie","grandfallswindsor","grandforks","grandforksairforcebase","grandhaven","grandisland","grandisle","grandjunction","grandledge","grandmarais","grandmeadow","grandmound","grandpoint","grandprairie","grandrapids","grandronde","grandsaline","grandterrace","grandview","grandview-heights","grandview-plaza","grandviewheights","grandviewplaza","grandville","grandwood-park","grandwoodpark","grandyle-village","grandylevillage","granger","grangeville","granite","granite-bay","granite-city","granite-falls","granite-hills","granite-quarry","granite-shoals","granitebay","granitecity","granitefalls","granitehills","granitequarry","graniteshoals","graniteville","granjas-ampliacion-santa-rosa","granjasampliacionsantarosa","granjenal","granmorelos","grant","grant-city","grant-park","grant-valkaria","grantcity","grantham","grantley","grantpark","grants","grants-pass","grantsburg","grantspass","grantsville","grantvalkaria","grantville","granville","granville-south","granvillesouth","grape-creek","grapecreek","grapeland","grapevine","grasonville","grass-lake","grass-valley","grasslake","grassvalley","graton","gravel-ridge","gravelbourg","gravelridge","gravenhurst","gravesend","gravette","gray","gray-summit","grayling","graymoor-devondale","graymoordevondale","grays-ferry","graysferry","grayshabor","grayslake","grayson","grayson-valley","graysonvalley","graysummit","graysville","grayville","great-barrington","great-bend","great-falls","great-kills","great-neck","great-neck-estates","great-neck-gardens","great-neck-plaza","great-river","greatbarrington","greatbend","greater-grand-crossing","greater-lakeburn","greater-napanee","greater-northdale","greater-sudbury","greater-upper-marlboro","greatergrandcrossing","greaterlakeburn","greaternapanee","greaternorthdale","greatersudbury","greateruppermarlboro","greatfalls","greatkills","greatneck","greatneckestates","greatneckgardens","greatneckplaza","greatriver","greatwood","greece","greeley","green","green-acres","green-bay","green-cove-springs","green-forest","green-harbor-cedar-crest","green-haven","green-hill","green-island","green-knoll","green-lake","green-level","green-meadows","green-oaks","green-park","green-river","green-rock","green-springs","green-tree","green-valley","green-valley-farms","greenacres","greenacres-city","greenacrescity","greenback","greenbay","greenbelt","greenbriar","greenbrier","greenburgh","greenbush","greencastle","greencovesprings","greendale","greene","greene-village","greenevillage","greeneville","greenfield","greenfields","greenforest","greenharborcedarcrest","greenhaven","greenhill","greenhills","greenisland","greenknoll","greenlake","greenland","greenlawn","greenlee","greenlevel","greenmeadows","greenoaks","greenock","greenpark","greenpoint","greenport","greenport-west","greenportwest","greenriver","greenrock","greensboro","greensburg","greensprings","greenstone","greentown","greentree","greenup","greenvale","greenvalley","greenvalleyfarms","greenville","greenwich","greenwood","greenwood-coxwell","greenwood-lake","greenwood-village","greenwoodcoxwell","greenwoodlake","greenwoodvillage","greer","gregorio-mendez","gregoriomendez","gregory","greilickville","grenada","gresham","gresham-park","greshampark","gretna","greybull","gridley","griffin","griffith","grifton","griggsville","grill","grimes","grimsby","grimshaw","grimsley","grinnell","grissom-air-force-base","grissomairforcebase","gro","groesbeck","grosse-ile","grosse-pointe","grosse-pointe-farms","grosse-pointe-park","grosse-pointe-shores","grosse-pointe-woods","grosseile","grossepointe","grossepointefarms","grossepointepark","grossepointeshores","grossepointewoods","groton","grottoes","grove","grove-city","grove-hall","grove-hill","grovecity","grovehall","grovehill","groveland","groveport","grover-beach","groverbeach","groves","groveton","grovetown","groveville","gruetli-laager","gruetlilaager","grundy","grundy-center","grundycenter","grunthal","gruver","grymes-hill","grymeshill","gs","gsa","gsb","gsec","gt","gu","gua","guacamayas","guachinango","guachochi","guadalajara","guadalcazar","guadalupe","guadalupe-buenavista","guadalupe-cachi","guadalupe-calderon","guadalupe-cote","guadalupe-de-atlas","guadalupe-de-lerma","guadalupe-de-paso-blanco","guadalupe-de-rivera","guadalupe-de-tambula","guadalupe-del-monte","guadalupe-enriquez","guadalupe-etla","guadalupe-grijalva","guadalupe-hidalgo","guadalupe-libertad","guadalupe-minerva","guadalupe-morelos","guadalupe-santa-ana","guadalupe-sarabia","guadalupe-septien","guadalupe-texcalac","guadalupe-tlachco","guadalupe-totoltepec","guadalupe-victoria","guadalupe-y-calvo","guadalupe-zaragoza","guadalupebuenavista","guadalupecachi","guadalupecalderon","guadalupecote","guadalupedeatlas","guadalupedelerma","guadalupedelmonte","guadalupedepasoblanco","guadalupederivera","guadalupedetambula","guadalupeenriquez","guadalupeetla","guadalupegrijalva","guadalupehidalgo","guadalupelibertad","guadalupeminerva","guadalupemorelos","guadalupesantaana","guadalupesarabia","guadalupeseptien","guadalupetexcalac","guadalupetlachco","guadalupetotoltepec","guadalupevictoria","guadalupeycalvo","guadalupezaragoza","guam","guamuchil","guanacevi","guanajuatillo","guanajuato","guandaro","guaquitepec","guasave","guasavito","guasimas-de-belem","guasimasdebelem","guatacalca","guatimape","guayalejo","guayameo","guaymas","guaymitas","guaytalpa","guelph","guemez","guerneville","guernsey","guerrero","guerrero-negro","guerreronegro","gueydan","guildhall","guildwood","guilford","guilford-center","guilford-siding","guilfordcenter","guilfordsiding","guillermo-prieto","guillermo-zuniga","guillermoprieto","guillermozuniga","guin","guixe","gulf-breeze","gulf-gate-estates","gulf-hills","gulf-park-estates","gulf-shores","gulfbreeze","gulfgateestates","gulfhills","gulfparkestates","gulfport","gulfshores","gulivoire-park","gulivoirepark","gum","gumlog","gun-barrel-city","gunbarrel","gunbarrelcity","gunnison","gunter","guntersville","guntown","gunyo-poniente-san-jose-gunyo","gunyoponientesanjosegunyo","gurdon","gurnee","gustavo-adolfo-madero","gustavo-diaz-ordaz","gustavoadolfomadero","gustavodiazordaz","gustine","guthrie","guthrie-center","guthriecenter","gutierrez-zamora","gutierrezzamora","guttenberg","guymon","guyton","gv","gvf","gw","gwinn","gwynn-oak","gwynnoak","gyc","gypsum","gz","h1s","ha","hacienda-arriba","hacienda-blanca","hacienda-de-cabanas","hacienda-de-la-bolsa","hacienda-de-marquez","hacienda-heights","hacienda-los-fresnos","hacienda-nueva","hacienda-san-pedro","hacienda-santa-fe","hacienda-sotavento","hacienda-tecate","haciendaarriba","haciendablanca","haciendadecabanas","haciendadelabolsa","haciendademarquez","haciendaheights","haciendalacruzfraccionamiento","haciendalosfresnos","haciendanueva","haciendasanpedro","haciendasantafe","haciendasotavento","haciendatecate","hackberry","hackensack","hackettstown","hackleburg","haddington","haddon-heights","haddonfield","haddonheights","hadley","hafb","hagaman","hagerman","hagerstown","hahira","hahnville","haiku","haiku-pauwela","haikupauwela","hailey","haines","haines-city","hainescity","hainesville","halacho","halawa","halawa-heights","halawaheights","hale-center","halecenter","haledon","haleiwa","hales-corners","halescorners","halesite","haleyville","half-moon","half-moon-bay","halfmoon","halfmoonbay","halfway","halfway-house","halfwayhouse","haliburton-village","haliburtonvillage","halifax","haliimaile","hall-park","hallam","hallandale-beach","hallandalebeach","hallettsville","hallock","hallowell","hallpark","halls","hallstead","hallsville","halstead","haltom-city","haltomcity","ham-lake","hamburg","hamden","hamilton","hamilton-city","hamilton-square","hamilton-worcester","hamiltoncity","hamiltonsquare","hamiltonworcester","hamlake","hamlet","hamlin","hammond","hammonton","hampden","hampden-sydney","hampdensydney","hampolol","hampshire","hampstead","hampton","hampton-bays","hampton-beach","hampton-falls","hampton-manor","hamptonbays","hamptonbeach","hamptonfalls","hamptonmanor","hamtramck","hana","hanahan","hanamaulu","hanapepe","hanapepe-heights","hanapepeheights","hanceville","hancock","hanford","hanley-hills","hanleyhills","hanna","hanna-city","hannacity","hannahs-mill","hannahsmill","hannawa-falls","hannawafalls","hannibal","hanover","hanover-park","hanoverpark","hansen","hanson","hansville","hantsport","hapeville","happy-camp","happy-valley","happy-valley-goose-bay","happycamp","happyvalley","happyvalleygoosebay","harahan","harbison-canyon","harbisoncanyon","harbor","harbor-beach","harbor-bluffs","harbor-hills","harbor-isle","harbor-springs","harborbeach","harborbluffs","harborhills","harborisle","harborsprings","harbour-breton","harbour-heights","harbourbreton","harbourheights","harbourmainchapelscovelakeview","hardeeville","hardin","hardinsburg","hardwick","harker-heights","harkerheights","harkers-island","harkersisland","harlan","harleigh","harlem","harlem-heights","harlemheights","harleysville","harlingen","harlowton","haro","harper","harper-woods","harpersville","harperwoods","harpswell-center","harpswellcenter","harrah","harriman","harrington","harrington-park","harringtonpark","harris","harris-hill","harrisburg","harrishill","harrison","harrisonburg","harrisonville","harriston","harristown","harrisville","harrodsburg","harrogate","hart","hartford","hartford-city","hartfordcity","hartington","hartland","hartley","hartranft","hartsdale","hartselle","hartshorne","hartsville","hartville","hartwell","harvard","harvest","harvey","harveys-lake","harveyslake","harwich","harwich-center","harwich-port","harwichcenter","harwichport","harwood-heights","harwoodheights","hasbrouck-heights","hasbrouckheights","haskell","haskins","haslet","haslett","hasson-heights","hassonheights","hastings","hastings-on-hudson","hastingsonhudson","hatboro","hatch","hatfield","hattiesburg","haubstadt","haughton","hauppauge","hauterive","hauula","havana","havelock","haven","haverhill","haverstraw","haviland","havre","havre-de-grace","havre-saint-pierre","havredegrace","havresaintpierre","haw-river","hawaii","hawaii-kai","hawaiian-acres","hawaiian-beaches","hawaiian-gardens","hawaiian-ocean-view","hawaiian-paradise-park","hawaiianacres","hawaiianbeaches","hawaiiangardens","hawaiianoceanview","hawaiianparadisepark","hawaiikai","hawarden","hawesville","hawi","hawkesbury","hawkins","hawkinsville","hawl","hawley","haworth","hawriver","hawthorn-woods","hawthorne","hawthornwoods","hay-river","hayden","hayes-center","hayes-subdivision","hayescenter","hayessubdivision","hayesville","hayfield","hayfork","haymarket","haynesville","hayneville","hayriver","hays","haysville","hayti","hayward","hazard","hazardville","hazel-crest","hazel-dell","hazel-green","hazel-park","hazelcrest","hazeldell","hazelgreen","hazelpark","hazelwood","hazen","hazlehurst","hazleton","hb","hbp","hc","hcb","hcdt","hcs","hcv","hd","hda","hdc","hdd","hdg","hdj","hdlb","hdln","hdlv","hdm","hdn","hdo","hdr","hdz","he","hea","head-of-the-harbor","head-of-westport","headingley","headland","headoftheharbor","headofwestport","healdsburg","healdton","healy","hearne","hearst","heath","heathcote","heathrow","heathsville","heavener","hebbronville","heber","heber-city","heber-overgaard","heber-springs","hebercity","heberovergaard","hebersprings","hebron","hebron-estates","hebronestates","hec","hecelchakan","hector","hector-caballero","hectorcaballero","hedwig-village","hedwigvillage","heeia","heflin","heidelberg","helemano","helena","helena-valley-northeast","helena-valley-northwest","helena-valley-southeast","helena-valley-west-central","helena-west-helena","helena-west-side","helenavalleynortheast","helenavalleynorthwest","helenavalleysoutheast","helenavalleywestcentral","helenawesthelena","helenawestside","helio-garcia-alfaro","heliogarciaalfaro","hellertown","hells-kitchen","hellskitchen","helmetta","helotes","helper","hemby-bridge","hembybridge","hemet","hemlock","hemlock-farms","hemlockfarms","hemphill","hempstead","henagar","henderson","hendersonville","hendron","hennepin","hennessey","henniker","henrietta","henry","henry-farm","henry-fork","henryetta","henryfarm","henryfork","henryville","hephzibah","heppner","herald","herald-harbor","heraldharbor","herculaneum","hercules","hereford","heribertovaldezromeroelguayabo","herington","heritage-creek","heritage-hills","heritage-lake","heritage-pines","heritage-pointe","heritage-village","heritagecreek","heritagehills","heritagelake","heritagepines","heritagepointe","heritagevillage","herkimer","hermann","hermanos-cedillo","hermanoscedillo","hermantown","hermenegildo-galeana","hermenegildo-j-aldana","hermenegildogaleana","hermenegildogaleana2daseccion","hermenegildojaldana","hermiston","hermitage","hermon","hermosa-beach","hermosabeach","hermosillo","hernandez","hernando","hernando-beach","hernandobeach","herndon","heroes-de-chapultepec","heroesdechapultepec","heroica-caborca","heroica-ciudad-de-tlaxiaco","heroica-matamoros","heroica-zitacuaro","heroicacaborca","heroicaciudaddetlaxiaco","heroicamatamoros","heroicazitacuaro","herouxville","herricks","herriman","herrin","herscher","hershey","hertford","hesperia","hesston","hettinger","hewitt","hewlett","hewlett-harbor","hewlettharbor","heyburn","heyworth","hf","hg","hg2s","hga","hh","hhi","hhk","hhw","hi","hialeah","hialeah-gardens","hialeahgardens","hiawassee","hiawatha","hibbing","hickam-field","hickamfield","hickman","hickory","hickory-creek","hickory-hills","hickory-withe","hickorycreek","hickoryhills","hickorywithe","hicksville","hico","hid","hidalgo","hidalgo-amajac","hidalgo-joshil","hidalgoamajac","hidalgojoshil","hidalgotitlan","hidden-hills","hidden-meadows","hidden-spring","hidden-valley","hidden-valley-lake","hiddenhills","hiddenmeadows","hiddenspring","hiddenvalley","hiddenvalleylake","hide-a-way-lake","hideaway","hideawaylake","higganum","higginsville","high-bridge","high-level","high-park-north","high-park-swansea","high-point","high-prairie","high-ridge","high-river","high-springs","highbridge","highfield-cascade","highfieldcascade","highgrove","highland","highland-acres","highland-beach","highland-city","highland-creek","highland-falls","highland-heights","highland-lake","highland-lakes","highland-mills","highland-park","highland-springs","highland-village","highlandacres","highlandbeach","highlandcity","highlandcreek","highlandfalls","highlandheights","highlandlake","highlandlakes","highlandmills","highlandpark","highlands","highlands-baywood-park","highlands-ranch","highlandsbaywoodpark","highlandsprings","highlandsranch","highlandvillage","highlevel","highmore","highparknorth","highparkswansea","highpoint","highprairie","highridge","highriver","highspire","highsprings","hightstown","highview","highwood","higinio-olivo","higinioolivo","higuera-blanca","higuera-de-los-vega","higuera-de-zaragoza","higuerablanca","higueradelosvega","higueradezaragoza","higueras","higueras-de-abuya","higueras-de-los-natoches","higuerasdeabuya","higuerasdelosnatoches","higuerillas","higueron","hiland-park","hilandpark","hilbert","hildale","hildebran","hill","hill-air-force-base","hill-city","hill-country-village","hill-n-dale","hillairforcebase","hillandale","hillcity","hillcountryvillage","hillcrest","hillcrest-heights","hillcrest-village","hillcrestheights","hillcrestvillage","hilldale","hiller","hilliard","hillndale","hillsboro","hillsboro-beach","hillsborobeach","hillsborough","hillsdale","hillside","hillside-lake","hillsidelake","hillsmere-shores","hillsmereshores","hillsville","hilltop-lakes","hilltoplakes","hillview","hilmar-irwin","hilmarirwin","hilo","hilton","hilton-head","hilton-head-island","hiltonhead","hiltonheadisland","hinckley","hindman","hines","hinesburg","hinesville","hingham","hinsdale","hinton","hiram","his","hitchcock","hith","hj","hja","hk","hl","hlcf","hlf","hlr","hm","hmb","hmn","hms","hn","hnd","ho","ho-ho-kus","hoback","hobart","hobbs","hobe-sound","hobesound","hoboken","hocaba","hockessin","hockinson","hoctun","hodgdon","hodgenville","hodgkins","hoffman-estates","hoffmanestates","hogansville","hoh","hohenwald","hohokus","hoisington","hokendauqua","hokes-bluff","hokesbluff","holbrook","holca","holcomb","holden","holden-heights","holdenheights","holdenville","holderness","holdrege","holgate","holiday","holiday-city-berkeley","holiday-city-south","holiday-heights","holiday-island","holiday-lakes","holiday-shores","holiday-valley","holidaycityberkeley","holidaycitysouth","holidayheights","holidayisland","holidaylakes","holidayshores","holidayvalley","holladay","holland","hollandale","holley","holliday","hollidaysburg","hollins","hollis","hollis-center","holliscenter","hollister","holliston","holloman-air-force-base","hollomanairforcebase","holly","holly-hill","holly-hills","holly-lake-ranch","holly-ridge","holly-springs","hollyhill","hollyhills","hollylakeranch","hollymead","hollyridge","hollysprings","hollywood","hollywood-park","hollywoodpark","holmen","holmes-beach","holmesbeach","holmesburg","holstein","holt","holton","holts-summit","holtssummit","holtsville","holtville","holualoa","holyoke","home","home-garden","home-gardens","homeacre-lyndora","homeacrelyndora","homedale","homegarden","homegardens","homeland","homeland-park","homelandpark","homer","homer-city","homer-glen","homercity","homerglen","homerville","homestead","homestead-meadows-north","homestead-meadows-south","homesteadmeadowsnorth","homesteadmeadowssouth","hometown","homewood","hominy","homosassa","homosassa-springs","homosassasprings","homun","honaker","honalo","honaunau-napoopoo","honaunaunapoopoo","hondo","honea-path","honeapath","honeoye-falls","honeoyefalls","honesdale","honey","honey-brook","honey-grove","honeybrook","honeygrove","honeyville","honokaa","honolulu","hood-river","hoodriver","hooker","hooks","hooksett","hool","hoolehua","hooper","hooper-bay","hooperbay","hoopers-creek","hooperscreek","hoopeston","hoosick-falls","hoosickfalls","hoover","hooverson-heights","hooversonheights","hopatcong","hopatcong-hills","hopatconghills","hope","hope-mills","hope-valley","hopedale","hopelchen","hopemills","hopevalley","hopewell","hopkins","hopkinsville","hopkinton","hopwood","hoquiam","horace","horatio","horcasitas","horicon","horizon-city","horizon-west","horizoncity","horizonwest","hormiguero","horn-lake","hornby-island","hornbyisland","hornell","hornepayne","hornitos","hornlake","hornsby-bend","hornsbybend","horse-cave","horse-pasture","horse-shoe","horsecave","horseheads","horseheads-north","horseheadsnorth","horsepasture","horseshoe","horseshoe-bay","horseshoe-bend","horseshoebay","horseshoebend","horsham","horton","hortonville","hoschton","hostotipaquillo","hot-springs","hot-springs-village","hot-sulphur-springs","hoth","hotsprings","hotspringsvillage","hotsulphursprings","houck","hough","houghton","houghton-lake","houghtonlake","houlton","houma","housatonic","houserville","houston","hov","how","howard","howard-beach","howard-city","howard-lake","howardbeach","howardcity","howardlake","howards-grove","howardsgrove","howe","howell","howey-in-the-hills","howeyinthehills","howland","howland-center","howland-island","howlandcenter","howlandisland","hoxie","hoyadecintoralahoyadearriba","hoyt-lakes","hoytlakes","hp","hpn","hpp","hps","hr","hs","hsf","hsm","hsmf","hsp","hss","hsv","ht","htc","huacapa-y-amestoy","huacapayamestoy","huachichil","huachinantla","huachinera","huachuca-city","huachucacity","huahuaxtla","huajicori","huajimic","huajintepec","huajintlan","huajoyuca","huajumbaro","hualahuises","hualcaltzinco","hualula","huamantla","huamuchapa","huamuchil","huamuxtitlan","huancito","huandacareo","huanguitio","huanimaro","huaniqueo-de-morales","huaniqueodemorales","huanusco","huapacal-1ra-seccion","huapacal1raseccion","huapacal2daseccionpuntabrava","huapinol","huaquechula","huasabas","huasca-de-ocampo","huascadeocampo","huascato","huatabampo","huatecalco","huatlatlauca","huatusco","huauchinango","huautepec","huautla","huautla-de-jimenez","huautladejimenez","huaxcaleca","huaxtla","huay-max","huay-pix","huayacanes","huayacocotla","huaymax","huaypix","huazantlan-del-rio","huazantlandelrio","huazulco","huazuntlan","hubbard","hubbard-lake","hubbardlake","hubbardston","huber-heights","huber-ridge","huberheights","huberridge","hudson","hudson-bay","hudson-bend","hudson-falls","hudson-lake","hudson-oaks","hudsonbay","hudsonbend","hudsonfalls","hudsonlake","hudsonoaks","hudsonville","huecahuasco","huehuetan","huehuetla","huehuetlan","huehuetlan-el-chico","huehuetlanelchico","huehuetoca","huejonapan","huejotitan","huejotzingo","huejucar","huejuquilla-el-alto","huejuquillaelalto","huejutla-de-reyes","huejutladereyes","huelo","huemetla","huepac","huepaco","huepalcalco-san-miguel","huepalcalcosanmiguel","huetamo-de-nunez","huetamodenunez","huexotitla","hueyapa","hueyapan","hueyapan-de-ocampo","hueyapandeocampo","hueycantenango","hueyitlalpan","hueyotlipan","hueypoxtla","hueytamalco","hueytepec","hueytlalpan","hueytown","hughes","hughes-springs","hughessprings","hughestown","hughesville","hughson","hugo","hugoton","huguenot","huguley","huhi","huichapan","huichihuayan","huilacapixtla","huilango","huiloapan","huiloapan-de-cuauhtemoc","huiloapandecuauhtemoc","huimanguillo","huimilpan","huiramba","huitchila","huitel","huitepec","huitiupan","huitron","huitzatarito","huitzila","huitzilac","huitzilan","huitzililla","huitziltepec","huitzitzilingo","huitzmaloc","huitzoltepec","huixcolotla","huixquilucan","huixquilucan-de-degollado","huixquilucandedegollado","huixtan","huixtepec","huixtla","huizachal","hull","humansville","humber-heights-westmount","humber-summit","humberheightswestmount","humbermede","humbersummit","humble","humboldt","humboldt-hill","humboldthill","humewood-cedarvale","humewoodcedarvale","hummels-wharf","hummelstown","hummelswharf","hunt-valley","hunter","hunters-creek","hunters-creek-village","hunterscreek","hunterscreekvillage","huntersville","huntertown","hunting-park","huntingburg","huntingdon","huntingpark","huntington","huntington-bay","huntington-beach","huntington-park","huntington-station","huntington-woods","huntingtonbay","huntingtonbeach","huntingtonpark","huntingtonstation","huntingtonwoods","huntingtown","huntingtown-town-center","huntingtowntowncenter","huntley","hunts-point","huntspoint","huntsville","huntvalley","hunucma","hunuku","hurley","hurlock","huron","huron-east","huroneast","hurricane","hurst","hurstbourne","hurstbourne-acres","hurstbourneacres","hurt","hustisford","hutchins","hutchinson","hutchinson-island-south","hutchinsonislandsouth","hutto","huxley","hv","hvgb","hvl","hvn","hvs","hvwc","hw","hwh","hws","hya","hyannis","hyattsville","hybla-valley","hyblavalley","hyde","hyde-park","hyden","hydepark","hydesville","hypoluxo","hyrum","hysham","hz","ia","iac","iaga","iagb","ib","ibarra","ibarrilla","ic","icard","iccw","ichan","icxotitla","id","ida-grove","idabel","idagrove","idaho","idaho-city","idaho-falls","idaho-springs","idahocity","idahofalls","idahosprings","idalou","idb","idc","idj","idlc","idlh","idli","idll","idlm","idlr","idls","idm","ido","idr","ids","idyllwild","idyllwild-pine-cove","idyllwildpinecove","idylwood","ie","iec","if","ifh","ig","igg","igh","igloolik","ignacio-allende","ignacio-allende-concepcion","ignacio-de-la-llave","ignacio-gutierrez-gomez","ignacio-lopez-rayon","ignacio-manuel-altamirano","ignacio-perez","ignacio-ramirez","ignacio-zaragoza","ignacio-zaragoza-1ra-seccion","ignacio-zaragoza-el-morro","ignacioallende","ignacioallendeconcepcion","ignaciodelallave","ignaciogutierrezgomez","ignaciolopezrayon","ignaciomanuelaltamirano","ignacioperez","ignacioramirez","ignaciozaragoza","ignaciozaragoza1raseccion","ignaciozaragozaelmorro","iguala-de-la-independencia","igualadelaindependencia","igualapa","ih","ihb","ihcs","ihn","ihp","ihs","ihuatzio","il","ilamatlan","ilchester","ile-des-chenes","iledeschenes","iliatenco","ilion","ill","illescas","illinois","ilr","im","ima","imdi","iml","imlay-city","imlaycity","immokalee","imperial","imperial-beach","imperialbeach","imuris","in","ina","incline-village","inclinevillage","indaparapeo","inde","independence","independencia","independent-hill","independenthill","india-hook","indiahook","indialantic","indian-harbour-beach","indian-head","indian-head-park","indian-heights","indian-hills","indian-hills-cherokee-section","indian-mountain-lake","indian-river","indian-river-estates","indian-river-shores","indian-rocks-beach","indian-shores","indian-springs","indian-springs-village","indian-trail","indian-wells","indiana","indianapolis","indianharbourbeach","indianhead","indianheadpark","indianheights","indianhills","indianhillscherokeesection","indianmountainlake","indianola","indianriver","indianriverestates","indianrivershores","indianrocksbeach","indianshores","indiansprings","indianspringsvillage","indiantown","indiantrail","indianwells","indio","industry","inez","ingalls","ingalls-park","ingallspark","ingersoll","ingleside","inglewood","inglewood-finn-hill","inglewoodfinnhill","inglis","ingram","inkerman","inkster","inman","inman-mills","inmanmills","innisfil","inniswold","inola","intercourse","interlachen","interlaken","international-falls","internationalfalls","inuvik","inver-grove-heights","invergroveheights","invermere","inverness","inverness-highlands-north","inverness-highlands-south","invernesshighlandsnorth","invernesshighlandssouth","inwood","inyo","inyokern","ioh","iola","ion","iona","ione","ionia","ionview","iop","iota","iow","iowa","iowa-city","iowa-colony","iowa-falls","iowa-park","iowacity","iowacolony","iowafalls","iowapark","ip","ipalapa","ipc","ipswich","iqaluit","iquinuapa","ir","iraan","iramuco","irapeo","irapuato","iratzio","irb","ire","irimbo","irmo","irolo","iron-mountain","iron-river","irondale","irondequoit","ironmountain","ironriver","ironton","ironville","ironwood","iroquois-falls","iroquois-point","iroquoisfalls","iroquoispoint","irricana","irrigon","irs","irvine","irvinehealthandsciencecomplex","irving","irving-park","irvingpark","irvington","irwin","irwindale","irwinton","is","isaacarriagasantaanamancera","isanti","iselin","ishpeming","isla","isla-aguada","isla-del-bosque","isla-holbox","isla-mujeres","isla-soyaltepec","isla-vista","islaaguada","isladelbosque","islaholbox","islamorada","islamujeres","island","island-city","island-heights","island-lake","island-park","island-walk","islandcity","islandheights","islandia","islandlake","islandpark","islandwalk","islas-agrarias-grupo-a","islas-agrarias-grupo-b","islasagrariasgrupoa","islasagrariasgrupob","islasoyaltepec","islavista","isle-of-hope","isle-of-normandy","isle-of-palms","isle-of-wight","isleofhope","isleofnormandy","isleofpalms","isleofwight","islington-city-centre-west","islingtoncitycentrewest","islip","islip-terrace","islipterrace","islita","issaquah","istaro","isv","it","italy","itasca","ithaca","itta-bena","ittabena","iturbide","itzamatitlan","itzoteno","iuka","iv","iva","ivanhoe","ives-estates","ivesestates","ivins","ivyland","iw","iwilei-anuenue","iwileianuenue","ixcamilpa","ixcapa","ixcapantla","ixcapuzalco","ixcateopan","ixcateopan-de-cuauhtemoc","ixcateopandecuauhtemoc","ixcatepec","ixcatla","ixcatlan","ixcuinquitlapilco","ixhuacan-de-los-reyes","ixhuacandelosreyes","ixhuapan","ixhuatan","ixhuatlan-de-madero","ixhuatlan-del-cafe","ixhuatlan-del-sureste","ixhuatlancillo","ixhuatlandelcafe","ixhuatlandelsureste","ixhuatlandemadero","ixil","ixmiquilpan","ixonia","ixpantepec-nieves","ixpantepecnieves","ixpila","ixtacamaxtitlan","ixtacapa-el-chico","ixtacapaelchico","ixtacomitan","ixtaczoquitlan","ixtahuiata-la-legua","ixtahuiatalalegua","ixtapa","ixtapa-zihuatanejo","ixtapaluca","ixtapan-de-la-concepcion","ixtapan-de-la-sal","ixtapan-del-oro","ixtapandelaconcepcion","ixtapandelasal","ixtapandeloro","ixtapangajoya","ixtapantongo","ixtapazihuatanejo","ixtenco","ixtepec","ixticpan","ixtlahuaca","ixtlahuaca-barrio","ixtlahuaca-de-cuauhtemoc","ixtlahuaca-de-rayon","ixtlahuacabarrio","ixtlahuacadecuauhtemoc","ixtlahuacaderayon","ixtlahuacan","ixtlahuacan-de-los-membrillos","ixtlahuacan-del-rio","ixtlahuacandelosmembrillos","ixtlahuacandelrio","ixtlan-de-juarez","ixtlan-de-los-hervores","ixtlan-del-rio","ixtlandejuarez","ixtlandeloshervores","ixtlandelrio","ixtlilco-el-chico","ixtlilcoelchico","ixtolco-de-morelos","ixtolcodemorelos","iz","iz1s","izamal","izem","izotepec","iztacalco","iztacapa","iztapalapa","izucar-de-matamoros","izucardematamoros","j-jesus-diaz-tzirio","j2s","ja","jaboncillo","jacala","jacarandas","jacinto-city","jacintocity","jack","jackpot","jacksboro","jackson","jackson-center","jackson-heights","jacksoncenter","jacksonheights","jacksonville","jacksonville-beach","jacksonvillebeach","jacksonwald","jacobus","jacona-de-plancarte","jaconadeplancarte","jaet","jaffrey","jaguey-blanco","jagueyblanco","jagueydetellezestaciontellez","jal","jala","jalacingo","jalapa","jalapilla","jalapita","jalcocotan","jalcomulco","jaleaca-de-catalan","jaleacadecatalan","jalipa","jalisco","jalmolonga-la-hacienda","jalmolongalahacienda","jalostotitlan","jalpa","jalpa-de-los-banos","jalpa-de-mendez","jalpadelosbanos","jalpademendez","jalpan","jalpilla","jaltenango-de-la-paz","jaltenangodelapaz","jaltenco","jaltepec","jaltepec-de-candayoc","jaltepecdecandayoc","jaltepetongo","jaltiche-de-arriba","jaltichedearriba","jaltipan-de-morelos","jaltipandemorelos","jaltocan","jaltomate","jaluco","jalupa","jamaica","jamaica-beach","jamaica-plain","jamaicabeach","jamaicaplain","jamapa","jamay","james-city","james-island","jamesburg","jamescity","jamesisland","jamesport","jamestown","jamestown-west","jamestownwest","jamiltepec","jamul","jan-phyl-village","janambo","janamuato","janesville","janitzio","janos","janphylvillage","jantetelco","jaracuaro","jaral-del-progreso","jaraldelprogreso","jarales","jardines-de-la-silla","jardines-de-san-sebastian","jardines-del-eden","jardines-del-grijalva","jardinesdelasilla","jardinesdeleden","jardinesdelgrijalva","jardinesdesansebastian","jarillas","jaripeo","jarrell","jarrettsville","jarvis","jarvis-island","jarvisisland","jasmine-estates","jasmineestates","jasonville","jasper","jasper-park-lodge","jasperparklodge","jauja","jaula-de-abajo","jauladeabajo","jaumave","jauregui","javier-rojo-gomez","javierrojogomez","jay","jayton","jb","jbdc","jblm","jc","jd","jda","jdc","jde","jdf","jdg","jdgs","jdj","jdlb","jdld","jdlg","jdlp","jdls","jdm","jdme","jdp","jdss","jdt","jdz","je","jean-lafitte","jeanerette","jeanlafitte","jeannette","jeb","jec","jecopaco","jefferson","jefferson-city","jefferson-heights","jefferson-hills","jefferson-valley-yorktown","jeffersoncity","jeffersonheights","jeffersonhills","jeffersontown","jeffersonvalleyyorktown","jeffersonville","jeffries-point","jeffriespoint","jeg","jellico","jemez-pueblo","jemezpueblo","jemison","jena","jenison","jenkins","jenkintown","jenks","jennings","jennings-lodge","jenningslodge","jensen-beach","jensenbeach","jerecuaro","jerez-de-garcia-salinas","jerezdegarciasalinas","jericho","jerico","jermyn","jerome","jersey-city","jersey-shore","jersey-village","jerseycity","jerseyshore","jerseyvillage","jerseyville","jerusalen","jessup","jesup","jesus-carranza","jesus-carranza-rancho-de-jesus","jesus-del-monte","jesus-gomez-portugal","jesus-huitznahuac","jesus-maria","jesus-maria-garza","jesus-nazareno","jesus-tepactepec","jesuscarranza","jesuscarranzaranchodejesus","jesusdelmonte","jesusgomezportugal","jesusgomezportugalmargaritas","jesushuitznahuac","jesusmaria","jesusmariagarza","jesusnazareno","jesustepactepec","jetmore","jewell","jewett","jewett-city","jewettcity","jfg","jg","jgp","jgpm","jgr","jh","ji","jicaltepec-autopan","jicaltepec-cuexcontitlan","jicaltepecautopan","jicaltepeccuexcontitlan","jicamas","jicarero","jicayan-de-tovar","jicayandetovar","jicolapa","jilotepec","jilotepec-de-molina-enriquez","jilotepecdemolinaenriquez","jilotlan-de-los-dolores","jilotlandelosdolores","jilotzingo","jim-thorpe","jimenez","jimenez-del-teul","jimenezdelteul","jimthorpe","jiquilpan","jiquilpan-de-juarez","jiquilpan-estacion-bonanza","jiquilpandejuarez","jiquilpanestacionbonanza","jiquipilas","jiquipilco","jitonhueca","jitotol","jitzamuri","jiutepec","jjc","jjdt","jjesusdiaztzirio","jjesusgonzalezortegasanmateo","jjr","jl","jlh","jlt","jm","jmg","jmgm","jmj","jmm","jmps","jn","jnm","jnr","joachin","joanna","joaquin-herrera","joaquin-miguel-gutierrez","joaquinherrera","joaquinmiguelgutierrez","joconoxtle-la-tuna","joconoxtlelatuna","jocoqui","jocotepec","jocotitlan","jofrito","john-day","johnday","johns-creek","johnsburg","johnscreek","johnson","johnson-city","johnson-creek","johnson-lane","johnsonburg","johnsoncity","johnsoncreek","johnsonlane","johnsonville","johnston","johnston-atoll","johnston-city","johnstonatoll","johnstoncity","johnstonville","johnstown","joint-base-lewis-mcchord","joint-base-pearl-harbor-hickam","jointbaselewismcchord","jointbasepearlharborhickam","jojutla","jolalpan","joliet","joliette","jolivue","jolja","jollyville","jolochero-2da-seccion","jolochero2daseccion","jolotichan","jolsibaquil","joltealal","jomanichim","jomulco","jonacapa","jonacatepec","jones","jones-creek","jonesboro","jonesborough","jonescreek","jonesport","jonestown","jonesville","jonotla","jonquiere","jonuta","jopala","joplin","joppatowne","joquicingo","jordan","jorge-jimenez-cantu","jorgejimenezcantu","jorobas","jose-cardel","jose-colomo","jose-esteban-coronado","jose-f-gutierrez","jose-guadalupe-rodriguez","jose-maria-morelos","jose-maria-morelos-la-yegueria","jose-maria-morelos-san-jose","jose-maria-morelos-y-pavon","jose-maria-pino-suarez","jose-mariano-jimenez","jose-narciso-rovirosa","jose-refugio-salcido","josecardel","josecolomo","joseestebancoronado","josefgutierrez","joseguadaluperodriguez","josemariamorelos","josemariamoreloslayegueria","josemariamorelossanjose","josemariamorelossantamonica","josemariamorelosypavon","josemarianojimenez","josemariapinosuarez","josenarcisorovirosa","joseph","joseph-city","josephcity","josephine","joserefugiosalcido","joshil","joshua","joshua-tree","joshuatree","jourdanton","jp","jpl","jpv","jr","jrc","jrg","jrs","js","jt","juamave","juan-aldama","juan-aldama-el-tigre","juan-de-la-granja","juan-del-grijalva","juan-diaz-covarrubias","juan-e-garcia","juan-escutia-borbollon","juan-gil-preciado","juan-jose-rios","juan-martin","juan-morales","juan-n-mendez","juan-rodriguez-clara","juan-sarabia","juanacatlan","juanaldama","juanaldamaeltigre","juandelagranja","juandelgrijalva","juandiazcovarrubias","juanegarcia","juanescutiaborbollon","juangilpreciado","juanjoserios","juanmarcossanjosebuenavista","juanmartin","juanmorales","juannmendez","juanrodriguezclara","juansarabia","juarez","juarez-coronaco","juarezcoronaco","juchipila","juchique-de-ferrer","juchiquedeferrer","juchitan","juchitan-de-zaragoza","juchitandezaragoza","juchitepec","juchitlan","jucutacato","judson","judsonia","julesburg","julian","julian-blanco-dos-caminos","julian-grajales","julian-villagran","julianblancodoscaminos","juliangrajales","julianvillagran","julimes","jumiltepec","junction","junction-area","junction-city","junctionarea","junctioncity","june-park","juneau","junepark","jungapeo-de-juarez","jungapeodejuarez","juniata-park","juniatapark","juno-beach","junobeach","jupiter","jurare","juriquilla","jurupa-valley","jurupavalley","justice","justin","justo-sierra","justosierra","juventino-rosas","juventinorosas","jv","jvy","jw","k-i-sawyer-air-force-base","k3","k4","ka","kaaawa","kaanapali","kaanapali-landing","kaanapalilanding","kachina-village","kachinavillage","kadoka","kahaluu","kahaluu-keauhou","kahaluukeauhou","kahoka","kahuku","kahului","kaibito","kailua","kailua-kona","kailua-town","kailuakona","kailuatown","kaimuki","kalaheo","kalaheo-hillside","kalaheohillside","kalama","kalama-valley","kalamavalley","kalamazoo","kalanipuu","kalaoa","kalida","kalifornsky","kalihi-palama","kalihi-valley","kalihipalama","kalihivalley","kalispell","kalkaska","kalona","kamas","kamehameha-heights","kamehamehaheights","kamiah","kamloops","kamsack","kanab","kanasin","kanata","kancab","kancabchen","kane","kaneohe","kankakee","kannapolis","kansas","kansas-city","kansascity","kantunil","kantunilkin","kanxoc","kapaa","kapaau","kaplan","kapolei","kapuskasing","karnes-city","karnescity","kaser","kasson","kathleen","katonah","katy","kaua","kaufman","kaukauna","kaumakani-hanapepe","kaumakanihanapepe","kaunakakai","kawailoa","kayenta","kaysville","kb","kbb","kc","kdh","ke","keaau","kealakekua","keansburg","kearney","kearney-park","kearneypark","kearns","kearny","kechi","keedysville","keego-harbor","keegoharbor","keeler-farm","keelerfarm","keelesdale-eglinton-west","keelesdaleeglintonwest","keene","keenesburg","keeseville","keewatin","keizer","kekaha","kekaha-waimea","kekahawaimea","keller","kellogg","kellyville","kelowna","kelseyville","kelso","kemah","kemmerer","kemp","kemp-mill","kempmill","kempner","ken-caryl","kenai","kenansville","kenbridge","kencaryl","kendale-lakes","kendalelakes","kendall","kendall-green","kendall-park","kendall-square","kendall-west","kendallgreen","kendallpark","kendallsquare","kendallville","kendallwest","kenduskeag","kenedy","kenhorst","kenilworth","kenly","kenmar","kenmare","kenmore","kennebec","kennebunk","kennebunkport","kennedale","kennedy","kennedy-park","kennedypark","kenner","kennesaw","kenneth-city","kennethcity","kennett","kennett-square","kennettsquare","kennewick","kenora","kenosha","kenosha-streetcar","kenoshastreetcar","kenova","kensett","kensington","kensington-chinatown","kensington-park","kensingtonchinatown","kensingtonpark","kent","kent-acres","kent-city","kentacres","kentcity","kentfield","kentland","kenton","kentucky","kentville","kentwood","kenvil","kenwood","kenyon","keokea","keokuk","keolu-hills","keoluhills","keosauqua","kerens","kerhonkson","kerman","kermit","kern","kernersville","kernville","kerrobert","kerrville","kersey","kershaw","keshena","keswick","keswick-ridge","keswickridge","ketchikan","ketchum","kettering","kettle-falls","kettlefalls","kettleman-city","kettlemancity","keuka-park","keukapark","kew","kew-gardens","kew-gardens-hills","kewanee","kewaskum","kewaunee","kewgardens","kewgardenshills","key-biscayne","key-center","key-largo","key-vista","key-west","keybiscayne","keycenter","keyes","keylargo","keyport","keyser","keystone","keystone-heights","keystoneheights","keytesville","keyvista","keywest","kf","kg","kgh","kh","ki","kiantone","kiawah-island","kiawahisland","kiefer","kiel","kihei","kihei-mauka","kiheimauka","kilauea","kildeer","kilgore","kill-devil-hills","killam","killarney","killdeer","killdevilhills","killeen","killian","killingly-center","killinglycenter","killingworth","kilmanagh","kilmarnock","kiln","kilometro-30","kilometro-40","kilometro-noventa-y-nueve","kilometro30","kilometro40","kilometronoventaynueve","kimball","kimberley","kimberling-city","kimberlingcity","kimberly","kimbila","kincaid","kincardine","kinchil","kinder","kinderhook","kindersley","king","king-and-queen-court-house","king-city","king-cove","king-george","king-of-prussia","king-william","kingandqueencourthouse","kingcity","kingcove","kingfield","kingfisher","kinggeorge","kingman","kingman-reef","kingmanreef","kingofprussia","kings","kings-bay-base","kings-beach","kings-bridge","kings-grant","kings-mills","kings-mountain","kings-park","kings-park-west","kings-point","kingsbaybase","kingsbeach","kingsbridge","kingsburg","kingsbury","kingsessing","kingsey-falls","kingseyfalls","kingsford","kingsford-heights","kingsfordheights","kingsgate","kingsgrant","kingsland","kingsley","kingsmills","kingsmountain","kingspark","kingsparkwest","kingspoint","kingsport","kingston","kingston-estates","kingston-springs","kingstonestates","kingstonsprings","kingstown","kingstree","kingsview-village-the-westway","kingsviewvillagethewestway","kingsville","kingsway-south","kingswaysouth","kingwilliam","kingwood","kini","kinil","kinnelon","kinsey","kinsley","kinston","kiowa","kirby","kirbyville","kirkland","kirkland-lake","kirklandlake","kirksville","kirkville","kirkwood","kirtland","kiryas-joel","kiryasjoel","kisawyerairforcebase","kissee-mills","kisseemills","kissimmee","kitchener","kitimat","kitsap","kittanning","kittery","kittery-point","kitterypoint","kittitas","kittredge","kitty-hawk","kittyhawk","kj","kk","kki","kl","klahanie","klamath","klamath-falls","klamathfalls","km","kn","knightdale","knightsen","knightstown","knik-fairview","knikfairview","knob-noster","knobnoster","knollwood","knottsville","knox","knox-city","knoxcity","knoxville","knyn","ko","ko-olina","kochol","kodiak","kodiak-station","kodiakstation","kohler","kokomo","koloa","koloa-poipu","koloapoipu","komchen","konawa","koolauloa","koolina","koontz-lake","koontzlake","kop","kopoma","koreatown","kosciusko","kotolte","kotzebue","kountze","kouts","kp","kpw","kr","krebs","kremmling","kronenwetter","krotz-springs","krotzsprings","krugerville","krum","ks","kt","kuakini","kualapuu","kugluktuk","kula","kuliouou","kuliouou-kalani-iki","kuliououkalaniiki","kulpmont","kulpsville","kuna","kure-beach","kurebeach","kurtistown","kutztown","kv","kvtw","kw","ky","kyle","l1s","la","la-alameda","la-aldea","la-amistad","la-angostura","la-ascension","la-aurora","la-azozuca","la-ballena","la-barca","la-barra-de-colotepec","la-barreta","la-blanca","la-bocana","la-boveda","la-brecha","la-broquerie","la-cabecera","la-cabecera-concepcion","la-caja","la-calera","la-calera-nacimientos","la-calle","la-camelia","la-campanilla","la-canada","la-canada-flintridge","la-candelaria","la-candelaria-teotlalpan","la-candelaria-tlapala","la-cantera","la-capilla","la-caridad","la-ceiba","la-ceja","la-center","la-central","la-cerquilla","la-chinantla","la-cienega","la-cieneguita","la-ciudad","la-colonia","la-colonia-guadalupe","la-colorada","la-compania","la-competencia","la-comunidad","la-concepcion","la-concepcion-de-hidalgo","la-concepcion-de-los-banos","la-concepcion-enyege","la-concepcion-la-concha","la-concepcion-xochicuautla","la-conception","la-concha","la-concha-la-concepcion","la-concordia","la-constitucion","la-constitucion-toltepec","la-corregidora","la-coste","la-crescent","la-crescenta-montrose","la-croft","la-crosse","la-cruz","la-cruz-de-loreto","la-cruz-del-palmar","la-cruz-y-carrizal","la-cuesta","la-cuevita","la-curva","la-cygne","la-d","la-defensa","la-despensa","la-dicha","la-encarnacion","la-ermita","la-ermita-nueva-jerusalen","la-erradura","la-escalera","la-escondida","la-esmeralda","la-esperanza","la-esperanza-el-zapotal","la-esquina","la-estacada","la-estacion","la-estancia","la-estancia-de-amezcua","la-estanzuela","la-estrella","la-fe","la-feria","la-finca","la-flor","la-floresta","la-florida","la-fortuna","la-fuente","la-fundicion-quinta-manzana","la-galarza","la-garita","la-gavia","la-gloria","la-glorieta","la-goleta","la-goma","la-gotera","la-grande","la-grandeza","la-grange","la-grange-park","la-griega","la-grulla","la-guadalupana","la-guadalupe","la-guadeloupe","la-guasima","la-habra","la-habra-heights","la-harpe","la-haute-saint-charles","la-herradura","la-higuera","la-higuerilla-los-lirios","la-homa","la-horqueta-poblado-doce","la-huacana","la-huanica","la-huerta","la-humedad","la-iberica-la-gotera","la-independencia","la-independencia-las-pilas","la-isla","la-isla-de-chapachapa","la-isla-kilometro-10","la-isla-km-10","la-jolla","la-joya","la-joya-de-calvillo","la-junta","la-labor","la-laborcita","la-laguna","la-laguna-y-monte-del-castillo","la-lagunilla","la-laja","la-libertad","la-lima","la-linea","la-lira","la-llave","la-lobera","la-loma","la-loma-cuexcontitlan","la-loma-de-los-negritos","la-loma-la-loma-de-quila","la-lucha","la-luz","la-luz-de-juarez","la-magdalena","la-magdalena-chichicaspa","la-magdalena-tenexpan","la-magdalena-tetela-morelos","la-magdalena-tlaltelulco","la-magdalena-yancuitlalpan","la-malbaie","la-manga-2da-seccion-el-jobal","la-manzanilla","la-manzanilla-de-la-paz","la-marque","la-mesa","la-mesa-de-chosto","la-mesa-de-los-conejos","la-mesa-la-mesa-de-cedano","la-mesilla","la-mezquitera","la-mina","la-minerve","la-mintzita-piedra-dura","la-mira","la-mirada","la-mision","la-mohonera","la-mojonera","la-moncada","la-monja","la-monte","la-negreta","la-noria","la-noria-de-san-antonio","la-norita","la-nueva-era","la-nueva-victoria","la-ordena","la-orduna","la-orilla","la-ortiga","la-pahua","la-palma","la-palma-las-palmas","la-palmilla","la-palmita-y-anexos-la-presita","la-paloma","la-panadera","la-partida","la-pastoria","la-patria","la-paz","la-paz-de-ordaz","la-pe","la-pedrera","la-pendencia","la-peninsula","la-penita-de-jaltomba","la-perla","la-pesca","la-piedad","la-pila","la-pimienta","la-pine","la-pinta","la-placita-de-morelos","la-planada","la-planada-el-arenal","la-plata","la-playa","la-plaza-del-limon","la-pocatiere","la-popular","la-porte","la-porte-city","la-pradera","la-prairie","la-presa","la-presita","la-presita-segundo-cuartel","la-presumida","la-primavera","la-providencia","la-providencia-siglo-xxi","la-pryor","la-puebla","la-puente","la-puerta-del-pilar","la-punta","la-purificacion","la-purisima","la-quemada","la-quinta","la-reforma","la-resolana","la-resurreccion","la-ribera","la-rinconada","la-rinconoda","la-rivera","la-riviera","la-roca","la-ronge","la-rosa","la-sabana","la-sabinita","la-sala-la-caliente","la-salle","la-sardina","la-sarre","la-sauceda","la-selva","la-selva-beach","la-sidra","la-solana","la-soledad","la-soledad-barrio","la-sombra","la-subida","la-tabaquera","la-tesorera","la-tigrilla","la-tijera","la-tinaja","la-toma","la-tortuga","la-trinidad","la-trinidad-chautenco","la-trinidad-chimalpa","la-trinidad-tenexyecac","la-trinidad-tianguismanalco","la-trinitaria","la-tuque","la-unidad-huitzizilapan","la-union","la-union-del-cuatro","la-union-ejido-mexcaltepec","la-union-paso-largo","la-vale","la-valla","la-vega","la-venta","la-venta-del-astillero","la-ventilla","la-ventosa","la-vergne","la-verne","la-vernia","la-versolilla","la-victoria","la-victoria-la-penita","la-villa","la-vista","la-y","la-yesca","la-zacatecana","laalameda","laaldea","laamistad","laangostura","laascension","laaurora","laazozuca","labadieville","laballena","labarca","labarque-creek","labarquecreek","labarradecolotepec","labarreta","labelle","lablanca","labocana","labor-de-peralta","labordeperalta","laboveda","labrador-city","labradorcity","labrecha","labroquerie","lac-alouette","lac-brome","lac-connelly","lac-des-aigles","lac-du-bonnet","lac-du-flambeau","lac-la-biche","lac-lapierre","lac-megantic","lac-simon","lacabecera","lacabeceraconcepcion","lacaja","lacalera","lacaleranacimientos","lacalle","lacalouette","lacamelia","lacampanilla","lacanada","lacanadaflintridge","lacandelaria","lacandelariateotlalpan","lacandelariatlapala","lacandon","lacantera","lacapan-camallagne","lacapancamallagne","lacapilla","lacaridad","lacbrome","lacconnelly","lacdesaigles","lacdubonnet","lacduflambeau","laceiba","laceja","lacenter","lacentral","lacerquilla","lacey","lachinantla","lachute","lacienega","lacieneguita","laciudad","lackawanna","lackland-air-force-base","lacklandairforcebase","laclabiche","laclapierre","lacmegantic","lacolle","lacolonia","lacoloniaguadalupe","lacolorada","lacombe","lacompania","lacompetencia","lacomunidad","lacon","laconcepcion","laconcepcioncoatipaclaconchita","laconcepciondehidalgo","laconcepciondelosbanos","laconcepcionenyege","laconcepcionlaconcha","laconcepcionxochicuautla","laconception","laconcha","laconchalaconcepcion","laconcordia","laconia","laconstitucion","laconstituciontoltepec","lacoochee","lacorregidora","lacoste","lacrescent","lacrescentamontrose","lacroft","lacrosse","lacruz","lacruzdeloreto","lacruzdelpalmar","lacruzycarrizal","lacsimon","lacuchillaextramurosdetesistan","lacuesta","lacuevita","lacurva","lacy-lakeview","lacygne","lacylakeview","lad","ladd","ladefensa","ladera","ladera-heights","ladera-ranch","laderaheights","laderaranch","ladespensa","ladicha","ladner","ladonia","ladrillera-entronque-pesqueria","ladrilleraentronquepesqueria","ladrilleras-de-ocoro","ladrilleras-del-refugio","ladrillerasdelrefugio","ladrillerasdeocoro","ladson","ladue","lady-lake","ladylake","ladysmith","laencarnacion","laermita","laermitanuevajerusalen","laerradura","laescalera","laescondida","laesmeralda","laesperanza","laesperanzaelzapotal","laesperanzagranjasfamiliares","laesquina","laestacada","laestacion","laestancia","laestanciadeamezcua","laestanciadesanjosedelcarmen","laestanciasectorunolaestancia","laestanzuela","laestrella","lafayette","lafayette-hill","lafayettehill","lafb","lafe","laferia","lafinca","laflin","laflor","lafloresta","laflorida","lafollette","lafortuna","lafuente","lafundicionquintamanzana","lagalarza","lagarita","lagartera-1ra-seccion","lagartera1raseccion","lagavia","lagloria","laglorieta","lago-vista","lagoleta","lagoma","lagos-de-moreno","lagosdemoreno","lagotera","lagovista","lagrande","lagrandeza","lagrange","lagrangepark","lagriega","lagrulla","laguadalupana","laguadalupe","laguadeloupe","laguasima","laguna","laguna-beach","laguna-chica-pueblo-nuevo","laguna-de-farfan","laguna-de-guadalupe","laguna-de-san-vicente","laguna-de-santa-rita","laguna-de-vaquerias","laguna-del-cofre","laguna-del-mante","laguna-heights","laguna-hills","laguna-larga","laguna-larga-de-cortes","laguna-niguel","laguna-park","laguna-seca","laguna-vista","laguna-woods","lagunabeach","lagunachicapueblonuevo","lagunadefarfan","lagunadeguadalupe","lagunadelcofre","lagunadelmante","lagunadelreyquimicasdelrey","lagunadesantarita","lagunadesanvicente","lagunadetabernillaselresbaloso","lagunadevaquerias","lagunaheights","lagunahills","lagunalarga","lagunalargadecortes","lagunaniguel","lagunapark","lagunaseca","lagunavista","lagunawoods","laguneta","lagunilla","lagunillas","lagunitas","lagunitas-forest-knolls","lagunitasforestknolls","lah","lahabra","lahabraheights","lahaina","laharpe","lahautesaintcharles","laherradura","lahiguera","lahiguerillaloslirios","lahigueritacoloniasanrafael","lahoma","lahorquetapobladodoce","lahuacana","lahuanica","lahuerta","lahumedad","laibericalagotera","laie","laindependencia","laindependencialaspilas","laingsburg","laisla","laisladechapachapa","laislakilometro10","laislakm10","lajolla","lajoya","lajoyadecalvillo","lajunta","lake","lake-alfred","lake-andes","lake-arbor","lake-arrowhead","lake-arthur","lake-barcroft","lake-barrington","lake-belvedere-estates","lake-bluff","lake-brownwood","lake-butler","lake-camelot","lake-carmel","lake-catherine","lake-charles","lake-city","lake-clarke-shores","lake-como","lake-cowichan","lake-crystal","lake-dalecarlia","lake-dallas","lake-darby","lake-delton","lake-dunlap","lake-echo","lake-elmo","lake-elsinore","lake-erie-beach","lake-fenton","lake-forest","lake-forest-park","lake-geneva","lake-grove","lake-hallie","lake-hamilton","lake-havasu-city","lake-helen","lake-heritage","lake-hiawatha","lake-holiday","lake-hopatcong","lake-in-the-hills","lake-isabella","lake-jackson","lake-junaluska","lake-katrine","lake-kiowa","lake-koshkonong","lake-lakengren","lake-latonka","lake-lorraine","lake-los-angeles","lake-lotawana","lake-lucerne","lake-lure","lake-luzerne","lake-mack-forest-hills","lake-magdalene","lake-marcel-stillwater","lake-mary","lake-meade","lake-michigan-beach","lake-mills","lake-mohawk","lake-mohegan","lake-montezuma","lake-monticello","lake-morton-berrydale","lake-murray-of-richland","lake-nacimiento","lake-nebagamon","lake-norman-of-catawba","lake-odessa","lake-of-the-pines","lake-of-the-woods","lake-orion","lake-oswego","lake-ozark","lake-panasoffkee","lake-panorama","lake-park","lake-placid","lake-pleasant","lake-pocotopaug","lake-providence","lake-purdy","lake-ridge","lake-ripley","lake-ronkonkoma","lake-saint-croix-beach","lake-saint-louis","lake-san-marcos","lake-sarasota","lake-secession","lake-shore","lake-station","lake-stevens","lake-stickney","lake-success","lake-summerset","lake-tansi","lake-telemark","lake-view","lake-villa","lake-village","lake-waccamaw","lake-wales","lake-wazeecha","lake-wildwood","lake-winnebago","lake-wisconsin","lake-wissota","lake-worth","lake-worth-beach","lake-worth-corridor","lake-wylie","lake-wynonah","lake-zurich","lakealfred","lakeandes","lakearbor","lakearrowhead","lakearthur","lakebarcroft","lakebarrington","lakebelvedereestates","lakebluff","lakebrownwood","lakebutler","lakecamelot","lakecarmel","lakecatherine","lakecharles","lakecity","lakeclarkeshores","lakecomo","lakecowichan","lakecrystal","lakedalecarlia","lakedallas","lakedarby","lakedelton","lakedunlap","lakeecho","lakeelmo","lakeelsinore","lakeeriebeach","lakefenton","lakefield","lakeforest","lakeforestpark","lakegeneva","lakegrove","lakehallie","lakehamilton","lakehavasucity","lakehelen","lakeheritage","lakehiawatha","lakehills","lakeholiday","lakehopatcong","lakehurst","lakeinthehills","lakeisabella","lakejackson","lakejunaluska","lakekatrine","lakekiowa","lakekoshkonong","lakelakengren","lakeland","lakeland-highlands","lakeland-north","lakeland-south","lakeland-village","lakelandhighlands","lakelandnorth","lakelandsouth","lakelandvillage","lakelatonka","lakelorraine","lakelosangeles","lakelotawana","lakelucerne","lakelure","lakeluzerne","lakemackforesthills","lakemagdalene","lakemarcelstillwater","lakemary","lakemeade","lakemichiganbeach","lakemills","lakemohawk","lakemohegan","lakemont","lakemontezuma","lakemonticello","lakemoor","lakemore","lakemortonberrydale","lakemurrayofrichland","lakenacimiento","lakenebagamon","lakenormanofcatawba","lakeodessa","lakeofthepines","lakeofthewoods","lakeorion","lakeoswego","lakeozark","lakepanasoffkee","lakepanorama","lakepark","lakeplacid","lakepleasant","lakepocotopaug","lakeport","lakeprovidence","lakepurdy","lakeridge","lakeripley","lakeronkonkoma","lakes","lakes-by-the-bay","lakes-of-the-four-seasons","lakesaintcroixbeach","lakesaintlouis","lakesanmarcos","lakesarasota","lakesbythebay","lakesecession","lakeshire","lakeshore","lakeside","lakeside-park","lakesidepark","lakesite","lakesofthefourseasons","lakestation","lakestevens","lakestickney","lakesuccess","lakesummerset","laketansi","laketelemark","lakeview","lakeview-estates","lakeviewestates","lakevilla","lakevillage","lakeville","lakewaccamaw","lakewales","lakeway","lakewazeecha","lakewildwood","lakewinnebago","lakewisconsin","lakewissota","lakewood","lakewood-club","lakewood-park","lakewood-shores","lakewoodclub","lakewoodpark","lakewoodshores","lakeworth","lakeworthbeach","lakeworthcorridor","lakewylie","lakewynonah","lakezurich","lakin","lakota","lalabor","lalaborcita","lalaguna","lalagunaymontedelcastillo","lalagunilla","lalaja","lalibertad","lalima","lalinea","lalira","lallave","lalobera","laloma","lalomacuexcontitlan","lalomadelosnegritos","lalomalalomadequila","lalucha","laluz","laluzdejuarez","lamadrid","lamagdalena","lamagdalenachichicaspa","lamagdalenatenexpan","lamagdalenatetelamorelos","lamagdalenatlaltelulco","lamagdalenayancuitlalpan","lamalbaie","lamanga2daseccioneljobal","lamanzanilla","lamanzanilladelapaz","lamar","lamarque","lamartine","lambert","lambertville","lambton-baby-point","lambton-shores","lambtonbabypoint","lambtonshores","lame-deer","lamedeer","lamesa","lamesadechosto","lamesadelosconejos","lamesalamesadecedano","lamesilla","lamezquitera","lamina","laminerve","lamintzitapiedradura","lamira","lamirada","lamision","lamohonera","lamojonera","lamoncada","lamoni","lamonja","lamont","lamonte","lamoreaux","lampasas","lampazos-de-naranjo","lampazosdenaranjo","lampeter","lanai-city","lanaicity","lanark","lancaster","lancaster-mill","lancastermill","lancienne-lorette","lanciennelorette","land-o-lakes","landa-de-matamoros","landadematamoros","landen","lander","landero-y-coss","landeroycoss","landin","landing","landis","landisville","landmark","landolakes","landover","landover-hills","landoverhills","landrum","lane","lanegreta","lanesborough","lanett","langdon","lange-gardien","langegardien","langenburg","langford","langham","langhorne","langhorne-manor","langhornemanor","langley","langley-park","langleypark","langston","lanham","lanham-seabrook","lanhamseabrook","lanigan","lanikai","lannon","lanoraie","lanoria","lanoriadesanantonio","lanorita","lansdale","lansdowne","lanse","lansford","lansing","lansing-westgate","lansingwestgate","lantana","lantz","lanuevaera","lanuevavictoria","lao","laordena","laorduna","laorilla","laortiga","lapahua","lapalma","lapalmalaspalmas","lapalmilla","lapalmitalapalmitadesangabriel","lapalmitayanexoslapresita","lapaloma","lapanadera","lapartida","lapastoria","lapatria","lapaz","lapazdeordaz","lape","lapedrera","lapeer","lapel","lapendencia","lapeninsula","lapenitadejaltomba","laperla","lapesca","lapiedad","lapila","lapimienta","lapine","lapinta","laplace","laplacitademorelos","laplanada","laplanadaelarenal","laplata","laplaya","laplazadellimon","lapocatiere","lapopular","laporte","laportecity","lappe","lapradera","laprairie","lapresa","lapresita","lapresitasegundocuartel","lapresumida","laprimavera","laprovidencia","laprovidenciasigloxxi","lapryor","lapuebla","lapuente","lapuertadelpilar","lapunta","lapurificacion","lapurisima","lapwai","laquemada","laquinta","laramie","larch-way","larchmont","larchway","laredo","lareforma","laresolana","laresurreccion","largo","laribera","larimer","larimore","larinconada","larinconoda","larivera","lariviera","larkfield-wikiup","larkfieldwikiup","larkspur","larksville","larned","laroca","laronge","larosa","larose","larrainzar","las-aguamitas","las-amapolas","las-animas","las-arenitas","las-armas","las-barrillas","las-bocas","las-brisas","las-canadas","las-canas","las-catarinas","las-chicharras","las-choapas","las-cieneguitas","las-colonias-de-hidalgo","las-coloradas","las-compuertas","las-cruces","las-cuevas","las-delicias","las-esperanzas-el-ranchito","las-flechas","las-flores","las-grullas-margen-derecha","las-grullas-margen-izquierda","las-higueras","las-higuerillas","las-huertas","las-huertas-tercera-seccion","las-jarretaderas","las-juntas","las-lajas","las-lajitas","las-letras","las-liebres","las-lomas","las-lomas-de-tacamichapan","las-manzanas","las-maravillas","las-margaritas","las-masas-la-luz-masas","las-mercedes-agropecuaria","las-mesas","las-mieleras","las-minas","las-moras","las-nieves","las-norias-de-ojocaliente","las-ollas","las-palmas","las-palmas-ii","las-penas","las-pilas","las-pintas","las-pintas-de-arriba","las-pintitas","las-plazuelas","las-primaveras-invernadero","las-quemazones","las-quintas-fronterizas","las-ranas","las-rosas","las-sabanetas","las-sabinas","las-taponas","las-tazas","las-torres","las-torres-de-guadalupe","las-trancas","las-trojas","las-tunas","las-varas","las-varas-estacion-babicora","las-vegas","las-veredas","las-vigas","las-vigas-de-ramirez","las-yerbitas-aserradero","lasabana","lasabinita","lasaguamitas","lasalalacaliente","lasalle","lasamapolas","lasanimas","lasara","lasardina","lasarenitas","lasarmas","lasarre","lasauceda","lasbarrillas","lasbocas","lasbrisas","lascanadas","lascanas","lascatarinas","lascension-de-notre-seigneur","lascensiondenotreseigneur","laschicharras","laschoapas","lascieneguitas","lascoloniasdehidalgo","lascoloradas","lascompuertas","lascruces","lascuevas","lasdelicias","laselva","laselvabeach","lasesperanzaselranchito","lasflechas","lasflores","lasgolondrinasfraccionamiento","lasgrullasmargenderecha","lasgrullasmargenizquierda","lashigueras","lashiguerillas","lashuertas","lashuertasterceraseccion","lasidra","lasjarretaderas","lasjuntas","laslajas","laslajitas","lasletras","lasliebres","laslomas","laslomasdetacamichapan","lasmanzanas","lasmaravillas","lasmargaritas","lasmasaslaluzmasas","lasmercedesagropecuaria","lasmesas","lasmieleras","lasminas","lasmoras","lasnieves","lasnoriasdeojocaliente","lasolana","lasoledad","lasoledadbarrio","lasollas","lasombra","laspalmas","laspalmasii","laspenas","laspilas","laspintas","laspintasdearriba","laspintitas","lasplazuelas","lasprimaverasinvernadero","lasquemazones","lasquintasfronterizas","lasquintasfronterizascolonia","lasranas","lasrosas","lassabanetas","lassabinas","lassen","lassomption","lastaponas","lastazas","lastorres","lastorresdeguadalupe","lastrancas","lastrojas","lastunas","lasubida","lasvaras","lasvarasestacionbabicora","lasvegas","lasveredas","lasvigas","lasvigasderamirez","lasyerbitasaserradero","lat","latabaquera","latesorera","latham","lathrop","lathrup-village","lathrupvillage","latigrilla","latijera","latimer","latinaja","latoma","laton","latortuga","latrinidad","latrinidadchautenco","latrinidadchimalpa","latrinidadtenexyecac","latrinidadtianguismanalco","latrinitaria","latrobe","latta","lattingtown","latuque","lauderdale","lauderdale-by-the-sea","lauderdale-lakes","lauderdalebythesea","lauderdalelakes","lauderhill","laughlin","laughlin-air-force-base","laughlinairforcebase","launidadhuitzizilapan","launion","launiondelcuatro","launionejidomexcaltepec","launionpasolargo","laupahoehoe","laurel","laurel-bay","laurel-hill","laurel-hollow","laurel-lake","laurel-park","laurel-springs","laurelbay","laureldale","laureles","laurelhill","laurelhollow","laurellake","laurelpark","laurelsprings","laurelton","laurence-harbor","laurenceharbor","laurens","laurentides","laurinburg","laurium","laurys-station","laurysstation","lavaca","laval","lavale","lavalette","lavalla","lavallette","lavaltrie","laveen","lavega","laventa","laventadelastillero","laventilla","laventosa","lavergne","laverkin","laverne","lavernia","laversolilla","lavictoria","lavictorialapenita","lavilla","lavista","lavon","lavonia","lawai","lawndale","lawnside","lawnton","lawrence","lawrence-park","lawrence-park-north","lawrence-park-south","lawrenceburg","lawrencepark","lawrenceparknorth","lawrenceparksouth","lawrenceville","lawson","lawson-heights","lawsonheights","lawtell","lawton","lay","layesca","layhill","laymantown","layton","laytonville","lazacatecana","lazaro-cardenas","lazaro-cardenas-chilil","lazaro-cardenas-el-empalme","lazaro-cardenas-la-purisima","lazaro-cardenas-rancho-grande","lazaro-cardenas-santana","lazarocardenas","lazarocardenaschilil","lazarocardenaselempalme","lazarocardenaslapurisima","lazarocardenasranchogrande","lazarocardenassantana","lazy-mountain","lazymountain","lb","lbdc","lbe","lbj","lblg","lbp","lbtb","lbts","lc","lcc","lccv","lcdh","lcdl","lcdp","lce","lcee","lcf","lcg","lclc","lclp","lcm","lcn","lcpn","lcrg","lcs","lct","lcx","lcyc","ld","lda","ldb","ldc","lde","ldf","ldg","ldj","ldl","ldla","ldlc","ldle","ldlh","ldll","ldlm","ldlp","ldly","ldm","ldn","ldns","ldo","ldp","ldr","lds","ldsa","ldsc","ldsf","ldsj","ldsm","ldsp","ldsr","ldss","ldsv","ldt","ldv","ldy","ldz","le","le-bic","le-center","le-claire","le-grand","le-mars","le-plateau","le-roy","le-sueur","lea-hill","leacaman","leachville","lead","leadville","leadville-north","leadvillenorth","leadwood","league-city","leaguecity","leahill","leakesville","leakey","lealman","leamington","leander","leaside-bennington","leasidebennington","leavenworth","leavittsburg","leawood","leb","lebanon","lebanon-junction","lebanon-south","lebanonjunction","lebanonsouth","lebec","lebel-sur-quevillon","lebelsurquevillon","lebic","leblanc","lecanto","lecenter","lechee","leclaire","lecompte","leda","ledbetter","leduc","ledyard","lee","lee-acres","leeacres","leechburg","leeds","leer","lees-summit","leesburg","leesport","leessummit","leesville","leetonia","leetsdale","leez","legend-lake","legendlake","legf","legrand","lehi","lehigh-acres","lehighacres","lehighton","leicester","leilani-estates","leilaniestates","leipsic","leisure-city","leisure-knoll","leisure-village","leisure-village-east","leisure-world","leisurecity","leisureknoll","leisuretowne","leisurevillage","leisurevillageeast","leisurevillagewestpinelakepark","leisureworld","leitchfield","leith-hatfield","leithhatfield","leland","leland-grove","lelandgrove","lely","lely-resort","lelyresort","lemars","lemay","lemmon","lemmon-valley","lemmonvalley","lemon-grove","lemongrove","lemont","lemoore","lemoore-station","lemoorestation","lemoyne","lempster","lena","lenape-heights","lenapeheights","lenexa","lenj","lennox","lenoir","lenoir-city","lenoircity","lenox","lents","lenwood","leo-cedarville","leocedarville","leola","leominster","leon","leon-de-los-aldama","leon-guzman","leon-valley","leona-valley","leona-vicario","leonard","leonardo","leonardtown","leonavalley","leonavicario","leondelosaldama","leonguzman","leonia","leonvalley","leonville","leoti","lep","lepan","lepanto","lepiphanie","leplateau","lerdo-de-tejada","lerdodetejada","lerma","lerma-de-villada","lermadevillada","leroy","les-cedres","les-coteaux","les-escoumins","lesage","lescedres","lescoteaux","lesescoumins","leslie","lesslie","lester-prairie","lesterprairie","lesueur","lethbridge","lev","levant","level-green","level-park-oak-park","level-plains","levelgreen","levelland","levelparkoakpark","levelplains","leverett","levis","levittown","lewes","lewis","lewis-center","lewisburg","lewiscenter","lewisport","lewisporte","lewiston","lewiston-orchards","lewistonorchards","lewistown","lewisville","lexington","lexington-fayette","lexington-hills","lexington-park","lexingtonfayette","lexingtonhills","lexingtonpark","leyva-solano","leyvasolano","lf","lfk","lfp","lfqm","lg","lgdo","lgf","lgl","lgmd","lgmi","lgp","lh","lhc","lhh","lhll","lhpd","lhsc","lhts","li","libby","liberal","libertad","libertad-alvaro-obregon","libertad-melchor-ocampo","libertad-ventanas","libertadalvaroobregon","libertadmelchorocampo","libertadventanas","liberty","liberty-center","liberty-city","liberty-hill","liberty-lake","libertycenter","libertycity","libertyhill","libertylake","libertyville","libre-union","libres","libreunion","lic","licenciado-benito-juarez","licenciado-gustavo-diaz-ordaz","licenciadobenitojuarez","licenciadogustavodiazordaz","licking","lidc","lido-beach","lidobeach","light-street","lighthouse-point","lighthousepoint","lightstreet","ligonier","lihue","lik1","lilbourn","lilburn","lile-perrot","lileperrot","lilg","liliha-kapalama","lilihakapalama","lillington","lillooet","lilp","lily-lake","lilylake","lima","limerick","limestone","limestone-creek","limestonecreek","limington","limoges","limon","limones","linares","lincoln","lincoln-beach","lincoln-city","lincoln-heights","lincoln-park","lincoln-square","lincoln-village","lincolnbeach","lincolncity","lincolndale","lincolnheights","lincolnia","lincolnpark","lincolnshire","lincolnsquare","lincolnton","lincolnvillage","lincolnville","lincolnwood","lincroft","linda","lindale","lindavista","linden","lindenhurst","lindenwold","lindley","lindon","lindsay","lindsborg","lindstrom","lineville","linganore","linglestown","liniere","linn","linneus","linntown","lino-lakes","linolakes","linthicum","linton","linton-hall","lintonhall","linwood","lions-bay","lionsbay","lionville","lipscomb","lipuntahuaca","lisbon","lisbon-falls","lisbonfalls","lisle","listowel","litchfield","litchfield-park","litchfieldpark","lith","lithia-springs","lithiasprings","lithonia","lithopolis","lititz","little-canada","little-chute","little-cottonwood-creek-valley","little-current","little-elm","little-falls","little-ferry","little-flock","little-havana","little-neck","little-portugal","little-river","little-river-academy","little-rock","little-rock-air-force-base","little-round-lake","little-silver","little-valley","littlecanada","littlechute","littlecottonwoodcreekvalley","littlecurrent","littleelm","littlefalls","littleferry","littlefield","littleflock","littlehavana","littleneck","littleportugal","littleriver","littleriveracademy","littlerock","littlerockairforcebase","littleroundlake","littlesilver","littlestown","littleton","littleton-common","littletoncommon","littlevalley","live-oak","lively","liveoak","livermore","livermore-falls","livermorefalls","liverpool","livingston","livingston-manor","livingstonmanor","livonia","lj","ljdc","lk","ll","lla","llano","llano-de-agua","llano-de-enmedio","llano-de-la-lima","llano-de-la-puerta","llano-de-la-y","llano-de-zacapexco","llano-del-tigre","llano-grande","llano-largo","llano-suchiapa","llanodeagua","llanodeenmedio","llanodelalima","llanodelapuerta","llanodelasfloresbarriodelhueso","llanodelay","llanodeltigre","llanodezacapexco","llanogrande","llanolargo","llanosuchiapa","llb","llc","lldc","lldj","lldt","llera-de-canales","lleradecanales","lloyd-harbor","lloydharbor","lloydminster","llp","lm","lma","lmb","lmc","lmdc","lmfh","lmo","lmor","lmpd","lms","lmt","lmtm","lmy","ln","lndo","lne","lnoc","lnv","lo","lo-arado","lo-de-jesus-campo-romero","lo-de-juarez","lo-de-lamedo","lo-de-marcos","loa","loarado","lobatos","loch-lomond","lochbuie","loche","lochearn","lochlomond","lochmoor-waterway-estates","lochmoorwaterwayestates","lochsloy","lock-haven","lockeford","lockhart","lockhaven","lockland","lockney","lockport","lockport-heights","lockportheights","lockwood","locust","locust-fork","locust-grove","locust-valley","locustfork","locustgrove","locustvalley","lodejesuscamporomero","lodejuarez","lodelamedo","lodemarcos","lodi","lodo-grande","lodogrande","lofall","logan","logan-elm-village","logan-lake","logan-square","loganelmvillage","loganlake","logansport","logansquare","loganville","lol","lolo","loma","loma-alta","loma-alta-taxhimay","loma-angosta","loma-blanca","loma-bonita","loma-chapultepec","loma-de-bacum","loma-de-guadalupe-la-biznaga","loma-de-guamuchil","loma-de-juarez","loma-de-la-esperanza","loma-de-los-carmona","loma-de-los-hoyos","loma-de-san-francisco","loma-de-san-jose","loma-de-san-miguel","loma-de-sogotegoyo","loma-de-yerbabuena","loma-de-zempoala","loma-del-refugio","loma-del-rio","loma-grande","loma-la-paz","loma-larga","loma-linda","loma-pelada","loma-rica","loma-tendida","lomaalta","lomaaltataxhimay","lomaangosta","lomablanca","lomabonita","lomachapultepec","lomadebacum","lomadeguadalupelabiznaga","lomadeguamuchil","lomadejuarez","lomadelaesperanza","lomadeloscarmona","lomadeloshoyos","lomadelrefugio","lomadelrio","lomadesanfrancisco","lomadesanjose","lomadesanmiguel","lomadesogotegoyo","lomadeyerbabuena","lomadezempoala","lomagrande","lomalapaz","lomalarga","lomalargabarriodelomalarga","lomalinda","lomantan","lomapelada","lomarica","lomas-de-ahuatepec","lomas-de-altavista","lomas-de-barrillas","lomas-de-chapultepec","lomas-de-la-maestranza","lomas-de-rio-medio-cuatro","lomas-de-romero","lomas-de-san-agustin","lomas-de-san-juan","lomas-de-san-martin","lomas-de-san-pablo","lomas-de-san-sebastian","lomas-de-santa-anita","lomas-de-santa-cruz","lomas-de-tejeda","lomas-de-tenopalco","lomas-de-tepemecatl","lomas-de-tlatelolco","lomas-del-real","lomas-del-sur","lomas-verdes","lomasdeahuatepec","lomasdealtavista","lomasdebarrillas","lomasdechapultepec","lomasdelamaestranza","lomasdelreal","lomasdelsur","lomasderiomediocuatro","lomasderomero","lomasdesanagustin","lomasdesanjuan","lomasdesanmartin","lomasdesanpablo","lomasdesansebastian","lomasdesantaanita","lomasdesantacruz","lomasdetejeda","lomasdetenopalco","lomasdetepemecatl","lomasdetlatelolco","lomasverdes","lomatendida","lombard","lombardia","lomira","lomita","lomitas","lompico","lompoc","lonaconing","london","londonderry","londontowne","lone-grove","lone-jack","lone-oak","lone-pine","lone-star","lone-tree","lonegrove","lonejack","loneoak","lonepine","lonestar","lonetree","long-beach","long-branch","long-creek","long-grove","long-hill","long-island-city","long-lake","long-neck","long-prairie","long-valley","longbeach","longboat-key","longboatkey","longbranch","longcreek","longgrove","longhill","longislandcity","longlake","longmeadow","longmont","longneck","longprairie","longtown","longueuil","longvalley","longview","longview-heights","longviewheights","longwood","lonoke","lonsdale","loogootee","lookout-mountain","lookoutmountain","loomis","lopez","lopez-rayon","lopezrayon","lopezville","lorain","lorane","lordsburg","lordstown","lorena","lorenz-park","lorenzo","lorenzpark","loreto","lorette","loretto","lorignal","loris","lorraine","lorton","los-achotes","los-aguajes","los-alamitos","los-alamos","los-aldamas","los-algodones","los-almendros","los-altos","los-altos-hills","los-angeles","los-angeles-tetela","los-arana","los-arcos","los-arquitos","los-aztecas","los-azulitos","los-bahuises","los-banos","los-barriles","los-benitos","los-berros","los-cafetales","los-cajones","los-canos","los-cavazos","los-cedros","los-cenotes","los-cerritos","los-charcos","los-chavez","los-cides","los-condes","los-conos","los-corazones","los-cristales-talican","los-cues","los-desmontes","los-divorciados","los-dolores-las-quince-letras","los-dulces-nombres","los-encinos","los-fierros","los-fresnos","los-galvan","los-garcias","los-gatos","los-gavilanes","los-guajes","los-guerra","los-herreras","los-hoyos","los-hucuares","los-idolos","los-indios","los-laureles","los-limones","los-lirios","los-liros","los-lorenzos","los-lunas","los-mancera","los-mangos","los-medranos","los-mochis","los-mogotes","los-molinos","los-naranjos","los-naranjos-esquipulas","los-nicolases","los-nogales","los-ocotes","los-olivos","los-olvera","los-organos-de-san-agustin","los-osos","los-otates","los-palacios","los-parques","los-pescados","los-pilares","los-pinos","los-platanos","los-pocitos","los-pozos","los-prietos","los-ramirez","los-ramones","los-ranchos-de-albuquerque","los-remedios","los-reyes","los-reyes-acaquilpan","los-reyes-acatlixhuayan","los-reyes-de-juarez","los-reyes-de-salgado","los-reyes-quiahuixtlan","los-reyes-tlanechicolpan","los-riegos","los-robles","los-rodriguez","los-romeros","los-ruisenores","los-sabinos","los-sauces","los-saucitos","los-saucos","los-serranos","los-tepames","los-tepetates","los-tigres-san-marcos","los-torrentes","los-tuzos","los-valles","los-zacatones","losachotes","losaguajes","losalamitos","losalamos","losaldamas","losalgodones","losalmendros","losaltos","losaltoshills","losangeles","losangelestetela","losarana","losarcos","losarquitos","losaztecas","losazulitos","losbahuises","losbanos","losbarriles","losbenitos","losberros","loscafetales","loscajones","loscanos","loscavazos","loscedros","loscenotes","loscerritos","loscharcos","loschavez","loscides","loscondes","losconos","loscorazones","loscristalestalican","loscues","losdesmontes","losdivorciados","losdoloreslasquinceletras","losdulcesnombres","losencinos","losfierros","losfresnos","losgalvan","losgarcias","losgatos","losgavilanes","losguajes","losguerra","losherreras","loshoyos","loshucuares","losidolos","losindios","loslaureles","loslimones","loslirios","losliros","loslorenzos","loslunas","losmancera","losmangos","losmedranos","losmochis","losmogotes","losmolinos","losnaranjos","losnaranjosesquipulas","losnicolases","losnogales","losocotes","losolivos","losolvera","losorganosdesanagustin","lososos","losotates","lospalacios","losparques","lospescados","lospilares","lospinos","losplatanos","lospocitos","lospozos","losprietos","losramirez","losramones","losranchosdealbuquerque","losremedios","losreyes","losreyesacaquilpan","losreyesacatlixhuayan","losreyesdejuarez","losreyesdesalgado","losreyesquiahuixtlan","losreyestlanechicolpan","losriegos","losrobles","losrodriguez","losromeros","losruisenores","lossabinos","lossauces","lossaucitos","lossaucos","losserranos","lost-creek","lost-hills","lostcreek","lostepames","lostepetates","losthills","lostigressanmarcos","lostorrentes","lostuzos","losvalles","loszacatones","lotp","lotw","loudon","loudonville","loudoun-valley-estates","loudounvalleyestates","loughman","louisa","louisburg","louiseville","louisiana","louisville","loup-city","loupcity","lourdes","lovejoy","loveland","loveland-park","lovelandpark","lovell","lovelock","loves-park","lovespark","lovettsville","loving","lovingston","lovington","lowell","lowellville","lower-aiea","lower-allen","lower-allston","lower-burrell","lower-grand-lagoon","lower-lake","lower-mccully","lower-moyamensing","lower-palolo","lower-pawaa","lower-pearl-city","lower-sackville","lower-waiau","lower-west-side","lower-wilhelmina","loweraiea","lowerallen","lowerallston","lowerburrell","lowergrandlagoon","lowerlake","lowermccully","lowermoyamensing","lowerpalolo","lowerpawaa","lowerpearlcity","lowersackville","lowerwaiau","lowerwestside","lowerwilhelmina","lowes-island","lowesisland","lowesville","lowry-crossing","lowrycrossing","lowville","loxahatchee-groves","loxahatcheegroves","loxley","loyal","loyalhanna","loyola","loza-de-barrera","loza-de-los-padres","lozadebarrera","lozadelospadres","lp","lpc","lpda","lpdj","lpdl","lpdm","lpdo","lpdp","lpea","lpi","lplp","lpn","lpop","lps","lpsc","lpsx","lq","lqf","lqfc","lr","lra","lrda","lrdj","lrds","lrev","lrl","lrq","lrt","ls","lsb","lscb","lsl","lslc","lsm","lsq","lt","ltc","ltdg","ltsm","ltt","lu","lubbock","lubeck","lucama","lucan","lucas","lucas-valley-marinwood","lucasvalleymarinwood","lucasville","lucedale","lucerne","lucerne-valley","lucernevalley","luceville","luchanas","lucio-blanco-los-gavilanes","lucioblancolosgavilanes","luck","luckey","ludc","ludington","ludlow","ludowici","luem","lufkin","lugoff","luh","luis-espinoza","luis-gil-perez","luis-moya","luis-rodriguez-el-vergel","luisespinoza","luisgilperez","luismoya","luisrodriguezelvergel","lukachukai","lula","luling","lumber-city","lumbercity","lumberton","lumby","lumpkin","lumsden","luna-pier","lunapier","lunenburg","lupl","luray","lusby","lusk","lutcher","lutes-mountain","lutesmountain","luther","lutherville","lutherville-timonium","luthervilletimonium","luttrell","lutz","luverne","luxemburg","luxora","luzerne","lv","lvda","lvdr","lve","lveb","lvlp","lvm","lw","lwb","lwc","lwe","lws","ly","lya","lyc","lyford","lykens","lyman","lyme","lynbrook","lynchburg","lyncourt","lyndeborough","lynden","lyndhurst","lyndon","lyndonville","lynn","lynn-haven","lynnfield","lynnhaven","lynnwood","lynnwood-pricedale","lynnwoodpricedale","lynwood","lyon","lyons","lytle","lz","ma","mabank","mableton","mabscott","mabton","mac","macamic","macapule","macario-j-gomez-colonia","macariojgomezcolonia","macarthur","macclenny","macedon","macedonia","macedonio-alonso","macedonioalonso","machesney-park","machesneypark","machetla","machias","machiasport","macho-de-agua","machodeagua","macin-chico","macinchico","mack","mackenzie","mackinaw","macklin","maclovio-herrera","maclovio-rojas","maclovioherrera","maclovioherreracoloniaaviacion","macloviorojas","macomb","macon","mactun","macuilxochitldeartigascarranza","macultepec","macungie","macuspana","macutzio","macvilho","macy","mad","madawaska","madbury","madeira","madeira-beach","madeirabeach","madelia","madera","madera-acres","maderaacres","madill","madison","madison-center","madison-heights","madison-lake","madison-park","madisoncenter","madisonheights","madisonlake","madisonpark","madisonville","madoc","madras","madrid","maeser","mafafas","mafb","magalia","magdalena","magdalena-apasco","magdalena-atlicpac","magdalena-contreras","magdalena-cuayucatepec","magdalena-de-araceo","magdalena-de-kino","magdalena-jaltepec","magdalena-mixtepec","magdalena-ocotlan","magdalena-teitipac","magdalena-tequisistlan","magdalena-tlacotepec","magdalena-zahuatlan","magdalenaapasco","magdalenaatlicpac","magdalenacontreras","magdalenacuayucatepec","magdalenadearaceo","magdalenadekino","magdalenajaltepec","magdalenamixtepec","magdalenaocotlan","magdalenateitipac","magdalenatequisistlan","magdalenatlacotepec","magdalenazahuatlan","magdaleno-cedillo","magdalenocedillo","magee","maggie-valley","maggievalley","magisterio-digno","magisteriodigno","magna","magnolia","magog","magrath","maguarichi","maguey-blanco","magueyblanco","mahanoy-city","mahanoycity","maharishi-vedic-city","maharishivediccity","mahnomen","mahomet","mahopac","mahtomedi","mahuixtlan","mahwah","maiden","maili","maine","maitinez","maitland","maize","majastic","majomut","makaha","makaha-valley","makahavalley","makakilo","makakilo-city","makakilo-kapolei-honokai-hale","makakilocity","makakilokapoleihonokaihale","makawao","makikilowerpunchbowltantalus","makua-valley","makuavalley","malabar","malad-city","maladcity","malagana-san-antonio-del-monte","malaganasanantoniodelmonte","malakoff","malartic","mald","malden","malibu","malinalco","malinaltepec","maliotenam","mallory","malmstrom-air-force-base","malmstromairforcebase","malone","malpaso","malta","maltby","maltrata","malvern","malverne","mama","mamantel","mamaroneck","mamithi","mammoth","mammoth-lakes","mammothlakes","mamou","manahawkin","manalisco","manana-housing","mananahousing","manantiales","manasota-key","manasotakey","manasquan","manassas","manassas-park","manassaspark","manatee","manatee-road","manateeroad","manawa","manawan","manayunk","mancelona","manchaca","manchester","manchester-by-the-sea","manchester-center","manchesterbythesea","manchestercenter","mancos","mancuernas","mandan","mandeville","mangas","mango","mangonia-park","mangoniapark","mangum","manhasset","manhasset-hills","manhassethills","manhattan","manhattan-beach","manhattan-valley","manhattanbeach","manhattanvalley","manheim","mani","manila","manistee","manistique","manito","manitoba","manitou-beach-devils-lake","manitou-springs","manitoubeachdevilslake","manitousprings","manitouwadge","manitowoc","maniwaki","mankato","manlio-fabio-altamirano","manliofabioaltamirano","manlius","manly","mannford","manning","mannington","manoa","manor","manorhaven","manorville","mansfield","mansfield-center","mansfield-city","mansfieldcenter","mansfieldcity","manson","mansura","mantachie","manteca","manteno","manteo","manti","manto-del-rio-ejido","mantodelrioejido","manton","mantorville","mantua","manuel-avila-camacho","manuel-benavides","manuel-lazos","manuel-leon","manuel-maria-contreras","manuel-ojinaga","manuel-villalongin","manuelavilacamacho","manuelavilacamachoponteduro","manuelbenavides","manueledgardoavalossanisidro","manuellazos","manuelleon","manuelmariacontreras","manuelojinaga","manuelvillalongin","manvel","manville","many","many-farms","manyfarms","manzana-de-san-luis","manzana-la-cofradia","manzana-quinta-la-canada","manzana-segunda","manzana-sexta-parte-centro","manzanadesanluis","manzanalacofradia","manzanaquintalacanada","manzanasegunda","manzanasextapartecentro","manzanillo","mapachapa","mapastepec","mapimi","maple-bluff","maple-creek","maple-glen","maple-grove","maple-heights","maple-heights-lake-desire","maple-lake","maple-leaf","maple-park","maple-plain","maple-ridge","maple-shade","maple-valley","maplebluff","maplecreek","mapleglen","maplegrove","mapleheights","mapleheightslakedesire","maplelake","mapleleaf","maplepark","mapleplain","mapleridge","mapleshade","mapleton","maplevalley","maplewood","maquoketa","mar-mac","marana","marathon","maravatio-de-ocampo","maravatio-del-encinal","maravatiodelencinal","maravatiodeocampo","maravilla-tenejapa","maravillas","maravillatenejapa","marble-falls","marble-hill","marblefalls","marblehead","marblehill","marbleton","marbletown","marbury","marceline","marcelinorodriguezsanignacio","marcellus","march-air-force-base","marchairforcebase","marco","marco-island","marcoisland","marcol","marcus","marcus-hook","marcushook","marengo","marfa","marfil","margaret","margaritas","margate","margate-city","margatecity","maria","maria-de-la-torre","maria-lombardo-de-caso","mariadelatorre","marialombardodecaso","marianna","marianne","mariano-balleza","mariano-escobedo","mariano-matamoros","marianoballeza","marianoescobedo","marianomatamoros","maricopa","mariemont","marienville","marietta","marietta-alderwood","mariettaalderwood","marieville","marin","marin-city","marina","marina-del-rey","marinadelrey","marincity","marine-city","marine-corps-base-hawaii-mcbh","marinecity","marinecorpsbasehawaiimcbh","mariners-harbor","mariners-ridge","marinersharbor","marinersridge","marinette","maringouin","marion","marion-center","marioncenter","marionville","maripa","mariposa","mariscal-subikuski","mariscala-de-juarez","mariscaladejuarez","mariscalsubikuski","marissa","markdale","marked-tree","markedtree","markesan","markham","markland-wood","marklandwood","markle","marks","marksville","marlboro","marlboro-meadows","marlboro-village","marlboromeadows","marlborough","marlborovillage","marlette","marlin","marlinton","marlow","marlow-heights","marlowheights","marlton","marmac","marmaduke","marmet","maroa","marquelia","marquette","marquette-heights","marquetteheights","marrero","marriott-slaterville","marriottslaterville","marroquin","mars","mars-hill","marseilles","marshall","marshallton","marshalltown","marshallville","marshfield","marshfield-hills","marshfieldhills","marshill","marshville","marsing","marstons-mills","marstonsmills","mart","marte-r-gomez","marte-r-gomez-tobarito","martensville","martergomez","martergomeztobarito","martha-lake","marthalake","marthasville","martin","martindale","martinez","martinez-de-la-torre","martinez-dominguez","martinezdelatorre","martinezdominguez","martins-ferry","martinsburg","martinsferry","martinsville","marvell","marvin","mary-esther","maryesther","maryland","maryland-city","maryland-heights","marylandcity","marylandheights","marystown","marysville","maryvale","maryville","mas","masaryktown","mascot","mascota","mascotte","mascouche","mascoutah","mashpee","masiaca","maskinonge","mason","mason-city","masonboro","masoncity","masontown","masonville","maspeth","massac","massachusetts","massanetta-springs","massanettasprings","massanutten","massapequa","massapequa-park","massapequapark","massena","massillon","mastic","mastic-beach","masticbeach","masury","mata-de-indio","mata-loma","mata-naranjo","mata-obscura","mata-tenatito-casco-hacienda","matacapan","matachi","matadeindio","matador","matagami","mataloma","matamoras","matamoros","matanaranjo","matane","matanzas","mataobscura","matatenatitocascohacienda","matatlan","matawan","matehuala","matheny","mathews","mathis","matias-romero","matiasromero","matlahuacales-aquiles-serdan","matlahuacalesaquilesserdan","matlapa","matoaca","mattapan","mattapoisett","mattapoisett-center","mattapoisettcenter","mattawa","mattawan","matteson","matthews","mattituck","mattoon","mattydale","matzaco","matzam","maud","maugansville","mauldin","maumee","maumelle","maunawili","maurice","mauriceville","maury","mauston","mavoro","maxcanu","maxela","maximo-serdan","maximoserdan","maxtleca-de-galeana","maxtlecadegaleana","maxton","maxwell","maya-balam","maya-tecun-i","mayabalam","mayanalan","mayapan","mayatecuni","maybrook","mayer","mayersville","mayerthorpe","mayfield","mayfield-heights","mayfieldheights","mayflower","mayflower-village","mayflowervillage","maynard","maynardville","mayo","mayodan","mayor-wright-housing","mayorazgo-de-leon","mayorazgodeleon","mayorwrighthousing","mayran","mays-chapel","mays-landing","mayschapel","mayslanding","maysville","maytown","mayville","maywood","mazaltepec","mazamitla","mazapa","mazapil","mazapiltepec","mazatan","mazatecochco","mazatepec","mazateupa","mazatlan","mazatlan-villa-de-flores","mazatlanvilladeflores","mazin-grande","mazingrande","mazomanie","mazumiapam","mb","mbdl","mbts","mc","mcadoo","mcalester","mcallen","mcalmont","mcarthur","mccall","mccamey","mccaysville","mcchord-air-force-base","mcchordairforcebase","mccleary","mccloud","mcclusky","mccoll","mccomb","mcconnell-afb","mcconnellafb","mcconnellsburg","mcconnellstown","mcconnelsville","mccook","mccord","mccordsville","mccormick","mccrory","mccullom-lake","mccullomlake","mccully-moiliili","mccullymoiliili","mcdonald","mcdonough","mce","mcewen","mcfarland","mcgehee","mcgill","mcgovern","mcgraw","mcgregor","mcguire-afb","mcguireafb","mchenry","mcintosh","mckee","mckees-rocks","mckeesport","mckeesrocks","mckenzie","mckinley-heights","mckinley-park","mckinleyheights","mckinleypark","mckinleyville","mckinney","mckownville","mclean","mcleansboro","mcleansville","mclendon-chisholm","mclendonchisholm","mclennan","mcloud","mcmechen","mcmillin","mcminnville","mcmurray","mcpherson","mcqueeney","mcrae","mcsherrystown","md","mda","mdac","mdb","mdc","mde","mdg","mdh","mdi","mdj","mdk","mdl","mdll","mdlm","mdls","mdlt","mdm","mdn","mdo","mdp","mdpd","mdr","mdre","mds","mdsa","mdsj","mdsl","me","mead","mead-valley","meade","meadow-glade","meadow-lake","meadow-lakes","meadow-oaks","meadow-vista","meadow-woods","meadowbrook","meadowdale","meadowglade","meadowlake","meadowlakes","meadowoaks","meadowood","meadows-place","meadowsplace","meadowvista","meadowwoods","meads","meadvalley","meadview","meadville","meaford","mebane","mecapalapa","mecatan","mecatepec","mecatlan","mecayapan","mecca","mechanic-falls","mechanicfalls","mechanicsburg","mechanicstown","mechanicsville","mechanicville","mechoacanejo","mecoacan","mecoacan2daseccionsanlorenzo","medellin-de-bravo","medellindebravo","medellinymaderosegundaseccion","medfield","medford","medford-lakes","medfordlakes","media","mediapolis","medias-aguas","mediasaguas","medical-lake","medicallake","medicine-hat","medicine-lodge","medicinehat","medicinelodge","medina","medinah","medio-sitio","mediositio","medora","medulla","medway","meeker","meggett","mehlville","meigs","meiners-oaks","meinersoaks","melbourne","melbourne-beach","melbournebeach","melcher-dallas","melcherdallas","melchor-ocampo","melchorocampo","melfort","melissa","melita","meliton-albanez-dominguez","melitonalbanezdominguez","mellwood","melocheville","melody-hill","melodyhill","melrose","melrose-park","melrosepark","melville","melvindale","memphis","mena","menahga","menands","menard","menasha","mendenhall","mendez","mendham","mendocino","mendon","mendota","mendota-heights","mendotaheights","menifee","menlo-park","menlopark","menominee","menomonee-falls","menomoneefalls","menomonie","menores","mentone","mentor","mentor-on-the-lake","mentoronthelake","meoqui","mequetla","mequon","meraux","merced","merced-del-potrero","merceddelpotrero","mercedes","mercer","mercer-island","mercerisland","mercersburg","mercerville","mercerville-hamilton-square","mercervillehamiltonsquare","merchantville","mercier","meredith","meredosia","merida","meriden","meridian","meridian-hills","meridian-station","meridianhills","meridianstation","meridianville","merino","merkel","merlin","mermaid","merriam","merriam-woods","merriamwoods","merrick","merrifield","merrill","merrillville","merrimac","merrimack","merrionette-park","merrionettepark","merritt","merritt-island","merritt-park","merrittisland","merrittpark","merrydale","merryville","merton","mertzon","mesa","mesa-de-guadalupe","mesa-del-huracan","mesa-del-nayar","mesa-grande","mesa-verde","mesadeguadalupe","mesadelhuracan","mesadelnayar","mesagrande","mesaverde","mescal","mescalero","mesilla","mesillas","meson-de-los-sauces","mesondelossauces","mesonnuevocanadadelamagdalena","mesquite","metabetchouan","metabetchouan-lac-a-la-croix","metabetchouanlacalacroix","metairie","metairie-terrace","metairieterrace","metamora","metapa","metcalfe","metchosin","metepec","metepec-primero","metepecprimero","methuen","metlachernandezmetlacprimero","metlakatla","metlaltoyuca","metlapa","metlatonoc","metropolis","metter","metuchen","metzger","metztitlan","mex","mexcala","mexcalcuautla","mexia","mexicali","mexicaltzingo","mexicanos","mexico","mexico-beach","mexico-city","mexicobeach","mexicocity","mexicostate","mexpan","mexquitic-de-carmona","mexquiticdecarmona","mextepec","mexticacan","meyersdale","mezapa-la-fabrica","mezapalafabrica","mezcala","mezcales","mezquital-del-oro","mezquitaldeloro","mezquite-de-luna","mezquite-de-sotelo","mezquite-gordo","mezquitedeluna","mezquitedesotelo","mezquitegordo","mezquitic","mezquitic-de-la-magdalena","mezquiticdelamagdalena","mezquititlan","mf","mfa","mg","mgs","mh","mhca","mhh","mhld","mhmp","mhs","mhv","mi","mi-patria-es-primero","miacatlan","miahuatlan","miahuatlan-de-porfirio-diaz","miahuatlandeporfiriodiaz","miami","miami-beach","miami-dade","miami-gardens","miami-heights","miami-lakes","miami-shores","miami-springs","miamibeach","miamidade","miamigardens","miamiheights","miamilakes","miamisburg","miamishores","miamisprings","miamitown","mic","micco","michac","michapa","michigan","michigan-center","michigan-city","michigancenter","michigancity","michimaloya","michoacan-de-ocampo","michoacandeocampo","mid-cambridge","mid-city","midcambridge","midcity","middle-island","middle-river","middle-valley","middle-village","middleborough","middleborough-center","middleboroughcenter","middlebourne","middleburg","middleburg-heights","middleburgh","middleburgheights","middlebury","middlebury-village","middleburyvillage","middlebush","middlefield","middleisland","middleport","middleriver","middlesboro","middlesex","middleton","middletown","middlevalley","middlevillage","middleville","midfield","midland","midland-beach","midland-city","midland-park","midlandbeach","midlandcity","midlandpark","midlothian","midpines","midtown","midvale","midway","midway-atoll","midway-city","midway-north","midway-south","midwayatoll","midwaycity","midwaynorth","midwaysouth","midwest-city","midwestcity","mier","mier-y-noriega","mierynoriega","mifflinburg","mifflintown","mifflinville","mignon","miguel-ahumada","miguel-aleman-la-doce","miguel-auza","miguel-hidalgo","miguel-negrete","miguel-utrilla-los-chorros","miguelahumada","miguelalemanladoce","miguelauza","miguelhidalgo","miguelnegrete","miguelutrillaloschorros","miguelvaldezquinteroelcorazon","mikoma","mila-doce","milaca","miladoce","milagros","milam","milan","milbank","milbridge","mildmay","miles-city","milesburg","milescity","milford","milford-mill","milfordmill","mililani-mauka-launani-valley","mililani-town","mililanimaukalaunanivalley","mililanitown","mill-city","mill-creek","mill-creek-east","mill-hall","mill-neck","mill-plain","mill-valley","mill-woods-town-centre","millbourne","millbrae","millbrook","millburn","millbury","millcity","millcreek","millcreekeast","milledgeville","millen","miller","miller-place","millerplace","millers-creek","millers-falls","millersburg","millerscreek","millersfalls","millersport","millersville","millet","millhall","milliken","millington","millinocket","millis","millis-clicquot","millisclicquot","millneck","millplain","mills","mills-river","millsboro","millsriver","millstadt","milltown","millvale","millvalley","millville","millwood","millwoodstowncentre","milo","milpa-alta","milpaalta","milpas-viejas","milpasviejas","milpillas","milpitas","milroy","milton","milton-center","milton-freewater","milton-upper-mills","milton-village","miltoncenter","miltonfreewater","miltonuppermills","miltonvillage","milwaukee","milwaukie","mimico","mims","mina","mina-mexico","mina-vieja","minamexico","minas-de-barroteran","minasdebarroteran","minatitlan","minavieja","minco","minden","mineola","mineral","mineral-de-angangueo","mineral-de-la-luz","mineral-del-monte","mineral-point","mineral-ridge","mineral-springs","mineral-wells","mineraldeangangueo","mineraldelaluz","mineraldelmonte","mineralpoint","mineralridge","mineralsprings","mineralwells","minersville","minerva","minerva-park","minervapark","minetto","mineville","mingo-junction","mingojunction","minier","minkler","minneapolis","minnedosa","minnehaha","minneola","minneota","minnesota","minnetonka","minnetonka-mills","minnetonkamills","minnetrista","minnewaukan","minoa","minonk","minooka","minor","minorca","minot","minot-air-force-base","minotairforcebase","minster","mint-hill","minthill","minturn","minzapan","mio","mipatriaesprimero","miquihuana","mira-mesa","mira-monte","mirabel","miraflores","miramar","miramar-beach","miramarbeach","miramesa","miramichi","miramonte","miravalle","miravalles","mirrormont","misantla","mishawaka","mishicot","misija","mision-de-chichimecas","mision-san-pablo","misiondechichimecas","misionsanpablo","mission","mission-bend","mission-canyon","mission-district","mission-hill","mission-hills","mission-viejo","missionbend","missioncanyon","missiondistrict","missionhill","missionhills","missionviejo","mississauga","mississauga-beach","mississaugabeach","mississippi","missoula","missouri","missouri-city","missouri-valley","missouricity","missourivalley","mistissini","mitchell","mitchellville","mitras-poniente","mitrasponiente","mitziton","mixcum","mixquiahuala-de-juarez","mixquiahualadejuarez","mixquiapan","mixtla","mixtla-de-altamirano","mixtladealtamirano","mixtlalcingo","mixtlan","mj","mjgc","mk","mkhh","ml","ml1s","mlc","mldc","mlf","mll","mln","mlp","mlpt","mm","mmc","mmdj","mmlv","mmpa","mn","mo","moab","moanalua-valley","moanaluavalley","moapa-town","moapa-valley","moapatown","moapavalley","moberly","mobile","mobridge","mochicahui","mochis","mochitlan","mocksville","mococha","mocorito","moctezuma","moctezuma-sonora","moctezumasonora","modena-park","modenapark","modesto","modoc","mogadore","mogul","mohall","mohave","mohave-valley","mohavevalley","mohawk","mohnton","mohoneras","moiliili","mojarras","mojave","mokena","mokuleia","molalla","molango","molas","moline","moline-acres","molineacres","molino","molino-abajo","molino-de-camou","molino-de-san-jose","molino-de-santa-ana","molinoabajo","molinodecamou","molinodesanjose","molinodesantaana","molinos","moloacan","momax","momence","mompani","mona","monaca","monahans","monarch-mill","monarchmill","moncks-corner","monckscorner","monclova","monclova-primer-sector","monclova-segundo-sector","monclovaprimersector","monclovasegundosector","moncton","mondovi","monee","monessen","monett","monette","monfort-heights","monfortheights","monmouth","monmouth-beach","monmouth-junction","monmouthbeach","monmouthjunction","mono","mono-vista","monon","monona","monongah","monongahela","monovista","monroe","monroe-city","monroe-north","monroecity","monroenorth","monroeville","monrovia","monsey","monson","monson-center","monsoncenter","mont-alto","mont-belvieu","mont-joli","mont-laurier","mont-royal","mont-saint-gregoire","mont-saint-hilaire","mont-tremblant","mont-vernon","montague","montalto","montalvin","montana","montana-city","montana-monarca-punta-altozano","montanacity","montanamonarcapuntaaltozano","montara","montauk","montbelvieu","montclair","monte-alegre","monte-alto","monte-blanco","monte-calvario","monte-del-coecillo","monte-escobedo","monte-grande","monte-kristal","monte-largo-1ra-seccion","monte-obscuro","monte-redondo","monte-rio","monte-salas","monte-sereno","monte-verde","monte-verde-chiveria","monte-vista","monteagle","montealegre","montealto","montebello","monteblanco","montecalvario","montecillo","montecillos","montecito","montecristo","montedelcoecillo","monteescobedo","montegrande","montegut","montekristal","montelargo1raseccion","monteleon","montello","montemorelos","montenegro","montenegro-la-lana","montenegrolalana","monteobscuro","monteon","monteredondo","monterey","monterey-park","montereypark","monterio","monterrey","montesalas","montesano","montesereno","montevallo","monteverde","monteverdechiveria","montevideo","montevista","montezuma","montgomery","montgomery-city","montgomery-village","montgomerycity","montgomeryvillage","montgomeryville","monticello","montjoli","montlaurier","montmagny","montoro","montour-falls","montourfalls","montoursville","montpelier","montreal","montreal-est","montreal-ouest","montrealest","montrealouest","montrose","montrose-ghent","montroseghent","montross","montroyal","montsaintgregoire","montsainthilaire","monttremblant","montura","montvale","montverde","montvernon","montville-center","montvillecenter","montz","monument","monument-beach","monument-hills","monumentbeach","monumenthills","moodus","moody","moonachie","moorcroft","moore","moore-haven","moorefield","moorehaven","mooreland","moores-mill","mooresmill","moorestown-lenola","moorestownlenola","mooresville","moorhead","moorpark","moose-factory","moose-jaw","moose-lake","moose-wilson-road","moosefactory","moosejaw","mooselake","moosewilsonroad","moosic","moosomin","moosonee","moosup","mor","mora","mora-villalobos","morada","moraga","moraine","morales","moralillo","moras","moravia","moravian-falls","moravianfalls","moravillalobos","morden","morehead","morehead-city","moreheadcity","moreland","moreland-hills","morelandhills","morelia","morelita","morelos","morelos-canada","morelos-piedra-3ra-seccion","moreloscanada","morelospiedra3raseccion","morenci","moreno-valley","morenovalley","moretown","morgan","morgan-city","morgan-hill","morgan-park","morgancity","morgandale","morganfield","morganhill","morganpark","morgans-point-resort","morganspointresort","morganton","morgantown","morganville","moriarty","moriches","morin-heights","morinheights","morinville","moris","morningside","morningside-heights","morningsideheights","moro","morocco","morocoy","moroleon","moroncarit","morongo-valley","morongovalley","moroni","morrell-park","morrellpark","morrilton","morris","morris-heights","morris-park","morris-plains","morrisania","morrisburg","morrisheights","morrison","morrisonville","morrispark","morrisplains","morristown","morrisville","morro-bay","morrobay","morrow","morton","morton-grove","mortongrove","moscow","moscow-mills","moscowmills","moses-lake","moses-lake-north","moseslake","moseslakenorth","mosheim","mosinee","mosj","mosquero","moss-beach","moss-bluff","moss-park","moss-point","mossbeach","mossbluff","mosspark","mosspoint","motl","motley","motovatha","motozintla","mott","mott-haven","motthaven","motul","motzorongo","moulton","moultonborough","moultrie","mound","mound-bayou","mound-city","moundbayou","moundcity","moundridge","mounds","mounds-view","moundsview","moundsville","moundville","mount-airy","mount-albert","mount-angel","mount-arlington","mount-ayr","mount-brydges","mount-carmel","mount-carroll","mount-clemens","mount-cobb","mount-dennis","mount-dora","mount-ephraim","mount-gay-shamrock","mount-gilead","mount-greenwood","mount-healthy","mount-healthy-heights","mount-hermon","mount-holly","mount-holly-springs","mount-hood-village","mount-hope","mount-horeb","mount-ida","mount-ivy","mount-jackson","mount-joy","mount-juliet","mount-kisco","mount-laurel","mount-lebanon","mount-morris","mount-olive","mount-oliver","mount-olivet","mount-olympus","mount-orab","mount-pearl","mount-penn","mount-pleasant","mount-pleasant-east","mount-pleasant-west","mount-plymouth","mount-pocono","mount-prospect","mount-pulaski","mount-rainier","mount-repose","mount-shasta","mount-sinai","mount-sterling","mount-union","mount-vernon","mount-vista","mount-washington","mount-wolf","mount-zion","mountain-brook","mountain-city","mountain-green","mountain-grove","mountain-home","mountain-house","mountain-iron","mountain-lake","mountain-lake-park","mountain-lakes","mountain-lodge-park","mountain-park","mountain-ranch","mountain-road","mountain-top","mountain-view","mountain-view-acres","mountain-village","mountainaire","mountainbrook","mountaincity","mountaingreen","mountaingrove","mountainhome","mountainhouse","mountainiron","mountainlake","mountainlakepark","mountainlakes","mountainlodgepark","mountainpark","mountainranch","mountainroad","mountainside","mountaintop","mountainview","mountainviewacres","mountainvillage","mountairy","mountalbert","mountangel","mountarlington","mountayr","mountbrydges","mountcarmel","mountcarroll","mountclemens","mountcobb","mountdennis","mountdora","mountephraim","mountgayshamrock","mountgilead","mountgreenwood","mounthealthy","mounthealthyheights","mounthermon","mountholly","mounthollysprings","mounthoodvillage","mounthope","mounthoreb","mountida","mountivy","mountjackson","mountjoy","mountjuliet","mountkisco","mountlake-terrace","mountlaketerrace","mountlaurel","mountlebanon","mountmorris","mountolive","mountoliver","mountolivesilverstonejamestown","mountolivet","mountolympus","mountorab","mountpearl","mountpenn","mountpleasant","mountpleasanteast","mountpleasantwest","mountplymouth","mountpocono","mountprospect","mountpulaski","mountrainier","mountrepose","mountshasta","mountsinai","mountsterling","mountunion","mountvernon","mountville","mountvista","mountwashington","mountwolf","mountzion","moville","mowbray-mountain","mowbraymountain","moweaqua","moyahua-de-estrada","moyahuadeestrada","moyoapan","moyock","moyos","moyotepec","moyotepec-moyotepec-de-juarez","moyotepecmoyotepecdejuarez","moyotzingo","mozomboa","mp","mp3s","mpe","mpep","mpr","mps","mpw","mqlc","mr","mrg","mrgt","mrsi","ms","msg","msh","msim","msp","mspc","mss","mt","mtch","mti","mu","muenster","muhlenberg-park","muhlenbergpark","mukilteo","mukwonago","mulberry","mulc","muldrow","mulege","muleshoe","mulino","mullen","mullens","mullica-hill","mullicahill","mullins","multe","multnomah","mulvane","mum","muna","muncie","muncy","munday","mundelein","mundo-nuevo","mundonuevo","mundys-corner","mundyscorner","munford","munfordville","munhall","munising","munitepec-de-madero","munitepecdemadero","muniz","munoz","munroe-falls","munroefalls","munsey-park","munseypark","munsons-corners","munsonscorners","munster","muquen","murdo","murfreesboro","murillo-colonia","murillocolonia","murphy","murphys","murphys-estates","murphysboro","murphysestates","murray","murraysville","murrells-inlet","murrellsinlet","murrieta","murrieta-hot-springs","murrietahotsprings","murrysville","muscatine","muscle-shoals","muscleshoals","muscoda","muscoy","muse","muskego","muskegon","muskegon-heights","muskegonheights","muskogee","mustang","muttontown","muxupip","mv","mva","mvc","mvdf","mvrg","mw","mwh","mwr","mwtc","myers-corner","myerscorner","myerstown","myersville","myn","myrtle-beach","myrtle-creek","myrtle-grove","myrtle-point","myrtlebeach","myrtlecreek","myrtlegrove","myrtlepoint","myrtletown","mystic","mystic-island","mysticisland","mz","na","nac","nacajuca","nachig","naco","nacogdoches","nacori-chico","nacorichico","nacozari-de-garcia","nacozari-viejo","nacozaridegarcia","nacozariviejo","nacuche","nadadores","nafb","nag","nags-head","nagshead","nahanni-butte","nahannibutte","nahant","nahuatzen","nahunta","naica","nakusp","nal","nambe","namiquipa","nampa","nanacatlan","nanahuatipam","nanaimo","nanakuli","nanawale-estates","nanawaleestates","nanticoke","nanton","nantucket","nanty-glo","nantyglo","nantzha","nanuet","naolinco-de-victoria","naolincodevictoria","napa","napanee","napanee-downtown","napaneedowntown","napanoch","napavine","naperville","napierville","napili-honokowai","napilihonokowai","naples","naples-manor","naples-park","naplesmanor","naplespark","napoleon","napoleonville","nappanee","naranja","naranja-de-tapia","naranjadetapia","naranjal","naranjo","naranjos","narberth","narciso-mendoza","narcisomendoza","narragansett","narragansett-pier","narragansettpier","narrows","nash","nashotah","nashua","nashville","nassau","nassau-bay","nassau-village-ratliff","nassaubay","nassauvillageratliff","natalbany","natalia","natchez","natchitoches","natick","national-city","national-harbor","national-park","nationalcity","nationalharbor","nationalpark","nativitas","naucalpan-de-juarez","naucalpandejuarez","naugatuck","naupan","nautla","nauvoo","nauzontla","nava","navajas","navajo","naval-academy","navalacademy","navarre","navarrete","navasota","navassa","navassa-island","navassaisland","navenchauc","navesink","navojoa","navolato","navy-yard-city","navyyardcity","nay","nayarit","nazareno","nazareth","nazas","nb","nba","nbh","nbs","nbsp","nbv","nc","ncg","nch","nck","ncm","ncn","nct","nd","nda","ndb","ndbn","ndd","nddg","nddl","nddp","ndg","ndh","ndj","ndm","ndph","ndr","ndt","ndv","ne","nealtican","near-north-side","near-south-side","nearnorthside","nearsouthside","neb","nebraska","nebraska-city","nebraskacity","necaxa","necoxcalco","necoxtla","nederland","nedrow","neebing","needham","needles","needville","neenah","neepawa","negaunee","negritas","neillsville","nejapa","nejapa-de-madero","nejapademadero","nekoosa","neligh","nellieburg","nellis-air-force-base","nellisairforcebase","nellysford","nelson","nelsonville","nem","nenehuaca","neodesha","neoga","neosho","nepantladesorjuanainesdelacruz","nepean","nephi","neponsit","nepopualco","neptune-beach","neptune-city","neptunebeach","neptunecity","nesconset","nescopeck","nesquehoning","ness-city","nesscity","netcong","nettleton","netzahualcoyotl","neuse-forest","neuseforest","neutla","neuville","nevada","nevada-city","nevadacity","new-albany","new-athens","new-augusta","new-baden","new-baltimore","new-beaver","new-bedford","new-berlin","new-berlinville","new-bern","new-bloomfield","new-boston","new-braunfels","new-bremen","new-brighton","new-britain","new-brockton","new-brunswick","new-buffalo","new-burlington","new-california","new-canaan","new-caney","new-carlisle","new-carrollton","new-cassel","new-castle","new-castle-northwest","new-century-ks","new-chicago","new-city","new-columbia","new-concord","new-cumberland","new-dorp","new-dorp-beach","new-durham","new-eagle","new-egypt","new-ellenton","new-fairfield","new-fairview","new-franklin","new-freedom","new-glarus","new-glasgow","new-gloucester","new-hamburg","new-hampshire","new-hampton","new-hartford","new-hartford-center","new-haven","new-hempstead","new-holland","new-holstein","new-hope","new-hyde-park","new-iberia","new-ipswich","new-jersey","new-johnsonville","new-kensington","new-kent","new-kingman-butler","new-lebanon","new-lenox","new-lexington","new-lisbon","new-llano","new-london","new-madrid","new-market","new-marlborough","new-martinsville","new-maryland","new-matamoras","new-mexico","new-miami","new-middletown","new-milford","new-orleans","new-oxford","new-palestine","new-paltz","new-paris","new-pekin","new-philadelphia","new-plymouth","new-port-richey","new-port-richey-east","new-prague","new-preston","new-providence","new-richland","new-richmond","new-river","new-roads","new-rochelle","new-rockford","new-sarpy","new-sharon","new-shoreham","new-smyrna-beach","new-south-memphis","new-springville","new-square","new-stanton","new-summerfield","new-tazewell","new-territory","new-toronto","new-town","new-ulm","new-union","new-vienna","new-waterford","new-waverly","new-wes-valley","new-westminster","new-whiteland","new-wilmington","new-windsor","new-york","new-york-city","new-york-mills","newalbany","newark","newathens","newaugusta","newaygo","newbaden","newbaltimore","newbeaver","newbedford","newberg","newberlin","newberlinville","newbern","newberry","newbloomfield","newboston","newbraunfels","newbremen","newbrighton","newbritain","newbrockton","newbrunswick","newbuffalo","newburg","newburgh","newburgh-heights","newburghheights","newburlington","newbury","newburyport","newcalifornia","newcanaan","newcaney","newcarlisle","newcarrollton","newcassel","newcastle","newcastlenorthwest","newcenturyks","newchicago","newcity","newcolumbia","newcomerstown","newconcord","newcumberland","newdorp","newdorpbeach","newdurham","neweagle","newegypt","newell","newellenton","newellton","newfairfield","newfairview","newfane","newfield","newfoundland","newfoundland-and-labrador","newfoundlandandlabrador","newfranklin","newfreedom","newglarus","newglasgow","newgloucester","newhamburg","newhampshire","newhampton","newhartford","newhartfordcenter","newhaven","newhempstead","newholland","newholstein","newhope","newhydepark","newiberia","newington","newipswich","newjersey","newjohnsonville","newkensington","newkent","newkingmanbutler","newkirk","newland","newlebanon","newlenox","newlexington","newlisbon","newllano","newlondon","newmadrid","newman","newmanstown","newmarket","newmarlborough","newmartinsville","newmaryland","newmatamoras","newmexico","newmiami","newmiddletown","newmilford","newnan","neworleans","newoxford","newpalestine","newpaltz","newparis","newpekin","newphiladelphia","newplymouth","newport","newport-beach","newport-east","newport-news","newportbeach","newporteast","newportnews","newportrichey","newportricheyeast","newprague","newpreston","newprovidence","newrichland","newrichmond","newriver","newroads","newrochelle","newrockford","newsarpy","newsharon","newshoreham","newsmyrnabeach","newsouthmemphis","newspringville","newsquare","newstanton","newsummerfield","newtazewell","newterritory","newton","newton-center","newton-corner","newton-falls","newton-highlands","newton-lower-falls","newton-upper-falls","newtonbrook-east","newtonbrook-west","newtonbrookeast","newtonbrookwest","newtoncenter","newtoncorner","newtonfalls","newtonhighlands","newtonlowerfalls","newtonupperfalls","newtonville","newtoronto","newtown","newtown-grant","newtowngrant","newulm","newunion","newvienna","newville","newwaterford","newwaverly","newwestminster","newwesvalley","newwhiteland","newwilmington","newwindsor","newyork","newyorkcity","newyorkmills","nexpan","nexticapan","nextipac","nezahualcoyotl","nezperce","nf","nfdl","nfl","nfm","nfo","nfv","ng","ngd","ngr","nh","nhc","nhp","ni","niagara","niagara-falls","niagara-on-the-lake","niagarafalls","niagaraonthelake","niantic","nibley","nice","nicetown","nicetown-tioga","nicetowntioga","niceville","nicholasville","nicholls","nichols-hills","nicholshills","nicholson","nickerson","nicolas-blanco-san-pancho","nicolas-bravo","nicolas-r-casillas","nicolas-romero","nicolas-ruiz","nicolasblancosanpancho","nicolasbravo","nicolasrcasillas","nicolasromero","nicolasruiz","nicolet","nicollet","nicoma-park","nicomapark","nidr","nieves","nigromante","nikiski","niland","niles","niltepec","ninety-six","ninetysix","ninguno-cereso","ningunocereso","ninnekah","ninos-heroes","ninosheroes","nipawin","nipomo","niskayuna","nissequogue","nisswa","nitro","niu-valley","niuvalley","niverville","niwot","nixa","nixon","nj","njdg","nk","nkb","nkc","nkl","nl","nlc","nle","nlec","nlf","nlr","nlv","nm","nmb","nmer","nmi","nmv","nn","nnhp","nns","no","noank","noble","nobleboro","noblesville","nocatee","nochistlan-de-mejia","nochistlandemejia","nocona","nocupetaro","noe-valley","noel","noevalley","nogales","nokesville","nokomis","nolanville","nolensville","nolo","nombre-de-dios","nombrededios","nome","nonantum","nonoava","nooksack","noonan","nop","nopala-de-villagran","nopaladevillagran","nopalapan","nopalera","nopaltepec","nopalucan","nora-springs","norasprings","norco","norcross","norfolk","norfolk-county","norfolkcounty","noria-de-angeles","noria-del-borrego-norias","noria-nueva","noriadeangeles","noriadelborregonorias","norianueva","norias-del-paso-hondo","norias-del-refugio","noriasdelpasohondo","noriasdelrefugio","norland","norlina","normal","norman","norman-wells","normandin","normandy","normandy-park","normandypark","normanwells","norridge","norridgewock","norris","norris-city","norriscity","norristown","norte-1ra-seccion-san-julian","norte1raseccionsanjulian","north-adams","north-alamo","north-amherst","north-amityville","north-andover","north-andrews-gardens","north-apollo","north-arlington","north-attleborough-center","north-auburn","north-augusta","north-aurora","north-babylon","north-ballston-spa","north-baltimore","north-barrington","north-bath","north-battleford","north-bay","north-bay-shore","north-bay-village","north-beach","north-beach-haven","north-bel-air","north-belle-vernon","north-bellmore","north-bellport","north-bend","north-bennington","north-bergen","north-berwick","north-bethesda","north-bibb","north-boston","north-braddock","north-branch","north-branford","north-brighton","north-brookfield","north-brooksville","north-browning","north-brunswick","north-caldwell","north-canton","north-cape-may","north-carolina","north-castle","north-catasauqua","north-center","north-charleroi","north-charleston","north-chicago","north-chicopee","north-college-hill","north-collins","north-conway","north-corbin","north-cowichan","north-creek","north-crossett","north-dakota","north-decatur","north-deland","north-druid-hills","north-eagle-butte","north-east","north-eastham","north-edwards","north-el-monte","north-elba","north-end","north-english","north-fair-oaks","north-falmouth","north-fond-du-lac","north-fork","north-fork-village","north-fort-lewis","north-fort-myers","north-gates","north-granby","north-great-river","north-grosvenor-dale","north-haledon","north-hampton","north-hartsville","north-haven","north-haverhill","north-hero","north-highlands","north-hills","north-hollywood","north-hudson","north-judson","north-kansas-city","north-kensington","north-key-largo","north-kingstown","north-kingsville","north-la-crosse","north-lakeport","north-lakeville","north-las-vegas","north-lauderdale","north-laurel","north-lawndale","north-lewisburg","north-liberty","north-lindenhurst","north-little-rock","north-logan","north-madison","north-manchester","north-mankato","north-massapequa","north-merrick","north-miami","north-miami-beach","north-middletown","north-muskegon","north-myrtle-beach","north-new-hyde-park","north-newton","north-oaks","north-ogden","north-olmsted","north-oysteryellow-point","north-palm-beach","north-patchogue","north-pekin","north-pembroke","north-peoria","north-perth","north-plainfield","north-plains","north-platte","north-plymouth","north-pole","north-port","north-portland","north-potomac","north-prairie","north-providence","north-puyallup","north-randall","north-reading","north-redington-beach","north-richland-hills","north-richmond","north-ridgeville","north-river-shores","north-riverdale","north-riverside","north-rock-springs","north-royalton","north-saanich","north-saint-paul","north-salt-lake","north-sarasota","north-scituate","north-sea","north-seekonk","north-shore","north-sioux-city","north-smithfield","north-spearfish","north-springfield","north-stamford","north-star","north-stjames-town","north-syracuse","north-terre-haute","north-tonawanda","north-tunica","north-tustin","north-vacherie","north-valley","north-valley-stream","north-vancouver","north-vernon","north-versailles","north-wales","north-wantagh","north-warren","north-webster","north-weeki-wachee","north-westport","north-wildwood","north-wilkesboro","north-windham","north-yelm","north-york","north-zanesville","northadams","northalamo","northamherst","northamityville","northampton","northandover","northandrewsgardens","northapollo","northarlington","northattleboroughcenter","northauburn","northaugusta","northaurora","northbabylon","northballstonspa","northbaltimore","northbarrington","northbath","northbattleford","northbay","northbayshore","northbayvillage","northbeach","northbeachhaven","northbelair","northbellevernon","northbellmore","northbellport","northbend","northbennington","northbergen","northberwick","northbethesda","northbibb","northborough","northboston","northbraddock","northbranch","northbranford","northbridge","northbrighton","northbrook","northbrookfield","northbrooksville","northbrowning","northbrunswick","northcaldwell","northcanton","northcapemay","northcarolina","northcastle","northcatasauqua","northcenter","northcharleroi","northcharleston","northchase","northchicago","northchicopee","northcollegehill","northcollins","northconway","northcorbin","northcowichan","northcreek","northcrest","northcrossett","northdakota","northdale","northdecatur","northdeland","northdruidhills","northeaglebutte","northeast","northeast-ithaca","northeastham","northeastithaca","northedwards","northelba","northelmonte","northend","northenglish","northern-cambria","northern-liberties","northern-mariana-islands","northerncambria","northernliberties","northernmarianaislands","northfairoaks","northfalmouth","northfield","northfonddulac","northfork","northforkvillage","northfortlewis","northfortmyers","northgate","northgates","northglenn","northgranby","northgreatriver","northgrosvenordale","northhaledon","northhampton","northhartsville","northhaven","northhaverhill","northhero","northhighlands","northhills","northhollywood","northhudson","northjudson","northkansascity","northkensington","northkeylargo","northkingstown","northkingsville","northlacrosse","northlake","northlakeport","northlakes","northlakeville","northlasvegas","northlauderdale","northlaurel","northlawndale","northlewisburg","northliberty","northlindenhurst","northlittlerock","northlogan","northmadison","northmanchester","northmankato","northmassapequa","northmerrick","northmiami","northmiamibeach","northmiddletown","northmuskegon","northmyrtlebeach","northnewhydepark","northnewton","northoaks","northogden","northolmsted","northoysteryellowpoint","northpalmbeach","northpatchogue","northpekin","northpembroke","northpeoria","northperth","northplainfield","northplains","northplatte","northplymouth","northpole","northport","northportland","northpotomac","northprairie","northprovidence","northpuyallup","northrandall","northreading","northredingtonbeach","northrichlandhills","northrichmond","northridge","northridgeville","northriverdale","northrivershores","northriverside","northrocksprings","northroyalton","northsaanich","northsaintpaul","northsaltlake","northsarasota","northscituate","northsea","northseekonk","northshore","northsiouxcity","northsmithfield","northspearfish","northspringfield","northstamford","northstar","northstjamestown","northsyracuse","northterrehaute","northtonawanda","northtunica","northtustin","northumberland","northvacherie","northvale","northvalley","northvalleystream","northvancouver","northvernon","northversailles","northview","northville","northwales","northwantagh","northwarren","northwebster","northweekiwachee","northwest-harbor","northwest-harborcreek","northwest-harwich","northwest-harwinton","northwest-ithaca","northwest-territories","northwestharbor","northwestharborcreek","northwestharwich","northwestharwinton","northwestithaca","northwestport","northwestterritories","northwildwood","northwilkesboro","northwindham","northwood","northwoods","northyelm","northyork","northzanesville","norton","norton-center","norton-shores","nortoncenter","nortonshores","nortonville","norwalk","norway","norwell","norwich","norwood","norwood-historical","norwood-young-america","norwoodhistorical","norwoodyoungamerica","notl","notre-dame","notre-dame-de-grace","notre-dame-de-lile-perrot","notre-dame-des-prairies","notre-dame-du-lac","notre-dame-du-mont-carmel","notredame","notredamedegrace","notredamedelileperrot","notredamedesprairies","notredamedulac","notredamedumontcarmel","nottingham","nova-scotia","novara","novascotia","novato","novi","nowata","nowthen","noyack","noyan","np","npb","npc","npnc","npr","npre","nr","nrb","nrc","nrh","nrs","ns","nsb","nsc","nsjc","nsji","nsjp","nsl","nsm","nsp","nsr","nss","nst","nt","nth","ntl","nu","nueces","nueva-america","nueva-ameyalco","nueva-apolonia","nueva-ciudad-guerrero","nueva-colombia","nueva-esperanza","nueva-frontera","nueva-independencia","nueva-italia-de-ruiz","nueva-libertad","nueva-libertad-el-colorado","nueva-morelia","nueva-palestina","nueva-primavera","nueva-rosita","nueva-santa-rosa","nueva-sesecapa","nueva-tenochtitlan-rizo-de-oro","nueva-villa-de-padilla","nuevaamerica","nuevaameyalco","nuevaapolonia","nuevaciudadguerrero","nuevacolombia","nuevadivisiondelbayoguatemala","nuevaesperanza","nuevafrontera","nuevaindependencia","nuevaitaliaderuiz","nuevalibertad","nuevalibertadelcolorado","nuevamorelia","nuevapalestina","nuevaprimavera","nuevarosita","nuevasantarosa","nuevasesecapa","nuevatenochtitlanrizodeoro","nuevavilladepadilla","nuevo","nuevo-amatenango","nuevo-balsas","nuevo-carmen-tonapac","nuevo-casas-grandes","nuevo-crucitas","nuevo-francisco-leon","nuevo-guerrero","nuevo-ideal","nuevo-ixcatlan","nuevo-juan-del-grijalva","nuevo-laredo","nuevo-leon","nuevo-limar","nuevo-mexico","nuevo-michoacan-estacion-riito","nuevo-milenio-valdivia","nuevo-morelos","nuevo-naranjo","nuevo-necaxa","nuevo-nicapa","nuevo-pacayal","nuevo-progreso","nuevo-pumpuapa-cereso","nuevo-san-jose-independencia","nuevo-san-juan-chamula","nuevo-san-juan-parangaricutiro","nuevo-san-martin","nuevo-san-miguel","nuevo-sitala","nuevo-tampaon","nuevo-tantoan","nuevo-torno-largo","nuevo-urecho","nuevo-vallarta","nuevo-vicente-guerrero","nuevo-volcan-chichonal","nuevo-xcan","nuevo-xochimilco","nuevo-zirosto","nuevoamatenango","nuevobalsas","nuevocarmentonapac","nuevocasasgrandes","nuevoceresoregionaldealtamira","nuevocrucitas","nuevofranciscoleon","nuevoguerrero","nuevoideal","nuevoixcatlan","nuevojuandelgrijalva","nuevolaredo","nuevoleon","nuevolimar","nuevomexico","nuevomichoacanestacionriito","nuevomileniovaldivia","nuevomorelos","nuevonaranjo","nuevonecaxa","nuevonicapa","nuevopacayal","nuevopasonazarenochichicazapa","nuevoprogreso","nuevopumpuapacereso","nuevosanjoseindependencia","nuevosanjuanchamula","nuevosanjuanparangaricutiro","nuevosanmartin","nuevosanmiguel","nuevositala","nuevotampaon","nuevotantoan","nuevotornolargo","nuevourecho","nuevovallarta","nuevovicenteguerrero","nuevovolcanchichonal","nuevoxcan","nuevoxochimilco","nuevozirosto","nuf","numaran","nunavut","nunda","nunkini","nurillo","nurio","nutley","nutter-fort","nutterfort","nuuanu-punchbowl","nuuanupunchbowl","nuxco","nv","nvc","nvdp","nvg","nvr","nvs","nw","nwt","nwv","nww","nx","ny","nya","nyack","nyc","nye","nym","nyssa","nz","o1s","o4s","oa","oacalco","oafb","oak-bay","oak-bluffs","oak-brook","oak-cliff-place","oak-creek","oak-forest","oak-grove","oak-harbor","oak-hill","oak-hill-park","oak-hills","oak-hills-place","oak-island","oak-lawn","oak-leaf","oak-park","oak-park-heights","oak-point","oak-ridge","oak-ridge-north","oak-trail-shores","oak-valley","oak-view","oakbay","oakbluffs","oakboro","oakbrook","oakbrook-terrace","oakbrookterrace","oakcliffplace","oakcreek","oakdale","oakes","oakfield","oakforest","oakgrove","oakham","oakharbor","oakhill","oakhillpark","oakhills","oakhillsplace","oakhurst","oakisland","oakland","oakland-city","oakland-park","oaklandcity","oaklandpark","oaklawn","oakleaf","oakleaf-plantation","oakleafplantation","oakley","oaklyn","oakmont","oakpark","oakparkheights","oakpoint","oakport","oakridge","oakridgenorth","oakton","oaktrailshores","oakvalley","oakview","oakville","oakwood","oakwood-hills","oakwood-village","oakwoodhills","oakwoodvillage","oasis","oatfield","oax","oaxaca","oaxtepec","ob","obbr","obc","oberlin","obetz","obion","oblong","obrajuelo","obts","oc","ocala","ocampo","occidental","occidente-4ta-seccion","occidente-san-francisco","occidente4taseccion","occidentesanfrancisco","occoquan","ocean-acres","ocean-bluff-brant-rock","ocean-city","ocean-gate","ocean-grove","ocean-park","ocean-pines","ocean-pointe","ocean-ridge","ocean-shores","ocean-springs","ocean-view","oceana","oceanacres","oceanbluffbrantrock","oceancity","oceangate","oceangrove","oceano","oceanpark","oceanpines","oceanpointe","oceanport","oceanridge","oceanshores","oceanside","oceansprings","oceanview","ocelota","ocho-de-enero","ochodeenero","ochusjob","ocilla","ococh","ocoee","oconahua","oconnor-parkview","oconnorparkview","oconomowoc","oconto","oconto-falls","ocontofalls","ocopulco","ocosingo","ocotal-chico","ocotalchico","ocotepec","ocotequila","ocotillo","ocotitlan","ocotlamanic","ocotlan","ocotlan-de-betancourt","ocotlan-de-morelos","ocotlan-de-venustiano-carranza","ocotlandebetancourt","ocotlandemorelos","ocotlandevenustianocarranza","ocoxaltepec","ocoyoacac","ocozocoautla-de-espinosa","ocozocoautladeespinosa","ocozotepec","ocp","ocr","octaviano-lopez","octavianolopez","octavio-paz","octaviopaz","octeyuco-dos-mil","octeyucodosmil","ocuapan","ocuilan-de-arteaga","ocuilandearteaga","ocuiltzapoyo","ocuituco","ocumicho","ocurio","od","oda","odb","ode","odell","odem","odenton","odenville","odessa","odh","odin","odj","odm","odon","odr","odvc","odz","oe","oelwein","oey","of","ofallon","offutt-air-force-base","offuttairforcebase","ofg","og","ogallala","ogden","ogden-dunes","ogdendunes","ogdensburg","ogh","oglala","oglesby","oglethorpe","ogontz","ogunquit","oh","ohatchee","ohg","ohio","ohioville","ohkay-owingeh","ohkayowingeh","ohp","ohuapan","ohuatipa","ohuilapam","oi","oil-city","oilcity","oildale","oilton","oj","ojai","ojinaga","ojite-rancho-nuevo","ojiteranchonuevo","ojitos","ojo-caliente","ojo-de-agua","ojo-de-agua-de-ballesteros","ojo-de-agua-de-bucio","ojo-de-agua-de-crucitas","ojo-de-agua-de-la-trinidad","ojo-de-agua-de-mendoza","ojo-de-agua-de-moran","ojo-de-agua-de-palmillas","ojo-de-agua-de-solano","ojo-de-agua-del-refugio","ojo-de-rana","ojo-seco","ojocaliente","ojodeagua","ojodeaguadeballesteros","ojodeaguadebucio","ojodeaguadecrucitas","ojodeaguadelatrinidad","ojodeaguadelrefugio","ojodeaguademendoza","ojodeaguademoran","ojodeaguadepalmillas","ojodeaguadesolano","ojoderana","ojoseco","ojuelos-de-jalisco","ojuelosdejalisco","ojus","ok","oka","okanagan","okanagan-falls","okanaganfalls","okanogan","okarche","okauchee-lake","okaucheelake","okawville","okeechobee","okeene","okemah","okemos","oklahoma","oklahoma-city","oklahomacity","okmulgee","okolona","okotoks","ol","ola","olathe","olcott","olcuatitan","old-bethpage","old-bridge","old-brookville","old-city","old-east-york","old-fig-garden","old-forge","old-greenwich","old-jamestown","old-jefferson","old-mystic","old-orchard","old-orchard-beach","old-river-winfree","old-saybrook","old-saybrook-center","old-tappan","old-town","old-westbury","oldbethpage","oldbridge","oldbrookville","oldcity","oldeastyork","oldfiggarden","oldforge","oldgreenwich","oldjamestown","oldjefferson","oldmystic","oldorchard","oldorchardbeach","oldriverwinfree","olds","oldsaybrook","oldsaybrookcenter","oldsmar","oldtappan","oldtown","oldwestbury","olean","oley","olga","olinala","olinda-cdp","olindacdp","olintepec","olintla","olivarez","olive-branch","olive-hill","olivebranch","olivehill","olivehurst","oliver","oliver-springs","oliversprings","olivet","olivette","olivia","olla","olmito","olmos-park","olmospark","olmsted-falls","olmstedfalls","olney","olomana","olton","oluta","olympia","olympia-fields","olympia-heights","olympiafields","olympiaheights","olyphant","om","omaha","omak","omao","omao-kukuiula","omaokukuiula","omealca","omega","omemee","ometepec","omitlan-de-juarez","omitlandejuarez","omoa","omro","on","onalaska","onancock","onarga","onavas","onawa","once-de-abril","oncedeabril","oneida","oneill","oneonta","onida","onion-creek","onioncreek","onondaga","onset","ontario","ontonagon","oo","oob","ooef","oolitic","oologah","oostburg","op","opa-locka","opalocka","opelika","opelousas","oph","opichen","opodepe","opopeo","opp","opportunity","oquawka","oquirrh","oquitoa","or","oracle","oradell","oran","orange","orange-beach","orange-city","orange-cove","orange-grove","orange-lake","orange-park","orangebeach","orangeburg","orangecity","orangecove","orangegrove","orangelake","orangepark","orangetree","orangevale","orangeville","orba-infiernito","orbainfiernito","orchard-city","orchard-grass-hills","orchard-hills","orchard-homes","orchard-lake","orchard-mesa","orchard-park","orchardcity","orchardgrasshills","orchardhills","orchardhomes","orchardlake","orchardmesa","orchardpark","orchards","orchidlands-estates","orchidlandsestates","orcutt","ord","orduna-de-abajo","orduna-de-arriba","ordunadeabajo","ordunadearriba","ordway","ore-city","orecity","oregon","oregon-city","oregoncity","oreland","orem","orford","orfordville","orient-heights","oriental","oriental-de-zapata","orientaldezapata","oriente-1ra-seccion","oriente1raseccion","oriente1raseccionsantodomingo","oriente2daseccionpalmahuaca","oriente2daseccionsancayetano","oriente6taseccionlosmulatos","orientheights","orilla-del-monte","orilladelmonte","orillia","orinda","oriole-beach","oriolebeach","orion","oriskany","orizaba","orizabita","orland","orland-hills","orland-park","orlandhills","orlando","orlandpark","orleans","orlovista","ormond-beach","ormond-by-the-sea","ormondbeach","ormondbythesea","ormstown","orn","oro-valley","orofino","oromocto","orono","oronoco","oronogo","orosi","orovalley","oroville","oroville-east","orovilleeast","orranteno","orrington","orrville","orting","ortiz","ortonville","orw","orwell","orwigsburg","os","osage","osage-beach","osage-city","osagebeach","osagecity","osakis","osawatomie","osborne","osburn","osc","oscar-soto-maynez","oscarsotomaynez","osceola","osceola-mills","osceolamills","osf","osgood","osgoode","oshawa","oshkosh","oskaloosa","osm","oso-viejo","osoviejo","osoyoos","osprey","osseo","ossian","ossining","ossipee","ossun","osterville","ostuacan","osumacinta","oswego","ot","otaez","otates","otatitlan","otatlan","oteapan","othello","otilpan","otis","otis-orchards-east-farms","otisorchardseastfarms","otisville","ots","otsego","ottawa","ottawa-hills","ottawahills","otterbein","otterburn-park","otterburnpark","ottumwa","otumba","otzoloapan","ouray","outlook","ov","overbrook","overland","overland-park","overlandpark","overlea","overton","ovid","oviedo","ovilla","ow","owasso","owatonna","owego","owen-sound","owens-cross-roads","owensboro","owenscrossroads","owensound","owensville","owenton","owings","owings-mills","owingsmills","owingsville","owls-head","owlshead","owosso","oxbow","oxchuc","oxcum","oxeloco","oxford","oxford-circle","oxfordcircle","oxiacaque","oxinam","oxkutzkab","oxnard","oxoboxo-river","oxoboxoriver","oxolotan","oxon-hill","oxon-hill-glassmanor","oxonhill","oxonhillglassmanor","oxtotipac","oxtotitlan","oyameles-de-hidalgo","oyamelesdehidalgo","oyster-bay","oyster-bay-cove","oyster-creek","oysterbay","oysterbaycove","oystercreek","ozark","ozelonacaxtla","ozona","ozone-park","ozonepark","oztotitlan","ozuluama-de-mascarenas","ozuluamademascarenas","ozumba-de-alzate","ozumbadealzate","p1","p1sp","pa","pabellon-de-arteaga","pabellon-de-hidalgo","pabellondearteaga","pabellondehidalgo","pablo","pablo-l-sidar","pablolsidar","pace","pacheco","pachiquita","pacho-nuevo","pacho-viejo","pachonuevo","pachoviejo","pachuca-de-soto","pachucadesoto","pachuquilla","pacific","pacific-city","pacific-grove","pacific-palisades","pacifica","pacificcity","pacificgrove","pacificpalisades","pacolet","pacu","paddock-lake","paddocklake","paden-city","padencity","paducah","pae","page","pagedale","pageland","pagosa-springs","pagosasprings","pahactla","pahala","pahokee","pahrump","pahua-hueca","pahuahueca","pahuatlan","pahuatlan-de-valle","pahuatlandevalle","paia","painesville","paint-rock","painted-post","paintedpost","paintla","paintrock","paintsville","paisanos","paisley","pajacuaran","pajapan","pajaro","palacios","palama","palatine","palatka","palau","palenque","palenville","palermo","palestine","palisade","palisades-park","palisadespark","palizada","palm","palm-aire","palm-bay","palm-beach","palm-beach-gardens","palm-beach-shores","palm-city","palm-coast","palm-desert","palm-harbor","palm-river-clair-mel","palm-springs","palm-springs-north","palm-valley","palma-grande","palma-pegada","palma-sola","palmagrande","palmaire","palmapegada","palmar-chico","palmar-de-bravo","palmar-de-cuautla","palmar-grande","palmar-primero","palmarchico","palmardebravo","palmardecuautla","palmargrande","palmarito-tochapan","palmaritotochapan","palmarprimero","palmas-de-abajo","palmasdeabajo","palmasola","palmbay","palmbeach","palmbeachgardens","palmbeachshores","palmcity","palmcoast","palmdale","palmdesert","palmer","palmer-heights","palmer-lake","palmerheights","palmerlake","palmerston-little-italy","palmerstonlittleitaly","palmerton","palmetto","palmetto-bay","palmetto-estates","palmettobay","palmettoestates","palmharbor","palmhurst","palmillas","palmillas-de-san-juan","palmillasdesanjuan","palmira","palmito-del-verde","palmitodelverde","palmona-park","palmonapark","palmriverclairmel","palmsprings","palmspringsnorth","palmvalley","palmview","palmview-south","palmviewsouth","palmyra","palmyra-atoll","palmyraatoll","palo","palo-alto","palo-bendito","palo-blanco","palo-cedro","palo-colorado","palo-gacho","palo-mulato","palo-pinto","palo-seco-el-gato","paloalto","palobendito","paloblanco","palocedro","palocolorado","palogacho","palolo","paloma-creek","paloma-creek-south","palomacreek","palomacreeksouth","palomar","palomares","palomas","palomulato","palopinto","palos-altos","palos-blancos","palos-heights","palos-hills","palos-park","palos-verdes","palos-verdes-estates","palosaltos","palosblancos","palosecoelgato","palosheights","paloshills","palospark","palosverdes","palosverdesestates","palouse","pamatacuaro","pampa","pamplico","pana","panaba","panales","panales-jamaica-canones","panalesjamaicacanones","panama","panama-city","panama-city-beach","panamacity","panamacitybeach","pandora","pangnirtung","panguitch","panhandle","panhe","panindicuaro","pannill-fork","pannillfork","panora","panorama-village","panoramavillage","panotla","pantanal","pantego","pantelho","pantepec","panthersville","pantitlan","pantla","pantops","panuaya","panuco","panuco-de-coronado","panucodecoronado","paola","paoli","paonia","papaikou","papaloapan","papaloctipan","papalotla","papanoa","papantla-de-olarte","papantladeolarte","papatlatla","papatlazolco","papillion","papineauville","paracho-de-verduzco","parachodeverduzco","parachute","paracuaro","paradis","paradise","paradise-heights","paradise-hills","paradise-valley","paradiseheights","paradisehills","paradisevalley","paragould","parahuen","paraiso","paraiso-del-grijalva","paraiso-novillero","paraisodelgrijalva","paraisonovillero","paraje-el-mirador","paraje-la-pera","paraje-nuevo","paraje-trejo-el-chaparral","parajeelmirador","parajelapera","parajenuevo","parajetrejoelchaparral","paramount","paramount-long-meadow","paramountlongmeadow","paramus","parangarico","paras","parc-boutin","parcboutin","parchment","pardeeville","pardo","paredes","paredon","paredon-colorado","paredoncolorado","pareo","paricuaro","parilla","paris","parish","park-city","park-falls","park-forest","park-forest-village","park-hill","park-hills","park-layne","park-rapids","park-ridge","park-river","park-slope","park-view","parkchester","parkcity","parker","parker-city","parkercity","parkers-prairie","parkersburg","parkersprairie","parkesburg","parkfalls","parkforest","parkforestvillage","parkhill","parkhills","parkin","parkland","parklayne","parkrapids","parkridge","parkriver","parks","parksdale","parkside","parkslope","parkston","parksville","parkview","parkville","parkway","parkwood","parkwood-manor","parkwoodmanor","parkwoods-donalda","parkwoodsdonalda","parlier","parma","parma-heights","parmaheights","parole","parowan","parque-urbano-napateco","parquedepoblamientosolidaridad","parqueindustrialciudadmitras","parqueurbanonapateco","parral","parras-de-la-fuente","parrasdelafuente","parrilla-ii","parrillaii","parrsboro","parry-sound","parrysound","parshall","parsippany","parsons","parsonsfield","pasadena","pasadena-hills","pasadenahills","pasaje","pasatiempo","pascagoula","pascala-del-oro","pascaladeloro","paschall","pasco","pascoag","paseo-de-las-canadas","paseo-de-san-javier","paseo-del-prado","paseo-puente-viejo","paseodelascanadas","paseodelprado","paseodesanjavier","paseopuenteviejo","paseos-de-itzincab","paseos-de-la-pradera","paseos-de-san-juan","paseos-del-marques","paseos-del-pedregal","paseosdeitzincab","paseosdelapradera","paseosdelmarques","paseosdelpedregal","paseosdelvallefraccionamiento","paseosdesanjuan","paso-blanco","paso-bonito","paso-canoa","paso-carretas","paso-de-arena","paso-de-cuarenta","paso-de-hidalgo-paso-de-alamos","paso-de-la-mina-3ra-seccion","paso-de-mata","paso-de-mendez","paso-de-nunez-buenavista","paso-de-ovejas","paso-de-pirules","paso-de-valencia","paso-del-correo","paso-del-macho","paso-del-toro","paso-hondo","paso-morelos","paso-nacional","paso-real-de-sarabia","paso-robles","pasoblanco","pasobonito","pasocanoa","pasocarretas","pasodearena","pasodecuarenta","pasodehidalgopasodealamos","pasodelamina2daseccionbarrial","pasodelamina3raseccion","pasodelcorreo","pasodelmacho","pasodeltoro","pasodemata","pasodemendez","pasodenunezbuenavista","pasodeovejas","pasodepirules","pasodevalencia","pasohondo","pasomorelos","pasonacional","pasorealdesarabia","pasorobles","pass-christian","passaic","passapatanzy","passchristian","paste","pastelera","pastor-ortiz","pastor-rovaix","pastora","pastoria","pastorortiz","pastorrovaix","patambo","pataskala","patchogue","paterson","pathe","patla","patlicha","patosil","patria-nueva","patrianueva","patrianuevasanjoseelcontento","patrick-springs","patricksprings","patten","patterson","patterson-tract","pattersontract","patton","patton-village","pattonvillage","patuan","patzcuaro","paul","paulden","paulding","paulina","paullina","pauls-valley","paulsboro","paulsvalley","pauoa","pavencul","paw-paw","paw-paw-lake","pawcatuck","pawhuska","pawlet","pawling","pawnee","pawnee-city","pawneecity","pawpaw","pawpawlake","pawtucket","paxtang","paxtepec","paxtle","paxton","paxtonia","payette","payne","paynesville","payson","pb","pbg","pbh","pbs","pc","pc4","pcb","pcc","pcec","pchg","pcm","pcs","pcv","pd","pda","pdao","pdap","pdb","pdc","pdd","pddl","pde","pdg","pdh","pdi","pdj","pdl","pdlc","pdlf","pdlh","pdli","pdll","pdlp","pdls","pdlv","pdm","pdmc","pdn","pdnb","pdo","pdp","pdps","pdr","pds","pdsa","pdsf","pdsj","pdsr","pdt","pdv","pdvf","pdz","pe","pea-ridge","peabody","peace-river","peaceful-valley","peacefulvalley","peaceriver","peach-lake","peach-springs","peachlake","peachland","peachsprings","peachtree-city","peachtree-corners","peachtreecity","peachtreecorners","peapack","pearidge","pearisburg","pearl","pearl-beach","pearl-city","pearl-river","pearland","pearlbeach","pearlcity","pearlington","pearlriver","pearsall","pearson","pebble-creek","pebblecreek","pec","pecan-acres","pecan-grove","pecan-plantation","pecanacres","pecangrove","pecanplantation","pecatonica","pechucalco","pechucalco2daseccionlascruces","pecos","peculiar","ped","pedernales","pedley","pedregal-de-san-jose","pedregaldesanjose","pedregoso","pedricena","pedro-amaro","pedro-escobedo","pedroamaro","pedroescobedo","peebles","peekskill","pegram","pegueros","pei","pekin","pelahatchie","pelham","pelham-manor","pelhammanor","pelican-bay","pelican-narrows","pelican-rapids","pelicanbay","pelicannarrows","pelicanrapids","pell-city","pell-lake","pella","pellcity","pelllake","pelmo-park-humberlea","pelmoparkhumberlea","pelt","pem","pemberton","pemberton-heights","pembertonheights","pemberville","pemberwick","pembroke","pembroke-park","pembroke-pines","pembrokepark","pembrokepines","pemucho","pen-argyl","pena-blanca","pena-colorada","pena-del-panal","pena-flores-palo-verde","penablanca","penacolorada","penadelpanal","penaflorespaloverde","penamiller","penargyl","penbrook","pencuyut","pender","pendleton","penhold","penitas","penjamillo-de-degollado","penjamillodedegollado","penjamo","penn-estates","penn-hills","penn-valley","penn-wynne","penn-yan","penndel","pennestates","penngrove","pennhills","pennington","pennington-gap","penningtongap","penns-grove","pennsauken","pennsboro","pennsburg","pennsgrove","pennside","pennsport","pennsville","pennsylvania","pennvalley","pennville","pennwynne","pennyan","pennypack","pennypack-woods","pennypackwoods","penobscot","penon-blanco","penonblanco","penrose","penryn","pensacola","penticton","penuela","penuelas","penuelas-el-cienegal","penuelaselcienegal","peoria","peoria-heights","peoriaheights","peosta","peotillos","peotone","pepeekeo","pepper-pike","pepperell","peppermill-village","peppermillvillage","pepperpike","pequot-lakes","pequotlakes","peralta","peras","perez-de-galeana","perezdegaleana","perezville","perham","periban-de-ramos","peribanderamos","pericos","pericotepec","peridot","perkasie","perkins","perla-de-acapulco","perladeacapulco","perote","perris","perry","perry-hall","perry-heights","perry-park","perryhall","perryheights","perryman","perryopolis","perrypark","perrysburg","perryton","perryville","perseverancia","pershing","perth","perth-amboy","perthamboy","peru","peshtigo","pesqueira","pesqueria","petacalco","petal","petalcingo","petaluma","petapa","petaquillas","petatlan","petawawa","peterborough","petersburg","petite-bourgogne","petitebourgogne","petlalcingo","peto","petoskey","petrolia","pevely","pewaukee","pewee-valley","peweevalley","pezmatlan","pf","pfdc","pflugerville","pfpv","pfv","pg","pgg","pgi","pgls","pgm","ph","pharr","phelan","phelps","phenix-city","phenixcity","phi","phil-campbell","philadelphia","philcampbell","philip","philippi","philipsburg","phillips","phillipsburg","phillipston","philmont","philo","philomath","phippsburg","phoenix","phoenix-lake","phoenixlake","phoenixville","pi","piaxtla","piaxtla-de-abajo","piaxtladeabajo","pic","picardias","picayune","pich","pichataro","picholco","pichucalco","pickens","pickering","pickerington","picm","picnic-point","picnic-point-north-lynnwood","picnicpoint","picnicpointnorthlynnwood","pico-rivera","picorivera","picton","pictou","picture-butte","picture-rocks","picturebutte","picturerocks","pie-de-gallo","piedegallo","piedmont","piedra-blanca","piedra-de-amolar","piedra-gorda","piedra-labrada","piedra-parada","piedra-pesada","piedra-pinta","piedrablanca","piedradeamolar","piedragorda","piedralabrada","piedraparada","piedrapesada","piedrapinta","piedras-de-lumbre","piedras-negras","piedrasdelumbre","piedrasnegras","pierce","pierce-city","piercecity","pierceton","piermont","pierre","pierre-part","pierrepart","pierreville","pierson","pierz","pigeon","pigeon-forge","pigeonforge","piggott","pihuamo","pijijiapan","pike-creek","pike-creek-valley","pike-road","pikecreek","pikecreekvalley","pikeroad","pikesville","piketon","pikeville","pilcaya","piletas","pilot-butte","pilot-mountain","pilot-point","pilot-rock","pilotbutte","pilotmountain","pilotos","pilotpoint","pilotrock","pima","pimmit-hills","pimmithills","pinal","pinal-de-amoles","pinaldeamoles","pinardville","pinch","pincher-creek","pinchercreek","pinckney","pinckneyville","pinconning","pincourt","pine","pine-beach","pine-bluff","pine-bluffs","pine-bush","pine-castle","pine-city","pine-crest","pine-grove","pine-grove-mills","pine-hill","pine-hills","pine-island","pine-island-center","pine-island-ridge","pine-knoll-shores","pine-knot","pine-lake-park","pine-lawn","pine-level","pine-manor","pine-mountain","pine-mountain-club","pine-plains","pine-prairie","pine-ridge","pine-ridge-at-crestwood","pine-valley","pinebeach","pinebluff","pinebluffs","pinebush","pinecastle","pinecity","pinecrest","pinedale","pinegrove","pinegrovemills","pinehill","pinehills","pinehurst","pineisland","pineislandcenter","pineislandridge","pineknollshores","pineknot","pinelakepark","pinelawn","pinelevel","pinellas","pinellas-park","pinellaspark","pinemanor","pinemountain","pinemountainclub","pineplains","pineprairie","pineridge","pineridgeatcrestwood","pinetop-lakeside","pinetoplakeside","pinetops","pinevalley","pineville","pinewood","pinewood-estates","pinewoodestates","piney","piney-green","piney-point-village","pineygreen","pineypointvillage","pingree-grove","pingreegrove","pinicuaro","pink","pino-suarez","pinole","pinon-hills","pinonhills","pinos","pinosuarez","pinotepa-de-don-luis","pinotepa-nacional","pinotepadedonluis","pinotepanacional","pinson","pintillo","pinzandaro","pioche","pioneer","pioneer-village","pioneervillage","piperton","pipestone","piqua","pir","pirtleville","piru","pisaflores","piscataway","piscila","pismo-beach","pismobeach","pistakee-highlands","pistakeehighlands","piste","pitahayal","pitcairn","pitiquito","pitman","pitt-meadows","pittmeadows","pittsboro","pittsburg","pittsburgh","pittsfield","pittsford","pittston","pittsville","pittville","pixley","pixoy","pj","pjc","pjlm","pjs","pk","pks","pl","placentia","placer","placeres-del-oro","placeresdeloro","placerville","placid-lakes","placidlakes","placitas","plain-city","plain-view","plaincity","plainedge","plainfield","plainfield-village","plainfieldvillage","plains","plainsboro-center","plainsborocenter","plainview","plainville","plainwell","plaistow","plan-de-agua-prieta","plan-de-arroyos","plan-de-ayala","plan-de-ayala-campo-cinco","plan-de-iguala","plan-de-las-hayas","plan-del-rio","plan-guanajuato-la-sandia","planada","plancarte","plandeaguaprieta","plandearroyos","plandeayala","plandeayalacampocinco","plandeiguala","plandelashayas","plandelrio","plandome","plandome-heights","plandomeheights","planguanajuatolasandia","plankinton","plano","plant-city","plantagenet","plantation","plantation-mobile-home-park","plantationmobilehomepark","plantcity","plantersville","plaquemine","platanillo","plateau","plateros","platon-sanchez","platonsanchez","platte","platte-city","plattecity","plattekill","platteville","plattsburg","plattsburgh","plattsburgh-west","plattsburghwest","plattsmouth","plattsville","playa-azul","playa-chica","playa-de-chachalacas","playa-de-la-libertad","playa-del-carmen","playa-vicente","playaazul","playachica","playadechachalacas","playadelalibertad","playadelcarmen","playas-del-rosario","playasdelrosario","playavicente","playter-estates-danforth","playterestatesdanforth","plaza-nueva","plazanueva","ple","pleak","pleasant-gap","pleasant-garden","pleasant-grove","pleasant-hill","pleasant-hills","pleasant-prairie","pleasant-ridge","pleasant-run","pleasant-run-farm","pleasant-valley","pleasant-view","pleasantgap","pleasantgarden","pleasantgrove","pleasanthill","pleasanthills","pleasanton","pleasantprairie","pleasantridge","pleasantrun","pleasantrunfarm","pleasantvalley","pleasantview","pleasantville","pleasure-ridge-park","pleasureridgepark","plentywood","plessisville","pli","plm","plover","plp","pls","plum","plum-creek","plum-grove","pluma-hidalgo","plumahidalgo","plumas","plumas-lake","plumaslake","plumcreek","plumgrove","plummer","plumsteadville","plutarcoeliascalleslaygriega","plymouth","plymouth-meeting","plymouthmeeting","plympton","pm","pmc","pmep","pmhp","pn","pnc","pndm","pnt","po","poblado-10","poblado-c-33-20-de-noviembre","poblado-chulavista-el-chorizo","poblado-cinco","poblado-dos","poblado-numero-cinco","poblado-tres","poblado10","pobladoc3320denoviembre","pobladochulavistaelchorizo","pobladocinco","pobladodos","pobladonumerocinco","pobladotres","pocahontas","pocasset","pocatello","pocboc","pochahuizco","pochalcatl","pochotillo","pochutla","pocitos","pocola","pocomoke-city","pocomokecity","pocono-pines","pocono-ranch-lands","poconopines","poconoranchlands","poestenkill","pohenegamook","poinciana","point-baker","point-breeze","point-clear","point-lookout","point-marion","point-of-rocks","point-pleasant","point-pleasant-beach","point-roberts","pointbaker","pointbreeze","pointclear","pointe-calumet","pointe-claire","pointe-du-lac","pointecalumet","pointeclaire","pointedulac","pointlookout","pointmarion","pointofrocks","pointpleasant","pointpleasantbeach","pointroberts","poipu","pojoaque","polanco","poland","poligonos","polk","polk-city","polkcity","polkton","pollock-pines","pollockpines","polo","pololcingo","polotitlan-de-la-ilustracion","polotitlandelailustracion","polson","polutla","polyuc","pomacuaran","pomeroy","pomoca","pomona","pompano-beach","pompano-beach-highlands","pompanobeach","pompanobeachhighlands","pomposo-castellanos","pomposocastellanos","pompton-lakes","pomptonlakes","pomuch","ponca","ponca-city","poncacity","ponce-inlet","ponceinlet","ponchatoula","ponciano-arriaga","poncianoarriaga","poncitlan","pond-inlet","ponder","ponderay","ponderosa-park","ponderosa-pine","ponderosapark","ponderosapine","pondinlet","ponoka","pont-rouge","ponte-vedra-beach","pontevedrabeach","pontiac","pontoon-beach","pontoonbeach","pontotoc","pontrouge","pooler","poolesville","poplar","poplar-bluff","poplar-cotton-center","poplar-grove","poplarbluff","poplarcottoncenter","poplargrove","poplarville","popo-park","popola","popolnah","popopark","poquonock-bridge","poquonockbridge","poquoson","por","porcupine","porfirio-diaz","porfiriodiaz","port-alberni","port-allegany","port-allen","port-angeles","port-angeles-east","port-aransas","port-arthur","port-barre","port-barrington","port-byron","port-carbon","port-cartier","port-charlotte","port-chester","port-clinton","port-colborne","port-coquitlam","port-dickinson","port-edwards","port-ewen","port-gibson","port-hadlock-irondale","port-hawkesbury","port-henry","port-hope","port-hueneme","port-huron","port-isabel","port-jefferson","port-jefferson-station","port-jervis","port-labelle","port-lavaca","port-ludlow","port-mcneill","port-monmouth","port-moody","port-morris","port-neches","port-norris","port-oconnor","port-orange","port-orchard","port-orford","port-perry","port-reading","port-republic","port-richey","port-richmond","port-rowan","port-royal","port-saint-joe","port-saint-john","port-saint-lucie","port-salerno","port-stanley","port-sulphur","port-townsend","port-vue","port-washington","port-washington-north","port-wentworth","port-williams","portaceli","portage","portage-la-prairie","portage-lakes","portage-park","portagelakes","portagelaprairie","portagepark","portageville","portal-de-las-salinas","portalberni","portaldelassalinas","portales","portallegany","portallen","portangeles","portangeleseast","portaransas","portarthur","portbarre","portbarrington","portbyron","portcarbon","portcartier","portcharlotte","portchester","portclinton","portcolborne","portcoquitlam","portdickinson","portedwards","porter","porter-heights","porterdale","porterheights","porterville","portes-gil","portesgil","portewen","portezuelo","portgibson","porthadlockirondale","porthawkesbury","porthenry","porthope","porthueneme","porthuron","porticos-de-san-antonio","porticosdesanantonio","portisabel","portjefferson","portjeffersonstation","portjervis","portlabelle","portland","portlavaca","portlock","portludlow","portmcneill","portmonmouth","portmoody","portmorris","portneches","portneuf","portnorris","portoconnor","portola","portola-hills","portola-valley","portolahills","portolavalley","portorange","portorchard","portorford","portperry","portreading","portrepublic","portrichey","portrichmond","portrowan","portroyal","portsaintjoe","portsaintjohn","portsaintlucie","portsalerno","portsmouth","portsmouth-heights","portsmouthheights","portstanley","portsulphur","porttownsend","portugues-de-galvez","portuguesdegalvez","portvue","portwashington","portwashingtonnorth","portwentworth","portwilliams","porvenir","posen","poseyville","post","post-falls","postfalls","postville","potam","poteau","poteet","poth","pothe","potomac","potomac-heights","potomac-mills","potomac-park","potomacheights","potomacmills","potomacpark","potosi","potrerillo","potrerillo-del-norote","potrerillodelnorote","potrerillos","potrerillos-guanajal","potrerillosguanajal","potrero-del-llano","potrero-viejo","potrerodelllano","potreros","potreroviejo","potsdam","potter-lake","potterlake","potterville","pottsboro","pottsgrove","pottstown","pottsville","poturo","poughkeepsie","poulsbo","poultney","pound-ridge","poundridge","powassan","poway","powder-springs","powderly","powdersprings","powdersville","powell","powell-river","powellriver","powells-crossroads","powellscrossroads","powers-lake","powerslake","powhatan","powhatan-point","powhatanpoint","pownal","poydras","poynette","poza-rica-de-hidalgo","pozaricadehidalgo","pozo-de-ibarra","pozo-de-jarillas","pozo-dulce","pozodeibarra","pozodejarillas","pozodulce","pozos","pozos-de-gamboa","pozosdegamboa","pozuelos","pp","ppb","ppdl","pph","ppl","ppnl","ppv","pr","prac","praderas-de-san-francisco","praderas-del-potrero","praderasdelpotrero","praderasdesanfrancisco","prados-de-san-juan","prados-de-santa-rosa","prados-del-rosario","prados-san-francisco","pradosdelrosario","pradosdesanjuan","pradosdesantarosa","pradossanfrancisco","prague","prairie-city","prairie-creek","prairie-du-chien","prairie-du-sac","prairie-grove","prairie-heights","prairie-ridge","prairie-view","prairie-village","prairiecity","prairiecreek","prairieduchien","prairiedusac","prairiegrove","prairieheights","prairieridge","prairieview","prairievillage","prairieville","pratt","prattville","praxedis-de-guerrero","praxedis-g-guerrero","praxedis-guerrero","praxedisdeguerrero","praxedisgguerrero","praxedisguerrero","prb","prcm","prdh","prds","preeceville","premont","prentiss","presa-blanca","presa-de-rayas","presa-del-rosario","presablanca","presadelrosario","presaderayas","presas","prescott","prescott-valley","prescottvalley","presidente-juarez","presidentejuarez","presidential-lakes-estates","presidentiallakesestates","presidio","presidio-plan-de-libres","presidioplandelibres","presque-isle","presqueisle","presquille","prestbury","preston","preston-city","preston-heights","prestoncity","prestonheights","prestonsburg","pretty-bayou","prettybayou","prevost","prf","pri-chacon","price","prices-fork","pricesfork","priceville","prichacon","prichard","prien","priest-river","priestriver","primer-canton","primera","primera-de-analco","primera-fraccion-de-crespo","primeradeanalco","primerafracciondecrespo","primercanton","primero-de-mayo","primero-de-mayo-chupaderos","primerodemayo","primerodemayochupaderos","primghar","primo-tapia","primotapia","prince-albert","prince-edward","prince-edward-island","prince-frederick","prince-george","prince-rupert","princealbert","princeedward","princeedwardisland","princefrederick","princegeorge","princerupert","princes-lakes","princeslakes","princess-anne","princess-rosethorn","princessanne","princessrosethorn","princeton","princeton-junction","princeton-meadows","princetonjunction","princetonmeadows","princeville","prineville","prior-lake","priorlake","privada-del-alamo","privadadelalamo","privateer","prl","proctor","profesor-carlos-hank-gonzalez","profesorcarloshankgonzalez","profresor-roberto-barrios","profresorrobertobarrios","progreso","progreso-campo-47","progreso-de-alvaro-obregon","progreso-de-juarez","progreso-de-zaragoza","progreso-industrial","progresocampo47","progresodealvaroobregon","progresodejuarez","progresodezaragoza","progresoindustrial","progress","progress-village","progressvillage","prophetstown","prospect","prospect-heights","prospect-park","prospectheights","prospectpark","prosper","prosperity","prosser","providence","providence-village","providencevillage","providencia","providencia-de-napoles","providenciadenapoles","provincetown","provo","provost","prp","prudenville","prudhoe-bay","prudhoebay","prunedale","pryor","pryor-creek","pryorcreek","ps","psc","pseg","psf","psj","psl","psn","pt","ptec","pu","puacuaro","pucte","pue","puebla","pueblillo","pueblito-de-allende","pueblitodeallende","pueblo","pueblo-benito-garcia","pueblo-hidalgo","pueblo-juarez-la-magdalena","pueblo-madero-el-playon","pueblo-mayo","pueblo-nuevo","pueblo-nuevo-de-las-raices","pueblo-nuevo-de-morelos","pueblo-nuevo-tlalmimilolpan","pueblo-viejo","pueblo-west","pueblo-yaqui","pueblobenitogarcia","pueblohidalgo","pueblojuarezlamagdalena","pueblomaderoelplayon","pueblomayo","pueblonuevo","pueblonuevodelasraices","pueblonuevodemorelos","pueblonuevotlalmimilolpan","pueblos-unidos","pueblosunidos","puebloviejo","pueblowest","puebloyaqui","puente-de-camotlan","puente-de-ixtla","puente-de-piedra","puente-grande","puente-jula","puentecillas","puentedecamotlan","puentedeixtla","puentedepiedra","puentegrande","puentejula","puerta-de-mangos","puerta-de-palmillas","puerta-del-llano","puerta-del-monte","puertadelllano","puertadelmonte","puertademangos","puertadepalmillas","puertecito-de-la-virgen","puertecitodelavirgen","puerto-adolfo-lopez-mateos","puerto-angel","puerto-aventuras","puerto-ceiba","puerto-de-aguirre","puerto-de-carroza","puerto-de-chiquihuite","puerto-de-nieto","puerto-de-providencia","puerto-escondido","puerto-esmeralda","puerto-madero","puerto-palomas","puerto-penasco","puerto-rico","puerto-san-carlos","puerto-vallarta","puertoadolfolopezmateos","puertoangel","puertoaventuras","puertoceiba","puertodeaguirre","puertodecarroza","puertodechiquihuite","puertodenieto","puertodeprovidencia","puertoescondido","puertoesmeralda","puertomadero","puertopalomas","puertopenasco","puertorico","puertosancarlos","puertovallarta","puga","pugchen-mumuntic","pugchenmumuntic","puhi","pujal-coy","pujalcoy","pukalani","pulaski","pullman","pumphrey","pumpkin-center","pumpkincenter","pun","punahou","punaluu","punta-arena","punta-de-la-vega","punta-gorda","punta-gorda-isles","punta-rassa","puntaarena","puntadelavega","puntagorda","puntagordaisles","puntarassa","puntilla-aldama","puntillaaldama","puntledge","punxsutawney","puohala-village","puohalavillage","pupukea","purcell","purcellville","purchase","purdy","purechucho","purepero-de-echaiz","pureperodeechaiz","purificacion","purisima","purisima-concepcion-mayorazgo","purisima-de-arista","purisima-de-bustos","purisima-de-covarrubias","purisima-de-cubos-la-purisima","purisima-del-progreso","purisimaconcepcionmayorazgo","purisimadearista","purisimadebustos","purisimadecovarrubias","purisimadecuboslapurisima","purisimadelprogreso","puroagua","puruandiro","puruaran","purvis","pustunich","putla-villa-de-guerrero","putlavilladeguerrero","putlunichuchut-vista-hermosa","putlunichuchutvistahermosa","putnam","putnam-lake","putnamlake","putney","puxcatan","puxtla","puyallup","pv","pvb","pvdg","pve","pvh","pw","pwn","py","pymatuning-central","pymatuningcentral","qa","qbec","qc","qdc","qh","qr","quail-creek","quail-hill","quail-ridge","quail-valley","quailcreek","quailhill","quailridge","quailvalley","quakertown","quamila","quanah","quarryville","quartz-hill","quartzhill","quartzsite","que","quebec","quebec-city","quebeccity","quebrantadero","quecholac","quechulac","quechultenango","queen-anne","queen-city","queen-creek","queen-village","queenanne","queencity","queencreek","queenland","queens","queens-village","queensbury","queensvillage","queenswood-heights","queenswoodheights","queenvillage","quelove","querendaro","querendas","queretaro","querobabi","queseria","quesnel","questa","quetchehueca","quetzalapa","quiamoloapan","quila","quimichis","quinceo","quincy","quinebaug","quinicuena","quinlan","quinnesec","quinta-del-cedro","quintadelcedro","quintana-roo","quintanaroo","quinte-west","quintero","quintewest","quintin-arauz","quintinarauz","quinto-barrio-ejido-cahuacan","quintobarrioejidocahuacan","quinton","quiriego","quiroga","quitman","quitupan","qv","qw","ra","raceland","racine","radcliff","radford","radium-springs","radiumsprings","radnor","raeford","raf","rafael-delgado","rafael-j-garcia","rafael-lucio","rafael-pascacio-gamboa","rafael-ramirez","rafael-yanez-sosa-el-mezquite","rafaeldelgado","rafaeljgarcia","rafaellucio","rafaelpascaciogamboa","rafaelramirez","rafaelyanezsosaelmezquite","rafb","rafter-j-ranch","rafterjranch","ragland","rahway","rainbow","rainbow-city","rainbowcity","rainelle","rainier","rainsville","raleigh","raleigh-hills","raleighhills","ralls","ralston","ramblewood","ramirez","ramon-corona","ramon-f-balboa","ramona","ramoncorona","ramonfbalboa","ramos-arizpe","ramosarizpe","ramseur","ramsey","ramtown","rancheria-de-pocitos","rancheriadepocitos","ranchettes","ranchito-de-castro","ranchitodecastro","rancho-alegre","rancho-alegre-fraccionamiento","rancho-calaveras","rancho-chico","rancho-cordova","rancho-cucamonga","rancho-de-guadalupe","rancho-de-las-lomas","rancho-del-padre","rancho-grande","rancho-mirage","rancho-murieta","rancho-nuevo","rancho-nuevo-de-la-cruz","rancho-nuevo-de-la-luz","rancho-nuevo-del-llanito","rancho-palos-verdes","rancho-penasquitos","rancho-san-diego","rancho-santa-fe","rancho-santa-margarita","rancho-tehama-reserve","rancho-verde","rancho-viejo","ranchoalegre","ranchoalegrefraccionamiento","ranchocalaveras","ranchochico","ranchocordova","ranchocucamonga","ranchodeguadalupe","ranchodelaslomas","ranchodelpadre","ranchogrande","ranchomirage","ranchomurieta","ranchonuevo","ranchonuevodelacruz","ranchonuevodelaluz","ranchonuevodelllanito","ranchopalosverdes","ranchopenasquitos","ranchos-de-taos","ranchosandiego","ranchosantafe","ranchosantamargarita","ranchosdetaos","ranchotehamareserve","ranchoverde","ranchoviejo","rand","randallstown","randleman","randolph","random-lake","randomlake","rangely","ranger","rankin","rankin-inlet","rankininlet","ranlo","ransom-canyon","ransomcanyon","ransomville","ranson","rantoul","raoul","rapid-city","rapid-valley","rapidcity","rapids","rapidvalley","raritan","rascon","rathdrum","raton","raubsville","raudales-malpaso","raudalesmalpaso","raven","ravena","ravenel","ravenna","ravensdale","ravenswood","ravensworth","rawdon","rawlins","rawls-springs","rawlssprings","ray-city","raya-zaragoza","rayazaragoza","raycity","raymond","raymondville","raymore","raymundo-enriquez","raymundoenriquez","rayne","raynham","raynham-center","raynhamcenter","rayon","rayones","rayside-balfour","raysidebalfour","raytown","rayville","rb","rbf","rbs","rbwv","rc","rd","rda","rdb","rdbv","rdc","rdg","rdj","rdl","rdla","rdlh","rdll","rdlp","rdlr","rdls","rdm","rdo","rdp","rdr","rds","rdsf","rdt","rdvi","re","readfield","reading","readville","real-de-catorce","real-del-sol","real-hacienda-metropolis","realdecatorce","realdelsol","realhaciendametropolis","reamstown","recoveco","rector","red-bank","red-bay","red-bluff","red-boiling-springs","red-bud","red-chute","red-cloud","red-corral","red-deer","red-hill","red-hook","red-lake","red-lake-falls","red-lick","red-lion","red-lodge","red-oak","red-oaks-mill","red-springs","red-wing","redan","redbank","redbay","redbluff","redboilingsprings","redbud","redby","redchute","redcloud","redcorral","reddeer","redding","redeer","redfield","redford","redgranite","redhill","redhook","redington-beach","redington-shores","redingtonbeach","redingtonshores","redkey","redlake","redlakefalls","redland","redlands","redlick","redlion","redlodge","redmond","redoak","redoaksmill","redondo-beach","redondobeach","redsprings","redstone-arsenal","redstonearsenal","redwater","redway","redwing","redwood","redwood-city","redwood-falls","redwood-shores","redwood-valley","redwoodcity","redwoodfalls","redwoodshores","redwoodvalley","reed-city","reed-creek","reedcity","reedcreek","reedley","reedsburg","reedsport","reedsville","reese","reform","reforma","reforma-de-pineda","reforma-y-planada","reformadepineda","reformayplanada","refugio","regent-park","regentpark","regina","regina-beach","reginabeach","rego-park","regopark","rehobeth","rehoboth","rehoboth-beach","rehobothbeach","reidland","reidsville","reiffton","reinbeck","reinholds","reisterstown","remerton","reminderville","remington","remsen","remsenburg-speonk","remsenburgspeonk","rendon","renfrew","rennerdale","reno","renovo","rensselaer","renton","renville","repentigny","republic","reseda","reserve","reservoir","residencial-arboledas","residencial-las-olas","residencial-tajin","residencialarboledas","residenciallasolas","residencialtajin","reston","revelstoke","revere","revolucion-mexicana","revolucionmexicana","rexburg","rexdale-kipling","rexdalekipling","reyes-acozac","reyes-etla","reyes-mantecon","reyesacozac","reyesetla","reyesmantecon","reynolds","reynolds-heights","reynoldsburg","reynoldsheights","reynoldstown","reynoldsville","reynosa","rf","rfb","rfdj","rfm","rg","rgc","rh","rhawnhurst","rhe","rheems","rhinebeck","rhinelander","rhm","rhode-island","rhodeisland","rhodhiss","rhome","ri","rialto","rib-mountain","ribmountain","ricardo","ricardo-flores-magon","ricardofloresmagon","rice","rice-lake","ricelake","rich-hill","richardson","richboro","richelieu","richfield","richfield-springs","richfieldsprings","richford","richgrove","richhill","richibucto","richland","richland-center","richland-hills","richlandcenter","richlandhills","richlands","richlandtown","richmond","richmond-heights","richmond-hill","richmond-west","richmondheights","richmondhill","richmondwest","richton","richton-park","richtonpark","richville","richwood","riddle","rideau-park","rideaupark","ridge","ridge-manor","ridge-wood-heights","ridgecrest","ridgefield","ridgefield-park","ridgefieldpark","ridgeland","ridgely","ridgemanor","ridgemark","ridgetop","ridgetown","ridgeville","ridgeway","ridgewood","ridgewoodheights","ridgway","ridley-park","ridleypark","riesel","rifle","rigaud","rigby","rimbey","rimouski","rincon","rincon-chamula","rincon-de-aguirre","rincon-de-barrabas","rincon-de-buena-vista","rincon-de-cano","rincon-de-curungueo","rincon-de-guadalupe","rincon-de-guayabitos","rincon-de-jaimes","rincon-de-lopez","rincon-de-los-pirules","rincon-de-los-reyes","rincon-de-parangueo","rincon-de-romos","rincon-de-tamayo","rincon-del-centeno","rincon-del-porvenir","rincon-moreno","rincon-verde","rinconada","rinconada-de-los-angeles","rinconadadelosangeles","rinconadalalomafraccionamiento","rinconadas-de-san-francisco","rinconadas-del-bosque","rinconadas-del-venado-i","rinconadasdelbosque","rinconadasdelvenadoi","rinconadasdesanfrancisco","rinconchamula","rincondeaguirre","rincondebarrabas","rincondebuenavista","rincondecano","rincondecedenosrincondedolores","rincondecurungueo","rincondeguadalupe","rincondeguayabitos","rincondejaimes","rincondelcenteno","rincondelopez","rincondelospirules","rincondelosreyes","rincondelporvenir","rincondeparangueo","rinconderomos","rincondetamayo","rincones-de-la-hacienda","rinconesdelahacienda","rinconmoreno","rinconverde","rindge","ringgold","ringling","ringwood","rio","rio-blanco","rio-bravo","rio-chancala","rio-chiquito","rio-communities","rio-de-la-soledad","rio-de-medina","rio-de-teapa","rio-del-mar","rio-dell","rio-florido","rio-frio-de-juarez","rio-grande","rio-grande-city","rio-hondo","rio-jordan","rio-lagartos","rio-laja","rio-linda","rio-medio-granja","rio-pachine","rio-rancho","rio-rico","rio-seco-puente-de-doria","rio-verde","rio-viejo-primera-seccion","rio-vista","rioblanco","riobravo","riochancala","riochiquito","riocommunities","riodelasoledad","riodell","riodelmar","riodemedina","riodeteapa","rioflorido","riofriodejuarez","riogrande","riograndecity","riohondo","riojordan","riolagartos","riolaja","riolinda","riomediogranja","riopachine","riorancho","riorico","rioseco2daseccionsantiaguito","riosecopuentededoria","rioverde","rioviejoprimeraseccion","riovista","ripley","ripon","rising-sun","rising-sun-lebanon","risingsun","risingsunlebanon","rison","rittenhouse","rittman","ritzville","riva","riva-palacio","rivapalacio","river-bend","river-edge","river-falls","river-forest","river-grove","river-heights","river-hills","river-oaks","river-park","river-ridge","river-road","river-rouge","river-vale","river-view-park","riverbank","riverbend","riverdale","riverdale-park","riverdalepark","riveredge","riverfalls","riverforest","rivergrove","riverhead","riverheights","riverhills","riveroaks","riverpark","riverridge","riverroad","riverrouge","rivers","riverside","riverton","rivervale","riverview","riverviewpark","riverwoods","riviera-beach","rivierabeach","riviere-du-loup","riviere-rouge","riviereduloup","riviererouge","rizo-de-oro","rizodeoro","rizosdelajoyarizosdelsaucillo","rj","rjg","rjr","rk","rl","rlb","rlf","rlh","rllf","rlo","rlp","rls","rm","rmg","rmh","rmp","rmq","rn","rndl","ro","roaming-shores","roamingshores","roan-mountain","roanmountain","roanoke","roanoke-rapids","roanokerapids","roaring-spring","roaringspring","robbins","robbinsdale","robbinsville","robersonville","robert-lee","robertlee","roberts","robertsdale","robertsville","roberval","robesonia","robins","robins-air-force-base","robinsairforcebase","robinson","robinson-heights","robinsonheights","robinwood","roblada-grande","robladagrande","roblin","robstown","roby","rochelle","rochelle-park","rochellepark","rochester","rochester-hills","rochesterhills","rock-creek","rock-falls","rock-forest","rock-hall","rock-hill","rock-island","rock-port","rock-rapids","rock-springs","rock-valley","rockaway","rockaway-beach","rockaway-point","rockawaybeach","rockawaypoint","rockcliffe-smythe","rockcliffesmythe","rockcreek","rockdale","rockfalls","rockfish","rockford","rockforest","rockhall","rockhill","rockingham","rockisland","rockland","rockledge","rocklin","rockmart","rockport","rockrapids","rocksprings","rockton","rockvalley","rockville","rockville-centre","rockvillecentre","rockwall","rockwell","rockwell-city","rockwellcity","rockwood","rocky-ford","rocky-mount","rocky-mountain-house","rocky-point","rocky-river","rocky-top","rockyford","rockymount","rockymountainhouse","rockypoint","rockyriver","rockytop","rodeo","rodney-village","rodneyvillage","rodolfo-sanchez-taboada","rodolfosancheztaboada","rodrigo","rodrigo-m-quevedo","rodrigomquevedo","rodriguez-tejeda","rodrigueztejeda","rodulfo-figueroa","rodulfofigueroa","roebling","roebuck","roeland-park","roelandpark","roessleville","rogers","rogers-city","rogers-park","rogerscity","rogerspark","rogersville","rogue-river","rogueriver","rohnert-park","rohnertpark","rojas-de-cuauhtemoc","rojasdecuauhtemoc","roland","rolesville","rolla","rolling-fork","rolling-hills","rolling-hills-estates","rolling-meadows","rollingfork","rollinghills","rollinghillsestates","rollingmeadows","rollingwood","rollinsford","rom","roma","roma-los-saenz","romalossaenz","roman-forest","romanforest","rome","rome-city","romecity","romeo","romeoville","romerillo","romero-de-guzman","romero-de-torres","romerodeguzman","romerodetorres","romita","romney","romoland","romulus","ronan","roncesvalles","ronceverte","ronkonkoma","roo","roodhouse","roosevelt","roosevelt-gardens","roosevelt-park","rooseveltgardens","rooseveltpark","roque","rosa-blanca","rosablanca","rosales","rosamond","rosamorada","rosario","rosarito","rosaryville","roscoe","roscommon","rose-hill","rose-lodge","roseau","rosebank","roseboro","rosebud","roseburg","roseburg-north","roseburgnorth","rosedale","rosedale-moore-park","rosedalemoorepark","rosehill","roseland","roselawn","roselle","roselle-park","rosellepark","roselodge","rosemead","rosemere","rosemont","rosemount","rosenberg","rosendale","rosendale-village","rosendalevillage","rosenhayn","rosepine","roseto","rosetown","roseville","rosewood-heights","rosewoodheights","rosharon","rosiclare","rosita-north","rosita-south","rositanorth","rositasouth","roslindale","roslyn","roslyn-estates","roslyn-harbor","roslyn-heights","roslynestates","roslynharbor","roslynheights","ross","rossford","rossland","rosslyn","rossmoor","rossmoyne","rossville","rosthern","roswell","rotan","rothschild","rothsville","rotonda-west","rotondawest","rotterdam","rouge","rougemont","round-lake","round-lake-beach","round-lake-heights","round-lake-park","round-rock","roundlake","roundlakebeach","roundlakeheights","roundlakepark","roundrock","roundup","rouses-point","rousespoint","routt","rouyn-noranda","rouynnoranda","rowland","rowland-heights","rowlandheights","rowlett","rowley","roxana","roxboro","roxborough","roxborough-park","roxboroughpark","roxbury","roxbury-crossing","roxburycrossing","roy","royal-city","royal-kunia","royal-oak","royal-palm-beach","royal-palm-estates","royal-pines","royalcity","royalkunia","royaloak","royalpalmbeach","royalpalmestates","royalpines","royalston","royalton","royersford","royse-city","roysecity","royston","rp","rpb","rpe","rpg","rpv","rr","rs","rsd","rsf","rsl","rsm","rst","rt","rtr","rubidoux","ruckersville","rugby","ruidoso","ruidoso-downs","ruidosodowns","ruiz","ruleville","rumford","rumney","rumorosa","rumson","runaway-bay","runawaybay","runge","runnemede","running-springs","runningsprings","runnymede-bloor-west-village","runnymedebloorwestvillage","rupert","rural-hall","rural-hill","rural-retreat","ruralhall","ruralhill","ruralretreat","rush","rush-city","rush-springs","rushcity","rushford","rushmere","rushsprings","rushville","rusk","ruskin","russell","russell-springs","russells-point","russellspoint","russellsprings","russellton","russellville","russiaville","rustburg","rustic","ruston","rutherford","rutherford-college","rutherfordcollege","rutherfordton","rutland","rutledge","rv","rvp","rvps","rw","rwh","rydal","rye","rye-brook","ryebrook","ryegate","ryers","ryland-heights","rylandheights","ryp","rz","s1s","s2","s2s","sa","saa","saanichton","sab","saban","sabanas-de-xalostoc","sabanasdexalostoc","sabancuy","sabaneta","sabanilla","sabanillas","sabattus","sabetha","sabidos","sabina","sabinal","sabinalito","sabinas","sac","sac-city","sacalum","sacaton","saccity","sachse","sackets-harbor","sacketsharbor","sackville","saclamanton","saco","sacramento","sacre-coeur","sacrecoeur","sacv","sad","sada","sadb","sadc","sadd","saddle-brook","saddle-river","saddlebrook","saddlebrooke","saddleriver","sadf","sadm","sadp","sadr","sadt","sadv","sae","saec","saeg","sael","saep","saer","safb","safety-harbor","safetyharbor","safford","sag","sag-harbor","sagamore","sagharbor","saginaw","saginaw-township-north","saginawtownshipnorth","saguache","saguenay","sah","sahcaba","sahuaral-de-otero","sahuaraldeotero","sahuaripa","sahuarita","sahuayo-de-morelos","sahuayodemorelos","sai","sain-alto","sain-bajo","sainalto","sainbajo","saint-adolphe-dhoward","saint-albans","saint-alexandre","saint-amable","saint-ambroise","saint-andre-avellin","saint-andrews","saint-ann","saint-anne","saint-anselme","saint-ansgar","saint-anthony","saint-antoine","saint-antoine-de-tilly","saint-antonin","saint-augusta","saint-augustin","saint-augustin-de-desmaures","saint-augustine","saint-augustine-beach","saint-augustine-shores","saint-augustine-south","saint-barnabe-sud","saint-basile-le-grand","saint-bernard","saint-bonaventure","saint-boniface","saint-bonifacius","saint-bruno","saint-bruno-de-guigues","saint-bruno-de-montarville","saint-canut","saint-cesaire","saint-charles","saint-clair","saint-clair-shores","saint-clairsville","saint-cloud","saint-colomban","saint-come-liniere","saint-constant","saint-croix-falls","saint-cyrille-de-wendover","saint-damase","saint-david","saint-denis-sur-richelieu","saint-dennis","saint-donat-de-montcalm","saint-edouard","saint-elmo","saint-elzear","saint-ephrem-de-beauce","saint-eustache","saint-felicien","saint-felix-de-valois","saint-francis","saint-francisville","saint-gabriel","saint-gedeon","saint-george","saint-georges","saint-germain-de-grantham","saint-hedwig","saint-helen","saint-helena","saint-helens","saint-henri","saint-henry","saint-hippolyte","saint-honore","saint-hubert","saint-hyacinthe","saint-ignace","saint-isidore","saint-isidore-de-laprairie","saint-jacob","saint-jacques","saint-jacques-le-mineur","saint-james","saint-james-city","saint-jean-baptiste","saint-jean-sur-richelieu","saint-jerome","saint-jo","saint-john","saint-johns","saint-johnsbury","saint-johnsville","saint-joseph","saint-joseph-de-beauce","saint-joseph-de-coleraine","saint-joseph-du-lac","saint-lambert-de-lauzon","saint-laurent","saint-lawrence","saint-lazare","saint-lazare-de-bellechasse","saint-leo","saint-leonard","saint-leonard-daston","saint-liboire","saint-lin-laurentides","saint-louis","saint-louis-du-ha-ha","saint-louis-park","saint-marc-des-carrieres","saint-maries","saint-martin","saint-martins","saint-martinville","saint-marys","saint-mathieu","saint-matthews","saint-michael","saint-michaels","saint-michel","saint-michel-des-saints","saint-nazaire","saint-norbert","saint-pacome","saint-paris","saint-pascal","saint-paul","saint-paul-park","saint-pauls","saint-pete-beach","saint-peter","saint-peters","saint-philippe-de-la-prairie","saint-pie","saint-pie-v","saint-pierre-les-becquets","saint-placide","saint-polycarpe","saint-prime","saint-raphael","saint-raymond","saint-regis-park","saint-remi","saint-remi-de-tingwick","saint-robert","saint-rose","saint-sauveur","saint-sauveur-des-monts","saint-simeon","saint-simon-mills","saint-simons-island","saint-stephen","saint-stephens","saint-thomas","saint-tite","saint-victor","saint-zotique","saintadolphedhoward","saintalbans","saintalexandre","saintamable","saintambroise","saintandreavellin","saintandrews","saintann","saintanne","saintanselme","saintansgar","saintanthony","saintantoine","saintantoinedetilly","saintantonin","saintaugusta","saintaugustin","saintaugustindedesmaures","saintaugustine","saintaugustinebeach","saintaugustineshores","saintaugustinesouth","saintbarnabesud","saintbasilelegrand","saintbernard","saintbonaventure","saintboniface","saintbonifacius","saintbruno","saintbrunodeguigues","saintbrunodemontarville","saintcanut","saintcesaire","saintcharles","saintclair","saintclairshores","saintclairsville","saintcloud","saintcolomban","saintcomeliniere","saintconstant","saintcroixfalls","saintcyrilledewendover","saintdamase","saintdavid","saintdenissurrichelieu","saintdennis","saintdonatdemontcalm","sainte-adele","sainte-agathe-des-monts","sainte-anne-de-bellevue","sainte-anne-des-monts","sainte-anne-des-plaines","sainte-beatrix","sainte-catherine","sainte-croix","sainte-elisabeth","sainte-genevieve","sainte-julie","sainte-julienne","sainte-madeleine","sainte-marie","sainte-marthe-sur-le-lac","sainte-martine","sainte-monique","sainte-sophie","sainte-thecle","sainte-therese","sainteadele","sainteagathedesmonts","sainteannedebellevue","sainteannedesmonts","sainteannedesplaines","saintebeatrix","saintecatherine","saintecroix","saintedouard","sainteelisabeth","saintegenevieve","saintejulie","saintejulienne","saintelmo","saintelzear","saintemadeleine","saintemargueritedulacmasson","saintemarie","saintemarthesurlelac","saintemartine","saintemonique","saintephremdebeauce","saintesophie","saintethecle","saintetherese","sainteustache","saintfelicien","saintfelixdevalois","saintfrancis","saintfrancisville","saintgabriel","saintgedeon","saintgeorge","saintgeorges","saintgermaindegrantham","sainthedwig","sainthelen","sainthelena","sainthelens","sainthenri","sainthenry","sainthippolyte","sainthonore","sainthubert","sainthyacinthe","saintignace","saintisidore","saintisidoredelaprairie","saintjacob","saintjacques","saintjacqueslemineur","saintjames","saintjamescity","saintjeanbaptiste","saintjeansurrichelieu","saintjerome","saintjo","saintjohn","saintjohns","saintjohnsbury","saintjohnsville","saintjoseph","saintjosephdebeauce","saintjosephdecoleraine","saintjosephdulac","saintlambertdelauzon","saintlaurent","saintlawrence","saintlazare","saintlazaredebellechasse","saintleo","saintleonard","saintleonarddaston","saintliboire","saintlinlaurentides","saintlouis","saintlouisduhaha","saintlouispark","saintmarcdescarrieres","saintmaries","saintmartin","saintmartins","saintmartinville","saintmarys","saintmathieu","saintmatthews","saintmichael","saintmichaels","saintmichel","saintmicheldessaints","saintnazaire","saintnorbert","saintpacome","saintparis","saintpascal","saintpaul","saintpaulpark","saintpauls","saintpetebeach","saintpeter","saintpeters","saintphilippedelaprairie","saintpie","saintpierrelesbecquets","saintpiev","saintplacide","saintpolycarpe","saintprime","saintraphael","saintraymond","saintregispark","saintremi","saintremidetingwick","saintrobert","saintrose","saintsauveur","saintsauveurdesmonts","saintsimeon","saintsimonmills","saintsimonsisland","saintstephen","saintstephens","saintthomas","sainttite","saintvictor","saintzotique","saj","saks","sal","salaberry-de-valleyfield","salaberrydevalleyfield","saladero","salado","salamanca","salazar","salcha","saldarriaga","sale-creek","salecreek","salem","salem-heights","salemheights","salguero","sali","salida","salina","salina-cruz","salinacruz","salinas","salinas-de-hidalgo","salinas-victoria","salinasdehidalgo","salinasvictoria","saline","salineville","salisbury","salitral-de-carrera","salitraldecarrera","salitrillo","salix","sall","sallisaw","salluit","salmo","salmon","salmon-arm","salmon-brook","salmon-creek","salmonarm","salmonbrook","salmoncreek","salome","saloya-2da-seccion","saloya2daseccion","salp","salt-lake-city","salt-spring-island","saltabarranca","saltair","saltillo","saltlakecity","salto-de-agua","saltodeagua","salton-city","saltoncity","saltspringisland","saltville","saluda","salunga","salv","salvador-diaz-miron","salvador-rosas-magallon","salvador-urbina","salvadordiazmiron","salvadorrosasmagallon","salvadorurbina","salvatierra","salyersville","sam","sam-rayburn","samachique","samahil","samalayuca","samarkanda","sammamish","samoset","samrayburn","samson","samsula-spruce-creek","samsulasprucecreek","san","san-acateno","san-agustin","san-agustin-amatengo","san-agustin-atenango","san-agustin-atzompa","san-agustin-berros","san-agustin-buenavista","san-agustin-chayuco","san-agustin-citlali","san-agustin-de-las-flores","san-agustin-de-las-juntas","san-agustin-de-las-palmas","san-agustin-del-maiz","san-agustin-del-palmar","san-agustin-del-pulque","san-agustin-etla","san-agustin-huitzizilapan","san-agustin-huixaxtla","san-agustin-loxicha","san-agustin-mextepec","san-agustin-mimbres","san-agustin-oapan","san-agustin-tlaxco","san-agustin-tlaxiaca","san-agustin-yatareni","san-agustin-zapotlan","san-alejo","san-andreas","san-andres","san-andres-ahuashuatepec","san-andres-azumiatla","san-andres-cacaloapan","san-andres-calpan","san-andres-chicahuaxtla","san-andres-cholula","san-andres-cohamiata","san-andres-coru","san-andres-cuexcontitlan","san-andres-de-la-cal","san-andres-de-las-peras","san-andres-de-los-gama","san-andres-del-pedregal","san-andres-dinicuiti","san-andres-duraznal","san-andres-enguaro","san-andres-hidalgo","san-andres-huaxpaltepec","san-andres-huayapam","san-andres-hueyacatitla","san-andres-ixtlahuaca","san-andres-ixtlan","san-andres-metla","san-andres-mixquic","san-andres-nicolas-bravo","san-andres-ocotepec","san-andres-ocotlan","san-andres-paxtlan","san-andres-payuca","san-andres-sinaxtla","san-andres-solaga","san-andres-tenejapan","san-andres-teotilalpam","san-andres-tepetitlan","san-andres-timilpan","san-andres-tlalamac","san-andres-tuxtla","san-andres-yaa","san-andres-yahuitlalpan","san-andres-zautla","san-andres-zirondaro","san-angel","san-angelo","san-anselmo","san-antonino-castillo-velasco","san-antonio","san-antonio-acahualco","san-antonio-alpanocan","san-antonio-arrazola","san-antonio-atotonilco","san-antonio-bonixi","san-antonio-buenavista","san-antonio-bulujib","san-antonio-calichar","san-antonio-canada","san-antonio-cardenas","san-antonio-chiverias","san-antonio-coyahuacan","san-antonio-de-corrales","san-antonio-de-fernandez","san-antonio-de-la-cal","san-antonio-de-la-laguna","san-antonio-de-las-alazanas","san-antonio-de-las-huertas","san-antonio-de-las-palmas","san-antonio-de-los-horcones","san-antonio-de-los-morales","san-antonio-de-los-rios","san-antonio-de-los-tepetates","san-antonio-de-los-vazquez","san-antonio-de-penuelas","san-antonio-de-rivas","san-antonio-de-romerillo","san-antonio-del-cipres","san-antonio-del-coyote","san-antonio-del-monte","san-antonio-del-puente","san-antonio-del-rosario","san-antonio-el-chico","san-antonio-el-grande","san-antonio-el-llanito","san-antonio-el-paso","san-antonio-el-rico","san-antonio-emenguaro","san-antonio-enchisi","san-antonio-gallardo","san-antonio-guaracha","san-antonio-heights","san-antonio-huitepec","san-antonio-juarez","san-antonio-la-isla","san-antonio-la-labor","san-antonio-la-portilla","san-antonio-las-palmas","san-antonio-matlahuacales","san-antonio-mihuacan","san-antonio-molinos","san-antonio-nixini","san-antonio-ocopetlatlan","san-antonio-ocotlan","san-antonio-portezuelo","san-antonio-primero","san-antonio-rayon","san-antonio-sahcabchen","san-antonio-soledad","san-antonio-solis","san-antonio-tariacuri","san-antonio-tecolco","san-antonio-tecomitl","san-antonio-tedzidz","san-antonio-tepetlapa","san-antonio-texas","san-antonio-tlacamilco","san-antonio-tlaltecahuacan","san-antonio-tlatenco","san-antonio-villalongin","san-antonio-virreyes","san-antonio-xahuento","san-antonio-xoquitla","san-antonio-zaragoza","san-atenogenes-la-villita","san-augustine","san-baltazar-atlimeyaya","san-baltazar-chichicapam","san-baltazar-guelavila","san-baltazar-loxicha","san-bartolito-tlaltelolco","san-bartolo","san-bartolo-coyotespec","san-bartolo-cuautlalpan","san-bartolo-cuitareo","san-bartolo-de-berrios","san-bartolo-del-llano","san-bartolo-del-progreso","san-bartolo-el-viejo","san-bartolo-lanzados","san-bartolo-morelos","san-bartolo-oxtotitlan","san-bartolo-ozocalpan","san-bartolo-tlaxihuicalco","san-bartolo-tutotepec","san-bartolo-yautepec","san-bartolome","san-bartolome-aguas-calientes","san-bartolome-atlatlahuca","san-bartolome-ayautla","san-bartolome-coatepec","san-bartolome-cuahuixmatlac","san-bartolome-hueyapan","san-bartolome-loxicha","san-bartolome-quialana","san-bartolome-tenango","san-bartolome-tlaltelulco","san-bartolome-xicomulco","san-benito","san-benito-encinal","san-benito-xaltocan","san-bernabe-de-las-canteras","san-bernabe-temoxtitla","san-bernardino","san-bernardino-lagunas","san-bernardino-tlaxcalancingo","san-bernardo","san-bernardo-mixtepec","san-bernardo-pena-blanca","san-bernardo-tlalmimilolpan","san-blas","san-blas-atempa","san-bruno","san-buenaventura","san-buenaventura-atempan","san-buenaventura-tecaltzingo","san-caralampio","san-carlos","san-carlos-autopan","san-carlos-park","san-carlos-yautepec","san-cayetano","san-ciro-de-acosta","san-clemente","san-clemente-de-lima","san-cosme-atlamaxac","san-cristobal","san-cristobal-amatlan","san-cristobal-amoltepec","san-cristobal-chacon","san-cristobal-de-la-barranca","san-cristobal-de-las-casas","san-cristobal-hidalgo","san-cristobal-honduras","san-cristobal-lachirioag","san-cristobal-los-nava","san-cristobal-nexquipayac","san-cristobal-xochimilpa","san-cristobal-zapotitlan","san-damian-texoloc","san-diego","san-diego-alcala","san-diego-country-estates","san-diego-de-alcala","san-diego-de-alejandria","san-diego-de-la-union","san-diego-del-cerrito","san-diego-el-organal","san-diego-huehuecalco","san-diego-la-huerta","san-diego-linares","san-dimas","san-dionisio-del-mar","san-dionisio-ocotepec","san-dionisio-ocotlan","san-elias","san-elizario","san-esteban","san-esteban-atatlahuca","san-esteban-de-abajo","san-esteban-tizatlan","san-felipe","san-felipe-aztatan","san-felipe-cihualtepec","san-felipe-coamango","san-felipe-de-hijar","san-felipe-de-jesus","san-felipe-de-los-herreros","san-felipe-del-progreso","san-felipe-el-mirasol","san-felipe-hidalgo","san-felipe-jalapa-de-diaz","san-felipe-orizatlan","san-felipe-otlaltepec","san-felipe-pueblo","san-felipe-pueblo-nuevo","san-felipe-quiriceo","san-felipe-santiago","san-felipe-sultepec","san-felipe-tejalapam","san-felipe-teotitlan","san-felipe-tilpam","san-felipe-tizapa","san-felipe-tlalmimilolpan","san-felipe-usila","san-felix-hidalgo","san-felix-rijo","san-fernando","san-francisco","san-francisco-acuautla","san-francisco-atotonilco","san-francisco-ayotuzco","san-francisco-cajonos","san-francisco-chalchihuapan","san-francisco-chimalpa","san-francisco-chindua","san-francisco-coatlan","san-francisco-cozoaltepec","san-francisco-cuapa","san-francisco-cuautlancingo","san-francisco-cuaxusco","san-francisco-cuayalab","san-francisco-cuexcontzi","san-francisco-de-arriba","san-francisco-de-asis","san-francisco-de-borja","san-francisco-de-conchos","san-francisco-de-duran","san-francisco-de-guzman","san-francisco-de-la-palma","san-francisco-de-los-romo","san-francisco-de-rivas","san-francisco-de-tacuichamona","san-francisco-del-mar","san-francisco-del-mar-viejo","san-francisco-del-mezquital","san-francisco-del-rincon","san-francisco-el-calvito","san-francisco-grande","san-francisco-huehuetlan","san-francisco-ixhuatan","san-francisco-jacona","san-francisco-jaltepetongo","san-francisco-javier","san-francisco-koben","san-francisco-lachigolo","san-francisco-logueche","san-francisco-loxicha","san-francisco-magu","san-francisco-mata-clara","san-francisco-mazapa","san-francisco-mihualtepec","san-francisco-nacaxtle","san-francisco-nuxano","san-francisco-ocotlan","san-francisco-oxtotilpan","san-francisco-oxtutla","san-francisco-ozolotepec","san-francisco-ozomatlan","san-francisco-periban","san-francisco-pujiltic","san-francisco-putla","san-francisco-sola","san-francisco-solis","san-francisco-tecoxpa","san-francisco-telixtlahuaca","san-francisco-temetzontla","san-francisco-tenopalco","san-francisco-tepeolulco","san-francisco-tepexoxica","san-francisco-tepeyecac","san-francisco-tetetla","san-francisco-tetlanohcan","san-francisco-tlacuilohcan","san-francisco-tlalcilalcalpan","san-francisco-tlaloc","san-francisco-tlaltica","san-francisco-tutla","san-francisco-xochicuautla","san-francisco-zacacalco","san-francisco-zacapexpan","san-gabriel","san-gabriel-azteca","san-gabriel-chilac","san-gabriel-ixtla","san-gabriel-las-palmas","san-gabriel-mixtepec","san-gabriel-tetzoyocan","san-gabriel-y-san-ignacio","san-gabriel-zepayautla","san-gaspar","san-gaspar-tlahuelilpan","san-gaspar-tonatico","san-german","san-gregorio","san-gregorio-atzompa","san-gregorio-aztotoacan","san-gregorio-cuautzingo","san-hipolito","san-hipolito-chimalpa","san-ignacio","san-ignacio-cerro-gordo","san-ignacio-de-hidalgo","san-ignacio-nopala","san-ignacio-rio-muerto","san-ildefonso","san-ildefonso-amatlan","san-ildefonso-tultepec","san-ildefonso-villa-alta","san-isidro","san-isidro-alta-huerta","san-isidro-apango","san-isidro-boxipe","san-isidro-buen-suceso","san-isidro-buenavista","san-isidro-de-gamboa","san-isidro-de-la-concepcion","san-isidro-de-la-estacada","san-isidro-de-los-sauces","san-isidro-el-berro","san-isidro-el-reservado","san-isidro-huilotepec","san-isidro-las-banderas","san-isidro-mazatepec","san-isidro-miranda","san-isidro-monjas","san-isidro-monterrosas","san-isidro-palotal","san-isidro-vista-hermosa","san-jacinto","san-jacinto-amilpas","san-javier","san-jeronimito","san-jeronimo","san-jeronimo-acazulco","san-jeronimo-almoloya","san-jeronimo-amanalco","san-jeronimo-axochitlan","san-jeronimo-bonchete","san-jeronimo-coaltepec","san-jeronimo-coatlan","san-jeronimo-coyula","san-jeronimo-cuatro-vientos","san-jeronimo-de-araceo","san-jeronimo-de-juarez","san-jeronimo-de-los-jarros","san-jeronimo-el-grande","san-jeronimo-ocotitla","san-jeronimo-purenchecuaro","san-jeronimo-silacayoapilla","san-jeronimo-sosola","san-jeronimo-taviche","san-jeronimo-tecoatl","san-jeronimo-tlacochahuaya","san-jeronimo-totoltepec","san-jeronimo-tulija","san-jeronimo-xayacatlan","san-jeronimo-yahuiche","san-jeronimo-zacualpan","san-joaquin","san-joaquin-coapango","san-joaquin-del-monte","san-joaquin-hills","san-joaquin-zorrillos","san-jorge-nuchita","san-jorge-pueblo-nuevo","san-jorge-tezoquipan","san-jose","san-jose-acateno","san-jose-atlan","san-jose-atoyatenco","san-jose-ayuquila","san-jose-aztatla","san-jose-barbabosa","san-jose-boqui","san-jose-boxay","san-jose-buena-vista","san-jose-buenavista","san-jose-buenavista-el-grande","san-jose-carpinteros","san-jose-casas-caidas","san-jose-chacalapa","san-jose-chalmita","san-jose-chapayal","san-jose-chiapa","san-jose-chiltepec","san-jose-comalco","san-jose-corral-blanco","san-jose-cuamantzingo","san-jose-cuaro","san-jose-cuyachapa","san-jose-de-abajo","san-jose-de-agua-azul","san-jose-de-aura","san-jose-de-ayala","san-jose-de-bacum","san-jose-de-castellanos","san-jose-de-cervera","san-jose-de-duran-los-troncoso","san-jose-de-gracia","san-jose-de-guanajuato","san-jose-de-guaymas","san-jose-de-la-era","san-jose-de-la-laja","san-jose-de-la-montana","san-jose-de-la-paz","san-jose-de-las-flores","san-jose-de-las-pilas","san-jose-de-llanos","san-jose-de-los-olvera","san-jose-de-los-reynoso","san-jose-de-lourdes","san-jose-de-mendoza","san-jose-de-raices","san-jose-de-tapia","san-jose-de-vinedo","san-jose-de-zaragoza","san-jose-del-cabo","san-jose-del-castillo","san-jose-del-jaguey","san-jose-del-potrero","san-jose-del-progreso","san-jose-del-puente","san-jose-del-rincon-centro","san-jose-del-rodeo","san-jose-del-sitio","san-jose-del-tapanco","san-jose-del-torreon","san-jose-del-tunal","san-jose-del-valle","san-jose-el-alto","san-jose-el-cuartel","san-jose-el-llanito","san-jose-el-nuevo","san-jose-el-vidrio","san-jose-estancia-grande","san-jose-guadalupe-otzacatipan","san-jose-huipana","san-jose-independencia","san-jose-itho","san-jose-iturbide","san-jose-ixtapa-barrio-viejo","san-jose-la-garzona","san-jose-la-hacienda","san-jose-lachiguiri","san-jose-las-chicharras","san-jose-las-lomas","san-jose-las-palmas","san-jose-manzanitos","san-jose-mezapa-seccion-i","san-jose-monte-chiquito","san-jose-neria","san-jose-ocotillos","san-jose-ozumba","san-jose-pathe","san-jose-piedras-negras","san-jose-poliutla","san-jose-rio-manzo","san-jose-solis","san-jose-suchil","san-jose-teacalco","san-jose-tejamanil","san-jose-temascatio","san-jose-tenango","san-jose-tenejapa","san-jose-teneria-teneria","san-jose-tepeyahualco","san-jose-tepuzas","san-jose-tetel","san-jose-tilapa","san-jose-tlacotitlan","san-jose-tlacuitlapan","san-jose-toxi","san-jose-tzal","san-jose-viborillas","san-jose-villa-de-allende","san-jose-villarreal","san-jose-vista-hermosa","san-jose-xicohtencatl","san-jose-yashitinin","san-jose-yocnajab","san-juan","san-juan-achichilco","san-juan-achiutla","san-juan-ahuehueco","san-juan-ahuehueyo","san-juan-amecac","san-juan-atenco","san-juan-atepec","san-juan-atezcapan","san-juan-atzingo","san-juan-atzompa","san-juan-bautista","san-juan-bautista-cacalote","san-juan-bautista-jayacatlan","san-juan-bautista-la-raya","san-juan-bautista-lo-de-soto","san-juan-cabeza-del-rio","san-juan-cacahuatepec","san-juan-cancuc","san-juan-capistrano","san-juan-chilateca","san-juan-coajomulco","san-juan-coatzospam","san-juan-colon","san-juan-colorado","san-juan-cosala","san-juan-cote-ejido","san-juan-cotzocon","san-juan-coxtocan","san-juan-cuauhtemoc","san-juan-cuautla","san-juan-daxthi","san-juan-de-abajo","san-juan-de-guadalupe","san-juan-de-la-vaqueria","san-juan-de-la-vega","san-juan-de-las-huertas","san-juan-de-las-manzanas","san-juan-de-los-arcos","san-juan-de-los-cues","san-juan-de-los-jarros","san-juan-de-los-lagos","san-juan-de-los-platanos","san-juan-de-otates","san-juan-de-sabinas","san-juan-de-vina","san-juan-del-estado","san-juan-del-llanito","san-juan-del-rio","san-juan-diuxi","san-juan-epatlan","san-juan-evangelista","san-juan-grande","san-juan-guelavia","san-juan-guichicovi","san-juan-huactzinco","san-juan-hueyapan","san-juan-huiluco","san-juan-ihualtepec","san-juan-ixcaquixtla","san-juan-ixtayopan","san-juan-jalpa-centro","san-juan-jaltepec","san-juan-jaripeo","san-juan-jicayan","san-juan-juquila","san-juan-juquila-vijanos","san-juan-la-isla","san-juan-lachao","san-juan-lachigalla","san-juan-lagunas","san-juan-mazatlan","san-juan-metaltepec","san-juan-mixtepec","san-juan-numi","san-juan-ozolotepec","san-juan-pan-de-arriba","san-juan-pancoac","san-juan-petlapa","san-juan-pueblo-nuevo","san-juan-quetzalcoapan","san-juan-quiahue","san-juan-quiotepec","san-juan-raboso","san-juan-sautla","san-juan-sayultepec","san-juan-seco-de-valencia","san-juan-solis","san-juan-tabaa","san-juan-tahitic","san-juan-tecomatlan","san-juan-tehuixtitlan","san-juan-teitipac","san-juan-tejaluca","san-juan-tepa","san-juan-tepecoculco","san-juan-tepulco","san-juan-tetla","san-juan-texcalpan","san-juan-tezongo","san-juan-tilapa","san-juan-tilcuautla","san-juan-tlacotompa-tlacotompa","san-juan-tomasquillo-herradura","san-juan-totolapan","san-juan-totolcintla","san-juan-tuxco","san-juan-tuxtepec","san-juan-volador","san-juan-xiutetelco","san-juan-xochiaca","san-juan-xoconusco","san-juan-y-san-pedro-tezompa","san-juan-yaee","san-juan-yatzona","san-juan-yautepec","san-juan-zapotitlan","san-juan-zitlaltepec","san-juanico-sector-uno","san-juanito","san-juanito-de-escobedo","san-juanito-itzicuaro","san-julian","san-julio","san-leandro","san-leon","san-leoncio-jamaya","san-lorenzo","san-lorenzo-achiotepec","san-lorenzo-acopilco","san-lorenzo-albarradas","san-lorenzo-axocomanitla","san-lorenzo-cacaotepec","san-lorenzo-chiautzingo","san-lorenzo-cuauhtenco","san-lorenzo-cuaunecuiltitla","san-lorenzo-huehuetitlan","san-lorenzo-itzicuaro","san-lorenzo-joya-de-rodriguez","san-lorenzo-malacota","san-lorenzo-nenamicoyan","san-lorenzo-oyamel","san-lorenzo-querendaro","san-lorenzo-sayula","san-lorenzo-soltepec","san-lorenzo-tenochtitlan","san-lorenzo-tlacotepec","san-lorenzo-tlacoyucan","san-lorenzo-tlalmimilolpan","san-lorenzo-tlaxipehuala","san-lorenzo-toxico","san-lorenzo-vista-hermosa","san-lorenzo-xaltelulco","san-lucas","san-lucas-amalinalco","san-lucas-atzala","san-lucas-camotlan","san-lucas-del-pulque","san-lucas-el-grande","san-lucas-el-viejo","san-lucas-evangelista","san-lucas-huitzilhuacan","san-lucas-ocotepec","san-lucas-ojitlan","san-lucas-pio","san-lucas-quiavini","san-lucas-tecopilco","san-lucas-texcaltitlan","san-lucas-tlacochcalco","san-lucas-totolmaloya","san-lucas-zoquiapam","san-luis","san-luis-acatlan","san-luis-ajajalpan","san-luis-amatlan","san-luis-anahuac-toriles","san-luis-apizaquito","san-luis-ayucan","san-luis-boro","san-luis-coyotzingo","san-luis-de-agua-caliente","san-luis-de-la-loma","san-luis-de-la-paz","san-luis-de-letras","san-luis-de-lozada","san-luis-del-cordero","san-luis-obispo","san-luis-potosi","san-luis-rio-colorado","san-luis-san-pedro","san-luis-soyatlan","san-luis-taxhimay","san-luis-tecuhautitlan","san-luis-tehuiloyocan","san-luqueno","san-manuel","san-marcial-ozolotepec","san-marcos","san-marcos-arteaga","san-marcos-atesquilapan","san-marcos-contla","san-marcos-de-la-cruz","san-marcos-de-la-loma","san-marcos-de-leon","san-marcos-eloxochitlan","san-marcos-guaquilpan","san-marcos-huixtoco","san-marcos-nepantla","san-marcos-tecomaxusco","san-marcos-tlacoyalco","san-marcos-tlazalpan","san-marcos-yachihuacaltepec","san-marcos-zacatepec","san-marino","san-martin","san-martin-ahuatepec","san-martin-azcatepec","san-martin-cachihuapan","san-martin-caltenco","san-martin-chalchicuautla","san-martin-coapaxtongo","san-martin-cuautlalpan","san-martin-de-bolanos","san-martin-de-las-piramides","san-martin-de-los-canseco","san-martin-de-zula","san-martin-ejido","san-martin-esperilla","san-martin-florida","san-martin-hidalgo","san-martin-itunyoso","san-martin-lachila","san-martin-mazateopan","san-martin-ojo-de-agua","san-martin-pachivia-pachivia","san-martin-tilcajete","san-martin-tlamapa","san-martin-tlapala","san-martin-toltepec","san-martin-totolan","san-martin-tuchicuitlapilco","san-mateo","san-mateo-almomoloha","san-mateo-atarasquillo","san-mateo-atenco","san-mateo-ayecac","san-mateo-cajonos","san-mateo-capulhuac","san-mateo-capultitlan","san-mateo-coapexco","san-mateo-del-mar","san-mateo-el-viejo","san-mateo-etlatongo","san-mateo-huitzilzingo","san-mateo-ixtacalco","san-mateo-ixtlahuaca","san-mateo-mozoquilpan","san-mateo-nejapam","san-mateo-otzacatipan","san-mateo-ozolco","san-mateo-parra","san-mateo-pinas","san-mateo-soltepec","san-mateo-tecalco","san-mateo-texcalyacac","san-mateo-tlalchichilpan","san-mateo-xoloc","san-mateo-yoloxochitlan","san-matias-atzala","san-matias-cuijingo","san-matias-tepetomatitlan","san-matias-tlalancaleca","san-melchor-betaza","san-miguel","san-miguel-abejones","san-miguel-achiutla","san-miguel-agua-bendita","san-miguel-aguacomulican","san-miguel-ajusco","san-miguel-almaya","san-miguel-almoloyan","san-miguel-aloapam","san-miguel-amazcala","san-miguel-ameyalco","san-miguel-analco","san-miguel-atepoxco","san-miguel-atlamajac","san-miguel-atlapulco","san-miguel-axoxuca","san-miguel-balderas","san-miguel-canoa","san-miguel-cerezo-el-cerezo","san-miguel-chimalapa","san-miguel-coatlan","san-miguel-coatlinchan","san-miguel-contla","san-miguel-cuyutlan","san-miguel-de-allende","san-miguel-de-cruces","san-miguel-de-horcasitas","san-miguel-de-la-paz","san-miguel-de-la-victoria","san-miguel-de-las-palmas","san-miguel-del-arenal","san-miguel-del-centro","san-miguel-del-milagro","san-miguel-del-progreso","san-miguel-del-puerto","san-miguel-del-valle","san-miguel-ejutla","san-miguel-el-alto","san-miguel-el-grande","san-miguel-emenguaro","san-miguel-enyege","san-miguel-epejan","san-miguel-espejo","san-miguel-figueroa","san-miguel-hila","san-miguel-huautla","san-miguel-ixitlan","san-miguel-ixtapan","san-miguel-jaltocan","san-miguel-la-sardina","san-miguel-laderas","san-miguel-mecatepec","san-miguel-mimlapan","san-miguel-mixtepec","san-miguel-monteverde","san-miguel-ocotenco","san-miguel-octopan","san-miguel-oxtotilpan","san-miguel-panixtlahuaca","san-miguel-papaxtla","san-miguel-peras","san-miguel-quetzaltepec","san-miguel-suchixtepec","san-miguel-tecomatlan","san-miguel-tecpan","san-miguel-tecuiciapan","san-miguel-tecuitlapa","san-miguel-tenango","san-miguel-tenextatiloyan","san-miguel-tenochtitlan","san-miguel-tetepelcingo","san-miguel-tianguistenco","san-miguel-tianguizolco","san-miguel-tilquiapam","san-miguel-tlacamama","san-miguel-tlacotepec","san-miguel-tlaixpan","san-miguel-tlalpoalan","san-miguel-tlamahuco","san-miguel-topilejo","san-miguel-totocuitlapilco","san-miguel-totolapan","san-miguel-totoltepec","san-miguel-vindho","san-miguel-xochitecatitla","san-miguel-xoltepec","san-miguel-xoxtla","san-miguel-yuxtepec","san-miguel-zapotitlan","san-miguel-zoapan","san-miguelito","san-nicolas","san-nicolas-amealco","san-nicolas-buenos-aires","san-nicolas-de-la-condesa","san-nicolas-de-la-torre","san-nicolas-de-los-agustinos","san-nicolas-de-los-garza","san-nicolas-de-los-ranchos","san-nicolas-del-carmen","san-nicolas-el-chico","san-nicolas-el-oro","san-nicolas-guadalupe","san-nicolas-obispo","san-nicolas-peralta","san-nicolas-quialana","san-nicolas-solis","san-nicolas-tecomatlan","san-nicolas-temascatio","san-nicolas-tlazala","san-nicolas-tolentino","san-nicolas-zecalacoayan","san-nicolas-zoyapetlayoca","san-pablito","san-pablo","san-pablo-ahuatempa","san-pablo-anicano","san-pablo-atlazalpan","san-pablo-atotonilco","san-pablo-atzompa","san-pablo-autopan","san-pablo-coatlan","san-pablo-cuatro-venados","san-pablo-de-las-salinas","san-pablo-de-las-tunas","san-pablo-de-los-gallos","san-pablo-de-los-remedios","san-pablo-el-grande","san-pablo-etla","san-pablo-guila","san-pablo-huacano","san-pablo-huantepec","san-pablo-huitzo","san-pablo-huixtepec","san-pablo-ixayoc","san-pablo-ixquitlan","san-pablo-macuiltianguis","san-pablo-oztotepec","san-pablo-pejo","san-pablo-pixtun","san-pablo-tecalco","san-pablo-tejalpa","san-pablo-villa-de-mitla","san-pasqual","san-patricio","san-pedro","san-pedro-abajo","san-pedro-amuzgos","san-pedro-apatlaco","san-pedro-apostol","san-pedro-arriba","san-pedro-arriba-3ra-seccion","san-pedro-atlapulco","san-pedro-atmatla","san-pedro-atocpan","san-pedro-atoyac","san-pedro-benito-juarez","san-pedro-buenavista","san-pedro-cacahuatepec","san-pedro-chiautzingo","san-pedro-chimay","san-pedro-chochula","san-pedro-cholula","san-pedro-comitancillo","san-pedro-coxcaltepec-cantaros","san-pedro-coyutla","san-pedro-cuayuca","san-pedro-cuitlapan","san-pedro-de-ibarra","san-pedro-de-la-cueva","san-pedro-de-los-banos","san-pedro-de-los-metates","san-pedro-de-los-naranjos","san-pedro-de-los-sauces","san-pedro-del-gallo","san-pedro-del-rincon","san-pedro-del-rosal","san-pedro-denxhi-centro","san-pedro-ecatepec","san-pedro-el-alto","san-pedro-garza-garcia","san-pedro-guasave","san-pedro-huamelula","san-pedro-huaquilpan","san-pedro-huilotepec","san-pedro-huitzizilapan","san-pedro-itzican","san-pedro-itztla","san-pedro-ixcatlan","san-pedro-ixtlahuaca","san-pedro-jacuaro","san-pedro-jicayan","san-pedro-juchaltengo","san-pedro-la-joya","san-pedro-lagunillas","san-pedro-las-playas","san-pedro-limon","san-pedro-los-banos","san-pedro-martir","san-pedro-martir-quiechapa","san-pedro-martir-yucuxaco","san-pedro-matamoros","san-pedro-mixtepec","san-pedro-munoztla","san-pedro-nexapa","san-pedro-nichtalucum","san-pedro-nuevo","san-pedro-ocopetatillo","san-pedro-ocotepec","san-pedro-ozumacin","san-pedro-petlacotla","san-pedro-piedra-gorda","san-pedro-pochutla","san-pedro-quiatoni","san-pedro-sochiapam","san-pedro-tapanatepec","san-pedro-tarimbaro","san-pedro-taviche","san-pedro-techuchulco","san-pedro-tejalpa","san-pedro-temamatla","san-pedro-tenango","san-pedro-tenayac","san-pedro-tepetitlan","san-pedro-tesistan","san-pedro-tetitlan","san-pedro-tidaa","san-pedro-tlachichilco","san-pedro-tlacotepec","san-pedro-tlaltizapan","san-pedro-tlanixco","san-pedro-tlaolantongo","san-pedro-tlapacoyan","san-pedro-tlaquilpan","san-pedro-topiltepec","san-pedro-totolapam","san-pedro-totoltepec","san-pedro-tulixtlahuaca","san-pedro-tultepec","san-pedro-xalcaltzinco","san-pedro-xalpa","san-pedro-xochiteotla","san-pedro-yancuitlalpan","san-pedro-yolox","san-pedro-zacachimalpa","san-pedro-zictepec","san-quintin","san-rafael","san-rafael-caleria","san-rafael-ixtapalucan","san-rafael-rio-seco","san-rafael-tecario","san-rafael-tenanyecac","san-rafael-tepatlaxco","san-rafael-tlanalapan","san-rafael-zaragoza","san-ramon","san-raymundo-jalpam","san-roque","san-roque-de-montes","san-roque-de-torres","san-saba","san-salvador","san-salvador-atenco","san-salvador-cuauhtenco","san-salvador-el-seco","san-salvador-el-verde","san-salvador-naranjillo","san-salvador-tizatlalli","san-salvador-torrecillas","san-sebastian","san-sebastian-abasolo","san-sebastian-alcomunga","san-sebastian-buenos-aires","san-sebastian-chimalpa","san-sebastian-coatlan","san-sebastian-de-aparicio","san-sebastian-de-salitre","san-sebastian-del-monte","san-sebastian-del-oeste","san-sebastian-del-sur","san-sebastian-el-grande","san-sebastian-etla","san-sebastian-fraccionamiento","san-sebastian-nicananduta","san-sebastian-rio-hondo","san-sebastian-teitipac","san-sebastian-tenochtitlan","san-sebastian-teteles","san-sebastian-tutla","san-sebastian-xolalpa","san-simeon-xipetzingo","san-simon","san-simon-almolongas","san-simon-atzitzintla","san-simon-de-guerrero","san-simon-de-la-laguna","san-simon-el-alto","san-simon-tlatlahuquitepec","san-simonito","san-tadeo","san-tan-valley","san-vicente","san-vicente-boqueron","san-vicente-chimalhuacan","san-vicente-coatlan","san-vicente-coyotepec","san-vicente-de-flores","san-vicente-de-juarez","san-vicente-el-alto","san-vicente-ferrer","san-vicente-la-mesilla","san-vicente-lachixio","san-vicente-nunu","san-vicente-palapa","san-vicente-pinas","san-vicente-tancuayalab","san-vicente-zoyatlan","san-ysidro","sanacateno","sanagustin","sanagustinamatengo","sanagustinatenango","sanagustinatzompa","sanagustinberros","sanagustinbuenavista","sanagustinchayuco","sanagustincitlali","sanagustindelasflores","sanagustindelasjuntas","sanagustindelaspalmas","sanagustindelmaiz","sanagustindelpalmar","sanagustindelpulque","sanagustinetla","sanagustinhuitzizilapan","sanagustinhuixaxtla","sanagustinloxicha","sanagustinmextepec","sanagustinmimbres","sanagustinoapan","sanagustintlaxco","sanagustintlaxiaca","sanagustinyatareni","sanagustinzapotlan","sanahcat","sanalejo","sanalona","sanandreas","sanandres","sanandresahuashuatepec","sanandresazumiatla","sanandrescacaloapan","sanandrescalpan","sanandreschicahuaxtla","sanandrescholula","sanandrescohamiata","sanandrescoru","sanandrescuexcontitlan","sanandresdelacal","sanandresdelasperas","sanandresdelosgama","sanandresdelpedregal","sanandresdinicuiti","sanandresduraznal","sanandresenguaro","sanandreshidalgo","sanandreshuaxpaltepec","sanandreshuayapam","sanandreshueyacatitla","sanandresixtlahuaca","sanandresixtlan","sanandresmetla","sanandresmixquic","sanandresnicolasbravo","sanandresocotepec","sanandresocotlan","sanandrespaxtlan","sanandrespayuca","sanandressanandreschichayotla","sanandressinaxtla","sanandressolaga","sanandrestenejapan","sanandresteotilalpam","sanandrestepetitlan","sanandrestimilpan","sanandrestlalamac","sanandrestuxtla","sanandresyaa","sanandresyahuitlalpan","sanandreszautla","sanandreszirondaro","sanangel","sanangelo","sananselmo","sanantoninocastillovelasco","sanantonio","sanantonioacahualco","sanantonioalpanocan","sanantonioarrazola","sanantonioatotonilco","sanantoniobonixi","sanantoniobuenavista","sanantoniobulujib","sanantoniocalichar","sanantoniocanada","sanantoniocardenas","sanantoniochiverias","sanantoniocoyahuacan","sanantoniodecorrales","sanantoniodefernandez","sanantoniodelacal","sanantoniodelalaguna","sanantoniodelasalazanas","sanantoniodelashuertas","sanantoniodelaspalmas","sanantoniodelcipres","sanantoniodelcoyote","sanantoniodelmonte","sanantoniodeloshorcones","sanantoniodelosmorales","sanantoniodelosrios","sanantoniodelostepetates","sanantoniodelosvazquez","sanantoniodelpuente","sanantoniodelrosario","sanantoniodepenuelas","sanantonioderivas","sanantonioderomerillo","sanantonioelchico","sanantonioelgrande","sanantonioelllanito","sanantonioelpaso","sanantonioelrico","sanantonioemenguaro","sanantonioenchisi","sanantoniogallardo","sanantonioguaracha","sanantonioheights","sanantoniohuitepec","sanantoniojuarez","sanantoniolaisla","sanantoniolalabor","sanantoniolaportilla","sanantoniolaspalmas","sanantoniomatlahuacales","sanantoniomihuacan","sanantoniomolinos","sanantonionixini","sanantonioocopetlatlan","sanantonioocotlan","sanantonioportezuelo","sanantonioprimero","sanantoniorayon","sanantoniosahcabchen","sanantoniosoledad","sanantoniosolis","sanantoniotariacuri","sanantoniotecolco","sanantoniotecomitl","sanantoniotedzidz","sanantoniotepetlapa","sanantoniotexas","sanantoniotlacamilco","sanantoniotlaltecahuacan","sanantoniotlatenco","sanantoniovillalongin","sanantoniovirreyes","sanantonioxahuento","sanantonioxoquitla","sanantoniozaragoza","sanata-lucia","sanatalucia","sanatenogeneslavillita","sanatoga","sanaugustine","sanb","sanbaltazaratlimeyaya","sanbaltazarchichicapam","sanbaltazarguelavila","sanbaltazarloxicha","sanbartolitotlaltelolco","sanbartolo","sanbartolocoyotespec","sanbartolocuautlalpan","sanbartolocuitareo","sanbartolodeberrios","sanbartolodelllano","sanbartolodelllanosanisidro","sanbartolodelprogreso","sanbartoloelviejo","sanbartololanzados","sanbartolome","sanbartolomeaguascalientes","sanbartolomeatlatlahuca","sanbartolomeayautla","sanbartolomecoatepec","sanbartolomecuahuixmatlac","sanbartolomehueyapan","sanbartolomeloxicha","sanbartolomequialana","sanbartolometenango","sanbartolometlaltelulco","sanbartolomexicomulco","sanbartolomorelos","sanbartolooxtotitlan","sanbartoloozocalpan","sanbartolotlaxihuicalco","sanbartolotutotepec","sanbartoloyautepec","sanbenito","sanbenitoencinal","sanbenitoxaltocan","sanbernabedelascanteras","sanbernabetemoxtitla","sanbernardino","sanbernardinodemilpillaschico","sanbernardinolagunas","sanbernardinotlaxcalancingo","sanbernardo","sanbernardomixtepec","sanbernardopenablanca","sanbernardotlalmimilolpan","sanblas","sanblasatempa","sanborn","sanbornton","sanbornville","sanbruno","sanbuenaventura","sanbuenaventuraatempan","sanbuenaventuratecaltzingo","sancaralampio","sancarlos","sancarlosautopan","sancarlospark","sancarlosyautepec","sancayetano","sanchez","sancirodeacosta","sanclemente","sanclementedelima","sancosmeatlamaxac","sancristobal","sancristobalamatlan","sancristobalamoltepec","sancristobalchacon","sancristobaldelabarranca","sancristobaldelascasas","sancristobalhidalgo","sancristobalhonduras","sancristoballachirioag","sancristoballosnava","sancristobalnexquipayac","sancristobalxochimilpa","sancristobalzapotitlan","sanctorum","sand-hill","sand-lake","sand-point","sand-springs","sandalfoot-cove","sandalfootcove","sandamiantexoloc","sanderson","sandersville","sandhill","sandia-heights","sandia-knolls","sandiaheights","sandiaknolls","sandiego","sandiegoalcala","sandiegocountryestates","sandiegodealcala","sandiegodealejandria","sandiegodelaunion","sandiegodelcerrito","sandiegoelorganal","sandiegohuehuecalco","sandiegolahuerta","sandiegolinares","sandimas","sandionisiodelmar","sandionisioocotepec","sandionisioocotlan","sandlake","sandoval","sandown","sandpoint","sands-point","sandspoint","sandsprings","sandston","sandstone","sandusky","sandwich","sandy","sandy-hills","sandy-hook","sandy-springs","sandy-valley","sandyhills","sandyhook","sandysprings","sandyvalley","sane","sanelias","sanelizario","sanesteban","sanestebanatatlahuca","sanestebandeabajo","sanestebansanmigueltateposco","sanestebantizatlan","sanfelipe","sanfelipeaztatan","sanfelipecihualtepec","sanfelipecoamango","sanfelipedehijar","sanfelipedejesus","sanfelipedelosherreros","sanfelipedelprogreso","sanfelipeelmirasol","sanfelipehidalgo","sanfelipejalapadediaz","sanfelipelosalzaticolonianueva","sanfelipeorizatlan","sanfelipeotlaltepec","sanfelipepueblo","sanfelipepueblonuevo","sanfelipequiriceo","sanfelipesantiago","sanfelipesultepec","sanfelipetejalapam","sanfelipeteotitlan","sanfelipetilpam","sanfelipetizapa","sanfelipetlalmimilolpan","sanfelipeusila","sanfelixhidalgo","sanfelixrijo","sanfernando","sanford","sanfrancisco","sanfranciscoacuautla","sanfranciscoatotonilco","sanfranciscoayotuzco","sanfranciscocajonos","sanfranciscochalchihuapan","sanfranciscochimalpa","sanfranciscochindua","sanfranciscocoatlan","sanfranciscocozoaltepec","sanfranciscocuapa","sanfranciscocuautlancingo","sanfranciscocuaxusco","sanfranciscocuayalab","sanfranciscocuexcontzi","sanfranciscodearriba","sanfranciscodeasis","sanfranciscodeborja","sanfranciscodeconchos","sanfranciscodeduran","sanfranciscodeguzman","sanfranciscodelapalma","sanfranciscodelmar","sanfranciscodelmarviejo","sanfranciscodelmezquital","sanfranciscodelosromo","sanfranciscodelrincon","sanfranciscoderivas","sanfranciscodetacuichamona","sanfranciscoelcalvito","sanfranciscogrande","sanfranciscohuehuetlan","sanfranciscoixhuatan","sanfranciscojacona","sanfranciscojaltepetongo","sanfranciscojavier","sanfranciscokoben","sanfranciscolachigolo","sanfranciscologueche","sanfranciscoloxicha","sanfranciscomagu","sanfranciscomataclara","sanfranciscomazapa","sanfranciscomihualtepec","sanfrancisconacaxtle","sanfrancisconuxano","sanfranciscoocotlan","sanfranciscooxtotilpan","sanfranciscooxtutla","sanfranciscoozolotepec","sanfranciscoozomatlan","sanfranciscoperiban","sanfranciscopujiltic","sanfranciscoputla","sanfranciscosola","sanfranciscosolis","sanfranciscotecoxpa","sanfranciscotelixtlahuaca","sanfranciscotemetzontla","sanfranciscotenopalco","sanfranciscotepeolulco","sanfranciscotepexoxica","sanfranciscotepeyecac","sanfranciscotetetla","sanfranciscotetlanohcan","sanfranciscotlacuilohcan","sanfranciscotlalcilalcalpan","sanfranciscotlaloc","sanfranciscotlaltica","sanfranciscotutla","sanfranciscoxochicuautla","sanfranciscozacacalco","sanfranciscozacapexpan","sangabriel","sangabrielazteca","sangabrielchilac","sangabrielixtla","sangabriellaspalmas","sangabrielmixtepec","sangabrieltetzoyocan","sangabrielysanignacio","sangabrielzepayautla","sangaree","sangaspar","sangaspartlahuelilpan","sangaspartonatico","sanger","sangerman","sangerville","sangregorio","sangregorioatzompa","sangregorioaztotoacan","sangregoriocuautzingo","sanhipolito","sanhipolitochimalpa","sanibel","sanignacio","sanignaciocerrogordo","sanignaciodehidalgo","sanignacioderiveraojodeagua","sanignaciodesanjoseparangueo","sanignacionopala","sanignacioriomuerto","sanikiluaq","sanildefonso","sanildefonsoamatlan","sanildefonsotultepec","sanildefonsovillaalta","sanisidro","sanisidroaltahuerta","sanisidroapango","sanisidroboxipe","sanisidrobuenavista","sanisidrobuensuceso","sanisidrodegamboa","sanisidrodelaconcepcion","sanisidrodelaestacada","sanisidrodelossauces","sanisidroelberro","sanisidroelreservado","sanisidrogallineroelgallinero","sanisidrohuilotepec","sanisidrolasbanderas","sanisidromazatepec","sanisidromiranda","sanisidromonjas","sanisidromonterrosas","sanisidropalotal","sanisidrovistahermosa","sanjacinto","sanjacintoamilpas","sanjavier","sanjeronimito","sanjeronimo","sanjeronimoacazulco","sanjeronimoalmoloya","sanjeronimoamanalco","sanjeronimoaxochitlan","sanjeronimobonchete","sanjeronimocoaltepec","sanjeronimocoatlan","sanjeronimocoyula","sanjeronimocuatrovientos","sanjeronimodearaceo","sanjeronimodejuarez","sanjeronimodelosjarros","sanjeronimoelgrande","sanjeronimoocotitla","sanjeronimopurenchecuaro","sanjeronimosilacayoapilla","sanjeronimososola","sanjeronimotaviche","sanjeronimotecoatl","sanjeronimotlacochahuaya","sanjeronimototoltepec","sanjeronimotulija","sanjeronimoxayacatlan","sanjeronimoyahuiche","sanjeronimozacualpan","sanjoaquin","sanjoaquincoapango","sanjoaquindelmonte","sanjoaquinhills","sanjoaquinzorrillos","sanjorgenuchita","sanjorgepueblonuevo","sanjorgetezoquipan","sanjose","sanjoseacateno","sanjoseatlan","sanjoseatoyatenco","sanjoseayuquila","sanjoseaztatla","sanjosebarbabosa","sanjoseboqui","sanjoseboxay","sanjosebuenavista","sanjosebuenavistaelgrande","sanjosecarpinteros","sanjosecasascaidas","sanjosechacalapa","sanjosechalmita","sanjosechapayal","sanjosechiapa","sanjosechiltepec","sanjosecomalco","sanjosecorralblanco","sanjosecuamantzingo","sanjosecuaro","sanjosecuyachapa","sanjosedeabajo","sanjosedeaguaazul","sanjosedeaura","sanjosedeayala","sanjosedebacum","sanjosedebernalejoelguayabo","sanjosedecastellanos","sanjosedecervera","sanjosededuranlostroncoso","sanjosedegracia","sanjosedeguanajuato","sanjosedeguaymas","sanjosedelaera","sanjosedelalaja","sanjosedelamontana","sanjosedelapaz","sanjosedelasflores","sanjosedelaspilas","sanjosedelcabo","sanjosedelcalicheelcaliche","sanjosedelcastillo","sanjosedelcerritodecamargo","sanjosedeljaguey","sanjosedellanos","sanjosedelosolvera","sanjosedelosreynoso","sanjosedelourdes","sanjosedelpotrero","sanjosedelprogreso","sanjosedelpuente","sanjosedelrinconcentro","sanjosedelrodeo","sanjosedelsitio","sanjosedeltapanco","sanjosedeltorreon","sanjosedeltunal","sanjosedelvalle","sanjosedemendoza","sanjosederaices","sanjosedetapia","sanjosedevinedo","sanjosedezaragoza","sanjoseelalto","sanjoseelcuartel","sanjoseelllanito","sanjoseelnuevo","sanjoseelsaladilloelsaladillo","sanjoseelvidrio","sanjoseestanciagrande","sanjoseguadalupeotzacatipan","sanjosehuipana","sanjoseindependencia","sanjoseitho","sanjoseiturbide","sanjoseixtapabarrioviejo","sanjoselachiguiri","sanjoselagarzona","sanjoselahacienda","sanjoselaschicharras","sanjoselaslomas","sanjoselaspalmas","sanjosemanzanitos","sanjosemezapaseccioni","sanjosemontechiquito","sanjoseneria","sanjoseocotillos","sanjoseozumba","sanjosepathe","sanjosepiedrasnegras","sanjosepoliutla","sanjoseriomanzo","sanjosesolis","sanjosesuchil","sanjoseteacalco","sanjosetejamanil","sanjosetemascatio","sanjosetenango","sanjosetenejapa","sanjoseteneriateneria","sanjosetepeyahualco","sanjosetepuzas","sanjosetetel","sanjosetilapa","sanjosetlacotitlan","sanjosetlacuitlapan","sanjosetoxi","sanjosetzal","sanjoseviborillas","sanjosevilladeallende","sanjosevillarreal","sanjosevistahermosa","sanjosexicohtencatl","sanjoseyashitinin","sanjoseyocnajab","sanjuan","sanjuanachichilco","sanjuanachiutla","sanjuanahuehueco","sanjuanahuehueyo","sanjuanamecac","sanjuanatenco","sanjuanatepec","sanjuanatezcapan","sanjuanatzingo","sanjuanatzompa","sanjuanbautista","sanjuanbautistacacalote","sanjuanbautistajayacatlan","sanjuanbautistalaraya","sanjuanbautistalodesoto","sanjuancabezadelrio","sanjuancacahuatepec","sanjuancancuc","sanjuancapistrano","sanjuanchilateca","sanjuancoajomulco","sanjuancoatzospam","sanjuancolon","sanjuancolorado","sanjuancosala","sanjuancoteejido","sanjuancotzocon","sanjuancoxtocan","sanjuancuauhtemoc","sanjuancuautla","sanjuandaxthi","sanjuandeabajo","sanjuandediosnaranjasdedios","sanjuandeguadalupe","sanjuandelashuertas","sanjuandelasmanzanas","sanjuandelavaqueria","sanjuandelavega","sanjuandelestado","sanjuandelllanito","sanjuandelosarcos","sanjuandeloscues","sanjuandelosjarros","sanjuandeloslagos","sanjuandelosplatanos","sanjuandelrio","sanjuandeotates","sanjuandesabinas","sanjuandevina","sanjuandiuxi","sanjuanepatlan","sanjuanevangelista","sanjuangrande","sanjuanguelavia","sanjuanguichicovi","sanjuanhuactzinco","sanjuanhueyapan","sanjuanhuiluco","sanjuanicosectoruno","sanjuanihualtepec","sanjuanito","sanjuanitodeescobedo","sanjuanitoitzicuaro","sanjuanixcaquixtla","sanjuanixtayopan","sanjuanjalpacentro","sanjuanjaltepec","sanjuanjaripeo","sanjuanjicayan","sanjuanjuquila","sanjuanjuquilavijanos","sanjuanlachao","sanjuanlachigalla","sanjuanlagunas","sanjuanlaisla","sanjuanmazatlan","sanjuanmetaltepec","sanjuanmixtepec","sanjuannumi","sanjuanozolotepec","sanjuanpancoac","sanjuanpandearriba","sanjuanpetlapa","sanjuanpueblonuevo","sanjuanquetzalcoapan","sanjuanquiahue","sanjuanquiotepec","sanjuanraboso","sanjuansautla","sanjuansayultepec","sanjuansecodevalencia","sanjuansolis","sanjuantabaa","sanjuantahitic","sanjuantecomatlan","sanjuantehuixtitlan","sanjuanteitipac","sanjuantejaluca","sanjuantepa","sanjuantepecoculco","sanjuantepulco","sanjuantetla","sanjuantexcalpan","sanjuantezongo","sanjuantilapa","sanjuantilcuautla","sanjuantlacotompatlacotompa","sanjuantomasquilloherradura","sanjuantotolapan","sanjuantotolcintla","sanjuantuxco","sanjuantuxtepec","sanjuanvolador","sanjuanxiutetelco","sanjuanxochiaca","sanjuanxoconusco","sanjuanyaee","sanjuanyatzona","sanjuanyautepec","sanjuanysanpedrotezompa","sanjuanzapotitlan","sanjuanzitlaltepec","sanjulian","sanjulio","sanleandro","sanleon","sanleonciojamaya","sanlorenzo","sanlorenzoachiotepec","sanlorenzoacopilco","sanlorenzoalbarradas","sanlorenzoaxocomanitla","sanlorenzocacaotepec","sanlorenzochiautzingo","sanlorenzocuauhtenco","sanlorenzocuaunecuiltitla","sanlorenzohuehuetitlan","sanlorenzoitzicuaro","sanlorenzojoyaderodriguez","sanlorenzomalacota","sanlorenzonenamicoyan","sanlorenzooyamel","sanlorenzoquerendaro","sanlorenzosayula","sanlorenzosoltepec","sanlorenzotenochtitlan","sanlorenzotlacotepec","sanlorenzotlacoyucan","sanlorenzotlalmimilolpan","sanlorenzotlaxipehuala","sanlorenzotoxico","sanlorenzovistahermosa","sanlorenzoxaltelulco","sanlucas","sanlucasamalinalco","sanlucasatzala","sanlucascamotlan","sanlucasdelpulque","sanlucaselgrande","sanlucaselviejo","sanlucasevangelista","sanlucashuitzilhuacan","sanlucasocotepec","sanlucasojitlan","sanlucaspio","sanlucasquiavini","sanlucastecopilco","sanlucastexcaltitlan","sanlucastlacochcalco","sanlucastotolmaloya","sanlucaszoquiapam","sanluis","sanluisacatlan","sanluisajajalpan","sanluisamatlan","sanluisanahuactoriles","sanluisapizaquito","sanluisayucan","sanluisboro","sanluiscoyotzingo","sanluisdeaguacaliente","sanluisdelaloma","sanluisdelapaz","sanluisdelcordero","sanluisdeletras","sanluisdelozada","sanluisobispo","sanluispotosi","sanluisriocolorado","sanluissanpedro","sanluissoyatlan","sanluistaxhimay","sanluistecuhautitlan","sanluistehuiloyocan","sanluqueno","sanmanuel","sanmarcialozolotepec","sanmarcos","sanmarcosarteaga","sanmarcosatesquilapan","sanmarcoscontla","sanmarcosdelacruz","sanmarcosdelaloma","sanmarcosdeleon","sanmarcoseloxochitlan","sanmarcosguaquilpan","sanmarcoshuixtoco","sanmarcosnepantla","sanmarcostecomaxusco","sanmarcostlacoyalco","sanmarcostlazalpan","sanmarcosyachihuacaltepec","sanmarcoszacatepec","sanmarino","sanmartin","sanmartinahuatepec","sanmartinazcatepec","sanmartincachihuapan","sanmartincaltenco","sanmartinchalchicuautla","sanmartincoapaxtongo","sanmartincuautlalpan","sanmartindebolanos","sanmartindelaspiramides","sanmartindeloscanseco","sanmartindezula","sanmartinejido","sanmartinesperilla","sanmartinflorida","sanmartinhidalgo","sanmartinitunyoso","sanmartinlachila","sanmartinmazateopan","sanmartinojodeagua","sanmartinpachiviapachivia","sanmartintexmelucandelabastida","sanmartintilcajete","sanmartintlamapa","sanmartintlapala","sanmartintoltepec","sanmartintotolan","sanmartintuchicuitlapilco","sanmateo","sanmateoalmomoloha","sanmateoatarasquillo","sanmateoatenco","sanmateoayecac","sanmateocajonos","sanmateocapulhuac","sanmateocapultitlan","sanmateocoapexco","sanmateodelmar","sanmateoelviejo","sanmateoetlatongo","sanmateohuitzilzingo","sanmateoixtacalco","sanmateoixtlahuaca","sanmateomozoquilpan","sanmateonejapam","sanmateootzacatipan","sanmateoozolco","sanmateoparra","sanmateopinas","sanmateosoltepec","sanmateotecalco","sanmateotexcalyacac","sanmateotlalchichilpan","sanmateoxoloc","sanmateoyoloxochitlan","sanmatiasatzala","sanmatiascuijingo","sanmatiastepetomatitlan","sanmatiastlalancaleca","sanmelchorbetaza","sanmiguel","sanmiguelabejones","sanmiguelachiutla","sanmiguelaguabendita","sanmiguelaguacomulican","sanmiguelajusco","sanmiguelalmaya","sanmiguelalmoloyan","sanmiguelaloapam","sanmiguelamazcala","sanmiguelameyalco","sanmiguelanalco","sanmiguelatepoxco","sanmiguelatlamajac","sanmiguelatlapulco","sanmiguelaxoxuca","sanmiguelbalderas","sanmiguelcanoa","sanmiguelcerezoelcerezo","sanmiguelchimalapa","sanmiguelcoatlan","sanmiguelcoatlinchan","sanmiguelcontla","sanmiguelcuyutlan","sanmigueldeallende","sanmigueldecruces","sanmigueldehorcasitas","sanmigueldelapaz","sanmigueldelarenal","sanmigueldelaspalmas","sanmigueldelavictoria","sanmigueldelcentro","sanmigueldelmilagro","sanmigueldelprogreso","sanmigueldelpuerto","sanmigueldelvalle","sanmiguelejutla","sanmiguelelalto","sanmiguelelgrande","sanmiguelelgrandevillajuarez","sanmiguelemenguaro","sanmiguelenyege","sanmiguelepejan","sanmiguelespejo","sanmiguelfigueroa","sanmiguelhila","sanmiguelhuautla","sanmiguelito","sanmiguelixitlan","sanmiguelixtapan","sanmigueljaltocan","sanmiguelladeras","sanmiguellasardina","sanmiguelmecatepec","sanmiguelmimlapan","sanmiguelmixtepec","sanmiguelmonteverde","sanmiguelocotenco","sanmigueloctopan","sanmigueloxtotilpan","sanmiguelpanixtlahuaca","sanmiguelpapaxtla","sanmiguelperas","sanmiguelquetzaltepec","sanmiguelsuchixtepec","sanmigueltecomatlan","sanmigueltecpan","sanmigueltecuiciapan","sanmigueltecuitlapa","sanmigueltenango","sanmigueltenextatiloyan","sanmigueltenochtitlan","sanmigueltetepelcingo","sanmigueltianguistenco","sanmigueltianguizolco","sanmigueltilquiapam","sanmigueltlacamama","sanmigueltlacotepec","sanmigueltlaixpan","sanmigueltlalpoalan","sanmigueltlamahuco","sanmigueltopilejo","sanmigueltotocuitlapilco","sanmigueltotolapan","sanmigueltotoltepec","sanmiguelvindho","sanmiguelxochitecatitla","sanmiguelxoltepec","sanmiguelxoxtla","sanmiguelyuxtepec","sanmiguelzapotitlan","sanmiguelzoapan","sannicolas","sannicolasamealco","sannicolasbuenosaires","sannicolasdelacondesa","sannicolasdelatorre","sannicolasdelcarmen","sannicolasdelosagustinos","sannicolasdelosgarza","sannicolasdelosranchos","sannicolaselchico","sannicolaseloro","sannicolasguadalupe","sannicolasobispo","sannicolasperalta","sannicolasquialana","sannicolassolis","sannicolastecomatlan","sannicolastemascatio","sannicolastlazala","sannicolastolentino","sannicolaszecalacoayan","sannicolaszoyapetlayoca","sanpablito","sanpablo","sanpabloahuatempa","sanpabloanicano","sanpabloatlazalpan","sanpabloatotonilco","sanpabloatzompa","sanpabloautopan","sanpablocoatlan","sanpablocuatrovenados","sanpablodelassalinas","sanpablodelastunas","sanpablodelosgallos","sanpablodelosremedios","sanpabloelgrande","sanpabloetla","sanpabloguila","sanpablohuacano","sanpablohuantepec","sanpablohuitzo","sanpablohuixtepec","sanpabloixayoc","sanpabloixquitlan","sanpablomacuiltianguis","sanpablooztotepec","sanpablopejo","sanpablopixtun","sanpablotecalco","sanpablotejalpa","sanpablovillademitla","sanpasqual","sanpatricio","sanpedro","sanpedroabajo","sanpedroamuzgos","sanpedroapatlaco","sanpedroapostol","sanpedroarriba","sanpedroarriba3raseccion","sanpedroatlapulco","sanpedroatmatla","sanpedroatocpan","sanpedroatoyac","sanpedrobenitojuarez","sanpedrobuenavista","sanpedrocacahuatepec","sanpedrochiautzingo","sanpedrochimay","sanpedrochochula","sanpedrocholula","sanpedrocomitancillo","sanpedrocoxcaltepeccantaros","sanpedrocoyutla","sanpedrocuayuca","sanpedrocuitlapan","sanpedrodeibarra","sanpedrodelacueva","sanpedrodelgallo","sanpedrodelosbanos","sanpedrodelosmetates","sanpedrodelosnaranjos","sanpedrodelossauces","sanpedrodelrincon","sanpedrodelrosal","sanpedrodenxhicentro","sanpedroecatepec","sanpedroelalto","sanpedrogarzagarcia","sanpedroguasave","sanpedrohuamelula","sanpedrohuaquilpan","sanpedrohuilotepec","sanpedrohuitzizilapan","sanpedroitzican","sanpedroitztla","sanpedroixcatlan","sanpedroixtlahuaca","sanpedrojacuaro","sanpedrojicayan","sanpedrojuchaltengo","sanpedrolagunillas","sanpedrolajoya","sanpedrolasplayas","sanpedrolimon","sanpedrolosbanos","sanpedromartir","sanpedromartirquiechapa","sanpedromartiryucuxaco","sanpedromatamoros","sanpedromixtepec","sanpedromunoztla","sanpedronexapa","sanpedronichtalucum","sanpedronuevo","sanpedroocopetatillo","sanpedroocotepec","sanpedroozumacin","sanpedropetlacotla","sanpedropiedragorda","sanpedropochutla","sanpedroquiatoni","sanpedrosochiapam","sanpedrotapanatepec","sanpedrotarimbaro","sanpedrotaviche","sanpedrotechuchulco","sanpedrotejalpa","sanpedrotemamatla","sanpedrotenango","sanpedrotenayac","sanpedrotepetitlan","sanpedrotesistan","sanpedrotetitlan","sanpedrotidaa","sanpedrotlachichilco","sanpedrotlacotepec","sanpedrotlaltizapan","sanpedrotlanixco","sanpedrotlaolantongo","sanpedrotlapacoyan","sanpedrotlaquilpan","sanpedrotopiltepec","sanpedrototolapam","sanpedrototoltepec","sanpedrotulixtlahuaca","sanpedrotultepec","sanpedroxalcaltzinco","sanpedroxalpa","sanpedroxochiteotla","sanpedroyancuitlalpan","sanpedroyolox","sanpedroysanpablotequistepec","sanpedrozacachimalpa","sanpedrozictepec","sanquintin","sanrafael","sanrafaelcaleria","sanrafaelixtapalucan","sanrafaelrioseco","sanrafaeltecario","sanrafaeltenanyecac","sanrafaeltepatlaxco","sanrafaeltlanalapan","sanrafaelzaragoza","sanramon","sanraymundojalpam","sanroque","sanroquedemontes","sanroquedetorres","sans-souci","sansaba","sansalvador","sansalvadoratenco","sansalvadorcuauhtenco","sansalvadorelseco","sansalvadorelverde","sansalvadornaranjillo","sansalvadortizatlalli","sansalvadortorrecillas","sansebastian","sansebastianabasolo","sansebastianalcomunga","sansebastianbuenosaires","sansebastianchimalpa","sansebastiancoatlan","sansebastiandeaparicio","sansebastiandelasbarrancassur","sansebastiandelmonte","sansebastiandeloeste","sansebastiandelsur","sansebastiandesalitre","sansebastianelgrande","sansebastianetla","sansebastianfraccionamiento","sansebastiannicananduta","sansebastianriohondo","sansebastianteitipac","sansebastiantenochtitlan","sansebastianteteles","sansebastiantutla","sansebastianxolalpa","sansimeonxipetzingo","sansimon","sansimonalmolongas","sansimonatzitzintla","sansimondeguerrero","sansimondelalaguna","sansimonelalto","sansimonito","sansimontlatlahuquitepec","sansom-park","sansompark","sanssouci","santa-adelaida","santa-ana","santa-ana-acozautla","santa-ana-ahuehuepan","santa-ana-amatlan","santa-ana-azcapotzaltongo","santa-ana-batha","santa-ana-chapitiro","santa-ana-chiautempan","santa-ana-coapan","santa-ana-coatepec","santa-ana-de-allende","santa-ana-del-pilar","santa-ana-del-valle","santa-ana-hueytlalpan","santa-ana-jilotzingo","santa-ana-la-ladera","santa-ana-maya","santa-ana-mayorazgo","santa-ana-necoxtla","santa-ana-nextlalpan","santa-ana-nichi-ejido","santa-ana-nopalucan","santa-ana-pacueco","santa-ana-tlachiahualpa","santa-ana-tlacotenco","santa-ana-tlapacoyan","santa-ana-tzacuala","santa-ana-xalmimilulco","santa-ana-zegache","santa-ana-zicatecoyan","santa-ana-zirosto","santa-anita","santa-anita-huiloac","santa-anna","santa-apolonia","santa-apolonia-teacalco","santa-barbara","santa-barbara-de-la-cueva","santa-casilda","santa-catalina","santa-catalina-quieri","santa-catarina","santa-catarina-ayometla","santa-catarina-ayotzingo","santa-catarina-cuixtla","santa-catarina-de-tepehuanes","santa-catarina-del-monte","santa-catarina-juquila","santa-catarina-loxicha","santa-catarina-mechoacan","santa-catarina-minas","santa-catarina-otzolotepec","santa-catarina-quiane","santa-catarina-roatina","santa-catarina-tayata","santa-catarina-tlaltempan","santa-catarina-villanueva","santa-catarina-yecahuizotl","santa-cecilia-jalieza","santa-cecilia-tepetitlan","santa-clara","santa-clara-de-juarez","santa-clara-de-valladares","santa-clara-del-cobre","santa-clara-del-tule","santa-clara-huitziltepec","santa-clara-pueblo","santa-clarita","santa-claus","santa-cruz","santa-cruz-acapa","santa-cruz-acatepec","santa-cruz-ajajalpan","santa-cruz-amilpas","santa-cruz-aquiahuac","santa-cruz-atizapan","santa-cruz-ayotuxco","santa-cruz-bombatevi","santa-cruz-cuauhtenco","santa-cruz-cuautomatitla","santa-cruz-de-barcenas","santa-cruz-de-bravo","santa-cruz-de-juarez","santa-cruz-de-la-soledad","santa-cruz-de-las-flores","santa-cruz-del-astillero","santa-cruz-del-monte","santa-cruz-del-valle","santa-cruz-el-grande","santa-cruz-el-porvenir","santa-cruz-escandon","santa-cruz-ex-hacienda","santa-cruz-huitziltepec","santa-cruz-huitzizilapan","santa-cruz-lachixolana","santa-cruz-lujan","santa-cruz-mextepec","santa-cruz-mixtepec","santa-cruz-nundaco","santa-cruz-otlatla","santa-cruz-ozolotepec","santa-cruz-papalutla","santa-cruz-pocitos","santa-cruz-pueblo","santa-cruz-pueblo-nuevo","santa-cruz-quilehtla","santa-cruz-tacache-de-mina","santa-cruz-tayata","santa-cruz-tetela","santa-cruz-texmalaquilla","santa-cruz-tlaxcala","santa-cruz-xaltetela","santa-cruz-xitla","santa-cruz-xoxocotlan","santa-cruz-yucucani","santa-elena","santa-elena-paliseca","santa-fe","santa-fe-de-la-purisima","santa-fe-springs","santa-fe-tepetlapa","santa-fe-y-la-mar","santa-gertrudis","santa-gertrudis-miramar","santa-ines-del-monte","santa-ines-varela-la-luz","santa-ines-yatzeche","santa-isabel","santa-isabel-chalma","santa-isabel-cholula","santa-isabel-fraccionamiento","santa-isabel-ixtapan","santa-isabel-xiloxoxtla","santa-juana","santa-juana-centro","santa-juana-primera-seccion","santa-justina-ecatepec","santa-lucia","santa-lucia-cosamaloapan","santa-lucia-ocotlan","santa-lucia-potrerillo","santa-lucia-teotepec","santa-margarita","santa-margarita-huitepec","santa-maria","santa-maria-acatepec","santa-maria-actipac","santa-maria-acu","santa-maria-ajoloapan","santa-maria-amajac","santa-maria-amealco","santa-maria-apaxco","santa-maria-apazco","santa-maria-asuncion","santa-maria-atexcac","santa-maria-atlihuetzian","santa-maria-atzompa","santa-maria-batha","santa-maria-begona","santa-maria-camotlan","santa-maria-canchesda","santa-maria-chachoapam","santa-maria-chicometepec","santa-maria-chilapa-de-diaz","santa-maria-chimalapa","santa-maria-chimalhuacan","santa-maria-citendeje","santa-maria-coatepec","santa-maria-colotepec","santa-maria-cortijo","santa-maria-coyotepec","santa-maria-cuevas","santa-maria-de-enmedio","santa-maria-de-guadalupe","santa-maria-de-guaymas","santa-maria-de-la-paz","santa-maria-de-los-angeles","santa-maria-del-buaraje","santa-maria-del-llano","santa-maria-del-monte","santa-maria-del-oro","santa-maria-del-refugio","santa-maria-del-rio","santa-maria-del-rosario","santa-maria-del-tule","santa-maria-del-valle","santa-maria-ecatepec","santa-maria-endare","santa-maria-guadalupe-tecola","santa-maria-guelace","santa-maria-guenagati","santa-maria-huamelula","santa-maria-huatulco","santa-maria-huazolotitlan","santa-maria-huecatitla","santa-maria-huexoculco","santa-maria-ilucan","santa-maria-ixtiyucan","santa-maria-ixtulco","santa-maria-jacatepec","santa-maria-jajalpa","santa-maria-jalapa-del-marques","santa-maria-jicaltepec","santa-maria-la-alta","santa-maria-la-asuncion","santa-maria-la-calera","santa-maria-lachixio","santa-maria-macua","santa-maria-magdalena","santa-maria-magdalena-cahuacan","santa-maria-malacatepec","santa-maria-mazatla","santa-maria-mixtequilla","santa-maria-nativitas","santa-maria-nduayaco","santa-maria-nenetzintla","santa-maria-nepopualco","santa-maria-palapa","santa-maria-papalo","santa-maria-puxmetacan","santa-maria-quelites","santa-maria-quiegolani","santa-maria-rayon","santa-maria-sola","santa-maria-tatetla","santa-maria-tecuanulco","santa-maria-temaxcalapa","santa-maria-teopoxco","santa-maria-tepantlali","santa-maria-texmelucan","santa-maria-tiltepec","santa-maria-tlalmimilolpan","santa-maria-tonameca","santa-maria-totoltepec","santa-maria-transpontina","santa-maria-urapicho","santa-maria-velato","santa-maria-xadani","santa-maria-xigui","santa-maria-xonacatepec","santa-maria-yavesia","santa-maria-yucuhiti","santa-maria-yucunicoco","santa-maria-zacatepec","santa-maria-zapotitlan","santa-maria-zolotepec","santa-maria-zoquitlan","santa-martha","santa-martha-chichihualtepec","santa-martha-hidalgo","santa-matilde","santa-monica","santa-paula","santa-rita","santa-rita-tlahuapan","santa-rosa","santa-rosa-abata","santa-rosa-beach","santa-rosa-caxtlahuaca","santa-rosa-de-lima","santa-rosa-de-rivas","santa-rosa-el-huizache","santa-rosa-jauregui","santa-rosa-loma-larga","santa-rosa-los-angeles","santa-rosa-santa-barbara","santa-rosa-segundo","santa-rosa-treinta","santa-rosa-xajay","santa-rosalia","santa-susana","santa-teresa","santa-teresita-de-don-diego","santa-ursula","santa-venetia","santa-ynez","santaadelaida","santaana","santaanaacozautla","santaanaahuehuepan","santaanaamatlan","santaanaazcapotzaltongo","santaanabatha","santaanachapitiro","santaanachiautempan","santaanacoapan","santaanacoatepec","santaanadeallende","santaanadeguerreroelcascabel","santaanadelpilar","santaanadelvalle","santaanahueytlalpan","santaanaixtlahuatzingosantaana","santaanajilotzingo","santaanalaladera","santaanamaya","santaanamayorazgo","santaananecoxtla","santaananextlalpan","santaananichiejido","santaananopalucan","santaanapacueco","santaanatlachiahualpa","santaanatlacotenco","santaanatlapacoyan","santaanatzacuala","santaanaxalmimilulco","santaanazegache","santaanazicatecoyan","santaanazirosto","santaanita","santaanitahuiloac","santaanna","santaapolonia","santaapoloniateacalco","santabarbara","santabarbaradelacueva","santacasilda","santacatalina","santacatalinaquieri","santacatarina","santacatarinaayometla","santacatarinaayotzingo","santacatarinacuixtla","santacatarinadelmonte","santacatarinadetepehuanes","santacatarinajuquila","santacatarinaloxicha","santacatarinamechoacan","santacatarinaminas","santacatarinaotzolotepec","santacatarinaquiane","santacatarinaroatina","santacatarinatayata","santacatarinatlaltempan","santacatarinavillanueva","santacatarinayecahuizotl","santaceciliajalieza","santaceciliatepetitlan","santaclara","santaclaradejuarez","santaclaradelcobre","santaclaradeltule","santaclaradevalladares","santaclarahuitziltepec","santaclarapueblo","santaclarita","santaclaus","santacruz","santacruzacapa","santacruzacatepec","santacruzajajalpan","santacruzamilpas","santacruzaquiahuac","santacruzatizapan","santacruzayotuxco","santacruzbombatevi","santacruzcuauhtenco","santacruzcuautomatitla","santacruzdebarcenas","santacruzdebravo","santacruzdejuarez","santacruzdelalomatepetates","santacruzdelasflores","santacruzdelasoledad","santacruzdelastillero","santacruzdelmonte","santacruzdelvalle","santacruzelgrande","santacruzelporvenir","santacruzescandon","santacruzexhacienda","santacruzhuitziltepec","santacruzhuitzizilapan","santacruzlachixolana","santacruzlujan","santacruzmextepec","santacruzmixtepec","santacruznundaco","santacruzotlatla","santacruzozolotepec","santacruzpapalutla","santacruzpocitos","santacruzpueblo","santacruzpueblonuevo","santacruzquilehtla","santacruztacachedemina","santacruztayata","santacruztetela","santacruztexmalaquilla","santacruztlaxcala","santacruzxaltetela","santacruzxitla","santacruzxoxocotlan","santacruzyucucani","santadeo","santaelena","santaelenapaliseca","santafe","santafedelapurisima","santafesprings","santafetepetlapa","santafeylamar","santagertrudis","santagertrudismiramar","santainesdelmonte","santainesvarelalaluz","santainesyatzeche","santaisabel","santaisabelchalma","santaisabelcholula","santaisabelfraccionamiento","santaisabelixtapan","santaisabelxiloxoxtla","santajuana","santajuanacentro","santajuanaprimeraseccion","santajustinaecatepec","santalucia","santaluciacosamaloapan","santaluciaocotlan","santaluciapotrerillo","santaluciateotepec","santamargarita","santamargaritahuitepec","santamaria","santamariaacatepec","santamariaactipac","santamariaacu","santamariaajoloapan","santamariaamajac","santamariaamealco","santamariaapaxco","santamariaapazco","santamariaaranzazusantamaria","santamariaasuncion","santamariaatexcac","santamariaatlihuetzian","santamariaatzompa","santamariabatha","santamariabegona","santamariacamotlan","santamariacanchesda","santamariachachoapam","santamariachicometepec","santamariachilapadediaz","santamariachimalapa","santamariachimalhuacan","santamariacitendeje","santamariacoatepec","santamariacolotepec","santamariacortijo","santamariacoyotepec","santamariacuevas","santamariadeenmedio","santamariadeguadalupe","santamariadeguaymas","santamariadelapaz","santamariadelbuaraje","santamariadelllano","santamariadelmonte","santamariadeloro","santamariadelosangeles","santamariadelrefugio","santamariadelrio","santamariadelrosario","santamariadeltule","santamariadelvalle","santamariaecatepec","santamariaendare","santamariaguadalupetecola","santamariaguelace","santamariaguenagati","santamariahuamelula","santamariahuatulco","santamariahuazolotitlan","santamariahuecatitla","santamariahuexoculco","santamariailucan","santamariaixtiyucan","santamariaixtulco","santamariajacatepec","santamariajajalpa","santamariajalapadelmarques","santamariajicaltepec","santamarialaalta","santamarialaasuncion","santamarialacalera","santamarialachixio","santamariamacua","santamariamagdalena","santamariamagdalenacahuacan","santamariamagdalenaocotitlan","santamariamalacatepec","santamariamazatla","santamariamixtequilla","santamarianativitas","santamarianduayaco","santamarianenetzintla","santamarianepopualco","santamariapalapa","santamariapapalo","santamariapuxmetacan","santamariaquelites","santamariaquiegolani","santamariarayon","santamariasola","santamariatatetla","santamariatecuanulco","santamariatemaxcalapa","santamariateopoxco","santamariatepantlali","santamariatexmelucan","santamariatiltepec","santamariatlalmimilolpan","santamariatonameca","santamariatotoltepec","santamariatranspontina","santamariaurapicho","santamariavelato","santamariaxadani","santamariaxigui","santamariaxonacatepec","santamariayavesia","santamariayucuhiti","santamariayucunicoco","santamariazacatepec","santamariazapotitlan","santamariazolotepec","santamariazoquitlan","santamartha","santamarthachichihualtepec","santamarthahidalgo","santamatilde","santamonica","santana-2da-seccion-b-la-palma","santana2daseccionblapalma","santander-jimenez","santanderjimenez","santanvalley","santapaula","santaquin","santarita","santaritatlahuapan","santarosa","santarosaabata","santarosabeach","santarosacaxtlahuaca","santarosadelima","santarosaderivas","santarosaelhuizache","santarosajauregui","santarosalia","santarosalomalarga","santarosalosangeles","santarosasantabarbara","santarosasegundo","santarosatreinta","santarosaxajay","santasusana","santateresa","santateresitadedondiego","santaursula","santavenetia","santaynez","santee","santiago","santiago-acatlan","santiago-acayutlan","santiago-acozac","santiago-acutzilapan","santiago-alseseca","santiago-amoltepec","santiago-analco","santiago-apostol","santiago-astata","santiago-atzitzihuacan","santiago-ayuquililla","santiago-azajo","santiago-bayacora","santiago-cacaloxtepec","santiago-camotlan","santiago-capitiro","santiago-casandeje","santiago-centro","santiago-chazumba","santiago-chilixtlahuaca","santiago-chimalpa-chimalpa","santiago-choapam","santiago-coachochitlan","santiago-coltzingo","santiago-comaltepec","santiago-cuaula","santiago-cuautenco","santiago-cuautlalpan","santiago-cuixtla","santiago-de-anaya","santiago-de-cuenda","santiago-de-la-pena","santiago-de-pochotitan","santiago-de-queretaro","santiago-del-monte","santiago-el-pinar","santiago-etla","santiago-huajolotitlan","santiago-huauclilla","santiago-huaxolotipac","santiago-huitlapaltepec","santiago-ixcuintepec","santiago-ixcuintla","santiago-ixtaltepec","santiago-ixtayutla","santiago-jaltepec","santiago-jicayan","santiago-jocotepec","santiago-juxtlahuaca","santiago-lachiguiri","santiago-lalopa","santiago-laollaga","santiago-laxopa","santiago-llano-grande","santiago-malacatepec","santiago-mamalhuazuca","santiago-maravatio","santiago-matatlan","santiago-michac","santiago-miltepec","santiago-momoxpan","santiago-nejapilla","santiago-nundiche","santiago-nuyoo","santiago-oxtempan","santiago-oxthoc","santiago-oxtotitlan","santiago-papasquiaro","santiago-pojcol","santiago-puriatzicuaro","santiago-quiavicuzas","santiago-suchilquitongo","santiago-tangamandapio","santiago-tejocotillos","santiago-tenango","santiago-tepatlaxco","santiago-tepeticpac","santiago-tepetitlan","santiago-tepextla","santiago-tepeyahualco","santiago-tepopula","santiago-tetepec","santiago-texcalcingo","santiago-textitlan","santiago-teyahualco","santiago-tezontlale","santiago-tilantongo","santiago-tilapa","santiago-tillo","santiago-tlacochcalco","santiago-tlacotepec","santiago-tlaltepoxco","santiago-tlapacoya","santiago-tlapanaloya","santiago-tlautla","santiago-tolman","santiago-tulantepec","santiago-tuxtla","santiago-undameo","santiago-xanica","santiago-yaitepec","santiago-yancuictlalpan","santiago-yancuitlalpan","santiago-yeche","santiago-yogana","santiago-yolomecatl","santiago-yosondua","santiago-zacualuca","santiago-zoochila","santiagoacatlan","santiagoacayutlan","santiagoacozac","santiagoacutzilapan","santiagoalseseca","santiagoamoltepec","santiagoanalco","santiagoapostol","santiagoastata","santiagoatzitzihuacan","santiagoayuquililla","santiagoazajo","santiagobayacora","santiagocacaloxtepec","santiagocamotlan","santiagocapitiro","santiagocasandeje","santiagocentro","santiagochazumba","santiagochilixtlahuaca","santiagochimalpachimalpa","santiagochoapam","santiagocoachochitlan","santiagocoltzingo","santiagocomaltepec","santiagocuaula","santiagocuautenco","santiagocuautlalpan","santiagocuixtla","santiagodeanaya","santiagodecuenda","santiagodelapena","santiagodelmonte","santiagodepochotitan","santiagodequeretaro","santiagoelpinar","santiagoetla","santiagohuajolotitlan","santiagohuauclilla","santiagohuaxolotipac","santiagohuitlapaltepec","santiagoixcuintepec","santiagoixcuintla","santiagoixtaltepec","santiagoixtayutla","santiagojaltepec","santiagojicayan","santiagojocotepec","santiagojuxtlahuaca","santiagolachiguiri","santiagolalopa","santiagolaollaga","santiagolaxopa","santiagollanogrande","santiagomalacatepec","santiagomamalhuazuca","santiagomaravatio","santiagomatatlan","santiagomexquititlanbarrio4to","santiagomichac","santiagomiltepec","santiagomomoxpan","santiagonejapilla","santiagonundiche","santiagonuyoo","santiagooxtempan","santiagooxthoc","santiagooxtotitlan","santiagopapasquiaro","santiagopojcol","santiagopuriatzicuaro","santiagoquiavicuzas","santiagosuchilquitongo","santiagotangamandapio","santiagotejocotillos","santiagotenango","santiagotepatlaxco","santiagotepeticpac","santiagotepetitlan","santiagotepextla","santiagotepeyahualco","santiagotepopula","santiagotetepec","santiagotexcalcingo","santiagotextitlan","santiagoteyahualco","santiagotezontlale","santiagotianguistencodegaleana","santiagotilantongo","santiagotilapa","santiagotillo","santiagotlacochcalco","santiagotlacotepec","santiagotlaltepoxco","santiagotlapacoya","santiagotlapanaloya","santiagotlautla","santiagotolman","santiagotulantepec","santiagotuxtla","santiagoundameo","santiagoxanica","santiagoyaitepec","santiagoyancuictlalpan","santiagoyancuitlalpan","santiagoyeche","santiagoyogana","santiagoyolomecatl","santiagoyosondua","santiagozacualuca","santiagozoochila","santiaguillo","santiaguito","santiaguito-tlalcilalcalli","santiaguitotlalcilalcalli","santillan","santo-domingo","santo-domingo-armenta","santo-domingo-atoyatempan","santo-domingo-aztacameca","santo-domingo-chihuitan","santo-domingo-de-guzman","santo-domingo-de-las-palmas","santo-domingo-de-morelos","santo-domingo-huehuetlan","santo-domingo-jalieza","santo-domingo-keste","santo-domingo-ocotitlan","santo-domingo-ozolotepec","santo-domingo-petapa","santo-domingo-pueblo","santo-domingo-roayaga","santo-domingo-shomege-shomege","santo-domingo-tehuantepec","santo-domingo-tepuxtepec","santo-domingo-tlatayapam","santo-domingo-tomaltepec","santo-domingo-tonala","santo-domingo-yanhuitlan","santo-domingo-yodohino","santo-domingo-zanatepec","santo-nino-aguanaval","santo-nombre","santo-tomas","santo-tomas-chiconautla","santo-tomas-de-los-platanos","santo-tomas-huatzindeo","santo-tomas-jalieza","santo-tomas-la-concordia","santo-tomas-tamazulapam","santodomingo","santodomingoarmenta","santodomingoatoyatempan","santodomingoaztacameca","santodomingochihuitan","santodomingodeguzman","santodomingodelaspalmas","santodomingodemorelos","santodomingohuehuetlan","santodomingojalieza","santodomingokeste","santodomingoocotitlan","santodomingoozolotepec","santodomingopetapa","santodomingopueblo","santodomingoroayaga","santodomingoshomegeshomege","santodomingotehuantepec","santodomingotepuxtepec","santodomingotlatayapam","santodomingotomaltepec","santodomingotonala","santodomingoyanhuitlan","santodomingoyodohino","santodomingozanatepec","santoninoaguanaval","santonombre","santos-reyes-nopala","santos-reyes-papalo","santos-reyes-tepejillo","santosreyesnopala","santosreyespapalo","santosreyestepejillo","santotomas","santotomaschiconautla","santotomasdelosplatanos","santotomashuatzindeo","santotomasjalieza","santotomaslaconcordia","santotomastamazulapam","sanvicente","sanvicenteboqueron","sanvicentechimalhuacan","sanvicentecoatlan","sanvicentecoyotepec","sanvicentedeflores","sanvicentedejuarez","sanvicenteelalto","sanvicenteferrer","sanvicentelachixio","sanvicentelamesilla","sanvicentenunu","sanvicentepalapa","sanvicentepinas","sanvicentetancuayalab","sanvicentezoyatlan","sanysidro","sao","sap","sapioris","sappington","sapulpa","sar","sarabia","saraland","saranac","saranac-lake","saranaclake","saranap","sarasota","sarasota-springs","sarasotasprings","saratoga","saratoga-springs","saratogasprings","sarcoxie","sardis","sardis-city","sardiscity","sargentolopez2daseccionelchuzo","saric","sarita","sarnia","sartell","sas","sasaltitla","saskatchewan","saskatoon","sat","satanta","satellite-beach","satellitebeach","saticoy","satsuma","sauceda-de-la-borda","saucedadelaborda","saucier","saucillo","saugerties","saugerties-south","saugertiessouth","saugus","sauk-centre","sauk-city","sauk-rapids","sauk-village","saukcentre","saukcity","saukrapids","saukvillage","saukville","sault-ste-marie","saultstemarie","sausalito","sauta","sauz-de-calera","sauzdecalera","sav","savage","savanna","savannah","savin-hill","savinhill","savoy","saw","saw-creek","sawcreek","sawgrass","sawmills","sawtelle","sawyerwood","sax","saxapahaw","saxon","saxonburg","say","saybrook-manor","saybrookmanor","saylorsburg","saylorville","sayre","sayreville","sayreville-junction","sayrevillejunction","sayula","sayula-de-aleman","sayuladealeman","sayulilla","sayulita","sayville","saz","sb","sba","sbac","sbb","sbc","sbdb","sbdg","sbdl","sbdm","sbdp","sbe","sbev","sbg","sbh","sbl","sblg","sbm","sbo","sbpb","sbq","sbs","sbsr","sbt","sbx","sby","sc","sca","scaggsville","scandia","scappoose","scarborough","scarborough-village","scarboroughvillage","scarsdale","scb","scc","sccp","scda","scdb","scdc","scdj","scdl","scdm","scdt","scdv","scdw","sce","sceg","sceh","scenic","scenic-oaks","scenicoaks","scep","scf","sch","schall-circle","schallcircle","schaumburg","schenectady","schererville","schertz","schiller-park","schillerpark","schlusser","schnecksville","schoeneck","schofield","schofield-barracks","schofieldbarracks","schoharie","schoolcraft","schriever","schulenburg","schuyler","schuylerville","schuylkill","schuylkill-haven","schuylkillhaven","schwenksville","sciotodale","scissors","scituate","scj","scl","scln","scm","scn","sco","scobey","scotch-plains","scotchplains","scotchtown","scotia","scotland","scotland-neck","scotlandneck","scott","scott-air-force-base","scott-city","scott-lake","scottairforcebase","scottcity","scottdale","scottlake","scotts-mill","scotts-valley","scottsbluff","scottsboro","scottsburg","scottsdale","scottsmill","scottsvalley","scottsville","scottville","scp","scpn","scq","scr","scranton","scs","sct","scv","scw","scx","scy","scz","sd","sda","sdc","sdce","sdd","sdda","sddc","sddg","sddm","sde","sdeo","sdg","sdgs","sdh","sdj","sdk","sdl","sdlb","sdlh","sdlp","sdm","sdo","sdp","sdq","sdr","sds","sdsr","sdss","sdt","sdv","sdx","sdy","sdz","se","sea","sea-breeze","sea-bright","sea-cliff","sea-girt","sea-isle-city","sea-ranch","seabeck","seabreeze","seabright","seabrook","seabrook-farms","seabrook-island","seabrookfarms","seabrookisland","seacliff","seadrift","seaford","seaforth","seagate","seagirt","seagoville","seagraves","seaislecity","seal-beach","sealbeach","sealy","searanch","searcy","searingtown","searles-valley","searlesvalley","searsmont","seaside","seaside-heights","seaside-park","seasideheights","seasidepark","seat-pleasant","seatac","seatpleasant","seattle","sebastian","sebastian-lerdo-de-tejada","sebastianlerdodetejada","sebastopol","sebewaing","sebree","sebring","sec","secaucus","seccion-23","seccion-del-cerrito","seccion23","secciondelcerrito","sechelt","sector-h-tres","sectorhtres","security-widefield","securitywidefield","seda","sedalia","sedan","sedb","sedco-hills","sedcohills","sedgwick","sedona","sedro-woolley","sedrowoolley","seekonk","seeley","seeley-lake","seeleylake","seelyville","seffner","seguin","seis-de-enero","seis-de-octubre","seis-de-octubre-santo-nino","seisdeenero","seisdeoctubre","seisdeoctubresantonino","selah","selby","selby-on-the-bay","selbyonthebay","selbyville","selden","selinsgrove","selkirk","sellersburg","sellersville","sells","selma","selmer","selmont-west-selmont","selmontwestselmont","sem","seminole","seminole-manor","seminolemanor","semmes","senath","senatobia","seneca","seneca-falls","seneca-knolls","senecafalls","senecaknolls","senguio","senneterre","senoia","senor","senor-del-pozo","senordelpozo","sentispac","sep","sept-iles","septiles","sequim","serenada","sergeant-bluff","sergeantbluff","sergio-butron-casas","sergio-villasenor","sergiobutroncasas","sergiovillasenor","serrano","ses","sesser","set","setauket-east-setauket","setauketeastsetauket","seth-ward","sethward","seven-corners","seven-fields","seven-hills","seven-lakes","seven-oaks","seven-points","seven-trees","sevencorners","sevenfields","sevenhills","sevenlakes","sevenoaks","sevenpoints","seventrees","severance","severn","severna-park","severnapark","sevierville","seville","sevina","sewalls-point","sewallspoint","sewanee","seward","sewaren","sewell","sewickley","sexsmith","seybaplaya","seye","seymour","sf","sfa","sfc","sfda","sfdb","sfdc","sfdd","sfdg","sfdh","sfdj","sfdm","sfdp","sfdr","sfdt","sfdv","sfec","sfem","sfg","sfh","sfi","sfj","sfk","sfl","sfm","sfmc","sfn","sfo","sfp","sfpn","sfq","sfr","sfs","sft","sfu","sfx","sfz","sg","sga","sgc","sgdg","sgf","sgi","sgl","sglp","sgm","sgr","sgt","sgz","sh","shackelford","shackle-island","shackleisland","shadeland","shadow-hills","shadowhills","shady-cove","shady-hills","shady-hollow","shady-shores","shady-side","shady-spring","shadycove","shadyhills","shadyhollow","shadyshores","shadyside","shadyspring","shafer","shafter","shaker-heights","shakerheights","shakopee","shallotte","shallowater","shamokin","shamokin-dam","shamokindam","shamrock","shandon","shannon","shannon-hills","shannondale","shannonhills","shanor-northvue","shanornorthvue","shapleigh","shark-river-hills","sharkriverhills","sharon","sharon-hill","sharon-springs","sharonhill","sharonsprings","sharonville","sharpes","sharpsburg","sharpsville","shasta","shasta-lake","shastalake","shattuck","shaunavon","shavano-park","shavanopark","shavertown","shaw","shaw-heights","shawano","shawheights","shawinigan","shawmont","shawnee","shawnee-hills","shawnee-land","shawneehills","shawneeland","shawneetown","shawsville","shawville","shc","sheboygan","sheboygan-falls","sheboyganfalls","shediac","shediac-bridge-shediac-river","shediacbridgeshediacriver","sheepshead-bay","sheepsheadbay","sheffield","sheffield-lake","sheffieldlake","shelbina","shelburn","shelburne","shelburne-falls","shelburnefalls","shelby","shelbyville","sheldon","shell-knob","shell-lake","shell-point","shell-rock","shell-valley","shellbrook","shelley","shellknob","shelllake","shellpoint","shellrock","shellvalley","shelter-island","shelter-island-heights","shelterisland","shelterislandheights","shelton","shenandoah","shenandoah-farms","shenandoah-heights","shenandoahfarms","shenandoahheights","shenorock","shepherd","shepherdstown","shepherdsville","sherborn","sherbrooke","sherburn","sherburne","sheridan","sherman","sherman-oaks","shermanoaks","sherrelwood","sherrill","sherrills-ford","sherrillsford","sherwood","sherwood-manor","sherwood-park","sherwood-shores","sherwoodmanor","sherwoodpark","sherwoodshores","shields","shillington","shilo","shiloh","shiner","shingle-springs","shinglehouse","shinglesprings","shingletown","shinnecock-hills","shinnecockhills","shinnston","ship-bottom","shipbottom","shippagan","shippensburg","shiprock","shiremanstown","shirley","shively","shoal-creek","shoalcreek","shoals","shoctic","shoemakersville","shokan","shoreacres","shoreline","shoreview","shorewood","shorewood-forest","shorewood-hills","shorewood-tower-hills-harbert","shorewoodforest","shorewoodhills","shorewoodtowerhillsharbert","short-hills","short-pump","shorthills","shortpump","shortsville","shoshone","show-low","showlow","shreve","shreveport","shrewsbury","shrub-oak","shruboak","sht","shullsburg","shuniah-township","shuniahtownship","shutesbury","si","sia","siah","sib","sibaca","sibanilja-pocolum","sibaniljapocolum","sibley","sibs","sic","sicamous","sicg","sicklerville","sidg","sidh","sidl","sidm","sidney","sieb","sienna-plantation","siennaplantation","sier","sierra","sierra-blanca","sierra-de-agua","sierra-de-guadalupe","sierra-madre","sierra-mojada","sierra-papacal","sierra-view","sierra-vista","sierra-vista-southeast","sierrablanca","sierradeagua","sierradeguadalupe","sierramadre","sierramojada","sierrapapacal","sierraview","sierravista","sierravistasoutheast","siesta-acres","siesta-key","siesta-shores","siestaacres","siestakey","siestashores","sif","signal-hill","signal-mountain","signalhill","signalmountain","sigourney","sih","sihochac","sihuapan","sii","sikeston","silacayoapam","silao","silb","siler-city","silercity","siletz","siloam-springs","siloamsprings","silsbee","silt","siltepec","silva","silver-bay","silver-berry","silver-city","silver-creek","silver-firs","silver-grove","silver-hill","silver-lake","silver-lakes","silver-ridge","silver-spring","silver-springs","silver-springs-shores","silver-summit","silverbay","silverberry","silvercity","silvercreek","silverdale","silverfirs","silvergrove","silverhill","silverlake","silverlakes","silverridge","silverspring","silversprings","silverspringsshores","silversummit","silverthorne","silverton","silvis","sim","simcoe","simeprodeso-colectivo-nuevo","simeprodesocolectivonuevo","simi-valley","simivalley","simmesport","simojovel-de-allende","simojoveldeallende","simon-sarlat","simonsarlat","simonton-lake","simontonlake","simpson","simpsonville","simsbury-center","simsburycenter","sin","sinahua","sinahuiza","sinaloa","sinaloa-de-leyva","sinaloadeleyva","sinanche","sinapan","sindihui","singac","singuilucan","sinking-spring","sinkingspring","sinton","sioux-center","sioux-city","sioux-falls","sioux-lookout","siouxcenter","siouxcity","siouxfalls","siouxlookout","sip","siqueros","sir","siren","sirm","sisal","sisco-heights","siscoheights","siskiyou","sisoguichi","sisseton","sissonville","sisters","sistersville","sit","sitala","sitilpech","sitio-de-xitlapehua","sitio-ejido","sitiodexitlapehua","sitioejido","sitka","sitpach","siva","sivh","siviral","six","six-mile","six-shooter-canyon","sixmile","sixmile-run","sixmilerun","sixshootercanyon","sixteen-mile-stand","sixteenmilestand","siy","sj","sja","sjb","sjbc","sjbj","sjbv","sjc","sjcb","sjcc","sjce","sjcv","sjd","sjda","sjdb","sjdc","sjde","sjdg","sjdj","sjdl","sjdm","sjdo","sjdp","sjdr","sjds","sjdt","sjdv","sjdz","sje","sjea","sjec","sjeg","sjel","sjen","sjev","sjg","sjgo","sjh","sji","sjj","sjjc","sjjv","sjl","sjlc","sjlg","sjlh","sjli","sjll","sjlm","sjlp","sjm","sjmc","sjn","sjo","sjp","sjpj","sjpn","sjps","sjq","sjr","sjrm","sjs","sjsr","sjsu","sjt","sjth","sjtt","sjv","sjvh","sjx","sjy","sjz","sk","skagit","skagway","skaneateles","skatepark","skiatook","skidaway-island","skidawayisland","skidway-lake","skidwaylake","skippack","skippers-corner","skipperscorner","skokie","skowhegan","sky-lake","sky-valley","skylake","skyline-acres","skyline-ganipa","skyline-view","skylineacres","skylineganipa","skylineview","skyvalley","sl","sla","slat","slater","slater-marietta","slatermarietta","slatington","slaton","slaughterville","slave-lake","slavelake","slayton","slb","slc","sld","sldb","sldc","sldl","sldp","sldt","sle","sleepy-eye","sleepy-hollow","sleepyeye","sleepyhollow","sleg","slev","slg","slh","sli","slidell","slinger","slippery-rock","slipperyrock","slj","sll","slm","sln","slo","sloan","sloatsburg","slocomb","slp","slq","slrc","sls","slsp","slt","slvh","slx","slz","sm","sma","smab","smackover","smb","smb4","smc","smda","smdb","smdc","smde","smdg","smdh","smdl","smdm","smdo","smdp","smdr","smds","smdt","smdv","smdz","sme","smea","smeg","smethport","smev","smf","smg","smgt","smh","smi","smith","smith-center","smith-mills","smith-valley","smithcenter","smithers","smithfield","smithland","smithmills","smiths-falls","smiths-station","smithsburg","smithsfalls","smithsstation","smithton","smithtown","smithvalley","smithville","smithville-sanders","smithvillesanders","smj","sml","smla","smlc","smls","smm","smmc","smmo","smn","smo","smoke-rise","smokerise","smokey-point","smokeypoint","smoky-lake","smokylake","smooth-rock-falls","smoothrockfalls","smp","smpp","smq","smr","sms","smt","smtt","smu","smv","smx","smy","smyrna","smz","sn","sna","snba","sndc","sneads","sneads-ferry","sneadsferry","snec","sneedville","snellville","sneo","sng","sno","snohomish","snoqualmie","snow-hill","snowflake","snowhill","snowmass-village","snowmassvillage","snp","snq","sns","snt","snyder","snyderville","snz","so","soap-lake","soaplake","sob","socastee","socavon-el-carmen","socavonelcarmen","sochiapa","social-circle","socialcircle","society-hill","societyhill","socoltenango","soconusco","socorro","socorromissionnumber1colonia","soda-bay","soda-springs","sodabay","sodasprings","soddy-daisy","soddydaisy","sodus","solalpan-1ra-seccion","solalpan1raseccion","solana-beach","solanabeach","solano","soldotna","soledad","soledad-atzompa","soledad-de-doblado","soledad-de-graciano-sanchez","soledad-morelos","soledad-nueva","soledad-salinas","soledadatzompa","soledaddedoblado","soledaddegracianosanchez","soledadmorelos","soledadnueva","soledadsalinas","solima","solomon","solomons","solon","solosuchiapa","soltepec","solvang","solvay","sombrerete","somerdale","somers","somers-point","somerset","somerspoint","somersworth","somerton","somerville","somonauk","son","sonoma","sonora","sonoyta","sontecomapan","sooke","sop","soperton","sophia","soquel","sorel-tracy","soreltracy","sorrento","sorrento-valley","sorrentovalley","sosa","sotb","soteapan","sotelo","soto-la-marina","sotolamarina","sotuta","souderton","soulsbyville","sound-beach","soundbeach","sour-lake","souris","sourlake","south-alamo","south-amboy","south-amherst","south-apopka","south-ashburnham","south-barre","south-barrington","south-bay","south-beach","south-bel-air","south-belmar","south-beloit","south-bend","south-berwick","south-bloomfield","south-blooming-grove","south-boston","south-bound-brook","south-bradenton","south-brooksville","south-browning","south-burlington","south-canal","south-carolina","south-carthage","south-charleston","south-chicago","south-chicago-heights","south-cleveland","south-coatesville","south-congaree","south-connellsville","south-corning","south-coventry","south-dakota","south-daytona","south-deerfield","south-dennis","south-dos-palos","south-duxbury","south-el-monte","south-elgin","south-eliot","south-euclid","south-fallsburg","south-farmingdale","south-floral-park","south-fulton","south-gastonia","south-gate","south-gate-ridge","south-glens-falls","south-greeley","south-greensburg","south-gull-lake","south-hadley","south-haven","south-hempstead","south-henderson","south-highpoint","south-hill","south-holland","south-hooksett","south-houston","south-huntington","south-huron","south-hutchinson","south-jacksonville","south-jordan","south-jordan-heights","south-kensington","south-kingstown","south-lake-tahoe","south-lancaster","south-laurel","south-lawndale","south-lebanon","south-lockport","south-lyon","south-miami","south-miami-heights","south-milwaukee","south-monroe","south-nyack","south-ogden","south-old-bridge","south-orange","south-oroville","south-ozone-park","south-padre-island","south-palm-beach","south-paris","south-park","south-park-township","south-parkdale","south-pasadena","south-patrick-shores","south-peabody","south-pekin","south-pender-harbour","south-pittsburg","south-plainfield","south-point","south-portland","south-portland-gardens","south-pottstown","south-riding","south-river","south-riverdale","south-rockwood","south-rosemary","south-roxana","south-russell","south-saint-paul","south-salt-lake","south-san-francisco","south-san-gabriel","south-san-jose-hills","south-sanford","south-sarasota","south-shore","south-sioux-city","south-suffolk","south-sumter","south-taft","south-temple","south-thomaston","south-toms-river","south-tucson","south-uniontown","south-vacherie","south-valley","south-valley-stream","south-venice","south-vineland","south-waverly","south-weber","south-wenatchee","south-whitley","south-whittier","south-willard","south-williamsport","south-windham","south-windsor","south-woodstock","south-yarmouth","south-yuba-city","south-zanesville","southalamo","southamboy","southamherst","southampton","southapopka","southashburnham","southaven","southbarre","southbarrington","southbay","southbeach","southbelair","southbelmar","southbeloit","southbend","southberwick","southbloomfield","southbloominggrove","southborough","southboston","southboundbrook","southbradenton","southbridge","southbrooksville","southbrowning","southburlington","southbury","southcanal","southcarolina","southcarthage","southcharleston","southchase","southchicago","southchicagoheights","southcleveland","southcoatesville","southcongaree","southconnellsville","southcorning","southcoventry","southdakota","southdaytona","southdeerfield","southdennis","southdospalos","southduxbury","southeast-arcadia","southeastarcadia","southelgin","southeliot","southelmonte","southern-gateway","southern-pines","southern-shops","southern-shores","southern-view","southerngateway","southernpines","southernshops","southernshores","southernview","southeuclid","southfallsburg","southfarmingdale","southfield","southfloralpark","southfulton","southgastonia","southgate","southgateridge","southglenn","southglensfalls","southgreeley","southgreensburg","southgulllake","southhadley","southhaven","southhempstead","southhenderson","southhighpoint","southhill","southholland","southhooksett","southhouston","southhuntington","southhuron","southhutchinson","southjacksonville","southjordan","southjordanheights","southkensington","southkingstown","southlake","southlaketahoe","southlancaster","southlaurel","southlawndale","southlebanon","southlockport","southlyon","southmayd","southmiami","southmiamiheights","southmilwaukee","southmonroe","southmont","southnyack","southogden","southold","southoldbridge","southorange","southoroville","southozonepark","southpadreisland","southpalmbeach","southparis","southpark","southparkdale","southparktownship","southpasadena","southpatrickshores","southpeabody","southpekin","southpenderharbour","southpittsburg","southplainfield","southpoint","southport","southportland","southportlandgardens","southpottstown","southriding","southriver","southriverdale","southrockwood","southrosemary","southroxana","southrussell","southsaintpaul","southsaltlake","southsanford","southsanfrancisco","southsangabriel","southsanjosehills","southsarasota","southshore","southside","southside-place","southsideplace","southsiouxcity","southsuffolk","southsumter","southtaft","southtemple","souththomaston","southtomsriver","southtucson","southuniontown","southvacherie","southvalley","southvalleystream","southvenice","southvineland","southwaverly","southweber","southwenatchee","southwest-greensburg","southwest-ranches","southwest-schuylkill","southwestgreensburg","southwestranches","southwestschuylkill","southwhitley","southwhittier","southwick","southwillard","southwilliamsport","southwindham","southwindsor","southwood-acres","southwoodacres","southwoodstock","southworth","southyarmouth","southyubacity","southzanesville","soyalo","soyaltepec","soyaniquilpan","soyata","soyataco","soyatitan","soyatlan-de-afuera","soyatlan-del-oro","soyatlandeafuera","soyatlandeloro","soyopa","sp","spa","spackenkill","spanaway","spangler","spanish-fork","spanish-fort","spanish-lake","spanish-springs","spanishfork","spanishfort","spanishlake","spanishsprings","sparkill","sparks","sparrow-bush","sparrowbush","sparta","spartanburg","sparwood","spb","spbj","spc","spcc","spcv","spd","spdc","spdg","spdi","spdr","spe","spea","spearfish","spearman","speedway","speers","speg","spencer","spencerport","spencerville","sperry","spg","spgg","sph","spi","spicer","spindale","spinnerstown","spirit-lake","spirit-river","spiritlake","spiritriver","spiro","spj","spl","splb","splendora","splj","splp","spm","spmq","spmy","spn","spo","spokane","spokane-valley","spokanevalley","spooner","spotswood","spotsylvania","spotsylvania-courthouse","spotsylvaniacourthouse","spp","sppg","spq","spreckelsville","spring","spring-arbor","spring-city","spring-creek","spring-glen","spring-green","spring-grove","spring-hill","spring-hope","spring-house","spring-lake","spring-lake-heights","spring-lake-park","spring-mount","spring-park","spring-ridge","spring-valley","spring-valley-lake","springarbor","springboro","springbrook","springcity","springcreek","springdale","springerville","springfield","springfield-gardens","springfieldgardens","springglen","springgreen","springgrove","springhill","springhope","springhouse","springlake","springlakeheights","springlakepark","springmount","springpark","springridge","springs","springtown","springvale","springvalley","springvalleylake","springview","springville","spruce-grove","spruce-hill","spruce-pine","sprucegrove","sprucehill","sprucepine","spry","sps","spt","spur","spurgeon","spuyten-duyvil","spuytenduyvil","spv","spx","spy","spz","sq","squamish","sr","sra","srb","src","srdl","srdm","srdr","srdt","sreh","srf","srh","sri","srj","srla","srll","srm","srn","srp","srrs","srs","srsb","srt","srx","srz","ss","ssa","ssba","ssc","ssda","ssdg","ssdm","ssdo","ssds","ssdv","sse","ssea","sseg","sses","ssev","ssf","ssg","ssh","ssi","ssjh","ssl","ssm","ssn","ssp","ssrh","sss","sst","ssx","st","st-adolphe","st-albert","st-andrew-windfields","st-anthony","st-catharines","st-charles","st-george","st-jean-port-joli","st-johns","st-johnsbury","st-louis","st-lucie","st-marys","st-paul","st-petersburg","st-stephen","st-thomas","stacy","stadolphe","stafford","stafford-springs","staffordsprings","stagecoach","stalbert","stallings","stallion-springs","stallionsprings","stambaugh-iron-river","stambaughironriver","stamford","stamps","stanaford","stanardsville","stanberry","standish","standrewwindfields","stanfield","stanford","stanhope","stanislaus","stanley","stanleytown","stansbury-park","stansburypark","stanthony","stanton","stanwood","staples","stapleton","star","star-city","star-valley","star-valley-ranch","starbuck","starcity","starke","starksboro","starkville","starlight-village","starlightvillage","starvalley","starvalleyranch","state-center","state-college","state-line","stateburg","statecenter","statecollege","stateline","staten-island","statenisland","statenville","statesboro","statesville","statham","staunton","stayton","stc","stcatharines","stcharles","stdg","steamboat-springs","steamboatsprings","stearns","stedman","steele","steeles","steeleville","steelton","steelville","steep-falls","steepfalls","steger","steilacoom","steinbach","steinhatchee","steinway","stephens-city","stephenscity","stephenville","stephenville-crossing","stephenvillecrossing","sterling","sterling-city","sterling-heights","sterlingcity","sterlingheights","sterlington","stetson","stettler","steuben","steubenville","stevens-point","stevenson","stevenson-ranch","stevensonranch","stevenspoint","stevensville","stewart-manor","stewartmanor","stewartstown","stewartville","stgeorge","sth","sthh","stickney","stigler","stiles","stillman-valley","stillmanvalley","stillwater","stilwell","stinnett","stirling","stj","stjeanportjoli","stjohns","stjohnsbury","stlc","stlouis","stlucie","stmarys","stn","stock-island","stockbridge","stockdale","stockisland","stockton","stockton-springs","stocktonsprings","stockville","stokesdale","stone-mountain","stone-park","stone-ridge","stoneboro","stonecrest","stonegate","stonegate-queensway","stonegatequeensway","stoneham","stonemountain","stonepark","stoneridge","stoneville","stonewall","stonewood","stoney-point","stoneypoint","stonington","stony-brook","stony-creek-mills","stony-plain","stony-point","stony-prairie","stonybrook","stonycreekmills","stonyplain","stonypoint","stonyprairie","storey","storm-lake","stormlake","stormstown","storrs","story-city","storycity","stottville","stouffville","stoughton","stover","stow","stowe","stowell","stpaul","stpetersburg","str","strafford","strasburg","stratford","stratham-station","strathamstation","strathmore","stratmoor","strawberry","strawberry-mansion","strawberry-point","strawberrymansion","strawberrypoint","streamwood","streator","streetsboro","stromsburg","strong","strongsville","stroud","stroudsburg","strum","struthers","stryker","ststephen","stt","stthomas","stuart","stuarts-draft","stuartsdraft","studio-city","studiocity","sturbridge","sturgeon","sturgeon-bay","sturgeonbay","sturgis","sturtevant","stuttgart","stv","su","suamico","suaqui-grande","suaquigrande","sublette","sublimity","subteniente-lopez","subtenientelopez","suc-tuc","succasunna","suchiapa","suchil","suchilapan-del-rio","suchilapandelrio","suchitlan","sucila","sucopo","suctuc","sudbury","sudden-valley","suddenvalley","sudley","sudzal","suffern","suffield-depot","suffielddepot","suffolk","suffolk-downs-station","suffolkdownsstation","sugar-city","sugar-creek","sugar-grove","sugar-hill","sugar-land","sugarcity","sugarcreek","sugarcreek-police-dept","sugarcreekpolicedept","sugargrove","sugarhill","sugarland","sugarland-run","sugarlandrun","sugarmill-woods","sugarmillwoods","suisun","suitland","suitland-silver-hill","suitlandsilverhill","sulligent","sullivan","sullivan-city","sullivancity","sullivans-island","sullivansisland","sulphur","sulphur-springs","sulphursprings","sultan","sultepec","suma-de-hidalgo","sumadehidalgo","sumas","sumidero","sumiton","summerdale","summerfield","summerland","summerlin-south","summerlinsouth","summerset","summerside","summersville","summerville","summit","summit-hill","summit-park","summit-view","summithill","summitpark","summitview","sumner","sumrall","sumter","sun-city","sun-city-center","sun-city-west","sun-lakes","sun-prairie","sun-valley","sun-village","sunapee","sunbury","suncity","suncitycenter","suncitywest","suncoast-estates","suncoastestates","suncook","sundance","sunderland","sundown","sundre","sunflower","sunlakes","sunland","sunland-park","sunlandpark","sunman","sunny-isles-beach","sunnyislesbeach","sunnyside","sunnyside-tahoe-city","sunnysidetahoecity","sunnyslope","sunnyvale","sunprairie","sunray","sunrise","sunrise-lake","sunrise-manor","sunriselake","sunrisemanor","sunriver","sunset","sunset-beach","sunset-hills","sunset-park","sunsetbeach","sunsethills","sunsetpark","sunshine-ranches","sunshineranches","sunuapa","sunvalley","sunvillage","superior","supreme","suquamish","surf-city","surfcity","surfside","surfside-beach","surfsidebeach","surgoinsville","surprise","surrey","surry","susanville","susitna-north","susitnanorth","suspiro-picacho","suspiropicacho","susquehanna","susquehanna-trails","susquehannatrails","sussex","susticacan","susupuato-de-guerrero","susupuatodeguerrero","sutherland","sutherlin","sutter","sutter-creek","suttercreek","sutton","sutton-alpine","suttonalpine","suwanee","sv","svb","svc","svdf","svdj","svea","svf","svl","svlm","svn","svp","svr","svs","svt","svz","sw","swainsboro","swampscott","swan-hills","swan-river","swanhills","swannanoa","swanquarter","swanriver","swansboro","swansea","swanton","swanville","swanzey","swarthmore","swartz","swartz-creek","swartzcreek","swartzville","swedesboro","sweeny","sweet-home","sweet-springs","sweethome","sweetser","sweetsprings","sweetwater","swepsonville","swift-current","swift-trail-junction","swiftcurrent","swifttrailjunction","swissvale","swoyersville","sws","sx","sy","syc","sycamore","sydenham","sydney","sydney-mines","sydneymines","sykesville","sylacauga","sylmar","sylva","sylvan-beach","sylvan-lake","sylvan-springs","sylvanbeach","sylvania","sylvanlake","sylvansprings","sylvester","syosset","syracuse","sz","t1s","t2s","ta","tab","tabasco","taber","tabor-city","taborcity","tac","tacambaro-de-codallos","tacambarodecodallos","tacatzcuaro","tacicuaro","tacoaleche","tacoma","tacony","tacopan","tacotalpa","tacuba-nueva","tacubanueva","tacubaya","tacuro-santa-maria-tacuro","tacurosantamariatacuro","tafb","tafetan","taft","taft-heights","taft-mosswood","taft-southwest-historical","taftheights","taftmosswood","taftsouthwesthistorical","tahdzibichen","tahdziu","tahlequah","tahmek","tahoe-vista","tahoevista","tahoka","tahoma","tainter-lake","tainterlake","takoma-park","takomapark","tala","talbotton","talent","talihina","talisman","talladega","tallahassee","tallapoosa","tallassee","tallmadge","tallulah","talmage","taloga","talol","talpa-de-allende","talpadeallende","talty","tam","tam-oshanter-sullivan","tama","tamalin","tamalpais-homestead-valley","tamalpais-valley","tamalpaishomesteadvalley","tamalpaisvalley","taman","tamandaro","tamapatz","tamaqua","tamarac","tamarack","tamasopo","tamaulipas","tamazola","tamazula","tamazula-de-gordiano","tamazula-de-victoria","tamazuladegordiano","tamazuladevictoria","tamazulapam","tamazulapam-del-espiritu-santo","tamazulapam-villa-del-progreso","tamazulapamdelespiritusanto","tamazulapamvilladelprogreso","tamazulita","tamazunchale","tambaca","tamcuime","tamiahua","tamiami","tamoshantersullivan","tampa","tampacan","tampamolon-corona","tampamoloncorona","tampate","tampemoche","tampico","tampico-alto","tampicoalto","tampiquito","tamuin","tamulte-de-las-sabanas","tamultedelassabanas","tamworth","tanaco","tanaina","tanamacoyan","tanaquillo","tancanhuitz","tancazahuela","tancitaro","tancoco","tandzumadz","tanetze-de-zaragoza","tanetzedezaragoza","taneytown","tangancicuaro-de-arista","tangancicuarodearista","tanganhuato","tangelo-park","tangelopark","tangent","tangerine","tanglewilde","tanglewilde-thompson-place","tanglewildethompsonplace","tanhuato-de-guerrero","tanhuatodeguerrero","tanhuixco","taniche","taniperla","tankuche","tanlajas","tanner","tannersville","tanque-verde","tanques","tanqueverde","tanquian-de-escobedo","tanquiandeescobedo","tantalus","tantima","tantoyuca","tanute","taos","taos-pueblo","taospueblo","tapachula","tapalapa","tapalapan","tapalpa","tapanala","tapeixtles","tapijulapa","tapilula","tapotzingo","tappahannock","tappan","tara-hills","tarahills","tarandacuao","tarboro","tarecuato","tarejero","tarentum","taretan","tariffville","tarimbaro","tarimoro","tarkio","tarpey-village","tarpeyvillage","tarpon-springs","tarponsprings","tarrant","tarrytown","tasquillo","tatahuicapa","tatahuicapan","tataltepec-de-valdes","tataltepecdevaldes","tatamy","tatatila","tatauzoquico","tatoxcac","tatum","taunton","tavares","tavera","tavernier","tavistock","tawas-city","tawascity","taxadho","taxco","taxco-de-alarcon","taxco-el-viejo","taxcodealarcon","taxcoelviejo","taxtes","tayahua","taylor","taylor-creek","taylor-lake-village","taylor-massey","taylor-mill","taylorcreek","taylorlakevillage","taylormassey","taylormill","taylors","taylors-falls","taylorsfalls","taylorsville","taylorville","tayoltita","taza-de-agua-ojo-zarco","tazadeaguaojozarco","tazaquil","tazewell","tazumbo","tb","tb1s","tbb","tbh","tbn","tc","tchula","tcsp","td","tda","tdac","tdb","tdc","tdd","tde","tdes","tdf","tdfv","tdg","tdgo","tdh","tdi","tdj","tdjm","tdl","tdlf","tdls","tdm","tdme","tdmp","tdo","tdp","tdr","tdrc","tds","tdsr","tdt","tdv","tdz","te","tea","teabo","teacalco","teacapan","teague","teaneck","teapa","teaticket","teayo","teays-valley","teaysvalley","teb","tecacahuaco","tecajec","tecali","tecalitlan","tecalpulco","tecama","tecamac","tecamac-de-felipe-villanueva","tecamacdefelipevillanueva","tecamachalco","tecamalucan","tecario","tecate","tecax","tecaxic","techachalco","techachaltitla","techaluta-de-montenegro","techalutademontenegro","techichili","tecoac-santa-maria-nativitas","tecoacsantamarianativitas","tecoanapa","tecolapan","tecolcuautla","tecolotlan","tecolots","tecoltepec","tecoluta-2da-seccion","tecoluta2daseccion","tecolutla","tecoman","tecomatan","tecomatepec","tecomates","tecomatlan","tecomavaca","tecomaxtlahuaca","tecominoacan","tecozautla","tecpan-de-galeana","tecpandegaleana","tecpantzacoalco","tecpatan","tecuala","tecualilla","tecualtitan","tecuanipa","tecuanipan","tecuexcomac","tecuexcontitlantecoescontitlan","tecumseh","tedder","tega-cay","tegacay","tehachapi","tehama","tehuacan","tehuetlan","tehuilotepec","tehuipango","tehuitzingo","tehuixtla","tejalpa","tejaluca","tejocote-de-calera","tejocotedecalera","tejupa","tejupilco-de-hidalgo","tejupilcodehidalgo","tekal-de-venegas","tekaldevenegas","tekamah","tekanto","tekik-de-regil","tekikderegil","tekit","tekoh","tekom","telchac-pueblo","telchac-puerto","telchacpueblo","telchacpuerto","telchaquillo","telcruz","telford","telixtac","tell-city","tellcity","tellico-village","tellicovillage","telluride","teloloapan","teloxtoc","telpatlan","teltipan-de-juarez","teltipandejuarez","temalacaco","temalacayuca","temamatla","temango","temapache","temascal","temascalapa","temascalcingo","temascaltepec-de-gonzalez","temascaltepecdegonzalez","temastian-la-cantera","temastianlacantera","temax","temaxcaltepec","temecula","temelec","temextla","temimilcingo","temiscaming","temiskaming-shores","temiskamingshores","temixco","temoac","temoaya","temoris","temosachic","temozon","tempe","tempe-junction","tempejunction","temperance","temple","temple-city","temple-hills","temple-terrace","templecity","templehills","templeterrace","templeton","templeton-est","templetonest","tempoal-de-sanchez","tempoaldesanchez","ten","ten-hills","ten-mile-run","tenabo","tenafly","tenaha","tenamaxtlan","tenampa","tenampulco","tenancingo","tenancingo-de-degollado","tenancingodedegollado","tenango","tenango-de-arista","tenango-de-doria","tenango-de-las-flores","tenango-del-aire","tenango-el-nuevo","tenangodearista","tenangodedoria","tenangodelaire","tenangodelasflores","tenangoelnuevo","tenantitla","tenayuca","tenejapa","tenenexpan","teneria","teneria-del-santuario","teneriadelsantuario","tenexio","tenexpa","tenextepango","tenguecho","tenhills","tenino","tenixtepec","tenjay","tenmilerun","tennessee","tennessee-ridge","tennesseeridge","tennille","tenochtitlan","tenosique","tentic","teocalco","teocaltiche","teocelo","teococuilco-de-marcos-perez","teococuilcodemarcosperez","teocuitatlan-de-corona","teocuitatlandecorona","teofani","teojomulco","teolocholco","teoloyucan","teontepec","teopantlan","teopisca","teotihuacan","teotihuacan-de-arista","teotihuacandearista","teotitlan","teotitlan-del-valle","teotitlandelvalle","teotlalco","teotlaltzingo","tepache","tepakan","tepalcatepec","tepalcingo","tepanco","tepango","tepapayeca","tepatepec","tepatitlan-de-morelos","tepatitlandemorelos","tepatlaxco","tepatlaxco-de-hidalgo","tepatlaxcodehidalgo","tepazolco","tepeaca","tepeapulco","tepec","tepechicotlan","tepechitlan","tepecoacuilco-de-trujano","tepecoacuilcodetrujano","tepehuacan-de-guerrero","tepehuacandeguerrero","tepeitic","tepeji-del-rio-de-ocampo","tepejidelriodeocampo","tepenixtlahuaca","tepeojuma","tepepa","tepetates","tepeteno-de-iturbide","tepetenodeiturbide","tepetitan","tepetitanreyeshogpandehidalgo","tepetitla","tepetitlan","tepetixtla","tepetlacolco","tepetlan","tepetlaoxtoc-de-hidalgo","tepetlaoxtocdehidalgo","tepetlapa","tepetlixpa","tepetongo","tepetzingo","tepetzintla","tepetzitzintla","tepexco","tepexi","tepexititla","tepexpan","tepeyahualco","tepeyanco","tepeyehualco-de-hidalgo","tepeyehualcodehidalgo","tepezala","tepic","tepich","tepojaco","teposcolula","tepotzotlan","tepoxtepec","tepozcuautla","tepoztlan","tepusco","tepuxtepec","tequepexpan","tequesquitengo","tequesquitlan","tequesta","tequexquinahuac","tequicuilco","tequila","tequila-1ra-seccion-la-aurora","tequila1raseccionlaaurora","tequisistlan","tequisistlan-primero","tequisistlanprimero","tequisquiapan","tequixquiac","tercera-manzana-de-zaragoza","terceramanzanadezaragoza","teremendo","terminal-de-providencia","terminaldeprovidencia","terra-alta","terra-bella","terra-mar","terraalta","terrabella","terrace","terrace-heights","terrace-park","terraceheights","terracepark","terramar","terramuggus","terrasse-des-pins","terrassedespins","terrazas-del-valle","terrazasdelvalle","terre-du-lac","terre-haute","terre-hill","terrebonne","terredulac","terrehaute","terrehill","terrell","terrell-hills","terrellhills","terrenate","terry","terrytown","terryville","tesechoacan","tesistan","tesoco","testerazo","tetecala","tetecalita","tetecolala","tetela","tetela-de-ocampo","tetela-del-volcan","teteladelvolcan","teteladeocampo","tetelcingo","tetelco","teteles-de-avila-castillo","tetelesdeavilacastillo","tetelilla","teteltzingo","tetepango","tetillas","tetipac","tetitlan","tetiz","tetla","tetlanohcan","tetlatlahuca","tetlatzinga","tetlaxco","tetzacual","teuchitlan","teul-de-gonzalez-ortega","teuldegonzalezortega","teutila","teutopolis","tev","teviston","tewksbury","texalpan-de-abajo","texalpan-de-arriba","texalpandeabajo","texalpandearriba","texan-de-palomeque","texandepalomeque","texanna","texarkana","texas","texas-city","texascity","texca","texcaco","texcala","texcalac","texcalapa-de-juarez","texcalapadejuarez","texcaltepec","texcaltic","texcaltitanxoteapantexcaltitan","texcaltitlan","texcalyacac","texcapa","texcapilla","texcatepec","texcatitlan","texcoco-de-mora","texcocodemora","texhuacan","texico","texin","texistepec","texmelucan","texmola","texocoyohuac","teya","tezapotla","tezhuatepec","teziutlan","tezoatlan-de-segura-y-luna","tezoatlandesegurayluna","tezonapa","tezonteopan-de-bonilla","tezonteopandebonilla","tezontepec","tezontepec-de-aldama","tezontepecdealdama","tezoquipa","tezoyuca","tf","tg","tgt","th","thatcher","thayer","the-acreage","the-beaches","the-bronx","the-colony","the-crossings","the-dalles","the-galena-territory","the-hammocks","the-hideout","the-hills","the-meadows","the-pas","the-pinery","the-plains","the-village","the-village-of-indian-hill","the-villages","the-villas-at-aeloa","the-woodlands","theacreage","thebeaches","thebronx","thecolony","thecrossings","thedalles","thedford","thegalenaterritory","thehammocks","thehideout","thehills","themeadows","theodore","thepas","thepinery","theplains","theresa","thermal","thermalito","thermopolis","thessalon","thetford-mines","thetfordmines","thevillage","thevillageofindianhill","thevillages","thevillasataeloa","thewoodlands","thibodaux","thief-river-falls","thiefriverfalls","thiells","thiensville","third-lake","thirdlake","thistletown-beaumond-heights","thistletownbeaumondheights","thomas","thomasboro","thomaston","thomasville","thompson","thompson-falls","thompsonfalls","thompsons-station","thompsonsstation","thompsonville","thomson","thonotosassa","thoreau","thorncliffe-park","thorncliffepark","thorndale","thornport","thornton","thorntown","thornwood","thorold","thorp","thorsby","thousand-oaks","thousand-palms","thousandoaks","thousandpalms","three-forks","three-hills","three-lakes","three-oaks","three-points","three-rivers","three-way","threeforks","threehills","threelakes","threeoaks","threepoints","threerivers","threeway","throckmorton","throgs-neck","throgsneck","throop","thunder-bay","thunderbay","thunderbolt","thurmond","thurmont","thurso","thurston","thv","ti","tianguismanalco","tianguistengo","tianguistengo-la-romera","tianguistengolaromera","tianguistongo","tibolon","tiburon","tice","tichigan","ticonderoga","ticopo","ticul","ticuman","tierra-amarilla","tierra-blanca","tierra-blanca-booxter","tierra-buena","tierra-colorada","tierra-fria","tierra-larga-campo-nuevo","tierra-negra","tierra-nueva","tierra-verde","tierra-y-libertad","tierraamarilla","tierrablanca","tierrablancabooxter","tierrabuena","tierracolorada","tierrafria","tierralargacamponuevo","tierranegra","tierranueva","tierras-coloradas","tierras-coloradas-san-pedro","tierrascoloradas","tierrascoloradassanpedro","tierraverde","tierraylibertad","tieton","tiffin","tifton","tigard","tiger-point","tigerpoint","tigerville","tiholop","tihosuco","tihuatlan","tijuana","tiki-island","tikiisland","tikinmul","tikuch","tila","tilapa","tilapan","tilden","tillamook","tillmans-corner","tillmanscorner","tillson","tiltepec","tilton","tilton-northfield","tiltonnorthfield","tiltonsville","tilzapotla","timber-lake","timber-pines","timberlake","timberlane","timberlea","timberpines","timberville","timberwood-park","timberwoodpark","times-square","timessquare","timmins","timmonsville","timonium","timpson","timucuy","tinajas","tinajas-1ra-seccion","tinajas1raseccion","tinajitas","tincontlan","tingambato","tinguindin","tinicum","tinley-park","tinleypark","tinton-falls","tintonfalls","tinum","tioga","tionesta","tipp-city","tippcity","tipton","tiptonville","tiquicheo","tirindaro","tiripetio","tisdale","tishomingo","titusville","tiverton","tivoli","tixcacalcupul","tixcacaltuyub","tixcancal","tixhualactun","tixkokob","tixmadeje-chiquito","tixmadejechiquito","tixmehuac","tixpehual","tixtla-de-guerrero","tixtladeguerrero","tixtlancingo","tizapan-el-alto","tizapanelalto","tizayuca","tizimin","tj","tl","tla","tlacamilco","tlachaloya","tlachichila","tlachichilco","tlachichuca","tlacoachistlahuaca","tlacoapa","tlacoatzintepec","tlacoaxtla","tlacojalpan","tlacolula","tlacolula-de-matamoros","tlacoluladematamoros","tlacolulan","tlacomulco","tlacotalpan","tlacote-el-bajo","tlacoteelbajo","tlacotepec","tlacotepec-de-jose-manzo","tlacotepec-de-mejia","tlacotepec-san-mateo","tlacotepecdejosemanzo","tlacotepecdemejia","tlacotepecsanmateo","tlacpac","tlacuilola","tlacuilolapan","tlacuilotepec","tlacuitapan","tlacuitlapa","tlahuac","tlahualilo-de-zaragoza","tlahualilodezaragoza","tlahuapa","tlahuelilpan","tlahuitoltepec","tlaixpan","tlajomulco-de-zuniga","tlajomulcodezuniga","tlalchapa","tlalchiyahualica","tlalconteno","tlalcozotitlan","tlalixcoyan","tlalixtac-de-cabrera","tlalixtacdecabrera","tlalixtaquilla","tlalmanalco","tlalminulpa","tlalnelhuayocan","tlalnepantla","tlalpan","tlalpujahua-de-rayon","tlalpujahuaderayon","tlaltecahuacan","tlaltempanapa","tlaltenango","tlaltenango-de-sanchez-roman","tlaltenangodesanchezroman","tlaltenanguito","tlaltepango","tlaltetela","tlaltizapan","tlamacazapa","tlamaco-san-geronimo-tlamaco","tlamacosangeronimotlamaco","tlamanca","tlamanca-de-hernandez","tlamancadehernandez","tlamatoca","tlamaya-grande","tlamayagrande","tlaminca","tlamixtlahuacan","tlanalapa","tlanalapan","tlanchinol","tlancualpican","tlanepantla","tlanipatla","tlaola","tlapa-de-comonfort","tlapacoyan","tlapadecomonfort","tlapala","tlapanala","tlapanaloya","tlapehuala","tlaquepaque","tlaquilpa","tlaquiltenango","tlaquiltepec","tlatempa","tlatempan","tlatenchi","tlatilpa","tlatlauquitepec","tlatlaya","tlatzala","tlaxcala","tlaxcalantongo","tlaxcalilla","tlaxcalixtlahuaca","tlaxco","tlaxco-santiago-tlaxco","tlaxcoapan","tlaxcosantiagotlaxco","tlaxinga-clatzinga","tlaxingaclatzinga","tlaxmalac","tlaxocoyucan","tlaxpanaloya","tlayacapan","tlayehualancingo","tlazala-de-fabela","tlazaladefabela","tlazazalca","tlc","tlcn","tlilapan","tlixco","tlr","tlv","tm","tmdz","tmr","tn","tnc","to","toast","tobaccoville","tobarito","tobermory","toc","tocatlan","toccoa","tochimilco","tochtepec","tocob-leglemal","tocobleglemal","tocoy","tocumbo","todd-creek","toddcreek","todos-santos","todossantos","tofield","tofino","toftrees","tok","tolcayuca","toledo","toliman","tolland","tolleson","tolome","tolono","toluca","toluca-de-guadalupe","tolucadeguadalupe","tom-bean","tomah","tomahawk","tomaquilapa","tomatlan","tomball","tombean","tombstone","tome","tomelopitos","tomendan","tomochic","tompkinsville","toms-river","tomsriver","tonala","tonalaco","tonalapa","tonalapa-del-sur","tonalapadelsur","tonalapan","tonalixco","tonanitla","tonasket","tonawanda","tonaya","tonayan","tonganoxie","tonila","tonka-bay","tonkabay","tonkawa","tonopah","tontitown","tonto-basin","tontobasin","tooele","tool","topanga","topaz-ranch-estates","topazranchestates","topeka","topia","topilco-de-juarez","topilcodejuarez","topiltepec","topolobampo","toppenish","topsfield","topsham","topton","toquerville","torbay","toreo-bajo-el-toreo-bajo","toreobajoeltoreobajo","tornado","tornillo","toro-canyon","torocanyon","toronto","torrance","torreon","torresdale","torrington","tortolita","tos","totatiche","totolac","totolapa","totolapan","totolmajac","totoltepec","totoltepec-de-guerrero","totoltepecdeguerrero","totomixtlahuaca","totontepec-villa-de-morelos","totontepecvillademorelos","tototepec","tototlan","totowa","tottenham","totutla","toughkenamon","toulon","towamensing-trails","towamensingtrails","towanda","towaoc","tower-city","tower-lake","towercity","towerlake","town-and-country","town-creek","town-line","town-n-country","townandcountry","towncreek","towner","townline","townncountry","townsend","townshend","towson","toxpalan","toxtla","tozihuic","tozongo","tp","tr","trabuco-canyon","trabucocanyon","tracadie-sheila","tracadiesheila","tracy","tracy-city","tracycity","tracyton","traer","trafalgar","trafford","trail","trail-creek","trailcreek","trainer","trancoso","transfiguracion","transito-tular","transitotular","transporte","trapiche-de-abra","trapiche-del-rosario","trapiche-viejo","trapichedeabra","trapichedelrosario","trapicheviejo","trappe","travelers-rest","travelersrest","traverse-city","traversecity","travilah","travis","travis-ranch","travisranch","trdh","tre","treasure-island","treasure-lake","treasureisland","treasurelake","trejos","tremont","tremonton","trempealeau","trent-woods","trenton","trentwood","trentwoods","tres-bocas-1ra-seccion","tres-cerros","tres-de-mayo","tres-estrellas","tres-garantias","tres-marias","tres-mezquites","tres-palos","tres-picos","tres-valles","tres-zapotes","tresbocas1raseccion","trescerros","tresdemayo","tresestrellas","tresgarantias","tresmarias","tresmezquites","trespalos","trespicos","tresvalles","treszapotes","trevorton","trevose","trexlertown","trf","tri-cities","tri-city","tri-lakes","triangle","tribeca","tribes-hill","tribeshill","tribune","tricities","tricity","trilakes","trincheras","trinidad","trinidad-de-viguera","trinidad-garcia-de-la-cadena","trinidad-zaachila","trinidaddeviguera","trinidadgarciadelacadena","trinidadzaachila","trinity","trinity-bay-north","trinity-bellwoods","trinitybaynorth","trinitybellwoods","trion","tripoli","trois-rivieres","troisrivieres","tronconal","trooper","trophy-club","trophyclub","trotwood","troup","troutdale","troutman","trowbridge-park","trowbridgepark","troy","truckee","trucksville","truman","trumann","trumansburg","trumbull","truro","trussville","truth-or-consequences","truthorconsequences","tryon","ts","tsaile","tsawwassen","tsft","tsgt","tsh","tsm","tsmn","tsmt","tss","tst","tt","ttp","tu","tualatin","tuba-city","tubac","tubacity","tubutama","tuckahoe","tucker","tuckerman","tuckerton","tucson","tucson-estates","tucsonestates","tucta","tucumcari","tuftonboro","tufts-university","tuftsuniversity","tujunga","tukwila","tula","tula-de-allende","tuladeallende","tulalip","tulalip-bay","tulalipbay","tulancingo","tulantongo","tulapam","tulare","tularosa","tulcingo","tulcingo-de-valle","tulcingodevalle","tulia","tulillos-de-abajo","tulillosdeabajo","tuliman","tulimanca","tulipanes","tullahoma","tullytown","tulpehocken","tulsa","tultepec","tultitlan-de-mariano-escobedo","tultitlandemarianoescobedo","tulum","tumbala","tumbiscatio-de-ruiz","tumbiscatioderuiz","tumbler-ridge","tumblerridge","tumwater","tuncingo","tungareo","tunica","tunica-resorts","tunicaresorts","tunititlan","tunkas","tunkhannock","tuolumne","tuolumne-city","tuolumnecity","tupataro","tupelo","tupper-lake","tupperlake","turcio-segunda-seccion","turciosegundaseccion","turicato","turicuaro","turley","turlock","turner","turners-falls","turnersfalls","turnersville","turpin-hills","turpinhills","turtle-creek","turtle-lake","turtle-rock","turtlecreek","turtlelake","turtlerock","turuachi","tuscaloosa","tuscarawas","tuscola","tusculum","tuscumbia","tuskegee","tustin","tustin-legacy","tustinlegacy","tutepec","tuttle","tutwiler","tuxcacuesco","tuxcueca","tuxpam-de-rodriguez-cano","tuxpamderodriguezcano","tuxpan","tuxpan-de-bolanos","tuxpandebolanos","tuxpanguillo","tuxtepec","tuxtilla","tuxtla","tuxtla-chico","tuxtlachico","tuzamapan","tuzantan","tuzantla","tuzuapan","tv","tvaa","tvdm","tvdp","tw","twain-harte","twainharte","tweed","twentynine-palms","twentyninepalms","twin-city","twin-falls","twin-grove","twin-lake","twin-lakes","twin-rivers","twincity","twinfalls","twingrove","twinlake","twinlakes","twinrivers","twinsburg","two-harbors","two-hills","two-rivers","twoharbors","twohills","tworivers","tx","txt","tybee-island","tybeeisland","tye","tyhee","tyl","tyler","tylertown","tyndall","tyndall-air-force-base","tyndallairforcebase","tyngsboro","tyro","tyrone","tysons","tz","tzajala","tzajalchen","tzaquiviljok","tzeltal","tzicatlacoyan","tzicatlan","tzimol","tzinacapan","tzinil","tzintzimeo","tzintzingareo","tzintzuntzan","tziritzicuaro","tziscao","tzitzio","tzoeptic","tzompantepec","tzontehuitz","tzopilja","tzucacab","ua","uayalceh-de-peon","uayalcehdepeon","uayma","ub","ubc","ubilio-garcia","ubiliogarcia","ubv","uc","uc-irvine","ucareo","uci","ucirvine","ucluelet","ucon","ucu","ucum","udc","udp","udsa","udt","ue","uf","ug","ugi","ugl","uh","uhland","uhmm","uhnh","uhra","uhrichsville","uhst","ui","uic","uintah","uj","ukiah","ukum","ukv","ul","ulysses","um","uman","umatilla","un","unadilla","unalaska","uncasville","underwood-petersville","underwoodpetersville","unicoi","unidad-acaquilpan","unidad-grajales-infonavit","unidad-minera-11-de-julio","unidad-san-miguel-jagueyes","unidadacaquilpan","unidades-habitacionales","unidadeshabitacionales","unidadgrajalesinfonavit","unidadhabitacional10deabril","unidadhabitacionalsantateresa","unidadminera11dejulio","unidadsanmigueljagueyes","unidos-avanzamos","unidosavanzamos","union","union-beach","union-buena-vista","union-buenavista","union-city","union-de-corrientes","union-de-san-antonio","union-de-tula","union-ejidal-tierra-y-libertad","union-gap","union-grove","union-hall","union-hidalgo","union-hill-novelty-hill","union-juarez","union-park","union-point","union-roja","union-springs","union-square","union-y-progreso","unionbeach","unionbuenavista","unioncity","uniondale","uniondecorrientes","uniondesanantonio","uniondetula","unionejidaltierraylibertad","uniongap","uniongrove","unionhall","unionhidalgo","unionhillnoveltyhill","unionjuarez","unionpark","unionpoint","unionport","unionroja","unionsprings","unionsquare","uniontown","unionville","unionyprogreso","united-states-virgin-islands","unitedstatesvirginislands","unity","universal-city","universalcity","university","university-center","university-city","university-gardens","university-heights","university-park","university-place","university-town-center","universitycenter","universitycity","universitygardens","universityheights","universitypark","universityplace","universitytowncenter","up","uphams-corner","uphamscorner","upland","upper-alton","upper-arlington","upper-bear-creek","upper-brookville","upper-fruitland","upper-grand-lagoon","upper-island-cove","upper-kalihi-valley","upper-lake","upper-manoa","upper-marlboro","upper-montclair","upper-nyack","upper-palolo","upper-pauoa","upper-pohatcong","upper-roxborough","upper-saddle-river","upper-saint-clair","upper-sandusky","upper-west-side","upperalton","upperarlington","upperbearcreek","upperbrookville","upperfruitland","uppergrandlagoon","upperislandcove","upperkalihivalley","upperlake","uppermanoa","uppermarlboro","uppermontclair","uppernyack","upperpalolo","upperpauoa","upperpohatcong","upperroxborough","uppersaddleriver","uppersaintclair","uppersandusky","upperwestside","upton","uptown","ur","urania","urbana","urbancrest","urbandale","urecho","uren","ures-municipality","uresmunicipality","uriangato","uricho","uripitio","urique","urireo","ursulo-galvan","ursulogalvan","uruachi","uruapan","uruetaro","us","usc","usipa","usmajac","usmj","uspero","usr","usvi","ut","utah","utc","utica","utqiagvik","uvalde","uvalde-estates","uvaldeestates","uws","uxbridge","uyp","uzeta","va","vac","vacaville","vadnais-heights","vadnaisheights","vado","vail","vails-gate","vailsgate","val-david","val-des-monts","val-des-sources","val-dor","val-morin","val-verde","val-verde-park","valadeces","valatie","valcourt","valdavid","valdeflores","valdese","valdesmonts","valdessources","valdez","valdor","valdosta","vale","valencia","valencia-de-cerro-gordo","valencia-west","valenciadecerrogordo","valencianita","valenciawest","valente-diaz","valentediaz","valentine","valhalla","valinda","valladolid","valle-de-banderas","valle-de-bravo","valle-de-guadalupe","valle-de-juarez","valle-de-lincoln","valle-de-santiago","valle-de-vaquerias","valle-de-vazquez","valle-de-zaragoza","valle-del-rio","valle-dorado-inn","valle-hermoso","valle-luz","valle-nacional","valle-verde","valle-vista","vallecillo","vallecitos-de-zaragoza","vallecitosdezaragoza","valledebanderas","valledebravo","valledeguadalupe","valledejuarez","valledelincoln","valledelrio","valledesantiago","valledevaquerias","valledevazquez","valledezaragoza","valledoradoinn","vallee-jonction","valleejonction","vallehermoso","vallejo","vallejo-porvenir-vallejo","vallejoporvenirvallejo","valleluz","vallenacional","valleverde","vallevista","valley","valley-center","valley-city","valley-cottage","valley-east","valley-falls","valley-glen","valley-grande","valley-green","valley-hill","valley-mills","valley-park","valley-springs","valley-station","valley-stream","valley-view","valleycenter","valleycity","valleycottage","valleyeast","valleyfalls","valleyglen","valleygrande","valleygreen","valleyhill","valleymills","valleypark","valleysprings","valleystation","valleystream","valleyview","valmeyer","valmorin","valparaiso","valrico","valtierrilla","valverde","valverdepark","vamo","vamos-tamaulipas","vamostamaulipas","van","van-alstyne","van-buren","van-horn","van-lear","van-meter","van-nest","van-nuys","van-vleck","van-wert","vanalstyne","vanburen","vance","vanceburg","vancleave","vancouver","vandalia","vandenberg-space-force-base","vandenberg-village","vandenbergspaceforcebase","vandenbergvillage","vander","vandercook-lake","vandercooklake","vandergrift","vanderhoof","vandiver","vanegas","vanhorn","vanier","vanlear","vanmeter","vannest","vannuys","vanvleck","vanwert","vaquerias","vardaman","vare-chiquichuca","varechiquichuca","varennes","vargas","varnell","varnville","vashon","vassalboro","vassar","vaudreuil-dorion","vaudreuildorion","vaughan","vauxhall","vb","vbs","vc","vcdh","vcpb","vd","vda","vdb","vdc","vdcg","vdcr","vdd","vde","vdf","vdg","vdgm","vdi","vdj","vdl","vdlf","vdll","vdln","vdlp","vdm","vdmf","vdn","vdo","vdr","vds","vdv","vdz","ve","veazie","vec","veedersburg","vega","vega-de-alatorre","vega-del-rosario","vega-del-sol","vegadealatorre","vegadelrosario","vegadelsol","vegasdelasoledadysoledaddos","vegreville","veinte-de-noviembre","veintedenoviembre","veintedenoviembresantalucia","veintidos-de-febrero","veintidosdefebrero","veintiuno-de-agosto","veintiunodeagosto","velardena","velda-village","velda-village-hills","veldavillage","veldavillagehills","velva","venado","venceremos","venecia","venersborg","veneta","venetian-village","venetianvillage","venice","venice-gardens","venicegardens","venise-en-quebec","veniseenquebec","venta-de-bravo","venta-de-ocotillos","venta-grande","ventadebravo","ventadeocotillos","ventagrande","ventana","ventnor-city","ventnorcity","ventoquipa","ventura","venus","venustiano-carranza","venustianocarranza","venustianocarranzapenablanca","veq","ver","veracruz","veracruzdeignaciodelallave","veradale","verapaz","vercheres","verde-village","verdevillage","verdi","verdigris","vergennes","vermilion","vermilion-on-the-lake","vermiliononthelake","vermillion","vermont","vermont-square","vermontsquare","vernal","vernon","vernon-center","vernon-hills","vernon-valley","vernoncenter","vernonhills","vernonia","vernonvalley","vero-beach","vero-beach-south","verobeach","verobeachsouth","verona","verona-walk","veronawalk","verplanck","versailles","vestal","vestavia-hills","vestaviahills","vetagrande","vevay","vez","vf","vff","vg","vgg","vggr","vgo","vgsj","vh","vhc","vhdn","vhec","vhlp","vi","vian","viborillas","vicam","vicente-camalote","vicente-guerrero","vicente-guerrero-san-javier","vicente-herrera","vicentecamalote","vicenteguerrero","vicenteguerrerosanjavier","vicenteherrera","vicksburg","victor","victor-rosales","victoria","victoria-de-cortazar","victoria-de-durango","victoria-village","victoriadecortazar","victoriadedurango","victoriavillage","victoriaville","victorrosales","victorville","victory-gardens","victory-lakes","victorygardens","victorylakes","vida-mejor-i","vidalia","vidamejori","vidor","viec","vienna","vienna-bend","viennabend","viera-east","viera-west","vieraeast","vierawest","viesca","view-park-windsor-hills","viewparkwindsorhills","viking","villa-aldama","villa-alta","villa-avila-camacho","villa-azueta","villa-chalcatongo-de-hidalgo","villa-comaltitlan","villa-corona","villa-corzo","villa-cuauhtemoc","villa-de-almoloya-de-juarez","villa-de-arista","villa-de-arriaga","villa-de-cos","villa-de-costa-rica","villa-de-etla","villa-de-garcia-marquez","villa-de-guadalupe","villa-de-la-paz","villa-de-las-flores","villa-de-los-ninos","villa-de-ramos","villa-de-reyes","villa-de-zaachila","villa-del-campo","villa-del-carbon","villa-del-prado-2da-seccion","villa-diaz-ordaz","villa-emiliano-zapata","villa-emilio-carranza","villa-garcia","villa-gonzalez-ortega","villa-gregorio-garcia","villa-grove","villa-guerrero","villa-hermosa","villa-hermosa-las-pozas","villa-hidalgo","villa-hidalgo-el-cubo","villa-hills","villa-independencia","villa-insurgentes-el-calabazal","villa-jimenez","villa-juarez","villa-la-venta","villa-las-esperanzas","villa-lazaro-cardenas","villa-luvianos","villa-madero","villa-magna","villa-mainero","villa-mariano-matamoros","villa-montemorelos","villa-morelos","villa-nicolas-bravo","villa-ocampo","villa-park","villa-pesqueira","villa-progreso","villa-rica","villa-ridge","villa-rotaria","villa-santiago","villa-sola-de-vega","villa-talea-de-castro","villa-tecolutilla","villa-tejupam-de-la-union","villa-union","villa-urbi-del-rey","villa-vicente-guerrero","villa-victoria","villa-zaragoza","villa-zempoala","villaaldama","villaalta","villaavilacamacho","villaazueta","villachalcatongodehidalgo","villachuato","villacomaltitlan","villacorona","villacorzo","villacuauhtemoc","villadealmoloyadejuarez","villadearista","villadearriaga","villadecos","villadecostarica","villadeelcarmentequexquitla","villadeetla","villadegarciamarquez","villadeguadalupe","villadelapaz","villadelasflores","villadelcampo","villadelcarbon","villadelosninos","villadelprado2daseccion","villaderamos","villadereyes","villadezaachila","villadiazordaz","villaemilianozapata","villaemiliocarranza","villaflores","villagarcia","village-green","village-green-green-ridge","village-of-campton-hills","village-of-oak-creek-big-park","village-of-the-branch","village-park","village-saint-george","village-shires","villagegreen","villagegreengreenridge","villageofcamptonhills","villageofoakcreekbigpark","villageofthebranch","villagepark","villages-of-oriole","villagesaintgeorge","villageshires","villagesoforiole","villagonzalezortega","villagran","villagregoriogarcia","villagrove","villaguerrero","villahermosa","villahermosa-yaluma","villahermosalaspozas","villahermosayaluma","villahidalgo","villahidalgoelcubo","villahills","villaindependencia","villainsurgenteselcalabazal","villajimenez","villajuarez","villalasesperanzas","villalaventa","villalazarocardenas","villaluvianos","villamadero","villamagna","villamainero","villamar","villamarianomatamoros","villamontemorelos","villamorelos","villanicolasbravo","villano-beach","villanobeach","villanueva","villaocampo","villapark","villapesqueira","villaprogreso","villarica","villaridge","villarotaria","villas","villas-de-alcala","villas-de-irapuato","villas-de-la-laguna","villas-de-la-loma","villas-del-campo","villasantiago","villasdealcala","villasdeirapuato","villasdelalaguna","villasdelaloma","villasdelcampo","villasoladevega","villataleadecastro","villatecolutilla","villatejupamdelaunion","villaunion","villaurbidelrey","villavicenteguerrero","villavictoria","villazaragoza","villazempoala","ville-marie","ville-platte","villemarie","villeplatte","villisca","vilonia","vinalhaven","vinas-del-sol","vinasdelsol","vincennes","vincent","vincentown","vinco","vine-grove","vine-hill","vinegrove","vinehill","vineland","vineyard","vineyard-haven","vineyardhaven","vineyards","vinings","vinita","vinita-park","vinitapark","vinton","viola","violet","virden","virgil","virginia","virginia-beach","virginia-city","virginia-gardens","virginiabeach","virginiacity","virginiagardens","virginias","viroqua","visalia","visitacion-valley","visitacionvalley","vista","vista-center","vista-hermosa","vista-hermosa-cuasinada","vista-hermosa-de-negrete","vista-santa-rosa","vistacenter","vistahermosa","vistahermosacuasinada","vistahermosadenegrete","vistasantarosa","vistasdelmagueyfraccionamiento","vistha","vito","viva-cardenas","viva-mexico","vivacardenas","vivamexico","vivian","vizarron","vj","vl","vlc","vle","vlv","vm","vmi","vmm","vn","vnb","vo","voch","volcano","volga","volney","volo","volusia","von-ormy","vonore","vonormy","voo","voorhees","voorheesville","votb","votl","vp","vpv","vpwh","vr","vs","vsdv","vsfb","vsg","vsr","vt","vtdc","vu","vudr","vulcan","vv","vvg","vvh","vvp","vw","vy","vz","wa","wabana","wabash","wabasha","wabasso-beach","wabassobeach","waco","waconia","wacousta","wade","wade-hampton","wadehampton","wadena","wadesboro","wading-river","wadingriver","wadley","wadsworth","wael","wafb","waggaman","wagner","wagoner","wahiawa","wahneta","wahoo","wahpeton","waialae-iki","waialae-kahala","waialae-nui-ridge-ainakoa","waialaeiki","waialaekahala","waialaenuiridgeainakoa","waialua","waianae","waihee-waiehu","waiheewaiehu","waikapu","waikiki","waikoloa","wailea","wailea-makena","waileamakena","wailua","wailua-homesteads","wailuahomesteads","wailuku","wailupe","waimalu","waimanalo","waimanalo-beach","waimanalobeach","waimea","wainaku","wainwright","waipahu","waipio","waipio-acres","waipioacres","waite-park","waitepark","waitsburg","wakarusa","wake-forest","wake-island","wake-village","wakeeney","wakefield","wakefield-peacedale","wakefieldpeacedale","wakeforest","wakeisland","wakeman","wakevillage","walbridge","walcott","walden","waldo","waldoboro","waldon","waldorf","waldport","waldron","waldwick","wales","walford","walhalla","walker","walker-mill","walkermill","walkersville","walkerton","walkertown","walla-walla","walla-walla-east","wallace","wallawalla","wallawallaeast","wallburg","walled-lake","walledlake","wallenpaupack-lake-estates","wallenpaupacklakeestates","waller","wallingford","wallingford-center","wallingfordcenter","wallington","wallis","wallkill","walls","walnut","walnut-cove","walnut-creek","walnut-grove","walnut-hill","walnut-hills","walnut-park","walnut-ridge","walnut-village","walnutcove","walnutcreek","walnutgrove","walnuthill","walnuthills","walnutpark","walnutport","walnutridge","walnutvillage","walpole","walpole-island","walpoleisland","walsenburg","walterboro","walters","walthall","waltham","walthourville","walton","walton-hills","walton-park","waltonhills","waltonpark","walworth","wamac","wamego","wampsville","wanakah","wanamassa","wanamingo","wanaque","wanatah","wanchese","wantagh","wapakoneta","wapato","wapello","wappingers-falls","wappingersfalls","ward","ward-village","warden","wardsville","wardvillage","ware","ware-shoals","wareham-center","warehamcenter","wareshoals","waretown","warm-beach","warm-mineral-springs","warm-springs","warman","warmbeach","warminster-heights","warminsterheights","warmmineralsprings","warmsprings","warner","warner-robins","warnerrobins","warr-acres","warracres","warren","warren-park","warren-township","warrenpark","warrensburg","warrensville-heights","warrensvilleheights","warrenton","warrentownship","warrenville","warrington","warrior","warroad","warsaw","warson-woods","warsonwoods","wartburg","warwick","wasaga-beach","wasagabeach","wasco","waseca","washburn","washington","washington-court-house","washington-heights","washington-mills","washington-park","washington-square","washington-terrace","washingtoncourthouse","washingtonheights","washingtonmills","washingtonpark","washingtonsquare","washingtonterrace","washingtonville","washoe","washougal","wasilla","waskaganish","waskom","waswanipi","watauga","watchtower","watchung","water-mill","water-valley","waterboro","waterbury","waterflow","waterford","waterfrontcommunitiestheisland","waterloo","waterman","watermill","watertown","watertown-square","watertownsquare","watervalley","waterville","watervliet","watford","watford-city","watfordcity","wathena","watkins-glen","watkinsglen","watkinsville","watonga","watrous","watseka","watson","watson-lake","watsonlake","watsontown","watsonville","watterson-park","wattersonpark","watts-mills","wattsmills","wattsville","wauchula","wauconda","waukee","waukegan","waukesha","waukomis","waukon","wauna","waunakee","waupaca","waupun","wauregan","waurika","wausau","wauseon","wautoma","wauwatosa","waveland","waverly","wawa","wawarsing","waxahachie","waxhaw","waycross","wayland","waymart","wayne","wayne-city","wayne-heights","waynecity","wayneheights","waynesboro","waynesburg","waynesville","wayzata","wb","wbl","wbs","wbt","wc","wcc","wch","wcm","wcr","wcs","wcti","wd","wdm","we","weare","weatherby-lake","weatherbylake","weatherford","weatherly","weatogue","weaver","weaverville","webb","webb-city","webbcity","webberville","weber-city","webercity","webster","webster-city","webster-groves","webster-springs","webstercity","webstergroves","webstersprings","wect","weddington","wedgefield","wedgewood","wedowee","weed","weedon-centre","weedoncentre","weedpatch","weedsport","weehawken","weeki-wachee-gardens","weekiwacheegardens","weeping-water","weepingwater","weigelstown","weimar","weirton","weirton-heights","weirtonheights","weiser","weissport-east","weissporteast","wekiwa-springs","wekiwasprings","welby","welch","welcome","welcome-beach","welcomebeach","weld","weldon","weldon-spring","weldonspring","welland","wellborn","wellesley","wellfleet","wellford","wellington","wellman","wells","wells-beach-station","wells-branch","wellsbeachstation","wellsboro","wellsbranch","wellsburg","wellston","wellsville","wellton","welsh","wembley","wenatchee","wendell","wendover","wenham","wenonah","wentworth","wentzville","wernersville","wescosville","weslaco","wesley-chapel","wesley-hills","wesleychapel","wesleyhills","wesleyville","wessington-springs","wessingtonsprings","wesson","west","west-albany","west-alexandria","west-allis","west-and-east-lealman","west-athens","west-babylon","west-baraboo","west-barnstable","west-bay-shore","west-belmar","west-bend","west-bishop","west-blocton","west-bloomfield-township","west-bountiful","west-boylston","west-bradenton","west-branch","west-brattleboro","west-bridgewater","west-brookfield","west-buechel","west-burlington","west-caldwell","west-cambridgeharvard-square","west-canton","west-cape-may","west-carrollton-city","west-carson","west-carthage","west-chatham","west-chester","west-chicago","west-clarkston-highland","west-columbia","west-concord","west-conshohocken","west-coon-rapids","west-covina","west-crossett","west-deland","west-dennis","west-des-moines","west-dundee","west-easton","west-elkridge","west-elmira","west-elsdon","west-end","west-end-cobb-town","west-englewood","west-fairview","west-falls-church","west-falmouth","west-fargo","west-fens","west-ferriday","west-fork","west-frankfort","west-freehold","west-garfield-park","west-gate","west-glendive","west-glens-falls","west-greenwich","west-grove","west-gulfport","west-hamburg","west-hammond","west-hartford","west-hattiesburg","west-haven","west-haven-sylvan","west-haverstraw","west-hazleton","west-helena","west-hempstead","west-henrietta","west-hill","west-hills","west-hollywood","west-homestead","west-humber-clairville","west-hurley","west-ishpeming","west-islip","west-jefferson","west-jordan","west-kelowna","west-kennebunk","west-kensington","west-kittanning","west-lafayette","west-lake-hills","west-lake-sammamish","west-lake-stevens","west-laurel","west-lawn","west-leechburg","west-liberty","west-linn","west-little-river","west-livingston","west-long-branch","west-longview","west-lorne","west-lynchburg","west-marion","west-mayfield","west-melbourne","west-memphis","west-menlo-park","west-miami","west-mifflin","west-milford","west-milton","west-milwaukee","west-modesto","west-monroe","west-mount-airy","west-mountain","west-new-york","west-newbury","west-newton","west-norriton","west-nyack","west-oak-lane","west-ocean-city","west-odessa","west-orange","west-palm-beach","west-paris","west-park","west-pasco","west-pensacola","west-peoria","west-perrine","west-pittston","west-plains","west-pleasant-view","west-point","west-portsmouth","west-puente-valley","west-raleigh","west-rancho-dominguez","west-reading","west-richland","west-ridge","west-roxbury","west-rutland","west-sacramento","west-saint-paul","west-salem","west-samoset","west-sand-lake","west-sayville","west-scarborough","west-sedona","west-seneca","west-sharyland","west-side-highway","west-simsbury","west-slope","west-somervilledavis-square","west-springfield","west-st-paul","west-stockbridge","west-swanzey","west-tawakoni","west-terre-haute","west-tisbury","west-torrington","west-town","west-union","west-unity","west-university-place","west-valley","west-valley-city","west-vancouver","west-vero-corridor","west-view","west-virginia","west-wareham","west-warrenton","west-warwick","west-wenatchee","west-wendover","west-whittier-los-nietos","west-wyoming","west-wyomissing","west-yarmouth","west-yellowstone","west-york","westalbany","westalexandria","westallis","westandeastlealman","westathens","westbabylon","westbaraboo","westbarnstable","westbayshore","westbelmar","westbend","westbishop","westblocton","westbloomfieldtownship","westborough","westbountiful","westboylston","westbradenton","westbranch","westbrattleboro","westbridgewater","westbrook","westbrook-center","westbrookcenter","westbrookfield","westbuechel","westburlington","westbury","westby","westcaldwell","westcambridgeharvardsquare","westcanton","westcapemay","westcarrolltoncity","westcarson","westcarthage","westchase","westchatham","westchester","westchicago","westclarkstonhighland","westcliffe","westcolumbia","westconcord","westconshohocken","westcoonrapids","westcovina","westcrossett","westdeland","westdennis","westdesmoines","westdundee","westeaston","westelkridge","westelmira","westelsdon","westend","westendcobbtown","westenglewood","westerleigh","westerly","western-lake","western-springs","westernlake","westernport","westernsprings","westerville","westfairview","westfallschurch","westfalmouth","westfargo","westfens","westferriday","westfield","westfield-center","westfieldcenter","westford","westfork","westfrankfort","westfreehold","westgarfieldpark","westgate","westglendive","westglensfalls","westgreenwich","westgrove","westgulfport","westhamburg","westhammond","westhampton","westhampton-beach","westhamptonbeach","westhartford","westhattiesburg","westhaven","westhaven-moonstone","westhavenmoonstone","westhavensylvan","westhaverstraw","westhazleton","westhelena","westhempstead","westhenrietta","westhill","westhills","westhollywood","westhomestead","westhumberclairville","westhurley","westishpeming","westislip","westjefferson","westjordan","westkelowna","westkennebunk","westkensington","westkittanning","westlafayette","westlake","westlake-village","westlakehills","westlakesammamish","westlakestevens","westlakevillage","westland","westlaurel","westlawn","westleechburg","westliberty","westlinn","westlittleriver","westlivingston","westlock","westlongbranch","westlongview","westlorne","westlynchburg","westmarion","westmayfield","westmelbourne","westmemphis","westmenlopark","westmere","westmiami","westmifflin","westmilford","westmilton","westmilwaukee","westminster","westminster-branson","westminsterbranson","westmodesto","westmonroe","westmont","westmoreland","westmorland","westmount","westmountain","westmountairy","westnewbury","westnewton","westnewyork","westnorriton","westnyack","westoaklane","westoceancity","westodessa","weston","weston-lakes","weston-mills","weston-pellam-park","westonlakes","westonmills","westonpellampark","westons-mills","westonsmills","westorange","westover","westpalmbeach","westparis","westpark","westpasco","westpensacola","westpeoria","westperrine","westphalia","westpittston","westplains","westpleasantview","westpoint","westport","westportsmouth","westpuentevalley","westraleigh","westranchodominguez","westreading","westrichland","westridge","westroxbury","westrutland","westsacramento","westsaintpaul","westsalem","westsamoset","westsandlake","westsayville","westscarborough","westsedona","westseneca","westsharyland","westsidehighway","westsimsbury","westslope","westsomervilledavissquare","westspringfield","weststockbridge","weststpaul","westswanzey","westtawakoni","westterrehaute","westtisbury","westtorrington","westtown","westunion","westunity","westuniversityplace","westvale","westvalley","westvalleycity","westvancouver","westverocorridor","westview","westville","westvirginia","westwareham","westwarrenton","westwarwick","westway","westwego","westwenatchee","westwendover","westwhittierlosnietos","westwood","westwood-lake","westwoodlake","westworth","westwyoming","westwyomissing","westyarmouth","westyellowstone","westyork","wetaskiwin","wetherington","wethersfield","wetumka","wetumpka","wewahitchka","weweantic","wewoka","wexfordmaryvale","weyauwega","weyburn","weyers-cave","weyerscave","weymontachie","weymouth","wf","wfc","wg","wgf","wgp","wh","wharton","whatcom","whately","whc","wheat-ridge","wheatland","wheatley-heights","wheatleyheights","wheaton","wheatridge","wheeler","wheelersburg","wheeling","whetstone","whippany","whiskey-creek","whiskeycreek","whispering-pines","whisperingpines","whistler","whitaker","white-bear-lake","white-bluff","white-castle","white-center","white-city","white-cloud","white-hall","white-haven","white-horse","white-house","white-island-shores","white-marsh","white-meadow-lake","white-mountain-lake","white-oak","white-pigeon","white-pine","white-plains","white-river","white-river-junction","white-rock","white-salmon","white-sands","white-settlement","white-sulphur-springs","whitebearlake","whitebluff","whitecastle","whitecenter","whitecity","whitecloud","whitecourt","whitefield","whitefish","whitefish-bay","whitefishbay","whitehall","whitehall-township","whitehalltownship","whitehaven","whitehorse","whitehouse","whitehouse-station","whitehousestation","whiteislandshores","whiteland","whiteman-air-force-base","whitemanairforcebase","whitemarsh","whitemarsh-island","whitemarshisland","whitemeadowlake","whitemountainlake","whiteoak","whitepigeon","whitepine","whiteplains","whiteriver","whiteriverjunction","whiterock","whitesalmon","whitesands","whitesboro","whitesboro-burleigh","whitesboroburleigh","whitesburg","whitesettlement","whitestone","whitestown","whitesulphursprings","whiteville","whitewater","whitewright","whitfield","whiting","whitinsville","whitley-city","whitleycity","whitman","whitmire","whitmore-lake","whitmore-village","whitmorelake","whitmorevillage","whitney","whittier","whittingham","whitwell","whs","wi","wibaux","wichita","wichita-falls","wichitafalls","wickenburg","wickerham-manor-fisher","wickerhammanorfisher","wickliffe","wiggins","wilber","wilberforce","wilbraham","wilburton","wild-peach-village","wild-rose","wilder","wilderness-rim","wildernessrim","wildomar","wildpeachvillage","wildrose","wildwood","wildwood-crest","wildwood-lake","wildwoodcrest","wildwoodlake","wiley-ford","wileyford","wilkes-barre","wilkesbarre","wilkesboro","wilkie","wilkinsburg","wilkinson-heights","wilkinsonheights","willacoochee","willamina","willard","willcox","williams","williams-bay","williams-lake","williamsbay","williamsburg","williamslake","williamson","williamsport","williamston","williamstown","williamsville","willimantic","willingboro","willis","williston","williston-highlands","williston-park","willistonhighlands","willistonpark","willits","willmar","willoughby","willoughby-hills","willoughbyhills","willow","willow-creek","willow-grove","willow-oak","willow-park","willow-springs","willow-street","willow-valley","willowbrook","willowcreek","willowdale","willowdale-east","willowdale-west","willowdaleeast","willowdalewest","willowgrove","willowick","willowoak","willowpark","willowridgemartingroverichview","willows","willowsprings","willowstreet","willowvalley","wills-point","willspoint","wilmer","wilmerding","wilmette","wilmington","wilmington-island","wilmington-manor","wilmingtonisland","wilmingtonmanor","wilmore","wilmot","wilson","wilson-conococheague","wilsonconococheague","wilsons-mills","wilsonsmills","wilsonville","wilton","wilton-manors","wiltonmanors","wimauma","wimberley","winamac","winchendon","winchester","winchester-center","winchester-park","winchestercenter","winchesterpark","wind-gap","wind-lake","wind-point","windber","windcrest","windemere","winder","windermere","windgap","windham","windlake","windom","window-rock","windowrock","windpoint","windsor","windsor-heights","windsor-locks","windsorheights","windsorlocks","windy-hills","windyhills","winfield","wingate","wingham","wink","winkler","winlock","winnebago","winneconne","winnemucca","winner","winnetka","winnett","winnfield","winnie","winnipeg","winnsboro","winnsboro-mills","winnsboromills","winona","winona-lake","winonalake","winooski","winslow","winsted","winston","winston-salem","winstonsalem","winter-beach","winter-garden","winter-gardens","winter-haven","winter-hill","winter-park","winter-springs","winterbeach","wintergarden","wintergardens","winterhaven","winterhill","winterpark","winterport","winters","winterset","wintersprings","wintersville","winterville","winthrop","winthrop-harbor","winthropharbor","winton","wis","wiscasset","wisconsin","wisconsin-dells","wisconsin-rapids","wisconsindells","wisconsinrapids","wise","wisner","wissinoming","wister","withamsville","wittenberg","wixom","wj","wk","wl","wlb","wle","wlh","wlr","wls","wm","wma","wmf","wml","wmp","wmr","wms","wn","wnra","wny","wo","woburn","woc","wofford-heights","woffordheights","wol","wolcott","wolcottville","wolf-creek","wolf-lake","wolf-point","wolf-trap","wolfcreek","wolfdale","wolfe-city","wolfeboro","wolfecity","wolfforth","wolfhurst","wolflake","wolfpoint","wolftrap","wolfville","wollochet","wolverine-lake","wolverinelake","womelsdorf","wonder-lake","wonderlake","wood-dale","wood-lynne","wood-ridge","wood-river","wood-village","woodacre","woodbine","woodbine-corridor","woodbine-lumsden","woodbinecorridor","woodbinelumsden","woodbourne","woodbranch","woodbridge","woodburn","woodbury","woodbury-center","woodbury-heights","woodburycenter","woodburyheights","woodcliff-lake","woodclifflake","woodcreek","woodcrest","wooddale","woodfield","woodfin","woodhaven","woodinville","woodlake","woodland","woodland-beach","woodland-heights","woodland-hills","woodland-park","woodlandbeach","woodlandheights","woodlandhills","woodlandpark","woodlawn","woodlawn-beach","woodlawnbeach","woodlyn","woodlynne","woodmere","woodmont","woodmoor","woodmore","woodridge","woodriver","woodrow","woodruff","woods-creek","woods-cross","woodsboro","woodscreek","woodscross","woodsfield","woodside","woodside-east","woodsideeast","woodson-terrace","woodsonterrace","woodstock","woodstown","woodsville","woodvillage","woodville","woodward","woodway","woodworth","woolwich","woonsocket","wooster","worcester","worden","worland","wormleysburg","worth","wortham","worthington","worthington-hills","worthingtonhills","woxall","wp","wpa","wpb","wpp","wpv","wr","wrangell","wray","wrd","wrens","wrentham","wright","wright-city","wright-patterson-afb","wrightcity","wrightpattersonafb","wrightsboro","wrightstown","wrightsville","wrightsville-beach","wrightsvillebeach","wrightwood","wrj","ws","wsca","wsh","wsl","wsp","wss","wt","wth","wu","wup","wurtland","wurtsboro","wv","wvc","ww","wwe","wwg","wwln","wy","wyandanch","wyandotte","wychwood","wyckoff","wykagyl","wyldwood","wylie","wymore","wynantskill","wyncote","wyndham","wyndmoor","wynne","wynnefield-heights","wynnefieldheights","wynnewood","wynyard","wyoming","wyomissing","wyomissing-hills","wyomissinghills","wytheville","x-cabil","x-can","x-hazil-sur","x-pichil","xaaga","xacaxomulco","xadani","xagacia","xalacapan-de-lucke","xalacapandelucke","xalapa-de-enriquez","xalapadeenriquez","xalatlaco","xalatzala","xalisco","xalitla","xalitzintla","xalostoc","xaloztoc","xalpatlahuac","xaltepec","xaltepuxtla","xaltianguis","xalticpac","xaltocan","xanaba","xaya","xayacatlan-de-bravo","xayacatlandebravo","xbacab","xc","xcabil","xcan","xcanatun","xcl","xdb","xdc","xde","xdj","xdl","xdmx","xdz","xeg","xenia","xh","xhazilsur","xhimojay","xhitey","xhixhata","xhs","xichu","xico","xicohtzinco","xicotencatl","xicotepec-de-juarez","xicotepecdejuarez","xicotlan","xilitla","xilocuautla","xiquila","xiteje-de-zapata","xitejedezapata","xitlama","xmaben","xoampolco","xocchel","xocen","xochapa","xochiapa","xochiapulco","xochiatipan-de-castillo","xochiatipandecastillo","xochicalco-cirenio-longares","xochicalcocireniolongares","xochicoatlan","xochicuautla","xochihuehuetlan","xochiltepec","xochimanca","xochimilco","xochinanacatlan","xochipala","xochistlahuaca","xochitepec","xochitlan","xochitlan-todos-santos","xochitlantodossantos","xochitlaxco-san-baltazar","xochitlaxcosanbaltazar","xochitonalco","xococapa","xoconoxtle-el-grande","xoconoxtleelgrande","xocotepec","xocotla","xocotlan","xocoyolzintla","xocoyucan","xohuayan","xoloateno","xolostitlademorelosxolostitla","xolotla","xometla","xonacatlan","xonalpu","xonocuautla","xopilapa","xoteapan","xoxocotla","xoxolpa","xoxonacatla","xp","xpichil","xpujil","xsb","xts","xuchapa","xul","xul-ha","xulha","yacolt","yadkinville","yaganiza","yago","yah","yahualica","yahualica-de-gonzalez-gallo","yahualicadegonzalezgallo","yajalon","yakima","yalaha","yale","yalina","yalkoba","yaltem","yamachiche","yamhill","yanceyville","yanga","yankton","yaonahuac","yaphank","yardley","yardville","yarmouth","yarmouth-port","yarmouthport","yarrow-point","yarrowpoint","yasha","yashanal","yates-center","yatescenter","yatzachi","yauhquemehcan","yautepec","yavapai","yavaros","yaxcaba","yaxcopoil","yaxe","yaxhachen","yaxkukul","yazoo-city","yazoocity","yb","yc","ydg","ydgg","ydj","ye","yeadon","yeagertown","yecapixteca","yecapixtla","yecora","yecuatla","yehualtepec","yellow-springs","yellowknife","yellowsprings","yellville","yelm","yerbabuena","yerington","yetla","yetla-de-juarez","yetladejuarez","yetlancingo","yextla","ygp","yh","yibeljoj","yl","yoakum","yobain","yoe","yokuts-valley","yokutsvalley","yolo","yolotepec","yoloxochitl","yoncalla","yonge-eglinton","yonge-stclair","yongeeglinton","yongestclair","yonkers","yopi","yorba-linda","yorbalinda","york","york-beach","york-harbor","york-university-heights","yorkbeach","yorkdale-glen-park","yorkdaleglenpark","yorketown","yorkharbor","yorklyn","yorkshire","yorkton","yorktown","yorktown-heights","yorktownheights","yorkuniversityheights","yorkville","yosemite-lakes","yosemite-valley","yosemitelakes","yosemitevalley","yoshib","yosphi","yotholin","young-america-historical","young-harris","youngamericahistorical","youngharris","youngstown","youngsville","youngtown","youngwood","yountville","yp","ypsilanti","yreka","ys","yt","yuba","yuba-city","yubacity","yuc","yucaipa","yucatan","yucca-valley","yuccavalley","yucuita","yucuyachi","yuh","yukon","yulee","yuma","yurecuaro","yuriria","yustis","yutan","yutanduchi-de-guerrero","yutanduchideguerrero","yv","zac","zacacoyuca","zacacuautla","zacalaca","zacamixtle","zacamulpa","zacamulpa-tlalmimilolpan","zacamulpatlalmimilolpan","zacango","zacaola","zacapala","zacapalco","zacapechpan","zacapoaxtla","zacapu","zacapuato","zacatal","zacate-colorado","zacatecas","zacatecolorado","zacatelco","zacatepec","zacatla","zacatlan","zacatonal-de-juarez","zacatonaldejuarez","zacatula","zacazonapan","zachary","zacoalco","zacoalpan","zacualpa","zacualpan","zacualpan-de-amilpas","zacualpandeamilpas","zacualtipan","zacualtipanito","zahuatlan-de-morelos-san-jose","zahuatlandemorelossanjose","zalamea","zamachihue","zamora","zamora-pico-de-oro","zamorano","zamorapicodeoro","zanesville","zangarro-zangarro-nuevo","zangarrozangarronuevo","zaniza","zapata","zapoapan","zapoapan-de-amapan","zapoapan-de-cabanas","zapoapandeamapan","zapoapandecabanas","zapopan","zapopan2","zapotan","zapotanito","zapote-de-barajas","zapote-de-cestao","zapote-de-palomas","zapote-de-peralta","zapotedebarajas","zapotedecestao","zapotedepalomas","zapotedeperalta","zapotillo-de-mogotes","zapotillodemogotes","zapotiltic","zapotitan-de-hidalgo","zapotitandehidalgo","zapotitlan","zapotitlan-de-vadillo","zapotitlan-lagunas","zapotitlan-palmas","zapotitlan-tablas","zapotitlandevadillo","zapotitlanlagunas","zapotitlanpalmas","zapotitlantablas","zapotlan","zapotlan-de-juarez","zapotlan-del-rey","zapotlandejuarez","zapotlandelrey","zapotlanejo","zapuyo","zaragoza","zaragoza-la-montana","zaragoza-puerto-de-medina","zaragozalamontana","zaragozapuertodemedina","zarzal","zautla","zc","zcsf","zda","zdb","zdc","zdg","zdh","zdj","zdl","zdlb","zdlc","zdm","zdp","zdr","zdv","zebulon","zeeland","zeigler","zelienople","zellwood","zelocotitlan","zempoala","zena","zentlalpan","zephyrhills","zephyrhills-north","zephyrhills-south","zephyrhills-west","zephyrhillsnorth","zephyrhillssouth","zephyrhillswest","zequentic","zicuicho","zicuiran","zihuateutla","zilacayotitlan","zillah","zilwaukee","zimapan","zimatepec","zimatlan-de-alvarez","zimatlandealvarez","zimmerman","zinacantan","zinacantepec","zinacatepec","zinaparo","zinapecuaro","zion","zionsville","zipiajo","ziquitaro","zirahuato-de-los-bernal","zirahuatodelosbernal","zirahuen","zirandaro-de-los-chavez","zirandarodeloschavez","zirimicuaro","zitlala","zitlaltepec","zizicazapa","zl","zlm","zn","zoatecpan","zocea","zocoteaca-de-leon","zocoteacadeleon","zoh-laguna","zohlaguna","zolfo-springs","zolfosprings","zolonquiapa","zona-urbana-ejidal","zona-urbana-ejido-isla-mujeres","zonaurbanaejidal","zonaurbanaejidoislamujeres","zongolica","zongozotla","zontecomatlandelopezyfuentes","zoogocho","zopoco","zoquiapa","zoquiapan","zoquiopan","zoquite","zoquitipan","zoquitlan","zothe","zotoltitlan","zotoluca","zoyatitla","zoyatlan","zoyatzingo","zoyotla","zozocolco-de-guerrero","zozocolco-de-hidalgo","zozocolcodeguerrero","zozocolcodehidalgo","zozutla","zp","zpdm","zpdo","zs","zt","zue","zula","zumbrota","zumpahuacan","zumpango","zumpango-del-rio","zumpangodelrio","zuni-pueblo","zunipueblo","zurumbeneo","zw","zwolle","zzn"];new Set(Nf);const If={name:"Public",secret:"8b3387e9c5cdea6ac9e5edbaa115cd72"},_f=["southbay","south-bay","bot","ventura","weather","wardrive","test","icewatch","sbcountymesh","sb-county-mesh","sbcounty","sb-county","meshbud","mesh-bud","ai-bot","aibot","hdmesh","hd-mesh","hdme","hdme7","hdme7yard","hdmeyard","hdmeshtayrd","hdmestayrd","hdmestyard","hdmetayrd","hdmeshtnyard","mustard","socalmesh","socal-mesh","meshla","mesh-la","lamesh","la-mesh","westcoast","west-coast","wcmesh","wc-mesh","eastcoast","east-coast","midwest","southwest","northwest","northeast","southeast","california","cali","santaclarita","santa-clarita","scv","newhall","valencia","saugus","castaic","palmdale","lancaster","antelopevalley","antelope-valley","avmesh","av-mesh","highdesert","high-desert","mojave","victorville","hesperia","barstow","pomona","claremont","glendora","azusa","covina","westcovina","west-covina","walnut","diamondbar","diamond-bar","whittier","brea","yorbalinda","yorba-linda","montebello","montereypark","monterey-park","alhambra","arcadia","monrovia","duarte","hermosabeach","hermosa-beach","manhattanbeach","manhattan-beach","redondobeach","redondo-beach","palosverdes","palos-verdes","sanpedro","san-pedro","ojai","fillmore","santapaula","santa-paula","porthueneme","port-hueneme","general","public","main","default","chat","local","mesh","network","emergency","sos","help","news","info","status","alerts","announce","random","offtopic","off-topic","lobby","lounge","hangout","testing","dev","development","beta","alpha","experimental","personaltest","personal-test","mytest","my-test","testchannel","test-channel","meshcore","mesh-core","meshtastic","lora","lo-ra","lorawan","lora-wan","radio","ham","amateur","hamradio","ham-radio","amateurradio","repeater","repeaters","gateway","node","nodes","rf","rfmesh","offgrid","off-grid","prepper","preppers","emcomm","ares","races","socal","so-cal","southerncalifornia","southern-california","losangeles","los-angeles","la","laarea","la-area","greaterla","sfv","sfvalley","sf-valley","sanfernandovalley","san-fernando-valley","sanfernando","san-fernando","valley","thevalley","the-valley","westla","west-la","eastla","east-la","southla","south-la","dtla","downtown","downtownla","downtown-la","hollywood","beverlyhills","beverly-hills","santamonica","santa-monica","culvercity","culver-city","marinadelrey","marina-del-rey","longbeach","long-beach","torrance","carson","compton","inglewood","pasadena","glendale","burbank","noho","northhollywood","north-hollywood","encino","tarzana","woodland","woodlandhills","woodland-hills","calabasas","malibu","topanga","agoura","agourahills","agoura-hills","thousandoaks","thousand-oaks","simivalley","simi-valley","simi","venturacounty","ventura-county","oxnard","camarillo","moorpark","santabarbara","santa-barbara","sb","goleta","carpinteria","orangecounty","orange-county","oc","irvine","anaheim","fullerton","costamesa","costa-mesa","newportbeach","newport-beach","huntingtonbeach","inlandempire","inland-empire","ie","riverside","sanbernardino","san-bernardino","ontario","rancho","ranchocucamonga","rancho-cucamonga","fontana","corona","palmsprings","palm-springs","palmdesert","palm-desert","coachella","temecula","murrieta","hemet","perris","menifee","sandiego","san-diego","sd","sdmesh","sd-mesh","norcal","nor-cal","northerncalifornia","northern-california","bayarea","bay-area","sfbay","sf-bay","sfbayarea","sf-bay-area","sanfrancisco","san-francisco","sf","sfmesh","sf-mesh","oakland","berkeley","eastbay","east-bay","alameda","sanjose","san-jose","sj","southbay","south-bay","siliconvalley","silicon-valley","santaclara","santa-clara","sunnyvale","mountainview","mountain-view","paloalto","palo-alto","menlopark","menlo-park","redwoodcity","redwood-city","fremont","hayward","unioncity","union-city","newark","milpitas","santacruz","santa-cruz","watsonville","monterey","montereybay","monterey-bay","salinas","carmel","pacificgrove","pacific-grove","sacramento","sac","sactown","westsac","west-sac","roseville","folsom","fresno","bakersfield","stockton","modesto","visalia","seattle","seattlemesh","seattle-mesh","pnw","pacificnorthwest","pacific-northwest","portland","pdx","portlandmesh","portland-mesh","oregon","denver","denvermesh","denver-mesh","colorado","boulder","fortcollins","austin","austinmesh","austin-mesh","atx","texas","sanantonio","san-antonio","dallas","dfw","dallasmesh","dallas-mesh","fortworth","fort-worth","houston","houstonmesh","houston-mesh","htx","phoenix","phoenixmesh","phoenix-mesh","arizona","az","tucson","mesa","tempe","lasvegas","las-vegas","vegas","vegasmesh","vegas-mesh","nevada","henderson","saltlake","salt-lake","slc","saltlakecity","salt-lake-city","utah","chicago","chicagomesh","chicago-mesh","chitown","illinois","detroit","detroitmesh","detroit-mesh","michigan","annarbor","ann-arbor","minneapolis","twincities","twin-cities","minnesota","stpaul","st-paul","atlanta","atlantamesh","atlanta-mesh","atl","georgia","miami","miamimesh","miami-mesh","florida","tampa","orlando","jacksonville","boston","bostonmesh","boston-mesh","massachusetts","cambridge","newyork","new-york","nyc","nycmesh","nyc-mesh","brooklyn","manhattan","queens","newjersey","new-jersey","nj","jersey","philly","philadelphia","philadelphiamesh","philadelphia-mesh","pennsylvania","dc","washingtondc","washington-dc","dmv","nova","maryland","virginia","raleigh","durham","rdu","triangle","northcarolina","north-carolina","charlotte","clt","southcarolina","south-carolina","nashville","tennessee","memphis","knoxville","neworleans","new-orleans","nola","louisiana","hawaii","oahu","honolulu","maui","bigisland","big-island","alaska","anchorage","fairbanks","canada","toronto","vancouver","montreal","calgary","edmonton","ottawa","uk","london","manchester","birmingham","edinburgh","glasgow","bristol","germany","berlin","munich","hamburg","frankfurt","cologne","france","paris","lyon","marseille","spain","madrid","barcelona","italy","rome","milan","netherlands","amsterdam","rotterdam","australia","sydney","melbourne","brisbane","perth","adelaide","newzealand","new-zealand","auckland","wellington","japan","tokyo","osaka","kyoto","southkorea","south-korea","korea","seoul","taiwan","taipei","singapore","hongkong","hong-kong","india","mumbai","delhi","bangalore","brazil","saopaulo","sao-paulo","rio","mexico","mexicocity","mexico-city","guadalajara","tijuana","gps","location","tracking","tracker","position","coordinates","sensor","sensors","telemetry","data","iot","aprs","beacon","beacons","ping","pings","debug","admin","ops","operations","monitor","monitoring","security","secure","private","encrypted","hiking","camping","outdoors","outdoor","backcountry","trails","offroad","off-road","overlanding","jeep","offroading","sailing","boating","marine","maritime","aviation","flying","pilots","drone","drones","weather","wx","storm","storms","skywarn","traffic","commute","transit","community","group","team","club","family","friends","neighbors","neighborhood","block","street","local","town","city","county","region","north","south","east","west","central","downtown","uptown","midtown","home","house","cabin","ranch","farm","test1","test2","test3","test4","test5","channel1","channel2","channel3","mesh1","mesh2","mesh3","group1","group2","group3","team1","team2","team3","net1","net2","net3","relay","relays","link","links","hub","hubs","core","backbone","qso","ragchew","net","nets","roundtable","simplex","duplex","vhf","uhf","hf","2m","70cm","33cm","23cm","900mhz","915mhz","ism","ism-band","ism915","ism868","license-free","event","events","exercise","drill","training","practice","race","marathon","cycling","running","triathlon","ironman","festival","concert","gathering","meetup","meet-up","convention","hamfest","ham-fest","field-day","fieldday","winter-field-day","sota","pota","summits","parks","parks-on-the-air","2024","2025","2026","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec","winter","spring","summer","fall","autumn","mountain","mountains","hills","peak","summit","ridge","canyon","beach","coast","coastal","shore","bay","lake","river","creek","park","forest","woods","desert","island","peninsula","urban","suburban","rural","metro","area","zone","sector","base","mobile","portable","handheld","fixed","station","primary","secondary","backup","alternate","spare","alpha","bravo","charlie","delta","echo","foxtrot","red","blue","green","yellow","orange","purple","black","white","trace","traces","log","logs","metrics","stats","statistics","raw","stream","feed","live","realtime","real-time","sync","replication","mirror","copy","archive","open","closed","free","premium","pro","plus","lite","basic","new","old","legacy","current","next","future","one","two","three","four","five","six","seven","eight","nine","ten","hamradio","ham-radio","amateurradio","amateur-radio","arrl","dxcc","dxing","morsecode","morse-code","fldigi","js8call","winlink","vara","pactor","packet","ax25","aprsmesh","qrp","qro","qrz","qsl","qth","ragchew","rag-chew","elmer","elmers","technician","amateur","microwave","satellite","ariss","amsat","cubesat","sdr","rtlsdr","rtl-sdr","hackrf","portapack","yaesu","icom","kenwood","elecraft","flexradio","alinco","baofeng","quansheng","antennas","dipole","vertical","yagi","efhw","endfed","wwff","iota","contesting","cwops","auxcomm","satern","maker","makers","makerspace","maker-space","hackerspace","hacker-space","fablab","fab-lab","doityourself","homebrew","home-brew","fromscratch","arduino","esp32","esp8266","stm32","teensy","pico","rp2040","attiny","raspberrypi","raspberry-pi","rpi","beaglebone","beagle-bone","orangepi","orange-pi","kicad","eagle","altium","oshpark","jlcpcb","pcbway","soldering","throughhole","oscilloscope","multimeter","logicanalyzer","logic-analyzer","testbench","3dprinting","3d-printing","3dprint","printer","prusa","ender","creality","bambu","voron","lasercutter","laser-cutter","woodworking","metalworking","welding","resin","fdm","sla","fusion360","fusion-360","freecad","openscad","solidworks","programming","coding","software","developer","developers","devops","sysadmin","linux","unix","bsd","freebsd","openbsd","netbsd","macos","windows","android","ios","python","javascript","typescript","rust","golang","java","kotlin","swift","ruby","perl","csharp","dotnet","haskell","lisp","clojure","elixir","erlang","react","angular","svelte","nodejs","deno","nextjs","nuxt","docker","kubernetes","terraform","ansible","puppet","vagrant","github","gitlab","bitbucket","opensource","open-source","foss","floss","homelab","home-lab","selfhost","self-host","selfhosted","self-hosted","homelabbers","homeassistant","home-assistant","hass","openhab","domoticz","nodered","node-red","mqtt","zigbee","zwave","thread","wifi","bluetooth","rfid","infosec","cybersec","cybersecurity","cyber-security","netsec","opsec","hacking","hacker","hackers","pentest","pentesting","redteam","red-team","blueteam","blue-team","capture-the-flag","bugbounty","bug-bounty","vuln","exploit","malware","reverse","defcon","blackhat","bsides","shmoocon","derbycon","toorcon","hacktheplanet","lockpicking","locksport","toool","deviant","socialeng","social-eng","osint","privacy","anonymity","encryption","crypto","signal","hiking","hiker","hikers","backpacking","backpacker","thru-hike","thruhike","camper","campers","glamping","dispersed","primitive","wilderness","climbing","climber","climbers","rockclimbing","rock-climbing","bouldering","trad","sport","mountaineering","alpine","peaks","fourteeners","14ers","highpoints","skiing","skier","snowboard","snowboarder","backcountry-ski","touring","splitboard","kayak","kayaking","kayaker","canoe","canoeing","paddle","paddling","paddleboard","surfing","surfer","surfers","bodyboard","longboard","shortboard","waves","scuba","freedive","freediving","snorkel","underwater","spearfishing","fishing","angler","anglers","flyfishing","fly-fishing","trout","hunting","hunter","hunters","archery","bowhunting","bow-hunting","rifle","shotgun","cyclist","biking","bicycle","bicycling","roadbike","road-bike","mountainbike","mountain-bike","mountainbiking","mountain-biking","trailriding","ebike","e-bike","ebikes","electric-bike","peloton","strava","zwift","gravel","gravelbike","gravel-bike","bikepacking","bike-packing","randonneur","fixie","fixedgear","fixed-gear","singlespeed","single-speed","commuter","offroading","off-roading","fourwheeling","4wd","awd","jeeping","wrangler","gladiator","tacoma","runner","4runner","overland","overlander","rooftoptent","rooftop-tent","expedition","utv","sxs","sidebyside","side-by-side","rzr","canam","polaris","dirtbike","dirt-bike","motocross","enduro","dualsport","dual-sport","motorcycle","moto","harley","sportbike","cruiser","rving","motorhome","campervan","camper-van","vanlife","van-life","skoolie","trucker","trucking","diesel","semi","bigrig","big-rig","pilot","pilots","flying","flight","airplane","aircraft","planes","cessna","piper","cirrus","beechcraft","mooney","bonanza","skyhawk","helicopter","heli","rotor","rotorcraft","chopper","robinson","glider","gliding","soaring","sailplane","paraglider","paragliding","hangglider","drones","uav","uas","fpv","quadcopter","multirotor","mavic","phantom","rocketry","rockets","hpr","nar","tripoli","model-rocket","amateur-rocket","spacex","nasa","esa","starlink","starship","falcon","artemis","boat","boats","boater","boaters","yachting","yacht","sail","sailor","powerboat","speedboat","fishing-boat","pontoon","jetski","jet-ski","pwc","waverunner","marina","harbor","harbour","dock","pier","anchorage","mooring","liveaboard","cruising","bluewater","blue-water","inshore","intracoastal","marine-radio","marineradio","ais","chartplotter","navionics","opencpn","prepper","preppers","prepping","survival","survivalist","shtf","teotwawki","bol","bugout","bug-out","bugin","bug-in","edc","everyday-carry","loadout","firstaid","first-aid","trauma","tccc","stopthebleed","aed","waterpurification","water-purification","berkey","sawyer","lifestraw","foodstorage","food-storage","canning","dehydrating","freezedried","freeze-dried","battery","generator","inverter","offgrid","off-grid","griddown","grid-down","communications","gmrs","frs","murs","citizens-band","shortwave","homestead","homesteading","homesteader","farming","farmer","farmers","ranching","garden","gardening","gardener","permaculture","organic","regenerative","sustainable","chickens","poultry","goats","sheep","cattle","pigs","livestock","beekeeping","bees","apiary","greenhouse","hydroponics","aquaponics","vertical-farm","indoor-garden","growroom","grow-room","meteorology","stormchasing","storm-chasing","tornado","hurricane","earthquake","quake","seismic","tsunami","volcano","volcanic","geology","geologist","astronomy","stargazing","telescope","astrophotography","astrophoto","deepsky","deep-sky","citizen-science","citizenscience","research","science","stem","education","learning","gaming","gamer","gamers","videogames","video-games","pcgaming","pc-gaming","console","esports","e-sports","competitive","tournament","lan-party","retrogaming","minecraft","terraria","valheim","rust-game","dayz","tarkov","pubg","fortnite","apex","virtualreality","virtual-reality","augmentedreality","augmented-reality","oculus","tabletop","boardgames","board-games","dungeons-dragons","ttrpg","pathfinder","musician","musicians","bands","livemusic","live-music","concerts","guitar","guitarist","bassist","drums","drummer","keyboard","synth","synthesizer","production","producer","producers","beatmaking","beat-making","ableton","flstudio","audiophile","hifi","hi-fi","vinyl","records","turntable","headphones","speakers","podcast","podcasting","podcaster","streaming","streamer","twitch","youtube","content","photography","photographer","photographers","photog","cameras","dslr","mirrorless","canon","nikon","fuji","fujifilm","panasonic","olympus","leica","hasselblad","portrait","wildlife","macro","nightsky","night-sky","timelapse","videography","videographer","filmmaker","filmmaking","cinematography","editing","premiere","davinci","finalcut","final-cut","aftereffects","after-effects","vfx","artist","artists","artwork","creative","creatives","designer","designers","illustration","illustrator","drawing","sketch","sketching","digital-art","digitalart","graphicdesign","graphic-design","uiux","ui-ux","webdesign","web-design","animation","animator","motion","motiongraphics","motion-graphics","3dart","3d-art","blender","foodie","foodies","cooking","cooks","chef","chefs","culinary","kitchen","barbecue","grilling","smoking","smoker","brisket","ribs","pulled-pork","lownslow","baking","baker","sourdough","pastry","dessert","cakes","cookies","brewing","craft-beer","craftbeer","ipa","lager","stout","espresso","barista","roasting","whiskey","bourbon","cocktails","fitness","workout","lifting","weightlifting","powerlifting","bodybuilding","crossfit","hiit","cardio","runners","ultramarathon","triathlete","swimming","swimmer","openwater","open-water","yoga","pilates","meditation","mindfulness","wellness","nutrition","basketball","football","soccer","baseball","hockey","tennis","volleyball","dogs","puppy","puppies","canine","dogtraining","dog-training","cats","kitten","kittens","feline","meow","pets","animals","birding","birdwatching","bird-watching","aquarium","reeftank","reef-tank","saltwater","freshwater","planted-tank","reptiles","reptile","snakes","lizard","gecko","bearded-dragon","neighborhood","nextdoor","meet-up","volunteer","volunteering","nonprofit","non-profit","charity","mutual-aid","mutualaid","parents","parenting","families","children","youth","teens","seniors","lgbtq","pride","queer","nonbinary","ally","allies","inclusive","diversity","burningman","burning-man","playa","blackrock","coachella","sxsw","defcon","hope","layerone","layer-one","supercon","makerfaire","maker-faire","bamboozle","lightning","ragbrai","burnitdown","burning","regional","decomp","toorcamp","chaos","congress","hackathon","ctf-event","capture","wardriving","foxhunt","fox-hunt","brc","ttitd","center-camp","centercamp","esplanade","deep-playa","effigy","temple","soundcamp","sound-camp","mutant-vehicle","art-car","ranger","rangers","lamplighters","dgs","leave-no-trace","moop","gifting","radical-self","immediacy","participation","decommodification","overlandexpo","overland-expo","overlandtrail","overland-trail","overlandbound","overlandjournal","adventurebike","adventure-bike","dirtevery","rubicontrail","rubicon-trail","moab","deathvalley","death-valley","joshua-tree","joshuatree","bigbear","big-bear","mammoth","tahoe","yosemite","sequoia","kingscyn","kings-canyon","meshcore","mesh-core","meshcore-test","meshcore-dev","meshcore-beta","mctest","mc-test","mcdev","mc-dev","mcmain","mc-main","mcpublic","meshcorebot","meshcore-bot","mcbot","mc-bot","meshchat","mesh-chat","meshnet","mesh-net","meshnetwork","mesh-network","meshlink","mesh-link","meshhub","mesh-hub","meshnode","mesh-node","meshrelay","mesh-relay","meshgateway","mesh-gateway","meshbridge","mesh-bridge","meshrouter","meshtalk","mesh-talk","meshvoice","mesh-voice","meshdata","mesh-data","meshsensor","mesh-sensor","meshtrack","mesh-track","meshgps","mesh-gps","meshmap","mesh-map","meshstatus","mesh-status","meshping","mesh-ping","meshtest","mesh-test","meshtesting","mesh-testing","meshdev","mesh-dev","meshops","mesh-ops","meshadmin","mesh-admin","meshmon","mesh-mon","meshlog","mesh-log","meshdebug","mesh-debug","meshdiag","mesh-diag","meshcore-alpha","meshcore-stable","meshcore-main","meshcore-local","mc-alpha","mc-beta","mc-stable","mc-local","mc-ops","mc-admin","meshcoretest","meshcoredev","meshcorebeta","meshcorealpha","meshcoremain","meshcorelocal","meshcoreops","meshcoreadmin","meshcoremon","meshcorelog","meshcorechat","meshcorenet","meshcorelink","meshcorehub","meshcorenode","meshcorerelay","meshcoregateway","meshcorebridge","meshcorerouter","meshcoresensor","meshcoretrack","meshcoregps","meshcoremap","meshcoreping","mcnetwork","mc-network","mcchat","mc-chat","mclink","mc-link","mchub","mc-hub","mcnode","mc-node","mcrelay","mc-relay","mcgateway","mc-gateway","mcbridge","mc-bridge","mcrouter","mc-router","mcsensor","mc-sensor","mctrack","mc-track","mcgps","mc-gps","mcmap","mc-map","mcstatus","mc-status","mcping","mc-ping","mcmon","mc-mon","mclog","mc-log","mcdebug","mc-debug","mcdiag","mc-diag","meshroom","mesh-room","meshrooms","mesh-rooms","meshserver","mesh-server","meshclient","mesh-client","meshcompanion","mesh-companion","meshrepeater","mesh-repeater","meshbase","mesh-base","meshportal","mesh-portal","meshtastic","mesh-tastic","meshtastictest","meshtastic-test","meshtasticdev","meshtastic-dev","meshtasticlocal","meshtastic-local","mttest","mt-test","mtdev","mt-dev","mtlocal","mt-local","longfast","long-fast","longmod","long-mod","longslow","long-slow","shortfast","short-fast","shortslow","short-slow","medfast","med-fast","medslow","med-slow","verylongslow","very-long-slow","meshtastic-alpha","meshtastic-beta","meshtastic-main","meshtastic-stable","meshtasticbeta","meshtasticalpha","meshtasticmain","meshtasticstable","mtbeta","mt-beta","mtalpha","mt-alpha","mtmain","mt-main","mtstable","mt-stable","mtops","mt-ops","mtadmin","mt-admin","mtchat","mt-chat","mtnet","mt-net","mtlink","mt-link","mthub","mt-hub","mtnode","mt-node","mtrelay","mt-relay","longrange","long-range","shortrange","short-range","medrange","med-range","ultralong","ultra-long","ultrafast","ultra-fast","ultraslow","ultra-slow","mediumfast","medium-fast","mediumslow","medium-slow","mediummod","medium-mod","turbofast","turbo-fast","turboslow","turbo-slow","lora","lo-ra","lorawan","lora-wan","loratest","lora-test","loradev","lora-dev","loranet","lora-net","loramesh","lora-mesh","loralink","lora-link","lorahub","lora-hub","loranode","lora-node","lora915","lora-915","lora868","lora-868","lora433","lora-433","sx1262","sx1276","sx1278","semtech","chirp","chirpstack","lorabeta","lora-beta","loraalpha","lora-alpha","loramain","lora-main","lorastable","lora-stable","loraops","lora-ops","loraadmin","lora-admin","lorachat","lora-chat","lorarelay","lora-relay","loragateway","lora-gateway","lorabridge","lora-bridge","lorarouter","lora-router","loraserver","lora-server","lorasensor","lora-sensor","loratrack","lora-track","loragps","lora-gps","loramap","lora-map","lorastatus","lora-status","loraping","lora-ping","loramon","lora-mon","loralog","lora-log","loradebug","lora-debug","lora923","lora-923","lora865","lora-865","lora470","lora-470","sx1261","sx1280","sx1268","sx126x","sx127x","sx128x","llcc68","lr1110","lr1120","lr1121","stm32wl","ra01","ra02","heltec","heltec-lora","ttgo","ttgo-lora","lilygo","lilygo-lora","rak","rak-lora","rak4631","rak3172","rak811","wisblock","test","testing","test1","test2","test3","test123","testchannel","test-channel","testnet","test-net","testmesh","test-mesh","dev","devel","develop","development","devtest","dev-test","sandbox","playground","scratch","temp","temporary","tmp","debug","debugging","diag","diagnostic","diagnostics","alpha","beta","gamma","canary","nightly","unstable","stable","experiment","experimental","trial","pilot","prototype","poc","test4","test5","test6","test7","test8","test9","test10","test01","test02","test03","test-1","test-2","test-3","testA","testB","testC","test-a","test-b","test-c","testing1","testing2","testing3","testing-1","testing-2","testing-3","devnet","dev-net","devmesh","dev-mesh","devchannel","dev-channel","stagenet","stage-net","staging","stage","stagetest","stage-test","qanet","qa-net","qa","qatest","qa-test","qachannel","qa-channel","labnet","lab-net","lab","labtest","lab-test","testlab","test-lab","benchnet","bench-net","benchmark","bench","perftest","perf-test","loadtest","load-test","stresstest","stress-test","smoketest","smoke-test","unittest","unit-test","integtest","integ-test","e2etest","e2e-test","mocknet","mock-net","mock","faker","dummy","sample","example","demonet","demo-net","demo","showcase","preview","prerelease","pre-release","release","rc","release-candidate","releasecandidate","final","production","emergency","emergencies","emer","emerg","911","999","112","sos","mayday","help","rescue","distress","urgent","priority","alert","alerts","warning","warnings","alarm","alarms","safety","safe","danger","hazard","caution","critical","evacuation","evac","evacuate","shelter","shelterinplace","shelter-in-place","lockdown","allclear","all-clear","fire","fires","wildfire","wildfires","brushfire","forestfire","flood","floods","flooding","flashflood","flash-flood","quake","earthquake","aftershock","tsunami","tremor","tornado","hurricane","cyclone","typhoon","storm","severe","missing","missingperson","missing-person","amber","silveralert","medical","medic","ems","ambulance","paramedic","firstaid","first-aid","police","sheriff","lawenforcement","law-enforcement","cert","cert-team","certteam","voad","redcross","red-cross","emergencynet","emergency-net","emergencychannel","emergency-channel","emeralert","emer-alert","sosnet","sos-net","soschannel","sos-channel","maydaynet","mayday-net","maydaychannel","mayday-channel","helpnet","help-net","helpchannel","help-channel","helpline","help-line","rescuenet","rescue-net","rescuechannel","rescue-channel","rescueteam","rescue-team","disaster","disasters","disasternet","disaster-net","disasterrelief","disaster-relief","crisis","crisisnet","crisis-net","crisischannel","crisis-channel","incident","incidentnet","incident-net","incidentchannel","incident-channel","alertnet","alert-net","alertchannel","alert-channel","alertsystem","alert-system","warningnet","warning-net","warningchannel","warning-channel","safetynet","safety-net","safetychannel","safety-channel","safetycheck","safety-check","hazardnet","hazard-net","hazardchannel","hazard-channel","hazmat","haz-mat","firenet","fire-net","firechannel","fire-channel","firefighter","fire-fighter","firedept","fire-dept","firehouse","fire-house","firestation","fire-station","wildfirenet","wildfire-net","wildfirechannel","wildfire-channel","campfire","camp-fire","structurefire","structure-fire","grassfire","grass-fire","floodnet","flood-net","floodchannel","flood-channel","floodwatch","flood-watch","floodwarning","flood-warning","highwater","high-water","risingwater","rising-water","earthquakenet","earthquake-net","earthquakechannel","earthquake-channel","tornadonet","tornado-net","tornadochannel","tornado-channel","hurricanenet","hurricane-net","hurricanechannel","hurricane-channel","stormnet","storm-net","stormchannel","storm-channel","severeweather","severe-weather","medicalnet","medical-net","medicalchannel","medical-channel","traumanet","trauma-net","traumachannel","trauma-channel","traumacenter","trauma-center","hospital","hospitals","clinic","clinics","urgent-care","urgentcare","poisoncontrol","poison-control","cpr-net","cprnet","lifesaver","life-saver","searchandrescue","search-and-rescue","sar","sarnet","sar-net","sarteam","sar-team","coastguard","coast-guard","uscg","lifeguard","life-guard","beachpatrol","beach-patrol","mountainrescue","mountain-rescue","caverescue","cave-rescue","swiftwater","swift-water","k9unit","k9-unit","searchdog","search-dog","rescuedog","rescue-dog","civildefense","civil-defense","fema","dhs","oem","eoc","eocnet","eoc-net","weather","wx","wxalert","wx-alert","wxwatch","wx-watch","wxwarning","wx-warning","wxreport","wx-report","wxupdate","wx-update","forecast","conditions","climate","temperature","temp","temps","rain","rainfall","precipitation","precip","snow","snowfall","wind","winds","windy","gust","gusts","breeze","humidity","humid","dewpoint","dew-point","barometer","pressure","sunny","cloudy","overcast","fog","foggy","mist","haze","smog","heat","heatwave","heat-wave","cold","coldsnap","cold-snap","freeze","lightning","thunder","thunderstorm","tstorm","t-storm","hail","sleet","ice","icy","blackice","black-ice","frost","noaa","nws","skywarn","spotter","spotters","stormspotter","weathernet","weather-net","weatherchannel","weather-channel","wxnet","wx-net","wxchannel","wx-channel","wxstation","wx-station","forecastnet","forecast-net","forecastchannel","forecast-channel","localwx","local-wx","localweather","local-weather","dailywx","daily-wx","hourlywx","hourly-wx","weeklyforecast","weekly-forecast","rainnet","rain-net","rainchannel","rain-channel","rainalert","rain-alert","rainwatch","rain-watch","rainwarning","rain-warning","heavyrain","heavy-rain","snownet","snow-net","snowchannel","snow-channel","snowalert","snow-alert","snowwatch","snow-watch","snowwarning","snow-warning","heavysnow","heavy-snow","blizzard","blizzardwatch","blizzard-watch","blizzardwarning","blizzard-warning","windnet","wind-net","windchannel","wind-channel","windalert","wind-alert","windwatch","wind-watch","windwarning","wind-warning","highwind","high-wind","tempnet","temp-net","tempchannel","temp-channel","tempalert","temp-alert","heatnet","heat-net","heatchannel","heat-channel","heatalert","heat-alert","heatwatch","heat-watch","heatwarning","heat-warning","extremeheat","extreme-heat","coldnet","cold-net","coldchannel","cold-channel","coldalert","cold-alert","coldwatch","cold-watch","coldwarning","cold-warning","extremecold","extreme-cold","winterstorm","winter-storm","icestorm","ice-storm","freezingrain","freezing-rain","thunderstormnet","thunderstorm-net","thunderstormwatch","thunderstorm-watch","thunderstormwarning","thunderstorm-warning","severethunderstorm","severe-thunderstorm","lightningnet","lightning-net","lightningchannel","lightning-channel","lightningalert","lightning-alert","lightningwatch","lightning-watch","tornadowatch","tornado-watch","tornadowarning","tornado-warning","hurricanewatch","hurricane-watch","hurricanewarning","hurricane-warning","tropicalstorm","tropical-storm","tropicaldepression","tropical-depression","stormwatch","storm-watch","stormwarning","storm-warning","stormalert","storm-alert","skywarnnet","skywarn-net","skywarnchannel","skywarn-channel","spotternetwork","spotter-network","stormchase","storm-chase","stormchaser","storm-chaser","amateurwx","amateur-wx","citizenwx","citizen-wx","pwswx","pws-wx","weatherstation","weather-station","wxstation","wx-station","metar","taf","status","stat","stats","statistics","metrics","health","healthcheck","monitor","monitoring","mon","watch","watcher","watchdog","uptime","downtime","outage","outages","incident","incidents","report","reports","reporting","update","updates","bulletin","announce","announcement","announcements","broadcast","broadcasts","notify","notification","notifications","ping","pong","heartbeat","check","checkin","check-in","checkout","check-out","rollcall","roll-call","statusnet","status-net","statuschannel","status-channel","statusupdate","status-update","statusreport","status-report","statuscheck","status-check","statusboard","status-board","monitornet","monitor-net","monitorchannel","monitor-channel","monitoringnet","monitoring-net","monitoringchannel","monitoring-channel","watchnet","watch-net","watchchannel","watch-channel","watchlist","watch-list","healthnet","health-net","healthchannel","health-channel","healthstatus","health-status","uptimenet","uptime-net","uptimechannel","uptime-channel","uptimemonitor","uptime-monitor","outagenet","outage-net","outagechannel","outage-channel","outagereport","outage-report","incidentnet","incident-net","incidentchannel","incident-channel","incidentreport","incident-report","incidentresponse","incident-response","alertsnet","alerts-net","alertschannel","alerts-channel","updatenet","update-net","updatechannel","update-channel","updatefeed","update-feed","bulletinnet","bulletin-net","bulletinchannel","bulletin-channel","bulletinboard","bulletin-board","noticeboard","notice-board","announcenet","announce-net","announcechannel","announce-channel","broadcastnet","broadcast-net","broadcastchannel","broadcast-channel","notifynet","notify-net","notifychannel","notify-channel","pingnet","ping-net","pingchannel","ping-channel","pingtest","ping-test","heartbeatnet","heartbeat-net","heartbeatchannel","heartbeat-channel","rollcallnet","rollcall-net","rollcallchannel","rollcall-channel","checkinnet","checkin-net","checkinchannel","checkin-channel","headcount","head-count","accountability","welfare","wellbeing","well-being","ops","operations","opsnet","ops-net","opschannel","ops-channel","admin","admins","administrator","root","superuser","sudo","control","command","cmd","hq","headquarters","base","basecamp","dispatch","dispatcher","coord","coordinate","coordination","tactical","tac","tacnet","tac-net","tacchannel","tac-channel","logistics","logi","supply","supplies","resource","resources","comms","comm","communications","radio","radionet","radio-net","opsteam","ops-team","opsgroup","ops-group","opscenter","ops-center","opsroom","ops-room","opsdesk","ops-desk","opslead","ops-lead","adminnet","admin-net","adminchannel","admin-channel","adminteam","admin-team","adminops","admin-ops","admingroup","admin-group","admindesk","admin-desk","controlnet","control-net","controlchannel","control-channel","controlroom","control-room","controlcenter","control-center","commandnet","command-net","commandchannel","command-channel","commandpost","command-post","commandcenter","command-center","hqnet","hq-net","hqchannel","hq-channel","hqops","hq-ops","dispatchnet","dispatch-net","dispatchchannel","dispatch-channel","dispatchcenter","dispatch-center","dispatchdesk","dispatch-desk","coordnet","coord-net","coordchannel","coord-channel","coordteam","coord-team","coordcenter","coord-center","coordinationcenter","coordination-center","tacops","tac-ops","tacteam","tac-team","tacgroup","tac-group","taccom","tac-com","taccomms","tac-comms","tacradio","tac-radio","logisticsnet","logistics-net","logisticschannel","logistics-channel","logisticsteam","logistics-team","logisticsops","logistics-ops","supplynet","supply-net","supplychannel","supply-channel","supplychain","supply-chain","resourcenet","resource-net","resourcechannel","resource-channel","commsnet","comms-net","commschannel","comms-channel","commsteam","comms-team","commsops","comms-ops","commscheck","comms-check","commstest","comms-test","radioops","radio-ops","radioteam","radio-team","radiocheck","radio-check","netcontrol","net-control","netops","net-ops","noc","nocnet","noc-net","info","information","infochannel","info-channel","fyi","news","newsfeed","news-feed","headlines","breaking","latest","traffic","trafficreport","traffic-report","roadconditions","road-conditions","transit","bus","train","subway","metro","commute","commuter","events","calendar","schedule","agenda","upcoming","whats-on","infonet","info-net","infohub","info-hub","infodesk","info-desk","infoboard","info-board","infopoint","info-point","infoline","info-line","newsnet","news-net","newschannel","news-channel","newshub","news-hub","newsdesk","news-desk","newsroom","news-room","newsflash","news-flash","breakingnews","breaking-news","latestnews","latest-news","topnews","top-news","localnews","local-news","regionalnews","regional-news","worldnews","world-news","trafficnet","traffic-net","trafficchannel","traffic-channel","trafficupdate","traffic-update","trafficalert","traffic-alert","roadnet","road-net","roadchannel","road-channel","roadupdate","road-update","transitnet","transit-net","transitchannel","transit-channel","transitupdate","transit-update","transitalert","transit-alert","busnet","bus-net","buschannel","bus-channel","busupdate","bus-update","trainnet","train-net","trainchannel","train-channel","trainupdate","train-update","subwaynet","subway-net","subwaychannel","subway-channel","metronet","metro-net","metrochannel","metro-channel","metroupdate","metro-update","commuternet","commuter-net","commuterchannel","commuter-channel","eventsnet","events-net","eventschannel","events-channel","eventshub","events-hub","eventcalendar","event-calendar","localevents","local-events","calendarnet","calendar-net","calendarchannel","calendar-channel","schedulenet","schedule-net","schedulechannel","schedule-channel","agendanet","agenda-net","agendachannel","agenda-channel","upcomingnet","upcoming-net","upcomingchannel","upcoming-channel","location","locations","gps","position","positions","coordinates","track","tracker","tracking","trace","tracer","tracing","beacon","beacons","waypoint","waypoints","checkpoint","checkpoints","geofence","geolocation","geo","mapping","maps","navigate","navigation","locationnet","location-net","locationchannel","location-channel","locationtrack","location-track","locationshare","location-share","gpsnet","gps-net","gpschannel","gps-channel","gpstrack","gps-track","gpsshare","gps-share","gpslog","gps-log","gpsdata","gps-data","positionnet","position-net","positionchannel","position-channel","positiontrack","position-track","positionshare","position-share","coordnet","coord-net","coordchannel","coord-channel","coordshare","coord-share","tracknet","track-net","trackchannel","track-channel","trackshare","track-share","trackingnet","tracking-net","trackingchannel","tracking-channel","tracernet","tracer-net","tracerchannel","tracer-channel","beaconnet","beacon-net","beaconchannel","beacon-channel","beacontrack","beacon-track","beaconshare","beacon-share","waypointnet","waypoint-net","waypointchannel","waypoint-channel","waypointshare","waypoint-share","waypointlog","waypoint-log","checkpointnet","checkpoint-net","checkpointchannel","checkpoint-channel","geofencenet","geofence-net","geofencechannel","geofence-channel","geofencealert","geofence-alert","geozonenet","geozone-net","geonet","geo-net","geochannel","geo-channel","geotrack","geo-track","mappingnet","mapping-net","mappingchannel","mapping-channel","mapnet","map-net","mapchannel","map-channel","mapshare","map-share","navnet","nav-net","navchannel","nav-channel","navtrack","nav-track","navigationnet","navigation-net","navigationchannel","navigation-channel","fleettrack","fleet-track","fleetnet","fleet-net","assettrack","asset-track","whereis","where-is","findme","find-me","locateme","locate-me","nocap","no-cap","frfr","fr-fr","bussin","sheesh","slay","slaps","goated","goat","goats","based","cringe","mid","lowkey","highkey","vibe","vibes","vibing","vibecheck","vibe-check","goodvibes","good-vibes","sus","sussy","sussy-baka","imposter","amongus","among-us","bet","bets","yeet","yeeted","yoink","skibidi","rizz","ohio","bruh","bruv","fam","bestie","besties","squad","squadgoals","squad-goals","slayyy","periodt","purr","queen","king","icon","iconic","legend","main-character","maincharacter","npc","npcs","side-quest","sidequest","understood-the-assignment","ate","served","mother","mothering","rent-free","rentfree","living-rent-free","touch-grass","touchgrass","copium","hopium","doom","doomer","bloomer","zoomer","zoomers","ratio","ratiod","caught-in-4k","receipts","tea","spillthetea","spill-the-tea","simp","simping","stan","stanning","oomf","moots","mutuals","tiktok","fyp","foryou","for-you","foryoupage","trending","viral","cheugy","basic","pick-me","pickme","girlboss","girl-boss","iykyk","iyky","ifykyk","valid","hits-different","hitsdifferent","unhinged","chaotic","feral","unalive","delulu","delusion","bereal","be-real","dump","photodump","photo-dump","core","coded","aesthetic","cottagecore","darkacademia","dark-academia","goblinmode","goblin-mode","softlaunch","soft-launch","hardlaunch","hard-launch","ngl","tbh","ong","on-god","ongod","deadass","dead-ass","fr","real","cap","capping","no-cap-fr","nocapfr","respectfully","allegedly","understood","assignment","ate-that","atethat","devoured","cleared","snatched","slayed","bodied","ended","finished","done","over","deceased","screaming","crying","sobbing","im-weak","imweak","sending-me","sendingme","its-giving","itsgiving","giving","serve","serving","ate-left-no-crumbs","main","protagonist","background-character","backgroundcharacter","side-character","sidecharacter","villain-era","villainera","redemption-arc","character-development","characterdevelopment","plot-twist","plottwist","lore","lore-drop","loredrop","deep-lore","deeplore","canon","fanon","ick","icks","red-flag","redflag","green-flag","greenflag","beige-flag","situationship","talking-stage","talkingstage","roster","rotation","era","eras","villain-arc","healing-era","flop-era","flopping","ate-and-left","understood-assignment","no-thoughts","nothoughts","brain-rot","brainrot","rotted","chronically-online","chronicallyonline","parasocial","hyperfixation","hyperfixating","special-interest","infodump","info-dump","infodumping","yapping","yap","yapper","glazing","glaze","glazer","meat-riding","meatriding","dickriding","aura","aura-points","aurapoints","negative-aura","positiveaura","sigma","sigma-grindset","sigmagrindset","alpha","beta","omega","mewing","mew","looksmax","looksmaxxing","mogging","mog","mogger","gyat","gyatt","bussin-bussin","respectfully-disrespectfully","real-ones","realones","day-ones","dayones","ride-or-die","rideordie","caught-lacking","caughtlacking","down-bad","downbad","down-tremendous","downhorrendous","down-horrendous","astronomically-down","abysmal","its-joever","joever","its-so-over","we-are-so-back","weareback","lock-in","lockin","locked-in","lockedin","locked-tf-in","cooked","cooking","cookin","chef","michelin","gourmet","fr-ong","frong","no-diddy","nodiddy","pause","unpause","resume","edging","edged","gooning","gooned","fanum-tax","fanumtax","hawk-tuah","hawktuah","kai-cenat","speed","ishowspeed","prime","adulting","adult","grown","grownup","grown-up","oldmillennial","avocadotoast","avocado-toast","brunch","brunching","mimosas","doggo","doggie","pupper","puppers","floof","chonk","chonky","birb","smol","smoll","smolbean","smol-bean","boop","snoot","blep","mlem","feels","allthefeels","all-the-feels","rightinthefeels","right-in-the-feels","mood","bigmood","big-mood","sadboi","sad-boi","sadgirl","sad-girl","aesthetic","vsco","vsco-girl","vscogirl","sksksk","andioop","and-i-oop","netflix","netflixandchill","netflix-and-chill","binge","bingewatch","throwback","tbt","throwbackthursday","throwback-thursday","flashback","nostalgia","nostalgic","90skid","90s-kid","80skid","80s-kid","pokemon","pikachu","nintendo","zelda","mario","sonic","sega","harrypotter","harry-potter","hogwarts","hufflepuff","gryffindor","slytherin","ravenclaw","muggle","potterhead","potter-head","starwars","star-wars","jedi","sith","mandalorian","mando","yoda","marvel","mcu","avengers","thanos","ironman","iron-man","spiderman","lotr","lordoftherings","lord-of-the-rings","hobbit","gandalf","frodo","gameofthrones","game-of-thrones","got","thrones","winteriscoming","nailed-it","nailedit","winning","fail","fails","epic","epicfail","fml","yolo","swag","swagger","legit","literally","literally-cant","cant-even","canteven","dying","dead","imdead","im-dead","deceased","goals","lifegoals","life-goals","relationshipgoals","relationship-goals","bae","babe","babes","hubby","wifey","fiance","soulmate","soul-mate","foodporn","food-porn","foodie","nomnom","nom-nom","yummy","delish","wanderlust","travelbug","travel-bug","jetset","jet-set","jetsetter","selfie","selfies","selfietime","selfie-time","groupie","photobomb","blessed","grateful","thankful","humbled","mindblown","mind-blown","extra","salty","shook","triggered","woke","cancelled","cancel","ghosting","ghosted","ghost","friendzone","friend-zone","friendzoned","shade","throwing-shade","tea","spill","spilltea","spill-tea","savage","clap-back","clapback","drag","dragged","read","receipts","tfw","mfw","mrw","dae","eli5","tldr","tl-dr","ama","iama","reddit","redditor","upvote","downvote","karma","cakeday","cake-day","meme","memes","dank","dankmemes","dank-memes","memelord","meme-lord","oldmillenial","xennial","geriatricmillennial","geriatric-millennial","youngmillennial","young-millennial","eldermillennial","elder-millennial","millennialproblems","millennial-problems","millenniallife","millennial-life","firstworldproblems","first-world-problems","struggle","struggles","thestruggle","broke","brokemillennial","broke-millennial","studentloans","student-loans","sidehustle","side-hustle","hustleculture","hustle-culture","grind","grinding","worklifebalance","work-life-balance","burnout","burn-out","selfcare","self-care","treatyoself","treat-yo-self","treatyourself","indulgence","splurge","athleisure","leggings","yoga","yogapants","yoga-pants","pilates","kale","quinoa","acai","matcha","oatmilk","oat-milk","plantbased","plant-based","glutenfree","gluten-free","organic","nongmo","non-gmo","farmtotable","farm-to-table","craftbeer","craft-beer","craftcocktails","craft-cocktails","speakeasy","rooftopbar","rooftop-bar","happyhour","happy-hour","winenight","wine-night","tacotuesday","taco-tuesday","pizzanight","pizza-night","takeout","take-out","doordash","ubereats","uber-eats","grubhub","postmates","instacart","plantmom","plant-mom","plantdad","plant-dad","plantparent","plant-parent","crazycatlady","crazy-cat-lady","dogmom","dog-mom","dogdad","dog-dad","furbaby","fur-baby","furbabies","rescuedog","rescue-dog","adoptdontshop","engagement","engaged","shesaidyes","she-said-yes","weddingplanning","wedding-planning","bridesquad","bride-squad","groomsmen","bachelorette","bachelor","honeymoon","firsthome","first-home","homeowner","home-owner","housegoals","house-goals","diy","diyer","fixer-upper","fixerupper","hgtv","pinterestfail","pinterest-fail","netflix-queue","netflixqueue","bingeing","binge-watching","streamingwars","truecrimeobsessed","true-crime-obsessed","truecrime","true-crime","murderino","podcastaddict","podcast-addict","serialpodcast","serial-podcast","officelife","office-life","corporatelife","corporate-life","cubicle","openoffice","slack","slackchannel","slack-channel","zoomlife","zoom-life","zoommeetings","wfh","workfromhome","work-from-home","remotework","remote-work","hybridwork","quietquitting","quiet-quitting","thegreatresignation","thegreatreshuffling","sundayscaries","sunday-scaries","mondaymotivation","monday-motivation","humpday","hump-day","tgif","fridayfeeling","friday-feeling","fridayvibes","itstheweekend","weekendvibes","weekend-vibes","weekendmode","weekend-mode","lol","lmao","lmfao","rofl","roflmao","omg","wtf","ftw","smh","tbh","icymi","fomo","jomo","fwiw","imho","imo","brb","gtg","ttyl","nbd","idk","idgaf","stfu","nsfw","tmi","btw","afaik","iirc","ymmv","ianal","whatever","whatev","whatevs","meh","blah","ugh","duh","psych","noway","no-way","asif","as-if","getreal","get-real","talktotheh","talk-to-the-hand","nottt","not","sike","syke","psyche","gnarly","rad","radical","tubular","bodacious","righteous","excellent","bogus","heinous","grody","gag-me","gagme","barf","barfbag","gross","dude","dudes","dudette","bro","bros","broski","homie","homies","homes","peeps","posse","crew","gang","clique","tribe","chill","chillax","chillaxin","chilling","chillin","kickin","kickback","kick-back","hangout","hang-out","hangtime","hang-time","couch","couchpotato","couch-potato","vegging","veggingout","vegging-out","slacker","slackers","slack","slacking","procrastinate","procrastinating","grunge","grungy","alternative","alt","indie","underground","mtv","vh1","headbangers","headbanging","moshing","moshpit","mosh-pit","nirvana","cobain","soundgarden","pearljam","pearl-jam","aliceinchains","beavis","butthead","beavisandbutthead","daria","simpsons","bartman","waynesworld","waynes-world","partyon","party-on","schwing","excellent","billted","bill-ted","bogusjourney","bogus-journey","stationn","ferris","ferrisbueller","ferris-bueller","dayoff","day-off","buellerr","breakfast-club","breakfastclub","sixteen-candles","sixteencandles","pretty-in-pink","prettyinpink","mollyringwald","molly-ringwald","johnhughes","john-hughes","hughes","brat-pack","bratpack","pager","beeper","pagenme","page-me","callme","call-me","hitmeup","snailmail","snail-mail","aol","aim","icq","uh-oh","a-s-l","asl","netscape","geocities","angelfire","tripod","webcrawler","askjeeves","gen-x","genx","genxer","gen-xer","xer","xers","forgottengeneration","latchkeykid","latchkey-kid","latchkey","unsupervised","freerange","free-range","mtv-generation","mtvgeneration","mtvkids","mtv-kids","videokilled","video-killed","reagan-era","reaganera","coldwar","cold-war","coldwarkids","cold-war-kids","afterschoolspecial","after-school-special","justdontdoit","saynotodrugs","dareprogram","dare-program","scared-straight","scaredstraight","whatcha-talkin-bout","diffrentstrokes","factsoflife","facts-of-life","familyties","family-ties","growinpains","growin-pains","cosby","cheers","thirtysomething","thirty-something","madaboutyou","mad-about-you","seinfeld","seinfeldian","kramers","masterofyourdomain","yada-yada-yada","friends","centralpark","central-perk","rachel","ross","chandler","monica","melrose","melroseplace","melrose-place","90210","beverlyhills90210","myso-called-life","mysocalledlife","angela","jordan-catalano","jordancatalano","freaksandgeeks","freaks-and-geeks","lindsay","undeclared","realworld","real-world","truestory","true-story","roadrules","road-rules","unplugged","mtv-unplugged","mtvunplugged","acoustic","coffehouse","grunge-era","grungeera","seattlesound","seattle-sound","subpop","sub-pop","smellsliketeenspirit","smells-like-teen-spirit","nevermind","bleach","ten","superunknown","dirt","facelift","jaroffies","jar-of-flies","greenday","green-day","dookie","basketcase","basket-case","wheniseptember","blink182","blink-182","enema","whats-my-age-again","allthesmallthings","sublime","santeria","wrongway","wrong-way","40oz","forty-oz","rage","ratm","rageagainstthemachine","killinginthename","bulls-on-parade","tool","lateralus","aenima","undertow","opiate","spiralout","spiral-out","nineinchnails","nine-inch-nails","nin","closer","headlikeahole","smashingpumpkins","smashing-pumpkins","siamesedream","mellon-collie","radiohead","okcomputer","ok-computer","creep","karma-police","paranoidandroid","beck","loser","odelay","whereitsat","where-its-at","twoturnstables","pulpfiction","pulp-fiction","royalewithcheese","saywhatagain","ezekiel","clerks","viewaskew","view-askew","jayandsilentbob","snootchie","officespace","office-space","tpsreports","tps-reports","piecesofflair","thematrix","the-matrix","redpill","bluepill","neo","morpheus","followthewhiterabbit","fightclub","fight-club","firstrandbeof","projectmayhem","tylerdurden","xfiles","x-files","mulderandscully","thetruthisoutthere","iwanttobelieve","buffy","buffythevampireslayer","buffy-tvs","scoobygang","sunnydale","groovy","far-out","farout","outtasite","outta-sight","righteous","cool","coolio","coolcat","cool-cat","coolbeans","cool-beans","neato","solid","solidgold","solid-gold","golden","goldies","oldies","classics","keen","swell","peachy","peachykeen","peachy-keen","hunky-dory","hunkydory","hip","hipster","hipcat","hip-cat","hep","hepcat","hep-cat","jazzy","square","squares","squaresville","uptight","uncool","unhip","bread","dough","moolah","bucks","clams","greenbacks","benjamins","pad","crib","digs","joint","spot","place","casa","hacienda","wheels","ride","whip","jalopy","hooptie","beater","clunker","oldtimer","old-timer","oldschool","old-school","vintage","retro","classic","backyard","frontporch","front-porch","patio","deck","garage","workshop","hamshack","ham-shack","radioshack","radio-shack","basement","attic","lodge","elks","moose","eagles","vfw","legion","american-legion","rotary","kiwanis","lions","shriners","masons","masonic","fraternal","church","chapel","parish","congregation","fellowship","ministry","sunday","sabbath","potluck","pot-luck","social","supper","supperclub","bridge","bridgeclub","bridge-club","cards","cardgame","card-game","bingo","bunco","poker","pokernight","poker-night","gamenight","game-night","bowling","bowlingalley","bowling-alley","bowlingleague","bowling-league","golf","golfclub","golf-club","teeoff","tee-off","links","fairway","fishing","fishinghole","fishing-hole","fishingbuddy","fishing-buddy","hunting","huntingcamp","hunting-camp","deercamp","deer-camp","cabin","rv","rvclub","rv-club","camper","campground","koa","goodsam","good-sam","snowbird","snowbirds","sunbird","sunbirds","winter-texan","wintertexan","retired","retirement","goldenage","golden-age","goldenyears","golden-years","aarp","seniors","seniormoments","senior-moments","grandkids","grandchildren","boomer","boomers","babyboomer","baby-boomer","babyboomers","baby-boomers","woodstock","woodstocknation","woodstock-nation","hippie","hippies","hippy","peacelove","peace-love","peacesign","peace-sign","makelovenotowar","flowerpower","flower-power","flowerchild","flower-child","summerofove","counterculture","counter-culture","freebird","free-bird","freespirit","tune-in-turn-on","dropmeout","trippingout","tripping-out","psychedelic","grateful-dead","gratefuldead","deadhead","dead-head","deadheads","beatles","beatlemania","fab-four","fabfour","johnpaugeorgeringo","rollingstones","rolling-stones","stones","jagger","keithrichards","thewho","the-who","mygeneration","my-generation","tommyboy","ledzeppelin","led-zeppelin","zeppelin","stairway","stairwaytoheaven","pinkfloyd","pink-floyd","thewall","the-wall","darkside","darksidemoon","doors","thedoors","jimmorrison","jim-morrison","lightmyfire","riders","hendrix","jimi","jimihendrix","purplehaze","purple-haze","voodoo-child","janis","janisjoplin","janis-joplin","mercedesbenz","piecemyheart","ccr","creedence","creedence-clearwater","fortunateson","badmoonrising","eagles","hotelcalifornia","hotel-california","desperado","takiteasy","fleetwood","fleetwoodmac","fleetwood-mac","rumours","dreams","thchain","carlysimon","carly-simon","youresovain","anticipation","simongarfunkel","simon-garfunkel","soundofsilence","bridgeovertroubledwater","caroleking","carole-king","tapestry","youvegotafriend","naturalwoman","crosbystillsnash","crosby-stills-nash","csny","suite-judy-blue-eyes","vietnam","vietnamera","vietnam-era","vietnamvet","vietnam-vet","napalm","civilrights","civil-rights","mlk","martin-luther-king","ihaveadream","moonlanding","moon-landing","apollo","apollo11","onesmallstep","jfk","kennedy","camelot","asknotwhat","cubanmissilecrisis","coldwars","watergate","nixon","rosemarywoods","18minutes","deepthroat","mash","allinthefamily","all-in-the-family","archie","archiebunker","happydays","happy-days","fonzie","thfonz","aaayyyy","jumptheshark","laverne-shirley","laverneshirley","schlemiel","schlimazel","marytylermore","mary-tyler-moore","rhoda","lou-grant","lourant","bobnehart","bob-newhart","newhart","hiimbob","thisislarrybrother","sanford-son","sanfordandson","bigdummy","elizabethimcoming","jeffersons","thejeffersons","movingonup","moving-on-up","deluxe","goodtimes","good-times","dynomite","dy-no-mite","jj","chico-man","chicoman","chicoandtheman","lookingfordwardo","kolchak","nightstalker","night-stalker","barnaby","barnabyjones","columbo","onmorething","one-more-thing","justonemorething","magnum","magnumpi","magnum-pi","selleck","tomelleck","ferrari308","rockfordfiles","rockford-files","jimrockford","answeringmachine","dallastv","dallas-tv","whoshotjr","who-shot-jr","ewingsouthfork","dynasty","alexis","crystalcarrington","catfight","shoulderpads","sixmilliondollarman","bionicwoman","bionic-woman","wecanrebuildhim","the","be","to","of","and","a","in","that","have","i","it","for","not","on","with","he","as","you","do","at","this","but","his","by","from","they","we","say","her","she","or","an","will","my","one","all","would","there","their","what","so","up","out","if","about","who","get","which","go","me","when","make","can","like","time","no","just","him","know","take","people","into","year","your","good","some","could","them","see","other","than","then","now","look","only","come","its","over","think","also","back","after","use","two","how","our","work","first","well","way","even","new","want","because","any","these","give","day","most","us","is","are","was","were","been","good","bad","great","best","worst","first","last","next","only","own","free","open","close","closed","new","old","young","big","small","little","long","short","high","low","fast","slow","quick","hot","cold","warm","cool","hard","soft","easy","difficult","simple","complex","clear","dark","light","bright","deep","shallow","wide","narrow","thick","thin","heavy","full","empty","clean","dirty","wet","dry","loud","quiet","silent","strong","weak","rich","poor","cheap","expensive","safe","dangerous","healthy","sick","happy","sad","angry","calm","busy","lazy","crazy","smart","stupid","clever","wise","dumb","funny","serious","strange","normal","weird","perfect","broken","whole","complete","partial","ready","active","passive","alive","dead","awake","asleep","aware","blind","bold","brave","calm","careful","certain","chief","common","curious","current","direct","double","early","entire","exact","extra","fair","false","famous","final","fine","firm","flat","former","forward","fresh","front","frozen","general","giant","global","golden","grand","green","gross","guilty","hidden","hollow","honest","huge","human","humble","hungry","ideal","ill","inner","instant","intense","internal","joint","just","keen","key","kind","known","large","late","latter","leading","legal","likely","limited","linear","liquid","live","living","local","logical","lonely","loose","lost","lovely","lower","lucky","mad","magic","main","major","male","female","manual","married","massive","master","maximum","mean","medium","mental","middle","military","minimum","minor","missing","mixed","mobile","modern","monthly","moral","mutual","naked","narrow","nasty","native","natural","nearby","neat","negative","nervous","neutral","next","nice","noble","noisy","normal","northern","novel","obvious","odd","official","ok","okay","olympic","only","open","opening","opposite","optional","orange","ordinary","organic","original","other","outdoor","outer","outside","overall","overseas","owing","own","pale","parallel","partial","particular","past","patient","peaceful","peculiar","permanent","personal","petty","physical","pink","plain","pleasant","plenty","plus","pointed","polite","political","popular","positive","possible","potential","powerful","practical","precious","precise","pregnant","present","presidential","pretty","previous","primary","prime","principal","prior","private","probable","productive","professional","profound","progressive","prominent","proper","prospective","protective","proud","provincial","psychological","public","pure","purple","qualified","quick","quiet","radical","random","rapid","rare","raw","ready","real","realistic","reasonable","recent","red","redundant","regional","regular","relative","relevant","reliable","religious","reluctant","remaining","remarkable","remote","representative","resident","resistant","respective","responsible","resulting","revolutionary","rich","ridiculous","right","rigid","rising","risky","rival","romantic","rough","round","royal","ruling","running","rural","sacred","sad","safe","salty","same","sample","go","come","get","give","take","make","do","say","see","look","find","use","tell","ask","work","seem","feel","try","leave","call","keep","let","begin","start","show","hear","play","run","move","live","believe","hold","bring","happen","write","provide","sit","stand","lose","pay","meet","include","continue","set","learn","change","lead","understand","watch","follow","stop","create","speak","read","allow","add","spend","grow","open","walk","win","offer","remember","love","consider","appear","buy","wait","serve","die","send","expect","build","stay","fall","cut","reach","kill","remain","suggest","raise","pass","sell","require","report","decide","pull","break","push","throw","catch","jump","kick","hit","fly","swim","drive","ride","climb","dance","sing","cook","eat","drink","sleep","wake","wash","dress","fight","help","save","teach","study","test","check","join","connect","link","share","post","send","receive","accept","reject","approve","deny","confirm","cancel","reset","restart","refresh","reload","update","upgrade","install","uninstall","download","upload","sync","backup","restore","recover","repair","fix","solve","resolve","complete","finish","time","year","people","way","day","man","woman","child","world","life","hand","part","place","case","week","company","system","program","question","work","government","number","night","point","home","water","room","mother","area","money","story","fact","month","lot","right","study","book","eye","job","word","business","issue","side","kind","head","house","service","friend","father","power","hour","game","line","end","member","law","car","city","community","name","president","team","minute","idea","kid","body","information","back","parent","face","others","level","office","door","health","person","art","war","history","party","result","change","morning","reason","research","girl","guy","moment","air","teacher","force","education","hello","hi","hey","hola","bonjour","ciao","aloha","howdy","greetings","welcome","goodbye","bye","farewell","later","peace","cheers","thanks","thankyou","thank-you","please","sorry","excuse","pardon","congrats","congratulations","bravo","wow","amazing","awesome","cool","nice","great","excellent","perfect","wonderful","fantastic","incredible","unbelievable","omg","wtf","lol","lmao","rofl","haha","hehe","xoxo","hugs","kisses","python","javascript","typescript","java","csharp","cpp","cplusplus","golang","go-lang","rust","rustlang","rust-lang","ruby","php","perl","swift","kotlin","scala","haskell","lisp","clojure","erlang","elixir","fsharp","ocaml","lua","r-lang","rlang","julia","dart","fortran","cobol","assembly","asm","wasm","webassembly","sql","nosql","graphql","mongodb","postgres","postgresql","mysql","mariadb","sqlite","redis","memcached","cassandra","dynamodb","firebase","supabase","prisma","sequelize","typeorm","react","reactjs","react-native","reactnative","angular","angularjs","vue","vuejs","svelte","sveltekit","nextjs","next-js","nuxt","nuxtjs","gatsby","remix","astro","solid","solidjs","preact","qwik","htmx","alpine","tailwind","tailwindcss","bootstrap","bulma","foundation","materialui","chakra","antd","ant-design","shadcn","radix","headlessui","daisyui","nodejs","node-js","deno","bun","express","fastify","koa","nestjs","django","flask","fastapi","rails","rubyonrails","laravel","symfony","spring","springboot","spring-boot","dotnet","aspnet","blazor","maui","electron","tauri","flutter","ionic","capacitor","cordova","xamarin","unity","unreal","godot","pygame","phaser","threejs","three-js","babylon","webpack","vite","rollup","parcel","esbuild","swc","babel","eslint","prettier","jest","vitest","mocha","jasmine","cypress","playwright","selenium","puppeteer","storybook","chromatic","ladle","histoire","docker","kubernetes","k8s","k3s","minikube","helm","istio","envoy","podman","containerd","crio","rancher","openshift","nomad","consul","terraform","pulumi","crossplane","ansible","puppet","chef","saltstack","vagrant","packer","vault","boundary","waypoint","atlantis","argocd","argo-cd","fluxcd","flux-cd","jenkins","circleci","travisci","travis-ci","github-actions","githubactions","gitlab-ci","gitlabci","bitbucket-pipelines","azure-devops","azuredevops","teamcity","bamboo","drone","tekton","spinnaker","aws","amazon","azure","gcp","google-cloud","googlecloud","digitalocean","linode","vultr","hetzner","ovh","scaleway","upcloud","heroku","vercel","netlify","cloudflare","fastly","akamai","cloudfront","railway","render","fly-io","flyio","deno-deploy","workers","cloudflare-workers","lambda","serverless","faas","paas","iaas","saas","baas","kaas","daas","nginx","apache","caddy","traefik","haproxy","envoy","kong","apisix","grafana","prometheus","loki","tempo","jaeger","zipkin","datadog","newrelic","splunk","elastic","elasticsearch","kibana","logstash","elk","fluentd","fluentbit","vector","telegraf","influxdb","timescaledb","questdb","pagerduty","opsgenie","victorops","statuspage","incident-io","rootly","ai","artificial-intelligence","ml","machine-learning","machinelearning","deep-learning","deeplearning","neural","neuralnet","neural-network","tensorflow","pytorch","keras","jax","flax","scikit","sklearn","scipy","numpy","pandas","matplotlib","seaborn","plotly","bokeh","altair","huggingface","hugging-face","transformers","diffusers","datasets","openai","gpt","gpt4","gpt-4","chatgpt","chat-gpt","claude","anthropic","gemini","bard","palm","llama","llama2","llama-2","mistral","mixtral","falcon","mpt","dolly","alpaca","vicuna","orca","phi","zephyr","yi","qwen","deepseek","codellama","code-llama","starcoder","codegen","copilot","cursor","tabnine","codeium","replit","sourcegraph","cody","continue","langchain","llamaindex","llama-index","autogpt","auto-gpt","babyagi","agentgpt","superagi","crewai","autogen","semantic-kernel","guidance","ollama","lmstudio","lm-studio","localai","local-ai","gpt4all","koboldai","oobabooga","text-generation-webui","vllm","tgi","triton","tensorrt","stable-diffusion","stablediffusion","midjourney","dalle","dall-e","imagen","sdxl","controlnet","lora","dreambooth","textual-inversion","automatic1111","comfyui","invokeai","fooocus","kohya","runpod","replicate","banana","modal","anyscale","ray","mlflow","weights-biases","wandb","comet","neptune","clearml","dvc","lakefs","pachyderm","kubeflow","mlrun","seldon","bentoml","mlserver","torchserve","triton-inference","sagemaker","vertex","azure-ml","databricks","snowflake","dbt","airbyte","fivetran","security","cybersec","infosec","netsec","appsec","devsecops","secops","hacking","hacker","hackers","pentest","pentesting","redteam","red-team","blueteam","blue-team","purpleteam","purple-team","bugbounty","bug-bounty","ctf","capture-the-flag","wargames","hackthebox","tryhackme","picoctf","overthewire","vulnhub","exploit","exploits","exploit-db","cve","nvd","mitre","attck","att-ck","owasp","sans","nist","iso27001","soc2","gdpr","hipaa","pci","pci-dss","compliance","audit","forensics","malware","ransomware","trojan","virus","worm","rootkit","botnet","phishing","spearphishing","whaling","vishing","smishing","social-eng","osint","recon","reconnaissance","footprinting","scanning","enumeration","privilege-escalation","privesc","lateral-movement","persistence","exfil","firewall","ids","ips","waf","siem","soar","edr","xdr","mdr","ndr","vpn","proxy","tor","onion","i2p","freenet","darknet","darkweb","encryption","decryption","cipher","hash","hashing","sha","md5","bcrypt","argon2","scrypt","aes","rsa","ecc","ecdsa","ed25519","curve25519","ssl","tls","https","certificates","pki","x509","acme","letsencrypt","oauth","oauth2","oidc","saml","jwt","tokens","sessions","cookies","mfa","2fa","totp","hotp","fido","fido2","webauthn","passkeys","biometrics","password","passwords","passphrase","keychain","vault","secrets","keys","nmap","masscan","zmap","shodan","censys","greynoise","binaryedge","burp","burpsuite","zap","owasp-zap","nikto","sqlmap","metasploit","cobalt-strike","cobaltstrike","empire","covenant","sliver","mythic","mimikatz","bloodhound","responder","impacket","crackmapexec","evil-winrm","hashcat","john","johntheripper","hydra","medusa","aircrack","aircrack-ng","wireshark","tcpdump","tshark","scapy","ettercap","bettercap","mitmproxy","ghidra","ida","radare2","r2","binary-ninja","hopper","cutter","x64dbg","immunity","ollydbg","gdb","lldb","windbg","frida","objection","cycript","blockchain","crypto","cryptocurrency","defi","de-fi","cefi","ce-fi","bitcoin","btc","ethereum","eth","solana","sol","cardano","ada","polkadot","dot","avalanche","avax","polygon","matic","arbitrum","arb","optimism","op","base","zksync","zk-sync","starknet","scroll","linea","cosmos","atom","osmosis","osmo","celestia","tia","injective","inj","near","nearprotocol","aptos","apt","sui","mina","algorand","algo","tezos","xtz","hedera","hbar","fantom","ftm","harmony","one","elrond","egld","flow","icp","internet-computer","filecoin","fil","arweave","ar","storj","sia","akash","akt","render","rndr","chainlink","link","thegraph","grt","api3","band","uma","tellor","uniswap","uni","sushiswap","sushi","pancakeswap","cake","curve","crv","aave","compound","comp","makerdao","maker","mkr","dai","synthetix","lido","steth","rocketpool","reth","frax","convex","cvx","yearn","yfi","dydx","gmx","perpetual","perp","vertex","hyperliquid","drift","opensea","blur","looksrare","x2y2","sudoswap","nftx","rarible","foundation","nft","nfts","pfp","generative","ordinals","inscriptions","brc20","brc-20","wallet","wallets","metamask","phantom","rainbow","rabby","frame","zerion","ledger","trezor","coldcard","bitbox","keystone","hardware-wallet","seed","seedphrase","seed-phrase","mnemonic","private-key","privatekey","mining","miner","miners","hashrate","hash-rate","pow","pos","dpos","staking","stake","validator","validators","delegation","slashing","gas","gwei","eip","eip1559","erc20","erc721","erc1155","erc4626","dao","daos","governance","proposal","voting","snapshot","tally","multisig","multi-sig","gnosis","safe","timelock","vesting","airdrop","hardware","electronics","circuits","pcb","breadboard","soldering","arduino","esp32","esp8266","stm32","teensy","pico","rp2040","attiny","raspberrypi","raspberry-pi","rpi","rpi4","rpi5","rpi-zero","rpizero","beaglebone","beagle-bone","orangepi","orange-pi","bananapi","banana-pi","jetson","nvidia-jetson","nano","xavier","orin","coral","edge-tpu","fpga","verilog","vhdl","systemverilog","chisel","myhdl","amaranth","xilinx","altera","intel-fpga","lattice","gowin","efinix","anlogic","asic","risc","risc-v","riscv","arm","arm64","aarch64","x86","x64","mips","powerpc","sparc","xtensa","avr","pic","msp430","8051","microcontroller","mcu","soc","cpu","gpu","npu","tpu","dpu","ipu","memory","ram","dram","sram","flash","eeprom","rom","nvram","mram","ssd","nvme","hdd","storage","raid","nas","san","das","iscsi","usb","usb-c","thunderbolt","pcie","sata","nvlink","hdmi","displayport","ethernet","wifi","bluetooth","ble","zigbee","zwave","thread","matter","lora","lorawan","sigfox","nbiot","nb-iot","lte-m","catm1","5g","4g","antenna","antennas","rf","sdr","rtl-sdr","hackrf","limesdr","pluto","oscilloscope","logic-analyzer","multimeter","power-supply","signal-gen","3dprinter","3d-printer","3dprinting","fdm","sla","resin","filament","cnc","laser","lasercutter","laser-cutter","plasma","waterjet","edm","physics","quantum","quantum-physics","quantumphysics","quantummechanics","relativity","einstein","newton","particle","particles","hadron","cern","fermion","boson","higgs","quark","lepton","neutrino","photon","electron","proton","neutron","atom","atoms","atomic","nuclear","fission","fusion","plasma","magnetism","electromagnetism","gravity","gravitation","spacetime","blackhole","black-hole","singularity","wormhole","darkmatter","dark-matter","darkenergy","dark-energy","cosmology","bigbang","big-bang","inflation","astronomy","astrophysics","cosmos","universe","multiverse","galaxy","galaxies","milkyway","milky-way","andromeda","nebula","nebulae","pulsar","quasar","magnetar","supernova","nova","dwarf","whitedwarf","reddwarf","star","stars","stellar","solar","sun","sunspot","corona","flare","planet","planets","planetary","exoplanet","mercury","venus","earth","mars","jupiter","saturn","uranus","neptune","pluto","ceres","eris","moon","moons","lunar","asteroid","asteroids","comet","comets","meteor","telescope","telescopes","hubble","webb","jwst","james-webb","chandra","spitzer","kepler","tess","gaia","vlt","elt","keck","alma","ska","nasa","esa","jaxa","isro","roscosmos","cnsa","spacex","blueorigin","virgin-galactic","rocketlab","relativity-space","firefly","astra","chemistry","chem","chemical","chemicals","molecule","molecules","molecular","organic","inorganic","polymer","polymers","catalyst","reaction","synthesis","element","elements","periodic","periodic-table","hydrogen","helium","lithium","carbon","nitrogen","oxygen","sulfur","phosphorus","potassium","calcium","iron","copper","zinc","silver","gold","platinum","uranium","plutonium","biology","bio","biological","bioscience","lifescience","life-science","cell","cells","cellular","dna","rna","mrna","gene","genes","genetic","genetics","genomics","genome","chromosome","protein","proteins","enzyme","bacteria","bacterial","virus","viral","microbe","microbes","microbiology","fungus","fungi","yeast","algae","plankton","protozoa","amoeba","evolution","darwin","natural-selection","species","taxonomy","phylogeny","ecology","ecosystem","biodiversity","conservation","endangered","extinction","botany","botanical","plant","plants","flora","flower","flowers","tree","trees","forest","forests","rainforest","jungle","grassland","savanna","zoology","animal","animals","fauna","mammal","mammals","reptile","reptiles","amphibian","amphibians","bird","birds","avian","fish","fishes","marine","insect","insects","arthropod","arachnid","spider","spiders","butterfly","earth","earthscience","earth-science","geology","geological","geologist","rock","rocks","mineral","minerals","crystal","crystals","gem","gems","volcano","volcanoes","volcanic","lava","magma","eruption","tectonic","earthquake","earthquakes","seismic","seismology","fault","faults","mountain","mountains","peak","peaks","summit","ridge","range","alps","himalayas","rockies","andes","everest","kilimanjaro","fuji","denali","ocean","oceans","oceanic","atlantic","pacific","indian","arctic","antarctic","sea","seas","mediterranean","caribbean","baltic","adriatic","aegean","river","rivers","stream","streams","creek","creeks","delta","estuary","lake","lakes","pond","ponds","reservoir","wetland","wetlands","swamp","island","islands","peninsula","cape","bay","gulf","strait","channel","continent","continents","africa","asia","europe","northamerica","southamerica","australia","oceania","antarctica","arctic","polar","tropical","equator","climate","weather","meteorology","atmosphere","stratosphere","troposphere","temperature","precipitation","humidity","pressure","wind","winds","storm","storms","hurricane","typhoon","cyclone","tornado","tornadoes","lightning","thunder","thunderstorm","monsoon","blizzard","drought","environment","environmental","eco","ecology","green","sustainable","sustainability","renewable","renewables","solar","solar-power","solarpower","wind-power","windpower","hydro","hydroelectric","geothermal","biomass","nuclear-power","nuclearpower","fusion-power","fusionpower","clean-energy","carbon","carbon-neutral","carbonneutral","netzero","net-zero","emissions","greenhouse","co2","methane","ozone","pollution","pollutants","smog","recycle","recycling","compost","composting","waste","zerowaste","zero-waste","plastic","plastics","microplastic","biodegradable","reusable","disposable","organic","natural","vegan","vegetarian","plantbased","plant-based","climate-change","climatechange","global-warming","globalwarming","ipcc","paris-agreement","cop","cop28","unfccc","epa","wwf","greenpeace","sports","sport","athletics","athletic","athlete","athletes","fitness","workout","workouts","exercise","exercises","training","trainer","gym","football","nfl","soccer","fifa","worldcup","world-cup","premier-league","champions-league","laliga","la-liga","bundesliga","seriea","serie-a","basketball","nba","wnba","ncaa","march-madness","hoops","dunk","slam","baseball","mlb","homerun","home-run","worldseries","world-series","hockey","nhl","ice-hockey","icehockey","puck","slap-shot","goalie","tennis","atp","wta","wimbledon","usopen","us-open","roland-garros","golf","pga","lpga","masters","ryder-cup","birdie","eagle","hole-in-one","boxing","mma","ufc","bellator","wrestling","wwe","aew","judo","karate","taekwondo","jiu-jitsu","jiujitsu","bjj","muay-thai","kickboxing","kung-fu","olympics","olympic","paralympics","paralympic","commonwealthgames","running","runner","runners","marathon","marathons","half-marathon","5k","10k","ultra","ultramarathon","trail-running","trailrunning","cross-country","cycling","cyclist","cycling","tour-de-france","tourdefrance","giro","vuelta","time-trial","peloton","velodrome","bmx","mountainbike","mtb","swimming","swimmer","swimmers","pool","freestyle","backstroke","butterfly","triathlon","triathlete","ironman","sprint-tri","olympic-tri","duathlon","weightlifting","powerlifting","crossfit","bodybuilding","strongman","yoga","pilates","aerobics","zumba","hiit","cardio","stretching","mobility","surfing","surf","surfer","surfers","waves","barrel","pipeline","wsl","skateboarding","skate","skater","skaters","sk8","halfpipe","vert","street","snowboarding","snowboard","snowboarder","skiing","ski","skier","slopes","climbing","climber","climbers","bouldering","trad","sport-climbing","parkour","freerunning","free-running","traceur","movement","calisthenics","music","musician","musicians","musical","song","songs","album","albums","artist","artists","band","bands","singer","singers","vocalist","voice","rock","rock-music","rockmusic","rocknroll","rock-n-roll","classic-rock","pop","pop-music","popmusic","kpop","k-pop","jpop","j-pop","cpop","c-pop","hiphop","hip-hop","rap","rapper","rappers","trap","drill","grime","rnb","r-n-b","soul","funk","disco","motown","reggae","dancehall","ska","jazz","jazz-music","jazzmusic","bebop","swing","bigband","big-band","blues","blues-music","bluesmusic","delta-blues","chicago-blues","electric","country","country-music","countrymusic","bluegrass","americana","folk","electronic","edm","techno","house","trance","dubstep","drum-and-bass","dnb","drumnbass","ambient","chillout","chill-out","lofi","lo-fi","beats","classical","classical-music","classicalmusic","orchestra","symphony","opera","choir","choral","chamber","baroque","romantic","contemporary","metal","heavy-metal","heavymetal","death-metal","black-metal","thrash","punk","punk-rock","punkrock","hardcore","emo","screamo","post-punk","indie","indie-rock","indierock","indie-pop","indiepop","alternative","grunge","shoegaze","dream-pop","dreampop","noise","experimental","world-music","worldmusic","latin","salsa","merengue","bachata","cumbia","afrobeat","afro-beat","afropop","afro-pop","highlife","juju","mbalax","guitar","guitarist","bass","bassist","drums","drummer","percussion","keyboard","keyboardist","piano","pianist","synth","synthesizer","keys","violin","violinist","cello","cellist","viola","bass","doublebass","saxophone","sax","trumpet","trombone","clarinet","flute","oboe","horn","dj","deejay","turntable","turntables","mixing","mixer","scratching","producer","producers","production","beatmaker","beat-maker","beats","recording","studio","studios","mastering","mixing","mixing-board","spotify","apple-music","applemusic","tidal","deezer","soundcloud","bandcamp","youtube-music","youtubemusic","amazon-music","amazonmusic","vinyl","records","record","lp","ep","single","singles","discography","concert","concerts","gig","gigs","tour","touring","festival","festivals","coachella","glastonbury","lollapalooza","bonnaroo","burning-man","sxsw","grammy","grammys","brit-awards","vma","ama","billboard","rolling-stone","movies","movie","film","films","cinema","cinematic","theater","theatre","hollywood","bollywood","nollywood","tollywood","anime","animation","documentary","documentaries","doc","docs","docuseries","docu-series","tv","television","series","show","shows","episode","episodes","season","drama","dramas","comedy","comedies","romcom","rom-com","sitcom","sitcoms","action","adventure","thriller","thrillers","horror","scary","slasher","scifi","sci-fi","science-fiction","sciencefiction","fantasy","dystopia","superhero","superheroes","marvel","mcu","dc","dceu","batman","superman","spiderman","spider-man","avengers","xmen","x-men","fantastic-four","starwars","star-wars","startrek","star-trek","trekkie","trekkies","lotr","lord-of-the-rings","lordoftherings","hobbit","tolkien","middle-earth","harrypotter","harry-potter","hogwarts","wizarding","potterhead","gameofthrones","game-of-thrones","got","westeros","houseofdragon","stranger-things","strangerthings","breaking-bad","breakingbad","bettercallsaul","netflix","hulu","disney-plus","disneyplus","hbo","hbomax","max","amazon-prime","amazonprime","primevideo","prime-video","appletv","paramount-plus","paramountplus","peacock","criterion","mubi","shudder","director","directors","filmmaker","filmmakers","cinematographer","dop","actor","actors","actress","actresses","cast","casting","audition","screenwriter","screenwriting","script","scripts","screenplay","storyboard","oscar","oscars","academy-awards","academyawards","emmy","emmys","golden-globe","goldenglobes","bafta","cannes","sundance","tribeca","toronto","tiff","venice","berlinale","sxsw-film","telluride","gaming","gamer","gamers","games","game","videogames","video-games","pc-gaming","pcgaming","console","consoles","handheld","mobile-gaming","playstation","ps5","ps4","ps3","psn","xbox","xboxone","xbox-series","nintendo","switch","switch-2","wii","wiiu","gamecube","n64","snes","nes","steam","steamdeck","steam-deck","epic","epicgames","epic-games","gog","rpg","jrpg","mmorpg","mmo","fps","tps","rts","moba","battle-royale","sandbox","survival","roguelike","roguelite","metroidvania","souls-like","platformer","puzzle","adventure","simulation","sim","sims","strategy","minecraft","fortnite","valorant","csgo","cs2","counterstrike","counter-strike","league","leagueoflegends","league-of-legends","lol","dota","dota2","overwatch","ow2","apex","apexlegends","apex-legends","warzone","callofduty","gta","grandtheftauto","grand-theft-auto","gta6","gta5","rockstar","eldenring","elden-ring","darksouls","dark-souls","bloodborne","sekiro","zelda","totk","botw","tears-of-the-kingdom","breath-of-the-wild","link","mario","supermario","super-mario","mariokart","mario-kart","smashbros","pokemon","pokemongo","pokemon-go","pikachu","scarlet","violet","finalfantasy","final-fantasy","ff16","ff14","ffxiv","squareenix","destiny","destiny2","bungie","halo","haloinfinite","343industries","diablo","diablo4","worldofwarcraft","world-of-warcraft","wow","blizzard","starcraft","hearthstone","overwatch","battlenet","battle-net","assassinscreed","assassins-creed","farcry","far-cry","watchdogs","ubisoft","cyberpunk","cyberpunk2077","witcher","witcher3","cdprojekt","cdpr","baldursgate","baldurs-gate","bg3","larian","divinity","dos2","esports","e-sports","competitive","tournament","tournaments","lan","twitch","streamer","streamers","streaming","youtube-gaming","kick","speedrun","speedrunner","speedrunning","gdq","agdq","sgdq","food","foods","foodie","foodies","cooking","cook","cooks","chef","chefs","recipe","recipes","kitchen","kitchens","culinary","gastronomy","gourmet","restaurant","restaurants","dining","dine","eat","eating","meal","meals","breakfast","brunch","lunch","dinner","supper","snack","snacks","dessert","appetizer","appetizers","entree","entrees","side","sides","course","pizza","pizzas","burger","burgers","sandwich","sandwiches","wrap","wraps","taco","tacos","burrito","burritos","quesadilla","nachos","enchilada","sushi","sashimi","ramen","udon","soba","tempura","teriyaki","bento","pasta","spaghetti","lasagna","ravioli","gnocchi","risotto","italian","steak","steaks","bbq","barbeque","barbecue","grill","grilling","smoker","chicken","beef","pork","lamb","fish","seafood","shrimp","lobster","crab","vegetarian","vegan","plantbased","plant-based","meatless","tofu","tempeh","salad","salads","soup","soups","stew","stews","chili","curry","curries","bread","breads","baking","baker","bakery","pastry","pastries","cake","cookies","brownies","pie","pies","tart","tarts","donut","donuts","coffee","espresso","latte","cappuccino","mocha","americano","coldbrew","tea","teas","greentea","green-tea","blacktea","black-tea","herbal","chai","beer","beers","craft-beer","craftbeer","ipa","lager","stout","ale","brew","wine","wines","redwine","red-wine","whitewine","white-wine","rose","sparkling","cocktail","cocktails","mixology","bartender","bartending","spirits","whiskey","whisky","bourbon","scotch","vodka","gin","rum","tequila","fashion","style","styling","stylist","stylish","trendy","trend","trends","clothing","clothes","outfit","outfits","ootd","lookbook","wardrobe","dress","dresses","shirt","shirts","pants","jeans","shorts","skirt","jacket","jackets","coat","coats","sweater","hoodie","hoodies","blazer","shoes","sneakers","boots","heels","sandals","loafers","footwear","accessories","accessory","jewelry","jewellery","watch","watches","bag","bags","handbag","purse","wallet","sunglasses","hat","hats","scarf","designer","designers","luxury","luxe","haute-couture","hautecouture","runway","catwalk","model","models","modeling","modelling","supermodel","vogue","elle","harpers-bazaar","gq","esquire","cosmopolitan","instyle","beauty","beautiful","gorgeous","stunning","glam","glamour","glamorous","makeup","make-up","cosmetics","lipstick","mascara","eyeliner","eyeshadow","foundation","concealer","blush","bronzer","highlighter","contour","skincare","skin-care","skincareroutine","cleanser","moisturizer","serum","sunscreen","spf","anti-aging","antiaging","wrinkles","acne","pores","hair","haircare","hair-care","hairstyle","hairstyles","haircut","haircolor","blonde","brunette","redhead","highlights","balayage","ombre","extensions","nails","manicure","pedicure","nailart","nail-art","gelnails","acrylics","fragrance","perfume","cologne","scent","scents","aromatherapy","essentials","travel","traveling","travelling","traveler","traveller","travelers","trip","trips","vacation","vacations","holiday","holidays","getaway","adventure","adventures","explore","exploring","explorer","wanderlust","backpacking","backpacker","backpackers","hostel","hostels","hotel","hotels","airbnb","vrbo","booking","expedia","tripadvisor","kayak","skyscanner","flight","flights","airline","airlines","airport","airports","terminal","cruise","cruises","cruising","sailing","yacht","charter","island-hopping","roadtrip","road-trip","roadtrips","driving","scenic","route","routes","hiking","hike","hikes","trail","trails","trek","trekking","camping","beach","beaches","coastal","seaside","oceanfront","beachfront","shore","mountain","mountains","alpine","summit","peak","valley","canyon","gorge","city","cities","urban","metropolitan","downtown","cityscape","skyline","village","villages","town","towns","countryside","rural","scenic","landmark","landmarks","monument","monuments","heritage","unesco","historic","paris","london","newyork","new-york","tokyo","rome","barcelona","amsterdam","berlin","vienna","prague","budapest","lisbon","madrid","athens","istanbul","dubai","singapore","hongkong","hong-kong","bangkok","seoul","taipei","sydney","melbourne","auckland","capetown","cape-town","cairo","marrakech","nairobi","rio","buenosaires","buenos-aires","mexicocity","mexico-city","lima","bogota","sanfrancisco","san-francisco","losangeles","los-angeles","chicago","miami","lasvegas","las-vegas","seattle","boston","austin","denver","portland","vancouver","toronto","montreal","calgary","ottawa","quebec","edmonton","family","families","familytime","family-time","familyfirst","famfam","parents","parenting","parent","parenthood","parentlife","parent-life","mom","moms","momlife","mom-life","mommy","mother","mothers","motherhood","dad","dads","dadlife","dad-life","daddy","father","fathers","fatherhood","kids","kid","children","child","childhood","kidlife","kid-life","toddler","baby","babies","newborn","infant","pregnancy","pregnant","expecting","grandparents","grandma","grandpa","grandmother","grandfather","nana","papa","siblings","sibling","brother","brothers","sister","sisters","twins","friends","friend","friendship","friendships","bestfriend","best-friend","bff","besties","bestie","squad","squadgoals","squad-goals","crew","gang","dating","date","dates","relationship","relationships","couple","couples","boyfriend","girlfriend","partner","partners","significant-other","so","engaged","engagement","fiance","fiancee","wedding","weddings","bride","groom","married","marriage","spouse","husband","wife","newlyweds","anniversary","anniversaries","love","loving","romance","romantic","single","singles","singlelife","single-life","bachelor","bachelorette","divorce","divorced","separated","coparenting","co-parenting","stepparent","blended","blendedfamily","blended-family","adoption","adopted","foster","lgbtq","lgbt","lgbtqia","queer","pride","pridemonth","pride-month","gay","gays","lesbian","lesbians","bisexual","bi","pansexual","pan","transgender","trans","nonbinary","non-binary","nb","genderfluid","genderqueer","asexual","ace","aromantic","aro","demisexual","demi","intersex","ally","coming-out","comingout","outandproud","out-and-proud","loveislove","love-is-love","feminist","feminism","feminists","womensrights","womens-rights","equality","civilrights","civil-rights","humanrights","human-rights","socialjustice","blm","blacklivesmatter","black-lives-matter","antiracism","anti-racism","indigenous","native","firstnations","first-nations","aboriginal","tribal","disability","disabled","accessibility","a11y","inclusion","inclusive","neurodivergent","adhd","autism","autistic","dyslexia","dyslexic","mental-health","mentalhealth","anxiety","depression","bipolar","ptsd","ocd","therapy","selfcare","self-care","wellness","wellbeing","well-being","mindfulness","meditation","meditate","mindful","zen","calm","peace","peaceful","serenity","recovery","sober","sobriety","clean","aa","na","12steps","12-steps","support","supportgroup","support-group","community","communities","tribe","religion","religious","faith","faithful","belief","believe","believer","spiritual","spirituality","spirit","spirits","soul","souls","divine","christian","christianity","christians","church","churches","jesus","christ","catholic","catholicism","catholics","protestant","evangelical","baptist","methodist","lutheran","presbyterian","orthodox","episcopal","anglican","mormon","lds","latterday","latter-day","jehovah","adventist","pentecostal","jewish","judaism","jews","hebrew","israel","israeli","kosher","sabbath","torah","talmud","synagogue","temple","rabbi","hanukkah","passover","yom-kippur","muslim","islam","islamic","muslims","quran","koran","allah","muhammad","mosque","masjid","imam","halal","ramadan","eid","hajj","mecca","medina","hindu","hinduism","hindus","vedic","yoga","karma","dharma","mantra","temple","temples","krishna","shiva","vishnu","ganesh","diwali","holi","buddhist","buddhism","buddhists","buddha","zen","tibetan","dalai-lama","meditation","enlightenment","nirvana","sangha","dharma","sutra","sikh","sikhism","sikhs","guru","gurus","gurdwara","punjabi","pagan","paganism","wicca","wiccan","witchcraft","witch","witches","atheist","atheism","agnostic","agnosticism","secular","humanist","humanism","prayer","prayers","praying","worship","worshipping","praise","praising","blessing","blessings","blessed","miracle","miracles","grace","salvation","heaven","hell","afterlife","eternal","eternity","resurrection","redemption","work","working","worker","workers","workplace","worklife","work-life","job","jobs","career","careers","profession","professional","professionals","office","offices","corporate","corporation","company","companies","business","startup","startups","entrepreneur","entrepreneurs","entrepreneurship","founder","ceo","cto","cfo","coo","cmo","ciso","vp","director","manager","lead","employee","employees","employer","employers","hr","humanresources","human-resources","hiring","hire","recruit","recruiting","recruitment","talent","headhunter","interview","interviews","interviewing","resume","cv","linkedin","networking","salary","salaries","compensation","benefits","perks","bonus","bonuses","promotion","promoted","raise","negotiation","negotiate","contract","contracts","remote","remotework","remote-work","wfh","workfromhome","work-from-home","hybrid","flexible","flexibility","freelance","freelancer","freelancing","gig","gigeconomy","gig-economy","sideproject","side-project","sidehustle","meeting","meetings","presentation","presentations","conference","conferences","project","projects","deadline","deadlines","milestone","milestones","deliverable","team","teams","teamwork","collaboration","collaborate","agile","scrum","kanban","leadership","leader","leaders","management","manage","managing","productivity","efficiency","efficient","effective","performance","kpi","okr","metrics","burnout","stress","stressed","workload","overtime","quit","quitting","resign","retirement","retired","retiring","pension","401k","ira","savings","invest","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","42","50","60","69","70","80","88","90","99","100","101","111","123","200","222","247","300","333","365","400","404","420","444","500","555","666","700","777","800","888","900","911","999","1000","1111","1234","2000","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2050","3000","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ch1","ch2","ch3","ch4","ch5","ch6","ch7","ch8","ch9","ch10","ch11","ch12","ch13","ch14","ch15","ch16","ch17","ch18","ch19","ch20","channel1","channel2","channel3","channel4","channel5","channel6","channel7","channel8","channel9","channel10","channel11","channel12","channel13","room1","room2","room3","room4","room5","room6","room7","room8","room9","room10","group1","group2","group3","group4","group5","group6","group7","group8","group9","group10","team1","team2","team3","team4","team5","team6","team7","team8","team9","team10","zone1","zone2","zone3","zone4","zone5","zone6","zone7","zone8","zone9","zone10","area1","area2","area3","area4","area5","area6","area7","area8","area9","area10","sector1","sector2","sector3","sector4","sector5","sector6","sector7","sector8","net1","net2","net3","net4","net5","net6","net7","net8","net9","net10","link1","link2","link3","link4","link5","link6","link7","link8","link9","link10","node1","node2","node3","node4","node5","node6","node7","node8","node9","node10","hub1","hub2","hub3","hub4","hub5","hub6","hub7","hub8","hub9","hub10","mesh1","mesh2","mesh3","mesh4","mesh5","mesh6","mesh7","mesh8","mesh9","mesh10","radio1","radio2","radio3","radio4","radio5","radio6","radio7","radio8","radio9","relay1","relay2","relay3","relay4","relay5","relay6","relay7","relay8","relay9","base1","base2","base3","base4","base5","base6","base7","base8","base9","base10","unit1","unit2","unit3","unit4","unit5","unit6","unit7","unit8","unit9","unit10","server1","server2","server3","server4","server5","server6","server7","server8","dev1","dev2","dev3","dev4","dev5","prod1","prod2","prod3","stage1","stage2","test1","test2","test3","test4","test5","test6","test7","test8","test9","test10","user1","user2","user3","user4","user5","admin1","admin2","admin3","ops1","ops2","alpha","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliet","kilo","lima","mike","november","oscar","papa","quebec","romeo","sierra","tango","uniform","victor","whiskey","xray","x-ray","yankee","zulu","alpha1","bravo1","charlie1","delta1","echo1","foxtrot1","alpha-team","bravo-team","charlie-team","delta-team","echo-team","team-alpha","team-bravo","team-charlie","team-delta","team-echo","red","blue","green","yellow","orange","purple","pink","black","white","gray","grey","brown","gold","silver","bronze","copper","platinum","cyan","magenta","teal","navy","maroon","olive","lime","aqua","coral","crimson","indigo","violet","turquoise","beige","ivory","tan","khaki","red-team","blue-team","green-team","yellow-team","orange-team","purple-team","team-red","team-blue","team-green","team-yellow","team-orange","team-purple","rednet","bluenet","greennet","blacknet","whitenet","darknet","clearnet","monday","tuesday","wednesday","thursday","friday","saturday","sunday","mon","tue","wed","thu","fri","sat","sun","weekday","weekend","january","february","march","april","may","june","july","august","september","october","november","december","jan","feb","mar","apr","jun","jul","aug","sep","oct","nov","dec","spring","summer","fall","autumn","winter","season","seasons","seasonal","morning","afternoon","evening","night","midnight","noon","dawn","dusk","daily","weekly","monthly","yearly","annual","quarterly","hourly","today","tomorrow","yesterday","now","later","soon","always","never","24-7","247","round-the-clock","nonstop","non-stop","always-on","alwayson","north","south","east","west","northeast","northwest","southeast","southwest","northern","southern","eastern","western","central","middle","center","up","down","left","right","top","bottom","front","back","side","upper","lower","inner","outer","inside","outside","above","below","near","far","close","distant","local","remote","nearby","faraway","here","there","everywhere","anywhere","somewhere","nowhere","wherever","mini","micro","nano","tiny","small","little","medium","large","big","huge","giant","massive","mega","giga","tera","peta","exa","ultra","super","hyper","extreme","max","maximum","min","minimum","plus","extra","lite","light","heavy","full","empty","half","partial","complete","total","all-chat","allchat","main-chat","mainchat","public-chat","publicchat","general-chat","generalchat","global-chat","globalchat","world-chat","worldchat","local-chat","localchat","open-chat","openchat","free-chat","freechat","random-chat","randomchat","voice-chat","voicechat","text-chat","textchat","all-net","allnet","main-net","mainnet","test-net","testnet","dev-net","devnet","local-net","localnet","global-net","globalnet","public-net","publicnet","mesh-net","meshnet","radio-net","radionet","ham-net","hamnet","emerg-net","emergnet","all-hands","allhands","town-hall","townhall","standby","stand-by","on-call","oncall","help-desk","helpdesk","support","tech-support","techsupport","customer-support","feedback","suggestions","ideas","feature-requests","featurerequests","bug-reports","watercooler","water-cooler","coffee-break","coffeebreak","break-room","breakroom","off-topic","offtopic","random","misc","miscellaneous","other","everything-else","introductions","intro","intros","welcome","new-members","newmembers","onboarding","announcements","announce","news","updates","changelog","releases","roadmap","rules","guidelines","faq","faqs","help","how-to","howto","tutorial","tutorials","resources","links","useful-links","usefullinks","bookmarks","reference","docs","showcase","show-and-tell","showandtell","gallery","portfolio","projects","builds","jobs","hiring","careers","opportunities","gigs","freelance","classifieds","buy-sell","buysell","marketplace","trade","trading","swap","swaps","deals","events","meetups","meetup","gatherings","conferences","workshops","webinars","study-group","studygroup","book-club","bookclub","movie-night","movienight","game-night","gamenight","trivia","quiz","contests","challenges","competitions","reddit","twitter","x","facebook","fb","instagram","ig","insta","tiktok","youtube","yt","pinterest","snapchat","snap","linkedin","tumblr","threads","mastodon","fediverse","bluesky","bsky","discord","slack","telegram","signal","whatsapp","messenger","wechat","line","kakao","viber","matrix","element","clubhouse","spaces","periscope","vine","myspace","digg","stumbleupon","quora","medium","substack","patreon","onlyfans","fanhouse","gumroad","behance","dribbble","deviantart","artstation","pixiv","flickr","500px","meme","memes","dank","dankmemes","dank-memes","cursed","blessed","blursed","cringe","based","redpill","redpilled","blackpill","copium","hopium","cope","poggers","pog","pogchamp","pepe","wojak","gigachad","chad","virgin","simp","simping","stan","stanning","parasocial","irl","afk","brb","ttyl","fomo","yolo","goat","goated","lit","fire","slay","slaying","periodt","sus","sussy","imposter","amogus","amongus","among-us","crewmate","ratio","ratiod","L","W","big-L","big-W","touch-grass","touchgrass","npc","npcs","normie","normies","sheeple","boomer","zoomer","doomer","coomer","consoomer","wagie","neet","incel","volcel","blackpilled","glowie","janny","jannie","based-and-redpilled","keyed","kino","sovl","tfw","mfw","mrw","imo","imho","afaik","eli5","tldr","tl-dr","reddit-moment","leddit","hivemind","groupthink","echo-chamber","circlejerk","wholesome","wholesome100","chungus","big-chungus","keanu","reeves","stonks","not-stonks","diamond-hands","diamondhands","paper-hands","hodl","to-the-moon","tothemoon","moon","mooning","ape","apes","ape-together","tendies","gme","gamestop","wallstreetbets","wsb","yeet","yeeted","yoink","noob","newb","newbie","scrub","pwned","owned","rekt","wrecked","gg","ggwp","ggez","ez","ezpz","no-cap","nocap","cap","capping","fr","frfr","bussin","valid","bet","no-shot","sheesh","sheeesh","ong","ongggg","mid","L-take","W-take","hot-take","cold-take","spicy","spicy-take","rent-free","rentfree","living-rent-free","unhinged","brainrot","brain-rot","vtuber","vtubers","vtubing","hololive","nijisanji","vshoujo","idol","content","content-creator","contentcreator","creator","creators","influencer","influencers","viral","viralvideo","viral-video","trending","fyp","foryou","for-you","foryoupage","algorithm","algo","engagement","analytics","metrics","subscriber","subscribers","subs","sub","follower","followers","following","like","likes","share","shares","repost","reposts","retweet","rt","quote","comment","comments","reply","replies","dm","dms","direct-message","inbox","notification","notifications","notif","notifs","ping","pings","mention","highlight","highlights","clip","clips","vod","vods","archive","archives","premiere","premieres","watchparty","watch-party","reaction","reactions","react","reacting","review","reviews","tier-list","tierlist","ranking","collab","collabs","collaboration","crossover","feature","featured","guest","host","hosting","cohost","co-host","panel","panels","podcast","podcasts","episode","ep","eps","season","seasons","series","miniseries","mini-series","subreddit","subreddits","sub","subs","thread","threads","post","posts","forum","forums","board","boards","chan","chans","4chan","8chan","8kun","imageboard","textboard","bbs","bulletin-board","usenet","newsgroup","irc","ircnet","efnet","freenode","libera","oftc","rizon","undernet","xmpp","jabber","mumble","teamspeak","ts3","ventrilo","vent","raidcall","wiki","wikipedia","wikia","fandom","tvtropes","knowyourmeme","kym","encyclopediadramatica","ed","urban-dictionary","urbandictionary","ud","google","alphabet","apple","microsoft","msft","amazon","meta","facebook","nvidia","nvda","amd","intel","qualcomm","broadcom","samsung","tsmc","oracle","sap","salesforce","adobe","autodesk","vmware","dell","hp","hpe","ibm","cisco","juniper","arista","palo-alto","fortinet","crowdstrike","palantir","snowflake","databricks","mongodb","elastic","splunk","datadog","zoom","webex","teams","meet","slack","atlassian","jira","confluence","notion","airtable","coda","asana","monday","clickup","trello","basecamp","figma","sketch","invision","zeplin","framer","webflow","squarespace","wix","shopify","bigcommerce","magento","woocommerce","stripe","paypal","square","plaid","brex","ramp","affirm","klarna","afterpay","coinbase","binance","robinhood","fidelity","vanguard","schwab","etrade","interactive-brokers","uber","lyft","doordash","grubhub","instacart","postmates","deliveroo","airbnb","vrbo","booking","expedia","kayak","tripadvisor","yelp","spotify","apple-music","pandora","soundcloud","bandcamp","tidal","deezer","dropbox","box","onedrive","gdrive","google-drive","icloud","mega","nintendo","sony","playstation","xbox","microsoft-gaming","activision","blizzard","activision-blizzard","ea","electronic-arts","ubisoft","epic","valve","steam","rockstar","take-two","2k","bethesda","zenimax","id-software","bioware","dice","respawn","bungie","343","naughtydog","insomniac","santa-monica","guerrilla","sucker-punch","bend","bluepoint","housemarque","fromsoftware","from-software","bandainamco","bandai-namco","capcom","konami","sega","atlus","squareenix","square-enix","enix","square","level5","gamefreak","game-freak","creatures","pokemon-company","mihoyo","hoyoverse","riot","riot-games","tencent","netease","nexon","ncsoft","krafton","pubg","supercell","king","rovio","zynga","playtika","scopely","jam-city","paradox","firaxis","amplitude","creative-assembly","relic","obsidian","larian","cd-projekt","cdpr","techland","4a-games","remedy","io-interactive","disney","pixar","marvel","lucasfilm","warner","warnerbros","warner-bros","universal","paramount","sony-pictures","lionsgate","mgm","dreamworks","illumination","laika","ghibli","studio-ghibli","toei","sunrise","bones","madhouse","mappa","wit","trigger","kyoani","kyoto-animation","ufotable","a1-pictures","cloverworks","shaft","gainax","khara","production-ig","ig","netflix","hulu","hbo","max","disney-plus","prime-video","peacock","paramount-plus","apple-tv","crunchyroll","funimation","hidive","vrv","cbs","nbc","abc","fox","cw","amc","fx","showtime","starz","epix","bbc","itv","channel4","sky","britbox","hayu","acorn","curiositystream","discovery","discovery-plus","history","natgeo","nat-geo","animal-planet","tesla","rivian","lucid","nio","xpeng","byd","polestar","fisker","ford","gm","general-motors","chevy","chevrolet","dodge","ram","jeep","chrysler","toyota","honda","nissan","mazda","subaru","mitsubishi","hyundai","kia","genesis","volkswagen","vw","audi","bmw","mercedes","porsche","lamborghini","ferrari","maserati","alfa-romeo","fiat","volvo","land-rover","range-rover","jaguar","bentley","rolls-royce","aston-martin","mclaren","bugatti","koenigsegg","pagani","rimac","lotus","alpine","medical","medicine","healthcare","health-care","hospital","hospitals","doctor","doctors","dr","physician","physicians","surgeon","surgeons","nurse","nurses","nursing","rn","lpn","cna","np","pa","physician-assistant","pharmacy","pharmacist","pharmacists","pharma","pharmaceutical","rx","dentist","dentists","dental","dentistry","orthodontist","orthodontics","optometrist","ophthalmologist","optometry","vision","eye-care","eyecare","therapist","therapists","therapy","counselor","counseling","psychologist","psychiatrist","psychiatry","psychology","mental-health","mentalhealth","physical-therapy","pt","occupational-therapy","ot","speech-therapy","slp","chiropractor","chiropractic","acupuncture","acupuncturist","naturopath","emt","paramedic","paramedics","ems","emergency","er","icu","nicu","radiology","radiologist","xray","mri","ct","ultrasound","imaging","pathology","pathologist","lab","laboratory","diagnostics","testing","oncology","oncologist","cancer","tumor","chemotherapy","radiation","cardiology","cardiologist","heart","cardiac","cardiovascular","cv","neurology","neurologist","neuro","brain","spine","neurosurgery","pediatrics","pediatrician","peds","children","child-health","childhealth","geriatrics","geriatrician","elderly","senior-care","seniorcare","aging","dermatology","dermatologist","derm","skin","skincare","skin-care","orthopedics","orthopedic","ortho","bone","joint","sports-medicine","gastroenterology","gastro","gi","digestive","gut","intestinal","endocrinology","endocrine","diabetes","thyroid","hormone","hormones","pulmonology","pulmonologist","respiratory","lung","lungs","breathing","nephrology","nephrologist","kidney","kidneys","renal","dialysis","urology","urologist","bladder","prostate","urinary","reproductive","obgyn","ob-gyn","obstetrics","gynecology","obstetrician","gynecologist","fertility","ivf","reproductive-health","reproductivehealth","prenatal","legal","lawyer","lawyers","attorney","attorneys","law","laws","lawfirm","paralegal","paralegals","legal-assistant","legalassistant","clerk","clerks","judge","judges","court","courts","courthouse","trial","trials","jury","litigation","litigator","litigators","lawsuit","lawsuits","case","cases","criminal","criminal-law","defense","defender","prosecution","prosecutor","civil","civil-law","tort","torts","injury","personal-injury","malpractice","corporate-law","corporatelaw","business-law","commercial","contracts","intellectual-property","ip","patent","patents","trademark","copyright","family-law","familylaw","divorce","custody","child-support","alimony","immigration","immigration-law","visa","visas","citizenship","naturalization","real-estate-law","property-law","estate","estates","probate","trusts","tax-law","taxlaw","irs","tax-attorney","taxattorney","audit","audits","employment-law","labor-law","hr-law","discrimination","harassment","constitutional","constitutional-law","civil-rights","human-rights","environmental-law","epa","regulation","regulations","compliance","bankruptcy","restructuring","insolvency","creditor","debtor","debt","education","educator","educators","teach","teaching","teacher","teachers","professor","professors","prof","profs","faculty","academic","academics","student","students","pupil","pupils","learner","learners","learning","school","schools","elementary","primary","middle-school","middleschool","high-school","highschool","secondary","k12","k-12","grade","grades","college","colleges","university","universities","uni","campus","campuses","undergraduate","undergrad","graduate","grad","postgrad","phd","doctorate","masters","bachelors","associates","degree","degrees","diploma","diplomas","curriculum","syllabus","course","courses","class","classes","lecture","seminar","seminars","workshop","workshops","lab","labs","laboratory","tutor","tutors","tutoring","mentor","mentors","mentoring","mentorship","homeschool","homeschooling","unschool","unschooling","montessori","waldorf","stem","steam","science","math","mathematics","calculus","algebra","english","literature","writing","grammar","composition","rhetoric","history","geography","social-studies","socialstudies","civics","economics","art","arts","music","drama","theater","theatre","dance","visual-arts","physical-education","pe","gym","athletics","sports","health","wellness","construction","contractor","contractors","builder","builders","building","carpenter","carpenters","carpentry","woodwork","woodworking","woodworker","electrician","electricians","electrical","electric","wiring","power","plumber","plumbers","plumbing","pipes","piping","drainage","sewage","hvac","heating","cooling","ac","air-conditioning","ventilation","duct","roofer","roofers","roofing","roof","roofs","shingles","gutters","mason","masons","masonry","brick","bricks","stone","concrete","cement","painter","painters","painting","paint","wallpaper","drywall","finishing","welder","welders","welding","fabrication","fabricator","metalwork","machinist","machinists","machining","lathe","mill","milling","turning","mechanic","mechanics","mechanical","automotive","auto","car-repair","landscaper","landscapers","landscaping","lawn","garden","gardening","surveyor","surveyors","surveying","survey","land","property","boundary","architect","architects","architecture","architectural","design","drafting","engineer","engineers","engineering","structural","civil-engineering","inspector","inspectors","inspection","code","codes","permit","permits","firefighter","firefighters","fire","fire-department","firedepartment","fd","police","police-officer","policeofficer","cop","cops","officer","officers","sheriff","sheriffs","deputy","deputies","detective","detectives","state-trooper","trooper","troopers","highway-patrol","patrol","patrolling","swat","tactical","k9","k-9","canine","bomb-squad","bombsquad","hostage","emt","emts","paramedic","paramedics","ambulance","ems","first-responder","dispatcher","dispatchers","dispatch","911","emergency","emergencies","search-rescue","sar","rescue","rescuer","rescuers","coast-guard","lifeguard","hazmat","hazardous","decon","decontamination","chemical","biological","military","armed-forces","armedforces","defense","defence","dod","mod","army","soldier","soldiers","infantry","armor","artillery","cavalry","navy","sailor","sailors","naval","fleet","submarine","surface","carrier","airforce","air-force","pilot","pilots","aviator","aviation","fighter","marines","marine","marinecorps","marine-corps","leatherneck","oorah","coastguard","coast-guard","uscg","maritime","port","harbor","border","spaceforce","space-force","ussf","space","satellite","orbital","launch","national-guard","nationalguard","guard","reserve","reserves","reservist","veteran","veterans","vet","vets","retired","retiree","retirees","officer","officers","enlisted","nco","warrant","general","admiral","special-ops","specialops","specops","sof","delta","seals","rangers","green-berets","greenberets","airborne","paratrooper","paratroopers","outdoor","outdoors","outside","nature","wilderness","wild","backcountry","hiking","hiker","hikers","backpacking","backpacker","thru-hike","thruhike","camping","camper","campers","campsite","tent","tenting","glamping","rv","rving","campervan","vanlife","van-life","overlanding","overland","fishing","fisher","fishers","angler","anglers","angling","fly-fishing","hunting","hunter","hunters","hunt","game","wildlife","deer","elk","duck","birding","birdwatching","bird-watching","birder","birders","ornithology","foraging","forager","foragers","mushroom","mushrooms","fungi","mycology","kayaking","kayak","kayaker","kayakers","canoeing","canoe","paddling","rafting","raft","rafts","whitewater","white-water","rapids","river","scuba","diving","diver","divers","snorkeling","snorkel","freediving","sailing","sailor","sailors","sail","sailboat","yacht","yachting","rock-climbing","rockclimbing","bouldering","climber","climbers","crag","mountaineering","mountaineer","alpinism","alpine","summit","peak-bagging","caving","caver","cavers","spelunking","spelunker","cave","caves","offroad","off-road","atv","utv","sxs","dirtbike","dirt-bike","quad","photography","photographer","photographers","photo","photos","camera","videography","videographer","video","videos","filming","filmmaking","painting","painter","painters","canvas","acrylic","oil","watercolor","drawing","drawer","drawers","sketch","sketching","pencil","charcoal","sculpting","sculptor","sculptors","sculpture","clay","pottery","ceramics","knitting","knitter","knitters","knit","yarn","wool","needles","pattern","crocheting","crochet","crocheter","hook","hooks","amigurumi","blanket","sewing","sewer","sewers","seamstress","tailor","fabric","quilting","embroidery","embroiderer","cross-stitch","crossstitch","needlepoint","woodworking","woodworker","woodworkers","carpentry","furniture","lathe","metalworking","metalworker","blacksmith","blacksmithing","forge","forging","leatherworking","leatherwork","leather","leathercraft","tanning","tooling","jewelry-making","jewelrymaking","jeweler","beading","beads","wirework","origami","paper-craft","papercraft","scrapbooking","scrapbook","cardmaking","calligraphy","calligrapher","lettering","hand-lettering","handlettering","candle-making","candlemaking","soap-making","soapmaking","bath-bombs","collecting","collector","collectors","collection","collections","collectible","stamps","stamp","philately","philatelist","postage","postal","letters","coins","coin","numismatics","numismatist","currency","bullion","precious","cards","card","trading-cards","tradingcards","tcg","ccg","mtg","pokemon-tcg","comics","comic","comic-books","comicbooks","graphic-novels","graphicnovels","manga","manhwa","manhua","webtoon","webtoons","light-novel","lightnovel","figurines","figure","figures","statue","statues","action-figures","toys","funko","funko-pop","funkopop","pop","pops","nendoroid","figma","sh-figuarts","model-kits","modelkits","gunpla","gundam","plamo","scale-models","miniatures","lego","legos","bricks","moc","mocs","afol","tfol","kfol","megabloks","antiques","antique","vintage","retro","thrift","thrifting","estate-sale","vinyl","records","record","lp","lps","turntable","audiophile","hifi","watches","watch","horology","horologist","timepiece","wristwatch","pocket","boardgame","boardgames","board-games","board-game","tabletop","table-top","cardgame","cardgames","card-games","card-game","deckbuilder","deck-builder","rpg","rpgs","tabletop-rpg","ttrpg","pen-and-paper","roleplay","roleplaying","dnd","d-and-d","dungeons-and-dragons","dungeonsanddragons","dungeon","dragon","pathfinder","starfinder","call-of-cthulhu","coc","shadowrun","cyberpunk-red","warhammer","warhammer40k","40k","age-of-sigmar","aos","sigmar","gw","warmachine","hordes","infinity","malifaux","necromunda","kill-team","killteam","miniature","miniatures","minis","mini","wargaming","wargames","wargamer","painting-minis","paintingminis","mini-painting","minipainting","terrain","chess","checkers","go","baduk","weiqi","shogi","mahjong","mah-jong","poker","blackjack","bridge","canasta","rummy","hearts","spades","solitaire","catan","settlers","ticket-to-ride","tickettoride","pandemic","wingspan","gloomhaven","spirit-island","spiritisland","terraforming-mars","scythe","pets","pet","petcare","pet-care","petowner","pet-owner","petparents","dogs","dog","puppy","puppies","pupper","doggo","doggos","canine","k9","cats","cat","kitten","kittens","kitty","kitties","feline","meow","birds","bird","parrot","parrots","parakeet","budgie","cockatiel","finch","fish","aquarium","aquariums","fishtank","fish-tank","freshwater","saltwater","reef","reeftank","reef-tank","coral","corals","marine","aquascape","reptiles","reptile","snake","snakes","lizard","lizards","gecko","bearded","turtle","turtles","tortoise","tortoises","terrapin","amphibian","frog","rabbit","rabbits","bunny","bunnies","hare","lagomorph","binky","binkies","hamster","hamsters","gerbil","gerbils","mouse","mice","rat","rats","guinea-pig","guineapig","guinea","cavy","cavies","chinchilla","ferret","horse","horses","equine","equestrian","pony","ponies","riding","stable","farm","farming","farmlife","farm-life","livestock","chicken","chickens","goat","goats","sheep","lamb","lambs","pig","pigs","cow","cows","cattle","english","spanish","espanol","french","francais","german","deutsch","italian","italiano","portuguese","portugues","russian","russkiy","japanese","nihongo","chinese","mandarin","cantonese","zhongwen","korean","hangul","hangugeo","arabic","hindi","urdu","bengali","turkish","turkce","persian","farsi","dutch","nederlands","polish","swedish","svenska","norwegian","norsk","danish","dansk","finnish","greek","ellinika","hebrew","ivrit","vietnamese","tiengviet","thai","indonesian","bahasa","malay","tagalog","filipino","swahili","kiswahili","czech","cestina","hungarian","magyar","romanian","romana","ukrainian","usa","united-states","unitedstates","america","american","americans","canada","canadian","canadians","mexico","mexican","mexicans","brasil","brazil","brazilian","argentina","argentine","chile","chilean","peru","colombia","colombian","venezuela","venezuelan","ecuador","uruguay","uk","united-kingdom","unitedkingdom","britain","british","england","scotland","scottish","wales","welsh","ireland","irish","northern-ireland","france","french","germany","german","germans","italy","italian","italians","spain","spanish","portugal","portuguese","netherlands","dutch","belgium","switzerland","swiss","austria","austrian","poland","polish","czech","russia","russian","russians","ukraine","ukrainian","ukrainians","belarus","china","chinese","taiwan","taiwanese","hongkong","hong-kong","macau","japan","japanese","korea","korean","koreans","north-korea","south-korea","india","indian","indians","pakistan","pakistani","bangladesh","bangladeshi","australia","australian","australians","aussie","aussies","nz","newzealand","new-zealand","kiwi","kiwis","fiji","fijian","samoa","samoan","tonga","philippines","filipino","filipinos","pinoy","pinay","vietnam","vietnamese","thailand","thai","thais","indonesia","indonesian","malaysia","malaysian","singapore","singaporean","brunei","myanmar","burmese","cambodia","cambodian","laos","laotian","nepal","nepali","srilanka","sri-lanka","srilankan","egypt","egyptian","egyptians","morocco","moroccan","algeria","algerian","tunisia","tunisian","libya","libyan","sudan","sudanese","ethiopia","kenya","kenyan","kenyans","tanzania","tanzanian","uganda","ugandan","nigeria","nigerian","nigerians","ghana","ghanaian","senegal","senegalese","southafrica","south-africa","southafrican","south-african","namibia","botswana","zimbabwe","zambia","mozambique","angola","congo","congolese","israel","israeli","israelis","palestine","palestinian","palestinians","jordan","jordanian","lebanon","lebanese","syria","syrian","iraq","iraqi","iran","iranian","iranians","persian","persians","saudi","saudi-arabia","uae","emirates","emirati","dubai","abudhabi","abu-dhabi","qatar","qatari","kuwait","kuwaiti","bahrain","bahraini","oman","omani","yemen","yemeni","turkey","turkish","turks","greece","greek","greeks","cyprus","cypriot","scandinavia","scandinavian","nordic","norway","norwegian","sweden","swedish","denmark","danish","finland","finnish","finns","iceland","icelandic","baltics","baltic","estonia","estonian","latvia","latvian","lithuania","balkans","balkan","serbia","serbian","croatia","croatian","bosnia","slovenia","slovenian","macedonia","macedonian","albania","albanian","romania","romanian","bulgaria","bulgarian","hungary","hungarian","slovakia","slovak","slovakian","moldova","moldovan","georgia","georgian","armenia","armenian","azerbaijan","azerbaijani","kazakhstan","kazakh","uzbekistan","uzbek","turkmenistan","kyrgyzstan","tajikistan","mongolia","caribbean","jamaica","jamaican","bahamas","bahamian","barbados","trinidad","cuba","cuban","haiti","haitian","dominican","puerto-rico","puertorico","latin","latino","latina","latinx","hispanic","latinoamerica","latam","california","cali","ca","socal","norcal","bayarea","bay-area","la","texas","tx","houston","dallas","austin","sanantonio","san-antonio","florida","fl","miami","orlando","tampa","jacksonville","fortlauderdale","newyork","new-york","ny","nyc","brooklyn","manhattan","queens","bronx","pennsylvania","pa","philly","philadelphia","pittsburgh","harrisburg","illinois","il","chicago","chi","chiraq","chitown","springfield","ohio","oh","cleveland","columbus","cincinnati","toledo","akron","georgia","ga","atlanta","atl","savannah","augusta","macon","northcarolina","north-carolina","nc","charlotte","raleigh","durham","southcarolina","south-carolina","sc","charleston","columbia","greenville","michigan","mi","detroit","annarbor","ann-arbor","grandrapids","lansing","newjersey","new-jersey","nj","jersey","newark","trenton","atlantic-city","virginia","va","richmond","norfolk","vb","virginia-beach","alexandria","washington","wa","seattle","tacoma","spokane","olympia","bellevue","arizona","az","phoenix","phx","tucson","scottsdale","mesa","tempe","massachusetts","ma","boston","cambridge","worcester","springfield","tennessee","tn","nashville","memphis","knoxville","chattanooga","indiana","in","indianapolis","indy","fortwayne","fort-wayne","southbend","missouri","mo","stlouis","st-louis","kansascity","kansas-city","springfield","maryland","md","baltimore","bmore","annapolis","bethesda","rockville","wisconsin","wi","milwaukee","madison","greenbay","green-bay","kenosha","colorado","co","denver","boulder","coloradosprings","colorado-springs","minnesota","mn","minneapolis","stpaul","st-paul","twincities","twin-cities","alabama","al","birmingham","montgomery","mobile","huntsville","tuscaloosa","louisiana","la","neworleans","new-orleans","nola","batonrouge","baton-rouge","kentucky","ky","louisville","lexington","bowling-green","frankfort","oregon","or","portland","pdx","eugene","salem","bend","medford","oklahoma","ok","okc","oklahomacity","oklahoma-city","tulsa","norman","connecticut","ct","hartford","newhaven","new-haven","stamford","bridgeport","utah","ut","saltlakecity","salt-lake-city","slc","provo","ogden","iowa","ia","desmoines","des-moines","cedarrapids","cedar-rapids","davenport","nevada","nv","lasvegas","las-vegas","vegas","reno","henderson","sparks","arkansas","ar","littlerock","little-rock","fayetteville","fortsmith","mississippi","ms","jackson","gulfport","biloxi","hattiesburg","southaven","kansas","ks","wichita","overlandpark","overland-park","kansascity","topeka","newmexico","new-mexico","nm","albuquerque","santafe","santa-fe","lascruces","nebraska","ne","omaha","lincoln","bellevue","grandisland","grand-island","idaho","id","boise","meridian","nampa","idahofalls","idaho-falls","pocatello","westvirginia","west-virginia","wv","charleston","huntington","morgantown","hawaii","hi","honolulu","maui","oahu","kauai","bigisland","big-island","newhampshire","new-hampshire","nh","manchester","nashua","concord","portsmouth","maine","me","portland","lewiston","bangor","auburn","augusta","rhodeisland","rhode-island","ri","providence","warwick","cranston","newport","montana","mt","billings","missoula","greatfalls","great-falls","bozeman","delaware","de","wilmington","dover","newark","middletown","smyrna","southdakota","south-dakota","sd","siouxfalls","sioux-falls","rapidcity","northdakota","north-dakota","nd","fargo","bismarck","grandforks","grand-forks","alaska","ak","anchorage","fairbanks","juneau","sitka","ketchikan","vermont","vt","burlington","essex","rutland","colchester","bennington","wyoming","wy","cheyenne","casper","laramie","gillette","rocksprings","dc","washingtondc","washington-dc","dmv","nova","northern-virginia","puertorico","puerto-rico","pr","sanjuan","san-juan","bayamon","carolina","midwest","midwestern","northeast","northeastern","southeast","southeastern","southwest","southwestern","northwest","northwestern","pacificnorthwest","pnw","newengland","new-england","deepouth","deep-south","sunbelt","sun-belt","rustbelt","rust-belt","biblebelt","bible-belt","cornbelt","corn-belt",...Nf];async function Vf(a){const e=function(a){let e=a.startsWith("#")?a.slice(1):a;return e=e.toLowerCase().replace(/[^a-z0-9-]/g,""),e=e.replace(/-+/g,"-"),e=e.replace(/^-+|-+$/g,""),e}(a);if(!e)throw new Error(`Invalid channel name: "${a}" filters to empty string`);const n=`#${e}`,t=(new TextEncoder).encode(n),o=(await wf(t)).slice(0,16),r=(await wf(o))[0],s=new Uint8Array(32);return s.set(o),{name:`#${e}`,channelHash:r,aesKey:o,hmacKey:s,autoDiscovered:!0}}let Of=null,$f=null;const Wf=new Map;let Uf=null;const Hf="pymc_discovered_channels";function Yf(a){Wf.set(a.channelHash,a),a.autoDiscovered&&function(){try{const a=[];for(const e of Wf.values())e.autoDiscovered&&a.push({name:e.name,hash:e.channelHash});localStorage.setItem(Hf,JSON.stringify(a))}catch(a){}}()}async function Gf(){Of||($f||($f=(async()=>{await async function(){try{const a=localStorage.getItem(Hf);if(!a)return;const e=JSON.parse(a);for(const{name:n}of e)try{const a=await Vf(n);Wf.set(a.channelHash,a)}catch{}e.length}catch(a){}}();const a=new Map;for(const e of _f)try{const n=await Vf(e),t=a.get(n.channelHash)||[];t.push(n),a.set(n.channelHash,t)}catch{}Of=a})()),await $f)}async function Kf(a,e,n){const t=await async function(a,e){if(pf())try{const n=new ArrayBuffer(a.length);new Uint8Array(n).set(a);const t=new ArrayBuffer(e.length);new Uint8Array(t).set(e);const o=await crypto.subtle.importKey("raw",n,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),r=await crypto.subtle.sign("HMAC",o,t);return new Uint8Array(r)}catch{}return async function(a,e){const n=64;let t;a.length>n?(t=new Uint8Array(n),t.set(vf(a))):(t=new Uint8Array(n),t.set(a));const o=new Uint8Array(n),r=new Uint8Array(n);for(let c=0;c=2024&&n<=2030;if(!t)return{valid:!1,confidence:"low"};const o=a.slice(5);if(0===o.length)return{valid:!1,confidence:"low"};let r=0,s=!1;for(let l=0;l=32&&a<=126||0===a||10===a||13===a||9===a)&&r++,58===a&&(s=!0)}const i=r/o.length;return i>=.85&&s&&t?{valid:!0,confidence:"high"}:i>=.7&&t?{valid:!0,confidence:"medium"}:{valid:!1,confidence:"low"}}async function Jf(a,e,n){await Gf();const t=await async function(){return Uf||(Uf=await async function(a,e=!1){const n=cf(a.secret),t=(await wf(n))[0],o=new Uint8Array(32);return o.set(n.slice(0,32)),{name:a.name,channelHash:t,aesKey:o.slice(0,16),hmacKey:o,autoDiscovered:e}}(If)),Uf}();if(t.channelHash===a&&await Kf(t.hmacKey,e,n))return{channelName:"Public",plaintext:Ff(t.aesKey,n),keys:t};const o=Wf.get(a);if(o&&await Kf(o.hmacKey,e,n)){const a=Ff(o.aesKey,n);return{channelName:o.name,plaintext:a,keys:o}}const r=(null==Of?void 0:Of.get(a))||[],s=[];for(const l of r){if(await Kf(l.hmacKey,e,n)){Yf(l);const a=Ff(l.aesKey,n);return{channelName:l.name,plaintext:a,keys:l}}s.push(l)}let i=null;for(const l of s)try{const a=Ff(l.aesKey,n),e=Xf(a);if(e.valid){if("high"===e.confidence)return{channelName:l.name,plaintext:a,keys:l,macCorrupted:!0};"medium"!==e.confidence||i||(i={keys:l,plaintext:a,confidence:"medium"})}}catch{}return i?{channelName:i.keys.name,plaintext:i.plaintext,keys:i.keys,macCorrupted:!0}:null}async function Zf(a){return await Gf(),((null==Of?void 0:Of.get(a))||[]).map(a=>a.name)}async function Qf(a,e,n,t){try{const o=await Vf(a);if(o.channelHash!==e)return{success:!1,error:`Hash mismatch: "${a}" has hash 0x${o.channelHash.toString(16).toUpperCase().padStart(2,"0")}, packet has 0x${e.toString(16).toUpperCase().padStart(2,"0")}`};if(!(await Kf(o.hmacKey,n,t)))return{success:!1,error:"MAC verification failed - wrong channel name or corrupted data"};const r=Ff(o.aesKey,t);return Yf(o),{success:!0,result:{channelName:o.name,plaintext:r,keys:o}}}catch(o){return{success:!1,error:`Error: ${o instanceof Error?o.message:String(o)}`}}}let ay=null,ey=[];function ny(a){return{decoded:a.success?{type:"grp_txt",channelHash:a.channelHash,channelName:a.channelName,text:a.text??"",decrypted:!0,senderName:a.senderName,timestamp:a.timestamp,flags:a.flags,macCorrupted:a.macCorrupted,isPublicHashChannel:!0}:null,timestamp:a.packetTimestamp,rssi:a.rssi,snr:a.snr}}const ty=w((a,e)=>{let n=!1;return{messages:new Map,stableMessages:new Map,lastSnapshotUpdate:0,processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1},initialDecodeComplete:!1,queueDecryption:async(t,o)=>{const{messages:r,processing:s}=e(),i=(null==o?void 0:o.quickMode)??!1;let l=t.filter(a=>(a.type??a.payload_type)===Ob.GRP_TXT&&a.raw_packet&&!r.has(a.packet_hash)&&!s.has(a.packet_hash));if(0===l.length)return;if(i&&l.length>100&&(l=l.sort((a,e)=>(e.timestamp??0)-(a.timestamp??0)).slice(0,100)),n){const a=new Set(ey.map(a=>a.packet_hash)),e=l.filter(e=>!a.has(e.packet_hash));return void(e.length>0&&ey.push(...e))}n=!0;const c=new Set(l.map(a=>a.packet_hash));a(a=>({processing:new Set([...a.processing,...c]),progress:{total:l.length,processed:0,percent:0,isDecoding:!0}}));try{const{totalCount:n}=await yb.decrypt(l,{onProgress:(e,n)=>{a({progress:{total:n,processed:e,percent:Math.round(e/n*100),isDecoding:!0}})},onResults:n=>{const{messages:t}=e();for(const a of n)t.set(a.packetHash,ny(a));a({messages:t}),ay&&clearTimeout(ay),ay=setTimeout(()=>{a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now()})},500)}});ay&&(clearTimeout(ay),ay=null);const t=e().messages;if(t.size>5e4){const a=Array.from(t.entries()).sort((a,e)=>a[1].timestamp-e[1].timestamp).slice(0,t.size-5e4);for(const[e]of a)t.delete(e)}if(a({messages:t,stableMessages:new Map(t),lastSnapshotUpdate:Date.now(),processing:new Set,initialDecodeComplete:!0,progress:{total:n,processed:n,percent:100,isDecoding:!1}}),ey.length>0){const a=ey;ey=[],setTimeout(()=>{e().queueDecryption(a)},50)}}catch(d){a({processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1}})}finally{n=!1}},queueChannelDecryption:async(t,o)=>{const{messages:r,processing:s}=e(),i=await async function(a){const e=await async function(a){return Vf(a.startsWith("#")?a.slice(1):a)}(a);return{name:e.name,channelHash:e.channelHash,aesKeyHex:df(e.aesKey),hmacKeyHex:df(e.hmacKey)}}(o),l=t.filter(a=>{if((a.type??a.payload_type)!==Ob.GRP_TXT||!a.raw_packet)return!1;if(r.has(a.packet_hash)||s.has(a.packet_hash))return!1;const e=a.raw_packet;if(e.length<4)return!1;const n=3&parseInt(e.slice(0,2),16);let t=2;return 0!==n&&3!==n||(t=10),t+=2+2*parseInt(e.slice(t,t+2),16),parseInt(e.slice(t,t+2),16)===i.channelHash});if(0===l.length)return;if(n)return;n=!0;const c=new Set(l.map(a=>a.packet_hash));a(a=>({processing:new Set([...a.processing,...c]),progress:{total:l.length,processed:0,percent:0,isDecoding:!0}}));try{const{totalCount:n}=await yb.decrypt(l,{knownKey:i,onProgress:(e,n)=>{a({progress:{total:n,processed:e,percent:Math.round(e/n*100),isDecoding:!0}})},onResults:n=>{const{messages:t}=e();for(const a of n)t.set(a.packetHash,ny(a));a({messages:t}),ay&&clearTimeout(ay),ay=setTimeout(()=>{a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now()})},500)}});ay&&(clearTimeout(ay),ay=null),a({stableMessages:new Map(e().messages),lastSnapshotUpdate:Date.now(),processing:new Set,progress:{total:n,processed:n,percent:100,isDecoding:!1}})}catch(d){a({processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1}})}finally{n=!1}},getMessage:a=>e().messages.get(a),getSuccessfulMessages:()=>{var a;const{messages:n}=e(),t=[];for(const e of n.values())(null==(a=e.decoded)?void 0:a.decrypted)&&!e.decoded.macCorrupted&&t.push(e);return t.sort((a,e)=>a.timestamp-e.timestamp)},clear:()=>{ay&&(clearTimeout(ay),ay=null),a({messages:new Map,stableMessages:new Map,lastSnapshotUpdate:0,processing:new Set,progress:{total:0,processed:0,percent:0,isDecoding:!1},initialDecodeComplete:!1})}}});function oy(a){return ty(e=>e.messages.get(a))}function ry(){return ty(a=>a.progress)}function sy(){return ty(a=>a.initialDecodeComplete)}function iy(){return ty(a=>a.stableMessages)}function ly(){return ty(a=>a.stableMessages)}function cy(a){return a.startsWith("0x")||a.startsWith("0X")?a.slice(2,4).toUpperCase():a.slice(0,2).toUpperCase()}function dy(a,e){let n=a.forwarded_path??a.original_path;if("string"==typeof n)try{n=JSON.parse(n)}catch{return null}if(!n||!Array.isArray(n)||0===n.length)return null;const t=n.map(a=>String(a).toUpperCase()),o=e?cy(e):null,r=t[t.length-1],s=null!==o&&r===o,i=s?t.slice(0,-1):[...t];return{effective:i,original:t,hadLocal:s,effectiveLength:i.length}}function uy(a,e){const n=a.toUpperCase();return e.startsWith("0x")||e.startsWith("0X")?e.slice(2).toUpperCase().startsWith(n):e.toUpperCase().startsWith(n)}const hy=[{label:"20m",minutes:20,buckets:80},{label:"1h",minutes:60,buckets:80},{label:"3h",minutes:180,buckets:80},{label:"12h",minutes:720,buckets:80},{label:"24h",minutes:1440,buckets:80},{label:"3d",minutes:4320,buckets:80},{label:"7d",minutes:10080,buckets:80},{label:"14d",minutes:20160,buckets:80}],my=[{label:"1h",hours:1},{label:"3h",hours:3},{label:"12h",hours:12},{label:"24h",hours:24},{label:"3d",hours:72},{label:"7d",hours:168},{label:"14d",hours:336}];function py(a,e=12){return Math.max(e,Math.round(a/15))}const gy={hero:py(1200),statsCard:py(380)};function by(a){switch(a){case 1:return 3600;case 3:case 12:return 5400;case 24:return 8640;case 72:case 168:case 336:return 720;default:{const e=3600*a,n=Math.round(e/10);return Math.min(Math.max(360,n),720)}}}const fy="'JetBrains Mono', 'SF Mono', Monaco, monospace",yy={stats:3e3,packets:3e3,logs:2e3,system:3e3},vy={DEBUG:"text-sys-brown",INFO:"text-sys-cyan",WARNING:"text-sys-amber",ERROR:"text-sys-red",CRITICAL:"text-sys-pink"};function wy(a){return vy[a]??"text-text-muted border-border-subtle"}function ky(a){return a?(a.startsWith("0x")?a.slice(2):a).slice(0,2).toUpperCase():""}function xy(a,e){if(!a)return"expired";const n=e/1e3-a;return n<=10800?"active":n<=86400?"stale":"expired"}function jy(a,e,n=Date.now()){if(!a)return[];const t=Object.keys(a);if(0===t.length)return[];const o=[];for(let r=0;re.count!==a.count?e.count-a.count:e.lastSeen-a.lastSeen),o}const zy={critical:0,high:150,medium:300,low:450};let Cy=!1;const Ay=[],Dy=new Set;function Ey(a,e="medium"){if(Cy){const n=setTimeout(()=>{a(),Dy.delete(n)},zy[e]);return Dy.add(n),()=>{clearTimeout(n),Dy.delete(n)}}{const n={callback:a,priority:e};return Ay.push(n),()=>{const a=Ay.indexOf(n);-1!==a&&Ay.splice(a,1)}}}const By="pymc-hidden-contacts",Fy="pymc-quick-neighbors",qy="pymc-local-hash",Sy="pymc-global-time-range";let My=null;function Ty(a){return 4===(a.type??a.payload_type)&&!0!==a.transmitted&&function(a){const e=function(a){if(Array.isArray(a))return a;if("string"==typeof a&&a.startsWith("["))try{const e=JSON.parse(a);return Array.isArray(e)?e:[]}catch{return[]}return[]}(a.original_path),n=a.route??a.route_type;return 2===(t=n)||3===t?0===e.length:ir(n)?e.length<=1:0===e.length;var t}(a)}function Py(a,e,n,t){if(!a)return null;let o=a;if(a.length<=4){const t=a.replace(/^0x/i,"").toUpperCase();if(t===e)return null;const r=n.get(t);if(!r)return null;o=r}return t.has(o)?cy(o)===e?null:o:null}function Ly(a,e){a.count++,void 0!==e.rssi&&null!==e.rssi&&(a.rssiSum+=e.rssi,a.rssiCount++),void 0!==e.snr&&null!==e.snr&&(a.snrSum+=e.snr,a.snrCount++);const n=e.timestamp??0;n>a.lastSeen&&(a.lastSeen=n)}function Ry(a){return{hash:a,count:0,rssiSum:0,rssiCount:0,snrSum:0,snrCount:0,lastSeen:0}}function Ny(a,e){const n=function(a,e){const n=e-1e3*a;return n<=6048e5?"active":n<=12096e5?"stale":"expired"}(a.lastSeen,e);return"expired"===n?null:{hash:a.hash,prefix:cy(a.hash),count:a.count,avgRssi:a.rssiCount>0?a.rssiSum/a.rssiCount:null,avgSnr:a.snrCount>0?a.snrSum/a.snrCount:null,lastSeen:a.lastSeen,status:n}}function Iy(){if("undefined"==typeof window)return[];try{const a=localStorage.getItem(Fy);if(a)return JSON.parse(a)}catch{}return[]}function _y(a){"undefined"!=typeof window&&(My&&clearTimeout(My),My=setTimeout(()=>{try{localStorage.setItem(Fy,JSON.stringify(a))}catch{}My=null},1e3))}function Vy(){if("undefined"!=typeof window)try{const a=localStorage.getItem(qy);if(a)return a}catch{}}function Oy(a){if("undefined"!=typeof window)try{localStorage.setItem(qy,a)}catch{}}function $y(){if("undefined"==typeof window)return new Set;try{const a=localStorage.getItem(By);if(a)return new Set(JSON.parse(a))}catch{}return new Set}function Wy(){if("undefined"==typeof window)return 4;try{const a=localStorage.getItem(Sy);if(a){const e=parseInt(a,10);if(!isNaN(e)&&e>=0&&e<=7)return e>4?4:e}}catch{}return 4}const Uy=w((a,e)=>({stats:null,statsLoading:!1,statsError:null,packets:Xg.getPackets(),packetsLoading:!1,packetsError:null,lastPacketTimestamp:Xg.getNewestTimestamp(),logs:[],logsLoading:!1,liveMode:!0,flashReceived:0,flashAdvert:0,pendingAdvertLocalHash:null,pendingAdvertTimestamp:null,resourceHistory:[],lastResourceFetch:0,hardwareStats:null,hardwareStatsLoading:!1,hardwareStatsError:null,hiddenContacts:$y(),quickNeighbors:Iy(),cachedLocalHash:Vy(),initialized:!1,packetCacheState:Xg.getState(),mutationsInFlight:new Set,globalTimeRangeIndex:Wy(),initializeApp:async()=>{const{initialized:n}=e();if(n)return;a({initialized:!0,statsLoading:!0,packetsLoading:!0}),Xg.subscribe(e=>{a({packetCacheState:e})});const{hiddenContacts:t}=e();let o=0;Dg().then(e=>{const n=jy(e.neighbors,t),o=e.local_hash;a({stats:e,statsLoading:!1,quickNeighbors:n,cachedLocalHash:o}),_y(n),o&&Oy(o)}).catch(e=>{a({statsError:e instanceof Error?e.message:"Failed to fetch stats",statsLoading:!1})}),Xg.initialLoad(()=>{const e=Date.now();if(e-o>=50){o=e;const n=Xg.getPackets();if(n.length>0){const e=Xg.getNewestTimestamp();a({packets:n,lastPacketTimestamp:e})}}}).then(n=>{if(n.length>0){const t=Xg.getNewestTimestamp();a({packets:n,packetsLoading:!1,lastPacketTimestamp:t});const o=(a,e)=>{"requestIdleCallback"in window?requestIdleCallback(()=>a(),{timeout:e}):setTimeout(a,100)};o(()=>e().triggerTopologyCompute(),2e3),o(()=>e().triggerSparklineCompute(),1e3),setTimeout(()=>function(){if(!Cy){Cy=!0;for(const a of Ay){const e=zy[a.priority],n=setTimeout(()=>{a.callback(),Dy.delete(n)},e);Dy.add(n)}Ay.length=0}}(),16),setTimeout(()=>{ty.getState().queueDecryption(n,{quickMode:!0})},500)}else a({packetsLoading:!1})}).catch(e=>{a({packetsError:e instanceof Error?e.message:"Failed to load packets",packetsLoading:!1})}),ob.getState().initialize(),eb.onPacket(n=>{const{lastPacketTimestamp:t,mutationsInFlight:o}=e();if(o.size>0)return;tb.stage(n);const r=n.timestamp??0;r>t&&a({flashReceived:e().flashReceived+1,lastPacketTimestamp:r})}),eb.onStats(n=>{const{mutationsInFlight:t,hiddenContacts:o}=e();if(t.size>0)return;const r=jy(n.neighbors,o),s=n.local_hash;a({stats:n,statsLoading:!1,statsError:null,quickNeighbors:r,cachedLocalHash:s}),_y(r),s&&Oy(s)}),eb.onPacketStats(n=>{const{stats:t,mutationsInFlight:o}=e();if(!t||o.size>0)return;const r={...t,rx_count:n.rx_count??t.rx_count,tx_count:n.tx_count??t.tx_count,forwarded_count:n.forwarded_count??t.forwarded_count,dropped_count:n.dropped_count??t.dropped_count};a({stats:r})});{const n="";Og.init({apiBaseUrl:n,authToken:ig()??void 0,statsIntervalMs:yy.stats,packetsIntervalMs:yy.packets}).then(()=>{if(Og.onStats((n,t)=>{const{mutationsInFlight:o,hiddenContacts:r}=e();if(o.size>0)return;const s=jy(n.neighbors,r),i=n.local_hash;a({stats:n,statsLoading:!1,statsError:null,quickNeighbors:s,cachedLocalHash:i}),_y(s),i&&Oy(i),fb.getState().updateRestHealth(!0)}),Og.onPackets((n,t,o)=>{if(0===n.length)return;const{lastPacketTimestamp:r}=e(),s=n.map(a=>a.packet_hash).filter(a=>!!a);tb.confirmBatch(s),Xg.mergePacketsDirectly(n),o>r&&qg();const i=Xg.getPackets();a({packets:i,packetsLoading:!1,packetsError:null,lastPacketTimestamp:Math.max(o,r)}),ty.getState().queueDecryption(n)}),Og.onError((e,n)=>{"stats"===e?(a({statsError:n}),fb.getState().updateRestHealth(!1)):a({packetsError:n})}),"undefined"!=typeof document){let a=Date.now();const n=3e5;document.addEventListener("visibilitychange",async()=>{if(document.hidden)a=Date.now();else{const t=Date.now()-a>n;t&&(eb.resetSupported(),eb.isConnected()?await eb.verifyConnection(3e3)||(eb.disconnect(),eb.connect()):eb.isSupported()&&eb.connect()),Og.forceRefresh(),t&&e().fetchStats({force:!0})}})}}).catch(a=>{!function(a){setInterval(()=>{Xg.isHeavyLoadInProgress()||a().fetchStats()},yy.stats),setInterval(()=>{a().liveMode&&!Xg.isHeavyLoadInProgress()&&a().fetchPackets()},yy.packets)}(e)})}e().fetchHardwareStats(),setInterval(()=>{"undefined"!=typeof document&&document.hidden||e().fetchHardwareStats()},yy.system)},prefetchForRoute:a=>{switch(a){case"/logs":Eg().catch(()=>{});break;case"/system":Mg().catch(()=>{});break;case"/statistics":(async function(a=24){return xg(`/api/packet_type_graph_data?hours=${a}`)})(3).catch(()=>{}),Bg(3).catch(()=>{});break;case"/settings":(async function(){return xg("/api/radio_presets")})().catch(()=>{})}},fetchStats:async n=>{const{stats:t,mutationsInFlight:o,hiddenContacts:r}=e();if(!(o.size>0)||(null==n?void 0:n.force)){t||a({statsLoading:!0}),a({statsError:null});try{const e=await Dg(),n=jy(e.neighbors,r),t=e.local_hash;a({stats:e,statsLoading:!1,quickNeighbors:n,cachedLocalHash:t}),_y(n),t&&Oy(t)}catch(s){a({statsError:s instanceof Error?s.message:"Failed to fetch stats",statsLoading:!1})}}},fetchPackets:async n=>{const{packets:t,lastPacketTimestamp:o}=e();0===t.length&&a({packetsLoading:!0}),a({packetsError:null});try{const n=await Xg.poll(),r=Xg.getNewestTimestamp(),s=r>o&&o>0,i=n.length!==t.length||s;s&&(a({flashReceived:e().flashReceived+1}),qg()),i?(a({packets:n,packetsLoading:!1,lastPacketTimestamp:r||o}),ty.getState().queueDecryption(n)):a({packetsLoading:!1})}catch(r){a({packetsError:r instanceof Error?r.message:"Failed to fetch packets",packetsLoading:!1})}},fetchLogs:async()=>{const{logs:n}=e();0===n.length&&a({logsLoading:!0});try{const e=await Eg();a({logs:e.logs,logsLoading:!1})}catch{a({logsLoading:!1})}},setLiveMode:e=>{a({liveMode:e}),Og.isReady()&&Og.setLiveMode(e)},setMode:async n=>{const t="setMode",{mutationsInFlight:o}=e(),r=new Set(o);r.add(t),a({mutationsInFlight:r});try{if(!(await Rg(n)).success)throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}catch(s){const{mutationsInFlight:n}=e(),o=new Set(n);throw o.delete(t),a({mutationsInFlight:o}),s}},clearModeMutation:()=>{const{mutationsInFlight:n}=e(),t=new Set(n);t.delete("setMode"),a({mutationsInFlight:t})},setDutyCycle:async n=>{const t="setDutyCycle",{mutationsInFlight:o}=e(),r=new Set(o);r.add(t),a({mutationsInFlight:r});try{if(!(await Ng(n)).success)throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}finally{const{mutationsInFlight:n}=e(),o=new Set(n);o.delete(t),a({mutationsInFlight:o})}},setDutyCycleConfig:async n=>{var t;const o="setDutyCycleConfig",{mutationsInFlight:r}=e(),s=new Set(r);s.add(o),a({mutationsInFlight:s});try{const a=await async function(a){return xg("/api/update_duty_cycle_config",{method:"POST",body:JSON.stringify(a)})}(n);if(!a.success&&!(null==(t=a.data)?void 0:t.persisted))throw new Error("Backend returned unsuccessful response");await e().fetchStats({force:!0})}catch(i){const{mutationsInFlight:n}=e(),t=new Set(n);throw t.delete(o),a({mutationsInFlight:t}),i}},clearDutyCycleMutation:()=>{const{mutationsInFlight:n}=e(),t=new Set(n);t.delete("setDutyCycleConfig"),a({mutationsInFlight:t})},startMutation:n=>{const{mutationsInFlight:t}=e(),o=new Set(t);o.add(n),a({mutationsInFlight:o})},clearMutation:n=>{const{mutationsInFlight:t}=e(),o=new Set(t);o.delete(n),a({mutationsInFlight:o})},sendAdvert:async()=>{try{const n=await Lg();return n.success?(a({flashAdvert:e().flashAdvert+1}),{success:!0}):{success:!1,error:n.error||"Failed to send advert"}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Unknown error"}}},triggerFlashReceived:()=>{a({flashReceived:e().flashReceived+1})},triggerFlashAdvert:()=>{a({flashAdvert:e().flashAdvert+1})},fetchHardwareStats:async()=>{try{const n=await Mg();if(n.success&&n.data){const t=n.data;a({hardwareStats:t,hardwareStatsLoading:!1,hardwareStatsError:null});const o=80;e().addResourceDataPoint(t.cpu.usage_percent,t.memory.usage_percent,o)}else a({hardwareStatsError:n.error??"Failed to fetch hardware stats",hardwareStatsLoading:!1})}catch(n){a({hardwareStatsError:n instanceof Error?n.message:"Failed to fetch hardware stats",hardwareStatsLoading:!1})}},addResourceDataPoint:(n,t,o)=>{const r=Date.now(),{lastResourceFetch:s,resourceHistory:i}=e();if(r-s<1e3)return;const l=[...i,{timestamp:r,time:new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),cpu:n,memory:t}],c=l.length>o?l.slice(-o):l;a({resourceHistory:c,lastResourceFetch:r})},hideContact:n=>{const{hiddenContacts:t}=e(),o=new Set(t);o.add(n),a({hiddenContacts:o}),function(a){if("undefined"!=typeof window)try{localStorage.setItem(By,JSON.stringify([...a]))}catch{}}(o)},clearPacketCache:()=>{Xg.clear(),a({packets:[],lastPacketTimestamp:0}),Xg.quickLoad().then(n=>{if(n.length>0){const t=n.reduce((a,e)=>Math.max(a,e.timestamp??0),0);a({packets:n,lastPacketTimestamp:t}),e().triggerTopologyCompute()}})},triggerTopologyCompute:()=>{var a,n,t,o;const{packets:r,stats:s,hiddenContacts:i}=e();if(0===r.length||!s)return;const l=s.neighbors??{},c=Object.fromEntries(Object.entries(l).filter(([a])=>!i.has(a))),d=s.local_hash;let u=null==(n=null==(a=s.config)?void 0:a.repeater)?void 0:n.latitude,h=null==(o=null==(t=s.config)?void 0:t.repeater)?void 0:o.longitude;if(!u||!h||0===u&&0===h){const a=gb.getState().getEffectiveLocation();a&&(u=a.latitude,h=a.longitude)}const m=[];for(const[e,g]of Object.entries(c))g.zero_hop&&m.push({hash:e,advertCount:g.advert_count??1,avgRssi:g.rssi??null,avgSnr:g.snr??null,lastSeen:g.last_seen??0,latitude:g.latitude,longitude:g.longitude});const p=cb.getState().getTerrainGridForDisambiguation();Qg.compute(r,c,d,u,h,void 0,m,p??void 0)},triggerDeepAnalysis:async()=>{await Xg.forceDeepLoad();const n=Xg.getPackets();if(n.length>0){const t=n.reduce((a,e)=>Math.max(a,e.timestamp??0),0);a({packets:n,lastPacketTimestamp:t}),e().triggerTopologyCompute(),e().triggerSparklineCompute()}},updateQuickNeighbors:()=>{const{packets:n,stats:t,hiddenContacts:o}=e();if(0===n.length||!t)return;const r=t.neighbors??{},s=function(a,e,n){if(!n||0===a.length||0===Object.keys(e).length)return[];const t=Date.now(),o=cy(n),r=new Set(Object.keys(e)),s=function(a){var e,n;const t=new Map;for(const o of Object.keys(a)){const r=cy(o),s=t.get(r);if(s){const i=null==(e=a[s])?void 0:e.zero_hop;(null==(n=a[o])?void 0:n.zero_hop)&&!i&&t.set(r,o)}else t.set(r,o)}return t}(e),i=new Map;for(const c of a){if(!Ty(c))continue;const a=Py(c.src_hash,o,s,r);if(!a)continue;let e=i.get(a);e||(e=Ry(a),i.set(a,e)),Ly(e,c)}for(const[c,d]of Object.entries(e))cy(c)!==o&&d.zero_hop&&!i.has(c)&&i.set(c,{hash:c,count:d.advert_count??0,rssiSum:d.rssi??0,rssiCount:void 0!==d.rssi?1:0,snrSum:d.snr??0,snrCount:void 0!==d.snr?1:0,lastSeen:d.last_seen??0});const l=[];for(const c of i.values()){const a=Ny(c,t);a&&l.push(a)}return l.sort((a,e)=>e.count!==a.count?e.count-a.count:e.lastSeen-a.lastSeen),l}(n,Object.fromEntries(Object.entries(r).filter(([a])=>!o.has(a))),t.local_hash),i=e().quickNeighbors;(s.length!==i.length||s.some((a,e)=>{var n,t;return a.hash!==(null==(n=i[e])?void 0:n.hash)||a.count!==(null==(t=i[e])?void 0:t.count)}))&&(a({quickNeighbors:s}),_y(s))},triggerSparklineCompute:()=>{const{packets:a,stats:n,hiddenContacts:t}=e();if(0===a.length||!n)return;const o=n.neighbors??{},r=Object.keys(o).filter(a=>!t.has(a));0!==r.length&&ab.compute(a,r)},requestSevenDayData:async()=>{let n=0;await Xg.loadSevenDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Xg.getPackets()}))});const t=Xg.getPackets();a({packets:t,lastPacketTimestamp:Xg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),ty.getState().queueDecryption(t)},{timeout:2e3})},requestThreeDayData:async()=>{let n=0;await Xg.loadThreeDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Xg.getPackets()}))});const t=Xg.getPackets();a({packets:t,lastPacketTimestamp:Xg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),ty.getState().queueDecryption(t)},{timeout:2e3})},requestFourteenDayData:async()=>{let n=0;await Xg.loadFourteenDays(()=>{const e=Date.now();e-n<200||(n=e,a({packets:Xg.getPackets()}))});const t=Xg.getPackets();a({packets:t,lastPacketTimestamp:Xg.getNewestTimestamp()}),requestIdleCallback(()=>{e().triggerTopologyCompute(),e().triggerSparklineCompute(),ty.getState().queueDecryption(t)},{timeout:5e3})},setGlobalTimeRange:n=>{a({globalTimeRangeIndex:n}),function(a){if("undefined"!=typeof window)try{localStorage.setItem(Sy,a.toString())}catch{}}(n);const t={0:1,1:1,2:3,3:12,4:24,5:72,6:168,7:336}[n]??24;Og.setTimeWindow(t);const{packetCacheState:o,requestThreeDayData:r,requestSevenDayData:s,requestFourteenDayData:i,triggerTopologyCompute:l,triggerSparklineCompute:c}=e();let d=!1;if(5!==n||o.threeDayLoadComplete||o.isBackgroundLoading||(r(),d=!0),6!==n||o.sevenDayLoadComplete||o.isBackgroundLoading||(s(),d=!0),7!==n||o.fourteenDayLoadComplete||o.isBackgroundLoading||(i(),d=!0),!d&&n>=5&&(l(),c()),!d){const{packets:a}=e();ty.getState().queueDecryption(a)}}})),Hy=Uy,Yy=()=>Uy(a=>a.stats),Gy=()=>Uy(a=>a.statsError),Ky=()=>Uy(a=>a.packets),Xy=()=>Uy(a=>a.packetsLoading),Jy=()=>Uy(a=>a.logs),Zy=()=>Uy(a=>a.logsLoading),Qy=()=>Uy(a=>a.liveMode),av=()=>Uy(a=>a.fetchLogs),ev=()=>Uy(a=>a.setLiveMode),nv=()=>Uy(a=>a.resourceHistory),tv=()=>Uy(a=>a.hardwareStats),ov=()=>Uy(a=>a.hardwareStatsLoading),rv=()=>Uy(a=>a.hardwareStatsError),sv=()=>Uy(a=>a.fetchHardwareStats),iv=()=>Uy(a=>a.hiddenContacts),lv=()=>Uy(a=>a.hideContact),cv=()=>Uy(a=>a.packetCacheState),dv=()=>Uy(a=>a.quickNeighbors),uv=()=>Uy(a=>a.cachedLocalHash),hv=()=>Uy(a=>a.lastPacketTimestamp),mv=()=>Uy(a=>a.globalTimeRangeIndex),pv=()=>Uy(a=>a.setGlobalTimeRange),gv=()=>Uy(a=>null!==a.stats&&a.packetCacheState.backgroundLoadComplete),bv=()=>Uy(a=>a.packets.length>0);function fv(){const a=Uy(a=>{var e,n,t;return null==(t=null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.repeater)?void 0:t.latitude}),e=Uy(a=>{var e,n,t;return null==(t=null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.repeater)?void 0:t.longitude}),n=Uy(a=>{var e,n,t;return(null==(n=null==(e=a.stats)?void 0:e.config)?void 0:n.node_name)||(null==(t=a.stats)?void 0:t.node_name)||"Local Node"}),t=gb(a=>a.latitude),o=gb(a=>a.longitude),r=gb(a=>a.enabled);return a&&e&&(0!==a||0!==e)?{latitude:a,longitude:e,name:n,isStealth:!1}:r&&null!==t&&null!==o?{latitude:t,longitude:o,name:n,isStealth:!0}:null}const yv={healthy:{p3:"color(display-p3 0.2 1 0.4)",fallback:"#00FF66"},degraded:{p3:"color(display-p3 1 0.7 0.2)",fallback:"#FFB020"},offline:{p3:"color(display-p3 1 0.3 0.3)",fallback:"#EF4444"},connecting:{p3:"color(display-p3 0.4 0.6 1)",fallback:"#6699FF"},rx:{p3:"color(display-p3 0.2 1 0.4)",fallback:"#00FF66"},tx:{p3:"color(display-p3 1 0.9 0.2)",fallback:"#FFDD00"},idle:{p3:"color(display-p3 0.3 0.3 0.35)",fallback:"#4A4A55"}};function vv({color:a,pulse:e=!1,className:n}){var t;return r.jsx("span",{className:i("inline-block rounded-full w-1 h-1",e&&"animate-pulse",n),style:{backgroundColor:a.fallback,...(null==(t=CSS.supports)?void 0:t.call(CSS,"color","color(display-p3 1 1 1)"))&&{backgroundColor:a.p3}}})}function wv({showLabel:a=!1,className:e}){const n=Uy(a=>a.flashReceived),t=Uy(a=>a.flashAdvert),s=ob(a=>"connected"===a.connectionState),l=fb(a=>a.health),c=fb(a=>a.isInitializing),[d,u]=o.useState("idle"),h=o.useRef(0),m=o.useRef(0);o.useEffect(()=>{if(n<=0)return;const a=Date.now();if(a-h.current<50)return;h.current=a,u("rx");const e=setTimeout(()=>u("idle"),100);return()=>clearTimeout(e)},[n]),o.useEffect(()=>{if(t<=0)return;const a=Date.now();if(a-m.current<50)return;m.current=a,u("tx");const e=setTimeout(()=>u("idle"),100);return()=>clearTimeout(e)},[t]);let p=yv.healthy,g=!1,b="LIVE",f="Real-time (WebSocket)";c?(p=yv.connecting,g=!0,b="WAIT",f="Connecting..."):"offline"===l?(p=yv.offline,g=!0,b="DOWN",f="Cannot reach server"):"degraded"===l?(p=yv.degraded,b="POLL",f="Real-time unavailable, using REST polling"):s?(p=yv.healthy,b="LIVE",f="Real-time (WebSocket)"):(p=yv.healthy,b="POLL",f="Database polling");const y="rx"===d?yv.rx:"tx"===d?yv.tx:yv.idle;return r.jsxs("span",{className:i("inline-flex items-center gap-1.5",e),title:f,children:[r.jsxs("span",{className:"inline-flex items-center justify-center gap-1 w-5 h-5 rounded bg-black border border-white/[0.08]",children:[r.jsx(vv,{color:p,pulse:g}),r.jsx(vv,{color:y})]}),a&&r.jsx("span",{className:i("font-mono text-[10px] tracking-wider","DOWN"===b?"text-status-danger":"WAIT"===b?"text-accent-primary":"POLL"===b?"text-status-warning":"text-text-muted"),children:b})]})}function kv({borderRadius:a}){return r.jsx(up.div,{initial:{opacity:0},animate:{opacity:.8,backgroundPosition:["200% 0%","-200% 0%"]},exit:{opacity:0},transition:{opacity:{duration:.2},backgroundPosition:{duration:2,ease:"easeInOut",repeat:1/0}},style:{position:"absolute",inset:0,zIndex:1,pointerEvents:"none",borderRadius:a,padding:2,background:"linear-gradient(\n 90deg,\n transparent 0%,\n transparent 25%,\n var(--accent-primary) 50%,\n transparent 75%,\n transparent 100%\n )",backgroundSize:"200% 100%",mask:"\n linear-gradient(#fff 0 0) content-box,\n linear-gradient(#fff 0 0)\n ",maskComposite:"exclude",WebkitMaskComposite:"xor"}})}function xv({children:a,isLoading:e=!0,className:n,borderRadius:t=12}){return r.jsxs("div",{className:i("relative overflow-hidden",n),style:{borderRadius:t},children:[r.jsx(Jh,{children:e&&r.jsx(kv,{borderRadius:t})}),r.jsx("div",{className:"relative z-10",children:a})]})}function jv({className:a}){return r.jsx("div",{className:i("relative w-10 h-1 rounded-sm overflow-hidden","bg-bg-elevated",a),children:r.jsx(up.div,{animate:{backgroundPosition:["200% 0%","-200% 0%"]},transition:{duration:1.5,ease:"easeInOut",repeat:1/0},className:"absolute inset-0",style:{background:"linear-gradient(\n 90deg,\n transparent 0%,\n var(--accent-primary) 50%,\n transparent 100%\n )",backgroundSize:"200% 100%"}})})}const zv=w(a=>({sparklines:new Map,isComputing:!1,lastUpdated:0,nodeCount:0,setSparklines:e=>a({sparklines:e,lastUpdated:Date.now(),nodeCount:e.size,isComputing:!1}),setComputing:e=>a({isComputing:e})}));"undefined"!=typeof window&&setTimeout(()=>{ab.subscribe((a,e)=>{const n=zv.getState();e&&!n.isComputing?n.setComputing(!0):!e&&a.size>0?n.setSparklines(a):!e&&n.isComputing&&n.setComputing(!1)})},0);const Cv=()=>zv(a=>a.sparklines),Av=()=>zv(a=>a.isComputing),Dv=[],Ev=new Map;function Bv(a){return zv(e=>{const n=e.sparklines.get(a);if(!n||0===n.length)return Dv;const t=Ev.get(a);return t===n?t:(Ev.set(a,n),n)})}const Fv=w(a=>({topology:{edges:[],validatedEdges:[],weakEdges:[],certainEdges:[],uncertainEdges:[],edgeMap:new Map,maxPacketCount:0,maxCertainCount:0,neighborAffinity:new Map,fullAffinity:new Map,localPrefix:null,centrality:new Map,hubNodes:[],gatewayNodes:[],loops:[],loopEdgeKeys:new Set,txDelayRecommendations:new Map,pathRegistry:Zg(),edgeBetweenness:new Map,backboneEdges:[],nodeMobility:new Map,mobileNodes:[],pathHealth:[],lastHopNeighbors:[],disambiguationStats:{totalPrefixes:0,unambiguousPrefixes:0,collisionPrefixes:0,collisionRate:0,avgConfidence:0,lowConfidencePrefixes:[],highCollisionPrefixes:[],totalResolutions:0},discoveredNodes:[],viterbiStats:{totalPaths:0,pathsWithGhosts:0,avgPathCost:0,avgPathConfidence:0,observationOverrideCount:0,tracePacketsProcessed:0,pathPacketsProcessed:0,distantEdgesDiscovered:0,duplicateGroupsFound:0,duplicatePathsUnique:0,echolocationEdgesInferred:0},nodeMetrics:new Map,communityCount:0,backboneNodes:[]},isComputing:!1,lastComputeTimeMs:0,lastUpdated:0,setTopology:(e,n)=>a({topology:e,lastComputeTimeMs:n,lastUpdated:Date.now(),isComputing:!1}),setComputing:e=>a({isComputing:e})}));"undefined"!=typeof window&&Qg.subscribe((a,e)=>{Fv.getState().setTopology(a,e)});const qv=()=>Fv(a=>a.topology),Sv=()=>Fv(a=>a.topology.hubNodes),Mv=()=>Fv(a=>a.topology.centrality),Tv=()=>Fv(a=>a.topology.fullAffinity),Pv=()=>Fv(a=>a.isComputing),Lv=()=>Fv(a=>a.lastUpdated);let Rv=null,Nv=null,Iv=null,_v=null;const Vv=()=>Fv(a=>(a.topology.hubNodes!==Nv&&(Nv=a.topology.hubNodes,Rv=new Set(a.topology.hubNodes)),Rv)),Ov=()=>Fv(a=>a.topology.pathHealth),$v=()=>Fv(a=>a.topology.disambiguationStats),Wv=()=>Fv(a=>a.topology.disambiguationStats.highCollisionPrefixes),Uv=()=>Fv(a=>a.topology.disambiguationStats.totalPrefixes>0),Hv=()=>Fv(a=>a.topology.discoveredNodes),Yv=()=>Fv(a=>a.topology.viterbiStats),Gv=()=>Fv(a=>(a.topology.discoveredNodes!==_v&&(_v=a.topology.discoveredNodes,Iv=a.topology.discoveredNodes.filter(a=>a.isLikelyReal)),Iv)),Kv=()=>Fv(a=>a.topology.nodeMetrics);function Xv(a){if(a<60)return`${Math.floor(a)}s`;const e=Math.floor(a/86400),n=Math.floor(a%86400/3600),t=Math.floor(a%3600/60),o=[];return e>0&&o.push(`${e}d`),n>0&&o.push(`${n}h`),(t>0||0===o.length)&&o.push(`${t}m`),o.join(" ")}function Jv(a){const e=Date.now()/1e3-a;return e<60?"just now":e<3600?`${Math.floor(e/60)}m ago`:e<86400?`${Math.floor(e/3600)}h ago`:`${Math.floor(e/86400)}d ago`}function Zv(a){return new Date(1e3*a).toLocaleString()}function Qv(a){const e=new Date(1e3*a);return`${e.toLocaleString("en-US",{month:"short"})} ${e.getDate()}, ${e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}`}function aw(a){return new Date(1e3*a).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function ew(a){return`${(a/1e6).toFixed(3)} MHz`}function nw(a){return`${(a/1e3).toFixed(1)} kHz`}function tw(a){const e=a>1e12?a:1e3*a,n=Date.now(),t=Math.abs(n-e),o=Math.floor(t/1e3),r=Math.floor(o/60),s=Math.floor(r/60),i=Math.floor(s/24);return i>0?`${i} day${1!==i?"s":""}`:s>0?`${s} hour${1!==s?"s":""}`:r>0?`${r} minute${1!==r?"s":""}`:`${o} second${1!==o?"s":""}`}function ow(a){a<0&&(a=0);const e=Math.floor(a/1e3),n=Math.floor(e/60),t=Math.floor(n/60);if(t>0){const a=n%60;return a>0?`${t}h ${a}m`:`${t}h`}if(n>0){const a=e%60;return a>0?`${n}m ${a}s`:`${n}m`}if(e>0){const n=a%1e3;return n>0?`${e}.${Math.floor(n/100)}s`:`${e}s`}return`${a}ms`}function rw(a){return a<1024?`${a}B`:a<1048576?`${(a/1024).toFixed(1)}K`:`${(a/1048576).toFixed(1)}M`}o.memo(function({options:a,data:e,className:n="",onCreate:t}){const s=o.useRef(null),i=o.useRef(null);return o.useEffect(()=>{const n=s.current;if(!n)return;const o=n.getBoundingClientRect(),r=Math.floor(o.width)||400,l=Math.floor(o.height)||200,c=new Ho({...a,width:r,height:l},e,n);return i.current=c,null==t||t(c),()=>{c.destroy(),i.current=null}},[a]),o.useEffect(()=>{i.current&&e&&i.current.setData(e)},[e]),o.useEffect(()=>{const a=s.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!i.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&i.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),r.jsx("div",{ref:s,className:`w-full h-full ${n}`,style:{minHeight:100}})});const sw=o.memo(function({items:a,direction:e="horizontal",size:n="sm",className:t,highlightedKey:o,onItemClick:s,onItemHover:l}){const c="horizontal"===e,d="sm"===n;return r.jsx("div",{className:i("flex font-mono",c?"flex-wrap gap-x-4 gap-y-1":"flex-col gap-1",d?"text-xs":"text-sm",t),children:a.map(a=>{const e=null!=o&&o!==a.key,n=s||l;return r.jsxs("div",{className:i("flex items-center gap-1.5 transition-opacity",e&&"opacity-30",n&&"cursor-pointer hover:opacity-80"),onClick:()=>null==s?void 0:s(a.key),onMouseEnter:()=>null==l?void 0:l(a.key),onMouseLeave:()=>null==l?void 0:l(null),children:[r.jsx("div",{className:i("shrink-0 rounded-xs",d?"w-3 h-3":"w-4 h-4"),style:{backgroundColor:a.color}}),r.jsx("span",{className:"text-text-secondary whitespace-nowrap",children:a.label}),void 0!==a.value&&r.jsx("span",{className:"text-text-muted tabular-nums",children:a.formatValue?a.formatValue(a.value):a.value})]},a.key)})})}),iw="#AD7F58",lw={4:"#3B82F6",5:"#5B5BD6",6:"#8E4EC6",0:"#00A2C7",2:"#12A594",7:"#46A758",1:"#F5D90A",10:"#FFB224",8:"#F76B15",9:"#E5484D",3:"#D6409F",15:iw},cw=iw;function dw(a){return lw[a]??cw}let uw=null,hw=0;const mw=1e3;function pw({activeTypes:a,totalByType:e}){const n=[...a].reverse().map(a=>({key:String(a),label:or[a]??`TYPE_${a}`,color:dw(a),value:e[a]??0,formatValue:a=>rw(a)}));return r.jsx(sw,{items:n})}const gw=o.memo(function({buckets:a,activeTypes:e,onHover:n,gridColor:t="rgba(255,255,255,0.1)",axisTickColor:s="rgba(255,255,255,0.6)"}){const i=o.useRef(null),l=o.useRef(null),c=o.useRef(a),d=o.useRef(e),u=o.useRef({gridColor:t,axisTickColor:s});c.current=a,d.current=e,u.current={gridColor:t,axisTickColor:s};const h=a.length,m=o.useMemo(()=>[a.map(a=>a.start),a.map(()=>1)],[h]),p=o.useCallback(e=>{if(!i.current||0===a.length)return;const t=i.current.getBoundingClientRect(),o=(e.clientX-t.left-48)/(t.width-48-8);if(o<0||o>1)return void(null==n||n(null,null,null));const r=Math.min(a.length-1,Math.max(0,Math.floor(o*a.length)));null==n||n(r,a[r],o)},[a,n]),g=o.useCallback(()=>{null==n||n(null,null,null)},[n]);return o.useEffect(()=>{if(!i.current||0===h)return;const a=i.current,e=a.getBoundingClientRect(),n={width:Math.floor(e.width)||400,height:Math.floor(e.height)||200,padding:[8,8,28,48],cursor:{show:!1},scales:{x:{time:!1},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],legend:{show:!1},hooks:{draw:[a=>{const e=a.ctx,{left:n,top:t,width:o,height:r}=a.bbox,s=window.devicePixelRatio||1,i=u.current;!function(a,e,n,t,o,r,s){if(0===e.length||0===n.length)return;const i=e.length,l=r/i;let c=0;for(const d of e)d.totalBytes>c&&(c=d.totalBytes);0===c&&(c=1);for(let d=0;dc&&(c=f.totalBytes);if(0===c)return;const d=function(){const a=performance.now();if(uw&&a-hw{const e=a.getBoundingClientRect();e.width>0&&e.height>0&&l.current&&l.current.setSize({width:Math.floor(e.width),height:Math.floor(e.height)})});return o.observe(a),()=>{o.disconnect(),t.destroy(),l.current=null}},[h]),o.useEffect(()=>{l.current&&l.current.redraw()},[a,e]),0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:i,className:"w-full h-full",onMouseMove:p,onMouseLeave:g})}),bw=new Map;function fw(a){var e;if(!a.startsWith("var("))return a;const n=bw.get(a);if(n)return n;const t=a.match(/var\(([^,)]+)(?:,\s*([^)]+))?\)/);if(!t)return a;const o=t[1].trim(),r=(null==(e=t[2])?void 0:e.trim())||"#888888",s=getComputedStyle(document.documentElement).getPropertyValue(o).trim()||r;return bw.set(a,s),s}function yw(a,e,n=!1){if(e.length<2)return;if(a.beginPath(),a.moveTo(e[0].x,e[0].y),2===e.length)return void a.lineTo(e[1].x,e[1].y);const t=.5;for(let o=0;o{p.current=a,g.current=e,b.current=t,f.current=n});const v=o.useRef({band:s,innerBand:i,mean:l,median:c,average:d,cursor:u});o.useLayoutEffect(()=>{v.current={band:s,innerBand:i,mean:l,median:c,average:d,cursor:u}});const w=o.useMemo(()=>[a.map(a=>a.timestamp),a.map(a=>a.max)],[a]),k=o.useMemo(()=>{const a=function(a,e,n,t){return{hooks:{draw:o=>{const r=a.current,s=e.current,i=n.current,l=t.current;if(0===r.length)return;const c=o.ctx,d=o.bbox,u=d.left,h=d.top,m=d.width,p=d.height;if(m<=0||p<=0)return;const g=o.data[0],b=g.length;if(0===b)return;const f=g[0],y=g[b-1]-f||1,v=a=>u+(a-f)/y*m,w=a=>h+p*(1-a/s),k={min:r.map(a=>({x:v(a.timestamp),y:w(a.min)})),max:r.map(a=>({x:v(a.timestamp),y:w(a.max)})),p5:r.map(a=>({x:v(a.timestamp),y:w(a.p5)})),p95:r.map(a=>({x:v(a.timestamp),y:w(a.p95)})),p25:r.map(a=>({x:v(a.timestamp),y:w(a.p25)})),p75:r.map(a=>({x:v(a.timestamp),y:w(a.p75)})),mean:r.map(a=>({x:v(a.timestamp),y:w(a.mean)})),median:r.map(a=>({x:v(a.timestamp),y:w(a.median)})),average:r.map(a=>({x:v(a.timestamp),y:w(a.average)}))},x=(a,e)=>i?i===a?Math.min(1,1.5*e):"minMax"===i||"p5p95"===i||"p25p75"===i?.3*e:e:e,j=a=>i?i===a?1:"mean"===i||"median"===i||"average"===i?.3:1:1,z={band:fw(l.band),innerBand:fw(l.innerBand),mean:fw(l.mean),median:fw(l.median),average:fw(l.average)};c.save(),c.strokeStyle=z.average,c.lineWidth=4,c.globalAlpha=j("average"),yw(c,k.average),c.stroke(),c.globalAlpha=x("minMax",.15),c.fillStyle=z.band,c.beginPath(),yw(c,k.max);const C=[...k.min].reverse();for(const a of C)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.globalAlpha=x("p5p95",.3),c.fillStyle=z.band,c.beginPath(),yw(c,k.p95);const A=[...k.p5].reverse();for(const a of A)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.globalAlpha=x("p25p75",.55),c.fillStyle=z.innerBand,c.beginPath(),yw(c,k.p75);const D=[...k.p25].reverse();for(const a of D)c.lineTo(a.x,a.y);c.closePath(),c.fill(),c.strokeStyle=z.median,c.lineWidth=1.5,c.globalAlpha=j("median"),c.setLineDash([4,4]),yw(c,k.median),c.stroke(),c.strokeStyle=z.mean,c.lineWidth=1.5,c.globalAlpha=j("mean"),c.setLineDash([]),yw(c,k.mean),c.stroke(),c.restore()}}}}(p,g,b,v);return{width:400,height:200,padding:[4,4,4,4],cursor:{show:!0,x:!0,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,e]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],hooks:{setCursor:[a=>{var e,n;const t=a.cursor.idx;null!=t&&t>=0?null==(e=f.current)||e.call(f,t):null==(n=f.current)||n.call(f,null)}]},plugins:[a]}},[e]);o.useEffect(()=>{const e=h.current;if(!e||0===a.length)return;const n=y.current,t=a.length,o=Math.abs(t-n);if(!(!m.current||o>100||n>0&&o/n>.1)&&m.current)return m.current.setData(w),void(y.current=t);m.current&&m.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...k,width:s,height:i},w,e);return m.current=l,y.current=t,()=>{l.destroy(),m.current=null}},[k,w,a.length]),o.useEffect(()=>{const a=h.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!m.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&m.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{m.current&&m.current.redraw()},[t,a]);const x=o.useCallback(()=>{null==n||n(null)},[n]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:h,className:"w-full h-full rounded-2xl overflow-hidden",onMouseLeave:x})});const vw="undefined"!=typeof window&&(null==(e=null==(a=window.matchMedia)?void 0:a.call(window,"(color-gamut: p3)"))?void 0:e.matches);let ww=null,kw=0;function xw(){const a=performance.now();if(ww&&a-kw<1e3)return ww;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--chart-axis-tick").trim()||"rgba(255, 255, 255, 0.4)",o=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)",r=e.getPropertyValue("--text-muted").trim()||"#727272",s=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",i=e.getPropertyValue("--signal-critical").trim()||"#EF4444",l=e.getPropertyValue("--bg-body").trim()||"#171717";return ww={fontFamily:n,axisColor:t,gridColor:o,textMuted:r,textPrimary:s,signalCritical:i,bgBody:l},kw=a,ww}const jw=["min","max","p75","p95","p99","mean","median","average","midpoint"];function zw(a){const e=cr(function(a){const{colormap:e,baseIndex:n,halfSize:t}=hr(),o=Math.max(0,Math.min(1,a)),r=Math.min(n+Math.floor(o*(t-1)),e.discrete.length-1);return e.discrete[r]}(a)),n=`color(display-p3 ${(e.r/255).toFixed(3)} ${(e.g/255).toFixed(3)} ${(e.b/255).toFixed(3)})`;return{...e,p3:n}}function Cw(a,e,n,t,o,r,s,i,l,c=null,d=null,u=1,h=null,m="airtime",p=.5){if(0===e.length)return;const g=a.ctx,{left:b,top:f,width:y,height:v}=a.bbox,w=window.devicePixelRatio||1;if(y<=0||v<=0)return;const k=a.data[0],x=k.length;if(0===x)return;const j=k[0],z=k[x-1],C=n,A="share"===m,D=A?function(a){const e=[10,20,25,50,100,200,250,500,1e3],n=a/4.5;for(const t of e)if(t>=n)return t;return a>5e3?1e3*Math.ceil(n/1e3):100*Math.ceil(n/100)}(C):5,E=r.signalCritical,B=r.bgBody;g.save(),g.fillStyle="#000000";const F=8*w;g.beginPath(),g.roundRect(b,f,y,v,F),g.fill(),g.restore();const q=parseInt(B.slice(1,3),16)||23,S=parseInt(B.slice(3,5),16)||23,M=parseInt(B.slice(5,7),16)||23;if(!A&&C>=20){g.save();const a=f+v*(1-20/C);g.fillStyle=`rgba(${q}, ${S}, ${M}, 0.5)`,g.fillRect(b,f,y,a-f),g.restore()}g.save(),g.lineWidth=1*w,g.setLineDash([4*w,4*w]);for(let P=D;Pn+o)return;const i=xw().textPrimary;a.save(),a.strokeStyle=i,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()}(g,h,b,f,y,v,w),s){!function(a,e,n,t,o,r,s=null,i=null,l=1,c=25){const{points:d,rawValues:u,count:h,packetTypes:m,timestamps:p}=e,g=1*l*(window.devicePixelRatio||1);a.globalCompositeOperation="source-over";const b=s?parseInt(s.replace("TYPE_",""),10):null;for(let f=0;f=i.start&&a0&&function(a,e,n,t,o,r,s,i,l,c,d=.5){if(0===e.length)return;const u=l-i||1,h=function(a,e=1.3,n=.15){const t=function(a){const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e){const a=parseFloat(e[1]),n=parseFloat(e[2]),t=parseFloat(e[3]);return{r:Math.round(255*a),g:Math.round(255*n),b:Math.round(255*t),p3r:a,p3g:n,p3b:t}}if(a.startsWith("#")){const e=a.replace("#",""),n=parseInt(e.slice(0,2),16),t=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return{r:n,g:t,b:o,p3r:n/255,p3g:t/255,p3b:o/255}}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);if(n){const a=Math.round(parseFloat(n[1])),e=Math.round(parseFloat(n[2])),t=Math.round(parseFloat(n[3]));return{r:a,g:e,b:t,p3r:a/255,p3g:e/255,p3b:t/255}}return{r:255,g:255,b:255,p3r:1,p3g:1,p3b:1}}(a),o=function(a,e,n,t=1.25,o=.15){const r=(Math.max(a,e,n)+Math.min(a,e,n))/2;return{p3r:Math.min(1,r+(a-r)*t+o),p3g:Math.min(1,r+(e-r)*t+o),p3b:Math.min(1,r+(n-r)*t+o)}}(t.p3r,t.p3g,t.p3b,e,n);return{r:Math.round(255*Math.min(1,o.p3r)),g:Math.round(255*Math.min(1,o.p3g)),b:Math.round(255*Math.min(1,o.p3b)),p3r:Math.min(1,o.p3r),p3g:Math.min(1,o.p3g),p3b:Math.min(1,o.p3b)}}(xw().signalCritical);a.save(),a.globalAlpha=d,a.fillStyle=vw?`color(display-p3 ${h.p3r} ${h.p3g} ${h.p3b})`:`rgb(${h.r}, ${h.g}, ${h.b})`;for(const m of e){if(m.endTsl)continue;const e=t+(Math.max(m.startTs,i)-i)/u*r,n=t+(Math.min(m.endTs,l)-i)/u*r,d=Math.max(n-e,2*c);a.fillRect(e,o,d,s)}a.restore()}(g,i,0,b,f,y,v,j,z,w,d?Math.max(.03,.03*p):p)}o.memo(function({data:a,maxValue:e,visibleLines:n=jw,highlightedLine:t=null,onHover:s,scatterData:i=null,noiseFloorAnomalies:l=null,showNoiseFloorOverlay:c=!1,overlayOpacity:d=.5,highlightedType:u=null,hoveredTimeRange:h=null,timeRangeHours:m=24,yAxisMode:p="airtime"}){const g=o.useRef(null),b=o.useRef(null),f=o.useRef(a),y=o.useRef(e),v=o.useRef(n),w=o.useRef(t),k=o.useRef(s),x=o.useRef(i),j=o.useRef(l),z=o.useRef(c),C=o.useRef(u),A=o.useRef(h),D=o.useRef(null),E=o.useRef(null),B=o.useRef(p),F=o.useRef(d),q=m<=12?1.2:1,S=o.useRef(q),M=o.useRef(a.length);o.useLayoutEffect(()=>{f.current=a,y.current=e,v.current=n,w.current=t,k.current=s,x.current=i,j.current=l,z.current=c,C.current=u,A.current=h,S.current=q,B.current=p,F.current=d}),o.useEffect(()=>{D.current=xw()},[]);const T=o.useMemo(()=>[a.map(a=>a.timestamp),new Array(a.length).fill(1)],[a]),P=o.useMemo(()=>({hooks:{draw:a=>{const e=D.current||xw();Cw(a,f.current,y.current,v.current,w.current,e,x.current,j.current,z.current,C.current,A.current,S.current,E.current,B.current,F.current)}}}),[]),L=o.useMemo(()=>({width:400,height:200,padding:[8,0,8,28],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[P]}),[P]);o.useEffect(()=>{const e=g.current;if(!e||0===a.length)return;const n=M.current,t=a.length,o=Math.abs(t-n);if(!(!b.current||o>100||n>0&&o/n>.1)&&b.current)return b.current.setData(T),void(M.current=t);b.current&&b.current.destroy();const r=e.getBoundingClientRect(),s=Math.floor(r.width)||400,i=Math.floor(r.height)||200,l=new Ho({...L,width:s,height:i},T,e);return b.current=l,M.current=t,()=>{l.destroy(),b.current=null}},[L,T,a.length]),o.useEffect(()=>{const a=g.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!b.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&b.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{b.current&&b.current.redraw()},[t,n,a,i,l,c,d,u,h,q]);const R=o.useCallback(e=>{var n,t;const o=g.current,r=b.current;if(!o||!r||0===a.length)return;const s=o.getBoundingClientRect(),i=e.clientX-s.left,l=window.devicePixelRatio||1,c=r.bbox,d=c.left/l,u=c.width/l;if(id+u)return E.current=null,r.redraw(),void(null==(n=k.current)||n.call(k,null));E.current=i*l;const h=(i-d)/u,m=a.length,p=Math.floor(h*m),f=Math.max(0,Math.min(m-1,p));r.redraw(),null==(t=k.current)||t.call(k,f)},[a.length]),N=o.useCallback(()=>{var a;E.current=null,b.current&&b.current.redraw(),null==(a=k.current)||a.call(k,null)},[]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:g,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:R,onMouseLeave:N})});const Aw=-70;let Dw=null,Ew=0;function Bw(a,e){if(0===a.length)return 0;const n=e/100*(a.length-1),t=Math.floor(n),o=Math.ceil(n);return t===o?a[t]:a[t]+(a[o]-a[t])*(n-t)}function Fw(a){const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)\)/);if(e)return{r:Math.round(255*parseFloat(e[1])),g:Math.round(255*parseFloat(e[2])),b:Math.round(255*parseFloat(e[3]))};const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:{r:250,g:189,b:47}}function qw(a,e){const n=Math.max(0,Math.min(1,a))*(e.length-1),t=Math.floor(n),o=n-t;if(t>=e.length-1)return e[e.length-1];const r=e[t],s=e[t+1];return{r:Math.round(r.r+(s.r-r.r)*o),g:Math.round(r.g+(s.g-r.g)*o),b:Math.round(r.b+(s.b-r.b)*o)}}function Sw(a,e,n){const t=Math.max(0,Math.min(1,a));return{r:Math.round(e.r+(n.r-e.r)*t),g:Math.round(e.g+(n.g-e.g)*t),b:Math.round(e.b+(n.b-e.b)*t)}}const Mw=o.memo(function({timestamps:a,values:e,onStatsChange:n,compact:t=!1,height:s}){var i,l;const[c,d]=o.useState(!0),u=o.useRef(null),h=o.useRef(null),m=o.useRef(null),p=o.useRef(t),g=o.useMemo(()=>{const a=e.filter(a=>a<=Aw);if(0===a.length)return null;const n=Math.min(...a),t=Math.max(...a),o=a.reduce((a,e)=>a+e,0)/a.length,r=[...a].sort((a,e)=>a-e);return{min:n,max:t,avg:o,p5:Bw(r,5),p95:Bw(r,95)}},[e]);o.useEffect(()=>{null==n||n(g)},[g]);const b=o.useCallback(()=>{d(a=>!a)},[]),{heatmapData:f,xLabels:y,yLabels:v}=o.useMemo(()=>{if(0===a.length||0===e.length||!g)return{heatmapData:null,xLabels:[],yLabels:[]};let n,o;if(c){const a=e.filter(a=>a<=Aw);if(0===a.length)return{heatmapData:null,xLabels:[],yLabels:[]};const t=[...a].sort((a,e)=>a-e),r=Bw(t,5),s=Bw(t,95),i=.1*(s-r||1);n=r-i,o=s+i}else{const a=e.filter(a=>a<=Aw);if(0===a.length)return{heatmapData:null,xLabels:[],yLabels:[]};const t=Math.min(...a),r=Math.max(...a),s=.1*(r-t||1);n=t-s,o=r+s}const r=o-n,s=a[0],i=a[a.length-1]-s||1,l=120,d=48,u=new Float32Array(5760),h=[];for(let t=0;tAw)continue;const m=(a[t]-s)/i,p=1-(Math.max(n,Math.min(o,c))-n)/r;u[Math.min(119,Math.floor(m*l))*d+Math.min(47,Math.floor(p*d))]++,h.push(a[t])}let m=0;for(let a=0;am&&(m=u[a]);const p=[],b=[];for(let a=0;ae&&(e=t,n=o)}if(-1===n||0===e)continue;const t=o-(n+.5)/d*r,c=s+(a+.5)/l*i;p.push(c),b.push(t)}const f=function(a,e,n){if(0===a.length)return[];const t=function(a,e){if(0===a.length)return[];const n=Math.floor(e/2),t=new Array(a.length),o=new Array(e);for(let r=0;ra-e),t[r]=o[n]}return t}(a,e),o=new Array(a.length);o[0]=t[0];for(let r=1;r0){const a=Math.min(...f),e=Math.max(...f),n=.4*(e-a||1);y=a-n,v=e+n,w=v-y}const k=[];for(let a=0;a{m.current=f,p.current=t});const w=o.useMemo(()=>{if(0===a.length)return[[],[]];const e=new Array(a.length).fill(1);return[a,e]},[a]),k=o.useMemo(()=>({hooks:{draw:a=>{!function(a,e,n){if(!e)return;const t=a.ctx,{left:o,top:r,width:s,height:i}=a.bbox,l=window.devicePixelRatio||1;if(s<=0||i<=0)return;const c=function(){const a=performance.now();if(Dw&&a-Ew<1e3)return Dw;const e=getComputedStyle(document.documentElement);return Dw={heatGradient:[Fw(e.getPropertyValue("--sys-purple").trim()),Fw(e.getPropertyValue("--sys-blue").trim()),Fw(e.getPropertyValue("--sys-teal").trim()),Fw(e.getPropertyValue("--sys-amber").trim()),Fw(e.getPropertyValue("--sys-orange").trim())],trendLineColor:Fw(e.getPropertyValue("--accent-secondary").trim()),stabilityHot:Fw(e.getPropertyValue("--sys-amber").trim()),stabilityCool:Fw(e.getPropertyValue("--sys-blue").trim()),typography:{fontFamily:e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',textMuted:e.getPropertyValue("--text-muted").trim()||"#727272",textSecondary:e.getPropertyValue("--text-secondary").trim()||"#A0A0A0",gridColor:e.getPropertyValue("--chart-grid-line").trim()||"rgba(255,255,255,0.06)"}},Ew=a,Dw}();t.clearRect(o,r,s,i),n||function(a,e,n,t,o,r,s){a.save(),a.strokeStyle=s,a.lineWidth=1*r,a.setLineDash([3*r,3*r]);for(const i of[0,.25,.5,.75,1]){const r=Math.round(n+o*i)+.5;a.beginPath(),a.moveTo(e,r),a.lineTo(e+t,r),a.stroke()}a.restore()}(t,o,r,s,i,l,c.typography.gridColor),function(a,e,n,t,o,r,s,i,l){const{trendLine:c,trendCount:d}=e;if(d<2)return;a.save();const u=s?3*.6:3;if(a.lineWidth=u*i,a.lineCap="round",a.lineJoin="round",s){let e=1/0,s=-1/0;for(let a=0;as&&(s=n)}const i=(e+s)/2,u=(s-e)/2||.01;for(let h=1;h({width:400,height:200,padding:[0,0,0,0],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[k]}),[k,t]);return o.useEffect(()=>{const e=u.current;if(!e||0===a.length)return;h.current&&h.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...x,width:t,height:o},w,e);return h.current=r,()=>{r.destroy(),h.current=null}},[x,w,a.length]),o.useEffect(()=>{const a=u.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!h.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&h.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{h.current&&h.current.redraw()},[f,c]),f?t?r.jsx("div",{ref:u,className:"w-full",style:{height:s??28},role:"img","aria-label":"Noise floor sparkline"}):r.jsxs("div",{className:"relative w-full h-full",role:"img","aria-label":`RF noise floor heatmap showing values from ${(null==(i=null==g?void 0:g.min)?void 0:i.toFixed(0))??"N/A"} to ${(null==(l=null==g?void 0:g.max)?void 0:l.toFixed(0))??"N/A"} dBm`,children:[r.jsx("div",{className:"absolute top-0 left-0 flex flex-col justify-between",style:{width:32,bottom:20},"aria-hidden":"true",children:v.map((a,e)=>r.jsx("span",{className:"type-data-xs text-text-secondary tabular-nums text-right pr-1.5",style:{position:"absolute",top:`${a.pos}%`,transform:"translateY(-50%)",right:0},children:a.label},e))}),r.jsx("div",{ref:u,className:"absolute overflow-hidden",style:{left:32,right:0,top:0,bottom:20},children:r.jsx("button",{type:"button",onClick:b,className:"absolute bottom-1 right-1 z-10 p-1.5 rounded bg-tooltip-bg/80 hover:bg-tooltip-bg active:bg-tooltip-bg transition-colors touch-manipulation",title:c?"Show full range (min/max)":"Show trimmed range (P5-P95)","aria-label":c?"Expand to show full data range":"Shrink to show trimmed percentile range","aria-pressed":!c,children:c?r.jsx(Or,{className:"w-3.5 h-3.5 text-text-muted","aria-hidden":"true"}):r.jsx(ns,{className:"w-3.5 h-3.5 text-text-muted","aria-hidden":"true"})})}),r.jsx("div",{className:"absolute left-0 right-0 bottom-0",style:{left:32,height:20},"aria-hidden":"true",children:y.map((a,e)=>r.jsx("span",{className:"type-data-xs text-text-secondary tabular-nums absolute top-1",style:{left:`${a.pos}%`,transform:"translateX(-50%)"},children:a.label},e))})]}):t?r.jsx("div",{className:"w-full rounded bg-bg-subtle/50",style:{height:s??28},"aria-hidden":"true"}):r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No noise floor data available"})});let Tw=null,Pw=0;function Lw(){const a=performance.now();if(Tw&&a-Pw<1e3)return Tw;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--chart-axis-tick").trim()||"rgba(255, 255, 255, 0.4)",o=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)",r=e.getPropertyValue("--text-muted").trim()||"#727272",s=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",i=e.getPropertyValue("--signal-critical").trim()||"#EF4444",l=e.getPropertyValue("--bg-body").trim()||"#171717";return Tw={fontFamily:n,axisColor:t,gridColor:o,textMuted:r,textPrimary:s,signalCritical:i,bgBody:l},Pw=a,Tw}function Rw(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}function Nw(a){return Rw(dw(a))}const Iw=o.memo(function({scatterData:a,yAxisMode:e,onHover:n,noiseFloorAnomalies:t=null,showNoiseFloorOverlay:s=!1,overlayOpacity:i=.5,highlightedType:l=null,timeRangeHours:c=24}){const d=o.useRef(null),u=o.useRef(null),h=o.useRef(a),m=o.useRef(e),p=o.useRef(n),g=o.useRef(t),b=o.useRef(s),f=o.useRef(i),y=o.useRef(l),v=o.useRef(null),w=o.useRef(null),k=c<=12?1.2:1,x=o.useRef(k),j=(null==a?void 0:a.maxValue)??("share"===e?200:10),z=o.useRef(j);o.useLayoutEffect(()=>{h.current=a,m.current=e,p.current=n,g.current=t,b.current=s,f.current=i,y.current=l,x.current=k,z.current=j}),o.useEffect(()=>{v.current=Lw()},[]);const C=o.useMemo(()=>{if(!a||0===a.count)return[[0],[0]];const e=[];for(let t=0;ta-e);const n=e.map(()=>1);return[e,n]},[a]),A=o.useMemo(()=>({hooks:{draw:a=>{const e=v.current||Lw();!function(a,e,n,t,o,r,s,i,l,c,d){if(!e||0===e.count)return;const u=a.ctx,{left:h,top:m,width:p,height:g}=a.bbox,b=window.devicePixelRatio||1;if(p<=0||g<=0)return;const f=a.data[0],y=f.length;if(0===y)return;const v=f[0],w=f[y-1],k="share"===t,x=function(a,e){if("airtime"===e)return 5;const n=[10,20,25,50,100,200,250,500,1e3],t=a/4.5;for(const o of n)if(o>=t)return o;return a>5e3?1e3*Math.ceil(t/1e3):100*Math.ceil(t/100)}(n,t);if(!k&&n>=20){u.save();const a=m+g*(1-20/n),e=parseInt(o.bgBody.slice(1,3),16)||23,t=parseInt(o.bgBody.slice(3,5),16)||23,r=parseInt(o.bgBody.slice(5,7),16)||23;u.fillStyle=`rgba(${e}, ${t}, ${r}, 0.5)`,u.fillRect(h,m,p,a-m),u.restore()}u.save(),u.lineWidth=1*b,u.setLineDash([4*b,4*b]);for(let z=x;zn+o||(a.save(),a.strokeStyle=i.textPrimary,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()))}(u,d,h,m,p,g,b,o),function(a,e,n,t,o,r,s,i,l){const{points:c,rawValues:d,count:u,packetTypes:h}=e,m=1*i*(window.devicePixelRatio||1);a.globalCompositeOperation="source-over";const p=s?parseInt(s.replace("TYPE_",""),10):null;for(let g=0;g0&&function(a,e,n,t,o,r,s,i,l,c,d){if(0===e.length)return;const u=i-s||1,h=Rw(d.signalCritical);a.save(),a.globalAlpha=c,a.fillStyle=`rgb(${h.r}, ${h.g}, ${h.b})`;for(const m of e){if(m.endTsi)continue;const e=n+(Math.max(m.startTs,s)-s)/u*o,c=n+(Math.min(m.endTs,i)-s)/u*o,d=Math.max(c-e,2*l);a.fillRect(e,t,d,r)}a.restore()}(u,r,h,m,p,g,v,w,b,i,o)}(a,h.current,z.current,m.current,e,g.current,b.current,f.current,y.current,x.current,w.current)}}}),[]),D=o.useMemo(()=>({width:400,height:200,padding:[8,0,8,28],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[A]}),[A]);o.useEffect(()=>{const e=d.current;if(!e||!a||0===a.count)return;u.current&&u.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...D,width:t,height:o},C,e);return u.current=r,()=>{r.destroy(),u.current=null}},[D,C,null==a?void 0:a.count]),o.useEffect(()=>{const a=d.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!u.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&u.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{u.current&&u.current.redraw()},[a,t,s,i,l,k,e]);const E=o.useCallback(e=>{var n,t;const o=d.current,r=u.current;if(!o||!r||!a||0===a.count)return;const s=o.getBoundingClientRect(),i=e.clientX-s.left,l=window.devicePixelRatio||1,c=r.bbox,h=c.left/l,m=c.width/l;if(ih+m)return w.current=null,r.redraw(),void(null==(n=p.current)||n.call(p,null,void 0));w.current=i*l;const g=(i-h)/m,b=Math.floor(g*a.count),f=Math.max(0,Math.min(a.count-1,b));r.redraw(),null==(t=p.current)||t.call(p,f,g)},[null==a?void 0:a.count]),B=o.useCallback(()=>{var a;w.current=null,u.current&&u.current.redraw(),null==(a=p.current)||a.call(p,null,void 0)},[]);return a&&0!==a.count?r.jsx("div",{ref:d,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:E,onMouseLeave:B}):r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"})}),_w=new class{constructor(){t(this,"observer",null),t(this,"subscribers",new Set),t(this,"isObserving",!1)}subscribe(a){return this.subscribers.add(a),this.isObserving||this.startObserving(),()=>{this.subscribers.delete(a),0===this.subscribers.size&&this.stopObserving()}}get subscriberCount(){return this.subscribers.size}startObserving(){"undefined"!=typeof window&&(this.isObserving||(this.observer=new MutationObserver(a=>{for(const e of a)if("data-theme"===e.attributeName||"data-color-scheme"===e.attributeName||"class"===e.attributeName){setTimeout(()=>this.notifySubscribers(),50);break}}),this.observer.observe(document.documentElement,{attributes:!0}),this.isObserving=!0))}stopObserving(){this.observer&&(this.observer.disconnect(),this.observer=null),this.isObserving=!1}notifySubscribers(){for(const e of this.subscribers)try{e()}catch(a){}}};function Vw(a){if(!a)return null;const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e)return{r:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[1])))),g:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[2])))),b:Math.round(255*Math.min(1,Math.max(0,parseFloat(e[3]))))};if(a.startsWith("#")){const e=a.replace("#","");if(3===e.length)return{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)};if(e.length>=6)return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);return n?{r:Math.round(parseFloat(n[1])),g:Math.round(parseFloat(n[2])),b:Math.round(parseFloat(n[3]))}:null}function Ow(a){return"undefined"==typeof window?"":getComputedStyle(document.documentElement).getPropertyValue(a).trim()}function $w(a){return function(a){if(!a)return"";if(a.startsWith("#"))return a;const e=a.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(e){const a=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[1])))),n=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[2])))),t=Math.round(255*Math.min(1,Math.max(0,parseFloat(e[3]))));return`#${a.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}`}const n=a.match(/rgba?\(([\d.]+),?\s*([\d.]+),?\s*([\d.]+)/);if(n){const a=Math.round(parseFloat(n[1])),e=Math.round(parseFloat(n[2])),t=Math.round(parseFloat(n[3]));return`#${a.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}`}return a}(Ow(a))}function Ww(a,e){const[n,t]=o.useState(e),r=o.useCallback(()=>{t(a())},[a]);return o.useEffect(()=>(r(),_w.subscribe(r)),[r]),n}const Uw={chart1:"#719CDF",chart2:"#0074BE",chart3:"#6FBCBD",chart4:"#DFBC72",chart5:"#719872",chart6:"#E12672",chart7:"#E17899",chart8:"#999ABD"},Hw="#00FF00",Yw="#8CE619",Gw="#FFD900",Kw="#FF8C26",Xw="#FF3333",Jw={primary:"#719CDF",secondary:"#DFBC72",tertiary:"#6FBCBD",success:"#719872",danger:"#E12672"},Zw={primary:"#E4E4E4",secondary:"#BFBFBF",muted:"#727272"},Qw={nodeFill:"#3B82F6",nodeStroke:"rgba(255,255,255,0.9)",hubColor:"#8E4EC6",hubStroke:"rgba(255,255,255,0.9)",gatewayColor:"#5B5BD6",gatewayStroke:"rgba(255,255,255,0.85)",localColor:"#FFB224",neighborColor:"#FFB224",neighborStroke:"rgba(0,0,0,0.4)",mobileColor:"#F76B15",roomColor:"#D6409F",ghostColor:"#00A2C7"};function ak(){return"undefined"==typeof window?Uw:{chart1:Ow("--chart-1")||Uw.chart1,chart2:Ow("--chart-2")||Uw.chart2,chart3:Ow("--chart-3")||Uw.chart3,chart4:Ow("--chart-4")||Uw.chart4,chart5:Ow("--chart-5")||Uw.chart5,chart6:Ow("--chart-6")||Uw.chart6,chart7:Ow("--chart-7")||Uw.chart7,chart8:Ow("--chart-8")||Uw.chart8}}function ek(){return"undefined"==typeof window?Zw:{primary:Ow("--text-primary")||Zw.primary,secondary:Ow("--text-secondary")||Zw.secondary,muted:Ow("--text-muted")||Zw.muted}}function nk(){return"undefined"==typeof window?Jw:{primary:Ow("--accent-primary")||Jw.primary,secondary:Ow("--accent-secondary")||Jw.secondary,tertiary:Ow("--accent-tertiary")||Jw.tertiary,success:Ow("--accent-success")||Jw.success,danger:Ow("--accent-danger")||Jw.danger}}function tk(){return Ww(ak,Uw)}function ok(){return Ww(ek,Zw)}function rk(){return Ww(nk,Jw)}function sk(){return"undefined"==typeof window?Qw:{nodeFill:Ow("--map-node-fill")||Qw.nodeFill,nodeStroke:Ow("--map-node-stroke")||Qw.nodeStroke,hubColor:Ow("--map-hub-color")||Qw.hubColor,hubStroke:Ow("--map-hub-stroke")||Qw.hubStroke,gatewayColor:Ow("--map-gateway-color")||Qw.gatewayColor,gatewayStroke:Ow("--map-gateway-stroke")||Qw.gatewayStroke,localColor:Ow("--map-local-color")||Qw.localColor,neighborColor:Ow("--map-neighbor-color")||Qw.neighborColor,neighborStroke:Ow("--map-neighbor-stroke")||Qw.neighborStroke,mobileColor:Ow("--map-mobile-color")||Qw.mobileColor,roomColor:Ow("--map-room-color")||Qw.roomColor,ghostColor:Ow("--map-ghost-color")||Qw.ghostColor}}function ik(){return Ww(sk,Qw)}const lk={nodeStroke:"rgba(0,0,0,0.6)",hubStroke:"rgba(0,0,0,0.5)",gatewayStroke:"rgba(0,0,0,0.45)",neighborStroke:"rgba(0,0,0,0.5)"},ck={nodeStroke:"rgba(255,255,255,0.9)",hubStroke:"rgba(255,255,255,0.9)",gatewayStroke:"rgba(255,255,255,0.85)",neighborStroke:"rgba(0,0,0,0.4)"};function dk(a){if("undefined"==typeof window)return Qw;const e="light"===function(){if("undefined"==typeof window)return"dark";const a=document.querySelector("[data-basemap]");return a&&a.getAttribute("data-basemap")||"dark"}()?lk:ck;return{nodeFill:$w("--map-node-fill")||Qw.nodeFill,nodeStroke:e.nodeStroke,hubColor:$w("--map-hub-color")||Qw.hubColor,hubStroke:e.hubStroke,gatewayColor:$w("--map-gateway-color")||Qw.gatewayColor,gatewayStroke:e.gatewayStroke,localColor:$w("--map-local-color")||Qw.localColor,neighborColor:$w("--map-neighbor-color")||Qw.neighborColor,neighborStroke:e.neighborStroke,mobileColor:$w("--map-mobile-color")||Qw.mobileColor,roomColor:$w("--map-room-color")||Qw.roomColor,ghostColor:$w("--map-ghost-color")||Qw.ghostColor}}const uk={rest:"#4B4B4B",restBright:"#616161",restDim:"#3F3F3F",hoverDirect:"#6FBCBD",hoverLoop:"#8B7BAD",hoverStandard:"#8A8A8A",hoverNeighbor:"#FBBF24",highlight:"#FFD700"},hk={rest:"rgba(0, 0, 0, 0.20)",restBright:"rgba(0, 0, 0, 0.30)",restDim:"rgba(0, 0, 0, 0.12)"},mk={rest:"rgba(255, 255, 255, 0.25)",restBright:"rgba(255, 255, 255, 0.35)",restDim:"rgba(255, 255, 255, 0.15)"};function pk(a){if("undefined"==typeof window)return uk;const e="light"===a?hk:mk;return{rest:e.rest,restBright:e.restBright,restDim:e.restDim,hoverDirect:$w("--map-edge-hover-direct")||uk.hoverDirect,hoverLoop:$w("--map-edge-hover-loop")||uk.hoverLoop,hoverStandard:$w("--map-edge-hover-standard")||uk.hoverStandard,hoverNeighbor:$w("--map-edge-hover-neighbor")||uk.hoverNeighbor,highlight:$w("--map-edge-highlight")||uk.highlight}}const gk={grid:"rgba(191, 191, 191, 0.15)",axisTick:"#BFBFBF",cursor:"rgba(255, 255, 255, 0.2)"};function bk(){return"undefined"==typeof window?gk:{grid:Ow("--chart-grid")||gk.grid,axisTick:Ow("--chart-axis-tick")||gk.axisTick,cursor:Ow("--chart-cursor")||gk.cursor}}function fk(){return Ww(bk,gk)}function yk(a,e){return Ow(`--palette-${a}-${e}`)||""}function vk(){const a=[];for(let e=0;e<24;e++){const n=e/23,t=1-n,o=yk("aqua",[900,800,700,600,500,400,300,200,100,50][Math.min(8,Math.floor(9*t))]),r=parseInt(o.slice(1,3),16)||0,s=parseInt(o.slice(3,5),16)||0,i=parseInt(o.slice(5,7),16)||0,l=Math.round(80+130*n);a.push([r,s,i,l])}return a}function wk(){const a=Ow("--signal-excellent")||Hw,e=Ow("--signal-good")||Yw,n=Ow("--signal-fair")||Gw,t=Ow("--signal-poor")||Kw,o=Ow("--signal-critical")||Xw,r=[];for(let s=0;s<24;s++){let i;i=s<5?a:s<10?e:s<15?n:s<20?t:o,r.push(i)}return r}function kk(){const a=$w("--signal-excellent")||Hw,e=$w("--signal-good")||Yw,n=$w("--signal-fair")||Gw,t=$w("--signal-poor")||Kw,o=$w("--signal-critical")||Xw,r=[];for(let s=0;s<24;s++){let i;i=s<5?a:s<10?e:s<15?n:s<20?t:o,r.push(i)}return r}function xk(){const[a,e]=o.useState(()=>wk());return o.useEffect(()=>{const a=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e(wk())})})};return a(),_w.subscribe(a)},[]),a}function jk(a){const e=(Math.max(-12,Math.min(12,a))- -12)/24;return Math.round(23*(1-e))}const zk={red:"#E5484D",orange:"#F76B15",amber:"#FFB224",yellow:"#F5D90A",brown:"#AD7F58",green:"#46A758",teal:"#12A594",cyan:"#00A2C7",blue:"#3B82F6",indigo:"#5B5BD6",purple:"#8E4EC6",pink:"#D6409F"};function Ck(){return"undefined"==typeof window?zk:{red:$w("--sys-red")||zk.red,orange:$w("--sys-orange")||zk.orange,amber:$w("--sys-amber")||zk.amber,yellow:$w("--sys-yellow")||zk.yellow,brown:$w("--sys-brown")||zk.brown,green:$w("--sys-green")||zk.green,teal:$w("--sys-teal")||zk.teal,cyan:$w("--sys-cyan")||zk.cyan,blue:$w("--sys-blue")||zk.blue,indigo:$w("--sys-indigo")||zk.indigo,purple:$w("--sys-purple")||zk.purple,pink:$w("--sys-pink")||zk.pink}}function Ak(){const a=o.useCallback(()=>"undefined"!=typeof document&&document.documentElement.classList.contains("ribbon-mode"),[]),[e,n]=o.useState(a);return o.useEffect(()=>(n(a()),_w.subscribe(()=>n(a()))),[a]),e}let Dk=null,Ek=0;function Bk(){const a=performance.now();if(Dk&&a-Ek<1e3)return Dk;const e=getComputedStyle(document.documentElement),n=e.getPropertyValue("--font-data").trim()||'"JetBrains Mono", ui-monospace, monospace',t=e.getPropertyValue("--text-primary").trim()||"#FFFFFF",o=e.getPropertyValue("--text-secondary").trim()||"#BFBFBF",r=e.getPropertyValue("--chart-grid").trim()||"rgba(255, 255, 255, 0.06)";return Dk={fontFamily:n,textPrimary:t,textSecondary:o,gridColor:r},Ek=a,Dk}function Fk(a){const e=a.replace("#","");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}}let qk=null,Sk=0;function Mk(a,e){return"airtime"===e?`${a}%`:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(0)}K`:`${a}`}function Tk(a,e,n,t,o,r,s,i,l,c,d,u=.9,h=!1){if(0===e.length)return;const m=e[0].timestamp,p=e[e.length-1].timestamp-m||1;if(a.save(),a.strokeStyle=`rgba(${t.r}, ${t.g}, ${t.b}, ${u})`,a.lineWidth=d*c,a.lineCap="round",a.lineJoin="round",h){a.beginPath();let t=!1,c=0,d=0;for(let u=0;u{l.current=a,c.current=e,d.current=n,u.current=t}),o.useEffect(()=>{h.current=Bk()},[]);const p=o.useMemo(()=>0===a.length?[[0],[0]]:[a.map(a=>a.timestamp),a.map(()=>1)],[a]),g=o.useMemo(()=>({hooks:{draw:a=>{const e=h.current||Bk();!function(a,e,n,t,o,r){if(0===e.length)return;const s=a.ctx,{left:i,top:l,width:c,height:d}=a.bbox,u=window.devicePixelRatio||1;if(c<=0||d<=0)return;const h=function(){const a=performance.now();return qk&&a-Sk<1e3||(qk=Ck(),Sk=a),qk}(),m=Fk(h.blue),p=Fk(h.red),g=Fk(h.yellow),b=(f=n,"airtime"===t?f<=5?1:f<=10?2:f<=20?5:Math.ceil(f/5):f<=100?25:f<=500?100:f<=1e3?200:f<=5e3?1e3:f<=1e4?2e3:1e3*Math.ceil(f/5e3));var f;s.save(),s.strokeStyle=o.textSecondary,s.globalAlpha=.3,s.lineWidth=1*u,s.setLineDash([3*u,3*u]);for(let v=b;vn+o||(a.save(),a.strokeStyle=i.textPrimary,a.globalAlpha=.5,a.lineWidth=1*s,a.setLineDash([4*s,4*s]),a.beginPath(),a.moveTo(Math.round(e)+.5,t),a.lineTo(Math.round(e)+.5,t+r),a.stroke(),a.restore()))}(s,r,i,l,c,d,u,o),Tk(s,e,"rxSmooth",g,i,l,c,d,n,u,2,1,!0),Tk(s,e,"tx",p,i,l,c,d,n,u,2.5,.9,!1),Tk(s,e,"rx",m,i,l,c,d,n,u,2.5,.9,!1)}(a,l.current,d.current,c.current,e,m.current)}}}),[]),b=o.useMemo(()=>({width:400,height:200,padding:[8,8,8,44],cursor:{show:!1,x:!1,y:!1,drag:{x:!1,y:!1},points:{show:!1}},scales:{x:{time:!0},y:{range:[0,1]}},axes:[{show:!1},{show:!1}],series:[{},{show:!1}],plugins:[g]}),[g]);o.useEffect(()=>{const e=s.current;if(!e||0===a.length)return;i.current&&i.current.destroy();const n=e.getBoundingClientRect(),t=Math.floor(n.width)||400,o=Math.floor(n.height)||200,r=new Ho({...b,width:t,height:o},p,e);return i.current=r,()=>{r.destroy(),i.current=null}},[b,p,a.length]),o.useEffect(()=>{const a=s.current;if(!a)return;const e=new ResizeObserver(a=>{const e=a[0];if(!e||!i.current)return;const{width:n,height:t}=e.contentRect;n>0&&t>0&&i.current.setSize({width:Math.floor(n),height:Math.floor(t)})});return e.observe(a),()=>{e.disconnect()}},[]),o.useEffect(()=>{i.current&&i.current.redraw()},[a,n,e]);const f=o.useCallback(e=>{var n,t;const o=s.current,r=i.current;if(!o||!r||0===a.length)return;const l=o.getBoundingClientRect(),c=e.clientX-l.left,d=window.devicePixelRatio||1,h=r.bbox,p=h.left/d,g=h.width/d;if(cp+g)return m.current=null,r.redraw(),void(null==(n=u.current)||n.call(u,null));m.current=c*d;const b=(c-p)/g,f=Math.floor(b*a.length),y=Math.max(0,Math.min(a.length-1,f));r.redraw(),null==(t=u.current)||t.call(u,y)},[a.length]),y=o.useCallback(()=>{var a;m.current=null,i.current&&i.current.redraw(),null==(a=u.current)||a.call(u,null)},[]);return 0===a.length?r.jsx("div",{className:"h-full flex items-center justify-center text-text-muted",children:"No data available"}):r.jsx("div",{ref:s,className:"w-full h-full rounded-lg overflow-hidden",onMouseMove:f,onMouseLeave:y})}),Lk=[{name:"Dashboard",to:"/",icon:Hr},{name:"Contacts",to:"/contacts",icon:Kr},{name:"Packets",to:"/packets",icon:Yr},{name:"Statistics",to:"/statistics",icon:Ir},{name:"MeshGraph",to:"/meshgraph",icon:rs},{name:"System",to:"/system",icon:Wr},{name:"Logs",to:"/logs",icon:$r},{name:"Terminal",to:"/terminal",icon:os},{name:"Configuration",to:"/configuration",icon:es}];function Rk(){var a,e,n,t,s,l;const{pathname:c}=k(),{stats:d,setMode:u,setDutyCycle:h,sendAdvert:m}=Hy(),p=function(){const a=ig();if(!a)return null;const e=ug(a);return e&&e.sub?e.sub:null}(),g=Uy(a=>a.prefetchForRoute),b=cv(),f=Uy(a=>a.packetCacheState.dataTier),y=mv(),v=Math.max(1,Math.ceil(hy[y].minutes/60)),w=Av(),x=Pv(),j=Gv();let z=null;try{z=function(){const a=o.useContext(Pp);if(!a)throw new Error("useSidebar must be used within a SidebarLayout");return a}()}catch{}const[C,A]=o.useState(!1),[D,E]=o.useState("idle"),[B,F]=o.useState(null),[q,S]=o.useState([]),M=o.useRef(null),T=o.useCallback(a=>{a!==c&&(M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{g(a)},100))},[c,g]),P=o.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null)},[]);o.useEffect(()=>{const a=async()=>{var a;try{const e=await Bg(v);e.success&&(null==(a=e.data)?void 0:a.history)&&S(e.data.history)}catch{}};a();const e=setInterval(a,6e4);return()=>clearInterval(e)},[v]);const L=null==d?void 0:d.noise_floor_dbm,R=(null==(e=null==(a=null==d?void 0:d.config)?void 0:a.repeater)?void 0:e.mode)??"forward",N=(null==(t=null==(n=null==d?void 0:d.config)?void 0:n.duty_cycle)?void 0:t.enforcement_enabled)??!1,I=(null==(l=null==(s=null==d?void 0:d.config)?void 0:s.duty_cycle)?void 0:l.max_airtime_percent)??10,_=b.isLoading||b.isBackgroundLoading||b.isTopologyLoading,V=_||w||x,O=b.loadProgress,$=()=>{null==z||z.close()};return r.jsxs(Dp,{children:[r.jsxs(Ep,{className:"px-5 py-6",children:[r.jsx("h1",{className:"sr-only",children:"pyMC Console"}),r.jsx(Xp,{responsive:!0,className:"block"}),r.jsxs("p",{className:"type-data-xs text-text-muted mt-1.5",children:["v",Gp]})]}),r.jsxs(Bp,{className:"py-4",children:[r.jsx(qp,{children:Lk.map(a=>{const e=c===a.to;return r.jsxs(Sp,{href:a.to,current:e,onClick:$,onMouseEnter:()=>T(a.to),onMouseLeave:P,children:[r.jsx(a.icon,{}),r.jsx(Mp,{children:a.name}),"/contacts"===a.to&&j.length>0&&r.jsxs(Tp,{variant:"accent",children:[r.jsx(Ur,{className:"w-3 h-3"}),r.jsx("span",{children:j.length})]}),"/meshgraph"===a.to&&r.jsx(Tp,{variant:"default",children:"Beta"})]},a.name)})}),V&&r.jsx("div",{className:"px-0 py-3",children:r.jsx(xv,{isLoading:_,borderRadius:12,children:r.jsxs("div",{className:"bg-glass-surface/50 rounded-xl p-2",children:[r.jsxs("div",{className:"flex items-center gap-2 px-1 py-0.5",children:[r.jsxs("div",{className:"relative flex h-2 w-2",children:[r.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-primary opacity-75"}),r.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-accent-primary"})]}),r.jsx("span",{className:"type-data-xs text-text-muted flex-1 truncate",children:b.isLoading&&O?"Loading 24h history...":b.isBackgroundLoading&&O?b.statusMessage||`Loading ${f} history...`:b.isTopologyLoading?"Loading topology data...":w?"Computing sparklines":x?"Building topology":"Analyzing database"}),null!==(null==O?void 0:O.percent)&&void 0!==(null==O?void 0:O.percent)&&_&&r.jsxs("span",{className:"type-data-xs text-text-muted tabular-nums",children:[O.percent,"%"]})]}),r.jsx("div",{className:"mt-1.5 h-1 bg-subtle-fill rounded-full overflow-hidden",children:null!==(null==O?void 0:O.percent)&&void 0!==(null==O?void 0:O.percent)&&_?r.jsx("div",{className:"h-full bg-accent-primary/60 rounded-full transition-all duration-300 ease-out",style:{width:`${O.percent}%`}}):r.jsx("div",{className:"h-full bg-accent-primary/40 rounded-full w-full"})}),!_&&r.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 px-1",children:[r.jsx("span",{className:"type-micro text-text-muted",children:"Data:"}),r.jsx("span",{className:"type-data-xs text-accent-primary",children:(a=>{switch(a){case"24h":return"24 hours";case"3d":return"3 days";case"7d":return"7 days";case"14d":return"14 days";default:return a}})(f)})]})]})})}),r.jsx("div",{className:"flex-1"}),r.jsx(Yp,{label:"Controls",icon:r.jsx(ts,{className:"w-5 h-5 text-accent-primary"}),defaultOpen:!1,direction:"up",dataId:"controls",children:r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx(Sr,{color:"success"===D?"success":"error"===D?"danger":"primary",onClick:async()=>{A(!0),E("idle"),F(null);const a=await m();A(!1),a.success?(E("success"),setTimeout(()=>E("idle"),1500)):(E("error"),F(a.error||"Failed to send"),setTimeout(()=>{E("idle"),F(null)},3e3))},disabled:C,className:"w-full justify-center",children:C?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{"data-slot":"icon",className:"animate-spin",viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending..."]}):"success"===D?r.jsxs(r.Fragment,{children:[r.jsx("svg",{"data-slot":"icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:r.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Sent!"]}):"error"===D?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{"data-slot":"icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Failed"]}):r.jsxs(r.Fragment,{children:[r.jsx(as,{"data-slot":"icon"}),"Send Advert"]})}),B&&r.jsx("p",{className:"text-accent-danger text-xs text-center",children:B}),r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-xs text-text-muted",children:"Repeat"}),r.jsx("span",{className:i("text-xs font-medium","forward"===R?"text-accent-success":"text-accent-secondary"),children:"forward"===R?"ON":"OFF"})]}),r.jsx(Sr,{color:"forward"===R?"success":"warning",onClick:()=>{u("forward"===R?"monitor":"forward")},className:"w-full justify-center",children:"forward"===R?r.jsxs(r.Fragment,{children:[r.jsx(Zr,{"data-slot":"icon"}),"Repeating"]}):r.jsxs(r.Fragment,{children:[r.jsx(Jr,{"data-slot":"icon"}),"Monitor Only"]})}),r.jsxs("div",{className:"flex items-center justify-between gap-2 mt-1",children:[r.jsx("span",{className:"text-xs text-text-muted",children:"Duty Cycle"}),r.jsx("span",{className:i("text-xs font-medium tabular-nums",N?"text-accent-secondary":"text-text-muted"),children:N?`${I}%`:"OFF"})]}),r.jsxs(Sr,{color:N?"warning":"muted",onClick:()=>{h(!N)},className:"w-full justify-center",children:[r.jsx(Wr,{"data-slot":"icon"}),N?`Limited to ${I}%`:"Disabled"]})]})})]}),r.jsx(Fp,{children:r.jsxs("div",{className:"p-3 flex flex-col gap-1",children:[void 0!==(null==d?void 0:d.uptime_seconds)&&r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[r.jsx(Vr,{className:"w-5 h-5 text-text-muted flex-shrink-0"}),r.jsxs("span",{className:"type-data-xs text-text-secondary tabular-nums",children:[Xv(d.uptime_seconds)," uptime"]})]}),r.jsxs("div",{className:"flex items-center gap-3 px-3 pt-2 pb-0.5",children:[r.jsx(Qr,{className:"w-5 h-5 text-accent-primary flex-shrink-0"}),r.jsx("span",{className:"type-data-xs text-text-muted",children:"Noise Floor"}),r.jsx("span",{className:"ml-auto type-data text-text-primary tabular-nums",children:null!=L?`${L.toFixed(0)} dBm`:"—"})]}),q.length>0&&r.jsx("div",{className:"px-3 pt-1 pb-1",children:r.jsxs("div",{className:"relative rounded-sm border-x border-white/25 bg-transparent overflow-hidden py-2",children:[r.jsx("div",{className:"absolute inset-y-0 left-0 w-2 bg-gradient-to-r from-sys-amber/15 to-transparent pointer-events-none"}),r.jsx("div",{className:"absolute inset-y-0 right-0 w-2 bg-gradient-to-l from-sys-amber/15 to-transparent pointer-events-none"}),r.jsx(Mw,{timestamps:q.map(a=>a.timestamp),values:q.map(a=>a.noise_floor_dbm),compact:!0,height:28})]})}),r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[r.jsx(wv,{showLabel:!0}),(null==d?void 0:d.version)&&r.jsxs("span",{className:"type-data-xs text-text-muted truncate",title:`v${d.version}`,children:["v",d.version]})]}),r.jsxs("button",{onClick:()=>{cg(),window.location.href="/login"},className:"flex items-center gap-3 px-3 py-2 rounded-xl text-text-muted hover:text-accent-danger hover:bg-accent-danger/10 transition-all duration-150",children:[r.jsx(Gr,{className:"w-5 h-5 flex-shrink-0"}),r.jsx("span",{className:"type-body-sm",children:"Sign Out"}),p&&r.jsxs("span",{className:"ml-auto type-data-xs",children:["(",p,")"]})]})]})})]})}function Nk(){const a=cv(),e=a.isLoading||a.isBackgroundLoading||a.isTopologyLoading;return r.jsxs(Ip,{children:[r.jsxs(_p,{children:[r.jsx("h1",{className:"sr-only",children:"pyMC Console"}),r.jsx(Xp,{height:26,className:"block"}),e&&r.jsx(jv,{className:"ml-2"})]}),r.jsx(Vp,{}),r.jsxs(_p,{children:[r.jsxs("p",{className:"type-data-xs text-text-muted",children:["v",Gp]}),r.jsx(wv,{})]})]})}const Ik=o.memo(function(){const{theme:a}=nr(),{backgroundImage:e,brightness:n,colorScheme:t}=a,o=fa(t),s=(null==o?void 0:o.meta.backgroundImage)||null==o?void 0:o.meta.backgroundColor,i=(100-n)/100;return r.jsxs(r.Fragment,{children:[e?r.jsx("div",{className:"fixed inset-0 -z-20",style:{contain:"paint"},"aria-hidden":"true",children:r.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-300 ease-out",style:{backgroundImage:`url(${e})`}})}):s?r.jsx("div",{className:"fixed inset-0 -z-20 transition-colors duration-300 ease-out",style:{backgroundColor:s,contain:"paint"},"aria-hidden":"true"}):null,r.jsx("div",{className:"fixed inset-0 -z-10 bg-black pointer-events-none transition-opacity duration-200 ease-out",style:{opacity:i,contain:"paint"},"aria-hidden":"true"})]})}),_k=20,Vk=12,Ok=o.createContext(null);function $k({children:a}){const[e,n]=o.useState({content:null,mouseX:0,mouseY:0,visible:!1}),t=o.useRef(null),[s,i]=o.useState({x:0,y:0}),l=o.useCallback((a,e,t)=>{n({content:a,mouseX:e,mouseY:t,visible:!0})},[]),c=o.useCallback(()=>{n(a=>({...a,visible:!1}))},[]),d=o.useCallback((a,e)=>{n(n=>n.visible?{...n,mouseX:a,mouseY:e}:n)},[]);o.useEffect(()=>{if(!e.visible||!t.current)return;const a=t.current.getBoundingClientRect(),{mouseX:n,mouseY:o}=e,r=window.innerWidth,s=window.innerHeight;let l,c;l=n+_k+a.width+Vk>r?n-_k-a.width:n+_k,l=Math.max(Vk,Math.min(l,r-a.width-Vk)),c=o-_k-a.height{c.current&&(clearTimeout(c.current),c.current=null)},h=o.useCallback(e=>{u(),c.current=setTimeout(()=>{d.current=!0,t(a,e.clientX,e.clientY)},n)},[t,a,n]),m=o.useCallback(a=>{d.current&&i(a.clientX,a.clientY)},[i]),p=o.useCallback(()=>{u(),d.current=!1,s()},[s]),g=o.useCallback(()=>{if(u(),!l.current)return;const e=l.current.getBoundingClientRect();c.current=setTimeout(()=>{d.current=!0,t(a,e.left+e.width/2,e.top)},n)},[t,a,n]),b=o.useCallback(()=>{u(),d.current=!1,s()},[s]);return o.useEffect(()=>()=>{u(),d.current&&(d.current=!1,s())},[s]),o.useEffect(()=>{const a=()=>{d.current&&(u(),d.current=!1,s())};return document.addEventListener("click",a,!0),()=>document.removeEventListener("click",a,!0)},[s]),r.jsx("span",{ref:l,onMouseEnter:h,onMouseMove:m,onMouseLeave:p,onFocus:g,onBlur:b,className:"contents",children:e})}function Uk({label:a}){return r.jsx("div",{className:"min-h-[50vh]","aria-label":`Loading ${a}`,"aria-busy":"true"})}function Hk(){return r.jsx(Uk,{label:"dashboard"})}function Yk(){return r.jsx(Uk,{label:"list"})}function Gk(){return r.jsx(Uk,{label:"map"})}function Kk(){return r.jsx(Uk,{label:"charts"})}function Xk(){return r.jsx(Uk,{label:"settings"})}function Jk(){return r.jsx(Uk,{label:"system"})}function Zk({children:a}){return r.jsx(r.Fragment,{children:a})}const Qk=o.lazy(()=>y(()=>import("./Login-Cq--s1gM.js"),__vite__mapDeps([0,1,2,3]))),ax=o.lazy(()=>y(()=>import("./Dashboard-OzXZ0ZNo.js"),__vite__mapDeps([4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,3,24,25,26]))),ex=o.lazy(()=>y(()=>import("./Packets-CnekH9QD.js"),__vite__mapDeps([27,1,13,9,10,11,12,14,15,16,17,18,19,20,21,22,8,28,5,25,3]))),nx=o.lazy(()=>y(()=>import("./Contacts-CoDOi-Be.js").then(a=>a.C),__vite__mapDeps([29,1,30,5,31,17,23,11,19,13,28,32,16,20,33,34,3,35,15,36,37]))),tx=o.lazy(()=>y(()=>import("./Statistics-CQXTbOcj.js"),__vite__mapDeps([38,1,39,18,40,7,8,5,13,33,34,3,17,16,25,41,31,26,42,35,37]))),ox=o.lazy(()=>y(()=>import("./MeshGraph-CQV_BObm.js"),__vite__mapDeps([43,1,44,2,13,31,21,15,36,42,35,3]))),rx=o.lazy(()=>y(()=>import("./MeshGraphLabelTest-k3DKgt5_.js"),__vite__mapDeps([45,1,15,3]))),sx=o.lazy(()=>y(()=>import("./System-CtoOYGp_.js"),__vite__mapDeps([46,1,5,17,25,12,35,19,47,26,3]))),ix=o.lazy(()=>y(()=>import("./Logs-BwAIrcrO.js"),__vite__mapDeps([48,1,39,5,25,3]))),lx=o.lazy(()=>y(()=>import("./Terminal-CV8ay32y.js"),__vite__mapDeps([49,1,30,3,10,5]))),cx=o.lazy(()=>y(()=>import("./Configuration-dmqkTiMy.js"),__vite__mapDeps([50,1,32,17,51,24,5,13,25,15,41,26,20,47,14,3])));function dx({children:a}){const e=k();return dg()?r.jsx(r.Fragment,{children:a}):r.jsx(z,{to:"/login",state:{from:e},replace:!0})}class ux extends o.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}render(){var a;return this.state.hasError?r.jsxs("div",{className:"surface-base rounded-2xl p-8 text-center",children:[r.jsx("p",{className:"type-subheading text-accent-red mb-2",children:"Page failed to render"}),r.jsx("p",{className:"type-body text-white/50 mb-4",children:(null==(a=this.state.error)?void 0:a.message)||"Unknown error"}),r.jsx("button",{onClick:()=>this.setState({hasError:!1}),className:"px-4 py-2 bg-accent-primary/20 text-accent-primary rounded-lg hover:bg-accent-primary/30 transition-colors",children:"Try Again"})]}):this.props.children}}function hx(){const a=Uy(a=>a.initializeApp),e=dg();return o.useEffect(()=>{if(!e)return;a(),fb.getState().initialize();const n=setInterval(()=>{yg()},3e4);return yg(),function(){if(vg)return;if("undefined"==typeof document)return;const a=async()=>{if("visible"!==document.visibilityState)return;if(!ig())return;if(hg())return cg(),void("undefined"==typeof window||window.location.pathname.includes("/login")||(window.location.href="/login"));const a=mg();a>0&&a<300&&await bg()};document.addEventListener("visibilitychange",a),vg=!0,"visible"===document.visibilityState&&a()}(),()=>clearInterval(n)},[a,e]),r.jsxs($k,{children:[r.jsx(Ik,{}),r.jsxs(x,{children:[r.jsx(j,{path:"/login",element:r.jsx(o.Suspense,{fallback:r.jsx("div",{className:"min-h-screen bg-bg-body"}),children:r.jsx(Qk,{})})}),r.jsx(j,{path:"/meshgraph-label-test",element:r.jsx(o.Suspense,{fallback:r.jsx("div",{className:"min-h-screen bg-black"}),children:r.jsx(rx,{})})}),r.jsx(j,{path:"/*",element:r.jsx(dx,{children:r.jsx(Np,{sidebar:r.jsx(Rk,{}),navbar:r.jsx(Nk,{}),children:r.jsx("div",{className:"px-4 sm:px-6 lg:px-8 pt-5 pb-4 sm:pb-6 lg:pb-8 max-w-7xl mx-auto",children:r.jsx(ux,{children:r.jsxs(x,{children:[r.jsx(j,{path:"/",element:r.jsx(o.Suspense,{fallback:r.jsx(Hk,{}),children:r.jsx(Zk,{children:r.jsx(ax,{})})})}),r.jsx(j,{path:"/packets",element:r.jsx(o.Suspense,{fallback:r.jsx(Yk,{}),children:r.jsx(Zk,{children:r.jsx(ex,{})})})}),r.jsx(j,{path:"/contacts",element:r.jsx(o.Suspense,{fallback:r.jsx(Gk,{}),children:r.jsx(Zk,{children:r.jsx(nx,{})})})}),r.jsx(j,{path:"/statistics",element:r.jsx(o.Suspense,{fallback:r.jsx(Kk,{}),children:r.jsx(Zk,{children:r.jsx(tx,{})})})}),r.jsx(j,{path:"/meshgraph",element:r.jsx(o.Suspense,{fallback:r.jsx(Kk,{}),children:r.jsx(Zk,{children:r.jsx(ox,{})})})}),r.jsx(j,{path:"/system",element:r.jsx(o.Suspense,{fallback:r.jsx(Jk,{}),children:r.jsx(Zk,{children:r.jsx(sx,{})})})}),r.jsx(j,{path:"/logs",element:r.jsx(o.Suspense,{fallback:r.jsx(Yk,{}),children:r.jsx(Zk,{children:r.jsx(ix,{})})})}),r.jsx(j,{path:"/terminal",element:r.jsx(o.Suspense,{fallback:r.jsx(Yk,{}),children:r.jsx(Zk,{children:r.jsx(lx,{})})})}),r.jsx(j,{path:"/configuration",element:r.jsx(o.Suspense,{fallback:r.jsx(Xk,{}),children:r.jsx(Zk,{children:r.jsx(cx,{})})})})]})})})})})})]})]})}const mx=console.warn;console.warn=(...a)=>{const e=a[0];if("string"==typeof e){if(e.includes("width")&&e.includes("height")&&e.includes("chart should be greater than 0"))return;if(e.includes("Unable to load glyph range"))return}mx.apply(console,a)},f.createRoot(document.getElementById("root")).render(r.jsx(o.StrictMode,{children:r.jsx(er,{children:r.jsx(C,{children:r.jsx(hx,{})})})}));export{ls as $,Jh as A,Ar as B,ly as C,hy as D,Jv as E,pv as F,yb as G,xp as H,Cp as I,_r as J,Gy as K,wv as L,bv as M,cv as N,Sg as O,Xp as P,Ir as Q,Qr as R,pw as S,Wk as T,gw as U,or as V,rr as W,Sr as X,ss as Y,Lc as Z,Dc as _,Ho as a,Jr as a$,ds as a0,sf as a1,lf as a2,cf as a3,kr as a4,aw as a5,fr as a6,yr as a7,uy as a8,bp as a9,gv as aA,Cv as aB,Av as aC,fv as aD,Ck as aE,zg as aF,Cg as aG,Pk as aH,gr as aI,Iw as aJ,Zo as aK,xk as aL,rk as aM,tk as aN,ok as aO,Ak as aP,fy as aQ,$v as aR,Uv as aS,Gv as aT,rs as aU,my as aV,by as aW,Mw as aX,Ey as aY,qv as aZ,Kv as a_,am as aa,$b as ab,Zv as ac,Vr as ad,Qf as ae,as as af,wk as ag,jk as ah,Vv as ai,Tv as aj,Hv as ak,oy as al,Dr as am,ow as an,Qv as ao,sr as ap,Op as aq,Ov as ar,Yv as as,Ur as at,tw as au,Wv as av,Hy as aw,lv as ax,Sv as ay,Mv as az,dw as b,Mb as b$,Zr as b0,yy as b1,tv as b2,ov as b3,rv as b4,sv as b5,nv as b6,Xv as b7,Tg as b8,Jy as b9,Wb as bA,Tf as bB,Yb as bC,mf as bD,Lf as bE,qf as bF,Sf as bG,Mf as bH,Ub as bI,Gb as bJ,Hb as bK,Pf as bL,rf as bM,Qb as bN,af as bO,Vb as bP,_b as bQ,Lb as bR,Fb as bS,Bb as bT,Ib as bU,Pb as bV,Tb as bW,qb as bX,Nb as bY,Rb as bZ,Sb as b_,Zy as ba,av as bb,ev as bc,$r as bd,wy as be,Gp as bf,df as bg,Dg as bh,Lg as bi,Rg as bj,Ng as bk,Pg as bl,Ig as bm,os as bn,vb as bo,Eb as bp,wb as bq,kb as br,xb as bs,jb as bt,of as bu,nf as bv,tf as bw,Rf as bx,uf as by,hf as bz,Nr as c,Jf as c0,Zf as c1,Zb as c2,Jb as c3,Xb as c4,Kb as c5,ef as c6,xg as c7,nr as c8,Ea as c9,Zc as cA,Ni as cB,ms as cC,Ec as cD,pl as cE,al as cF,ml as cG,ac as cH,Cs as cI,js as cJ,pd as cK,gd as cL,gu as cM,iu as cN,kd as cO,eh as cP,Tc as cQ,ul as cR,ou as cS,Gh as cT,_s as cU,rh as cV,Pv as cW,Lv as cX,xv as cY,Ta as ca,gb as cb,es as cc,ts as cd,ew as ce,nw as cf,zp as cg,Ap as ch,kk as ci,Vw as cj,dk as ck,pk as cl,ik as cm,vk as cn,Xg as co,dy as cp,ir as cq,Bv as cr,uv as cs,cb as ct,Os as cu,qd as cv,fd as cw,lm as cx,Vh as cy,jc as cz,gy as d,Ky as e,Xy as f,og as g,Qy as h,dg as i,Yy as j,dv as k,gg as l,up as m,iv as n,mv as o,Bg as p,hv as q,cy as r,rg as s,ty as t,fk as u,iy as v,tb as w,ry as x,sy as y,Ob as z}; diff --git a/frontend/dist/assets/index-DU6QWVJT.js b/frontend/dist/assets/index-n30bZfID.js similarity index 99% rename from frontend/dist/assets/index-DU6QWVJT.js rename to frontend/dist/assets/index-n30bZfID.js index 5e2dd3f1..d8e94f91 100644 --- a/frontend/dist/assets/index-DU6QWVJT.js +++ b/frontend/dist/assets/index-n30bZfID.js @@ -1 +1 @@ -import{r as t,j as e}from"./vendor-react-BKIq8k5U.js";import{cu as n,cv as r,cw as a,cx as s,cy as i,$ as o,cz as l,cA as u,cB as c,cC as f,cD as p,cE as y,cF as d,cG as h,cH as m,cI as g,cJ as x,cK as v,cL as j,cM as b,cN as w,cO as A,cP as k,cQ as $,cR as M,m as D,cS as S,cT as C,A as R,aa as I,cU as E,cV as F}from"./index-_WuEOacy.js";function N(t,e){return n(t)?t[((t,e,n)=>{const r=e-0;return((n-0)%r+r)%r+0})(0,t.length,e)]:t}class P{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;ne.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return T(this.animations,"duration")}get iterationDuration(){return T(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function T(t,e){let n=0;for(let r=0;rn&&(n=a)}return n}class O extends P{then(t,e){return this.finished.finally(t).then(()=>{})}}class L extends r{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return a()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function V({children:n,isValidProp:r,...a}){r&&s(r),(a={...t.useContext(i),...a}).isStatic=o(()=>a.isStatic);const l=t.useMemo(()=>a,[JSON.stringify(a.transition),a.transformPagePoint,a.reducedMotion]);return e.jsx(i.Provider,{value:l,children:n})}function W(t){return"object"==typeof t&&!Array.isArray(t)}function B(t,e,n,r){return null==t?[]:"string"==typeof t&&W(e)?u(t,n,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function z(t,e,n){return t*(e+1)}function H(t,e,n,r){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):r.get(e)??t}function K(t,e,n,r,a,s){!function(t,e,n){for(let r=0;re&&a.at"number"==typeof t,Y=t=>t.every(q);function Z(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=v(t)&&!j(t)?new b(e):new w(e);n.mount(t),A.set(t,n)}function tt(t){const e=new L({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),A.set(t,e)}function et(t,e,n,r){const a=[];if(function(t,e){return p(t)||"number"==typeof t||"string"==typeof t&&!W(e)}(t,e))a.push(k(t,W(e)&&e.default||e,n&&n.default||n));else{if(null==t)return a;const s=B(t,e,r),i=s.length;for(let t=0;t{const l=U(t),{delay:u=0,times:c=y(l),type:p=e.type||"keyframes",repeat:x,repeatType:j,repeatDelay:b=0,...A}=n;let{ease:k=e.ease||"easeOut",duration:$}=n;const M="function"==typeof u?u(i,o):u,D=l.length,S=m(p)?p:null==a?void 0:a[p||"keyframes"];if(D<=2&&S){let t=100;if(2===D&&Y(l)){const e=l[1]-l[0];t=Math.abs(e)}const n={...e,...A};void 0!==$&&(n.duration=g($));const r=d(n,t,S);k=r.ease,$=r.duration}$??($=s);const C=f+M;1===c.length&&0===c[0]&&(c[1]=1);const R=c.length-l.length;if(R>0&&h(c,R),1===l.length&&l.unshift(null),x){$=z($,x);const t=[...l],e=[...c];k=Array.isArray(k)?[...k]:[k];const n=[...k];for(let r=0;r{for(const a in t){const s=t[a];s.sort(X);const o=[],l=[],u=[];for(let t=0;t{r.push(...et(n,t,e))}),r}(t,e,rt);else{const{onComplete:s,...i}=n||{};"function"==typeof s&&(r=s),a=et(t,e,i,rt)}var s;const i=new O(a);return r&&i.finished.then(r),i};var rt;const at="var(--mask-height, 0.15em)",st="var(--mask-width, 0.5em)",it=`calc(${st} / var(--invert-x, 1))`,ot="#000 0, transparent 71%",lt=`linear-gradient(to right, transparent 0, #000 ${it}, #000 calc(100% - ${it}), transparent),linear-gradient(to bottom, transparent 0, #000 ${at}, #000 calc(100% - ${at}), transparent 100%),radial-gradient(at bottom right, ${ot}),radial-gradient(at bottom left, ${ot}), radial-gradient(at top left, ${ot}), radial-gradient(at top right, ${ot})`,ut=`100% calc(100% - ${at} * 2),calc(100% - ${it} * 2) 100%,${it} ${at},${it} ${at},${it} ${at},${it} ${at}`;function ct({children:t,layoutDependency:n}){return e.jsx(D.span,{layout:!0,layoutDependency:n,"aria-hidden":!0,style:{display:"inline-flex","--invert-x":1,margin:`0 calc(-1*${st})`,padding:`calc(${at}/2) ${st}`,position:"relative",zIndex:-1,overflow:"clip",WebkitMaskImage:lt,WebkitMaskSize:ut,WebkitMaskPosition:"center, center, top left, top right, bottom right, bottom left",WebkitMaskRepeat:"no-repeat"},children:t})}function ft(){const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current}function pt(t){const{width:e,fontSize:n}=getComputedStyle(t);return parseFloat(e)/parseFloat(n)+"em"}S({"--invert-x":{correct:(t,{treeScale:e,projectionDelta:n})=>n.x.scale*e.x}});const yt=new WeakMap,dt=t.forwardRef(function({value:n,initialValue:r=n,...a},s){const{transition:o}=t.useContext(i),l=t.useRef(r).current,u=ft(),c=t.useRef(null),f=t.useRef(null);t.useImperativeHandle(s,()=>f.current,[]);const p=t.useRef(new Array(10)),y=C(),d=y?n:0;t.useLayoutEffect(()=>{c.current&&p.current[l]&&(c.current.style.width=pt(p.current[l]))},[]);const h=t.useRef(r);t.useLayoutEffect(()=>{var t;if(!c.current||d===h.current)return;const e=c.current.getBoundingClientRect(),n=null==(t=f.current)?void 0:t.getBoundingClientRect(),r=e.height*(d-h.current)+(e.top-(n?n.top||0:e.top));return nt(c.current,{y:[r,0]},o),()=>{h.current=d}},[d]);const[m,g]=t.useState();t.useEffect(()=>{if(u&&l===d)return;if(!p.current[d])return;const t=pt(p.current[d]);f.current&&yt.set(f.current,t),g(t)},[d]);const x=t=>e.jsx("span",{style:{display:"inline-block",padding:`calc(${at}/2) 0`},ref:e=>{p.current[t]=e},children:t},t);return e.jsx(D.span,{...a,ref:f,layout:"position","data-state":y?void 0:"exiting",style:{display:"inline-flex",justifyContent:"center",width:m},children:e.jsxs("span",{ref:c,style:{display:"inline-flex",justifyContent:"center",flexDirection:"column",alignItems:"center",position:"relative"},children:[0!==d&&e.jsx("span",{style:{...ht,bottom:"100%",left:0},children:new Array(d).fill(null).map((t,e)=>x(e))}),x(d),9!==d&&e.jsx("span",{style:{...ht,top:"100%",left:0},children:new Array(9-d).fill(null).map((t,e)=>x(d+e+1))})]})})}),ht={display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",width:"100%"},mt=t.createContext({justify:"left"}),gt=t.forwardRef(function({partKey:n,type:r,children:a,layoutDependency:s,...i},o){const l=C(),{justify:u}=t.useContext(mt);return e.jsx(D.span,{...i,"data-state":l?void 0:"exiting",style:{display:"inline-flex",justifyContent:u,padding:`calc(${at}/2) 0`,position:"relative"},layout:"position",layoutDependency:s,ref:o,children:e.jsx(R,{mode:"popLayout",anchorX:u,initial:!1,children:e.jsx(D.span,{layout:"right"===u&&"position",layoutDependency:s,initial:{opacity:0},animate:{opacity:[null,1]},exit:{opacity:[null,0]},style:{display:"inline-block",whiteSpace:"pre"},children:a},a)})})}),xt=t.forwardRef(function({parts:n,justify:r="left",mode:a,style:s,name:i,layoutDependency:o,...l},u){const c=t.useRef(null);t.useImperativeHandle(u,()=>c.current,[]);const f=t.useMemo(()=>({justify:r}),[r]),p=t.useRef(null),y=ft(),[d,h]=t.useState();return t.useEffect(()=>{if(!p.current)return;if(y)return void(c.current&&(c.current.style.width=pt(p.current)));const t=Array.from(p.current.children).map(t=>{if(!(t instanceof HTMLElement))return;if("exiting"===t.dataset.state){const e=t.nextSibling;return t.remove(),()=>{p.current&&p.current.insertBefore(t,e)}}const e=yt.get(t);if(!e)return;const n=t.style.width;return t.style.width=e,()=>{t.style.width=n}});h(pt(p.current));for(let e=t.length-1;e>=0;e--){const n=t[e];n&&n()}},[n.map(t=>t.value).join("")]),e.jsx(mt.Provider,{value:f,children:e.jsx(D.span,{layoutDependency:o,...l,ref:c,className:`number-section-${i}`,style:{...s,display:"inline-flex",justifyContent:r,width:d},children:e.jsxs("span",{ref:p,style:{display:"inline-flex",justifyContent:"inherit",position:"relative"},children:["​",e.jsx(R,{mode:a,anchorX:r,initial:!1,children:n.map(t=>"integer"===t.type||"fraction"===t.type?e.jsx(dt,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},value:t.value,initialValue:y?void 0:0,layoutDependency:o},t.key):e.jsx(gt,{type:t.type,partKey:t.key,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},layoutDependency:o,children:t.value},"literal"===t.type?`${t.key}:${t.value}`:t.key))})]})})})}),vt={opacity:{duration:1,ease:E},layout:{type:"spring",duration:1,bounce:0},y:{type:"spring",duration:1,bounce:0}},jt=t.forwardRef(function({children:n,locales:r,format:a,transition:s,style:o,suffix:l,prefix:u,...c},f){const p=t.useMemo(()=>((t,{locales:e,format:n},r,a)=>{const s=new Intl.NumberFormat(e,n).formatToParts(Number(t));r&&s.unshift({type:"prefix",value:r}),a&&s.push({type:"suffix",value:a});const i=[],o=[],l=[],u=[],c={},f=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let p="",y=!1,d=!1;for(const m of s){p+=m.value;const t="minusSign"===m.type||"plusSign"===m.type?"sign":m.type;switch(t){case"integer":y=!0,o.push(...m.value.split("").map(e=>({type:t,value:parseInt(e)})));break;case"group":o.push({type:t,value:m.value});break;case"decimal":d=!0,l.push({type:t,value:m.value,key:f(t)});break;case"fraction":l.push(...m.value.split("").map(e=>({type:t,value:parseInt(e),key:f(t)})));break;default:(y||d?u:i).push({type:t,value:m.value,key:f(t)})}}const h=[];for(let m=o.length-1;m>=0;m--)h.unshift({...o[m],key:f(o[m].type)});return{pre:i,integer:h,fraction:l,post:u,formatted:p}})(n,{locales:r,format:a},u,l),[n,r,a]),{pre:y,integer:d,fraction:h,post:m,formatted:g}=p,x=t.useContext(i).transition;s=s??x??vt;const{layoutDependency:v}=c,j=t.useMemo(()=>{if(void 0!==v)return{layoutDependency:v,value:n}},[v,n]);return e.jsx(I,{children:e.jsx(V,{transition:s,children:e.jsx(D.div,{...c,ref:f,layout:!0,layoutDependency:j,style:{lineHeight:1,...o,display:"inline-flex",isolation:"isolate",whiteSpace:"nowrap"},children:e.jsxs(D.div,{layout:!0,layoutDependency:j,"aria-label":g,style:{display:"inline-flex",direction:"ltr",isolation:"isolate",position:"relative",zIndex:-1},children:[e.jsx(xt,{style:{padding:`calc(${at}/2) 0`},layoutDependency:j,"aria-hidden":!0,justify:"right",mode:"popLayout",parts:y,name:"pre"}),e.jsxs(ct,{layoutDependency:j,children:[e.jsx(xt,{layoutDependency:j,justify:"right",parts:d,name:"integer"}),e.jsx(xt,{layout:"position",layoutDependency:j,parts:h,name:"fraction"})]}),e.jsx(xt,{style:{padding:`calc(${at}/2) 0`},"aria-hidden":!0,layout:"position",layoutDependency:j,mode:"popLayout",parts:m,name:"post"})]})})})})});function bt(t,e){return t.length>e.length||t.length>0&&!e.startsWith(t)}function wt(t,e,n){return t+(e-t)*n}D.create(t.Fragment);const At=new Set([".",",","!","?",":",";","'",'"',"-","(",")"]),kt=new Set(["!","@","#","$","%","^","&","*","(",")","_","+","{","}","|",":",'"',"<",">","?"]);const $t={slow:130,normal:75,fast:30};t.forwardRef(function({children:n="",as:r,speed:a="normal",variance:s="natural",cursorClassName:u="motion-typewriter-cursor",cursorStyle:c,cursorBlinkDuration:f=.5,onComplete:p,play:y=!0,"aria-label":d,textClassName:h,textStyle:m,replace:g="type",backspace:x="character",backspaceFactor:v=.2,...j},b){const w=r||"span",A=t.useRef(n),k=function(){const e=o(()=>l("")),{isStatic:n}=t.useContext(i);if(n){const[,n]=t.useState("");t.useEffect(()=>e.on("change",n),[])}return e}(),$=t.useRef(null),M=t.useRef(null),S=t.useRef(null),C="number"==typeof a?a:$t[a],R=()=>{var t;null==(t=$.current)||t.call($),$.current=null},I=()=>{M.current=nt(S.current,{opacity:[1,1,0,0]},{duration:f,times:[0,.5,.5,1],ease:"linear",repeat:1/0,repeatType:"reverse"})};return t.useEffect(()=>{"all"===g&&n!==A.current&&k.set(""),A.current=n},[n,g]),t.useEffect(()=>{var t;if(!y)return I(),void R();null==(t=M.current)||t.cancel();const e=()=>{const t=function(t,e,n,r){if("type"===n&&bt(t,e)){if("all"===r)return e.slice(0,function(t,e){const n=Math.min(t.length,e.length);let r=0;for(let a=0;a=0&&/\s/.test(t[n]);)n--;for(;n>=0&&!/\s/.test(t[n]);)n--;return Math.max(0,n+1)}(t,t.length);return t.slice(0,e)}return t.slice(0,-1)}return e.slice(0,t.length+1)}(k.get(),n,g,x);k.set(t),t!==n?r():(I(),null==p||p())},r=()=>{$.current=F(e,function(t,e,n,r,a){if(bt(e,t))return n*a;if("natural"===r)return function(t,e,n){const r=e.length,a=t[r],s=t[r-1];if(!a)return n;const i=t.slice(0,r).lastIndexOf(" "),o=r-i-1,l=i+1,u=t.slice(r).indexOf(" "),c=(-1===u?t.length:r+u)-l;let f=1;s&&/[.!?]/.test(s)&&" "===a&&(f*=3),c<=3?f*=.7:(0===o&&" "!==a&&(f*=1.5),o===c-1&&(f*=1.4)),o>0&&o3&&(f*=1-Math.min(o/c,.4)),At.has(a)&&(f*=1.5),kt.has(a)&&(f*=1.5),/\d/.test(a)&&(f*=1.3),c>8&&(f*=1.3),a!==a.toLowerCase()&&(f*=1.25),r>200&&(f*=1+Math.min((r-200)/1e3,.3)),f*=1+wt(-.25,.25,Math.random());const p=n*f;return Math.max(.2*n,p)}(t,e,n);if("number"==typeof r&&r>0){const t=n*(r/100);return n+wt(-t,t,Math.random())}return n}(n,k.get(),C,s,v))};return $.current||r(),R},[y,p,n,C,s,v,x]),e.jsxs(w,{ref:b,...j,"aria-label":d||n,children:[e.jsx(D.span,{className:h,style:m,children:k}),e.jsx(D.span,{ref:S,className:u,style:{display:"inline-block",width:"2px",height:"1em",backgroundColor:"currentColor",position:"relative",top:"0.1em",left:"0.2em",...c}})]})});export{jt as A}; +import{r as t,j as e}from"./vendor-react-BKIq8k5U.js";import{cu as n,cv as r,cw as a,cx as s,cy as i,$ as o,cz as l,cA as u,cB as c,cC as f,cD as p,cE as y,cF as d,cG as h,cH as m,cI as g,cJ as x,cK as v,cL as j,cM as b,cN as w,cO as A,cP as k,cQ as $,cR as M,m as D,cS as S,cT as C,A as R,aa as I,cU as E,cV as F}from"./index-CrU_Ps9k.js";function N(t,e){return n(t)?t[((t,e,n)=>{const r=e-0;return((n-0)%r+r)%r+0})(0,t.length,e)]:t}class P{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;ne.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return T(this.animations,"duration")}get iterationDuration(){return T(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function T(t,e){let n=0;for(let r=0;rn&&(n=a)}return n}class O extends P{then(t,e){return this.finished.finally(t).then(()=>{})}}class L extends r{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return a()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function V({children:n,isValidProp:r,...a}){r&&s(r),(a={...t.useContext(i),...a}).isStatic=o(()=>a.isStatic);const l=t.useMemo(()=>a,[JSON.stringify(a.transition),a.transformPagePoint,a.reducedMotion]);return e.jsx(i.Provider,{value:l,children:n})}function W(t){return"object"==typeof t&&!Array.isArray(t)}function B(t,e,n,r){return null==t?[]:"string"==typeof t&&W(e)?u(t,n,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function z(t,e,n){return t*(e+1)}function H(t,e,n,r){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):r.get(e)??t}function K(t,e,n,r,a,s){!function(t,e,n){for(let r=0;re&&a.at"number"==typeof t,Y=t=>t.every(q);function Z(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=v(t)&&!j(t)?new b(e):new w(e);n.mount(t),A.set(t,n)}function tt(t){const e=new L({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),A.set(t,e)}function et(t,e,n,r){const a=[];if(function(t,e){return p(t)||"number"==typeof t||"string"==typeof t&&!W(e)}(t,e))a.push(k(t,W(e)&&e.default||e,n&&n.default||n));else{if(null==t)return a;const s=B(t,e,r),i=s.length;for(let t=0;t{const l=U(t),{delay:u=0,times:c=y(l),type:p=e.type||"keyframes",repeat:x,repeatType:j,repeatDelay:b=0,...A}=n;let{ease:k=e.ease||"easeOut",duration:$}=n;const M="function"==typeof u?u(i,o):u,D=l.length,S=m(p)?p:null==a?void 0:a[p||"keyframes"];if(D<=2&&S){let t=100;if(2===D&&Y(l)){const e=l[1]-l[0];t=Math.abs(e)}const n={...e,...A};void 0!==$&&(n.duration=g($));const r=d(n,t,S);k=r.ease,$=r.duration}$??($=s);const C=f+M;1===c.length&&0===c[0]&&(c[1]=1);const R=c.length-l.length;if(R>0&&h(c,R),1===l.length&&l.unshift(null),x){$=z($,x);const t=[...l],e=[...c];k=Array.isArray(k)?[...k]:[k];const n=[...k];for(let r=0;r{for(const a in t){const s=t[a];s.sort(X);const o=[],l=[],u=[];for(let t=0;t{r.push(...et(n,t,e))}),r}(t,e,rt);else{const{onComplete:s,...i}=n||{};"function"==typeof s&&(r=s),a=et(t,e,i,rt)}var s;const i=new O(a);return r&&i.finished.then(r),i};var rt;const at="var(--mask-height, 0.15em)",st="var(--mask-width, 0.5em)",it=`calc(${st} / var(--invert-x, 1))`,ot="#000 0, transparent 71%",lt=`linear-gradient(to right, transparent 0, #000 ${it}, #000 calc(100% - ${it}), transparent),linear-gradient(to bottom, transparent 0, #000 ${at}, #000 calc(100% - ${at}), transparent 100%),radial-gradient(at bottom right, ${ot}),radial-gradient(at bottom left, ${ot}), radial-gradient(at top left, ${ot}), radial-gradient(at top right, ${ot})`,ut=`100% calc(100% - ${at} * 2),calc(100% - ${it} * 2) 100%,${it} ${at},${it} ${at},${it} ${at},${it} ${at}`;function ct({children:t,layoutDependency:n}){return e.jsx(D.span,{layout:!0,layoutDependency:n,"aria-hidden":!0,style:{display:"inline-flex","--invert-x":1,margin:`0 calc(-1*${st})`,padding:`calc(${at}/2) ${st}`,position:"relative",zIndex:-1,overflow:"clip",WebkitMaskImage:lt,WebkitMaskSize:ut,WebkitMaskPosition:"center, center, top left, top right, bottom right, bottom left",WebkitMaskRepeat:"no-repeat"},children:t})}function ft(){const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current}function pt(t){const{width:e,fontSize:n}=getComputedStyle(t);return parseFloat(e)/parseFloat(n)+"em"}S({"--invert-x":{correct:(t,{treeScale:e,projectionDelta:n})=>n.x.scale*e.x}});const yt=new WeakMap,dt=t.forwardRef(function({value:n,initialValue:r=n,...a},s){const{transition:o}=t.useContext(i),l=t.useRef(r).current,u=ft(),c=t.useRef(null),f=t.useRef(null);t.useImperativeHandle(s,()=>f.current,[]);const p=t.useRef(new Array(10)),y=C(),d=y?n:0;t.useLayoutEffect(()=>{c.current&&p.current[l]&&(c.current.style.width=pt(p.current[l]))},[]);const h=t.useRef(r);t.useLayoutEffect(()=>{var t;if(!c.current||d===h.current)return;const e=c.current.getBoundingClientRect(),n=null==(t=f.current)?void 0:t.getBoundingClientRect(),r=e.height*(d-h.current)+(e.top-(n?n.top||0:e.top));return nt(c.current,{y:[r,0]},o),()=>{h.current=d}},[d]);const[m,g]=t.useState();t.useEffect(()=>{if(u&&l===d)return;if(!p.current[d])return;const t=pt(p.current[d]);f.current&&yt.set(f.current,t),g(t)},[d]);const x=t=>e.jsx("span",{style:{display:"inline-block",padding:`calc(${at}/2) 0`},ref:e=>{p.current[t]=e},children:t},t);return e.jsx(D.span,{...a,ref:f,layout:"position","data-state":y?void 0:"exiting",style:{display:"inline-flex",justifyContent:"center",width:m},children:e.jsxs("span",{ref:c,style:{display:"inline-flex",justifyContent:"center",flexDirection:"column",alignItems:"center",position:"relative"},children:[0!==d&&e.jsx("span",{style:{...ht,bottom:"100%",left:0},children:new Array(d).fill(null).map((t,e)=>x(e))}),x(d),9!==d&&e.jsx("span",{style:{...ht,top:"100%",left:0},children:new Array(9-d).fill(null).map((t,e)=>x(d+e+1))})]})})}),ht={display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",width:"100%"},mt=t.createContext({justify:"left"}),gt=t.forwardRef(function({partKey:n,type:r,children:a,layoutDependency:s,...i},o){const l=C(),{justify:u}=t.useContext(mt);return e.jsx(D.span,{...i,"data-state":l?void 0:"exiting",style:{display:"inline-flex",justifyContent:u,padding:`calc(${at}/2) 0`,position:"relative"},layout:"position",layoutDependency:s,ref:o,children:e.jsx(R,{mode:"popLayout",anchorX:u,initial:!1,children:e.jsx(D.span,{layout:"right"===u&&"position",layoutDependency:s,initial:{opacity:0},animate:{opacity:[null,1]},exit:{opacity:[null,0]},style:{display:"inline-block",whiteSpace:"pre"},children:a},a)})})}),xt=t.forwardRef(function({parts:n,justify:r="left",mode:a,style:s,name:i,layoutDependency:o,...l},u){const c=t.useRef(null);t.useImperativeHandle(u,()=>c.current,[]);const f=t.useMemo(()=>({justify:r}),[r]),p=t.useRef(null),y=ft(),[d,h]=t.useState();return t.useEffect(()=>{if(!p.current)return;if(y)return void(c.current&&(c.current.style.width=pt(p.current)));const t=Array.from(p.current.children).map(t=>{if(!(t instanceof HTMLElement))return;if("exiting"===t.dataset.state){const e=t.nextSibling;return t.remove(),()=>{p.current&&p.current.insertBefore(t,e)}}const e=yt.get(t);if(!e)return;const n=t.style.width;return t.style.width=e,()=>{t.style.width=n}});h(pt(p.current));for(let e=t.length-1;e>=0;e--){const n=t[e];n&&n()}},[n.map(t=>t.value).join("")]),e.jsx(mt.Provider,{value:f,children:e.jsx(D.span,{layoutDependency:o,...l,ref:c,className:`number-section-${i}`,style:{...s,display:"inline-flex",justifyContent:r,width:d},children:e.jsxs("span",{ref:p,style:{display:"inline-flex",justifyContent:"inherit",position:"relative"},children:["​",e.jsx(R,{mode:a,anchorX:r,initial:!1,children:n.map(t=>"integer"===t.type||"fraction"===t.type?e.jsx(dt,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},value:t.value,initialValue:y?void 0:0,layoutDependency:o},t.key):e.jsx(gt,{type:t.type,partKey:t.key,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},layoutDependency:o,children:t.value},"literal"===t.type?`${t.key}:${t.value}`:t.key))})]})})})}),vt={opacity:{duration:1,ease:E},layout:{type:"spring",duration:1,bounce:0},y:{type:"spring",duration:1,bounce:0}},jt=t.forwardRef(function({children:n,locales:r,format:a,transition:s,style:o,suffix:l,prefix:u,...c},f){const p=t.useMemo(()=>((t,{locales:e,format:n},r,a)=>{const s=new Intl.NumberFormat(e,n).formatToParts(Number(t));r&&s.unshift({type:"prefix",value:r}),a&&s.push({type:"suffix",value:a});const i=[],o=[],l=[],u=[],c={},f=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let p="",y=!1,d=!1;for(const m of s){p+=m.value;const t="minusSign"===m.type||"plusSign"===m.type?"sign":m.type;switch(t){case"integer":y=!0,o.push(...m.value.split("").map(e=>({type:t,value:parseInt(e)})));break;case"group":o.push({type:t,value:m.value});break;case"decimal":d=!0,l.push({type:t,value:m.value,key:f(t)});break;case"fraction":l.push(...m.value.split("").map(e=>({type:t,value:parseInt(e),key:f(t)})));break;default:(y||d?u:i).push({type:t,value:m.value,key:f(t)})}}const h=[];for(let m=o.length-1;m>=0;m--)h.unshift({...o[m],key:f(o[m].type)});return{pre:i,integer:h,fraction:l,post:u,formatted:p}})(n,{locales:r,format:a},u,l),[n,r,a]),{pre:y,integer:d,fraction:h,post:m,formatted:g}=p,x=t.useContext(i).transition;s=s??x??vt;const{layoutDependency:v}=c,j=t.useMemo(()=>{if(void 0!==v)return{layoutDependency:v,value:n}},[v,n]);return e.jsx(I,{children:e.jsx(V,{transition:s,children:e.jsx(D.div,{...c,ref:f,layout:!0,layoutDependency:j,style:{lineHeight:1,...o,display:"inline-flex",isolation:"isolate",whiteSpace:"nowrap"},children:e.jsxs(D.div,{layout:!0,layoutDependency:j,"aria-label":g,style:{display:"inline-flex",direction:"ltr",isolation:"isolate",position:"relative",zIndex:-1},children:[e.jsx(xt,{style:{padding:`calc(${at}/2) 0`},layoutDependency:j,"aria-hidden":!0,justify:"right",mode:"popLayout",parts:y,name:"pre"}),e.jsxs(ct,{layoutDependency:j,children:[e.jsx(xt,{layoutDependency:j,justify:"right",parts:d,name:"integer"}),e.jsx(xt,{layout:"position",layoutDependency:j,parts:h,name:"fraction"})]}),e.jsx(xt,{style:{padding:`calc(${at}/2) 0`},"aria-hidden":!0,layout:"position",layoutDependency:j,mode:"popLayout",parts:m,name:"post"})]})})})})});function bt(t,e){return t.length>e.length||t.length>0&&!e.startsWith(t)}function wt(t,e,n){return t+(e-t)*n}D.create(t.Fragment);const At=new Set([".",",","!","?",":",";","'",'"',"-","(",")"]),kt=new Set(["!","@","#","$","%","^","&","*","(",")","_","+","{","}","|",":",'"',"<",">","?"]);const $t={slow:130,normal:75,fast:30};t.forwardRef(function({children:n="",as:r,speed:a="normal",variance:s="natural",cursorClassName:u="motion-typewriter-cursor",cursorStyle:c,cursorBlinkDuration:f=.5,onComplete:p,play:y=!0,"aria-label":d,textClassName:h,textStyle:m,replace:g="type",backspace:x="character",backspaceFactor:v=.2,...j},b){const w=r||"span",A=t.useRef(n),k=function(){const e=o(()=>l("")),{isStatic:n}=t.useContext(i);if(n){const[,n]=t.useState("");t.useEffect(()=>e.on("change",n),[])}return e}(),$=t.useRef(null),M=t.useRef(null),S=t.useRef(null),C="number"==typeof a?a:$t[a],R=()=>{var t;null==(t=$.current)||t.call($),$.current=null},I=()=>{M.current=nt(S.current,{opacity:[1,1,0,0]},{duration:f,times:[0,.5,.5,1],ease:"linear",repeat:1/0,repeatType:"reverse"})};return t.useEffect(()=>{"all"===g&&n!==A.current&&k.set(""),A.current=n},[n,g]),t.useEffect(()=>{var t;if(!y)return I(),void R();null==(t=M.current)||t.cancel();const e=()=>{const t=function(t,e,n,r){if("type"===n&&bt(t,e)){if("all"===r)return e.slice(0,function(t,e){const n=Math.min(t.length,e.length);let r=0;for(let a=0;a=0&&/\s/.test(t[n]);)n--;for(;n>=0&&!/\s/.test(t[n]);)n--;return Math.max(0,n+1)}(t,t.length);return t.slice(0,e)}return t.slice(0,-1)}return e.slice(0,t.length+1)}(k.get(),n,g,x);k.set(t),t!==n?r():(I(),null==p||p())},r=()=>{$.current=F(e,function(t,e,n,r,a){if(bt(e,t))return n*a;if("natural"===r)return function(t,e,n){const r=e.length,a=t[r],s=t[r-1];if(!a)return n;const i=t.slice(0,r).lastIndexOf(" "),o=r-i-1,l=i+1,u=t.slice(r).indexOf(" "),c=(-1===u?t.length:r+u)-l;let f=1;s&&/[.!?]/.test(s)&&" "===a&&(f*=3),c<=3?f*=.7:(0===o&&" "!==a&&(f*=1.5),o===c-1&&(f*=1.4)),o>0&&o3&&(f*=1-Math.min(o/c,.4)),At.has(a)&&(f*=1.5),kt.has(a)&&(f*=1.5),/\d/.test(a)&&(f*=1.3),c>8&&(f*=1.3),a!==a.toLowerCase()&&(f*=1.25),r>200&&(f*=1+Math.min((r-200)/1e3,.3)),f*=1+wt(-.25,.25,Math.random());const p=n*f;return Math.max(.2*n,p)}(t,e,n);if("number"==typeof r&&r>0){const t=n*(r/100);return n+wt(-t,t,Math.random())}return n}(n,k.get(),C,s,v))};return $.current||r(),R},[y,p,n,C,s,v,x]),e.jsxs(w,{ref:b,...j,"aria-label":d||n,children:[e.jsx(D.span,{className:h,style:m,children:k}),e.jsx(D.span,{ref:S,className:u,style:{display:"inline-block",width:"2px",height:"1em",backgroundColor:"currentColor",position:"relative",top:"0.1em",left:"0.2em",...c}})]})});export{jt as A}; diff --git a/frontend/dist/assets/info-Gfj05Fvi.js b/frontend/dist/assets/info-KKRXPMHC.js similarity index 68% rename from frontend/dist/assets/info-Gfj05Fvi.js rename to frontend/dist/assets/info-KKRXPMHC.js index a7149e86..dbd03355 100644 --- a/frontend/dist/assets/info-Gfj05Fvi.js +++ b/frontend/dist/assets/info-KKRXPMHC.js @@ -1 +1 @@ -import{c as e}from"./index-_WuEOacy.js";const c=e("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);export{c as I}; +import{c as e}from"./index-CrU_Ps9k.js";const c=e("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);export{c as I}; diff --git a/frontend/dist/assets/link-scoring-0iadiYJr.js b/frontend/dist/assets/link-scoring-CpsMpD17.js similarity index 96% rename from frontend/dist/assets/link-scoring-0iadiYJr.js rename to frontend/dist/assets/link-scoring-CpsMpD17.js index 52c1ed73..d71e5b07 100644 --- a/frontend/dist/assets/link-scoring-0iadiYJr.js +++ b/frontend/dist/assets/link-scoring-CpsMpD17.js @@ -1 +1 @@ -import{c as t,r as e,cq as n}from"./index-_WuEOacy.js";const o=t("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),a=t("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function s(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function r(t,o,a){const r=new Map;for(const n of o){const t=e(n);r.has(t)||r.set(t,n)}const c=new Map,h=new Map;for(const e of t){const t=e.route??e.route_type;if(!n(t))continue;const o=s(e.original_path);if(0===o.length)continue;const i=o.map(t=>t.toUpperCase());if(!e.transmitted&&i.length>=2){const t=i[i.length-2];if(t){const e=r.get(t);e&&h.set(e,(h.get(e)??0)+1)}}if(i.includes(a))for(const e of i){if(e===a)continue;const t=r.get(e);t&&c.set(t,(c.get(t)??0)+1)}}let i=0,f=0;for(const e of o)i=Math.max(i,c.get(e)??0),f=Math.max(f,h.get(e)??0);const p=new Map;let u=0,d=0,m=0;for(const e of o){const t=c.get(e)??0,n=h.get(e)??0,o=i>0?Math.round(t/i*100):0,a=f>0?Math.round(n/f*100):0,s=o+a;p.set(e,{hash:e,listenerCount:t,loudCount:n,listenerScore:o,loudScore:a,blendedScore:s}),u=Math.max(u,o),d=Math.max(d,a),m=Math.max(m,s)}return{scores:p,maxListenerScore:u,maxLoudScore:d,maxBlendedScore:m}}const c={YELLOW:"#FFB224",GREEN:"#46A758",RED:"#E5484D",GRAY:"#505050"};export{c as L,o as M,a as S,r as c}; +import{c as t,r as e,cq as n}from"./index-CrU_Ps9k.js";const o=t("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),a=t("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function s(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function r(t,o,a){const r=new Map;for(const n of o){const t=e(n);r.has(t)||r.set(t,n)}const c=new Map,h=new Map;for(const e of t){const t=e.route??e.route_type;if(!n(t))continue;const o=s(e.original_path);if(0===o.length)continue;const i=o.map(t=>t.toUpperCase());if(!e.transmitted&&i.length>=2){const t=i[i.length-2];if(t){const e=r.get(t);e&&h.set(e,(h.get(e)??0)+1)}}if(i.includes(a))for(const e of i){if(e===a)continue;const t=r.get(e);t&&c.set(t,(c.get(t)??0)+1)}}let i=0,f=0;for(const e of o)i=Math.max(i,c.get(e)??0),f=Math.max(f,h.get(e)??0);const p=new Map;let u=0,d=0,m=0;for(const e of o){const t=c.get(e)??0,n=h.get(e)??0,o=i>0?Math.round(t/i*100):0,a=f>0?Math.round(n/f*100):0,s=o+a;p.set(e,{hash:e,listenerCount:t,loudCount:n,listenerScore:o,loudScore:a,blendedScore:s}),u=Math.max(u,o),d=Math.max(d,a),m=Math.max(m,s)}return{scores:p,maxListenerScore:u,maxLoudScore:d,maxBlendedScore:m}}const c={YELLOW:"#FFB224",GREEN:"#46A758",RED:"#E5484D",GRAY:"#505050"};export{c as L,o as M,a as S,r as c}; diff --git a/frontend/dist/assets/loader-circle-E8BhCd6Y.js b/frontend/dist/assets/loader-circle-D6Apotf0.js similarity index 54% rename from frontend/dist/assets/loader-circle-E8BhCd6Y.js rename to frontend/dist/assets/loader-circle-D6Apotf0.js index 2c66995f..9a45a711 100644 --- a/frontend/dist/assets/loader-circle-E8BhCd6Y.js +++ b/frontend/dist/assets/loader-circle-D6Apotf0.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const e=a("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);export{e as L}; +import{c as a}from"./index-CrU_Ps9k.js";const e=a("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);export{e as L}; diff --git a/frontend/dist/assets/map-pin-yDOfK60-.js b/frontend/dist/assets/map-pin-BUNSWVCM.js similarity index 74% rename from frontend/dist/assets/map-pin-yDOfK60-.js rename to frontend/dist/assets/map-pin-BUNSWVCM.js index c539943a..c245f00d 100644 --- a/frontend/dist/assets/map-pin-yDOfK60-.js +++ b/frontend/dist/assets/map-pin-BUNSWVCM.js @@ -1 +1 @@ -import{c}from"./index-_WuEOacy.js";const r=c("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{r as M}; +import{c}from"./index-CrU_Ps9k.js";const r=c("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{r as M}; diff --git a/frontend/dist/assets/network-DFMZ0mT7.js b/frontend/dist/assets/network-BfZEswvU.js similarity index 83% rename from frontend/dist/assets/network-DFMZ0mT7.js rename to frontend/dist/assets/network-BfZEswvU.js index 402dd77a..97beca60 100644 --- a/frontend/dist/assets/network-DFMZ0mT7.js +++ b/frontend/dist/assets/network-BfZEswvU.js @@ -1 +1 @@ -import{c as e}from"./index-_WuEOacy.js";const t=e("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);export{t as N}; +import{c as e}from"./index-CrU_Ps9k.js";const t=e("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);export{t as N}; diff --git a/frontend/dist/assets/payload-decoders-BC60O4FC.js b/frontend/dist/assets/payload-decoders-N5zeG9av.js similarity index 98% rename from frontend/dist/assets/payload-decoders-BC60O4FC.js rename to frontend/dist/assets/payload-decoders-N5zeG9av.js index d560d493..84ddf13e 100644 --- a/frontend/dist/assets/payload-decoders-BC60O4FC.js +++ b/frontend/dist/assets/payload-decoders-N5zeG9av.js @@ -1 +1 @@ -var t=Object.defineProperty,e=(e,a,s)=>((e,a,s)=>a in e?t(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s)(e,"symbol"!=typeof a?a+"":a,s);import{a3 as a,bo as s,bp as r,bq as n,br as h,ab as i,bs as o,bt as p,bu as c,bv as l,bw as u,bx as d,by as y,bg as g,bz as f,bA as m,bB as b,bC as x,bD as T,bE as C,bF as H,bG as w,bH as S,bI as L,bJ as N,bK as A,bL as $,bM as _,bN as F,bO as U,bP as V,bQ as D,bR as v,bS as k,bT as B,bU as E,bV as P,bW as j,bX as O,bY as I,bZ as K,b_ as M,b$ as R,c0 as W,c1 as q,c2 as z,c3 as G,c4 as J,c5 as Q,c6 as X}from"./index-_WuEOacy.js";class Y{constructor(){e(this,"header",0),e(this,"transportCodes",[0,0]),e(this,"pathLen",0),e(this,"path",new Uint8Array(0)),e(this,"payload",new Uint8Array(0)),e(this,"decrypted",{}),e(this,"_rssi",0),e(this,"_snr",0)}static fromBytes(t){const e=new Y;try{return e.readFrom(t),{success:!0,packet:e}}catch(a){return{success:!1,error:a instanceof Error?a.message:String(a)}}}static fromHex(t){try{const e=a(t);return Y.fromBytes(e)}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e)}}}get routeType(){return this.header&s}get routeTypeName(){return r[this.routeType]??`UNKNOWN(${this.routeType})`}get payloadType(){return this.header>>n&h}get payloadTypeName(){return i[this.payloadType]??`UNKNOWN(${this.payloadType})`}get payloadVersion(){return this.header>>o&p}hasTransportCodes(){return c(this.routeType)}isFlood(){return l(this.routeType)}isDirect(){return u(this.routeType)}get pathBytes(){return Array.from(this.path)}get pathString(){return d(this.path)}get pathHexArray(){return Array.from(this.path).map(t=>y(t,!0))}get payloadLen(){return this.payload.length}get payloadHex(){return g(this.payload,!0)}getPayloadAppData(){const t=L+N+A;return this.payload.length>=t?this.payload.slice(t):new Uint8Array(0)}get rssi(){return this._rssi}set rssi(t){this._rssi=t}get snr(){return this._snr}set snr(t){this._snr=t}readFrom(t){let e=0;const a=t.length;f(e,1,a,"Missing header byte"),this.header=t[e++];const s=this.payloadVersion;if(s>m)throw new Error(`Unsupported packet version: ${s}`);if(this.hasTransportCodes()?(f(e,4,a,"Missing transport codes"),this.transportCodes=[b(t,e),b(t,e+2)],e+=4):this.transportCodes=[0,0],f(e,1,a,"Missing path_len"),this.pathLen=t[e++],this.pathLen>x)throw new Error(`path_len too large: ${this.pathLen} > ${x}`);return f(e,this.pathLen,a,"Truncated path"),this.path=t.slice(e,e+this.pathLen),e+=this.pathLen,this.payload=t.slice(e),T(this.payload.length),!0}writeTo(){let t=1;this.hasTransportCodes()&&(t+=4),t+=1,t+=this.path.length,t+=this.payload.length;const e=new Uint8Array(t);let a=0;return e[a++]=this.header,this.hasTransportCodes()&&(C(this.transportCodes[0],e,a),C(this.transportCodes[1],e,a+2),a+=4),e[a++]=this.path.length,e.set(this.path,a),a+=this.path.length,e.set(this.payload,a),e}toHex(){return g(this.writeTo(),!0)}async calculateHash(){return H(this.payloadType,this.pathLen,this.payload)}async calculateHashString(t){return w(this.payloadType,this.pathLen,this.payload,t)}async calculateCRC(){return S(this.payloadType,this.pathLen,this.payload)}getRawLength(){let t=2+this.pathLen+this.payload.length;return this.hasTransportCodes()&&(t+=4),t}getSummary(){return{header:y(this.header,!0),routeType:this.routeTypeName,payloadType:this.payloadTypeName,version:this.payloadVersion,pathLen:this.pathLen,pathStr:this.pathString,transportCodes:this.hasTransportCodes()?[this.transportCodes[0].toString(16).toUpperCase().padStart(4,"0"),this.transportCodes[1].toString(16).toUpperCase().padStart(4,"0")]:null,payloadLen:this.payload.length,payloadHex:this.payloadHex,rawLength:this.getRawLength()}}toString(){const t=[`[${this.routeTypeName}/${this.payloadTypeName} v${this.payloadVersion}]`,`path=${this.pathString||"(empty)"}`,`payload=${this.payload.length}B`];return this.hasTransportCodes()&&t.push(`transport=[${this.transportCodes[0]},${this.transportCodes[1]}]`),t.join(" ")}}function Z(t){const e=L+N+A+1;if(t.lengtha&&(p.name=(new TextDecoder).decode(t.slice(a,e)))}return p}function tt(t,e){const a=function(t){if(t.length<9)return{type:"trace",traceTag:"00000000",traceTagValue:0,authCode:0,flags:0,pathHashes:[],pathString:"",snrValues:[],isComplete:!1,path:[],targetHash:""};const e=$(t,0),a=e.toString(16).toUpperCase().padStart(8,"0"),s=$(t,4),r=t[8],n=t.slice(9),h=Array.from(n).map(t=>y(t,!0)),i=h.join("->");return{type:"trace",traceTag:a,traceTagValue:e,authCode:s,flags:r,pathHashes:h,pathString:i,snrValues:[],isComplete:!1,path:h,targetHash:h.length>0?h[0]:""}}(t);if(!a)return null;const s=[],r=e instanceof Uint8Array?Array.from(e):e;for(let h=0;h127&&(t-=256),s.push(t/4)}const n=s.length>=a.pathHashes.length;return{...a,snrValues:s,isComplete:n}}async function et(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3),n={type:"grp_txt",channelHash:a,text:g(r),decrypted:!1,ciphertextHex:g(r),macHex:g(s)};try{const t=await W(e,s,r);if(t&&t.plaintext.length>=5){n.channelName=t.channelName;const e=t.plaintext,a=$(e,0),s=e[4],r=new TextDecoder("utf-8",{fatal:!1}).decode(e.slice(5)).replace(/\uFFFD/g,"").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,"").replace(/\x00+$/,"").trim();n.decrypted=!0,n.isPublicHashChannel=!0,n.timestamp=a,n.flags=s,t.macCorrupted&&(n.macCorrupted=!0);const h=r.indexOf(": ");h>0?(n.senderName=r.slice(0,h),n.text=r.slice(h+2)):n.text=r}else{const t=await q(e);n.isPublicHashChannel=t.length>0}}catch{}return n}async function at(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3),n={type:"grp_data",channelHash:a,dataHex:g(r),dataLength:r.length,decrypted:!1,macHex:g(s)};try{const t=await W(e,s,r);t&&(n.channelName=t.channelName,n.decrypted=!0,n.decryptedHex=g(t.plaintext))}catch{}return n}function st(t,e,a){return{type:"generic",payloadType:e,payloadTypeName:a,rawHex:g(t),length:t.length}}function rt(t){const{payload:e,payloadType:a,payloadTypeName:s}=t;switch(a){case R:return Z(e)??st(e,a,s);case M:return function(t){if(t.length<4)return null;const e=$(t,0);return{type:"ack",crc:e.toString(16).toUpperCase().padStart(8,"0"),crcValue:e}}(e)??st(e,a,s);case K:return function(t){if(0===t.length)return{type:"path",path:[],pathString:""};const e=Array.from(t).map(t=>y(t,!0)),a=e.join("->");return{type:"path",path:e,pathString:a}}(e)??st(e,a,s);case I:return tt(e,t.path)??st(e,a,s);case O:return function(t){if(t.length<2)return null;const e=y(t[0],!0),a=y(t[1],!0),s=t.slice(2);let r="",n=!0;try{const t=new TextDecoder("utf-8",{fatal:!0}).decode(s);/^[\x20-\x7E\u00A0-\uFFFF\n\r\t]*$/.test(t)&&(r=t,n=!1)}catch{}return n&&(r=g(s)),{type:"txt_msg",destHash:e,srcHash:a,timestamp:0,text:r,encrypted:n}}(e)??st(e,a,s);case j:return function(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3);return{type:"grp_txt",channelHash:a,text:g(r),decrypted:!1,ciphertextHex:g(r),macHex:g(s)}}(e)??st(e,a,s);case P:return function(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3);return{type:"grp_data",channelHash:a,dataHex:g(r),dataLength:r.length,decrypted:!1,macHex:g(s)}}(e)??st(e,a,s);case E:return function(t){return t.length<4?null:{type:"multipart",messageId:g(t.slice(0,2)),partNumber:t[2],totalParts:t[3],partData:g(t.slice(4))}}(e)??st(e,a,s);default:return st(e,a,s)}}export{Y as P,tt as a,et as b,at as c,rt as d,Z as e}; +var t=Object.defineProperty,e=(e,a,s)=>((e,a,s)=>a in e?t(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s)(e,"symbol"!=typeof a?a+"":a,s);import{a3 as a,bo as s,bp as r,bq as n,br as h,ab as i,bs as o,bt as p,bu as c,bv as l,bw as u,bx as d,by as y,bg as g,bz as f,bA as m,bB as b,bC as x,bD as T,bE as C,bF as H,bG as w,bH as S,bI as L,bJ as N,bK as A,bL as $,bM as _,bN as F,bO as U,bP as V,bQ as D,bR as v,bS as k,bT as B,bU as E,bV as P,bW as j,bX as O,bY as I,bZ as K,b_ as M,b$ as R,c0 as W,c1 as q,c2 as z,c3 as G,c4 as J,c5 as Q,c6 as X}from"./index-CrU_Ps9k.js";class Y{constructor(){e(this,"header",0),e(this,"transportCodes",[0,0]),e(this,"pathLen",0),e(this,"path",new Uint8Array(0)),e(this,"payload",new Uint8Array(0)),e(this,"decrypted",{}),e(this,"_rssi",0),e(this,"_snr",0)}static fromBytes(t){const e=new Y;try{return e.readFrom(t),{success:!0,packet:e}}catch(a){return{success:!1,error:a instanceof Error?a.message:String(a)}}}static fromHex(t){try{const e=a(t);return Y.fromBytes(e)}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e)}}}get routeType(){return this.header&s}get routeTypeName(){return r[this.routeType]??`UNKNOWN(${this.routeType})`}get payloadType(){return this.header>>n&h}get payloadTypeName(){return i[this.payloadType]??`UNKNOWN(${this.payloadType})`}get payloadVersion(){return this.header>>o&p}hasTransportCodes(){return c(this.routeType)}isFlood(){return l(this.routeType)}isDirect(){return u(this.routeType)}get pathBytes(){return Array.from(this.path)}get pathString(){return d(this.path)}get pathHexArray(){return Array.from(this.path).map(t=>y(t,!0))}get payloadLen(){return this.payload.length}get payloadHex(){return g(this.payload,!0)}getPayloadAppData(){const t=L+N+A;return this.payload.length>=t?this.payload.slice(t):new Uint8Array(0)}get rssi(){return this._rssi}set rssi(t){this._rssi=t}get snr(){return this._snr}set snr(t){this._snr=t}readFrom(t){let e=0;const a=t.length;f(e,1,a,"Missing header byte"),this.header=t[e++];const s=this.payloadVersion;if(s>m)throw new Error(`Unsupported packet version: ${s}`);if(this.hasTransportCodes()?(f(e,4,a,"Missing transport codes"),this.transportCodes=[b(t,e),b(t,e+2)],e+=4):this.transportCodes=[0,0],f(e,1,a,"Missing path_len"),this.pathLen=t[e++],this.pathLen>x)throw new Error(`path_len too large: ${this.pathLen} > ${x}`);return f(e,this.pathLen,a,"Truncated path"),this.path=t.slice(e,e+this.pathLen),e+=this.pathLen,this.payload=t.slice(e),T(this.payload.length),!0}writeTo(){let t=1;this.hasTransportCodes()&&(t+=4),t+=1,t+=this.path.length,t+=this.payload.length;const e=new Uint8Array(t);let a=0;return e[a++]=this.header,this.hasTransportCodes()&&(C(this.transportCodes[0],e,a),C(this.transportCodes[1],e,a+2),a+=4),e[a++]=this.path.length,e.set(this.path,a),a+=this.path.length,e.set(this.payload,a),e}toHex(){return g(this.writeTo(),!0)}async calculateHash(){return H(this.payloadType,this.pathLen,this.payload)}async calculateHashString(t){return w(this.payloadType,this.pathLen,this.payload,t)}async calculateCRC(){return S(this.payloadType,this.pathLen,this.payload)}getRawLength(){let t=2+this.pathLen+this.payload.length;return this.hasTransportCodes()&&(t+=4),t}getSummary(){return{header:y(this.header,!0),routeType:this.routeTypeName,payloadType:this.payloadTypeName,version:this.payloadVersion,pathLen:this.pathLen,pathStr:this.pathString,transportCodes:this.hasTransportCodes()?[this.transportCodes[0].toString(16).toUpperCase().padStart(4,"0"),this.transportCodes[1].toString(16).toUpperCase().padStart(4,"0")]:null,payloadLen:this.payload.length,payloadHex:this.payloadHex,rawLength:this.getRawLength()}}toString(){const t=[`[${this.routeTypeName}/${this.payloadTypeName} v${this.payloadVersion}]`,`path=${this.pathString||"(empty)"}`,`payload=${this.payload.length}B`];return this.hasTransportCodes()&&t.push(`transport=[${this.transportCodes[0]},${this.transportCodes[1]}]`),t.join(" ")}}function Z(t){const e=L+N+A+1;if(t.lengtha&&(p.name=(new TextDecoder).decode(t.slice(a,e)))}return p}function tt(t,e){const a=function(t){if(t.length<9)return{type:"trace",traceTag:"00000000",traceTagValue:0,authCode:0,flags:0,pathHashes:[],pathString:"",snrValues:[],isComplete:!1,path:[],targetHash:""};const e=$(t,0),a=e.toString(16).toUpperCase().padStart(8,"0"),s=$(t,4),r=t[8],n=t.slice(9),h=Array.from(n).map(t=>y(t,!0)),i=h.join("->");return{type:"trace",traceTag:a,traceTagValue:e,authCode:s,flags:r,pathHashes:h,pathString:i,snrValues:[],isComplete:!1,path:h,targetHash:h.length>0?h[0]:""}}(t);if(!a)return null;const s=[],r=e instanceof Uint8Array?Array.from(e):e;for(let h=0;h127&&(t-=256),s.push(t/4)}const n=s.length>=a.pathHashes.length;return{...a,snrValues:s,isComplete:n}}async function et(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3),n={type:"grp_txt",channelHash:a,text:g(r),decrypted:!1,ciphertextHex:g(r),macHex:g(s)};try{const t=await W(e,s,r);if(t&&t.plaintext.length>=5){n.channelName=t.channelName;const e=t.plaintext,a=$(e,0),s=e[4],r=new TextDecoder("utf-8",{fatal:!1}).decode(e.slice(5)).replace(/\uFFFD/g,"").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,"").replace(/\x00+$/,"").trim();n.decrypted=!0,n.isPublicHashChannel=!0,n.timestamp=a,n.flags=s,t.macCorrupted&&(n.macCorrupted=!0);const h=r.indexOf(": ");h>0?(n.senderName=r.slice(0,h),n.text=r.slice(h+2)):n.text=r}else{const t=await q(e);n.isPublicHashChannel=t.length>0}}catch{}return n}async function at(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3),n={type:"grp_data",channelHash:a,dataHex:g(r),dataLength:r.length,decrypted:!1,macHex:g(s)};try{const t=await W(e,s,r);t&&(n.channelName=t.channelName,n.decrypted=!0,n.decryptedHex=g(t.plaintext))}catch{}return n}function st(t,e,a){return{type:"generic",payloadType:e,payloadTypeName:a,rawHex:g(t),length:t.length}}function rt(t){const{payload:e,payloadType:a,payloadTypeName:s}=t;switch(a){case R:return Z(e)??st(e,a,s);case M:return function(t){if(t.length<4)return null;const e=$(t,0);return{type:"ack",crc:e.toString(16).toUpperCase().padStart(8,"0"),crcValue:e}}(e)??st(e,a,s);case K:return function(t){if(0===t.length)return{type:"path",path:[],pathString:""};const e=Array.from(t).map(t=>y(t,!0)),a=e.join("->");return{type:"path",path:e,pathString:a}}(e)??st(e,a,s);case I:return tt(e,t.path)??st(e,a,s);case O:return function(t){if(t.length<2)return null;const e=y(t[0],!0),a=y(t[1],!0),s=t.slice(2);let r="",n=!0;try{const t=new TextDecoder("utf-8",{fatal:!0}).decode(s);/^[\x20-\x7E\u00A0-\uFFFF\n\r\t]*$/.test(t)&&(r=t,n=!1)}catch{}return n&&(r=g(s)),{type:"txt_msg",destHash:e,srcHash:a,timestamp:0,text:r,encrypted:n}}(e)??st(e,a,s);case j:return function(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3);return{type:"grp_txt",channelHash:a,text:g(r),decrypted:!1,ciphertextHex:g(r),macHex:g(s)}}(e)??st(e,a,s);case P:return function(t){if(t.length<4)return null;const e=t[0],a=y(e,!0),s=t.slice(1,3),r=t.slice(3);return{type:"grp_data",channelHash:a,dataHex:g(r),dataLength:r.length,decrypted:!1,macHex:g(s)}}(e)??st(e,a,s);case E:return function(t){return t.length<4?null:{type:"multipart",messageId:g(t.slice(0,2)),partNumber:t[2],totalParts:t[3],partData:g(t.slice(4))}}(e)??st(e,a,s);default:return st(e,a,s)}}export{Y as P,tt as a,et as b,at as c,rt as d,Z as e}; diff --git a/frontend/dist/assets/ping-BaWqaU2w.js b/frontend/dist/assets/ping-t2L803PH.js similarity index 94% rename from frontend/dist/assets/ping-BaWqaU2w.js rename to frontend/dist/assets/ping-t2L803PH.js index 01de8359..c609d143 100644 --- a/frontend/dist/assets/ping-BaWqaU2w.js +++ b/frontend/dist/assets/ping-t2L803PH.js @@ -1 +1 @@ -import{c7 as t}from"./index-_WuEOacy.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p}; +import{c7 as t}from"./index-CrU_Ps9k.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p}; diff --git a/frontend/dist/assets/refresh-cw-J1p21ufp.js b/frontend/dist/assets/refresh-cw-C1m-5omb.js similarity index 79% rename from frontend/dist/assets/refresh-cw-J1p21ufp.js rename to frontend/dist/assets/refresh-cw-C1m-5omb.js index 50d8bcf3..4a402281 100644 --- a/frontend/dist/assets/refresh-cw-J1p21ufp.js +++ b/frontend/dist/assets/refresh-cw-C1m-5omb.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const e=a("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{e as R}; +import{c as a}from"./index-CrU_Ps9k.js";const e=a("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{e as R}; diff --git a/frontend/dist/assets/route-C2p1jL3a.js b/frontend/dist/assets/route-BsYhRSod.js similarity index 92% rename from frontend/dist/assets/route-C2p1jL3a.js rename to frontend/dist/assets/route-BsYhRSod.js index e98a1448..5b1e2c5a 100644 --- a/frontend/dist/assets/route-C2p1jL3a.js +++ b/frontend/dist/assets/route-BsYhRSod.js @@ -1 +1 @@ -import{c as y}from"./index-_WuEOacy.js";const a=y("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),e=y("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),l=y("route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);export{a as H,e as L,l as R}; +import{c as y}from"./index-CrU_Ps9k.js";const a=y("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),e=y("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),l=y("route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);export{a as H,e as L,l as R}; diff --git a/frontend/dist/assets/settings-2-DSst-qFC.js b/frontend/dist/assets/settings-2-D7yA0852.js similarity index 73% rename from frontend/dist/assets/settings-2-DSst-qFC.js rename to frontend/dist/assets/settings-2-D7yA0852.js index 6a1fbd9d..a3107ed2 100644 --- a/frontend/dist/assets/settings-2-DSst-qFC.js +++ b/frontend/dist/assets/settings-2-D7yA0852.js @@ -1 +1 @@ -import{c}from"./index-_WuEOacy.js";const e=c("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);export{e as S}; +import{c}from"./index-CrU_Ps9k.js";const e=c("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);export{e as S}; diff --git a/frontend/dist/assets/target-SwsSSLmm.js b/frontend/dist/assets/target-DsO2pqIH.js similarity index 80% rename from frontend/dist/assets/target-SwsSSLmm.js rename to frontend/dist/assets/target-DsO2pqIH.js index a0558689..6f9adfaa 100644 --- a/frontend/dist/assets/target-SwsSSLmm.js +++ b/frontend/dist/assets/target-DsO2pqIH.js @@ -1 +1 @@ -import{c}from"./index-_WuEOacy.js";const r=c("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),e=c("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);export{r as S,e as T}; +import{c}from"./index-CrU_Ps9k.js";const r=c("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),e=c("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);export{r as S,e as T}; diff --git a/frontend/dist/assets/triangle-alert-aHb4szMy.js b/frontend/dist/assets/triangle-alert-DrmOKr32.js similarity index 75% rename from frontend/dist/assets/triangle-alert-aHb4szMy.js rename to frontend/dist/assets/triangle-alert-DrmOKr32.js index e431ae20..1e722005 100644 --- a/frontend/dist/assets/triangle-alert-aHb4szMy.js +++ b/frontend/dist/assets/triangle-alert-DrmOKr32.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const e=a("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);export{e as T}; +import{c as a}from"./index-CrU_Ps9k.js";const e=a("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);export{e as T}; diff --git a/frontend/dist/assets/users-DMMZTLQq.js b/frontend/dist/assets/users-DHRSX58V.js similarity index 87% rename from frontend/dist/assets/users-DMMZTLQq.js rename to frontend/dist/assets/users-DHRSX58V.js index fe49fd88..8897cf0c 100644 --- a/frontend/dist/assets/users-DMMZTLQq.js +++ b/frontend/dist/assets/users-DHRSX58V.js @@ -1 +1 @@ -import{c as a}from"./index-_WuEOacy.js";const e=a("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),s=a("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);export{e as F,s as U}; +import{c as a}from"./index-CrU_Ps9k.js";const e=a("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),s=a("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);export{e as F,s as U}; diff --git a/frontend/dist/index.html b/frontend/dist/index.html index ca8c9e85..1a5a8959 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -39,7 +39,7 @@ --font-data: 'JetBrains Mono', 'SF Mono', Monaco, monospace; } - + diff --git a/frontend/package.json b/frontend/package.json index 69785ca0..48280382 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "pymc_console", - "version": "0.9.218", + "version": "0.9.219", "description": "Vite + React Dashboard for pyMC_Repeater", "private": true, "type": "module",