@qratilabs/qrati-connect 2.25.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/element/1dmOpMwn2.js +1 -0
  2. package/element/2CzUGwUv.js +1 -0
  3. package/element/{CVRTTCyF.js → BBWyJmHC.js} +1 -1
  4. package/element/BNaRcekR2.js +1 -0
  5. package/element/BXZi_HIE.js +4 -0
  6. package/element/Bb4v1eCh2.js +14 -0
  7. package/element/{qQ9Xx6H32.js → BfPopwQu2.js} +8 -8
  8. package/element/{C9T-_wQ82.js → BlD6lUxS.js} +4 -4
  9. package/element/BlmPmkho.js +41 -0
  10. package/element/{iknPnbyg2.js → BmU1kgIz2.js} +28 -28
  11. package/element/Bo39kG4k2.js +1 -0
  12. package/element/{CJXPO3HP.js → Bt5DH8OK.js} +1 -1
  13. package/element/{BccTn5v-2.js → BvrbBj1F.js} +1 -1
  14. package/element/BwwxqSTC2.js +1 -0
  15. package/element/{CgUphJWo.js → C7zv6hcG.js} +1 -1
  16. package/element/CBLQRRGX2.js +3 -0
  17. package/element/{BV9JHI5n2.js → CCDjXLSf.js} +35 -35
  18. package/element/CD7ZeUsI2.js +9 -0
  19. package/element/CDUjv5F52.js +1 -0
  20. package/element/{CATr-3VW.js → CE4Zhv-W.js} +1 -1
  21. package/element/{CsfDBJh72.js → CM46pkhP2.js} +2 -2
  22. package/element/CMR1TPJ1.js +3 -0
  23. package/element/CVdpS1mF2.js +9 -0
  24. package/element/{DF0LxcV7.js → CitgNM58.js} +1 -1
  25. package/element/{mQzpzQ_t.js → CpYO5bBq.js} +1 -1
  26. package/element/Cqyszkb5.js +1 -0
  27. package/element/{C3dOFk9A.js → CtWIgfGz.js} +1 -1
  28. package/element/CtxIOzTC2.js +1 -0
  29. package/element/Cw3szkAB.js +1 -0
  30. package/element/CwPz_TbG.js +4 -0
  31. package/element/CzHEb5lR2.js +36 -0
  32. package/element/D6nJgjWV.js +5 -0
  33. package/element/{DlqJDAie2.js → D9UPX_0d2.js} +1 -1
  34. package/element/DAjJ8IJf.js +1 -0
  35. package/element/{iuooW4mt.js → DBUAmPz_.js} +8 -8
  36. package/element/DDyjgYNE.js +1 -0
  37. package/element/{Ctl9NdWl2.js → DER_7fjj2.js} +1 -1
  38. package/element/DLSVYuRG.js +8 -0
  39. package/element/DdACKOZr.js +1 -0
  40. package/element/DhbEeiM3.js +8 -0
  41. package/element/DpD2Abx9.js +1 -0
  42. package/element/DvW8TE7T.js +1 -0
  43. package/element/{DGbyGc8b.js → DwanMJWW.js} +1 -1
  44. package/element/KcnPb5CZ.js +1 -0
  45. package/element/L4hWU3Nc.js +1 -0
  46. package/element/{ChJXhA9c.js → OGzsLhnG.js} +1 -1
  47. package/element/{BCTYvPrD.js → OnH8Izqn.js} +1 -1
  48. package/element/Ot24jlyb2.js +1 -0
  49. package/element/{DZtaQWVG2.js → PRmGsKkz2.js} +1 -1
  50. package/element/PVzBLdl-2.js +5 -0
  51. package/element/VF9qDLJE2.js +1 -0
  52. package/element/{2CMH9VMM.js → X0P7ujR0.js} +1 -1
  53. package/element/b3Wjw4T02.js +16 -0
  54. package/element/{DnQ6XaLR.js → nOtAuUm1.js} +1 -1
  55. package/element/uIYtFcCq2.js +93 -0
  56. package/element/web.es.js +42 -42
  57. package/element/xW6UboQF.js +3 -0
  58. package/package.json +1 -1
  59. package/element/BFCgbC5I2.js +0 -14
  60. package/element/BZu3c37u.js +0 -1
  61. package/element/BxbojrJs.js +0 -8
  62. package/element/C12iSy3L.js +0 -1
  63. package/element/C6dzWeQk2.js +0 -93
  64. package/element/C7iuJ0h32.js +0 -35
  65. package/element/C9kBlCZx2.js +0 -3
  66. package/element/CM46vluW.js +0 -1
  67. package/element/CMnzxWwG.js +0 -9
  68. package/element/CZbEGemi2.js +0 -4
  69. package/element/CaX2xgrP.js +0 -41
  70. package/element/Cko4QHwX.js +0 -1
  71. package/element/CqBk9L5O.js +0 -1
  72. package/element/D5TKEdBd2.js +0 -3
  73. package/element/DCj_fMN5.js +0 -5
  74. package/element/DRP9vxts2.js +0 -4
  75. package/element/DWjheKBP2.js +0 -3
  76. package/element/EjMoIoSK.js +0 -1
  77. package/element/Z0-Tddye2.js +0 -16
  78. package/element/ZYvo9BjF2.js +0 -8
  79. package/element/dT6WSX65.js +0 -1
  80. package/element/h4ZjZXfe2.js +0 -1
  81. package/element/rg8L51I62.js +0 -5
  82. /package/element/{CfMNBPpx2.js → CfMNBPpx.js} +0 -0
  83. /package/element/{DPg_DKOi.js → DPg_DKOi2.js} +0 -0
  84. /package/element/{DnIueBGr2.js → DnIueBGr.js} +0 -0
@@ -0,0 +1 @@
1
+ import{p as t,t as l,w as r}from"./DrrpB4Om.js";import{c as a}from"./DpD2Abx9.js";import{t as s}from"./OGzsLhnG.js";import{t as e}from"./Bt5DH8OK.js";import{t as o}from"./Bki5T_lb.js";var p=({url:p,alt:i="",thumbnailUrl:c,blurhash:h,pswpData:n={},curateLink:u,onClick:m})=>{const w=t(()=>(t=>Object.keys(t).reduce((l,r)=>{const a=t[r];return null==a||""===a||(l[`data-pswp-${s=r,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=a),l;var s},{}))(n),[n]),f=/* @__PURE__ */l(r,{children:[/* @__PURE__ */l(e,{threshold:.1,src:c||p,blurhash:h,alt:i}),n.type===a.VIDEO&&/* @__PURE__ */l("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */l("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"})})})]});if(m)/* @__PURE__ */return l("button",{className:"h-full w-full",onClick:m,children:f});if(u)/* @__PURE__ */return l(s,{to:u,className:"h-full w-full",children:f});const d=p&&o(p,["http:","https:"])?p:void 0;return d?/* @__PURE__ */l("a",{href:d,className:"pswp-item block h-full w-full",...w,...c?{"data-pswp-thumbnail-url":c}:{},...h?{"data-pswp-blurhash":h}:{},target:"_blank",rel:"noreferrer",children:f}):/* @__PURE__ */l("span",{className:"pswp-item block h-full w-full",...w,...c?{"data-pswp-thumbnail-url":c}:{},...h?{"data-pswp-blurhash":h}:{},children:f})};export{p as t};
@@ -1,4 +1,4 @@
1
- import{T as r,t as e}from"./DrrpB4Om.js";import{i as t}from"./CaX2xgrP.js";import{r as a}from"./CATr-3VW.js";function i({className:r}){/* @__PURE__ */
1
+ import{T as r,t as e}from"./DrrpB4Om.js";import{i as t}from"./BlmPmkho.js";import{r as a}from"./CE4Zhv-W.js";function i({className:r}){/* @__PURE__ */
2
2
  return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:r,"aria-hidden":"true",focusable:"false",children:[
3
3
  /* @__PURE__ */e("circle",{cx:"18",cy:"12",r:"0",fill:"currentColor",children:/* @__PURE__ */e("animate",{attributeName:"r",begin:".67",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),
4
4
  /* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",children:/* @__PURE__ */e("animate",{attributeName:"r",begin:".33",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),
@@ -0,0 +1 @@
1
+ var e=class{constructor(e){this.lightbox=e,this.fullscreen=!1,this.options={fullScreenButtonOrder:7},e.on("init",()=>{this.initPswpEvents(e.pswp)})}getRootNode(){return this.lightbox?.pswp?.element?.getRootNode?.()||document}querySelector(e){return this.getRootNode().querySelector?.(e)||document.querySelector(e)}syncFullscreenState(){const e=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;this.fullscreen=Boolean(e);const t=this.querySelector("#pswp__icn-exit-fullscreen"),l=this.querySelector("#pswp__icn-fullscreen");t&&(t.style.display=this.fullscreen?"inline":"none"),l&&(l.style.display=this.fullscreen?"none":"inline")}initPswpEvents(e){const t=()=>this.syncFullscreenState();e.events.add(document,"fullscreenchange",t),e.events.add(document,"webkitfullscreenchange",t),e.on("uiRegister",()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&e.ui.registerElement({name:"fullscreen-button",title:"Toggle fullscreen view",order:this.options.fullScreenButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn p-1" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-fullscreen"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-exit-fullscreen"/><path id="pswp__icn-fullscreen" d="M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"/><path id="pswp__icn-exit-fullscreen" style="display:none" d="M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"/></svg>',onClick:()=>{this.toggleFullscreen(e)}})})}toggleFullscreen(e){const t=e.element;this.fullscreen?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),e.options.showHideAnimationType="zoom",this.fullscreen=!1):(t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen(),e.options.showHideAnimationType="fade",this.fullscreen=!0);const l=this.querySelector("#pswp__icn-exit-fullscreen"),n=this.querySelector("#pswp__icn-fullscreen");l&&(l.style.display=this.fullscreen?"inline":"none"),n&&(n.style.display=this.fullscreen?"none":"inline")}};export{e as default};
@@ -0,0 +1 @@
1
+ import{_ as t,h as s,r as e,v as i}from"./DrrpB4Om.js";import{A as r,C as n,D as o,d as u,j as a,x as h,y as c}from"./BlmPmkho.js";import{n as p}from"./DDyjgYNE.js";var m=class extends h{#t;#s=void 0;#e;#i;constructor(t,s){super(),this.#t=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#t.defaultMutationOptions(t),r(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():"pending"===this.#e?.state.status&&this.#e.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#s}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#r(),this.#n()}mutate(t,s){return this.#i=s,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(t)}#r(){const t=this.#e?.state??p();this.#s={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#n(t){c.batch(()=>{if(this.#i&&this.hasListeners()){const e=this.#s.variables,i=this.#s.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===t?.type){try{this.#i.onSuccess?.(t.data,e,i,r)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(t.data,null,e,i,r)}catch(s){Promise.reject(s)}}else if("error"===t?.type){try{this.#i.onError?.(t.error,e,i,r)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(void 0,t.error,e,i,r)}catch(s){Promise.reject(s)}}}this.listeners.forEach(t=>{t(this.#s)})})}};function l(r,n){const h=u(n),[p]=s(()=>new m(h,r));t(()=>{p.setOptions(r)},[p,r]);const l=e(i(t=>p.subscribe(c.batchCalls(t)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),d=i((t,s)=>{p.mutate(t,s).catch(o)},[p]);if(l.error&&a(p.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:d,mutateAsync:l.mutate}}export{l as t};
@@ -0,0 +1,4 @@
1
+ import{r as t}from"./DdACKOZr.js";import{C as e,_ as l,f as r,h as a,p as o,t as i}from"./DrrpB4Om.js";import{a as n,n as c,u as s}from"./BlmPmkho.js";import{t as p}from"./KcnPb5CZ.js";import{v as g}from"./DpD2Abx9.js";import{t as m}from"./DvW8TE7T.js";import{a as d,i as h,n as b,r as u,t as v}from"./BvrbBj1F.js";import{t as f}from"./CfMNBPpx.js";var x={top:60,bottom:60,left:276,right:60},w="#fb8500",q=new p,C=(t,l,r)=>{e(/* @__PURE__ */i(s,{client:q,children:/* @__PURE__ */i(d,{event:t,onExplore:r})}),l)},y=t=>{const e=document.createElement("div");e.style.cssText=`\n background:${u(t.color,"#fb8500")};color:#fff;border-radius:20px;padding:5px 10px;\n font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;\n box-shadow:0 2px 8px rgba(0,0,0,0.25);border:2px solid rgba(255,255,255,0.4);\n display:inline-flex;align-items:center;gap:6px;\n `;const l=document.createElement("span");l.textContent=t.folder.name;const r=document.createElement("span");return r.style.cssText="background:rgba(0,0,0,0.18);border-radius:10px;padding:1px 5px;font-size:10px;",r.textContent=String(t.eventCount),e.appendChild(l),e.appendChild(r),e},z=({apiKey:e,is3D:s,onExplore:p,logoUrl:d})=>{const u=r(null),q=r(null),z=r(null),E=r(s),k=r([]),M=r([]),V=r(null),A=r(!1),L=r(!1),B=r(null),[H,S]=a(s),Z=o(()=>(()=>{try{const t=sessionStorage.getItem(g);if(!t)return null;const e=JSON.parse(t);if(Array.isArray(e?.center)&&"number"==typeof e.zoom)return e}catch{}return null})(),[]),[j,_]=a(!1),[T,F]=a(!0),{folderTree:R,activeFolderId:D,activeFolder:G,visibleEvents:I,setActiveFolderId:O,isLoadingEvents:P}=m(),{organization:U}=c(),$=()=>{k.current.forEach(t=>t.remove()),k.current=[]},N=()=>{M.current.forEach(t=>t.remove()),M.current=[]},W=(t,e)=>{const l=e?"visible":"none";for(const r of["heatmap","event-clusters","cluster-count","unclustered-point"])t.getLayer(r)&&t.setLayoutProperty(r,"visibility",l)};return l(()=>{if(!u.current||q.current)return;f("maplibre-gl",".maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:\"\";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:\"\";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}");let l,r=!1;return(async()=>{try{const a=(await import("./X0P7ujR0.js").then(e=>/* @__PURE__ */t(e.default,1))).default;if(r)return;if(!u.current)return;const o=Z?.center??[0,20],i=Z?.zoom??3,n=new a.Map({container:u.current,style:`https://api.maptiler.com/maps/streets-v2/style.json?key=${e}`,center:o,zoom:i,minZoom:0,pitch:0,bearing:0,renderWorldCopies:!1,canvasContextAttributes:{antialias:!0}});n.setProjection(E.current?{type:"globe"}:{type:"mercator"}),q.current=n,z.current=a,n.on("load",()=>{if(r)return;const t=n.getStyle()?.layers??[];let e,l;for(const r of t){"symbol"===r.type&&r.layout?.["text-field"]&&!e&&(e=r.id);const t=r;"building"!==t["source-layer"]||l||(l=t.source)}l&&!n.getLayer("3d-buildings")&&n.addLayer({id:"3d-buildings",source:l,"source-layer":"building",filter:["has","render_height"],type:"fill-extrusion",minzoom:2,paint:{"fill-extrusion-color":["interpolate",["linear"],["get","render_height"],0,"lightgray",200,"royalblue",400,"lightblue"],"fill-extrusion-height":["interpolate",["linear"],["zoom"],14,0,15,["get","render_height"]],"fill-extrusion-base":["case",["has","render_min_height"],["get","render_min_height"],0],"fill-extrusion-opacity":.6}},e),n.addSource("all-events",{type:"geojson",data:{type:"FeatureCollection",features:[]},cluster:!0,clusterRadius:50,clusterMaxZoom:14}),n.addSource("heat-events",{type:"geojson",data:{type:"FeatureCollection",features:[]}}),n.addLayer({id:"heatmap",type:"heatmap",source:"heat-events",layout:{visibility:"none"},paint:{"heatmap-weight":["interpolate",["linear"],["get","views"],0,0,200,1],"heatmap-intensity":["interpolate",["linear"],["zoom"],0,1,9,3],"heatmap-color":["interpolate",["linear"],["heatmap-density"],0,"rgba(33,102,172,0)",.2,"rgb(103,169,207)",.4,"rgb(209,229,240)",.6,"rgb(253,219,199)",.8,"rgb(239,138,98)",1,"rgb(178,24,43)"],"heatmap-radius":["interpolate",["linear"],["zoom"],0,4,9,30],"heatmap-opacity":["interpolate",["linear"],["zoom"],6,.85,11,0]}}),n.addLayer({id:"event-clusters",type:"circle",source:"all-events",layout:{visibility:"none"},filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],w,10,"#e63946",30,"#9b2226"],"circle-radius":["step",["get","point_count"],16,10,20,30,26],"circle-stroke-width":2,"circle-stroke-color":"#fff"}}),n.addLayer({id:"cluster-count",type:"symbol",source:"all-events",layout:{visibility:"none","text-field":"{point_count_abbreviated}","text-size":12},paint:{"text-color":"#fff"}}),n.addLayer({id:"unclustered-point",type:"circle",source:"all-events",layout:{visibility:"none"},filter:["!",["has","point_count"]],paint:{"circle-radius":7,"circle-color":w,"circle-stroke-color":"#fff","circle-stroke-width":2}}),n.on("click","event-clusters",t=>{const e=n.queryRenderedFeatures(t.point,{layers:["event-clusters"]});if(!e.length)return;const l=e[0].properties?.cluster_id,r=n.getSource("all-events");l&&r?.getClusterExpansionZoom&&r.getClusterExpansionZoom(l).then(t=>{n.easeTo({center:e[0].geometry.coordinates.slice(0,2),zoom:t,duration:600})}).catch(()=>{})}),n.on("click","unclustered-point",t=>{const e=t.features?.[0];if(!e)return;const l=e.geometry.coordinates.slice(0,2),r=e.properties??{},o={_id:r._id,slug:r.slug,name:r.name,views:r.views,location:{x:l[0],y:l[1],label:r.label},contents:r.thumbnailUrl?[{thumbnailUrl:r.thumbnailUrl}]:[]};B.current&&(B.current.remove(),B.current=null);const i=document.createElement("div");C(o,i,p);const c=new a.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-10]}).setLngLat(l).setDOMContent(i).addTo(n);B.current=c,c.on("close",()=>{B.current===c&&(B.current=null)})}),n.on("click",t=>{!n.queryRenderedFeatures(t.point,{layers:["event-clusters","unclustered-point"]}).length&&B.current&&(B.current.remove(),B.current=null)}),n.on("mouseenter","event-clusters",()=>{n.getCanvas().style.cursor="pointer"}),n.on("mouseleave","event-clusters",()=>{n.getCanvas().style.cursor=""}),n.on("mouseenter","unclustered-point",()=>{n.getCanvas().style.cursor="pointer"}),n.on("mouseleave","unclustered-point",()=>{n.getCanvas().style.cursor=""}),_(!0),F(!1)});const c=()=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{try{const t=n.getCenter();sessionStorage.setItem(g,JSON.stringify({center:[t.lng,t.lat],zoom:n.getZoom()}))}catch{}},250)};n.on("zoomend",c),n.on("moveend",c),l=()=>{$(),N(),V.current&&clearTimeout(V.current),n.off("zoomend",c),n.off("moveend",c),n.remove(),q.current=null,z.current=null}}finally{r||F(!1)}})(),()=>{r=!0,l?.()}},[e]),l(()=>{if(!j)return;const t=q.current,e=z.current;if(t&&e)if($(),N(),null===D&&R.length>0){W(t,!1);const l=r=>{for(const a of r)if(a.centroid){const l=y(a);l.addEventListener("click",()=>O(a.folder._id));const r=new e.Marker({element:l,anchor:"center"}).setLngLat([a.centroid[0],a.centroid[1]]).addTo(t);k.current.push(r)}else a.children.length>0&&l(a.children)};l(R)}else if(0===R.length&&null===D){if(0===I.length)return;const l=I.map(t=>({type:"Feature",geometry:{type:"Point",coordinates:[t.location.x,t.location.y]},properties:{_id:t._id,slug:t.slug,name:t.name,views:t.views??0,label:t.location?.label??"",thumbnailUrl:t.contents?.[0]?.thumbnailUrl??""}})),r={type:"FeatureCollection",features:l};if(t.getSource("all-events")?.setData(r),t.getSource("heat-events")?.setData({...r,features:l.map(t=>({...t,properties:{views:t.properties.views}}))}),W(t,!0),!L.current&&(L.current=!0,!Z)){const l=new e.LngLatBounds;I.forEach(t=>l.extend([t.location.x,t.location.y])),l.isEmpty()||t.fitBounds(l,{padding:x,maxZoom:8,duration:800})}}else{if(0===I.length)return;W(t,!1);const l=G?.color||w,r=new e.LngLatBounds;I.forEach(a=>{const o=a.location.x,i=a.location.y;r.extend([o,i]);const n=((t,e)=>{const l=document.createElement("div");if(l.style.cssText=`\n width:36px;height:36px;cursor:pointer;\n background:${t};border-radius:50% 50% 50% 0;transform:rotate(-45deg);\n border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,0.3);\n display:flex;align-items:center;justify-content:center;overflow:hidden;\n `,e){const t=document.createElement("img");t.src=h(e)??"",t.style.cssText="width:24px;height:24px;border-radius:50%;object-fit:cover;transform:rotate(45deg);",l.appendChild(t)}return l})(l,d);n.addEventListener("click",()=>{B.current&&(B.current.remove(),B.current=null);const l=document.createElement("div");C(a,l,p);const r=new e.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-40]}).setLngLat([o,i]).setDOMContent(l).addTo(t);B.current=r,r.on("close",()=>{B.current===r&&(B.current=null)})});const c=new e.Marker({element:n}).setLngLat([o,i]).addTo(t);M.current.push(c)})}},[D,R,I,j,p,d,O,G,Z]),l(()=>{if(!j)return;const t=q.current;if(!t)return;if(!A.current&&Z)return void(A.current=!0);A.current=!0;const e={padding:x,duration:3e3,essential:!0};if(D){const l=b(R,D);if(!l?.folder.boundary?.length)return;const r=z.current;if(!r)return;const a=new r.LngLatBounds;for(const t of l.folder.boundary)a.extend([t.x,t.y]);a.isEmpty()||t.fitBounds(a,{...e,maxZoom:14})}else if(R.length>0){const l=z.current;if(!l)return;const r=new l.LngLatBounds,a=t=>{for(const e of t)e.centroid?r.extend([e.centroid[0],e.centroid[1]]):a(e.children)};a(R),r.isEmpty()||t.fitBounds(r,{...e,maxZoom:8})}},[D,R,j,Z]),l(()=>{q.current&&(E.current=H,q.current.setProjection(H?{type:"globe"}:{type:"mercator"}),q.current.easeTo({pitch:0,bearing:0,duration:600}))},[H]),/* @__PURE__ */i("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:n(U),children:[
2
+ /* @__PURE__ */i(v,{positionClass:"absolute top-3 left-16 z-[1000]",folderTree:R,activeFolderId:D,setActiveFolderId:O}),
3
+ /* @__PURE__ */i("button",{type:"button",onClick:()=>S(t=>!t),class:"bg-background hover:bg-foreground/10 absolute top-4 right-4 z-[1000] rounded-xl px-3 py-2 text-xs font-semibold shadow-lg backdrop-blur-sm",children:H?"2D":"3D"}),P&&/* @__PURE__ */i("div",{class:"absolute inset-0 z-10 flex items-center justify-center bg-white/60",children:/* @__PURE__ */i("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"})}),T&&/* @__PURE__ */i("div",{class:"absolute inset-0 z-20 flex items-center justify-center bg-white/85",children:/* @__PURE__ */i("div",{class:"flex flex-col items-center gap-3",children:[/* @__PURE__ */i("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"}),/* @__PURE__ */i("p",{class:"text-sm font-medium text-slate-700",children:"Loading map…"})]})}),
4
+ /* @__PURE__ */i("div",{ref:u,class:"size-full"})]})};export{z as default};
@@ -0,0 +1,36 @@
1
+ import{D as e,E as t,T as n,_ as r,b as o,f as i,g as a,h as s,i as l,m as c,n as d,p as u,t as h,v as p,w as m,y as g}from"./DrrpB4Om.js";import{a as f,d as v,i as w,n as b,s as y}from"./BlmPmkho.js";import{t as x}from"./Cw3szkAB.js";import{S as N,_ as k,c as C,f as T,g as I,i as E,r as q,x as M}from"./DpD2Abx9.js";import{t as A}from"./OGzsLhnG.js";import{t as L}from"./CE4Zhv-W.js";import{n as S}from"./Bt5DH8OK.js";import{t as j}from"./Bki5T_lb.js";import{t as z}from"./Cqyszkb5.js";import{n as _}from"./BBWyJmHC.js";import{t as O}from"./CtWIgfGz.js";import{n as P,t as R}from"./CD7ZeUsI2.js";import{a as U,i as $,n as B,o as G,r as F,s as D,t as V}from"./CM46pkhP2.js";import{a as W,n as H,o as K,r as Q,t as Y}from"./PRmGsKkz2.js";function Z(e,t){const[n,r]=e;if(n===t)return e;if(void 0!==r&&void 0!==t&&void 0!==n&&t===r&&Math.abs(t-n)<=20){const o=Math.min(n,t),i=Math.max(n,t);return o===n&&i===r?e:[o,i]}return[t,n]}function J(e,t,n){const[[r],a]=o(Z,[n]),l=function(e){const[t,n]=s(e);return e===t||e&&t&&e.length===t.length&&!e.some((e,n)=>e!==t[n])?t:(n(e),e)}(t),c=i(void 0);return{containerRef:p(t=>{c.current?.disconnect(),c.current=void 0;const n=()=>a(function(e,t){let n=e?.clientWidth;if(void 0!==n&&t&&t.length>0){const e=[...t.filter(e=>e>0)].sort((e,t)=>t-e);e.push(Math.floor(e[e.length-1]/2)),n=e.find((t,r)=>t<=n||r===e.length-1)}return n}(t,l));n(),t&&"undefined"!=typeof ResizeObserver&&(c.current=new ResizeObserver(n),c.current.observe(t)),"function"==typeof e?e(t):e&&(e.current=t)},[e,l]),containerWidth:r}}function X(e){return["react-photo-album",e].filter(Boolean).join("--")}function ee({width:e,height:t}){const n=e/t;return Number.isFinite(n)?n:1}var te=Object.freeze([1200,600,300,0]);function ne(e,t){return"function"==typeof e?e(t):e}function re(e,t){return void 0!==t?ne(e,t):void 0}function oe(e,t,n,r=0){if(void 0===t)return;const o=re(e,t);return Math.round(Math.max(void 0===o?function(e,t){const n=te.findIndex(e=>e<=t);return ne(e[Math.max(n,0)],t)}(n,t):o,r))}function ie(e,{spacing:t,padding:n,componentsProps:r,render:o}){return{spacing:oe(t,e,[20,15,10,5]),padding:oe(n,e,[0,0,0,0]),componentsProps:ne(r,e)||{},render:ne(o,e)}}function ae(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function se(e,t,n,r,o,i,a){let s,l;const c=e=>{const t=i*(o-1)+2*a*o;return`calc((${e.match(/^\s*calc\((.*)\)\s*$/)?.[1]??e} - ${t}px) / ${ae((r-t)/n,5)})`},d=e.srcSet;return d&&d.length>0&&(s=d.concat(d.some(({width:t})=>t===e.width)?[]:[{src:e.src,width:e.width,height:e.height}]).sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", ")),l=t?.size?(t.sizes||[]).map(({viewport:e,size:t})=>`${e} ${c(t)}`).concat(c(t.size)).join(", "):`${Math.ceil(n/r*100)}vw`,{srcSet:s,sizes:l}}var le=l(function({as:e,render:t,context:n,classes:r=[],variables:o={},style:i,className:a,children:s,...l},c){const d=function(...e){return e.filter(Boolean).join(" ")}(...(Array.isArray(r)?r:[r]).filter(e=>"string"==typeof e).map(X),a),u={style:{...Object.fromEntries(Object.entries(o).map(([e,t])=>{return[(n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),`--${X(n)}`),"number"==typeof t?ae(t,5):t];var n})),...i},className:d,children:s,...l};if(t){const e=t({ref:c,...u},n);if(e)return e}return h(e||"div",{ref:c,...u})}),ce=l(function({photo:e,index:t,width:n,height:r,onClick:o,render:{wrapper:i,link:a,button:s,image:l,extras:c}={},componentsProps:{link:d,button:u,wrapper:p,image:m}={}},g){const{href:f}=e,v={photo:e,index:t,width:ae(n,3),height:ae(r,3)};let w;return w=f?{...d,as:"a",render:a,classes:["photo","link"],href:f,onClick:o}:o?{...u,as:"button",type:"button",render:s,classes:["photo","button"],onClick:o}:{...p,render:i,classes:"photo"},h(le,{ref:g,variables:{photoWidth:v.width,photoHeight:v.height},context:v,...w,children:[h(le,{as:"img",classes:"image",render:l,context:v,...m}),c?.({},v)]})}),de=l(function({layout:t,sizes:n,model:r,skeleton:o,onClick:i,render:{container:a,track:s,photo:l,...c}={},componentsProps:{container:d,track:u,link:p,button:m,wrapper:g,image:f}={}},v){const{spacing:w,padding:b,containerWidth:y,tracks:x,variables:N,horizontal:k}=r||{};return h(le,{role:"group","aria-label":"Photo album",...d,variables:{spacing:w,padding:b,containerWidth:y,...N},classes:["",t],render:a,ref:v,children:[void 0!==w&&void 0!==b&&void 0!==y&&x?.map(({photos:t,variables:r},o)=>{const a=t.length,d=k?a:x.length;return e(le,{...u,key:o,render:s,classes:"track",variables:{trackSize:a,...r}},t.map(e=>{const{photo:t,index:r,width:o}=e,{key:a,src:s,alt:u="",title:v,label:x}=t,N=i?e=>{i({event:e,photo:t,index:r})}:void 0;if(l){const t=l({onClick:N},e);if(t)return t}const k=e=>x?{"aria-label":x,...e}:e;return h(ce,{onClick:N,render:c,componentsProps:{image:{loading:"lazy",decoding:"async",src:s,alt:u,title:v,...se(t,n,o,y,d,w,b),...ne(f,e)},link:k(ne(p,e)),button:k(ne(m,e)),wrapper:ne(g,e)},...e},a??r)}))}),void 0===y&&o]})});function ue(e,t,n,r){return(t-(e.length-1)*n-2*r*e.length)/e.reduce((e,t)=>e+ee(t),0)}function he(e,t,n,r,o,i,a){const s=e.slice(t,n),l=ue(s,r,o,i);return l>0?(l-a)**2*s.length:void 0}var pe=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=J(o,t,n),{spacing:s,padding:l,targetRowHeight:c,minPhotos:d,maxPhotos:p,...m}=function(e,{photos:t,targetRowHeight:n,rowConstraints:r,...o}){const{spacing:i,padding:a,componentsProps:s,render:l}=ie(e,o),{singleRowMaxHeight:c,minPhotos:d,maxPhotos:u}=re(r,e)||{};if(void 0!==c&&void 0!==i&&void 0!==a){const e=Math.floor(t.reduce((e,{width:t,height:n})=>e+t/n*c+2*a,i*(t.length-1)));e>0&&(s.container={...s.container},s.container.style={maxWidth:e,...s.container.style})}return{...o,targetRowHeight:oe(n,e,[e=>e/5,e=>e/4,e=>e/3,e=>e/2]),render:l,spacing:i,padding:a,minPhotos:d,maxPhotos:u,componentsProps:s}}(a,{photos:e,...r});return h(de,{layout:"rows",ref:i,model:u(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?function(e,t,n,r,o,i,a){const s=Math.min(function(e,t,n,r){return ae(t/n/Math.min(...e.map(e=>ee(e))))+(r||0)+2}(e,r,o,i),a||1/0),l=i||1,c=e.length,d=new Array(c+1).fill(1/0),u=new Array(c+1).fill(-1);d[0]=0;for(let m=1;m<=c;m+=1)for(let i=m-l;i>=Math.max(0,m-s);i-=1){if(d[i]===1/0)continue;const a=he(e,i,m,r,t,n,o);if(void 0===a)break;const s=d[i]+a;(d[m]===1/0||d[m]>s&&(d[m]/s>1.005||-1!==u[m]&&u[m]<i))&&(d[m]=s,u[m]=i)}if(d[c]===1/0)return;const h=[];for(let m=c;0!==m;m=u[m])h.push(m);h.push(0),h.reverse();const p=[];for(let m=1;m<h.length;m+=1){const o=e.slice(h[m-1],h[m]).map((e,t)=>({photo:e,index:h[m-1]+t})),i=ue(o.map(({photo:e})=>e),r,t,n);p.push({photos:o.map(({photo:e,index:t})=>({photo:e,index:t,width:i*ee(e),height:i}))})}return{spacing:t,padding:n,containerWidth:r,tracks:p,horizontal:!0}}(e,s,l,a,c,d,p):void 0,[e,s,l,a,c,d,p]),...m})});function me(e,t,n,r,o,i,a){const s=[],l=a.reduce((e,t)=>e+t,0);for(let c=0;c<e.length-1;c+=1){const d=t.slice(e[c],e[c+1]).map((t,n)=>({photo:t,index:e[c]+n})),u=a.reduce((e,t,n)=>e+(i[c]-i[n])*t,0),h=(o-(e.length-2)*n-2*(e.length-1)*r-u)*a[c]/l;s.push({photos:d.map(({photo:e,index:t})=>({photo:e,index:t,width:h,height:h/ee(e)})),variables:{adjustedGaps:u,columnRatio:a[c]}})}return{tracks:s,variables:{totalRatio:l}}}function ge(e,t,n,r,o,i){const a=[],s=[];if(e.length<=i){const o=e.length>0?e.reduce((e,t)=>e+ee(t),0)/e.length:1;for(let t=0;t<i;t+=1)a[t]=2*n,s[t]=t<e.length?ee(e[t]):o;return me(Array.from({length:i+1},(t,n)=>Math.min(n,e.length)),e,t,n,r,a,s)}const l=(c=function(e,t,n,r,o){return i=>{const a=[],s=1.5*o;let l=r/ee(e[i])+2*n;for(let c=i+1;c<e.length+1&&(a.push([c,(o-l)**2]),!(l>s||c===e.length));c+=1)l+=r/ee(e[c])+t+2*n;return a}}(e,t,n,o,(e.reduce((e,t)=>e+o/ee(t),0)+t*(e.length-i)+2*n*e.length)/i),d=i,u=0,h=e.length,function(e,t,n){const r=[n];for(let o=n,i=t;i>0;i-=1)[o]=e.get(o)[i],r.push(o);return r.reverse()}(function(e,t,n,r){const o=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set;i.add(n);for(let a=0;a<t;a+=1){const n=[...i.keys()];i.clear(),n.forEach(n=>{const s=a>0?o.get(n)[a][1]:0;e(n).forEach(([e,l])=>{let c=o.get(e);c||(c=[],o.set(e,c));const d=s+l,u=c[a+1];(!u||u[1]>d&&(u[1]/d>1.0001||n<u[0]))&&(c[a+1]=[n,d]),a<t-1&&e!==r&&i.add(e)})})}return o}(c,d,u,h),d,h));var c,d,u,h;for(let p=0;p<l.length-1;p+=1){const r=e.slice(l[p],l[p+1]);a[p]=t*(r.length-1)+2*n*r.length,s[p]=1/r.reduce((e,t)=>e+1/ee(t),0)}return me(l,e,t,n,r,a,s)}function fe(e,t,n,r,o){const{tracks:i,variables:a}=ge(e,t,n,r,(r-t*(o-1)-2*n*o)/o,o);return i.some(e=>e.photos.some(({width:e,height:t})=>e<=0||t<=0))?o>1?fe(e,t,n,r,o-1):void 0:{tracks:i,spacing:t,padding:n,containerWidth:r,variables:{columns:o,...a}}}var ve=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=J(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...ie(e,n),columns:oe(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return h(de,{layout:"columns",ref:i,model:u(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?fe(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})});function we(e,t,n,r,o){const i=(r-t*(o-1)-2*n*o)/o;if(i<=0)return o>1?we(e,t,n,r,o-1):void 0;const a=[];for(let l=0;l<o;l+=1)a[l]=0;const s=e.reduce((e,r,o)=>{const s=a.reduce((e,t,n)=>t<a[e]-1?n:e,0);return a[s]=a[s]+i/ee(r)+t+2*n,e[s].push({photo:r,index:o}),e},Array.from({length:o},()=>[]));return{spacing:t,padding:n,containerWidth:r,variables:{columns:o},tracks:s.map(e=>({photos:e.map(({photo:e,index:t})=>({photo:e,index:t,width:i,height:i/ee(e)}))}))}}var be=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=J(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...ie(e,n),columns:oe(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return h(de,{layout:"masonry",ref:i,model:u(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?we(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})}),ye={[String(q.NONE)]:function({className:e}){/* @__PURE__ */
2
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */h("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5z"})})},[q.LINK]:function({className:e}){/* @__PURE__ */
3
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */h("path",{fill:"currentColor",d:"M7.95 21q-2.05 0-3.5-1.45T3 16.05q0-1 .375-1.9t1.075-1.6l2.625-2.625q.3-.3.713-.3t.712.3t.3.7t-.3.7l-2.65 2.65q-.425.425-.637.963T5 16.05q0 1.225.863 2.088T7.95 19q.575 0 1.125-.213t.975-.637l2.625-2.65q.3-.275.7-.275t.7.3t.3.7t-.3.7L11.45 19.55q-.7.7-1.6 1.075T7.95 21m1.25-6.2q-.3-.3-.3-.712t.3-.713L13.375 9.2q.3-.3.713-.3t.712.3t.3.713t-.3.712L10.625 14.8q-.3.3-.712.3t-.713-.3m6.3-.725q-.3-.3-.3-.7t.3-.7l2.65-2.625q.425-.425.625-.95t.2-1.1q0-1.25-.85-2.125T16.025 5q-.575 0-1.112.213t-.963.637L11.325 8.5q-.3.3-.7.3t-.7-.3t-.3-.712t.3-.713L12.55 4.45q.7-.7 1.6-1.075T16.05 3q2.05 0 3.488 1.45t1.437 3.525q0 .975-.363 1.875t-1.062 1.6l-2.625 2.625q-.3.3-.712.3t-.713-.3"})})},[q.EMAIL]:function({className:e}){/* @__PURE__ */
4
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */h("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12v1.45q0 1.475-1.012 2.513T18.5 17q-.875 0-1.65-.375t-1.3-1.075q-.725.725-1.638 1.088T12 17q-2.075 0-3.537-1.463T7 12t1.463-3.537T12 7t3.538 1.463T17 12v1.45q0 .65.425 1.1T18.5 15t1.075-.45t.425-1.1V12q0-3.35-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20h4q.425 0 .713.288T17 21t-.288.713T16 22zm2.125-7.875Q15 13.25 15 12t-.875-2.125T12 9t-2.125.875T9 12t.875 2.125T12 15t2.125-.875"})})},[q.PHONE]:function({className:e}){/* @__PURE__ */
5
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */h("path",{fill:"currentColor",d:"M19.95 21q-3.125 0-6.175-1.362t-5.55-3.863t-3.862-5.55T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.238t.325.562l.65 3.5q.05.4-.025.675T9.4 8.45L6.975 10.9q.5.925 1.187 1.787t1.513 1.663q.775.775 1.625 1.438T13.1 17l2.35-2.35q.225-.225.588-.337t.712-.063l3.45.7q.35.1.575.363T21 15.9v4.05q0 .45-.3.75t-.75.3M6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9m8.95 8.95q.975.425 1.988.675T19 18.95v-2.2l-2.35-.475zm0 0"})})},[q.SMS]:function({className:e}){/* @__PURE__ */
6
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */h("path",{fill:"currentColor",d:"m6 18l-2.3 2.3q-.475.475-1.088.213T2 19.575V4q0-.825.588-1.412T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.587 1.413T20 18zm-.85-2H20V4H4v13.125zM4 16V4zm4.713-5.288Q9 10.425 9 10t-.288-.712T8 9t-.712.288T7 10t.288.713T8 11t.713-.288m4 0Q13 10.426 13 10t-.288-.712T12 9t-.712.288T11 10t.288.713T12 11t.713-.288m4 0Q17 10.426 17 10t-.288-.712T16 9t-.712.288T15 10t.288.713T16 11t.713-.288"})})},[q.WHATSAPP]:function({className:e}){/* @__PURE__ */
7
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 258",className:e,"aria-hidden":"true",focusable:"false",children:[
8
+ /* @__PURE__ */h("defs",{children:[/* @__PURE__ */h("linearGradient",{id:"SVGK3KZq49U",x1:"50%",x2:"50%",y1:"100%",y2:"0%",children:[/* @__PURE__ */h("stop",{offset:"0%","stop-color":"#1faf38"}),/* @__PURE__ */h("stop",{offset:"100%","stop-color":"#60d669"})]}),/* @__PURE__ */h("linearGradient",{id:"SVGefMkoEOd",x1:"50%",x2:"50%",y1:"100%",y2:"0%",children:[/* @__PURE__ */h("stop",{offset:"0%","stop-color":"#f9f9f9"}),/* @__PURE__ */h("stop",{offset:"100%","stop-color":"#fff"})]})]}),
9
+ /* @__PURE__ */h("path",{fill:"url(#SVGK3KZq49U)",d:"M5.463 127.456c-.006 21.677 5.658 42.843 16.428 61.499L4.433 252.697l65.232-17.104a123 123 0 0 0 58.8 14.97h.054c67.815 0 123.018-55.183 123.047-123.01c.013-32.867-12.775-63.773-36.009-87.025c-23.23-23.25-54.125-36.061-87.043-36.076c-67.823 0-123.022 55.18-123.05 123.004"}),
10
+ /* @__PURE__ */h("path",{fill:"url(#SVGefMkoEOd)",d:"M1.07 127.416c-.007 22.457 5.86 44.38 17.014 63.704L0 257.147l67.571-17.717c18.618 10.151 39.58 15.503 60.91 15.511h.055c70.248 0 127.434-57.168 127.464-127.423c.012-34.048-13.236-66.065-37.3-90.15C194.633 13.286 162.633.014 128.536 0C58.276 0 1.099 57.16 1.071 127.416m40.24 60.376l-2.523-4.005c-10.606-16.864-16.204-36.352-16.196-56.363C22.614 69.029 70.138 21.52 128.576 21.52c28.3.012 54.896 11.044 74.9 31.06c20.003 20.018 31.01 46.628 31.003 74.93c-.026 58.395-47.551 105.91-105.943 105.91h-.042c-19.013-.01-37.66-5.116-53.922-14.765l-3.87-2.295l-40.098 10.513z"}),
11
+ /* @__PURE__ */h("path",{fill:"#fff",d:"M96.678 74.148c-2.386-5.303-4.897-5.41-7.166-5.503c-1.858-.08-3.982-.074-6.104-.074c-2.124 0-5.575.799-8.492 3.984c-2.92 3.188-11.148 10.892-11.148 26.561s11.413 30.813 13.004 32.94c1.593 2.123 22.033 35.307 54.405 48.073c26.904 10.609 32.379 8.499 38.218 7.967c5.84-.53 18.844-7.702 21.497-15.139c2.655-7.436 2.655-13.81 1.859-15.142c-.796-1.327-2.92-2.124-6.105-3.716s-18.844-9.298-21.763-10.361c-2.92-1.062-5.043-1.592-7.167 1.597c-2.124 3.184-8.223 10.356-10.082 12.48c-1.857 2.129-3.716 2.394-6.9.801c-3.187-1.598-13.444-4.957-25.613-15.806c-9.468-8.442-15.86-18.867-17.718-22.056c-1.858-3.184-.199-4.91 1.398-6.497c1.431-1.427 3.186-3.719 4.78-5.578c1.588-1.86 2.118-3.187 3.18-5.311c1.063-2.126.531-3.986-.264-5.579c-.798-1.593-6.987-17.343-9.819-23.64"})]})},[q.MESSENGER]:function({className:e}){/* @__PURE__ */
12
+ return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",className:e,"aria-hidden":"true",focusable:"false",children:[
13
+ /* @__PURE__ */h("defs",{children:/* @__PURE__ */h("radialGradient",{id:"SVGhphmYc3G",cx:"19.247%",cy:"99.465%",r:"108.96%",fx:"19.247%",fy:"99.465%",children:[
14
+ /* @__PURE__ */h("stop",{offset:"0%","stop-color":"#09f"}),
15
+ /* @__PURE__ */h("stop",{offset:"60.975%","stop-color":"#a033ff"}),
16
+ /* @__PURE__ */h("stop",{offset:"93.482%","stop-color":"#ff5280"}),
17
+ /* @__PURE__ */h("stop",{offset:"100%","stop-color":"#ff7061"})]})}),
18
+ /* @__PURE__ */h("path",{fill:"url(#SVGhphmYc3G)",d:"M128 0C55.894 0 0 52.818 0 124.16c0 37.317 15.293 69.562 40.2 91.835c2.09 1.871 3.352 4.493 3.438 7.298l.697 22.77c.223 7.262 7.724 11.988 14.37 9.054L84.111 243.9a10.22 10.22 0 0 1 6.837-.501c11.675 3.21 24.1 4.92 37.052 4.92c72.106 0 128-52.818 128-124.16S200.106 0 128 0"}),
19
+ /* @__PURE__ */h("path",{fill:"#fff",d:"m51.137 160.47l37.6-59.653c5.98-9.49 18.788-11.853 27.762-5.123l29.905 22.43a7.68 7.68 0 0 0 9.252-.027l40.388-30.652c5.39-4.091 12.428 2.36 8.82 8.085l-37.6 59.654c-5.981 9.489-18.79 11.852-27.763 5.122l-29.906-22.43a7.68 7.68 0 0 0-9.25.027l-40.39 30.652c-5.39 4.09-12.427-2.36-8.818-8.085"})]})}},xe=({open:e,ad:t,onClose:n,captureAdClick:r})=>{const o=Boolean(t?.targetType&&t.targetType!==q.NONE),i=ye[t?.targetType]??ye[q.LINK],a=t?.imageUrl&&j(t.imageUrl,["http:","https:"])?t.imageUrl:void 0;/* @__PURE__ */
20
+ return h(Y,{open:Boolean(e&&t),onOpenChange:e=>!e&&n?.(),children:/* @__PURE__ */h(H,{className:"border-none p-0",children:[/* @__PURE__ */h(W,{className:"sr-only",children:[/* @__PURE__ */h(K,{children:t?.title}),/* @__PURE__ */h(Q,{children:t?.description})]}),/* @__PURE__ */h("div",{className:"flex max-w-2xl flex-col overflow-hidden",children:[a&&/* @__PURE__ */h("img",{className:"h-auto w-full object-contain sm:max-h-96",src:a,alt:t?.title||"Advertisement"}),
21
+ /* @__PURE__ */h("div",{className:"flex flex-col gap-2 p-3",children:[/* @__PURE__ */h(L,{variant:"h4",align:"center",lines:2,children:t?.title}),/* @__PURE__ */h(L,{variant:"body3",color:"secondary",align:"center",lines:4,children:t?.description})]}),o&&/* @__PURE__ */h(O,{fullWidth:!0,className:"rounded-none",onClick:()=>{r?.(t?._id,t?.targetType??q.LINK,t?.targetUrl),n?.()},icon:/* @__PURE__ */h(i,{className:"size-5"}),children:t?.targetText})]})]})})},Ne=({style:e,content:t,curateLink:n,onAdClick:r,hideControls:o})=>{const{captureAdImpression:i,captureAdEngagement:a,captureAdClick:s}=B(),l=Boolean(n&&r),c=t.ctaBg||"#ff4800",d=t.ctaForeground||"#FFFFFF",u=ye[t?.targetType??q.LINK];/* @__PURE__ */
22
+ return h("div",{style:e,className:"group relative mb-1 overflow-hidden rounded",children:[
23
+ /* @__PURE__ */h(S,{className:"size-full",threshold:.8,triggerOnce:!0,onChange:e=>{e&&i(t._id)},onClick:()=>a(t._id),children:/* @__PURE__ */h(z,{url:t.src||t.imageUrl,thumbnailUrl:t.src||t.imageUrl,blurhash:t.blurhash,alt:t.caption,onClick:l?r:void 0,pswpData:{id:t._id,type:C.AD,hash:t._id,width:t.width,height:t.height,title:t.title,description:t.description,targetType:t.targetType,targetText:t.targetText,targetUrl:t.targetUrl,thumbnailUrl:t.imageUrl,blurhash:t.blurhash}})}),
24
+ /* @__PURE__ */h("span",{className:"bg-background/70 absolute top-1 right-1 rounded px-1 text-xs font-medium",children:"Ad"}),!o&&(t.title||t.targetType!==q.NONE)&&/* @__PURE__ */h("div",{className:"absolute bottom-0 flex w-full flex-col lg:opacity-0 lg:transition-opacity lg:group-hover:opacity-100",children:[t.title&&/* @__PURE__ */h("div",{className:"bg-background/60 px-3 py-1",children:/* @__PURE__ */h("h3",{className:"line-clamp-1 text-sm font-medium",children:t.title})}),t?.targetType!==q.NONE&&/* @__PURE__ */h("button",{className:"flex w-full items-center justify-center gap-1 rounded-none border-0 py-2 text-nowrap sm:gap-2",style:{backgroundColor:c,color:d},onClick:()=>{l?r?.():s(t._id,t.targetType,t.targetUrl)},children:[/* @__PURE__ */h("span",{style:{color:d},children:/* @__PURE__ */h(u,{})}),t?.targetText]})]})]})},ke=({style:e,gamConfig:t,slotIndex:n,eventId:o,organizationId:a})=>{const s=i(null),l=i(null),{trackGamAnalytics:c}=B(),d=`gam-slot-${o??"ev"}-${n}`,u=Math.max(1,Math.round(e?.width||t.sizes[0]?.[0]||300)),p=Math.max(1,Math.round(e?.height||t.sizes[0]?.[1]||250)),m=i({w:u,h:p});return r(()=>{let e=!1,n=null,r=null,i=null,u=null;return(async()=>{await U(),!e&&s.current&&window.googletag.cmd.push(()=>{if(e)return;F(d);const{w:h,h:p}=m.current,g=[[h,p],...t.sizes],f=window.googletag.defineSlot(t.adUnitPath,g,d)?.addService(window.googletag.pubads());if(!f)return;l.current=f,r=window.googletag.pubads(),o?f.setConfig({targeting:{qrati_event:o,...t.categories.length>0?{qrati_category:t.categories}:{}}}):t.categories.length>0&&f.setConfig({targeting:{qrati_category:t.categories}}),i=e=>{e.slot===f&&c({eventId:o,organizationId:a,type:k.GAM_IMPRESSION,creativeId:String(e.creativeId??""),lineItemId:String(e.lineItemId??""),advertiserId:String(e.advertiserId??""),isEmpty:e.isEmpty??!1})},r.addEventListener("slotRenderEnded",i),u=e=>{e.slot===f&&c({eventId:o,organizationId:a,type:k.GAM_VIEWABLE})},r.addEventListener("impressionViewable",u);const v=s.current;v&&(n=V({container:v,onClick:()=>{c({eventId:o,organizationId:a,type:k.GAM_CLICK})}}),$(),window.googletag.display(d))})})(),()=>{e=!0,n?.(),r&&"function"==typeof r.removeEventListener&&(i&&r.removeEventListener("slotRenderEnded",i),u&&r.removeEventListener("impressionViewable",u));const t=l.current;l.current=null,t&&window.googletag?.cmd?.push(()=>{window.googletag.destroySlots([t])})}},[o,t.adUnitPath,t.categories,a,d]),/* @__PURE__ */h("div",{style:{width:u,height:p},className:"relative overflow-hidden rounded bg-neutral-100 dark:bg-neutral-800","data-gam-slot-index":n,children:/* @__PURE__ */h("div",{id:d,ref:s,style:{width:u,height:p},className:"gam-ad-slot"})})},Ce=(e,t)=>{if(!e||!t)return null;const n=t[e];if(!n)return null;try{const e=new Date(String(n)),t=/* @__PURE__ */new Date,r=e.getFullYear()===t.getFullYear(),o={weekday:"long",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0};return r||(o.year="numeric"),e.toLocaleString("en-US",o).replace(","," •")}catch{return null}},Te=t(null),Ie=()=>{const e=g(Te);if(!e)throw new Error("Popover components must be used within a Popover");return e},Ee=({children:e,className:t,open:n,onOpenChange:r})=>{const[o,l]=s(!1),c="boolean"==typeof n,d=c?n:o,u=a(),p=`popover-trigger-${u}`,m=`popover-content-${u}`,g=i(null);/* @__PURE__ */
25
+ return h(Te.Provider,{value:{isOpen:d,setIsOpen:e=>{c||l(e),r?.(e)},triggerId:p,contentId:m,triggerRef:g},children:/* @__PURE__ */h("div",{"data-slot":"popover",className:w("relative inline-block",t),children:e})})},qe=({children:e,asChild:t,className:r,onClick:o,...i})=>{const{isOpen:a,setIsOpen:s,triggerId:l,contentId:c,triggerRef:d}=Ie();if(t){const t=Array.isArray(e)?e[0]:e;if(t&&t.type){const e=t.props?.className;return n(t,{ref:e=>{d.current=e},id:l,className:r?e?`${e} ${r}`:r:e,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":a?c:void 0,onClick:e=>{s(!a),t.props?.onClick?.(e)},"data-state":a?"open":"closed"})}}/* @__PURE__ */
26
+ return h("button",{ref:d,id:l,type:"button","aria-haspopup":"dialog","aria-expanded":a,"aria-controls":a?c:void 0,"data-slot":"popover-trigger","data-state":a?"open":"closed",className:r,onClick:e=>{s(!a),o?.(e)},...i,children:e})},Me=({children:e,className:t,align:n="center",side:o="top",sideOffset:a=4,...l})=>{const{isOpen:u,setIsOpen:p,contentId:m,triggerRef:g}=Ie(),{organization:v,portalContainer:y}=b(),x=i(null),[N,k]=s(null);if(c(()=>{if(!u)return;const e=()=>{if(!g.current||!x.current)return;const e=g.current.getBoundingClientRect(),t=x.current.getBoundingClientRect();let r=e.left,i=e.bottom+a;"center"===n&&(r=e.left+e.width/2-t.width/2),"end"===n&&(r=e.right-t.width),"top"===o&&(i=e.top-t.height-a),"left"===o&&(r=e.left-t.width-a,i=e.top+e.height/2-t.height/2),"right"===o&&(r=e.right+a,i=e.top+e.height/2-t.height/2),"bottom"===o&&(i=e.bottom+a),k({top:i,left:r})},t=requestAnimationFrame(e);return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{cancelAnimationFrame(t),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[n,u,o,a,g]),r(()=>{if(!u)return;const e=e=>{const t="function"==typeof e.composedPath?e.composedPath():[],n=e.target,r=x.current&&(x.current.contains(n)||t.includes(x.current)),o=g.current&&(g.current.contains(n)||t.includes(g.current));r||o||p(!1)},t=e=>{"Escape"===e.key&&(p(!1),g.current?.focus())},n=window.setTimeout(()=>{document.addEventListener("mousedown",e)},0);return document.addEventListener("keydown",t),()=>{window.clearTimeout(n),document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[u,p,g]),!u)return null;const C=/* @__PURE__ */h("div",{ref:x,id:m,role:"dialog","aria-modal":"false","data-state":u?"open":"closed",className:w("bg-background text-foreground border-border shadow-outer rounded outline-none",t),style:{position:"fixed",top:N?.top??0,left:N?.left??0,zIndex:2010,...f(v)},...l,children:e});return"undefined"!=typeof document?d(C,y??document.body):C},Ae=({eventId:e,contentId:t,emojis:n=[],counts:o={},userReaction:a})=>{const{user:l,props:c,organization:d}=b(),u=c?.loginUrl,{handleReactionClick:p,isPending:m}=(()=>{const e=v(),{props:t,user:n}=b(),r=t?.organizationId,o=x({mutationFn:async({eventId:e,contentId:t,emoji:o})=>{await y.post(E.UPDATE_REACTION,{json:{eventId:e,contentId:t,reaction:o},headers:{"x-org-id":r,Authorization:`Bearer ${n?.token}`}})},onMutate:async({eventId:t,contentId:n,emoji:r})=>{const o=[N.CONTENTS_BY_EVENT(t)];await e.cancelQueries({queryKey:o});const i=e.getQueriesData({queryKey:o});return e.setQueriesData({queryKey:o},e=>((e,t,n)=>e?.pages&&Array.isArray(e.pages)?{...e,pages:e.pages.map(e=>e.data?{...e,data:e.data.map(e=>{if(e._id!==t)return e;const r={...e.reactionCounts??{}};return e.userReaction&&e.userReaction!==n&&(r[e.userReaction]=Math.max(0,(r[e.userReaction]??1)-1)),e.userReaction===n?(r[n]=Math.max(0,(r[n]??1)-1),{...e,reactionCounts:r,userReaction:void 0}):(r[n]=(r[n]??0)+1,{...e,reactionCounts:r,userReaction:n})})}:e)}:e)(e,n,r)),{previousData:i}},onError:(t,n,r)=>{r?.previousData?.forEach(([t,n])=>{e.setQueryData(t,n)}),_.error("Failed to add reaction"),console.error("Error handling reaction click:",t,n)}});return{handleReactionClick:async(e,t,r)=>{if(!e||!t||!r)return!1;if(!n)return _.error("Please login to react"),!1;try{return await o.mutateAsync({eventId:e,contentId:t,emoji:r}),!0}catch(i){return!1}},isPending:o.isPending}})(),[g,f]=s(!1),[k,C]=s(null),T=i(null),I=Object.values(o).reduce((e,t)=>e+t,0);return r(()=>()=>{T.current&&clearTimeout(T.current)},[]),/* @__PURE__ */h(Ee,{open:g,onOpenChange:f,children:[/* @__PURE__ */h(qe,{asChild:!0,children:/* @__PURE__ */h("button",{type:"button",className:w("bg-background/50 flex items-center gap-1 rounded px-2 py-1 backdrop-blur-sm transition-transform duration-150 ease-out will-change-transform active:scale-95 sm:gap-2 sm:py-0",k&&"scale-[1.03] shadow-sm"),children:[(n||[]).slice().sort((e,t)=>(o[t]||0)-(o[e]||0)).slice(0,1).map(e=>/* @__PURE__ */h("span",{className:w("text-sm transition-transform duration-150 ease-out sm:text-lg",k===(a||e)&&"scale-125"),children:a||e},`${t}-${e}-1`)),I>0&&/* @__PURE__ */h("span",{className:"text-xs font-bold sm:text-sm",children:I||0})]})}),/* @__PURE__ */h(Me,{side:"top",align:"end",children:[l?null:/* @__PURE__ */h("div",d?.customAuth?{className:"p-2 font-semibold",children:["Please"," ",
27
+ /* @__PURE__ */h("a",{className:"text-info underline",href:u,children:"Login"})," ","to react"]}:{className:"p-2 font-semibold",children:["Please"," ",
28
+ /* @__PURE__ */h(A,{className:"text-info underline",to:M.LOGIN,children:"Login"})," ","to react"]}),l&&/* @__PURE__ */h("div",{className:"flex gap-1 p-2",children:n.map(n=>{const r=a===n;/* @__PURE__ */
29
+ return h("div",{className:"flex flex-col items-center",children:[/* @__PURE__ */h("span",{className:"text-xs font-medium",children:o[n]||0}),/* @__PURE__ */h("button",{type:"button",disabled:m,className:w("text-3xl transition-transform duration-150 ease-out disabled:opacity-50",r?"scale-125":"hover:scale-110",k===n&&"scale-125",m&&"cursor-not-allowed"),onClick:()=>(async n=>{!m&&p&&(C(n),f(!1),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>C(null),180),p(e,t,n))})(n),children:n})]},`${t}-${n}-2`)})})]})]})},Le=({event:e={},content:t,curateLink:n})=>e.engagementStyle===T.CONTEST?/* @__PURE__ */h("button",{className:"bg-background/75 flex items-center gap-1 rounded px-2 py-1",children:[/* @__PURE__ */h(D,{className:"size-4"}),/* @__PURE__ */h("span",{className:"text-xs font-semibold",children:parseFloat(String(t.score||0)).toFixed(1)})]}):e.engagementStyle===T.REACTION&&e.reactionEmojis?.length?/* @__PURE__ */h(Ae,{eventId:e?._id,contentId:t._id,emojis:e?.reactionEmojis,engagementStyle:e?.engagementStyle,counts:t.reactionCounts||{},userReaction:t.userReaction}):null,Se=({content:e})=>/* @__PURE__ */h("div",{className:"w-full space-y-3 px-3 pb-3",children:[e?.caption&&/* @__PURE__ */h("span",{"data-tooltip-target":"tooltip-default",className:"hidden w-full text-xs drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)] sm:block",children:/* @__PURE__ */h("div",{role:"note",title:e?.caption,className:"lg:text-md line-clamp-1 text-xs text-white lg:font-medium",children:e?.caption})}),/* @__PURE__ */h("div",{className:"flex items-center justify-between",children:/* @__PURE__ */h("span",{className:"lg:text-md line-clamp-1 text-sm font-medium text-white drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",children:e?.user?.name})})]}),je=({event:e,content:t,style:n,timestampField:r,curateLink:o,onChangeFaceUrl:i,hideControls:a,showQuickSearch:s,showBingSearch:l})=>{const c=`content-${t._id}`,d=u(()=>Ce(r,t),[r,t]),g=p(()=>{i?.(t?.url);const e=document.getElementById("media-gallery-container");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},[i,t?.url]),f=u(()=>({id:t._id,type:C.IMAGE,hash:t._id,width:t.width,height:t.height,thumbnailUrl:t.thumbnailUrl,blurhash:t.blurhash,caption:t.caption}),[t._id,t.width,t.height,t.thumbnailUrl,t.blurhash,t.caption]);/* @__PURE__ */
30
+ return h("div",{id:c,style:n,className:"group relative mb-1 overflow-hidden rounded [content-visibility:auto]",children:[/* @__PURE__ */h(z,{url:t.src,alt:t.caption,blurhash:t.blurhash,thumbnailUrl:t.thumbnailUrl,curateLink:o,pswpData:f}),!a&&/* @__PURE__ */h(m,{children:[d&&/* @__PURE__ */h("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:d}),
31
+ /* @__PURE__ */h("div",{className:"absolute top-2 right-2 flex flex-col gap-2",children:[s&&(t.faces?.length??0)>0&&/* @__PURE__ */h("button",{className:"bg-primary rounded-full p-1 text-gray-200 opacity-50 transition-all sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:g,children:/* @__PURE__ */h(G,{className:"text-primary-foreground"})}),l&&t.url&&/* @__PURE__ */h("button",{className:"bg-background cursor-pointer bg-opacity-50 rounded-full p-1 opacity-50 transition-all sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:()=>window.open(P(t.url),"_blank","noopener,noreferrer"),"aria-label":"Search this image on Bing",children:/* @__PURE__ */h(R,{})})]}),
32
+ /* @__PURE__ */h("div",{className:"",children:[/* @__PURE__ */h("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */h(Se,{content:t})}),/* @__PURE__ */h("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */h(Le,{event:e,content:t,curateLink:o})})]})]})]})},ze=({content:e,style:t,event:n,timestampField:r,curateLink:o,hideControls:i})=>{const a=u(()=>Ce(r,e),[r,e]);/* @__PURE__ */
33
+ return h("div",{id:`content-${e._id}`,className:"group relative mb-1 overflow-hidden rounded [content-visibility:auto]",style:t,children:[/* @__PURE__ */h(z,{url:e.src??e.url,thumbnailUrl:e.thumbnailUrl,blurhash:e.blurhash,alt:e.caption,curateLink:o,pswpData:{id:e._id,type:C.VIDEO,hash:e._id,width:e.width,height:e.height,thumbnailUrl:e.thumbnailUrl,blurhash:e.blurhash,caption:e.caption}}),!i&&/* @__PURE__ */h("div",{className:"transition-opacity duration-500",children:[a&&/* @__PURE__ */h("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:a}),
34
+ /* @__PURE__ */h("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */h(Se,{content:e})}),
35
+ /* @__PURE__ */h("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */h(Le,{event:n,content:e,curateLink:o})})]})]})},_e=({event:e,contents:t=[],gamConfig:n,singleColumnMode:o,kioskMode:a,timestampField:l,curateLink:c,onChangeFaceUrl:d,showQuickSearch:g})=>{const f=i(null),v=i(!1),y=i(null),x=u(()=>`gallery-${e?._id??""}`,[e?._id]),{captureAdImpression:N,captureAdClick:k}=B(),{portalContainer:T,organization:E}=b(),q=E?._id,M=Boolean(E?.advancedSettings?.bingImageSearch?.showInGallery),A=Boolean(E?.advancedSettings?.bingImageSearch?.showInLightbox),[L,S]=s(null);r(()=>()=>{f.current?.destroy?.(),f.current=null},[e?.galleryLayout,c,x,T]);const j=p(async e=>{if(c||f.current||v.current)return;const t=y.current,n=e.target.closest("a");if(!t||!n||!t.contains(n))return;e.preventDefault(),v.current=!0;const r=Array.from(t.querySelectorAll("a")).indexOf(n);try{const[{default:e},{default:n},{default:o},{default:i},{default:a},{default:s},{default:l},{loadPhotoSwipe:c},d]=await Promise.all([import("./web.es.js").then(e=>e.n),import("./Bo39kG4k2.js"),import("./BwwxqSTC2.js"),import("./BNaRcekR2.js"),import("./CDUjv5F52.js"),import("./CtxIOzTC2.js"),import("./1dmOpMwn2.js"),import("./web.es.js").then(e=>e.t),A?import("./VF9qDLJE2.js"):Promise.resolve(null)]),u=new e({gallery:t,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:c,appendToEl:T??document.body});f.current=u,new n(u),new o(u),new i(u),new a(u,N,k),new s(u),new l(u),d&&new d.default(u),u.init(),r>=0&&f.current?.loadAndOpen?.(r)}finally{v.current=!1}},[c,T,N,k,A]),z=u(()=>{switch(e?.galleryLayout){case I.ROW:return pe;case I.COLUMN:return ve;case I.MASONRY:return be;default:return pe}},[e?.galleryLayout]),_=u(()=>t.map(e=>{const t=e.type===C.IMAGE||e.type===C.VIDEO?e.url:e.type===C.GAM_AD?"":e.imageUrl;return{...e,src:t??"",width:e.dimension?.width||e.width||4,height:e.dimension?.height||e.height||3}}),[t]),O=u(()=>({container:({ref:e,className:t,children:n})=>/* @__PURE__ */h("div",{ref:e,className:t??"",children:n}),photo:(t,{photo:r,width:o,height:i,index:s})=>{const u=r;let p=null;switch(u.type){case C.IMAGE:p=je;break;case C.VIDEO:p=ze;break;case C.AD:p=Ne;break;case C.GAM_AD:return n?/* @__PURE__ */h(ke,{style:{width:o,height:i},gamConfig:n,slotIndex:u.slotIndex??s,eventId:e?._id,organizationId:q},`${u._id??s}-${s}`):null;default:p=null}return p?/* @__PURE__ */h(p,{style:{width:o,height:i},event:e,content:u,timestampField:l,onAdClick:c?()=>S(u):void 0,hideControls:a,curateLink:c?`${c}/${u._id}`:null,onChangeFaceUrl:d,showQuickSearch:g,showBingSearch:M},`${u._id??s}-${s}`):null}}),[e,n,q,l,c,a,d,g,M]);/* @__PURE__ */
36
+ return h(m,{children:[/* @__PURE__ */h("div",{id:x,ref:y,onClickCapture:j,className:w(o?"w-full lg:w-1/3":"w-full"),children:/* @__PURE__ */h(z,{spacing:4,rowConstraints:e=>{const t={minPhotos:1,maxPhotos:4,singleRowMaxHeight:400};return o&&(t.minPhotos=1,t.maxPhotos=e<400?2:e<800?3:4),t},columns:e=>o?1:e<400?2:e<800?3:4,photos:_,render:O})}),/* @__PURE__ */h(xe,{open:Boolean(L),ad:L,onClose:()=>S(null),captureAdClick:k})]})};export{_e as default};
@@ -0,0 +1,5 @@
1
+ import{t as r,w as t}from"./DrrpB4Om.js";import{n as e}from"./BlmPmkho.js";import{x as n}from"./DpD2Abx9.js";import{l as a,t as i}from"./OGzsLhnG.js";import{t as s}from"./CE4Zhv-W.js";import{t as o}from"./D35mTuTT.js";var m=()=>{const{user:m,organization:c,signout:l}=e(),d=a(),h=c?.integrationSettings?.hideQratiBranding;/* @__PURE__ */
2
+ return r("div",{className:"pt-16 sm:pt-24",children:[c&&/* @__PURE__ */r("div",{className:"mx-auto py-2",children:c.customAuth?m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:m.name}):/* @__PURE__ */r(t,{children:[!m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:[
3
+ /* @__PURE__ */r(i,{className:"text-primary hover:underline",to:n.LOGIN,children:"Login"})," ","•"," ",
4
+ /* @__PURE__ */r(i,{className:"text-primary hover:underline",to:n.REGISTER,children:"Register"})]}),m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:[m.name," •"," ",
5
+ /* @__PURE__ */r("button",{type:"button",className:"text-destructive cursor-pointer border-none bg-transparent p-0 hover:underline",onClick:async()=>{await l(),d(n.PUBLIC_EVENTS)},children:"Logout"})]})]})}),!h&&/* @__PURE__ */r(o,{})]})};export{m as t};
@@ -1,2 +1,2 @@
1
- import{t as e}from"./DrrpB4Om.js";import{i as r}from"./CaX2xgrP.js";import{t as a}from"./CATr-3VW.js";var s=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",t=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Enter a valid email":"Please enter your email",o=e=>e?e.length<8?"Min password length is 8":void 0:"Please enter your password",i=e=>{if(!e.trim())return"First name is required"},n=e=>{if(!e.trim())return"Last name is required"},d=(e,r)=>e?e!==r?"Passwords do not match":void 0:"Please confirm your password",l=({label:s,type:t="text",disabled:o,error:i,iconSVG:n,actionIcon:d,onActionClick:l,actionLabel:m,className:c="",step:u,...p})=>/* @__PURE__ */e("div",{className:"relative",children:[s&&/* @__PURE__ */e(a,{variant:"body1",className:"sm:mb-1",children:s}),
1
+ import{t as e}from"./DrrpB4Om.js";import{i as r}from"./BlmPmkho.js";import{t as a}from"./CE4Zhv-W.js";var s=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",t=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Enter a valid email":"Please enter your email",o=e=>e?e.length<8?"Min password length is 8":void 0:"Please enter your password",i=e=>{if(!e.trim())return"First name is required"},n=e=>{if(!e.trim())return"Last name is required"},d=(e,r)=>e?e!==r?"Passwords do not match":void 0:"Please confirm your password",l=({label:s,type:t="text",disabled:o,error:i,iconSVG:n,actionIcon:d,onActionClick:l,actionLabel:m,className:c="",step:u,...p})=>/* @__PURE__ */e("div",{className:"relative",children:[s&&/* @__PURE__ */e(a,{variant:"body1",className:"sm:mb-1",children:s}),
2
2
  /* @__PURE__ */e("div",{className:"relative",children:[n&&/* @__PURE__ */e("div",{className:r("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",o?"text-muted-foreground":" "),children:n}),/* @__PURE__ */e("input",{type:t,disabled:o,step:"number"===t?u:void 0,"aria-invalid":!!i,className:r("border-border shadow-outer focus:border-primary peer w-full rounded border px-4 py-2 focus:border focus:ring-0 focus:outline-none",o?"text-muted-foreground bg-transparent":"bg-input",i?"border-destructive animate-pulse":"border-border animate-none",n?"pl-9":"",c),...p,value:p.value??""})]}),i&&/* @__PURE__ */e(a,{variant:"caption",color:"error","data-testid":"input-error",children:i})]});export{i as a,t as i,s as n,n as o,d as r,o as s,l as t};
@@ -0,0 +1 @@
1
+ import{f as e,h as t,l as r,m as s}from"./BlmPmkho.js";var i=class extends e{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){const{state:i}=e,a=super.createResult(e,r),{isFetching:c,isRefetching:h,isError:o,isRefetchError:n}=a,P=i.fetchMeta?.fetchMore?.direction,f=o&&"forward"===P,g=c&&"forward"===P,u=o&&"backward"===P,d=c&&"backward"===P;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:s(r,i.data),hasPreviousPage:t(r,i.data),isFetchNextPageError:f,isFetchingNextPage:g,isFetchPreviousPageError:u,isFetchingPreviousPage:d,isRefetchError:n&&!f&&!u,isRefetching:h&&!g&&!d}}};function a(e,t){return r(e,i,t)}var c=e=>e?.meta?.currentPage>1?e.meta.currentPage-1:void 0,h=e=>e?.meta?.currentPage<e?.meta?.totalPages?e.meta.currentPage+1:void 0;export{c as n,a as r,h as t};
@@ -1,9 +1,9 @@
1
- import{E as e,S as t,T as r,_ as a,f as n,h as o,p as s,t as l,v as i,w as d,y as c}from"./DrrpB4Om.js";import{a as p,i as m,n as u,s as f}from"./CaX2xgrP.js";import{t as b}from"./ChJXhA9c.js";import{r as h}from"./CATr-3VW.js";import{t as v}from"./BsYbcfkG.js";var g=h("inline-flex h-fit flex-auto cursor-pointer items-center justify-center border transition-all duration-200 focus:outline-none active:scale-95",{variants:{size:{sm:"gap-1.5 p-1.5 text-xs",md:"gap-3 px-3 py-2 text-sm",lg:"gap-3 px-4 py-3 text-base"}},defaultVariants:{size:"md"}}),x=({size:e,buttons:t=[],onChange:r,selected:a,className:n})=>/* @__PURE__ */l("div",{className:m("button-group-overlap shadow-outer z-0 flex h-fit rounded",n),children:t.map((n,o)=>{const s=0===o,i=o===t.length-1,d=n.value===a;/* @__PURE__ */
2
- return l("button",{type:"button",onClick:()=>r?.(n.value),className:m(g({size:e}),d?n.activeClassName?n.activeClassName:"bg-primary border-primary text-primary-foreground hover:bg-primary/90 border":"hover:bg-muted/50 active:bg-muted border-border border",s&&"rounded-l",i&&"rounded-r"),children:[!n.icon&&/* @__PURE__ */l("span",{className:"font-medium sm:py-0.5",children:n.text}),n.icon&&/* @__PURE__ */l("div",{className:"size-6",children:n.icon})]},n.value)})}),N=()=>{const{initializing:e,orgRole:t,user:r,loadingUser:a}=u(),n=r?t??void 0:void 0;return{role:n,isSuper:Boolean(r?.isSuper),loading:Boolean(a||e),isOwner:n===f.OWNER,isAdmin:n===f.ADMIN,isModerator:n===f.MODERATOR}};function q({content:e,children:t,position:r="top",className:a,contentClassName:n}){const[s,i]=o(!1),{organization:d}=u();/* @__PURE__ */
3
- return l("div",{className:m("relative inline-block",a),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onClick:()=>i(!1),onBlur:()=>i(!1),children:[t,s&&/* @__PURE__ */l("div",{className:m("bg-popover text-popover-foreground border-border animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 pointer-events-auto absolute z-50 rounded border px-3 py-2 text-sm whitespace-nowrap shadow-md",{top:"bottom-full left-1/2 -translate-x-1/2 mb-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"}[r],n),"data-side":r,style:p(d),role:"tooltip",children:[e,/* @__PURE__ */l("div",{className:m("border-popover absolute h-0 w-0 border-4",{top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent"}[r])})]})]})}function y({className:e}){/* @__PURE__ */
4
- return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M10.825 22q-.675 0-1.162-.45t-.588-1.1L8.85 18.8q-.325-.125-.612-.3t-.563-.375l-1.55.65q-.625.275-1.25.05t-.975-.8l-1.175-2.05q-.35-.575-.2-1.225t.675-1.075l1.325-1Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337l-1.325-1Q2.675 9.9 2.525 9.25t.2-1.225L3.9 5.975q.35-.575.975-.8t1.25.05l1.55.65q.275-.2.575-.375t.6-.3l.225-1.65q.1-.65.588-1.1T10.825 2h2.35q.675 0 1.163.45t.587 1.1l.225 1.65q.325.125.613.3t.562.375l1.55-.65q.625-.275 1.25-.05t.975.8l1.175 2.05q.35.575.2 1.225t-.675 1.075l-1.325 1q.025.175.025.338v.674q0 .163-.05.338l1.325 1q.525.425.675 1.075t-.2 1.225l-1.2 2.05q-.35.575-.975.8t-1.25-.05l-1.5-.65q-.275.2-.575.375t-.6.3l-.225 1.65q-.1.65-.587 1.1t-1.163.45zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.487 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"})})}var w=e({open:!1,setOpen:()=>{}});function C({children:e,className:t,open:r,defaultOpen:a=!1,onOpenChange:n}){const[d,c]=o(a),p=void 0!==r?r:d,u=i(e=>{c(e),n?.(e)},[n]),f=s(()=>({open:p,setOpen:u}),[p,u]);/* @__PURE__ */
5
- return l(w.Provider,{value:f,children:/* @__PURE__ */l("div",{className:m("relative",t),children:e})})}function T({children:e,className:a,asChild:n=!1}){const{open:o,setOpen:s}=c(w),d=i(e=>{e.stopPropagation(),s(!o)},[o,s]);if(n){const n=t(e)[0];return n?r(n,{onClick:e=>{d(e),n.props?.onClick?.(e)},className:m(n.props?.className,a,"cursor-pointer")}):null}/* @__PURE__ */
6
- return l("span",{onClick:d,className:m("cursor-pointer",a),children:e})}function k({children:e,className:t,align:r="end",side:o="bottom",sideOffset:s=4}){const{open:i,setOpen:d}=c(w),f=n(null),{organization:b}=u();if(a(()=>{if(!i)return;const e=e=>{f.current&&!f.current.contains(e.target)&&d(!1)},t=e=>{"Escape"===e.key&&d(!1)};return document.addEventListener("click",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",t)}},[i,d]),!i)return null;const h="start"===r?"left-0":"end"===r?"right-0":"left-1/2 -translate-x-1/2",v="bottom"===o?{top:`calc(100% + ${s}px)`}:{bottom:`calc(100% + ${s}px)`};/* @__PURE__ */
7
- return l("div",{ref:f,style:{...p(b),...v},className:m("bg-popover text-popover-foreground border-border absolute z-50 min-w-32 rounded border p-1 shadow-md","animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",h,t),"data-side":o,children:e})}function z({children:e,className:a,href:n,onClick:o,onSelect:s,disabled:p,icon:u,title:f,variant:h="default",isChecked:g,isBeta:x,suffix:N,asChild:q}){const{setOpen:y}=c(w),C=m("hover:bg-primary/20 relative flex w-full cursor-pointer items-center gap-3 rounded px-3 py-2 text-left text-sm transition-colors outline-none select-none",p&&"pointer-events-none opacity-50","destructive"===h&&"text-destructive hover:bg-destructive/10 focus:bg-destructive/10",a),T=e??/* @__PURE__ */l(d,{children:[u,
8
- /* @__PURE__ */l("span",{className:"flex-1 truncate font-medium",children:f}),g&&/* @__PURE__ */l(v,{className:"text-primary size-5"}),x&&/* @__PURE__ */l("span",{className:"bg-primary text-primary-foreground rounded px-1.5 py-0.5 text-[10px]",children:"BETA"}),N&&/* @__PURE__ */l("span",{children:N})]}),k=i(e=>{p||(s?.(e),o?.(),y(!1))},[p,s,o,y]);if(q&&e){const a=t(e)[0];return a?r(a,{onClick:e=>{k(e),a.props?.onClick?.(e)},className:m(a.props?.className,C)}):null}return n?/* @__PURE__ */l(b,{to:n,onClick:k,className:C,children:T}):/* @__PURE__ */l("button",{onClick:k,className:C,disabled:p,type:"button",children:T})}function O({className:e}){/* @__PURE__ */
1
+ import{E as e,S as t,T as r,_ as o,f as a,h as n,p as s,t as l,v as i,w as d,y as c}from"./DrrpB4Om.js";import{a as p,i as m,n as u}from"./BlmPmkho.js";import{t as f}from"./DpD2Abx9.js";import{t as b}from"./OGzsLhnG.js";import{r as h}from"./CE4Zhv-W.js";import{t as v}from"./BsYbcfkG.js";var g=h("inline-flex h-fit flex-auto cursor-pointer items-center justify-center border transition-all duration-200 focus:outline-none active:scale-95",{variants:{size:{sm:"gap-1.5 p-1.5 text-xs",md:"gap-3 px-3 py-2 text-sm",lg:"gap-3 px-4 py-3 text-base"}},defaultVariants:{size:"md"}}),x=({size:e,buttons:t=[],onChange:r,selected:o,className:a})=>/* @__PURE__ */l("div",{className:m("button-group-overlap shadow-outer z-0 flex h-fit rounded",a),children:t.map((a,n)=>{const s=0===n,i=n===t.length-1,d=a.value===o;/* @__PURE__ */
2
+ return l("button",{type:"button",onClick:()=>r?.(a.value),className:m(g({size:e}),d?a.activeClassName?a.activeClassName:"bg-primary border-primary text-primary-foreground hover:bg-primary/90 border":"hover:bg-muted/50 active:bg-muted border-border border",s&&"rounded-l",i&&"rounded-r"),children:[!a.icon&&/* @__PURE__ */l("span",{className:"font-medium sm:py-0.5",children:a.text}),a.icon&&/* @__PURE__ */l("div",{className:"size-6",children:a.icon})]},a.value)})}),N=()=>{const{initializing:e,orgRole:t,user:r,loadingUser:o}=u(),a=r?t??void 0:void 0;return{role:a,isSuper:Boolean(r?.isSuper),loading:Boolean(o||e),isOwner:a===f.OWNER,isAdmin:a===f.ADMIN,isModerator:a===f.MODERATOR}};function q({content:e,children:t,position:r="top",className:o,contentClassName:a}){const[s,i]=n(!1),{organization:d}=u();/* @__PURE__ */
3
+ return l("div",{className:m("relative inline-block",o),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onClick:()=>i(!1),onBlur:()=>i(!1),children:[t,s&&/* @__PURE__ */l("div",{className:m("bg-popover text-popover-foreground border-border animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 pointer-events-auto absolute z-50 rounded border px-3 py-2 text-sm whitespace-nowrap shadow-md",{top:"bottom-full left-1/2 -translate-x-1/2 mb-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"}[r],a),"data-side":r,style:p(d),role:"tooltip",children:[e,/* @__PURE__ */l("div",{className:m("border-popover absolute h-0 w-0 border-4",{top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent"}[r])})]})]})}function y({className:e}){/* @__PURE__ */
4
+ return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M10.825 22q-.675 0-1.162-.45t-.588-1.1L8.85 18.8q-.325-.125-.612-.3t-.563-.375l-1.55.65q-.625.275-1.25.05t-.975-.8l-1.175-2.05q-.35-.575-.2-1.225t.675-1.075l1.325-1Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337l-1.325-1Q2.675 9.9 2.525 9.25t.2-1.225L3.9 5.975q.35-.575.975-.8t1.25.05l1.55.65q.275-.2.575-.375t.6-.3l.225-1.65q.1-.65.588-1.1T10.825 2h2.35q.675 0 1.163.45t.587 1.1l.225 1.65q.325.125.613.3t.562.375l1.55-.65q.625-.275 1.25-.05t.975.8l1.175 2.05q.35.575.2 1.225t-.675 1.075l-1.325 1q.025.175.025.338v.674q0 .163-.05.338l1.325 1q.525.425.675 1.075t-.2 1.225l-1.2 2.05q-.35.575-.975.8t-1.25-.05l-1.5-.65q-.275.2-.575.375t-.6.3l-.225 1.65q-.1.65-.587 1.1t-1.163.45zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.487 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"})})}var w=e({open:!1,setOpen:()=>{}});function C({children:e,className:t,open:r,defaultOpen:o=!1,onOpenChange:a}){const[d,c]=n(o),p=void 0!==r?r:d,u=i(e=>{c(e),a?.(e)},[a]),f=s(()=>({open:p,setOpen:u}),[p,u]);/* @__PURE__ */
5
+ return l(w.Provider,{value:f,children:/* @__PURE__ */l("div",{className:m("relative",t),children:e})})}function T({children:e,className:o,asChild:a=!1}){const{open:n,setOpen:s}=c(w),d=i(e=>{e.stopPropagation(),s(!n)},[n,s]);if(a){const a=t(e)[0];return a?r(a,{onClick:e=>{d(e),a.props?.onClick?.(e)},className:m(a.props?.className,o,"cursor-pointer")}):null}/* @__PURE__ */
6
+ return l("span",{onClick:d,className:m("cursor-pointer",o),children:e})}function k({children:e,className:t,align:r="end",side:n="bottom",sideOffset:s=4}){const{open:i,setOpen:d}=c(w),f=a(null),{organization:b}=u();if(o(()=>{if(!i)return;const e=e=>{f.current&&!f.current.contains(e.target)&&d(!1)},t=e=>{"Escape"===e.key&&d(!1)};return document.addEventListener("click",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",t)}},[i,d]),!i)return null;const h="start"===r?"left-0":"end"===r?"right-0":"left-1/2 -translate-x-1/2",v="bottom"===n?{top:`calc(100% + ${s}px)`}:{bottom:`calc(100% + ${s}px)`};/* @__PURE__ */
7
+ return l("div",{ref:f,style:{...p(b),...v},className:m("bg-popover text-popover-foreground border-border absolute z-50 min-w-32 rounded border p-1 shadow-md","animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",h,t),"data-side":n,children:e})}function z({children:e,className:o,href:a,onClick:n,onSelect:s,disabled:p,icon:u,title:f,variant:h="default",isChecked:g,isBeta:x,suffix:N,asChild:q}){const{setOpen:y}=c(w),C=m("hover:bg-primary/20 relative flex w-full cursor-pointer items-center gap-3 rounded px-3 py-2 text-left text-sm transition-colors outline-none select-none",p&&"pointer-events-none opacity-50","destructive"===h&&"text-destructive hover:bg-destructive/10 focus:bg-destructive/10",o),T=e??/* @__PURE__ */l(d,{children:[u,
8
+ /* @__PURE__ */l("span",{className:"flex-1 truncate font-medium",children:f}),g&&/* @__PURE__ */l(v,{className:"text-primary size-5"}),x&&/* @__PURE__ */l("span",{className:"bg-primary text-primary-foreground rounded px-1.5 py-0.5 text-[10px]",children:"BETA"}),N&&/* @__PURE__ */l("span",{children:N})]}),k=i(e=>{p||(s?.(e),n?.(),y(!1))},[p,s,n,y]);if(q&&e){const o=t(e)[0];return o?r(o,{onClick:e=>{k(e),o.props?.onClick?.(e)},className:m(o.props?.className,C)}):null}return a?/* @__PURE__ */l(b,{to:a,onClick:k,className:C,children:T}):/* @__PURE__ */l("button",{onClick:k,className:C,disabled:p,type:"button",children:T})}function O({className:e}){/* @__PURE__ */
9
9
  return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"})})}export{T as a,N as c,z as i,x as l,C as n,y as o,k as r,q as s,O as t};
@@ -0,0 +1 @@
1
+ import{_ as t,g as e,y as s}from"./BlmPmkho.js";var i=class extends e{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const s=()=>{this.#a({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=t({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const a="pending"===this.state.status,o=!this.#i.canStart();try{if(a)s();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,i);const t=await(this.options.onMutate?.(e,i));t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:o})}const t=await this.#i.start();return await(this.#s.config.onSuccess?.(t,e,this.state.context,this,i)),await(this.options.onSuccess?.(t,e,this.state.context,i)),await(this.#s.config.onSettled?.(t,null,this.state.variables,this.state.context,this,i)),await(this.options.onSettled?.(t,null,e,this.state.context,i)),this.#a({type:"success",data:t}),t}catch(r){try{await(this.#s.config.onError?.(r,e,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onError?.(r,e,this.state.context,i))}catch(n){Promise.reject(n)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onSettled?.(void 0,r,e,this.state.context,i))}catch(n){Promise.reject(n)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{a as n,i as t};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./DrrpB4Om.js";import{i as r}from"./CaX2xgrP.js";import{t}from"./C3dOFk9A.js";import{n as o,o as s,r as i,t as n}from"./DZtaQWVG2.js";function d({className:r}){/* @__PURE__ */
1
+ import{t as e}from"./DrrpB4Om.js";import{i as r}from"./BlmPmkho.js";import{t}from"./CtWIgfGz.js";import{n as o,o as s,r as i,t as n}from"./PRmGsKkz2.js";function d({className:r}){/* @__PURE__ */
2
2
  return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:r,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M2.725 21q-.275 0-.5-.137t-.35-.363t-.137-.488t.137-.512l9.25-16q.15-.25.388-.375T12 3t.488.125t.387.375l9.25 16q.15.25.138.513t-.138.487t-.35.363t-.5.137zm1.725-2h15.1L12 6zm8.263-1.287Q13 17.425 13 17t-.288-.712T12 16t-.712.288T11 17t.288.713T12 18t.713-.288m0-3Q13 14.425 13 14v-3q0-.425-.288-.712T12 10t-.712.288T11 11v3q0 .425.288.713T12 15t.713-.288M12 12.5"})})}function a({open:a,onOpenChange:l,title:c,description:u,cancelText:g="Cancel",confirmText:m="Confirm",confirmColor:f="error",loading:h,onCancel:b,onConfirm:v}){/* @__PURE__ */
3
3
  return e(n,{open:a,onOpenChange:l,children:/* @__PURE__ */e(o,{className:"w-full max-w-lg",children:[/* @__PURE__ */e("div",{className:"flex flex-col gap-6 p-2 sm:flex-row sm:items-start sm:p-4",children:[/* @__PURE__ */e("div",{className:"bg-destructive/10 mx-auto flex size-12 shrink-0 items-center justify-center rounded-full sm:mx-0",children:/* @__PURE__ */e(d,{className:"text-destructive size-6"})}),/* @__PURE__ */e("div",{className:"flex-1 space-y-2 text-center sm:text-left",children:[c&&/* @__PURE__ */e(s,{children:c}),u&&/* @__PURE__ */e(i,{children:u})]})]}),/* @__PURE__ */e("div",{className:"flex flex-col-reverse gap-3 p-4 sm:flex-row sm:justify-end",children:[/* @__PURE__ */e(t,{variant:"outlined",color:"foreground",disabled:h,className:"w-full sm:w-auto",onClick:b,children:g}),/* @__PURE__ */e(t,{color:f,loading:h,disabled:h,className:r("w-full sm:w-auto","error"===f&&"text-white"),onClick:v,children:m})]})]})})}var l={xs:"size-6 [&>*]:size-4",sm:"size-8 [&>*]:size-5",md:"size-10 [&>*]:size-6",lg:"size-12 [&>*]:size-7"},c={ghost:{primary:"text-primary hover:bg-primary/10",foreground:"text-foreground hover:bg-foreground/10",muted:"text-muted-foreground hover:bg-muted/20",error:"text-destructive hover:bg-destructive/10",success:"text-success hover:bg-success/10",warning:"text-warning hover:bg-warning/10",info:"text-info hover:bg-info/10"},filled:{primary:"bg-primary text-primary-foreground hover:bg-primary/90",foreground:"bg-foreground text-background hover:bg-foreground/90",muted:"bg-muted text-muted-foreground hover:bg-muted/80",error:"bg-destructive text-white hover:bg-destructive/90",success:"bg-success text-white hover:bg-success/90",warning:"bg-warning text-white hover:bg-warning/90",info:"bg-info text-white hover:bg-info/90"},outlined:{primary:"border border-primary text-primary hover:bg-primary/10",foreground:"border border-foreground text-foreground hover:bg-foreground/10",muted:"border border-border text-muted-foreground hover:bg-muted/20",error:"border border-destructive text-destructive hover:bg-destructive/10",success:"border border-success text-success hover:bg-success/10",warning:"border border-warning text-warning hover:bg-warning/10",info:"border border-info text-info hover:bg-info/10"}};function u({icon:t,size:o="md",variant:s="ghost",color:i="foreground",loading:n,disabled:d,tooltip:a,className:u,...g}){const m="default"===s?"filled":s,f=r("inline-flex cursor-pointer items-center justify-center rounded-full transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l[o],c[m]?.[i]||c[m]?.foreground,u);/* @__PURE__ */
4
4
  return e("button",{type:"button",disabled:d||n,className:f,title:a,...g,children:n?/* @__PURE__ */e("svg",{className:"animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:/* @__PURE__ */e("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}):t})}function g({className:r}){/* @__PURE__ */
@@ -0,0 +1,8 @@
1
+ import{_ as r,t as e}from"./DrrpB4Om.js";import{i as a,n as s}from"./BlmPmkho.js";import{x as t}from"./DpD2Abx9.js";import{c as i,i as o,l as m,n as d}from"./OGzsLhnG.js";import{t as l}from"./DwanMJWW.js";import{t as n}from"./D35mTuTT.js";import{t as c}from"./nOtAuUm1.js";var p=()=>{const p=i(),b=m(),{initializing:h,organization:f,user:x}=s(),v=p.pathname.endsWith("/login")||p.pathname.endsWith("/register");return r(()=>{if(x){const r=p.state?.referrer;b(r||"/",{replace:!0})}},[x]),h?/* @__PURE__ */e("div",{className:"mx-auto max-w-lg space-y-8 py-8",children:[
2
+ /* @__PURE__ */e(l,{className:"h-8"}),
3
+ /* @__PURE__ */e(l,{className:"h-8"}),
4
+ /* @__PURE__ */e(l,{className:"h-8"}),
5
+ /* @__PURE__ */e(l,{className:"h-8"})]}):!f||f?.customAuth?null:/* @__PURE__ */e("div",{className:"bg-background relative mx-auto min-h-[80vh] max-w-md py-24",children:[v&&/* @__PURE__ */e(c,{}),/* @__PURE__ */e("div",{children:[
6
+ /* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(d,{to:t.LOGIN,state:p.state||void 0,className:({isActive:r})=>a(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Login"}),/* @__PURE__ */e(d,{to:t.REGISTER,state:p.state||void 0,className:({isActive:r})=>a(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Register"})]}),
7
+ /* @__PURE__ */e(o,{}),
8
+ /* @__PURE__ */e("div",{className:"mt-12",children:/* @__PURE__ */e(n,{})})]})]})};export{p as default};
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,r)=>{let o={};for(var l in e)t(o,l,{get:e[l],enumerable:!0});return r||t(o,Symbol.toStringTag,{value:"Module"}),o},p=(a,u,p)=>(p=null!=a?e(l(a)):{},((e,l,a,u)=>{if(l&&"object"==typeof l||"function"==typeof l)for(var p,b=o(l),c=0,s=b.length;c<s;c++)p=b[c],n.call(e,p)||void 0===p||t(e,p,{get:(e=>l[e]).bind(null,p),enumerable:!(u=r(l,p))||u.enumerable});return e})(!u&&a&&a.__esModule?p:t(p,"default",{value:a,enumerable:!0}),a));export{u as n,p as r,a as t};
@@ -0,0 +1,8 @@
1
+ import{h as a,t as s}from"./DrrpB4Om.js";import{n as o}from"./BlmPmkho.js";import{x as e}from"./DpD2Abx9.js";import{c as r,t as l}from"./OGzsLhnG.js";import{t as i}from"./CE4Zhv-W.js";import{n as t}from"./DGGc10Cy.js";import{t as n}from"./CtWIgfGz.js";import{a as d,i as m,o as p,r as c,s as w,t as g}from"./D9UPX_0d2.js";import{n as h,r as f,t as u}from"./DlRUi0u42.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[z,A]=a(""),[S,F]=a(null),[L,O]=a({}),[W,E]=a(!1),[R,D]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:T,loginWithApple:V}=o(),$=a=>{O(s=>s[a]?{...s,[a]:void 0}:s)},_=async(a,s)=>{D(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(o){o instanceof Error?F(o.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{D(s=>({...s,[a]:!1}))}};/* @__PURE__ */
2
+ return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(v),o=p(P),e=m(N),r=w(x),l=c(z,x);if(s||o||e||r||l)return void O({fname:s,lname:o,email:e,password:r,confirmPassword:l});O({}),E(!0),F(null);const i=await(U?.(N.toLowerCase(),x,v,P));i?.error&&F(i.error),E(!1)},className:"space-y-4",children:[
3
+ /* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:b("auth.firstName","First name"),name:"fname",disabled:W,type:"text",value:v,onChange:a=>{C(a.target.value),$("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:b("auth.lastName","Last name"),name:"lname",disabled:W,type:"text",value:P,onChange:a=>{y(a.target.value),$("lname")},error:L.lname})]}),
4
+ /* @__PURE__ */s(g,{label:b("auth.email","Email address"),name:"email",disabled:W,type:"email",value:N,onChange:a=>{j(a.target.value),$("email")},autoComplete:"email",error:L.email}),
5
+ /* @__PURE__ */s(g,{label:b("auth.password","Password"),name:"password",disabled:W,type:G.showPassword?"text":"password",value:x,onChange:a=>{k(a.target.value),$("password")},autoComplete:"new-password",error:L.password,actionLabel:G.showPassword?"Hide password":"Show password",actionIcon:G.showPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showPassword:!a.showPassword}))}),
6
+ /* @__PURE__ */s(g,{label:b("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:W,type:G.showConfirmPassword?"text":"password",value:z,onChange:a=>{A(a.target.value),$("confirmPassword")},autoComplete:"new-password",error:L.confirmPassword,actionLabel:G.showConfirmPassword?"Hide password":"Show password",actionIcon:G.showConfirmPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))}),S&&/* @__PURE__ */s(i,{align:"center",color:"error",className:"font-medium",children:S}),
7
+ /* @__PURE__ */s("div",{className:"flex justify-end",children:/* @__PURE__ */s(l,{to:e.FORGOT_PASSWORD,state:{from:I.pathname},children:/* @__PURE__ */s(i,{variant:"h6",className:"w-fit",children:b("button.forgotPassword","Forgot Password?")})})}),
8
+ /* @__PURE__ */s(n,{type:"submit",color:"primary",className:"w-full",disabled:W,loading:W,children:b("button.register","Register")})]}),/* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */s(f,{disabled:W||R.google||R.apple,loading:R.google,onClick:()=>_("google",T),provider:"google"}),/* @__PURE__ */s(f,{disabled:W||R.google||R.apple,loading:R.apple,onClick:()=>_("apple",V),provider:"apple"})]})]})};export{b as default};
@@ -0,0 +1 @@
1
+ var E={PUBLIC_EVENTS:"/",FOLDER_EVENTS:E=>`/${E}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:E=>`/event/${E}`,UPLOAD:E=>`/event/${E}/upload`,CURATE:E=>`/event/${E}/curate`,LEADERBOARD:E=>`/event/${E}/leaderboard`,MY_UPLOADS:"/my-uploads"},e={ORGANIZATION_SETTINGS:E=>`https://qrati.com/org/${E}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:E=>`https://qrati.com/org/${E}/settings/integration`,ORGANIZATION_DASHBOARD:E=>`https://qrati.com/org/${E}/dashboard`,ORGANIZATION_ADMINS:E=>`https://qrati.com/org/${E}/admins`,EVENT_SETTINGS_BASIC_DETAILS:E=>`https://qrati.com/event/${E}/settings`,EVENT_REVIEW_CONTENTS:E=>`https://qrati.com/event/${E}/review-contents`,EVENT_DEEP_SEARCH:E=>`https://qrati.com/event/${E}/deep-search`,EVENT_GENERATE_ARTICLE:E=>`https://qrati.com/event/${E}/generate-article`,EVENT_ACCESS_REQUESTS:E=>`https://qrati.com/event/${E}/access-requests`,EVENT_SHOT_INSPECTOR:E=>`https://qrati.com/event/${E}/shot-inspector`,EVENT_CURATION_DETAILS:E=>`https://qrati.com/event/${E}/curation-details`},t={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},a="https://qrati.com/api/connect",T={INITIALIZE_SESSION:`${a}/session/initialize`,REGISTER:`${a}/auth/register`,LOGIN:`${a}/auth/login`,LOGOUT:`${a}/auth/logout`,UPDATE_SESSION:`${a}/session/update`,ACCEPT_TERMS:`${a}/auth/accept-terms`,EXTERNAL_LOGIN:`${a}/auth/external-login`,PUBLIC_EVENTS:`${a}/event/public-events`,SEARCH_EVENTS:`${a}/event/search`,FOLDER_DETAILS:`${a}/folder/details`,NESTED_FOLDERS:`${a}/folder/nested-folders`,GET_EVENT_POINTS:`${a}/event/points`,ELIGIBLE_TO_CURATE:`${a}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${a}/content/for-curation`,CURATE_CONTENT:`${a}/content/curate`,GET_LEADERBOARD:`${a}/event/leaderboard`,GET_UPLOAD_COUNT:`${a}/event/upload-count`,UPLOAD_CREATE:`${a}/content/upload/create`,UPLOAD_COMPLETE:`${a}/content/upload/complete`,UPLOAD_FAIL:`${a}/content/upload/fail`,UPLOAD_ABORT:`${a}/content/upload/abort`,UPDATE_REACTION:`${a}/content/update-reaction`,EVENT_DATA:`${a}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${a}/event/update-layout`,GET_EVENT_STATISTICS:`${a}/event/statistics`,GET_CONTENTS:`${a}/content/for-gallery`,SEARCH_CONTENTS:`${a}/content/search`,GET_CONTENTS_COUNT:`${a}/content/count`,UPDATE_AD_ANALYTICS:`${a}/event/update-ad-analytics`,UPDATE_GAM_ANALYTICS:`${a}/event/update-gam-analytics`,INCREMENT_EVENT_VIEW:`${a}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${a}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${a}/auth/verify-password-reset-code`,RESET_PASSWORD:`${a}/auth/reset-password`,REPORT_ERROR:`${a}/session/report-error`,GET_POST_PROCESSING_SETTINGS:`${a}/event/post-processing-settings`,MY_UPLOADS:`${a}/content/my-uploads`,DELETE_CONTENT:`${a}/content/delete`},s={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},A={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD",GAM_AD:"GAM_AD"},n={GAM_IMPRESSION:"gam_impression",GAM_VIEWABLE:"gam_viewable",GAM_CLICK:"gam_click"},N={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},o={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},O=26214400,_=262144e3,S={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},r={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},I={CONTEST:"CONTEST",REACTION:"REACTION"},R={GRID:"grid",SINGLE:"single"},i={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},c={[i.POPULAR]:{label:"Popular",sortField:"score"},[i.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[i.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},C="map-view-state",D=i.UPLOAD_TIME,l={ASC:"asc",DESC:"desc"},d={[l.ASC]:{label:"Ascending",sortOrder:""},[l.DESC]:{label:"Descending",sortOrder:"-"}},L=l.DESC,P={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},$={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},p={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},u={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:E=>`in-review-count-${E}`,CONTENTS_BY_EVENT:E=>`contents-by-event-${E}`,USER_UPLOADS:"user-uploads"};export{P as C,d as E,u as S,l as T,n as _,i as a,_ as b,A as c,L as d,I as f,N as g,e as h,T as i,R as l,t as m,p as n,c as o,S as p,$ as r,o as s,s as t,D as u,C as v,r as w,E as x,O as y};
@@ -0,0 +1 @@
1
+ import{_ as e,h as n,p as t,v as o}from"./DrrpB4Om.js";import{c as i,n as r,s as a}from"./BlmPmkho.js";import{i as l}from"./DpD2Abx9.js";var d=(e,n)=>e.filter(e=>(e.parentFolderId??null)===n).map(n=>{return{folder:n,children:d(e,n._id),eventCount:n.boundary?.length??0,centroid:(t=n.boundary,t?.length?[t.reduce((e,n)=>e+n.x,0)/t.length,t.reduce((e,n)=>e+n.y,0)/t.length]:null),color:n.color||"#fb8500"};var t}).filter(e=>e.eventCount>0||e.children.length>0),s=e=>e.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y),c=()=>{const{folders:c,organization:g}=r(),[m,u]=n(null),h=Boolean(g?.integrationSettings?.enableFolderView),y=t(()=>h?d(c??[],null):[],[c,h]),f=i({queryKey:["map-all-events",g?._id],queryFn:async()=>s((await a.get(l.PUBLIC_EVENTS,{headers:{"x-org-id":g?._id??""},searchParams:{includeAllFolders:!0,limit:500,sort:"-views",contentLimit:3,projection:"connect"}}).json()).data??[]),enabled:Boolean(g?._id)&&(!h||0===y.length),staleTime:3e5,gcTime:6e5,retry:!1}),v=i({queryKey:["map-folder-events",g?._id,m],queryFn:async()=>s((await a.get(l.PUBLIC_EVENTS,{headers:{"x-org-id":g?._id??""},searchParams:{folderId:m,limit:500,sort:"-views",contentLimit:3,projection:"connect"}}).json()).data??[]),enabled:Boolean(g?._id)&&h&&Boolean(m),staleTime:3e5,gcTime:6e5,retry:!1}),p=t(()=>(c??[]).find(e=>e._id===m)??null,[c,m]);e(()=>{h||u(null)},[h]);const _=o(e=>{u(e)},[]),F=h&&y.length>0;return{folderTree:y,activeFolderId:m,activeFolder:p,visibleEvents:F?v.data??[]:f.data??[],setActiveFolderId:_,isLoadingEvents:F?Boolean(m)&&(v.isLoading||v.isFetching):f.isLoading||f.isFetching}};export{c as t};
@@ -1 +1 @@
1
- import{t as r}from"./DrrpB4Om.js";import{i as a}from"./CaX2xgrP.js";var s=({className:s,rounded:e=!1,...o})=>/* @__PURE__ */r("div",{className:a("bg-border animate-pulse",e?"rounded-full":"rounded",s),...o});export{s as t};
1
+ import{t as r}from"./DrrpB4Om.js";import{i as a}from"./BlmPmkho.js";var s=({className:s,rounded:e=!1,...o})=>/* @__PURE__ */r("div",{className:a("bg-border animate-pulse",e?"rounded-full":"rounded",s),...o});export{s as t};
@@ -0,0 +1 @@
1
+ import{C as t,D as e,E as s,M as i,O as r,S as u,T as n,b as a,k as o,p as h,v as c,w as l,x as f,y}from"./BlmPmkho.js";import{t as d}from"./DDyjgYNE.js";var m=class extends f{constructor(t={}){super(),this.config=t,this.#t=/* @__PURE__ */new Map}#t;build(t,e,s){const i=e.queryKey,r=e.queryHash??l(i,e);let u=this.get(r);return u||(u=new h({client:t,queryKey:i,queryHash:r,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){y.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>s(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>s(t,e)):e}notify(t){y.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){y.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){y.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},p=class extends f{constructor(t={}){super(),this.config=t,this.#e=/* @__PURE__ */new Set,this.#s=/* @__PURE__ */new Map,this.#i=0}#e;#s;#i;build(t,e,s){const i=new d({client:t,mutationCache:this,mutationId:++this.#i,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#e.add(t);const e=q(t);if("string"==typeof e){const s=this.#s.get(e);s?s.push(t):this.#s.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=q(t);if("string"==typeof e){const s=this.#s.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#s.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=q(t);if("string"==typeof e){const s=this.#s.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=q(t);return"string"==typeof e?(this.#s.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){y.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#s.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>n(e,t))}findAll(t={}){return this.getAll().filter(e=>n(t,e))}notify(t){y.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return y.batch(()=>Promise.all(t.map(t=>t.continue().catch(e))))}};function q(t){return t.options.scope?.id}var g=class{#r;#u;#n;#a;#o;#h;#c;#l;constructor(t={}){this.#r=t.queryCache||new m,this.#u=t.mutationCache||new p,this.#n=t.defaultOptions||{},this.#a=/* @__PURE__ */new Map,this.#o=/* @__PURE__ */new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#c=a.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=c.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#c?.(),this.#c=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#r.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#u.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#r.build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(o(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#r.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),r=this.#r.get(i.queryHash)?.state.data,n=u(e,r);if(void 0!==n)return this.#r.build(this,i).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return y.batch(()=>this.#r.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state}removeQueries(t){const e=this.#r;y.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#r;return y.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,s={}){const i={revert:!0,...s},r=y.batch(()=>this.#r.findAll(t).map(t=>t.cancel(i)));return Promise.all(r).then(e).catch(e)}invalidateQueries(t,e={}){return y.batch(()=>(this.#r.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=y.batch(()=>this.#r.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let s=t.fetch(void 0,i);return i.throwOnError||(s=s.catch(e)),"paused"===t.state.fetchStatus?Promise.resolve():s}));return Promise.all(r).then(e)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#r.build(this,e);return s.isStaleByTime(o(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(e).catch(e)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(e).catch(e)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return c.isOnline()?this.#u.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#u}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(e,s){this.#a.set(t(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(t){const e=[...this.#a.values()],s={};return e.forEach(e=>{r(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(e,s){this.#o.set(t(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(t){const e=[...this.#o.values()],s={};return e.forEach(e=>{r(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=l(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#r.clear(),this.#u.clear()}};export{g as t};