vanilla-breeze 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/custom-elements.json +6768 -6425
  2. package/dist/cdn/components/settings-panel.js +1 -1
  3. package/dist/cdn/themes/8bit.tokens.json +1 -1
  4. package/dist/cdn/themes/alpha1999-dark.tokens.json +1 -1
  5. package/dist/cdn/themes/alpha1999.tokens.json +1 -1
  6. package/dist/cdn/themes/art-deco-dark.tokens.json +1 -1
  7. package/dist/cdn/themes/art-deco.tokens.json +1 -1
  8. package/dist/cdn/themes/bauhaus-dark.tokens.json +1 -1
  9. package/dist/cdn/themes/bauhaus.tokens.json +1 -1
  10. package/dist/cdn/themes/brutalist-dark.tokens.json +1 -1
  11. package/dist/cdn/themes/brutalist.tokens.json +1 -1
  12. package/dist/cdn/themes/catppuccin-frappe.tokens.json +1 -1
  13. package/dist/cdn/themes/catppuccin-latte-dark.tokens.json +1 -1
  14. package/dist/cdn/themes/catppuccin-latte.tokens.json +1 -1
  15. package/dist/cdn/themes/catppuccin-macchiato.tokens.json +1 -1
  16. package/dist/cdn/themes/catppuccin-mocha.tokens.json +1 -1
  17. package/dist/cdn/themes/classic-dark.tokens.json +1 -1
  18. package/dist/cdn/themes/classic.tokens.json +1 -1
  19. package/dist/cdn/themes/claymorphism-dark.tokens.json +1 -1
  20. package/dist/cdn/themes/claymorphism.tokens.json +1 -1
  21. package/dist/cdn/themes/clinical-dark.tokens.json +1 -1
  22. package/dist/cdn/themes/clinical.tokens.json +1 -1
  23. package/dist/cdn/themes/cottagecore-dark.tokens.json +1 -1
  24. package/dist/cdn/themes/cottagecore.tokens.json +1 -1
  25. package/dist/cdn/themes/cyber.tokens.json +1 -1
  26. package/dist/cdn/themes/dawn-dark.tokens.json +1 -1
  27. package/dist/cdn/themes/dawn.tokens.json +1 -1
  28. package/dist/cdn/themes/dracula.tokens.json +1 -1
  29. package/dist/cdn/themes/dusk.tokens.json +1 -1
  30. package/dist/cdn/themes/editorial-dark.tokens.json +1 -1
  31. package/dist/cdn/themes/editorial.tokens.json +1 -1
  32. package/dist/cdn/themes/financial-dark.tokens.json +1 -1
  33. package/dist/cdn/themes/financial.tokens.json +1 -1
  34. package/dist/cdn/themes/genai.tokens.json +1 -1
  35. package/dist/cdn/themes/glassmorphism-dark.tokens.json +1 -1
  36. package/dist/cdn/themes/glassmorphism.tokens.json +1 -1
  37. package/dist/cdn/themes/government-dark.tokens.json +1 -1
  38. package/dist/cdn/themes/government.tokens.json +1 -1
  39. package/dist/cdn/themes/gruvbox-dark.tokens.json +1 -1
  40. package/dist/cdn/themes/gruvbox.tokens.json +1 -1
  41. package/dist/cdn/themes/high-noon-dark.tokens.json +1 -1
  42. package/dist/cdn/themes/high-noon.tokens.json +1 -1
  43. package/dist/cdn/themes/journal-dark.tokens.json +1 -1
  44. package/dist/cdn/themes/journal.tokens.json +1 -1
  45. package/dist/cdn/themes/kawaii-dark.tokens.json +1 -1
  46. package/dist/cdn/themes/kawaii.tokens.json +1 -1
  47. package/dist/cdn/themes/magna-dark.tokens.json +1 -1
  48. package/dist/cdn/themes/magna.tokens.json +1 -1
  49. package/dist/cdn/themes/midnight.tokens.json +1 -1
  50. package/dist/cdn/themes/minimal-dark.tokens.json +1 -1
  51. package/dist/cdn/themes/minimal.tokens.json +1 -1
  52. package/dist/cdn/themes/modern-dark.tokens.json +1 -1
  53. package/dist/cdn/themes/modern.tokens.json +1 -1
  54. package/dist/cdn/themes/nes-dark.tokens.json +1 -1
  55. package/dist/cdn/themes/nes.tokens.json +1 -1
  56. package/dist/cdn/themes/neumorphism-dark.tokens.json +1 -1
  57. package/dist/cdn/themes/neumorphism.tokens.json +1 -1
  58. package/dist/cdn/themes/nord-dark.tokens.json +1 -1
  59. package/dist/cdn/themes/nord.tokens.json +1 -1
  60. package/dist/cdn/themes/organic-dark.tokens.json +1 -1
  61. package/dist/cdn/themes/organic.tokens.json +1 -1
  62. package/dist/cdn/themes/rose-pine-dark.tokens.json +1 -1
  63. package/dist/cdn/themes/rose-pine.tokens.json +1 -1
  64. package/dist/cdn/themes/rough-dark.tokens.json +1 -1
  65. package/dist/cdn/themes/rough.tokens.json +1 -1
  66. package/dist/cdn/themes/solarized-dark.tokens.json +1 -1
  67. package/dist/cdn/themes/solarized.tokens.json +1 -1
  68. package/dist/cdn/themes/startup-dark.tokens.json +1 -1
  69. package/dist/cdn/themes/startup.tokens.json +1 -1
  70. package/dist/cdn/themes/super2026-dark.tokens.json +1 -1
  71. package/dist/cdn/themes/super2026.tokens.json +1 -1
  72. package/dist/cdn/themes/swiss-dark.tokens.json +1 -1
  73. package/dist/cdn/themes/swiss.tokens.json +1 -1
  74. package/dist/cdn/themes/terminal.tokens.json +1 -1
  75. package/dist/cdn/themes/tokyo-night-dark.tokens.json +1 -1
  76. package/dist/cdn/themes/tokyo-night.tokens.json +1 -1
  77. package/dist/cdn/themes/vaporwave-dark.tokens.json +1 -1
  78. package/dist/cdn/themes/vaporwave.tokens.json +1 -1
  79. package/dist/cdn/themes/win9x-dark.tokens.json +1 -1
  80. package/dist/cdn/themes/win9x.tokens.json +1 -1
  81. package/dist/cdn/vanilla-breeze-autoload.js +1 -1
  82. package/dist/cdn/vanilla-breeze-core.css +1 -1
  83. package/dist/cdn/vanilla-breeze-core.js +1 -1
  84. package/dist/cdn/vanilla-breeze.css +1 -1
  85. package/dist/cdn/vanilla-breeze.js +1 -1
  86. package/package.json +3 -3
@@ -713,7 +713,7 @@ svg {
713
713
  border: 1px solid ButtonText;
714
714
  }
715
715
  }
716
- `,os=null;function hg(s){if("adoptedStyleSheets"in s&&typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype)return os||(os=new CSSStyleSheet,os.replaceSync(ug)),s.adoptedStyleSheets.includes(os)||(s.adoptedStyleSheets=[...s.adoptedStyleSheets,os]),null;let t=document.createElement("style");return t.textContent=ug,t}yc();S();var wc="http://www.w3.org/2000/svg",H1={map:"Map","map-of":"Map of {name}",activate:"Activate interactive map",consent:"Load map","consent-note":"Loads map images from {host}","zoom-in":"Zoom in","zoom-out":"Zoom out",recenter:"Recenter map",exit:"Exit map",controls:"Map controls",instructions:"Drag or use the arrow keys to pan. Click a point to centre on it. Pinch, scroll, or press plus and minus to zoom. Home recentres. Escape exits.",moved:"Map centred on {lat}, {lng}, zoom {zoom}","error-coords":"Map location unavailable","error-tiles":"Map images failed to load"},z1=0;function U1(){let s=document.createElement("div");s.setAttribute("part","marker"),s.setAttribute("aria-hidden","true");let t=document.createElementNS(wc,"svg");t.setAttribute("viewBox","0 0 24 36"),t.setAttribute("focusable","false");let e=document.createElementNS(wc,"path");e.setAttribute("class","pin"),e.setAttribute("d","M12 0C5.373 0 0 5.373 0 12c0 9 12 24 12 24s12-15 12-24C24 5.373 18.627 0 12 0z");let i=document.createElementNS(wc,"circle");return i.setAttribute("class","dot"),i.setAttribute("cx","12"),i.setAttribute("cy","12"),i.setAttribute("r","5"),t.append(e,i),s.append(t),s}function at(s,t={},e){let i=document.createElement(s);for(let[n,r]of Object.entries(t))i.setAttribute(n,r);return e!=null&&(i.textContent=e),i}function mg(s){return!s||typeof s!="string"?!1:typeof CSS<"u"&&CSS.supports("color",s)}var Ec=class extends w{static get observedAttributes(){return["lat","lng","zoom","marker","marker-color","provider","tile-url","interactive","static-only","src","place","label","attribution","attribution-href","loading"]}#t=null;#e=null;#i=0;#n=!1;#s=!1;#r=!1;#a=!1;#o=!1;#c=`geo-map-${++z1}`;#l=null;#u="";#h=new Map;#d="";#p=null;#b=0;#f=null;#g=null;#m=()=>this.#N();#w=0;#A="osm";constructor(){super(),this.attachShadow({mode:"open"})}get lat(){return parseFloat(this.getAttribute("lat")??"")}get lng(){return parseFloat(this.getAttribute("lng")??"")}get zoom(){let t=parseInt(this.getAttribute("zoom")??"",10);return t>=1&&t<=19?t:15}get showMarker(){return this.getAttribute("marker")!=="false"}get markerColor(){let t=this.getAttribute("marker-color");return mg(t)?t:""}get provider(){let t=this.getAttribute("provider");return t&&(t in oe||t==="carto-auto")?t:"osm"}get tileUrl(){return this.getAttribute("tile-url")||""}get interactive(){let t=this.getAttribute("interactive");return t==="eager"||t==="none"?t:"click"}get staticOnly(){return this.hasAttribute("static-only")}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="consent"?t:"lazy"}get active(){return this.#t!==null}#y(t,e={}){return(this.getAttribute(`data-label-${t}`)??H1[t]??"").replace(/\{(\w+)\}/g,(n,r)=>r in e?String(e[r]):n)}get#v(){return this.interactive!=="none"&&!this.staticOnly}get#S(){return this.loading==="consent"&&!this.#s}#E(){let t=this.provider;if(t!=="carto-auto")return t;let e=this.closest("[data-mode]")?.getAttribute("data-mode");return e==="dark"?"carto-dark":e==="light"?"carto-light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"carto-dark":"carto-light"}#x(){if(this.tileUrl)try{return new URL(this.tileUrl.replace(/\{s\}/g,"a"),location.href).origin}catch{return""}return(oe[this.#A]??oe.osm).origin}#k(){let t=parseFloat(this.getAttribute("lat")??""),e=parseFloat(this.getAttribute("lng")??"");if(!isNaN(t)&&!isNaN(e))return{lat:t,lng:e};let i=this.getAttribute("src");if(i){let o=this.#C(i);if(o)return o}let n=this.querySelector("address[data-lat][data-lng]");if(n){let o=parseFloat(n.dataset.lat??""),l=parseFloat(n.dataset.lng??"");if(!isNaN(o)&&!isNaN(l))return{lat:o,lng:l}}let r=this.getAttribute("place");if(r){let o=this.#L(r);if(o)return o}let a=document.querySelector('meta[name="geo.position"]');if(a){let l=(a.getAttribute("content")||"").split(";");if(l.length===2){let c=parseFloat(l[0]),u=parseFloat(l[1]);if(!isNaN(c)&&!isNaN(u))return{lat:c,lng:u}}}return null}#C(t){let e=document.getElementById(t);if(!e)return null;if(e.tagName==="ADDRESS"&&e.dataset.lat&&e.dataset.lng){let i=parseFloat(e.dataset.lat),n=parseFloat(e.dataset.lng);if(!isNaN(i)&&!isNaN(n))return{lat:i,lng:n}}return e.tagName==="SCRIPT"&&e.type==="application/ld+json"?this.#T(e):null}#L(t){let e=document.querySelectorAll('script[type="application/ld+json"]');for(let i of e)try{let n=JSON.parse(i.textContent);if(n.name===t){let r=n.geo;if(r){let a=parseFloat(r.latitude),o=parseFloat(r.longitude);if(!isNaN(a)&&!isNaN(o))return{lat:a,lng:o}}}}catch{}return null}#T(t){try{let i=JSON.parse(t.textContent).geo;if(i){let n=parseFloat(i.latitude),r=parseFloat(i.longitude);if(!isNaN(n)&&!isNaN(r))return{lat:n,lng:r}}}catch{}return null}#P(){let t=r=>(r||"").replace(/\s+/g," ").trim(),e=t(this.getAttribute("label"));if(e)return e;let i=t(this.querySelector("address")?.textContent),n=this.getAttribute("src");if(!i&&n){let r=document.getElementById(n);if(r?.tagName==="ADDRESS")i=t(r.textContent);else if(r?.tagName==="SCRIPT")try{i=t(JSON.parse(r.textContent||"").name)}catch{}}return i||(i=t(this.getAttribute("place"))),i?this.#y("map-of",{name:i}):this.#y("map")}setup(){if(this.#i++,this.#A=this.#E(),this.render(),this.#D(),this.#R(),this.#I(),this.interactive==="eager"&&!this.#r&&this.#v&&!this.#S&&this.#l){let t=this.#i;requestAnimationFrame(()=>{t===this.#i&&this.#q({focus:!1})})}}attributeChangedCallback(t,e,i){e===i||this.#n||!this.isConnected||!this.hasAttribute("data-upgraded")||this._reinit()}teardown(){this.#i++,this.#e=null,this.#t&&(this.#t.destroy(),this.#t=null,this.setState("active",!1)),this.#p?.disconnect(),this.#p=null,cancelAnimationFrame(this.#b),this.#f?.disconnect(),this.#f=null,this.#g?.removeEventListener("change",this.#m),this.#g=null,clearTimeout(this.#w)}#D(){typeof ResizeObserver=="function"&&(this.#p=new ResizeObserver(()=>{cancelAnimationFrame(this.#b),this.#b=requestAnimationFrame(()=>this.#I())}),this.#p.observe(this))}#R(){this.provider!=="carto-auto"||this.tileUrl||(this.#f=new MutationObserver(()=>this.#N()),this.#f.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode"]}),this.#g=window.matchMedia?.("(prefers-color-scheme: dark)")??null,this.#g?.addEventListener("change",this.#m))}#N(){this.#E()!==this.#A&&this._reinit()}get data(){return{lat:isNaN(this.lat)?void 0:this.lat,lng:isNaN(this.lng)?void 0:this.lng,zoom:this.zoom,marker:this.showMarker,markerColor:this.markerColor}}set data(t){if(!t||typeof t!="object")return;let e=this.data,i={...e};if(t.lat!=null&&!isNaN(Number(t.lat))&&(i.lat=Number(t.lat)),t.lng!=null&&!isNaN(Number(t.lng))&&(i.lng=Number(t.lng)),t.zoom!=null&&!isNaN(Number(t.zoom))&&(i.zoom=Number(t.zoom)),t.marker!=null&&(i.marker=!!t.marker),"markerColor"in t&&(mg(t.markerColor)?i.markerColor=t.markerColor:t.markerColor||(i.markerColor="")),!(i.lat===e.lat&&i.lng===e.lng&&i.zoom===e.zoom&&i.marker===e.marker&&i.markerColor===e.markerColor)){this.#n=!0;try{i.lat!==e.lat&&this.setAttribute("lat",String(i.lat)),i.lng!==e.lng&&this.setAttribute("lng",String(i.lng)),i.zoom!==e.zoom&&this.setAttribute("zoom",String(i.zoom)),i.marker!==e.marker&&this.setAttribute("marker",i.marker?"true":"false"),i.markerColor!==e.markerColor&&(i.markerColor?this.setAttribute("marker-color",i.markerColor):this.removeAttribute("marker-color"))}finally{this.#n=!1}this.hasAttribute("data-upgraded")&&this._reinit(),this.dispatchEvent(new CustomEvent("geo-map:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0,composed:!0}))}}get markers(){let t=this.#k();return t?[{lat:t.lat,lng:t.lng,color:this.markerColor}]:[]}render(){let t=this.shadowRoot,e=hg(t);this.removeAttribute("data-ready"),this.#o=!1,this.#h=new Map,this.#d="",this.#l=this.#k(),this.#u=this.#P();let i=this.#l!==null,n=i&&this.#S,r=at("div",{part:"container"}),a=at("div",{part:"viewport",role:"img","aria-label":this.#u});if(a.append(at("div",{part:"tiles"})),this.showMarker&&i){let u=U1();this.markerColor&&u.style.setProperty("--_marker-color",this.markerColor),a.append(u)}if(r.append(a),n){r.setAttribute("data-consent","");let u=at("div",{part:"overlay"}),h=at("button",{part:"activate",type:"button"},this.#y("consent")),p=this.#x().replace(/^https?:\/\//,""),d=at("p",{part:"consent-note"},this.#y("consent-note",{host:p}));u.append(h,d),u.addEventListener("click",()=>this.#z());let f=()=>this.#O();u.addEventListener("pointerenter",f,{once:!0}),h.addEventListener("focus",f,{once:!0}),r.append(u)}else if(i&&this.#v){let u=at("div",{part:"overlay"});u.append(at("button",{part:"activate",type:"button"},this.#y("activate"))),u.addEventListener("click",()=>this.#q({focus:!0})),r.append(u)}if(i&&this.#v){let u=at("div",{part:"controls",role:"group","aria-label":this.#y("controls")}),h=[["zoom-in","+",this.#y("zoom-in"),()=>this.#t?.zoomBy(1)],["zoom-out","\u2212",this.#y("zoom-out"),()=>this.#t?.zoomBy(-1)],["recenter","\u2316",this.#y("recenter"),()=>this.#t?.recenter()],["exit","\u2715",this.#y("exit"),()=>this.#H()]];for(let[p,d,f,m]of h){let b=at("button",{part:`control ${p}`,type:"button","aria-label":f,title:f},d);b.addEventListener("click",m),u.append(b)}r.append(u)}let o=at("div",{part:"caption"}),l=at("slot");o.append(l),r.append(o);let c=()=>{let u=l.assignedNodes().some(h=>h.nodeType===1||(h.textContent||"").trim());r.toggleAttribute("data-caption",u)};l.addEventListener("slotchange",c),r.toggleAttribute("data-caption",[...this.childNodes].some(u=>u.nodeType===1&&!u.hasAttribute("slot")||u.nodeType===3&&(u.textContent||"").trim())),r.append(this.#M()),r.append(at("p",{part:"instructions",id:`${this.#c}-help`,hidden:""},this.#y("instructions"))),r.append(at("p",{part:"status",role:"status","aria-live":"polite"})),t.replaceChildren(...e?[e]:[],r),i||this.handleError("Missing or invalid lat/lng coordinates",this.#y("error-coords"))}#M(){let t=at("div",{part:"attribution"}),e=at("slot",{name:"attribution"}),i;if(this.tileUrl){let r=(this.getAttribute("attribution")||"").trim(),a=this.getAttribute("attribution-href")||"";i=r?[{text:r,href:a}]:[]}else i=(oe[this.#A]??oe.osm).credits;i.forEach((r,a)=>{a&&e.append(document.createTextNode(" "));let o="";if(r.href)try{let l=new URL(r.href,location.href);(l.protocol==="https:"||l.protocol==="http:")&&(o=l.href)}catch{}e.append(o?at("a",{href:o,target:"_blank",rel:"noopener noreferrer"},r.text):at("span",{},r.text))});let n=()=>{t.hidden=i.length===0&&e.assignedNodes().length===0};return e.addEventListener("slotchange",n),t.hidden=i.length===0&&!this.querySelector(':scope > [slot="attribution"]'),t.append(e),t}#$(){let t=this.shadowRoot;return{container:t.querySelector('[part="container"]'),viewport:t.querySelector('[part="viewport"]'),tiles:t.querySelector('[part="tiles"]'),marker:t.querySelector('[part="marker"]'),status:t.querySelector('[part="status"]')}}#I(){let t=this.clientWidth,e=this.clientHeight;if(this.#t){this.#t.resize(t,e);return}if(!this.#l||this.#S||!t||!e)return;let i=`${t}x${e}`;i!==this.#d&&(this.#d=i,this.loadTiles(t,e))}loadTiles(t=this.clientWidth,e=this.clientHeight){let{tiles:i}=this.#$();if(!i||!this.#l||!t||!e)return;let n=this.zoom,{lat:r,lng:a}=this.#l,o=mi(r,a,n),l=Math.pow(2,n),c=o.x-t/2,u=o.y-e/2,h=Math.floor(c/256),p=Math.floor((c+t-1)/256),d=Math.max(0,Math.floor(u/256)),f=Math.min(l-1,Math.floor((u+e-1)/256));i.style.transform=`translate(${Math.round(h*256-c)}px, ${Math.round(d*256-u)}px)`;let m=new Set;for(let b=d;b<=f;b++)for(let g=h;g<=p;g++){let v=`${g}/${b}`;m.add(v);let y=this.#h.get(v);if(!y){let E=(g%l+l)%l;y=document.createElement("img"),y.alt="",y.loading=this.loading==="eager"?"eager":"lazy",y.decoding="async",y.draggable=!1,y.addEventListener("load",()=>this.#B()),y.addEventListener("error",()=>this.#B()),y.src=Jn(this.#A,n,E,b,this.tileUrl),this.#h.set(v,y),i.append(y)}y.style.left=`${(g-h)*256}px`,y.style.top=`${(b-d)*256}px`}for(let[b,g]of this.#h)m.has(b)||(g.remove(),this.#h.delete(b));this.#B()}#B(){if(this.#o||this.#t||!this.#l||this.#h.size===0)return;let t=[...this.#h.values()];if(t.every(e=>e.complete)){if(this.#o=!0,t.every(e=>e.naturalWidth===0)){this.handleError("Failed to load map tiles",this.#y("error-tiles"));return}this.setAttribute("data-ready",""),this.dispatchEvent(new CustomEvent("geo-map:ready",{bubbles:!0,detail:{lat:this.#l.lat,lng:this.#l.lng,zoom:this.zoom}}))}}#z(){this.#s=!0,this._reinit(),this.#v&&this.#q({focus:!0})}#O(){if(this.#a)return;this.#a=!0;let t=this.#x();if(!t||t===location.origin||document.head.querySelector(`link[rel~="preconnect" i][href="${CSS.escape(t)}"]`))return;let e=document.createElement("link");e.rel="preconnect",e.href=t,document.head.appendChild(e)}#q({focus:t=!0}={}){if(this.#t)return Promise.resolve();if(this.#e)return this.#e;if(!this.#l||!this.#v||this.#S)return Promise.resolve();let e=this.#i,i=(async()=>{let{MapInteraction:n}=await Promise.resolve().then(()=>(fg(),pg));if(!this.isConnected||e!==this.#i||this.#t||!this.#l)return;let{container:r,viewport:a,tiles:o,marker:l}=this.#$();if(!r||!a||!o)return;for(let h of this.#h.values())h.remove();this.#h.clear(),r.setAttribute("data-active",""),a.setAttribute("role","region"),a.setAttribute("aria-roledescription","map"),a.setAttribute("aria-describedby",`${this.#c}-help`),a.setAttribute("tabindex","0"),this.setState("active",!0);let{lat:c,lng:u}=this.#l;this.#t=new n({host:this,viewport:a,tiles:o,marker:l,lat:c,lng:u,zoom:this.zoom,provider:this.#A,tileUrl:this.tileUrl,width:this.clientWidth,height:this.clientHeight,onDeactivate:()=>this.#H(),onMove:h=>this.#F(h)}),t&&a.focus({preventScroll:!0}),this.dispatchEvent(new CustomEvent("geo-map:activate",{bubbles:!0,detail:{lat:c,lng:u,zoom:this.zoom}}))})();return this.#e=i,i.finally(()=>{this.#e===i&&(this.#e=null)}),i}#F(t){clearTimeout(this.#w),this.#w=window.setTimeout(()=>{let{status:e}=this.#$();e&&(e.textContent=this.#y("moved",{lat:t.lat.toFixed(4),lng:t.lng.toFixed(4),zoom:t.zoom}))},400)}#H(){if(!this.#t)return;let t=!!this.shadowRoot?.activeElement;this.#r=!0,this._reinit(),t&&this.shadowRoot?.querySelector('[part="activate"]')?.focus()}handleError(t,e=t){let{container:i}=this.#$();i&&(i.setAttribute("data-state","error"),i.setAttribute("data-error",e)),this.dispatchEvent(new CustomEvent("geo-map:error",{bubbles:!0,detail:{message:t}}))}};A("geo-map",Ec);S();C();var Ag=null;function Z1(){return Ag??=Promise.resolve().then(()=>(Sc(),xc)),Ag}var Q1=150,wg="vb-emoji-recent",bi=8,Eg=4,tT=0,eT={Trigger:"Open emoji picker",Dialog:"Emoji picker",Search:"Search emoji",Placeholder:"Search emoji\u2026",Categories:"Emoji categories",Emoji:"Emoji",Recent:"Recently used",Empty:"No emoji found",Results:"{count} emoji found"},Cc=class extends w{#t=null;#e;#i;#n;#s;#r;#a;#o;#c=new Map;#l=new WeakMap;#u=null;#h=!1;#d=!1;#p=!1;#b=!1;#f=-1;#g=0;#m=null;#w;#A=()=>{};#y=null;#v="";#S=null;#E=null;#x=new Set;#k=!1;#C=null;#L=null;constructor(){super(),this.#w=new Promise(t=>{this.#A=t})}get ready(){return this.#w}get isOpen(){return this.#h}setup(){if(this.#p)return!1;this.#p=!0,this.#D(),this.listen(this,"click",this.#tt),this.listen(this,"keydown",this.#rt),this.listen(this,"focusout",this.#Z),this.listen(this,"focusin",this.#it);let t=++this.#g;return Z1().then(e=>{if(t!==this.#g||!this.isConnected)return;this.#S=e,this.#d||this.#R(),this.listen(document,"click",this.#Q),this.listen(document,e.EXTENDED_EVENT,this.#et),this.setAttribute("data-upgraded",""),this.#A(),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("emoji-picker:upgraded",{bubbles:!0}))});let i=this.#m;this.#m=null,i==="open"&&this.open()}).catch(e=>{console.error("[emoji-picker] failed to load emoji data",e)}),!1}teardown(){this.#g++,this.#p=!1,this.#m=null,this.#y&&(clearTimeout(this.#y),this.#y=null,this.setState("search-pending",!1)),this.#h&&this.close()}#T(t,e){return this.dataset[`label${t}`]||e||eT[t]||""}#P(t){if(t==="recent")return this.#T("Recent");let e=t.charAt(0).toUpperCase()+t.slice(1);return this.#T(e,this.#S.EMOJI_GROUP_LABELS[t]||t)}#D(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button");t||(t=document.createElement("button"),t.type="button",t.textContent="\u{1F600}",t.setAttribute("data-trigger",""),this.prepend(t)),this.#t=t,t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(this.#h)),!t.hasAttribute("aria-label")&&!/\p{L}/u.test(t.textContent||"")&&t.setAttribute("aria-label",this.#T("Trigger"))}#R(){let t=`emoji-picker-${++tT}`;this.#e=document.createElement("div"),this.#e.className="picker",this.#e.id=`${t}-panel`,this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#T("Dialog")),this.#e.hidden=!0,this.#k=ii,this.#k&&this.#e.setAttribute("popover","manual"),this.#t?.setAttribute("aria-controls",this.#e.id),this.#i=document.createElement("input"),this.#i.type="search",this.#i.placeholder=this.#T("Placeholder"),this.#i.autocomplete="off",this.#i.spellcheck=!1,this.#i.setAttribute("aria-label",this.#T("Search")),this.#i.setAttribute("aria-controls",`${t}-listbox`),this.#i.addEventListener("input",this.#Y),this.#n=document.createElement("div"),this.#n.className="categories",this.#n.setAttribute("role","toolbar"),this.#n.setAttribute("aria-label",this.#T("Categories")),this.#S.EMOJI_GROUPS.forEach((e,i)=>{let n=document.createElement("button");n.type="button",n.dataset.group=e,n.tabIndex=i===0?0:-1,n.setAttribute("aria-label",this.#P(e)),n.title=this.#P(e),n.textContent=this.#S.EMOJI_GROUP_ICONS[e],this.#n.appendChild(n)}),this.#s=document.createElement("div"),this.#s.className="grid",this.#s.id=`${t}-listbox`,this.#s.setAttribute("role","listbox"),this.#s.setAttribute("aria-label",this.#T("Emoji")),this.#o=this.#N("recent"),this.#s.appendChild(this.#o);for(let e of this.#S.EMOJI_GROUPS){let i=this.#N(e);this.#c.set(e,i),this.#s.appendChild(i)}this.#r=document.createElement("p"),this.#r.className="no-results",this.#r.textContent=this.#T("Empty"),this.#r.hidden=!0,this.#a=document.createElement("p"),this.#a.className="status",this.#a.setAttribute("role","status"),this.#e.append(this.#i,this.#n,this.#s,this.#r,this.#a),this.appendChild(this.#e),this.#I(),this.#d=!0}#N(t){let e=document.createElement("div");return e.className="group",e.dataset.group=t,e.setAttribute("role","group"),e.setAttribute("aria-label",this.#P(t)),e}#M(t){let e=document.createElement("span");return e.className="group-label",e.setAttribute("aria-hidden","true"),e.textContent=this.#P(t),e}#$(t){let e=document.createElement("button");return e.type="button",e.setAttribute("role","option"),e.setAttribute("aria-selected","false"),e.tabIndex=-1,e.dataset.shortcode=t.shortcode,e.setAttribute("aria-label",t.name),e.title=`:${t.shortcode}:`,e.textContent=t.emoji,e}#I(){let t=new Map;for(let e of this.#S.EMOJI_GROUPS){let i=this.#c.get(e),n=[this.#M(e)];for(let r of this.#S.getByGroup(e)){let a=t.get(r.emoji);if(a){a.aliases.push(r.shortcode);continue}let o=this.#$(r),l={entry:r,aliases:[]};t.set(r.emoji,l),this.#l.set(o,l),n.push(o)}i.replaceChildren(...n)}this.#f=this.#S.extendedCount(),this.#H(null,!1)}#B(){let t=[];for(let e of this.#lt()){let i=this.#S.resolveEmoji(e);if(!i)continue;let n=this.#$(i);this.#l.set(n,{entry:i,aliases:[]}),t.push(n)}t.length&&t.unshift(this.#M("recent")),this.#o.replaceChildren(...t),this.#H(null,!1)}#z(t,e){let{entry:i,aliases:n}=t;return i.shortcode.includes(e)||i.name.toLowerCase().includes(e)||(i.keywords?.some(r=>r.includes(e))??!1)||n.some(r=>r.includes(e))}#O(){let t=this.#v.toLowerCase(),e=0;this.#o.hidden=!!t||this.#o.childElementCount===0;for(let i of this.#c.values()){let n=!1;for(let r of i.querySelectorAll('[role="option"]')){let a=this.#l.get(r),o=!t||(a?this.#z(a,t):!1);r.hidden=!o,o&&(n=!0,e++)}i.hidden=!n}this.#r.hidden=e>0,this.#a.textContent=t?e>0?this.#T("Results").replace("{count}",String(e)):this.#T("Empty"):"",(!this.#u||!this.#q(this.#u))&&this.#H(this.#F()[0]??null,!1)}#q(t){return t.isConnected&&!t.hidden&&!t.parentElement.hidden}#F(){return[...this.#s.querySelectorAll('[role="option"]')].filter(t=>this.#q(t))}#H(t,e){this.#u&&this.#u!==t&&(this.#u.tabIndex=-1,this.#u.setAttribute("aria-selected","false")),this.#u=t,t&&(t.tabIndex=0,t.setAttribute("aria-selected","true"),e&&(t.focus({preventScroll:!0}),t.scrollIntoView({block:"nearest"})))}#X(t,e){if(t){for(let i of this.#n.querySelectorAll("button"))i.tabIndex=i===t?0:-1;e&&t.focus()}}#_(t){let e;for(let i of this.#n.querySelectorAll("button"))i.dataset.group===t?(i.setAttribute("aria-current","true"),e=i):i.removeAttribute("aria-current");e&&!this.#n.contains(document.activeElement)&&this.#X(e,!1)}#V(){if(this.#E?.disconnect(),this.#x.clear(),!(typeof IntersectionObserver>"u")){this.#E=new IntersectionObserver(t=>{for(let i of t)i.isIntersecting?this.#x.add(i.target):this.#x.delete(i.target);let e=[...this.#s.children].find(i=>this.#x.has(i));this.#_(e?.dataset.group)},{root:this.#s,rootMargin:"-2px 0px -75% 0px"});for(let t of this.#s.children)this.#E.observe(t)}}#U(){return getComputedStyle(this).direction==="rtl"}#W(t,e,i){let n=t[e].getBoundingClientRect(),r=n.left+n.width/2,a=null,o=null,l=1/0;for(let c=e+i;c>=0&&c<t.length;c+=i){let u=t[c].getBoundingClientRect();if(a===null){if(Math.abs(u.top-n.top)<=Eg)continue;a=u.top}else if(Math.abs(u.top-a)>Eg)break;let h=Math.abs(u.left+u.width/2-r);h<l&&(l=h,o=t[c])}return o}#j(t,e){let i=this.#F(),n=i.indexOf(t);if(n<0)return!1;let r=this.#U(),a=null;switch(e){case"ArrowRight":a=i[r?n-1:n+1];break;case"ArrowLeft":a=i[r?n+1:n-1];break;case"ArrowDown":a=this.#W(i,n,1);break;case"ArrowUp":if(a=this.#W(i,n,-1),!a)return this.#i.focus(),!0;break;case"Home":a=i[0];break;case"End":a=i[i.length-1];break;case"PageDown":{a=i.slice(n+1).find(l=>l.parentElement!==t.parentElement)??i[i.length-1];break}case"PageUp":{let o=i.find(l=>l.parentElement===t.parentElement);if(o&&o!==t)a=o;else{let l=i[n-1]?.parentElement;a=l?i.find(c=>c.parentElement===l):i[0]}break}default:return!1}return a&&this.#H(a,!0),!0}#J(t,e){let i=[...this.#n.querySelectorAll("button")],n=i.indexOf(t),r=this.#U(),a=-1;if(e==="ArrowRight")a=r?n-1:n+1;else if(e==="ArrowLeft")a=r?n+1:n-1;else if(e==="Home")a=0;else if(e==="End")a=i.length-1;else return!1;return a=(a+i.length)%i.length,this.#X(i[a],!0),!0}#K(){let t=this.getAttribute("for");return t?document.getElementById(t):null}#G(){let t=this.#K();if(this.#C=null,this.#L=null,!!t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=null,i=null;try{e=t.selectionStart,i=t.selectionEnd}catch{}e!==null&&i!==null&&(this.#C={start:e,end:i})}else if(t.isContentEditable){let e=window.getSelection();if(e&&e.rangeCount>0){let i=e.getRangeAt(0);t.contains(i.commonAncestorContainer)&&(this.#L=i.cloneRange())}}}}#tt=t=>{let e=t.target.closest?.("button");if(!(!e||!this.contains(e))){if(e===this.#t){this.toggle();return}this.#d&&(e.parentElement===this.#n?this.#st(e):e.getAttribute("role")==="option"&&this.#nt(e))}};#Q=t=>{this.#h&&!this.contains(t.target)&&this.close()};#Z=t=>{if(!this.#h||this.#b)return;let e=t.relatedTarget;e&&!this.contains(e)&&this.close()};#it=t=>{let e=t.target;e.getAttribute?.("role")==="option"&&e!==this.#u&&this.#H(e,!1)};#rt=t=>{if(!this.#h)return;if(t.key==="Escape"){t.preventDefault(),t.stopPropagation(),this.close(),this.#t?.focus();return}let e=t.target;if(t.altKey||t.metaKey)return;let i=!1;if(e===this.#i){if(t.key==="ArrowDown"){let n=this.#u&&this.#q(this.#u)?this.#u:this.#F()[0];n&&this.#H(n,!0),i=!0}}else e.parentElement===this.#n?i=this.#J(e,t.key):e.getAttribute("role")==="option"&&(i=this.#j(e,t.key));i&&t.preventDefault()};#Y=()=>{this.#y&&clearTimeout(this.#y),this.setState("search-pending",!0),this.#y=setTimeout(()=>{this.#y=null,this.setState("search-pending",!1),this.#v=this.#i.value.trim(),this.#O(),this.#s.scrollTop=0},Q1)};#et=()=>{this.#h&&(this.#I(),this.#O(),this.#V())};#st(t){let e=t.dataset.group||"";this.#v&&(this.#y&&(clearTimeout(this.#y),this.#y=null),this.setState("search-pending",!1),this.#i.value="",this.#v="",this.#O()),this.#X(t,!1),this.#_(e);let i=this.#c.get(e);if(!i)return;let n=matchMedia("(prefers-reduced-motion: reduce)").matches;this.#s.scrollTo({top:i.offsetTop,behavior:n?"auto":"smooth"});let r=i.querySelector('[role="option"]:not([hidden])');r&&this.#H(r,!1)}#nt(t){let e=this.#l.get(t);if(!e)return;let{entry:i}=e;this.#H(t,!1),this.#b=!0;try{this.#ut(i.shortcode);let n=this.#at(i.emoji);this.dispatchEvent(new CustomEvent("emoji-picker:select",{bubbles:!0,detail:{shortcode:i.shortcode,emoji:i.emoji,name:i.name,keywords:i.keywords}})),this.close(),n||this.#t?.focus()}finally{this.#b=!1}}#at(t){let e=this.#K();if(!e)return!1;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){e.focus();let i=this.#C;if(i)try{e.setSelectionRange(i.start,i.end)}catch{}if(!this.#ot(t)){let n=e.value.length;try{e.setRangeText(t,i?.start??n,i?.end??n,"end")}catch{e.value+=t}e.dispatchEvent(new InputEvent("input",{bubbles:!0,inputType:"insertText",data:t}))}try{let n=e.selectionEnd;this.#C=n===null?null:{start:n,end:n}}catch{this.#C=null}return!0}if(e.isContentEditable){e.focus();let i=window.getSelection();if(!i)return!0;let n=this.#L;if((!n||!e.contains(n.commonAncestorContainer))&&(n=document.createRange(),n.selectNodeContents(e),n.collapse(!1)),i.removeAllRanges(),i.addRange(n),!this.#ot(t)){let r=i.getRangeAt(0);r.deleteContents();let a=document.createTextNode(t);r.insertNode(a),r.setStartAfter(a),r.collapse(!0),i.removeAllRanges(),i.addRange(r),e.dispatchEvent(new InputEvent("input",{bubbles:!0,inputType:"insertText",data:t}))}return this.#L=i.rangeCount?i.getRangeAt(0).cloneRange():null,!0}return!1}#ot(t){try{return document.execCommand("insertText",!1,t)}catch{return!1}}#lt(){try{let t=JSON.parse(localStorage.getItem(wg)||"[]");return Array.isArray(t)?t:[]}catch{return[]}}#ut(t){let e=parseInt(this.getAttribute("recent-limit")??"24",10)||24,i=this.#lt();i=i.filter(n=>n!==t),i.unshift(t),i.length>e&&(i.length=e);try{localStorage.setItem(wg,JSON.stringify(i))}catch{}}#ht(){if(!this.#k||!this.#h||!this.#t)return;let t=this.#t.getBoundingClientRect(),e=this.#e.offsetWidth,i=this.#e.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,a=this.#U()?t.right-e:t.left;a=Math.max(bi,Math.min(a,n-e-bi));let o=t.bottom+4;o+i>r-bi&&t.top-i-4>=bi&&(o=t.top-i-4),o=Math.max(bi,Math.min(o,r-i-bi)),this.#e.style.setProperty("--picker-top",`${Math.round(o)}px`),this.#e.style.setProperty("--picker-left",`${Math.round(a)}px`)}#ct=t=>{t.type==="scroll"&&this.#e.contains(t.target)||this.#ht()};open(){if(!this.#d){this.#m="open";return}if(!(this.#h||!this.isConnected)){if(this.#G(),this.#S.extendedCount()!==this.#f&&this.#I(),this.#B(),this.#i.value="",this.#v="",this.#O(),this.#h=!0,this.setAttribute("open",""),this.#t?.setAttribute("aria-expanded","true"),this.#e.hidden=!1,this.#k){try{this.#e.showPopover()}catch{}this.#ht(),window.addEventListener("scroll",this.#ct,{capture:!0,passive:!0}),window.addEventListener("resize",this.#ct,{passive:!0})}this.#s.scrollTop=0,this.#V(),this.#i.focus(),this.dispatchEvent(new CustomEvent("emoji-picker:open",{bubbles:!0}))}}close(){if(!this.#d){this.#m=null;return}if(this.#h){if(this.#h=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#k){try{this.#e.hidePopover()}catch{}window.removeEventListener("scroll",this.#ct,{capture:!0}),window.removeEventListener("resize",this.#ct)}this.#e.hidden=!0,this.#E?.disconnect(),this.#E=null,this.dispatchEvent(new CustomEvent("emoji-picker:close",{bubbles:!0}))}}toggle(){if(!this.#d){this.#m=this.#m==="open"?null:"open";return}this.#h?this.close():this.open()}};A("emoji-picker",Cc);S();C();Nt();var xg="environment",Sg="preferences",kc={timeOfDay:!1,seasonal:!1},iT=900*1e3,le={...kc};function De(s,t,e){return s+(t-s)*Math.min(1,Math.max(0,e))}var ce={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let s=await D.get(xg,Sg);le=s?{...kc,...s}:{...kc},(le.timeOfDay||le.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...le}},save(s){return le={...le,...s},D.set(xg,Sg,le).catch(()=>{}),{...le}},setTimeOverride(s){this._timeOverride=s,this._hasActiveSource()&&this._update()},setMonthOverride(s){this._monthOverride=s,this._hasActiveSource()&&this._update()},setSource(s,t){let e=this.save({[s]:t});t?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(e)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(s){let t=s||this.load();return t.timeOfDay||t.seasonal},_captureBaseHues(){let s=document.documentElement;s.style.removeProperty("--hue-primary"),s.style.removeProperty("--hue-secondary"),s.style.removeProperty("--hue-accent");let t=s.getAttribute("data-theme");if(t){let e=`[data-theme~="${t}"]`;for(let i of document.styleSheets)try{for(let n=0;n<i.cssRules.length;n++){let r=i.cssRules[n];if(r.selectorText?.includes(e)&&!r.selectorText.includes("dark")){let a=r.style?.getPropertyValue("--hue-primary");if(a){this._baseHues={primary:parseFloat(a)||260,secondary:parseFloat(r.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(r.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let s=this.load(),t=0;s.timeOfDay&&(t+=this._getTimeOfDayOffset()),s.seasonal&&(t+=this._getSeasonalOffset());let e=document.documentElement;t!==0&&this._baseHues?(e.style.setProperty("--hue-primary",String(this._baseHues.primary+t)),e.style.setProperty("--hue-secondary",String(this._baseHues.secondary+t)),e.style.setProperty("--hue-accent",String(this._baseHues.accent+t*.5))):t===0&&this._clearModifiers()},_clearModifiers(){let s=document.documentElement;s.style.removeProperty("--hue-primary"),s.style.removeProperty("--hue-secondary"),s.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let s=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return s<5?-20:s<7?De(-20,20,(s-5)/2):s<10?De(20,5,(s-7)/3):s<14?De(5,0,(s-10)/4):s<17?De(0,-5,(s-14)/3):s<19?De(-5,15,(s-17)/2):s<21?De(15,-10,(s-19)/2):De(-10,-20,(s-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let s=this._monthOverride??new Date().getMonth(),e=this._getHemisphere()==="south"?(s+6)%12:s;return e>=2&&e<=4?5:e>=5&&e<=7?10:e>=8&&e<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),iT))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var tr=null;function kg(){return"0.7.0-30b3407e8"}function sT(){let s=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let e of s){let i=e.getAttribute("src");if(i){let n=i.lastIndexOf("/");if(n!==-1){t=i.slice(0,n)+"/sw.js";break}}}return t}function Tg(){return tr||(tr=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),tr}function Lg(s){return new Promise((t,e)=>{navigator.serviceWorker?.controller?Cg(navigator.serviceWorker.controller,s,t,e):Tg().then(i=>{let n=i.active||i.waiting||i.installing;n?Cg(n,s,t,e):e(new Error("No active service worker"))}).catch(e)})}function Cg(s,t,e,i){let n=new MessageChannel;n.port1.onmessage=r=>e(r.data),n.port1.onmessageerror=()=>i(new Error("Message error")),s.postMessage({type:t},[n.port2]),setTimeout(()=>i(new Error("SW message timeout")),5e3)}async function Ng(){return Lg("GET_STATUS")}async function Mg(){return Lg("CLEAR_CACHE")}async function Dg(){let s=await Tg();return await s.update(),{updated:!!s.waiting}}function nT(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(nT()){let s=sT();window.addEventListener("load",()=>{tr=navigator.serviceWorker.register(s).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}Nt();mn();var gi=null,Rt="settings",sr={motionFx:!0,sounds:!1,charShortcuts:!0},$c=()=>({...sr,charShortcuts:Gt()}),lT=document.documentElement.hasAttribute("data-sticky"),Ic=null,cT={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},uT='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function he(s){return String(s).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}async function Rc(s){let t=document.documentElement;s?t.dataset.sticky="":delete t.dataset.sticky;try{let e=await Promise.resolve().then(()=>(Mc(),Rg));s?e.initStickyManager():e.destroyStickyManager()}catch{}}var _c=class extends w{#t=null;#e=null;#i=!1;#n=!1;#s=0;#r="";#a=new Set;#o=[];#c=[];#l={...sr,charShortcuts:Gt()};#u=document.documentElement.hasAttribute("data-sticky");setup(){let t=++this.#s;return this.#r||=crypto.randomUUID().slice(0,8),this.#k(),this.#L(),this.#tt(),this.listen(window,"vb:theme-change",this.#G),this.listen(window,"vb:extensions-change",this.#G),this.listen(window,"vb:a11y-themes-change",this.#G),this.#n&&(this.#n=!1,this.open()),this.#b().then(()=>{this.#h(t)&&this.#tt()}),!0}teardown(){this.#s++;for(let e of this.#o)clearTimeout(e);this.#o=[],this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false");let t=!!this.#e?.contains(document.activeElement);this.#e?.remove(),t&&this.#t?.isConnected&&this.#t.focus(),this.#e=null}#h(t){return t===this.#s&&this.isConnected}#d(t,e={}){let i=this.getAttribute(`data-label-${t}`)??cT[t]??t;for(let[n,r]of Object.entries(e))i=i.replaceAll(`{${n}}`,String(r));return i}#p(t){return he(this.#d(t))}get data(){return{a11yThemes:[...this.#c],extensions:{...this.#l},sticky:this.#u}}set data(t){if(!t||typeof t!="object")return;let e=[],i=[];Array.isArray(t.a11yThemes)&&(this.#c=t.a11yThemes.map(String),i.push("a11y"),e.push(D.set(Rt,"a11y",this.#c)),this.#Y(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#c]}))),t.extensions&&typeof t.extensions=="object"&&(this.#l={...$c(),...t.extensions},i.push("extensions"),e.push(D.set(Rt,"extensions",this.#l)),this.#et()),t.sticky!=null&&(this.#u=!!t.sticky,i.push("sticky"),e.push(D.set(Rt,"sticky",this.#u?"on":"off")),Rc(this.#u));for(let n of i)this.#a.add(n);this.#e&&this.#tt(),Promise.allSettled(e).then(()=>{for(let n of i)this.#a.delete(n);this.#e&&this.#tt(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#b(){let[t,e,i]=await Promise.all([D.get(Rt,"a11y"),D.get(Rt,"extensions"),D.get(Rt,"sticky")]);Ic===null&&(Ic=lT&&i!=="on"),this.#a.has("a11y")||(this.#c=Array.isArray(t)?t:[]),this.#a.has("extensions")||(this.#l={...$c(),...e??{}}),this.#a.has("sticky")||(this.#u=document.documentElement.hasAttribute("data-sticky"))}#f(t){return t!==""&&t!==void 0}#g(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#m(t,e){return t?e==="compact"?"compact":e==="spacious"?"spacious":"default":""}#w(t){return t!==""&&t!==void 0}#A(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#y(t,e){return t?e==="flush"?"flush":e==="elevated"?"elevated":"default":""}#v(t){if(!t)return"card";let e=t.split(/\s+/);for(let i of e)if(i==="stretch"||i==="integrated")return i;return"card"}#S(t){return t?t.split(/\s+/).includes("fixed"):!1}#E(t,e){let i=[];return t&&t!=="card"&&i.push(t),e&&i.push("fixed"),i.join(" ")||"card"}#x(t){return this.#e?.querySelector(t)??null}#k(){this.#t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#t||(this.#t=document.createElement("button"),this.#t.setAttribute("type","button"),this.#t.setAttribute("data-trigger",""),this.#t.setAttribute("data-minted",""),this.#t.className="settings-trigger",this.#t.innerHTML=uT,this.prepend(this.#t)),this.#t.hasAttribute("data-minted")&&this.#t.setAttribute("aria-label",this.#d("trigger")),this.#t.setAttribute("aria-haspopup","dialog"),this.#t.setAttribute("aria-expanded","false"),this.#e=document.createElement("div"),this.#e.className="settings-panel",this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#d("dialog")),this.#e.tabIndex=-1;let t=`settings-panel-${this.#r}`;this.#e.id=t,this.#t.setAttribute("aria-controls",t),this.#e.innerHTML=this.#C(),this.appendChild(this.#e)}#C(){let{mode:t,brand:e,fluid:i,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:l,pageBgGradEnd:c,pageBgGradDir:u}=H.getState(),h=[...this.#c],p={...this.#l},d=ce.load(),f=this.#f(i),m=this.#g(i),b=this.#w(n),g=this.#A(n),v=this.#r,y=x=>this.#p(x),E=(x,N,F,rt,X,_={})=>`
716
+ `,os=null;function hg(s){if("adoptedStyleSheets"in s&&typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype)return os||(os=new CSSStyleSheet,os.replaceSync(ug)),s.adoptedStyleSheets.includes(os)||(s.adoptedStyleSheets=[...s.adoptedStyleSheets,os]),null;let t=document.createElement("style");return t.textContent=ug,t}yc();S();var wc="http://www.w3.org/2000/svg",H1={map:"Map","map-of":"Map of {name}",activate:"Activate interactive map",consent:"Load map","consent-note":"Loads map images from {host}","zoom-in":"Zoom in","zoom-out":"Zoom out",recenter:"Recenter map",exit:"Exit map",controls:"Map controls",instructions:"Drag or use the arrow keys to pan. Click a point to centre on it. Pinch, scroll, or press plus and minus to zoom. Home recentres. Escape exits.",moved:"Map centred on {lat}, {lng}, zoom {zoom}","error-coords":"Map location unavailable","error-tiles":"Map images failed to load"},z1=0;function U1(){let s=document.createElement("div");s.setAttribute("part","marker"),s.setAttribute("aria-hidden","true");let t=document.createElementNS(wc,"svg");t.setAttribute("viewBox","0 0 24 36"),t.setAttribute("focusable","false");let e=document.createElementNS(wc,"path");e.setAttribute("class","pin"),e.setAttribute("d","M12 0C5.373 0 0 5.373 0 12c0 9 12 24 12 24s12-15 12-24C24 5.373 18.627 0 12 0z");let i=document.createElementNS(wc,"circle");return i.setAttribute("class","dot"),i.setAttribute("cx","12"),i.setAttribute("cy","12"),i.setAttribute("r","5"),t.append(e,i),s.append(t),s}function at(s,t={},e){let i=document.createElement(s);for(let[n,r]of Object.entries(t))i.setAttribute(n,r);return e!=null&&(i.textContent=e),i}function mg(s){return!s||typeof s!="string"?!1:typeof CSS<"u"&&CSS.supports("color",s)}var Ec=class extends w{static get observedAttributes(){return["lat","lng","zoom","marker","marker-color","provider","tile-url","interactive","static-only","src","place","label","attribution","attribution-href","loading"]}#t=null;#e=null;#i=0;#n=!1;#s=!1;#r=!1;#a=!1;#o=!1;#c=`geo-map-${++z1}`;#l=null;#u="";#h=new Map;#d="";#p=null;#b=0;#f=null;#g=null;#m=()=>this.#N();#w=0;#A="osm";constructor(){super(),this.attachShadow({mode:"open"})}get lat(){return parseFloat(this.getAttribute("lat")??"")}get lng(){return parseFloat(this.getAttribute("lng")??"")}get zoom(){let t=parseInt(this.getAttribute("zoom")??"",10);return t>=1&&t<=19?t:15}get showMarker(){return this.getAttribute("marker")!=="false"}get markerColor(){let t=this.getAttribute("marker-color");return mg(t)?t:""}get provider(){let t=this.getAttribute("provider");return t&&(t in oe||t==="carto-auto")?t:"osm"}get tileUrl(){return this.getAttribute("tile-url")||""}get interactive(){let t=this.getAttribute("interactive");return t==="eager"||t==="none"?t:"click"}get staticOnly(){return this.hasAttribute("static-only")}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="consent"?t:"lazy"}get active(){return this.#t!==null}#y(t,e={}){return(this.getAttribute(`data-label-${t}`)??H1[t]??"").replace(/\{(\w+)\}/g,(n,r)=>r in e?String(e[r]):n)}get#v(){return this.interactive!=="none"&&!this.staticOnly}get#S(){return this.loading==="consent"&&!this.#s}#E(){let t=this.provider;if(t!=="carto-auto")return t;let e=this.closest("[data-mode]")?.getAttribute("data-mode");return e==="dark"?"carto-dark":e==="light"?"carto-light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"carto-dark":"carto-light"}#x(){if(this.tileUrl)try{return new URL(this.tileUrl.replace(/\{s\}/g,"a"),location.href).origin}catch{return""}return(oe[this.#A]??oe.osm).origin}#k(){let t=parseFloat(this.getAttribute("lat")??""),e=parseFloat(this.getAttribute("lng")??"");if(!isNaN(t)&&!isNaN(e))return{lat:t,lng:e};let i=this.getAttribute("src");if(i){let o=this.#C(i);if(o)return o}let n=this.querySelector("address[data-lat][data-lng]");if(n){let o=parseFloat(n.dataset.lat??""),l=parseFloat(n.dataset.lng??"");if(!isNaN(o)&&!isNaN(l))return{lat:o,lng:l}}let r=this.getAttribute("place");if(r){let o=this.#L(r);if(o)return o}let a=document.querySelector('meta[name="geo.position"]');if(a){let l=(a.getAttribute("content")||"").split(";");if(l.length===2){let c=parseFloat(l[0]),u=parseFloat(l[1]);if(!isNaN(c)&&!isNaN(u))return{lat:c,lng:u}}}return null}#C(t){let e=document.getElementById(t);if(!e)return null;if(e.tagName==="ADDRESS"&&e.dataset.lat&&e.dataset.lng){let i=parseFloat(e.dataset.lat),n=parseFloat(e.dataset.lng);if(!isNaN(i)&&!isNaN(n))return{lat:i,lng:n}}return e.tagName==="SCRIPT"&&e.type==="application/ld+json"?this.#T(e):null}#L(t){let e=document.querySelectorAll('script[type="application/ld+json"]');for(let i of e)try{let n=JSON.parse(i.textContent);if(n.name===t){let r=n.geo;if(r){let a=parseFloat(r.latitude),o=parseFloat(r.longitude);if(!isNaN(a)&&!isNaN(o))return{lat:a,lng:o}}}}catch{}return null}#T(t){try{let i=JSON.parse(t.textContent).geo;if(i){let n=parseFloat(i.latitude),r=parseFloat(i.longitude);if(!isNaN(n)&&!isNaN(r))return{lat:n,lng:r}}}catch{}return null}#P(){let t=r=>(r||"").replace(/\s+/g," ").trim(),e=t(this.getAttribute("label"));if(e)return e;let i=t(this.querySelector("address")?.textContent),n=this.getAttribute("src");if(!i&&n){let r=document.getElementById(n);if(r?.tagName==="ADDRESS")i=t(r.textContent);else if(r?.tagName==="SCRIPT")try{i=t(JSON.parse(r.textContent||"").name)}catch{}}return i||(i=t(this.getAttribute("place"))),i?this.#y("map-of",{name:i}):this.#y("map")}setup(){if(this.#i++,this.#A=this.#E(),this.render(),this.#D(),this.#R(),this.#I(),this.interactive==="eager"&&!this.#r&&this.#v&&!this.#S&&this.#l){let t=this.#i;requestAnimationFrame(()=>{t===this.#i&&this.#q({focus:!1})})}}attributeChangedCallback(t,e,i){e===i||this.#n||!this.isConnected||!this.hasAttribute("data-upgraded")||this._reinit()}teardown(){this.#i++,this.#e=null,this.#t&&(this.#t.destroy(),this.#t=null,this.setState("active",!1)),this.#p?.disconnect(),this.#p=null,cancelAnimationFrame(this.#b),this.#f?.disconnect(),this.#f=null,this.#g?.removeEventListener("change",this.#m),this.#g=null,clearTimeout(this.#w)}#D(){typeof ResizeObserver=="function"&&(this.#p=new ResizeObserver(()=>{cancelAnimationFrame(this.#b),this.#b=requestAnimationFrame(()=>this.#I())}),this.#p.observe(this))}#R(){this.provider!=="carto-auto"||this.tileUrl||(this.#f=new MutationObserver(()=>this.#N()),this.#f.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode"]}),this.#g=window.matchMedia?.("(prefers-color-scheme: dark)")??null,this.#g?.addEventListener("change",this.#m))}#N(){this.#E()!==this.#A&&this._reinit()}get data(){return{lat:isNaN(this.lat)?void 0:this.lat,lng:isNaN(this.lng)?void 0:this.lng,zoom:this.zoom,marker:this.showMarker,markerColor:this.markerColor}}set data(t){if(!t||typeof t!="object")return;let e=this.data,i={...e};if(t.lat!=null&&!isNaN(Number(t.lat))&&(i.lat=Number(t.lat)),t.lng!=null&&!isNaN(Number(t.lng))&&(i.lng=Number(t.lng)),t.zoom!=null&&!isNaN(Number(t.zoom))&&(i.zoom=Number(t.zoom)),t.marker!=null&&(i.marker=!!t.marker),"markerColor"in t&&(mg(t.markerColor)?i.markerColor=t.markerColor:t.markerColor||(i.markerColor="")),!(i.lat===e.lat&&i.lng===e.lng&&i.zoom===e.zoom&&i.marker===e.marker&&i.markerColor===e.markerColor)){this.#n=!0;try{i.lat!==e.lat&&this.setAttribute("lat",String(i.lat)),i.lng!==e.lng&&this.setAttribute("lng",String(i.lng)),i.zoom!==e.zoom&&this.setAttribute("zoom",String(i.zoom)),i.marker!==e.marker&&this.setAttribute("marker",i.marker?"true":"false"),i.markerColor!==e.markerColor&&(i.markerColor?this.setAttribute("marker-color",i.markerColor):this.removeAttribute("marker-color"))}finally{this.#n=!1}this.hasAttribute("data-upgraded")&&this._reinit(),this.dispatchEvent(new CustomEvent("geo-map:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0,composed:!0}))}}get markers(){let t=this.#k();return t?[{lat:t.lat,lng:t.lng,color:this.markerColor}]:[]}render(){let t=this.shadowRoot,e=hg(t);this.removeAttribute("data-ready"),this.#o=!1,this.#h=new Map,this.#d="",this.#l=this.#k(),this.#u=this.#P();let i=this.#l!==null,n=i&&this.#S,r=at("div",{part:"container"}),a=at("div",{part:"viewport",role:"img","aria-label":this.#u});if(a.append(at("div",{part:"tiles"})),this.showMarker&&i){let u=U1();this.markerColor&&u.style.setProperty("--_marker-color",this.markerColor),a.append(u)}if(r.append(a),n){r.setAttribute("data-consent","");let u=at("div",{part:"overlay"}),h=at("button",{part:"activate",type:"button"},this.#y("consent")),p=this.#x().replace(/^https?:\/\//,""),d=at("p",{part:"consent-note"},this.#y("consent-note",{host:p}));u.append(h,d),u.addEventListener("click",()=>this.#z());let f=()=>this.#O();u.addEventListener("pointerenter",f,{once:!0}),h.addEventListener("focus",f,{once:!0}),r.append(u)}else if(i&&this.#v){let u=at("div",{part:"overlay"});u.append(at("button",{part:"activate",type:"button"},this.#y("activate"))),u.addEventListener("click",()=>this.#q({focus:!0})),r.append(u)}if(i&&this.#v){let u=at("div",{part:"controls",role:"group","aria-label":this.#y("controls")}),h=[["zoom-in","+",this.#y("zoom-in"),()=>this.#t?.zoomBy(1)],["zoom-out","\u2212",this.#y("zoom-out"),()=>this.#t?.zoomBy(-1)],["recenter","\u2316",this.#y("recenter"),()=>this.#t?.recenter()],["exit","\u2715",this.#y("exit"),()=>this.#H()]];for(let[p,d,f,m]of h){let b=at("button",{part:`control ${p}`,type:"button","aria-label":f,title:f},d);b.addEventListener("click",m),u.append(b)}r.append(u)}let o=at("div",{part:"caption"}),l=at("slot");o.append(l),r.append(o);let c=()=>{let u=l.assignedNodes().some(h=>h.nodeType===1||(h.textContent||"").trim());r.toggleAttribute("data-caption",u)};l.addEventListener("slotchange",c),r.toggleAttribute("data-caption",[...this.childNodes].some(u=>u.nodeType===1&&!u.hasAttribute("slot")||u.nodeType===3&&(u.textContent||"").trim())),r.append(this.#M()),r.append(at("p",{part:"instructions",id:`${this.#c}-help`,hidden:""},this.#y("instructions"))),r.append(at("p",{part:"status",role:"status","aria-live":"polite"})),t.replaceChildren(...e?[e]:[],r),i||this.handleError("Missing or invalid lat/lng coordinates",this.#y("error-coords"))}#M(){let t=at("div",{part:"attribution"}),e=at("slot",{name:"attribution"}),i;if(this.tileUrl){let r=(this.getAttribute("attribution")||"").trim(),a=this.getAttribute("attribution-href")||"";i=r?[{text:r,href:a}]:[]}else i=(oe[this.#A]??oe.osm).credits;i.forEach((r,a)=>{a&&e.append(document.createTextNode(" "));let o="";if(r.href)try{let l=new URL(r.href,location.href);(l.protocol==="https:"||l.protocol==="http:")&&(o=l.href)}catch{}e.append(o?at("a",{href:o,target:"_blank",rel:"noopener noreferrer"},r.text):at("span",{},r.text))});let n=()=>{t.hidden=i.length===0&&e.assignedNodes().length===0};return e.addEventListener("slotchange",n),t.hidden=i.length===0&&!this.querySelector(':scope > [slot="attribution"]'),t.append(e),t}#$(){let t=this.shadowRoot;return{container:t.querySelector('[part="container"]'),viewport:t.querySelector('[part="viewport"]'),tiles:t.querySelector('[part="tiles"]'),marker:t.querySelector('[part="marker"]'),status:t.querySelector('[part="status"]')}}#I(){let t=this.clientWidth,e=this.clientHeight;if(this.#t){this.#t.resize(t,e);return}if(!this.#l||this.#S||!t||!e)return;let i=`${t}x${e}`;i!==this.#d&&(this.#d=i,this.loadTiles(t,e))}loadTiles(t=this.clientWidth,e=this.clientHeight){let{tiles:i}=this.#$();if(!i||!this.#l||!t||!e)return;let n=this.zoom,{lat:r,lng:a}=this.#l,o=mi(r,a,n),l=Math.pow(2,n),c=o.x-t/2,u=o.y-e/2,h=Math.floor(c/256),p=Math.floor((c+t-1)/256),d=Math.max(0,Math.floor(u/256)),f=Math.min(l-1,Math.floor((u+e-1)/256));i.style.transform=`translate(${Math.round(h*256-c)}px, ${Math.round(d*256-u)}px)`;let m=new Set;for(let b=d;b<=f;b++)for(let g=h;g<=p;g++){let v=`${g}/${b}`;m.add(v);let y=this.#h.get(v);if(!y){let E=(g%l+l)%l;y=document.createElement("img"),y.alt="",y.loading=this.loading==="eager"?"eager":"lazy",y.decoding="async",y.draggable=!1,y.addEventListener("load",()=>this.#B()),y.addEventListener("error",()=>this.#B()),y.src=Jn(this.#A,n,E,b,this.tileUrl),this.#h.set(v,y),i.append(y)}y.style.left=`${(g-h)*256}px`,y.style.top=`${(b-d)*256}px`}for(let[b,g]of this.#h)m.has(b)||(g.remove(),this.#h.delete(b));this.#B()}#B(){if(this.#o||this.#t||!this.#l||this.#h.size===0)return;let t=[...this.#h.values()];if(t.every(e=>e.complete)){if(this.#o=!0,t.every(e=>e.naturalWidth===0)){this.handleError("Failed to load map tiles",this.#y("error-tiles"));return}this.setAttribute("data-ready",""),this.dispatchEvent(new CustomEvent("geo-map:ready",{bubbles:!0,detail:{lat:this.#l.lat,lng:this.#l.lng,zoom:this.zoom}}))}}#z(){this.#s=!0,this._reinit(),this.#v&&this.#q({focus:!0})}#O(){if(this.#a)return;this.#a=!0;let t=this.#x();if(!t||t===location.origin||document.head.querySelector(`link[rel~="preconnect" i][href="${CSS.escape(t)}"]`))return;let e=document.createElement("link");e.rel="preconnect",e.href=t,document.head.appendChild(e)}#q({focus:t=!0}={}){if(this.#t)return Promise.resolve();if(this.#e)return this.#e;if(!this.#l||!this.#v||this.#S)return Promise.resolve();let e=this.#i,i=(async()=>{let{MapInteraction:n}=await Promise.resolve().then(()=>(fg(),pg));if(!this.isConnected||e!==this.#i||this.#t||!this.#l)return;let{container:r,viewport:a,tiles:o,marker:l}=this.#$();if(!r||!a||!o)return;for(let h of this.#h.values())h.remove();this.#h.clear(),r.setAttribute("data-active",""),a.setAttribute("role","region"),a.setAttribute("aria-roledescription","map"),a.setAttribute("aria-describedby",`${this.#c}-help`),a.setAttribute("tabindex","0"),this.setState("active",!0);let{lat:c,lng:u}=this.#l;this.#t=new n({host:this,viewport:a,tiles:o,marker:l,lat:c,lng:u,zoom:this.zoom,provider:this.#A,tileUrl:this.tileUrl,width:this.clientWidth,height:this.clientHeight,onDeactivate:()=>this.#H(),onMove:h=>this.#F(h)}),t&&a.focus({preventScroll:!0}),this.dispatchEvent(new CustomEvent("geo-map:activate",{bubbles:!0,detail:{lat:c,lng:u,zoom:this.zoom}}))})();return this.#e=i,i.finally(()=>{this.#e===i&&(this.#e=null)}),i}#F(t){clearTimeout(this.#w),this.#w=window.setTimeout(()=>{let{status:e}=this.#$();e&&(e.textContent=this.#y("moved",{lat:t.lat.toFixed(4),lng:t.lng.toFixed(4),zoom:t.zoom}))},400)}#H(){if(!this.#t)return;let t=!!this.shadowRoot?.activeElement;this.#r=!0,this._reinit(),t&&this.shadowRoot?.querySelector('[part="activate"]')?.focus()}handleError(t,e=t){let{container:i}=this.#$();i&&(i.setAttribute("data-state","error"),i.setAttribute("data-error",e)),this.dispatchEvent(new CustomEvent("geo-map:error",{bubbles:!0,detail:{message:t}}))}};A("geo-map",Ec);S();C();var Ag=null;function Z1(){return Ag??=Promise.resolve().then(()=>(Sc(),xc)),Ag}var Q1=150,wg="vb-emoji-recent",bi=8,Eg=4,tT=0,eT={Trigger:"Open emoji picker",Dialog:"Emoji picker",Search:"Search emoji",Placeholder:"Search emoji\u2026",Categories:"Emoji categories",Emoji:"Emoji",Recent:"Recently used",Empty:"No emoji found",Results:"{count} emoji found"},Cc=class extends w{#t=null;#e;#i;#n;#s;#r;#a;#o;#c=new Map;#l=new WeakMap;#u=null;#h=!1;#d=!1;#p=!1;#b=!1;#f=-1;#g=0;#m=null;#w;#A=()=>{};#y=null;#v="";#S=null;#E=null;#x=new Set;#k=!1;#C=null;#L=null;constructor(){super(),this.#w=new Promise(t=>{this.#A=t})}get ready(){return this.#w}get isOpen(){return this.#h}setup(){if(this.#p)return!1;this.#p=!0,this.#D(),this.listen(this,"click",this.#tt),this.listen(this,"keydown",this.#rt),this.listen(this,"focusout",this.#Z),this.listen(this,"focusin",this.#it);let t=++this.#g;return Z1().then(e=>{if(t!==this.#g||!this.isConnected)return;this.#S=e,this.#d||this.#R(),this.listen(document,"click",this.#Q),this.listen(document,e.EXTENDED_EVENT,this.#et),this.setAttribute("data-upgraded",""),this.#A(),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("emoji-picker:upgraded",{bubbles:!0}))});let i=this.#m;this.#m=null,i==="open"&&this.open()}).catch(e=>{console.error("[emoji-picker] failed to load emoji data",e)}),!1}teardown(){this.#g++,this.#p=!1,this.#m=null,this.#y&&(clearTimeout(this.#y),this.#y=null,this.setState("search-pending",!1)),this.#h&&this.close()}#T(t,e){return this.dataset[`label${t}`]||e||eT[t]||""}#P(t){if(t==="recent")return this.#T("Recent");let e=t.charAt(0).toUpperCase()+t.slice(1);return this.#T(e,this.#S.EMOJI_GROUP_LABELS[t]||t)}#D(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button");t||(t=document.createElement("button"),t.type="button",t.textContent="\u{1F600}",t.setAttribute("data-trigger",""),this.prepend(t)),this.#t=t,t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(this.#h)),!t.hasAttribute("aria-label")&&!/\p{L}/u.test(t.textContent||"")&&t.setAttribute("aria-label",this.#T("Trigger"))}#R(){let t=`emoji-picker-${++tT}`;this.#e=document.createElement("div"),this.#e.className="picker",this.#e.id=`${t}-panel`,this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#T("Dialog")),this.#e.hidden=!0,this.#k=ii,this.#k&&this.#e.setAttribute("popover","manual"),this.#t?.setAttribute("aria-controls",this.#e.id),this.#i=document.createElement("input"),this.#i.type="search",this.#i.placeholder=this.#T("Placeholder"),this.#i.autocomplete="off",this.#i.spellcheck=!1,this.#i.setAttribute("aria-label",this.#T("Search")),this.#i.setAttribute("aria-controls",`${t}-listbox`),this.#i.addEventListener("input",this.#Y),this.#n=document.createElement("div"),this.#n.className="categories",this.#n.setAttribute("role","toolbar"),this.#n.setAttribute("aria-label",this.#T("Categories")),this.#S.EMOJI_GROUPS.forEach((e,i)=>{let n=document.createElement("button");n.type="button",n.dataset.group=e,n.tabIndex=i===0?0:-1,n.setAttribute("aria-label",this.#P(e)),n.title=this.#P(e),n.textContent=this.#S.EMOJI_GROUP_ICONS[e],this.#n.appendChild(n)}),this.#s=document.createElement("div"),this.#s.className="grid",this.#s.id=`${t}-listbox`,this.#s.setAttribute("role","listbox"),this.#s.setAttribute("aria-label",this.#T("Emoji")),this.#o=this.#N("recent"),this.#s.appendChild(this.#o);for(let e of this.#S.EMOJI_GROUPS){let i=this.#N(e);this.#c.set(e,i),this.#s.appendChild(i)}this.#r=document.createElement("p"),this.#r.className="no-results",this.#r.textContent=this.#T("Empty"),this.#r.hidden=!0,this.#a=document.createElement("p"),this.#a.className="status",this.#a.setAttribute("role","status"),this.#e.append(this.#i,this.#n,this.#s,this.#r,this.#a),this.appendChild(this.#e),this.#I(),this.#d=!0}#N(t){let e=document.createElement("div");return e.className="group",e.dataset.group=t,e.setAttribute("role","group"),e.setAttribute("aria-label",this.#P(t)),e}#M(t){let e=document.createElement("span");return e.className="group-label",e.setAttribute("aria-hidden","true"),e.textContent=this.#P(t),e}#$(t){let e=document.createElement("button");return e.type="button",e.setAttribute("role","option"),e.setAttribute("aria-selected","false"),e.tabIndex=-1,e.dataset.shortcode=t.shortcode,e.setAttribute("aria-label",t.name),e.title=`:${t.shortcode}:`,e.textContent=t.emoji,e}#I(){let t=new Map;for(let e of this.#S.EMOJI_GROUPS){let i=this.#c.get(e),n=[this.#M(e)];for(let r of this.#S.getByGroup(e)){let a=t.get(r.emoji);if(a){a.aliases.push(r.shortcode);continue}let o=this.#$(r),l={entry:r,aliases:[]};t.set(r.emoji,l),this.#l.set(o,l),n.push(o)}i.replaceChildren(...n)}this.#f=this.#S.extendedCount(),this.#H(null,!1)}#B(){let t=[];for(let e of this.#lt()){let i=this.#S.resolveEmoji(e);if(!i)continue;let n=this.#$(i);this.#l.set(n,{entry:i,aliases:[]}),t.push(n)}t.length&&t.unshift(this.#M("recent")),this.#o.replaceChildren(...t),this.#H(null,!1)}#z(t,e){let{entry:i,aliases:n}=t;return i.shortcode.includes(e)||i.name.toLowerCase().includes(e)||(i.keywords?.some(r=>r.includes(e))??!1)||n.some(r=>r.includes(e))}#O(){let t=this.#v.toLowerCase(),e=0;this.#o.hidden=!!t||this.#o.childElementCount===0;for(let i of this.#c.values()){let n=!1;for(let r of i.querySelectorAll('[role="option"]')){let a=this.#l.get(r),o=!t||(a?this.#z(a,t):!1);r.hidden=!o,o&&(n=!0,e++)}i.hidden=!n}this.#r.hidden=e>0,this.#a.textContent=t?e>0?this.#T("Results").replace("{count}",String(e)):this.#T("Empty"):"",(!this.#u||!this.#q(this.#u))&&this.#H(this.#F()[0]??null,!1)}#q(t){return t.isConnected&&!t.hidden&&!t.parentElement.hidden}#F(){return[...this.#s.querySelectorAll('[role="option"]')].filter(t=>this.#q(t))}#H(t,e){this.#u&&this.#u!==t&&(this.#u.tabIndex=-1,this.#u.setAttribute("aria-selected","false")),this.#u=t,t&&(t.tabIndex=0,t.setAttribute("aria-selected","true"),e&&(t.focus({preventScroll:!0}),t.scrollIntoView({block:"nearest"})))}#X(t,e){if(t){for(let i of this.#n.querySelectorAll("button"))i.tabIndex=i===t?0:-1;e&&t.focus()}}#_(t){let e;for(let i of this.#n.querySelectorAll("button"))i.dataset.group===t?(i.setAttribute("aria-current","true"),e=i):i.removeAttribute("aria-current");e&&!this.#n.contains(document.activeElement)&&this.#X(e,!1)}#V(){if(this.#E?.disconnect(),this.#x.clear(),!(typeof IntersectionObserver>"u")){this.#E=new IntersectionObserver(t=>{for(let i of t)i.isIntersecting?this.#x.add(i.target):this.#x.delete(i.target);let e=[...this.#s.children].find(i=>this.#x.has(i));this.#_(e?.dataset.group)},{root:this.#s,rootMargin:"-2px 0px -75% 0px"});for(let t of this.#s.children)this.#E.observe(t)}}#U(){return getComputedStyle(this).direction==="rtl"}#W(t,e,i){let n=t[e].getBoundingClientRect(),r=n.left+n.width/2,a=null,o=null,l=1/0;for(let c=e+i;c>=0&&c<t.length;c+=i){let u=t[c].getBoundingClientRect();if(a===null){if(Math.abs(u.top-n.top)<=Eg)continue;a=u.top}else if(Math.abs(u.top-a)>Eg)break;let h=Math.abs(u.left+u.width/2-r);h<l&&(l=h,o=t[c])}return o}#j(t,e){let i=this.#F(),n=i.indexOf(t);if(n<0)return!1;let r=this.#U(),a=null;switch(e){case"ArrowRight":a=i[r?n-1:n+1];break;case"ArrowLeft":a=i[r?n+1:n-1];break;case"ArrowDown":a=this.#W(i,n,1);break;case"ArrowUp":if(a=this.#W(i,n,-1),!a)return this.#i.focus(),!0;break;case"Home":a=i[0];break;case"End":a=i[i.length-1];break;case"PageDown":{a=i.slice(n+1).find(l=>l.parentElement!==t.parentElement)??i[i.length-1];break}case"PageUp":{let o=i.find(l=>l.parentElement===t.parentElement);if(o&&o!==t)a=o;else{let l=i[n-1]?.parentElement;a=l?i.find(c=>c.parentElement===l):i[0]}break}default:return!1}return a&&this.#H(a,!0),!0}#J(t,e){let i=[...this.#n.querySelectorAll("button")],n=i.indexOf(t),r=this.#U(),a=-1;if(e==="ArrowRight")a=r?n-1:n+1;else if(e==="ArrowLeft")a=r?n+1:n-1;else if(e==="Home")a=0;else if(e==="End")a=i.length-1;else return!1;return a=(a+i.length)%i.length,this.#X(i[a],!0),!0}#K(){let t=this.getAttribute("for");return t?document.getElementById(t):null}#G(){let t=this.#K();if(this.#C=null,this.#L=null,!!t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=null,i=null;try{e=t.selectionStart,i=t.selectionEnd}catch{}e!==null&&i!==null&&(this.#C={start:e,end:i})}else if(t.isContentEditable){let e=window.getSelection();if(e&&e.rangeCount>0){let i=e.getRangeAt(0);t.contains(i.commonAncestorContainer)&&(this.#L=i.cloneRange())}}}}#tt=t=>{let e=t.target.closest?.("button");if(!(!e||!this.contains(e))){if(e===this.#t){this.toggle();return}this.#d&&(e.parentElement===this.#n?this.#st(e):e.getAttribute("role")==="option"&&this.#nt(e))}};#Q=t=>{this.#h&&!this.contains(t.target)&&this.close()};#Z=t=>{if(!this.#h||this.#b)return;let e=t.relatedTarget;e&&!this.contains(e)&&this.close()};#it=t=>{let e=t.target;e.getAttribute?.("role")==="option"&&e!==this.#u&&this.#H(e,!1)};#rt=t=>{if(!this.#h)return;if(t.key==="Escape"){t.preventDefault(),t.stopPropagation(),this.close(),this.#t?.focus();return}let e=t.target;if(t.altKey||t.metaKey)return;let i=!1;if(e===this.#i){if(t.key==="ArrowDown"){let n=this.#u&&this.#q(this.#u)?this.#u:this.#F()[0];n&&this.#H(n,!0),i=!0}}else e.parentElement===this.#n?i=this.#J(e,t.key):e.getAttribute("role")==="option"&&(i=this.#j(e,t.key));i&&t.preventDefault()};#Y=()=>{this.#y&&clearTimeout(this.#y),this.setState("search-pending",!0),this.#y=setTimeout(()=>{this.#y=null,this.setState("search-pending",!1),this.#v=this.#i.value.trim(),this.#O(),this.#s.scrollTop=0},Q1)};#et=()=>{this.#h&&(this.#I(),this.#O(),this.#V())};#st(t){let e=t.dataset.group||"";this.#v&&(this.#y&&(clearTimeout(this.#y),this.#y=null),this.setState("search-pending",!1),this.#i.value="",this.#v="",this.#O()),this.#X(t,!1),this.#_(e);let i=this.#c.get(e);if(!i)return;let n=matchMedia("(prefers-reduced-motion: reduce)").matches;this.#s.scrollTo({top:i.offsetTop,behavior:n?"auto":"smooth"});let r=i.querySelector('[role="option"]:not([hidden])');r&&this.#H(r,!1)}#nt(t){let e=this.#l.get(t);if(!e)return;let{entry:i}=e;this.#H(t,!1),this.#b=!0;try{this.#ut(i.shortcode);let n=this.#at(i.emoji);this.dispatchEvent(new CustomEvent("emoji-picker:select",{bubbles:!0,detail:{shortcode:i.shortcode,emoji:i.emoji,name:i.name,keywords:i.keywords}})),this.close(),n||this.#t?.focus()}finally{this.#b=!1}}#at(t){let e=this.#K();if(!e)return!1;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){e.focus();let i=this.#C;if(i)try{e.setSelectionRange(i.start,i.end)}catch{}if(!this.#ot(t)){let n=e.value.length;try{e.setRangeText(t,i?.start??n,i?.end??n,"end")}catch{e.value+=t}e.dispatchEvent(new InputEvent("input",{bubbles:!0,inputType:"insertText",data:t}))}try{let n=e.selectionEnd;this.#C=n===null?null:{start:n,end:n}}catch{this.#C=null}return!0}if(e.isContentEditable){e.focus();let i=window.getSelection();if(!i)return!0;let n=this.#L;if((!n||!e.contains(n.commonAncestorContainer))&&(n=document.createRange(),n.selectNodeContents(e),n.collapse(!1)),i.removeAllRanges(),i.addRange(n),!this.#ot(t)){let r=i.getRangeAt(0);r.deleteContents();let a=document.createTextNode(t);r.insertNode(a),r.setStartAfter(a),r.collapse(!0),i.removeAllRanges(),i.addRange(r),e.dispatchEvent(new InputEvent("input",{bubbles:!0,inputType:"insertText",data:t}))}return this.#L=i.rangeCount?i.getRangeAt(0).cloneRange():null,!0}return!1}#ot(t){try{return document.execCommand("insertText",!1,t)}catch{return!1}}#lt(){try{let t=JSON.parse(localStorage.getItem(wg)||"[]");return Array.isArray(t)?t:[]}catch{return[]}}#ut(t){let e=parseInt(this.getAttribute("recent-limit")??"24",10)||24,i=this.#lt();i=i.filter(n=>n!==t),i.unshift(t),i.length>e&&(i.length=e);try{localStorage.setItem(wg,JSON.stringify(i))}catch{}}#ht(){if(!this.#k||!this.#h||!this.#t)return;let t=this.#t.getBoundingClientRect(),e=this.#e.offsetWidth,i=this.#e.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,a=this.#U()?t.right-e:t.left;a=Math.max(bi,Math.min(a,n-e-bi));let o=t.bottom+4;o+i>r-bi&&t.top-i-4>=bi&&(o=t.top-i-4),o=Math.max(bi,Math.min(o,r-i-bi)),this.#e.style.setProperty("--picker-top",`${Math.round(o)}px`),this.#e.style.setProperty("--picker-left",`${Math.round(a)}px`)}#ct=t=>{t.type==="scroll"&&this.#e.contains(t.target)||this.#ht()};open(){if(!this.#d){this.#m="open";return}if(!(this.#h||!this.isConnected)){if(this.#G(),this.#S.extendedCount()!==this.#f&&this.#I(),this.#B(),this.#i.value="",this.#v="",this.#O(),this.#h=!0,this.setAttribute("open",""),this.#t?.setAttribute("aria-expanded","true"),this.#e.hidden=!1,this.#k){try{this.#e.showPopover()}catch{}this.#ht(),window.addEventListener("scroll",this.#ct,{capture:!0,passive:!0}),window.addEventListener("resize",this.#ct,{passive:!0})}this.#s.scrollTop=0,this.#V(),this.#i.focus(),this.dispatchEvent(new CustomEvent("emoji-picker:open",{bubbles:!0}))}}close(){if(!this.#d){this.#m=null;return}if(this.#h){if(this.#h=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#k){try{this.#e.hidePopover()}catch{}window.removeEventListener("scroll",this.#ct,{capture:!0}),window.removeEventListener("resize",this.#ct)}this.#e.hidden=!0,this.#E?.disconnect(),this.#E=null,this.dispatchEvent(new CustomEvent("emoji-picker:close",{bubbles:!0}))}}toggle(){if(!this.#d){this.#m=this.#m==="open"?null:"open";return}this.#h?this.close():this.open()}};A("emoji-picker",Cc);S();C();Nt();var xg="environment",Sg="preferences",kc={timeOfDay:!1,seasonal:!1},iT=900*1e3,le={...kc};function De(s,t,e){return s+(t-s)*Math.min(1,Math.max(0,e))}var ce={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let s=await D.get(xg,Sg);le=s?{...kc,...s}:{...kc},(le.timeOfDay||le.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...le}},save(s){return le={...le,...s},D.set(xg,Sg,le).catch(()=>{}),{...le}},setTimeOverride(s){this._timeOverride=s,this._hasActiveSource()&&this._update()},setMonthOverride(s){this._monthOverride=s,this._hasActiveSource()&&this._update()},setSource(s,t){let e=this.save({[s]:t});t?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(e)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(s){let t=s||this.load();return t.timeOfDay||t.seasonal},_captureBaseHues(){let s=document.documentElement;s.style.removeProperty("--hue-primary"),s.style.removeProperty("--hue-secondary"),s.style.removeProperty("--hue-accent");let t=s.getAttribute("data-theme");if(t){let e=`[data-theme~="${t}"]`;for(let i of document.styleSheets)try{for(let n=0;n<i.cssRules.length;n++){let r=i.cssRules[n];if(r.selectorText?.includes(e)&&!r.selectorText.includes("dark")){let a=r.style?.getPropertyValue("--hue-primary");if(a){this._baseHues={primary:parseFloat(a)||260,secondary:parseFloat(r.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(r.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let s=this.load(),t=0;s.timeOfDay&&(t+=this._getTimeOfDayOffset()),s.seasonal&&(t+=this._getSeasonalOffset());let e=document.documentElement;t!==0&&this._baseHues?(e.style.setProperty("--hue-primary",String(this._baseHues.primary+t)),e.style.setProperty("--hue-secondary",String(this._baseHues.secondary+t)),e.style.setProperty("--hue-accent",String(this._baseHues.accent+t*.5))):t===0&&this._clearModifiers()},_clearModifiers(){let s=document.documentElement;s.style.removeProperty("--hue-primary"),s.style.removeProperty("--hue-secondary"),s.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let s=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return s<5?-20:s<7?De(-20,20,(s-5)/2):s<10?De(20,5,(s-7)/3):s<14?De(5,0,(s-10)/4):s<17?De(0,-5,(s-14)/3):s<19?De(-5,15,(s-17)/2):s<21?De(15,-10,(s-19)/2):De(-10,-20,(s-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let s=this._monthOverride??new Date().getMonth(),e=this._getHemisphere()==="south"?(s+6)%12:s;return e>=2&&e<=4?5:e>=5&&e<=7?10:e>=8&&e<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),iT))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var tr=null;function kg(){return"0.7.1-e131c0b54"}function sT(){let s=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let e of s){let i=e.getAttribute("src");if(i){let n=i.lastIndexOf("/");if(n!==-1){t=i.slice(0,n)+"/sw.js";break}}}return t}function Tg(){return tr||(tr=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),tr}function Lg(s){return new Promise((t,e)=>{navigator.serviceWorker?.controller?Cg(navigator.serviceWorker.controller,s,t,e):Tg().then(i=>{let n=i.active||i.waiting||i.installing;n?Cg(n,s,t,e):e(new Error("No active service worker"))}).catch(e)})}function Cg(s,t,e,i){let n=new MessageChannel;n.port1.onmessage=r=>e(r.data),n.port1.onmessageerror=()=>i(new Error("Message error")),s.postMessage({type:t},[n.port2]),setTimeout(()=>i(new Error("SW message timeout")),5e3)}async function Ng(){return Lg("GET_STATUS")}async function Mg(){return Lg("CLEAR_CACHE")}async function Dg(){let s=await Tg();return await s.update(),{updated:!!s.waiting}}function nT(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(nT()){let s=sT();window.addEventListener("load",()=>{tr=navigator.serviceWorker.register(s).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}Nt();mn();var gi=null,Rt="settings",sr={motionFx:!0,sounds:!1,charShortcuts:!0},$c=()=>({...sr,charShortcuts:Gt()}),lT=document.documentElement.hasAttribute("data-sticky"),Ic=null,cT={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},uT='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function he(s){return String(s).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}async function Rc(s){let t=document.documentElement;s?t.dataset.sticky="":delete t.dataset.sticky;try{let e=await Promise.resolve().then(()=>(Mc(),Rg));s?e.initStickyManager():e.destroyStickyManager()}catch{}}var _c=class extends w{#t=null;#e=null;#i=!1;#n=!1;#s=0;#r="";#a=new Set;#o=[];#c=[];#l={...sr,charShortcuts:Gt()};#u=document.documentElement.hasAttribute("data-sticky");setup(){let t=++this.#s;return this.#r||=crypto.randomUUID().slice(0,8),this.#k(),this.#L(),this.#tt(),this.listen(window,"vb:theme-change",this.#G),this.listen(window,"vb:extensions-change",this.#G),this.listen(window,"vb:a11y-themes-change",this.#G),this.#n&&(this.#n=!1,this.open()),this.#b().then(()=>{this.#h(t)&&this.#tt()}),!0}teardown(){this.#s++;for(let e of this.#o)clearTimeout(e);this.#o=[],this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false");let t=!!this.#e?.contains(document.activeElement);this.#e?.remove(),t&&this.#t?.isConnected&&this.#t.focus(),this.#e=null}#h(t){return t===this.#s&&this.isConnected}#d(t,e={}){let i=this.getAttribute(`data-label-${t}`)??cT[t]??t;for(let[n,r]of Object.entries(e))i=i.replaceAll(`{${n}}`,String(r));return i}#p(t){return he(this.#d(t))}get data(){return{a11yThemes:[...this.#c],extensions:{...this.#l},sticky:this.#u}}set data(t){if(!t||typeof t!="object")return;let e=[],i=[];Array.isArray(t.a11yThemes)&&(this.#c=t.a11yThemes.map(String),i.push("a11y"),e.push(D.set(Rt,"a11y",this.#c)),this.#Y(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#c]}))),t.extensions&&typeof t.extensions=="object"&&(this.#l={...$c(),...t.extensions},i.push("extensions"),e.push(D.set(Rt,"extensions",this.#l)),this.#et()),t.sticky!=null&&(this.#u=!!t.sticky,i.push("sticky"),e.push(D.set(Rt,"sticky",this.#u?"on":"off")),Rc(this.#u));for(let n of i)this.#a.add(n);this.#e&&this.#tt(),Promise.allSettled(e).then(()=>{for(let n of i)this.#a.delete(n);this.#e&&this.#tt(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#b(){let[t,e,i]=await Promise.all([D.get(Rt,"a11y"),D.get(Rt,"extensions"),D.get(Rt,"sticky")]);Ic===null&&(Ic=lT&&i!=="on"),this.#a.has("a11y")||(this.#c=Array.isArray(t)?t:[]),this.#a.has("extensions")||(this.#l={...$c(),...e??{}}),this.#a.has("sticky")||(this.#u=document.documentElement.hasAttribute("data-sticky"))}#f(t){return t!==""&&t!==void 0}#g(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#m(t,e){return t?e==="compact"?"compact":e==="spacious"?"spacious":"default":""}#w(t){return t!==""&&t!==void 0}#A(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#y(t,e){return t?e==="flush"?"flush":e==="elevated"?"elevated":"default":""}#v(t){if(!t)return"card";let e=t.split(/\s+/);for(let i of e)if(i==="stretch"||i==="integrated")return i;return"card"}#S(t){return t?t.split(/\s+/).includes("fixed"):!1}#E(t,e){let i=[];return t&&t!=="card"&&i.push(t),e&&i.push("fixed"),i.join(" ")||"card"}#x(t){return this.#e?.querySelector(t)??null}#k(){this.#t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#t||(this.#t=document.createElement("button"),this.#t.setAttribute("type","button"),this.#t.setAttribute("data-trigger",""),this.#t.setAttribute("data-minted",""),this.#t.className="settings-trigger",this.#t.innerHTML=uT,this.prepend(this.#t)),this.#t.hasAttribute("data-minted")&&this.#t.setAttribute("aria-label",this.#d("trigger")),this.#t.setAttribute("aria-haspopup","dialog"),this.#t.setAttribute("aria-expanded","false"),this.#e=document.createElement("div"),this.#e.className="settings-panel",this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#d("dialog")),this.#e.tabIndex=-1;let t=`settings-panel-${this.#r}`;this.#e.id=t,this.#t.setAttribute("aria-controls",t),this.#e.innerHTML=this.#C(),this.appendChild(this.#e)}#C(){let{mode:t,brand:e,fluid:i,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:l,pageBgGradEnd:c,pageBgGradDir:u}=H.getState(),h=[...this.#c],p={...this.#l},d=ce.load(),f=this.#f(i),m=this.#g(i),b=this.#w(n),g=this.#A(n),v=this.#r,y=x=>this.#p(x),E=(x,N,F,rt,X,_={})=>`
717
717
  <fieldset data-segmented>
718
718
  <legend class="visually-hidden">${N}</legend>
719
719
  ${F.map(q=>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-breeze",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "A layered HTML component system extending HTML's native model",
5
5
  "type": "module",
6
6
  "main": "./dist/cdn/vanilla-breeze.js",
@@ -65,7 +65,7 @@
65
65
  "prebuild": "npm run clean",
66
66
  "dev": "cd site && npm run dev",
67
67
  "dev:functions": "npx wrangler pages dev site/dist/pages --port 8788 --kv VB_KV --d1 vanilla_breeze_analytics --compatibility-date 2026-04-17",
68
- "build": "npm run build:api && npm run check:nav && node scripts/generate-page-dates.mjs && npm run build:feed && npm run build:cdn && npm run build:demos && cd site && npm run build && cd .. && npm run build:site-assets && cd site && node scripts/setup-preview.js",
68
+ "build": "npm run build:api && npm run -s build:cem && npm run check:nav && node scripts/generate-page-dates.mjs && npm run build:feed && npm run build:cdn && npm run build:demos && cd site && npm run build && cd .. && npm run build:site-assets && cd site && node scripts/setup-preview.js",
69
69
  "build:site-assets": "node scripts/build-demos.js && node scripts/assemble-site.js && node scripts/generate-sitemap.js",
70
70
  "audit:deploy": "node scripts/audit-deploy-parity.js",
71
71
  "build:dev": "cd site && npm run build",
@@ -115,7 +115,7 @@
115
115
  "test:all": "npm test && npx playwright test",
116
116
  "budget": "node scripts/bundle-budget.js",
117
117
  "budget:themes": "node scripts/theme-budget.js",
118
- "prepublishOnly": "npm run build:cdn",
118
+ "prepublishOnly": "npm run -s build:cem && npm run build:cdn",
119
119
  "generate:shape-edges": "node scripts/generate-shape-edges.mjs",
120
120
  "check:shape-edges": "node scripts/generate-shape-edges.mjs --check"
121
121
  },