diff --git a/openlayers-base-packages/assets/34db740e9095.js b/openlayers-base-packages/assets/b50fd3aad293.js similarity index 92% rename from openlayers-base-packages/assets/34db740e9095.js rename to openlayers-base-packages/assets/b50fd3aad293.js index 18e29fea5..bee2161a2 100644 --- a/openlayers-base-packages/assets/34db740e9095.js +++ b/openlayers-base-packages/assets/b50fd3aad293.js @@ -1 +1 @@ -import{f as N,l as C,r as s,j as e,P as E,n as k,s as B,J as R,B as x,H as T}from"./5d235b85a310.js";import{t as _}from"./b63269e77bd2.js";import{N as I,a as z}from"./b0fc7ba7a396.js";import{a as A}from"./69002c2d4bec.js";import{S as d}from"./ea948c1b8068.js";import{T as M}from"./4a8f048f7818.js";import{B as q}from"./07edc2592393.js";import{C as w}from"./6a6177e47545.js";import{T as F}from"./4a5827968d92.js";import{F as h}from"./52303d32bead.js";import{F as v}from"./b5d7454880e8.js";import{I as G}from"./957f63e4b10f.js";import{S as H}from"./77217a40cf1a.js";import{C as P}from"./5e807104b454.js";import"./c96c4578334a.js";import"./78e620555dc0.js";var D={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},L={horizontal:o=>({"& > *:not(style) ~ *:not(style)":{marginStart:o}}),vertical:o=>({"& > *:not(style) ~ *:not(style)":{marginTop:o}})},g=N(function(a,u){const{size:r,colorScheme:c,variant:n,className:m,spacing:p="0.5rem",isAttached:l,isDisabled:f,orientation:i="horizontal",...t}=a,y=C("chakra-button__group",m),j=s.useMemo(()=>({size:r,colorScheme:c,variant:n,isDisabled:f}),[r,c,n,f]);let S={display:"inline-flex",...l?D[i]:L[i](p)};const b=i==="vertical";return e.jsx(E,{value:j,children:e.jsx(k.div,{ref:u,role:"group",__css:S,className:y,"data-attached":l?"":void 0,"data-orientation":i,flexDir:b?"column":void 0,...t})})});g.displayName="ButtonGroup";const U={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:I,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}}},O="",J=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=B(O),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:J,packages:U,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",Q=A.bind(void 0,$);function X(){const o=Q("notifier.NotificationService"),[a,u]=s.useState(""),[r,c]=s.useState("info"),[n,m]=s.useState(""),[p,l]=s.useState(!1),f=()=>{const t={title:a,level:r,message:n,displayDuration:p?5e3:void 0};if(!t.title){o.notify({title:"Title is required",level:"error"});return}o.notify(t)},i=()=>{o.closeAll()};return e.jsxs(e.Fragment,{children:[e.jsx(z,{position:"top-right"}),e.jsx(w,{p:5,children:e.jsxs(d,{spacing:8,children:[e.jsxs(d,{align:"center",children:[e.jsx(R,{as:"h1",children:"Notify Sample"}),e.jsx(M,{children:"Use the form below to emit notifications."})]}),e.jsx(q,{rounded:"lg",boxShadow:"lg",p:8,children:e.jsxs(d,{spacing:4,children:[e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Title"}),e.jsx(G,{type:"text",value:a,onChange:t=>u(t.target.value)})]}),e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Level"}),e.jsxs(H,{value:r,onChange:t=>{c(t.target.value)},children:[e.jsx("option",{value:"success",children:"Success"}),e.jsx("option",{value:"info",children:"Info"}),e.jsx("option",{value:"warning",children:"Warning"}),e.jsx("option",{value:"error",children:"Error"})]})]}),e.jsxs(h,{children:[e.jsx(v,{children:"Message"}),e.jsx(F,{placeholder:"Enter additional message",value:n,onChange:t=>m(t.target.value)})]}),e.jsx(P,{isChecked:p,onChange:t=>l(t.target.checked),children:"Hide after 5 seconds"}),e.jsxs(g,{justifyContent:"center",children:[e.jsx(x,{flex:"1",onClick:f,children:"Emit Notification"}),e.jsx(x,{flex:"1",variant:"cancel",onClick:i,children:"Clear notifications"})]})]})})]})})]})}const Y=T({component:X,theme:_,appMetadata:W});customElements.define("notify-app",Y); +import{f as N,l as C,r as s,j as e,P as E,n as k,s as B,J as R,B as x,H as T}from"./5d235b85a310.js";import{t as _}from"./b63269e77bd2.js";import{N as I,a as z}from"./b0fc7ba7a396.js";import{a as A}from"./69002c2d4bec.js";import{S as d}from"./ea948c1b8068.js";import{T as M}from"./4a8f048f7818.js";import{B as q}from"./07edc2592393.js";import{C as w}from"./6a6177e47545.js";import{T as F}from"./4a5827968d92.js";import{F as h}from"./52303d32bead.js";import{F as v}from"./b5d7454880e8.js";import{I as G}from"./957f63e4b10f.js";import{S as H}from"./77217a40cf1a.js";import{C as P}from"./5e807104b454.js";import"./c96c4578334a.js";import"./78e620555dc0.js";var D={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},L={horizontal:o=>({"& > *:not(style) ~ *:not(style)":{marginStart:o}}),vertical:o=>({"& > *:not(style) ~ *:not(style)":{marginTop:o}})},g=N(function(a,u){const{size:r,colorScheme:c,variant:n,className:m,spacing:p="0.5rem",isAttached:l,isDisabled:f,orientation:i="horizontal",...t}=a,y=C("chakra-button__group",m),j=s.useMemo(()=>({size:r,colorScheme:c,variant:n,isDisabled:f}),[r,c,n,f]);let S={display:"inline-flex",...l?D[i]:L[i](p)};const b=i==="vertical";return e.jsx(E,{value:j,children:e.jsx(k.div,{ref:u,role:"group",__css:S,className:y,"data-attached":l?"":void 0,"data-orientation":i,flexDir:b?"column":void 0,...t})})});g.displayName="ButtonGroup";const U={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:I,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}}},O="",J=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=B(O),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:J,packages:U,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",Q=A.bind(void 0,$);function X(){const o=Q("notifier.NotificationService"),[a,u]=s.useState(""),[r,c]=s.useState("info"),[n,m]=s.useState(""),[p,l]=s.useState(!1),f=()=>{const t={title:a,level:r,message:n,displayDuration:p?5e3:void 0};if(!t.title){o.notify({title:"Title is required",level:"error"});return}o.notify(t)},i=()=>{o.closeAll()};return e.jsxs(e.Fragment,{children:[e.jsx(z,{position:"top-right"}),e.jsx(w,{p:5,children:e.jsxs(d,{spacing:8,children:[e.jsxs(d,{align:"center",children:[e.jsx(R,{as:"h1",children:"Notify Sample"}),e.jsx(M,{children:"Use the form below to emit notifications."})]}),e.jsx(q,{rounded:"lg",boxShadow:"lg",p:8,children:e.jsxs(d,{spacing:4,children:[e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Title"}),e.jsx(G,{type:"text",value:a,onChange:t=>u(t.target.value)})]}),e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Level"}),e.jsxs(H,{value:r,onChange:t=>{c(t.target.value)},children:[e.jsx("option",{value:"success",children:"Success"}),e.jsx("option",{value:"info",children:"Info"}),e.jsx("option",{value:"warning",children:"Warning"}),e.jsx("option",{value:"error",children:"Error"})]})]}),e.jsxs(h,{children:[e.jsx(v,{children:"Message"}),e.jsx(F,{placeholder:"Enter additional message",value:n,onChange:t=>m(t.target.value)})]}),e.jsx(P,{isChecked:p,onChange:t=>l(t.target.checked),children:"Hide after 5 seconds"}),e.jsxs(g,{justifyContent:"center",children:[e.jsx(x,{flex:"1",onClick:f,children:"Emit Notification"}),e.jsx(x,{flex:"1",variant:"cancel",onClick:i,children:"Clear notifications"})]})]})})]})})]})}const Y=T({component:X,theme:_,appMetadata:W});customElements.define("notify-app",Y); diff --git a/openlayers-base-packages/assets/5bf7134b5919.js b/openlayers-base-packages/assets/d0fa6e5dbf70.js similarity index 90% rename from openlayers-base-packages/assets/5bf7134b5919.js rename to openlayers-base-packages/assets/d0fa6e5dbf70.js index d1243bf6b..984dc3c9a 100644 --- a/openlayers-base-packages/assets/5bf7134b5919.js +++ b/openlayers-base-packages/assets/d0fa6e5dbf70.js @@ -1,2 +1,2 @@ -import{s as x,j as o,B as r,H as v}from"./5d235b85a310.js";import{R as f,U as k,W as w,av as y,aw as z,ac as n,af as a,aY as j,aZ as c}from"./0bc9f188afa2.js";import{a as M,S as C}from"./c96c4578334a.js";import{L as d}from"./e88fbb99b3a0.js";import{F as m}from"./110ae097b53e.js";import{B as u}from"./07edc2592393.js";import{S}from"./ea948c1b8068.js";import{T as s}from"./4a8f048f7818.js";import{V as P}from"./b23c4b6181ed.js";import{U as I,a as i}from"./e8e130b5a611.js";import"./69002c2d4bec.js";import"./960f2965a833.js";const p="main";class L{mapId=p;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new f({title:"OSM",isBaseLayer:!0,olLayer:new k({source:new w})})]}}}const R={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:L,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:y,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},A=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +import{s as x,j as o,B as r,H as v}from"./5d235b85a310.js";import{R as f,U as k,W as w,av as y,aw as z,ac as n,af as a,aY as j,aZ as c}from"./0bc9f188afa2.js";import{a as M,S as C}from"./c96c4578334a.js";import{L as d}from"./e88fbb99b3a0.js";import{F as m}from"./110ae097b53e.js";import{B as u}from"./07edc2592393.js";import{S}from"./ea948c1b8068.js";import{T as s}from"./4a8f048f7818.js";import{V as P}from"./b23c4b6181ed.js";import{U as I,a as i}from"./e8e130b5a611.js";import"./69002c2d4bec.js";import"./960f2965a833.js";const p="main";class L{mapId=p;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new f({title:"OSM",isBaseLayer:!0,olLayer:new k({source:new w})})]}}}const R={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:L,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:y,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}}},A=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} `,G=[];function T(e){throw new Error(`Unsupported locale: '${e}'`)}const B=x(A),F=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:T,locales:G,packages:R,styles:B},Symbol.toStringTag,{value:"Module"}));function O(){const{map:e}=z(p),l=[new n([852011.307424,6788511322702e-6]),new n([829800.379064,6809086916672e-6])],g=[new d([[851890.680238,6788133616293e-6],[851298.293269,6790235634571e-6],[853419.420804,6790407617885e-6]]),new d([[848107.047338,6790579601198e-6],[849081.619449,6793197569417e-6]])],b=[new a([[[851728.251553,6788384425292e-6],[851518.049725,6788651954891e-6],[852182.096409,6788881265976e-6],[851728.251553,6788384425292e-6]]]),new a([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])],h=[new n([852011.307424,6788511322702e-6]),new a([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])];return o.jsx(m,{height:"100%",direction:"column",overflow:"hidden",children:o.jsx(M,{title:o.jsx(u,{textAlign:"center",py:1,children:o.jsx(C,{size:"md",children:"OpenLayers Base Packages - Highlight and Zoom"})}),children:o.jsx(m,{flex:"1",direction:"column",position:"relative",children:o.jsxs(j,{mapId:p,children:[o.jsx(c,{position:"top-left",horizontalGap:10,verticalGap:10,children:o.jsx(u,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:o.jsxs(S,{pt:5,children:[o.jsx(s,{align:"center",children:"Test Controls:"}),o.jsx(r,{onClick:()=>t(e,l),children:"Points"}),o.jsx(r,{onClick:()=>t(e,g),children:"LineString"}),o.jsx(r,{onClick:()=>t(e,b),children:"Polygons"}),o.jsx(r,{onClick:()=>t(e,h),children:"Mixed"}),o.jsx(r,{onClick:()=>U(e),children:"Reset"})]})})}),o.jsx(c,{position:"top-right",horizontalGap:10,verticalGap:10,children:o.jsxs(P,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[o.jsx(s,{as:"b",children:"Description"}),o.jsx(s,{children:"This application can be used to test adding highlight or marker, zoom to their extent, and removing highlight and marker. The highlight and zoom for point, line string and polygon geometries can be tested."}),o.jsxs(I,{children:[o.jsxs(i,{children:["Clicking on ","'Points'"," adds markers for point geometries."]}),o.jsxs(i,{children:["Clicking on ","'LineString'"," adds highlight for linestring geometries."]}),o.jsxs(i,{children:["Clicking on ","'Polygon'"," adds highlight for polygon geometries."]}),o.jsxs(i,{children:["Clicking on ","'Mixed'"," adds highlight for geometries of different types."]}),o.jsxs(i,{children:["Clicking on ","'Reset'"," removes the highlights or markers from the map."]})]})]})})]})})})})}function t(e,l){e&&e.highlightAndZoom(l,{})}function U(e){e&&e.removeHighlight()}const _=v({component:O,appMetadata:F});customElements.define("highlight-and-zoom-app",_); diff --git a/openlayers-base-packages/assets/5a19543a8c9d.js b/openlayers-base-packages/assets/dfa83946a0d2.js similarity index 68% rename from openlayers-base-packages/assets/5a19543a8c9d.js rename to openlayers-base-packages/assets/dfa83946a0d2.js index 1265eed83..b316f5460 100644 --- a/openlayers-base-packages/assets/5a19543a8c9d.js +++ b/openlayers-base-packages/assets/dfa83946a0d2.js @@ -1,4 +1,4 @@ -var cs=Object.defineProperty;var ds=(n,e,t)=>e in n?cs(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xr=(n,e,t)=>(ds(n,typeof e!="symbol"?e+"":e,t),t),wn=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var R=(n,e,t)=>(wn(n,e,"read from private field"),t?t.call(n):e.get(n)),z=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)},H=(n,e,t,i)=>(wn(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t);var X=(n,e,t)=>(wn(n,e,"access private method"),t);import{r as f,c as rr,m as hs,f as fs,j as S,u as ps,a as kt,i as Ii,b as ms,d as gs,e as vs,g as bs,h as Se,o as ys,k as Ss,l as wr,n as Ae,p as ct,q as ir,E as me,s as Es,B as mn,t as Cs,v as F,_ as N,w as xs,x as Oi,R as B,y as ws,S as _s,I as or,z as _r,C as Ps,A as Is,D as Os,F as _n,G as Pn,H as Ms}from"./5d235b85a310.js";import{t as ks}from"./b63269e77bd2.js";import{L as As,C as Ds,g as Mi,f as Pr,V as Ir,i as ki,I as te,a as Ls,c as Rs,b as yt,d as St,e as Or,m as Ts,t as Fs,h as Ai,j as Et,k as Di,l as sr,n as Li,T as Vs,r as Ns,o as ar,E as gn,u as Ri,p as js,S as Bs,q as $s,s as Mr,v as Ti,w as Rt,x as Fi,B as lr,y as ot,z as Vi,A as kr,D as Ar,F as Hs,G as zs,H as Us,J as Hn,K as qe,M as Gs,N as Ws,O as qs,P as Ys,Q as Ks,R as $e,U as ur,W as Ni,X as At,Y as Dt,Z as ji,_ as Zs,$ as Xs,a0 as Js,a1 as Dr,a2 as Qs,a3 as ea,a4 as Lr,a5 as ta,a6 as na,a7 as xe,a8 as ra,a9 as ia,aa as Bi,ab as Re,ac as Kt,ad as Rr,ae as oa,af as vn,ag as sa,ah as $i,ai as aa,aj as la,ak as Hi,al as ua,am as ca,an as da,ao as ha,ap as fa,aq as pa,ar as ma,as as zi,at as ga,au as va,av as ba,aw as ve,ax as Ui,ay as ya,az as st,aA as Gi,aB as Ct,aC as Ve,aD as Sa,aE as Ea,aF as Ca,aG as Wi,aH as xa,aI as Tr,aJ as qi,aK as wa,aL as Fr,aM as _a,aN as In,aO as Pa,aP as Vr,aQ as Ia,aR as Oa,aS as Ma,aT as ka,aU as Aa,aV as Nr,aW as Da,aX as La,aY as Ra,aZ as Tt}from"./0bc9f188afa2.js";import{a as Yi,W as Ta,b as Fa}from"./461f6c7151cb.js";import{E as Ki}from"./960f2965a833.js";import{u as De,T as mt,c as bn,a as Ft,S as Vt}from"./c96c4578334a.js";import{u as Va,a as Na,G as yn,M as ja,b as Zi,c as Xi,d as Ba,T as $a,I as Ha,Z as za,e as Ua}from"./0409b1dab741.js";import{N as Ga,u as zn,a as Wa}from"./b0fc7ba7a396.js";import{_ as jr}from"./a419295615be.js";import{u as Be,a as cr}from"./69002c2d4bec.js";import{T as Sn}from"./4a8f048f7818.js";import{B as U}from"./07edc2592393.js";import{G as dt}from"./b5e001885242.js";import{L as Ye}from"./e88fbb99b3a0.js";import{F as qa,u as Ya}from"./52303d32bead.js";import{F as Ka}from"./b5d7454880e8.js";import{S as Za,b as Xa,a as Ja}from"./ea948c1b8068.js";import{S as Qa}from"./77217a40cf1a.js";import{c as el}from"./78e620555dc0.js";import{D as Ji}from"./a7ff9134568c.js";import{F as _e}from"./110ae097b53e.js";import{L as tl}from"./e8e130b5a611.js";import{S as nl}from"./309898efdcdd.js";import{V as Br}from"./b23c4b6181ed.js";import{I as rl}from"./957f63e4b10f.js";import"./468759587098.js";import"./5e807104b454.js";var il=Object.defineProperty,ol=(n,e,t)=>e in n?il(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,K=(n,e,t)=>(ol(n,typeof e!="symbol"?e+"":e,t),t);function $r(n){return n.sort((e,t)=>{const i=e.compareDocumentPosition(t);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var sl=n=>typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE;function Hr(n,e,t){let i=n+1;return t&&i>=e&&(i=0),i}function zr(n,e,t){let i=n-1;return t&&i<0&&(i=e),i}var Un=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zt=n=>n,al=class{constructor(){K(this,"descendants",new Map),K(this,"register",n=>{if(n!=null)return sl(n)?this.registerNode(n):e=>{this.registerNode(e,n)}}),K(this,"unregister",n=>{this.descendants.delete(n);const e=$r(Array.from(this.descendants.keys()));this.assignIndex(e)}),K(this,"destroy",()=>{this.descendants.clear()}),K(this,"assignIndex",n=>{this.descendants.forEach(e=>{const t=n.indexOf(e.node);e.index=t,e.node.dataset.index=e.index.toString()})}),K(this,"count",()=>this.descendants.size),K(this,"enabledCount",()=>this.enabledValues().length),K(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),K(this,"enabledValues",()=>this.values().filter(n=>!n.disabled)),K(this,"item",n=>{if(this.count()!==0)return this.values()[n]}),K(this,"enabledItem",n=>{if(this.enabledCount()!==0)return this.enabledValues()[n]}),K(this,"first",()=>this.item(0)),K(this,"firstEnabled",()=>this.enabledItem(0)),K(this,"last",()=>this.item(this.descendants.size-1)),K(this,"lastEnabled",()=>{const n=this.enabledValues().length-1;return this.enabledItem(n)}),K(this,"indexOf",n=>{var e,t;return n&&(t=(e=this.descendants.get(n))==null?void 0:e.index)!=null?t:-1}),K(this,"enabledIndexOf",n=>n==null?-1:this.enabledValues().findIndex(e=>e.node.isSameNode(n))),K(this,"next",(n,e=!0)=>{const t=Hr(n,this.count(),e);return this.item(t)}),K(this,"nextEnabled",(n,e=!0)=>{const t=this.item(n);if(!t)return;const i=this.enabledIndexOf(t.node),r=Hr(i,this.enabledCount(),e);return this.enabledItem(r)}),K(this,"prev",(n,e=!0)=>{const t=zr(n,this.count()-1,e);return this.item(t)}),K(this,"prevEnabled",(n,e=!0)=>{const t=this.item(n);if(!t)return;const i=this.enabledIndexOf(t.node),r=zr(i,this.enabledCount()-1,e);return this.enabledItem(r)}),K(this,"registerNode",(n,e)=>{if(!n||this.descendants.has(n))return;const t=Array.from(this.descendants.keys()).concat(n),i=$r(t);e?.disabled&&(e.disabled=!!e.disabled);const r={node:n,index:-1,...e};this.descendants.set(n,r),this.assignIndex(i)})}};function ll(){const n=f.useRef(new al);return Un(()=>()=>n.current.destroy()),n.current}var[ul,Qi]=rr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function cl(n){const e=Qi(),[t,i]=f.useState(-1),r=f.useRef(null);Un(()=>()=>{r.current&&e.unregister(r.current)},[]),Un(()=>{if(!r.current)return;const s=Number(r.current.dataset.index);t!=s&&!Number.isNaN(s)&&i(s)});const o=Zt(n?e.register(n):e.register);return{descendants:e,index:t,enabledIndex:e.enabledIndexOf(r.current),register:hs(o,r)}}function dl(){return[Zt(ul),()=>Zt(Qi()),()=>ll(),r=>cl(r)]}function hl(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}function Gn(n,e){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Gn(n,e)}function je(n){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(n)}function fl(n,e){if(je(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(je(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function eo(n){var e=fl(n,"string");return je(e)==="symbol"?e:String(e)}function gt(n,e,t){return e=eo(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var to=fs((n,e)=>S.jsx(Za,{align:"center",...n,direction:"row",ref:e}));to.displayName="HStack";function pl(n,e={}){const{ssr:t=!0,fallback:i}=e,{getWindow:r}=ps(),o=Array.isArray(n)?n:[n];let s=Array.isArray(i)?i:[i];s=s.filter(u=>u!=null);const[a,l]=f.useState(()=>o.map((u,c)=>({media:u,matches:t?!!s[c]:r().matchMedia(u).matches})));return f.useEffect(()=>{const u=r();l(o.map(h=>({media:h,matches:u.matchMedia(h).matches})));const c=o.map(h=>u.matchMedia(h)),d=h=>{l(p=>p.slice().map(m=>m.media===h.media?{...m,matches:h.matches}:m))};return c.forEach(h=>{typeof h.addListener=="function"?h.addListener(d):h.addEventListener("change",d)}),()=>{c.forEach(h=>{typeof h.removeListener=="function"?h.removeListener(d):h.removeEventListener("change",d)})}},[r]),a.map(u=>u.matches)}function ml(n,e,t=Xa){let i=Object.keys(n).indexOf(e);if(i!==-1)return n[e];let r=t.indexOf(e);for(;r>=0;){const o=t[r];if(n.hasOwnProperty(o)){i=r;break}r-=1}if(i!==-1){const o=t[i];return n[o]}}function gl(n){var e,t;const i=Ii(n)?n:{fallback:n??"base"},o=kt().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=o.map(u=>u.breakpoint===i.fallback),l=pl(o.map(u=>u.query),{fallback:s,ssr:i.ssr}).findIndex(u=>u==!0);return(t=(e=o[l])==null?void 0:e.breakpoint)!=null?t:i.fallback}function vl(n,e){var t;const i=Ii(e)?e:{fallback:e??"base"},r=gl(i),o=kt();if(!r)return;const s=Array.from(((t=o.__breakpoints)==null?void 0:t.keys)||[]),a=Array.isArray(n)?Object.fromEntries(Object.entries(Ja(n,s)).map(([l,u])=>[l,u])):n;return ml(a,r,s)}function bl(n){const{ref:e,handler:t,enabled:i=!0}=n,r=ms(t),s=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;f.useEffect(()=>{if(!i)return;const a=d=>{On(d,e)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&t&&On(d,e)&&(s.isPointerDown=!1,r(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,t&&s.isPointerDown&&On(d,e)&&(s.isPointerDown=!1,r(d))},c=no(e.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[t,e,r,s,i])}function On(n,e){var t;const i=n.target;return i&&!no(i).contains(i)?!1:!((t=e.current)!=null&&t.contains(i))}function no(n){var e;return(e=n?.ownerDocument)!=null?e:document}var[yl,zm,Sl,Um]=dl(),[El,Gm]=rr({strict:!1,name:"MenuContext"});function Cl(n,...e){const t=f.useId(),i=n||t;return f.useMemo(()=>e.map(r=>`${r}-${i}`),[i,e])}function xl(n){var e;return(e=n?.ownerDocument)!=null?e:document}function wl(n={}){const{id:e,closeOnSelect:t=!0,closeOnBlur:i=!0,initialFocusRef:r,autoSelect:o=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:h="unmount",direction:p,computePositionOnMount:m=!1,...v}=n,g=f.useRef(null),y=f.useRef(null),w=Sl(),E=f.useCallback(()=>{requestAnimationFrame(()=>{var W;(W=g.current)==null||W.focus({preventScroll:!1})})},[]),I=f.useCallback(()=>{const W=setTimeout(()=>{var Y;if(r)(Y=r.current)==null||Y.focus();else{const re=w.firstEnabled();re&&D(re.index)}});j.current.add(W)},[w,r]),L=f.useCallback(()=>{const W=setTimeout(()=>{const Y=w.lastEnabled();Y&&D(Y.index)});j.current.add(W)},[w]),P=f.useCallback(()=>{c?.(),o?I():E()},[o,I,E,c]),{isOpen:A,onOpen:b,onClose:C,onToggle:O}=gs({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:P});bl({enabled:A&&i,ref:g,handler:W=>{var Y;(Y=y.current)!=null&&Y.contains(W.target)||C()}});const _=vs({...v,enabled:A||m,placement:d,direction:p}),[M,D]=f.useState(-1);bs(()=>{A||D(-1)},[A]),Va(g,{focusRef:y,visible:A,shouldFocus:!0});const x=Na({isOpen:A,ref:g}),[k,$]=Cl(e,"menu-button","menu-list"),V=f.useCallback(()=>{b(),E()},[b,E]),j=f.useRef(new Set([]));f.useEffect(()=>{const W=j.current;return()=>{W.forEach(Y=>clearTimeout(Y)),W.clear()}},[]);const G=f.useCallback(()=>{b(),I()},[I,b]),ie=f.useCallback(()=>{b(),L()},[b,L]),be=f.useCallback(()=>{var W,Y;const re=xl(g.current),oe=(W=g.current)==null?void 0:W.contains(re.activeElement);if(!(A&&!oe))return;const Ce=(Y=w.item(M))==null?void 0:Y.node;Ce?.focus({preventScroll:!0})},[A,M,w]),J=f.useRef(null);return{openAndFocusMenu:V,openAndFocusFirstItem:G,openAndFocusLastItem:ie,onTransitionEnd:be,unstable__animationState:x,descendants:w,popper:_,buttonId:k,menuId:$,forceUpdate:_.forceUpdate,orientation:"vertical",isOpen:A,onToggle:O,onOpen:b,onClose:C,menuRef:g,buttonRef:y,focusedIndex:M,closeOnSelect:t,closeOnBlur:i,autoSelect:o,setFocusedIndex:D,isLazy:s,lazyBehavior:h,initialFocusRef:r,rafId:J}}var[_l,Pl]=rr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ro=n=>{const{children:e}=n,t=Se("Menu",n),i=ys(n),{direction:r}=kt(),{descendants:o,...s}=wl({...i,direction:r}),a=f.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return S.jsx(yl,{value:o,children:S.jsx(El,{value:a,children:S.jsx(_l,{value:t,children:Ss(e,{isOpen:l,onClose:u,forceUpdate:c})})})})};ro.displayName="Menu";var io=n=>{const{className:e,children:t,...i}=n,r=Pl(),o=f.Children.only(t),s=f.isValidElement(o)?f.cloneElement(o,{focusable:"false","aria-hidden":!0,className:wr("chakra-menu__icon",o.props.className)}):null,a=wr("chakra-menu__icon-wrapper",e);return S.jsx(Ae.span,{className:a,...i,__css:r.icon,children:s})};io.displayName="MenuIcon";function oo(n,e){const t=(""+n).split("."),i=(""+e).split(".");for(let r=0;rs)return 1;if(s>o)return-1}return 0}class Il extends As{constructor(e){e=e||{},super(e)}}const Ol=Il;class Ml extends Ds{constructor(e){super(e),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],i=e.pixelRatio,r=e.viewState,o=r.resolution,s=this.getLayer().getSource(),a=e.viewHints;let l=e.extent;if(t.extent!==void 0&&(l=Mi(l,Pr(t.extent,r.projection))),!a[Ir.ANIMATING]&&!a[Ir.INTERACTING]&&!ki(l))if(s){const u=r.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===te.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(e){const t=this.frameState;if(!t)return null;const i=this.getLayer(),r=Ls(t.pixelToCoordinateTransform,e.slice()),o=i.getExtent();if(o&&!Rs(o,r))return null;const s=this.image_.getExtent(),a=this.image_.getImage(),l=yt(s),u=Math.floor(a.width*((r[0]-s[0])/l));if(u<0||u>=a.width)return null;const c=St(s),d=Math.floor(a.height*((s[3]-r[1])/c));return d<0||d>=a.height?null:this.getImageData(a,u,d)}renderFrame(e,t){const i=this.image_,r=i.getExtent(),o=i.getResolution(),[s,a]=Array.isArray(o)?o:[o,o],l=i.getPixelRatio(),u=e.layerStatesArray[e.layerIndex],c=e.pixelRatio,d=e.viewState,h=d.center,p=d.resolution,m=c*s/(p*l),v=c*a/(p*l),g=e.extent,y=d.resolution,w=d.rotation,E=Math.round(yt(g)/y*c),I=Math.round(St(g)/y*c);Or(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,w,-E/2,-I/2),Ts(this.inversePixelTransform,this.pixelTransform);const L=Fs(this.pixelTransform);this.useContainer(t,L,this.getBackground(e));const P=this.context,A=P.canvas;A.width!=E||A.height!=I?(A.width=E,A.height=I):this.containerReused||P.clearRect(0,0,E,I);let b=!1,C=!0;if(u.extent){const x=Pr(u.extent,d.projection);C=Ai(x,e.extent),b=C&&!Et(x,e.extent),b&&this.clipUnrotated(P,e,x)}const O=i.getImage(),_=Or(this.tempTransform,E/2,I/2,m,v,0,l*(r[0]-h[0])/s,l*(h[1]-r[3])/a);this.renderedResolution=a*c/l;const M=O.width*_[0],D=O.height*_[3];if(this.getLayer().getSource().getInterpolate()||(P.imageSmoothingEnabled=!1),this.preRender(P,e),C&&M>=.5&&D>=.5){const x=_[4],k=_[5],$=u.opacity;let V;$!==1&&(V=P.globalAlpha,P.globalAlpha=$),P.drawImage(O,0,0,+O.width,+O.height,x,k,M,D),$!==1&&(P.globalAlpha=V)}return this.postRender(P,e),b&&P.restore(),P.imageSmoothingEnabled=!0,L!==A.style.transform&&(A.style.transform=L),this.container}}const kl=Ml;class Al extends Ol{constructor(e){super(e)}createRenderer(){return new kl(this)}getData(e){return super.getData(e)}}const Dl=Al;function Wn(n){return Array.isArray(n)?Math.min(...n):n}class Ll extends Di{constructor(e,t,i,r,o,s,a){let l=e.getExtent();l&&e.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);let u=t.getExtent();u&&t.canWrapX()&&(u=u.slice(),u[0]=-1/0,u[2]=1/0);const c=u?Mi(i,u):i,d=sr(c),h=Li(e,t,d,r),p=js,m=new Vs(e,t,c,l,h*p,r),v=m.calculateSourceExtent(),g=ki(v)?null:s(v,h,o),y=g?te.IDLE:te.EMPTY,w=g?g.getPixelRatio():1;super(i,r,w,y),this.targetProj_=t,this.maxSourceExtent_=l,this.triangulation_=m,this.targetResolution_=r,this.targetExtent_=i,this.sourceImage_=g,this.sourcePixelRatio_=w,this.interpolate_=a,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==te.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==te.LOADED){const t=yt(this.targetExtent_)/this.targetResolution_,i=St(this.targetExtent_)/this.targetResolution_;this.canvas_=Ns(t,i,this.sourcePixelRatio_,Wn(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_,!0)}this.state=e,this.changed()}load(){if(this.state==te.IDLE){this.state=te.LOADING,this.changed();const e=this.sourceImage_.getState();e==te.LOADED||e==te.ERROR?this.reproject_():(this.sourceListenerKey_=ar(this.sourceImage_,gn.CHANGE,function(t){const i=this.sourceImage_.getState();(i==te.LOADED||i==te.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){Ri(this.sourceListenerKey_),this.sourceListenerKey_=null}}const Rl=Ll,ke=4,Mn={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class Tl extends lr{constructor(e,t){super(e),this.image=t}}class Fl extends Bs{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:e.interpolate!==void 0?e.interpolate:!0}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=e.resolutions!==void 0?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=e.loader?e.loader.length===0:!1,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();if(t){const i=$s(t,e,0);e=t[i]}return e}getImage(e,t,i,r){const o=this.getProjection();if(!o||!r||Mr(o,r))return o&&(r=o),this.getImageInternal(e,t,i,r);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Mr(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==t&&Ti(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Rl(o,r,e,t,i,(s,a,l)=>this.getImageInternal(s,a,l,o),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,i,r){if(this.loader){const o=so(e,t,i,1),s=this.findNearestResolution(t);if(this.image&&(this.static_||this.wantedProjection_===r&&(this.wantedExtent_&&Et(this.wantedExtent_,o)||Et(this.image.getExtent(),o))&&(this.wantedResolution_&&Wn(this.wantedResolution_)===s||Wn(this.image.getResolution())===s)))return this.image;this.wantedProjection_=r,this.wantedExtent_=o,this.wantedResolution_=s,this.image=new Di(o,s,i,this.loader),this.image.addEventListener(gn.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let i;switch(t.getState()){case te.LOADING:this.loading=!0,i=Mn.IMAGELOADSTART;break;case te.LOADED:this.loading=!1,i=Mn.IMAGELOADEND;break;case te.ERROR:this.loading=!1,i=Mn.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Tl(i,t))}}function Vl(n,e){n.getImage().src=e}function so(n,e,t,i){const r=e/t,o=sr(n),s=Rt(yt(n)/r,ke),a=Rt(St(n)/r,ke),l=Rt((i-1)*s/2,ke),u=s+2*l,c=Rt((i-1)*a/2,ke),d=a+2*c;return Fi(o,r,0,[u,d])}const Nl=Fl,ao="1.3.0",Ur=[101,101];function lo(n,e,t,i,r){r.WIDTH=t[0],r.HEIGHT=t[1];const o=i.getAxisOrientation();let s;const a=oo(r.VERSION,"1.3")>=0;return r[a?"CRS":"SRS"]=i.getCode(),a&&o.substr(0,2)=="ne"?s=[e[1],e[0],e[3],e[2]]:s=e,r.BBOX=s.join(","),Yi(n,r)}function jl(n,e,t,i,r,o,s){o=Object.assign({REQUEST:"GetMap"},o);const a=e/t,l=[Ar(yt(n)/a,ke),Ar(St(n)/a,ke)];if(t!=1)switch(s){case"geoserver":const c=90*t+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+c:o.FORMAT_OPTIONS="dpi:"+c;break;case"mapserver":o.MAP_RESOLUTION=90*t;break;case"carmentaserver":case"qgis":o.DPI=90*t;break;default:throw new Error("Unknown `serverType` configured")}return lo(r,n,l,i,o)}function uo(n,e){return Object.assign({REQUEST:e,SERVICE:"WMS",VERSION:ao,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},n)}function Bl(n){const e=n.hidpi===void 0?!0:n.hidpi,t=ot(n.projection||"EPSG:3857"),i=n.ratio||1.5,r=n.load||Vi;return(o,s,a)=>{o=so(o,s,a,i),a!=1&&(!e||n.serverType===void 0)&&(a=1);const l=jl(o,s,a,t,n.url,uo(n.params,"GetMap"),n.serverType),u=new Image;return n.crossOrigin!==null&&(u.crossOrigin=n.crossOrigin),r(u,l).then(c=>({image:c,extent:o,pixelRatio:a}))}}function $l(n,e,t){if(n.url===void 0)return;const i=ot(n.projection||"EPSG:3857"),r=Fi(e,t,0,Ur),o={QUERY_LAYERS:n.params.LAYERS,INFO_FORMAT:"application/json"};Object.assign(o,uo(n.params,"GetFeatureInfo"),n.params);const s=kr((e[0]-r[0])/t,ke),a=kr((r[3]-e[1])/t,ke),l=oo(o.VERSION,"1.3")>=0;return o[l?"I":"X"]=s,o[l?"J":"Y"]=a,lo(n.url,r,Ur,i,o)}function Hl(n,e){if(n.url===void 0)return;const t={SERVICE:"WMS",VERSION:ao,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n.params===void 0||n.params.LAYER===void 0){const i=n.params.LAYERS;if(!(!Array.isArray(i)||i.length===1))return;t.LAYER=i}if(e!==void 0){const i=ot(n.projection||"EPSG:3857").getMetersPerUnit()||1,r=28e-5;t.SCALE=e*i/r}return Object.assign(t,n.params),Yi(n.url,t)}class zl extends Nl{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=e.imageLoadFunction!==void 0?e.imageLoadFunction:Vl,this.params_=e.params,this.serverType_=e.serverType,this.hidpi_=e.hidpi!==void 0?e.hidpi:!0,this.renderedRevision_=0,this.ratio_=e.ratio!==void 0?e.ratio:1.5,this.loaderProjection_=null}getFeatureInfoUrl(e,t,i,r){const o=ot(i),s=this.getProjection();s&&s!==o&&(t=Li(s,o,e,t),e=Hs(e,o,s));const a={url:this.url_,params:{...this.params_,...r},projection:s||o};return $l(a,e,t)}getLegendUrl(e,t){return Hl({url:this.url_,params:{...this.params_,...t}},e)}getParams(){return this.params_}getImageInternal(e,t,i,r){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==r)&&(this.loaderProjection_=r,this.loader=Bl({crossOrigin:this.crossOrigin_,params:this.params_,projection:r,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(o,s)=>(this.image.setImage(o),this.imageLoadFunction_(this.image,s),Vi(o))})),super.getImageInternal(e,t,i,r))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(e){this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.loader=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.changed()}changed(){this.image=null,super.changed()}}const Ul=zl;function Gl(n){let e=!1,t=setTimeout(()=>{e=!0,t=void 0,n()});return{reschedule(){return!e},cancel(){t&&clearTimeout(t)}}}var Pe;class co extends Ki{constructor(t){super();z(this,Pe,void 0);H(this,Pe,t)}destroy(){for(const t of R(this,Pe))t.destroy();H(this,Pe,[])}getSublayers(t){return R(this,Pe).slice()}__getRawSublayers(){return R(this,Pe)}}Pe=new WeakMap;const Wl=ct("map:WMSLayer");var xt,Ke,Ze,Xe,Je,wt,qn,ln,ho;class ql extends zs{constructor(t){const i=new Dl;super({...t,olLayer:i});z(this,wt);z(this,ln);z(this,xt,void 0);z(this,Ke,void 0);z(this,Ze,void 0);z(this,Xe,void 0);z(this,Je,void 0);const r=new Ul({...t.sourceOptions,url:t.url,params:{...t.sourceOptions?.params}});H(this,xt,t.url),H(this,Je,r),H(this,Xe,i),H(this,Ke,new co(fo(t.sublayers))),X(this,wt,qn).call(this)}get url(){return R(this,xt)}get sublayers(){return R(this,Ke)}__attach(t){super.__attach(t);for(const i of R(this,Ke).getSublayers())i.__attach(t,this,this)}__updateSublayerVisibility(){R(this,Ze)?.reschedule()||H(this,Ze,Gl(()=>{try{X(this,wt,qn).call(this),H(this,Ze,void 0)}catch(t){Wl.error(`Failed to update sublayer visibility on WMS layer '${this.id}'.`,t)}}))}}xt=new WeakMap,Ke=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,Je=new WeakMap,wt=new WeakSet,qn=function(){const t=X(this,ln,ho).call(this);R(this,Je).updateParams({LAYERS:t});const i=t.length===0?null:R(this,Je);R(this,Xe).getSource()!==i&&R(this,Xe).setSource(i)},ln=new WeakSet,ho=function(){const t=[],i=r=>{if(!r.visible)return;const o=r.sublayers.__getRawSublayers();if(o.length)for(const s of o)i(s);else t.push(r.name)};for(const r of this.sublayers.__getRawSublayers())i(r);return t};var Te,Ie,_t,Pt,Qe;class Yl extends Us{constructor(t){super(t);z(this,Te,void 0);z(this,Ie,void 0);z(this,_t,void 0);z(this,Pt,void 0);z(this,Qe,void 0);H(this,_t,t.name),H(this,Qe,t.visible??!0),H(this,Pt,new co(fo(t.sublayers)))}get name(){return R(this,_t)}get sublayers(){return R(this,Pt)}get parent(){const t=R(this,Te);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}get parentLayer(){const t=R(this,Ie);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}__attach(t,i,r){if(super.__attachToMap(t),R(this,Te))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent '${R(this,Te).id}'`);if(H(this,Te,r),R(this,Ie))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent layer '${R(this,Ie).id}'`);H(this,Ie,i);for(const o of this.sublayers.__getRawSublayers())o.__attach(t,i,this)}get visible(){return R(this,Qe)}setVisible(t){this.visible!==t&&(H(this,Qe,t),R(this,Ie)?.__updateSublayerVisibility(),this.__emitChangeEvent("changed:visible"))}}Te=new WeakMap,Ie=new WeakMap,_t=new WeakMap,Pt=new WeakMap,Qe=new WeakMap;function fo(n=[]){const e=[];try{for(const t of n)e.push(new Yl(t));return e}catch(t){for(;e.length;)e.pop()?.destroy();throw new Error("Failed to construct sublayers.",{cause:t})}}const po=ql,Kl=25.4/.28,Zl=39.37;function dr(n){return hr(n,Xl,Jl)}function Xl(n){return n.getView()}function Jl(n,e){return n.on("change:view",e)}function mo(n){return dr(n)?.getProjection()}function Ql(n){const e=dr(n);return hr(e,eu,tu)}function eu(n){return n.getResolution()}function tu(n,e){return n.on("change:resolution",e)}function nu(n){const e=dr(n);return hr(e,ru,iu)}function ru(n){return n.getCenter()}function iu(n,e){return n.on("change:center",e)}function ou(n){const e=nu(n),t=Ql(n),i=mo(n);return f.useMemo(()=>{if(i==null||t==null||e==null)return;const o=Hn(i,t,e);return Math.round(o*Zl*Kl)},[i,t,e])}function hr(n,e,t){const i=f.useCallback(()=>n?e(n):void 0,[n,e]),r=f.useCallback(o=>{if(!n)return()=>{};const s=t(n,o);return()=>qe(s)},[n,t]);return f.useSyncExternalStore(r,i)}class En extends Gs{constructor(e,t,i){super(),i!==void 0&&t===void 0?this.setFlatCoordinates(i,e):(t=t||0,this.setCenterAndRadius(e,t,i))}clone(){const e=new En(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,i,r){const o=this.flatCoordinates,s=e-o[0],a=t-o[1],l=s*s+a*a;if(l=i[0]||e[1]<=i[1]&&e[3]>=i[1]?!0:qs(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,i=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+i;for(let o=1;oDatenquellen`});return new ur({source:r})}function lu(){const n=new At({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new yn,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new Dt({source:n})}function uu(){const n=new At({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new yn,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new Dt({source:n})}function cu(){return new po({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function du(){return new po({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}var de,It,Ot,un,go,cn,vo;class hu{constructor(e){z(this,un);z(this,cn);xr(this,"label");z(this,de,void 0);z(this,It,void 0);z(this,Ot,void 0);this.label=e.label,H(this,de,e);const{baseUrl:t,params:i}=pu(e.baseUrl);H(this,It,t),H(this,Ot,i)}async search(e,{mapProjection:t,maxResults:i,signal:r}){const o=X(this,cn,vo).call(this,e,i),s=new yn({dataProjection:"EPSG:4326",featureProjection:t});return(await fu(o,r)).features.map(l=>X(this,un,go).call(this,l,s))}}de=new WeakMap,It=new WeakMap,Ot=new WeakMap,un=new WeakSet,go=function(e,t){const i=R(this,de).renderLabel?.(e),r=e.properties[R(this,de).labelProperty],o=e.properties[R(this,de).searchProperty],s=(()=>i||(r!==void 0?String(r):o!==void 0?String(o):""))();return{id:e.id??ji(),label:s,geometry:t.readGeometry(e.geometry),properties:e.properties}},cn=new WeakSet,vo=function(e,t){const i=new URL(`${R(this,It)}/collections/${R(this,de).collectionId}/items`);for(const[r,o]of R(this,Ot))i.searchParams.append(r,o);return i.searchParams.set(R(this,de).searchProperty,`*${e}*`),i.searchParams.set("limit",String(t)),i.searchParams.set("f","json"),R(this,de).rewriteUrl?.(new URL(i))??i};async function fu(n,e){try{const t=await fetch(n,{signal:e,headers:{Accept:"application/json"}});if(!t.ok)throw new Error("Request failed with status "+t.status);return await t.json()}catch(t){throw ir(t)?t:new Error("Failed to search on OGC API Features service",{cause:t})}}function pu(n){const e=new URL(n),t=new URLSearchParams(e.searchParams);return e.search="",{baseUrl:e.href.replace(/\/+$/,""),params:t}}class mu{label;filteredTypes;constructor(e,t){this.label=e,this.filteredTypes=t}async request(e,t,i){const r=new URL("https://photon.komoot.io/api?");r.searchParams.set("q",e),r.searchParams.set("lang","de"),r.searchParams.set("lat","51.961563"),r.searchParams.set("lon","7.628202"),r.searchParams.set("limit",t.toString());const o=await fetch(r,{signal:i});if(!o.ok)throw new Error("Request failed: "+o.status);return await o.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}async search(e,{mapProjection:t,signal:i}){const r=await this.request(e,100,i),o=new yn({dataProjection:"EPSG:4326",featureProjection:t});return r.features.filter(s=>this.filteredTypes.includes(s.properties.type)).map((s,a)=>{const l=o.readGeometry(s.geometry);return{id:s.properties.osm_id||a,label:this.createLabel(s),geometry:l,properties:s.properties}})}}class gu{intl;constructor({intl:e}){this.intl=e}getSearchSources(){return[new hu({label:this.intl.formatMessage({id:"searchSources.miningPermissions"}),baseUrl:"https://ogc-api.nrw.de/inspire-am-bergbauberechtigungen/v1",collectionId:"managementrestrictionorregulationzone",searchProperty:"thematicId",labelProperty:"name",renderLabel(t){const i=t?.properties?.name,r=t?.id;return typeof i=="string"?i+" ("+r+")":String(r)},rewriteUrl(t){return t.searchParams.set("properties","name"),t}}),new mu("Photon Geocoder",["city","street"])]}}const Nt={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class jt extends lr{constructor(e,t){super(e),this.feature=t}}function vu(n,e){const t=[];for(let i=0;i=t?n[e-t]:n[e]}function $t(n,e,t){let i,r;es){const l=We(n,i),u=We(n,r);return Bt(l,u)}let a=0;if(ih.startIndex?vh.startIndex&&(v-=p.length)),l=v,a=d)}const u=e.targets[a];let c=u.ring;if(e.targetIndex===a&&c){const d=We(u.coordinates,l),h=t.getPixelFromCoordinate(d);Bi(h,e.startPx)>i&&(c=!1)}if(c){const d=u.coordinates,h=d.length,p=u.startIndex,m=l;if(p=t?i-=t:i<0&&(i+=t);let o=i+1;o>=t&&(o-=t);const s=n[i],a=s[0],l=s[1],u=n[o],c=u[0]-a,d=u[1]-l;return[a+c*r,l+d*r]}class yu extends Zs{constructor(e){const t=e;t.stopDown||(t.stopDown=Xs),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Eu(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:Js,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let i=e.geometryFunction;if(!i){const r=this.mode_;if(r==="Circle")i=function(o,s,a){const l=s||new su([NaN,NaN]),u=Dr(o[0]),c=Qs(u,Dr(o[o.length-1]));return l.setCenterAndRadius(u,Math.sqrt(c),this.geometryLayout_),l};else{let o;r==="Point"?o=Kt:r==="LineString"?o=Ye:r==="Polygon"&&(o=vn),i=function(s,a,l){return a?r==="Polygon"?s[0].length?a.setCoordinates([s[0].concat([s[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(s,this.geometryLayout_):a=new o(s,this.geometryLayout_),a}}}this.geometryFunction_=i,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new Dt({source:new At({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Su(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:ea,this.freehandCondition_,e.freehand?this.freehandCondition_=Lr:this.freehandCondition_=e.freehandCondition?e.freehandCondition:ta,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(na.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=Lr:t=e:t=aa,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===gn.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===xe.POINTERMOVE,i=!0;return!this.freehand_&&this.lastDragTime_&&e.type===xe.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===xe.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===xe.POINTERDOWN?i=!1:t&&this.getPointerCount()<2?(i=e.type===xe.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===xe.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===xe.DBLCLICK&&(i=!1),super.handleEvent(e)&&i}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new ra(xe.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),i=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),r=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),o=ia([i,r]),s=this.traceSource_.getFeaturesInExtent(o);if(s.length===0)return;const a=vu(e.coordinate,s);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const i=e.startIndex<=e.endIndex,r=e.startIndex<=t;i===r?i&&t>e.endIndex||!i&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let i=0;if(e0&&this.removeLastPoints_(i)}addTracedCoordinates_(e,t,i){if(t===i)return;const r=[];if(t=s;--a)r.push(Ge(e.coordinates,a))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&Bi(t.startPx,e.pixel)this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let i=!1;if(this.sketchFeature_){let r=!1,o=[this.finishCoordinate_];const s=this.mode_;if(s==="Point")i=!0;else if(s==="Circle")i=this.sketchCoords_.length===2;else if(s==="LineString")r=!t&&this.sketchCoords_.length>this.minPoints_;else if(s==="Polygon"){const a=this.sketchCoords_;r=a[0].length>this.minPoints_,o=[a[0][0],a[0][a[0].length-2]],t?o=[a[0][0]]:o=[a[0][0],a[0][a[0].length-2]]}if(r){const a=this.getMap();for(let l=0,u=o.length;l=this.maxPoints_&&(this.freehand_?o.pop():r=!0),o.push(e.slice()),this.geometryFunction_(o,t,i)):s==="Polygon"&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():r=!0),o.push(e.slice()),r&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,t,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),r=this.mode_;for(let o=0;o=2){this.finishCoordinate_=s[s.length-2].slice();const a=this.finishCoordinate_.slice();s[s.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(s,t,i),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r==="Polygon"){s=this.sketchCoords_[0],s.splice(-2,1);const a=this.sketchLine_.getGeometry();if(s.length>=2){const l=s[s.length-2].slice();s[s.length-1]=l,this.createOrUpdateSketchPoint_(l)}a.setCoordinates(s),this.geometryFunction_(this.sketchCoords_,t,i)}if(s.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const i=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,i,r)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,i,r),t=i.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new ja([t])):this.type_==="MultiLineString"?e.setGeometry(new Zi([t])):this.type_==="MultiPolygon"&&e.setGeometry(new Xi([t])),this.dispatchEvent(new jt(Nt.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new jt(Nt.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(e[0]);let r;if(t==="LineString"||t==="Circle")r=this.sketchCoords_;else if(t==="Polygon")r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&r.shift(),r.pop();for(let s=0;s{H(this,fe,void 0),X(this,Fe,vt).call(this)},Mu))},hn=new WeakSet,Eo=function(){try{const e=R(this,Oe);if(!e)throw new me(ge.INTERNAL,"Local storage is not available.");const t=e.getItem(R(this,et));if(t==null){H(this,he,{}),X(this,Fe,vt).call(this);return}try{const i=JSON.parse(t);if(!at(i))throw new me(ge.CORRUPTED_DATA,"Persisted value should be an object.");H(this,he,i)}catch(i){Ne.warn("Invalid persisted data, reverting to default.",i),H(this,he,{}),X(this,Fe,vt).call(this)}}catch(e){Ne.error("Failed to load from local storage",e)}},Fe=new WeakSet,vt=function(){try{const e=R(this,Oe);if(!e)throw new me(ge.INTERNAL,"Local storage is not available.");const t=JSON.stringify(R(this,he));e.setItem(R(this,et),t)}catch(e){Ne.error("Failed to save to local storage",e)}},Me=new WeakSet,Ue=function(){const e=R(this,tt);if(!e)throw new me(ge.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},fn=new WeakSet,Co=function(){const e={getByPath:t=>Wr(Au(R(this,he),t)),setByPath:(t,i)=>{if(!Lu(i))throw new me(ge.INVALID_VALUE,"The value is not supported by local storage.");if(i=Wr(i),t.length===0){if(!at(i))throw new me(ge.INVALID_VALUE,"The root value must be a plain object.");H(this,he,i)}else Du(R(this,he),t,i);X(this,dn,So).call(this)}};return new fr([],e)};class fr{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!at(t))throw new me(ge.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new fr(this.path.concat([e]),this.access)}}const Gr="trails-state";function Au(n,e){let t=n;for(const i of e){if(!at(t))throw new me(ge.INVALID_PATH,`Cannot get nested property '${i}' because the parent is no object.`);t=t[i]}return t}function Du(n,e,t){if(!e.length)throw new me(ge.INTERNAL,"Path must not be empty.");let i=n;for(let o=0,s=e.length-1;o"u"){Ne.warn("Local storage is not supported by this browser.");return}try{const n=globalThis.localStorage;if(!n){Ne.warn("Local storage is not supported by this browser.");return}return n}catch(n){Ne.warn("Local storage is not supported by this browser.",n);return}}function Wr(n){return n!=null&&(n=JSON.parse(JSON.stringify(n))),n}const Fu={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:au,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}},AppConfig:{name:"AppConfig",clazz:gu,provides:[{name:"ol-app.AppConfig",qualifier:void 0}],references:{}}},ui:{references:[{name:"map-sample-logging.LogService",qualifier:void 0,all:!1},{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppConfig",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Ga,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ba,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"map-sample-logging":{name:"map-sample-logging",services:{LogService:{name:"LogService",clazz:Ou,provides:[{name:"map-sample-logging.LogService",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{logLevel:{value:"INFO",required:!1}}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:ku,provides:[{name:"local-storage.LocalStorageService",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},Vu=`@media only screen and (max-width: 500px){.search-top-center-placement{position:absolute;left:0;top:0;width:100%;z-index:1}}@media only screen and (min-width: 501px){.search-top-center-placement{position:absolute;left:50%;top:0;transform:translate(-50%);width:500px;z-index:1}}.spatial-bookmarks{max-height:300px}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem} +var cs=Object.defineProperty;var ds=(n,e,t)=>e in n?cs(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xr=(n,e,t)=>(ds(n,typeof e!="symbol"?e+"":e,t),t),wn=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var R=(n,e,t)=>(wn(n,e,"read from private field"),t?t.call(n):e.get(n)),z=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)},H=(n,e,t,i)=>(wn(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t);var X=(n,e,t)=>(wn(n,e,"access private method"),t);import{r as f,c as rr,m as hs,f as fs,j as S,u as ps,a as kt,i as Ii,b as ms,d as gs,e as vs,g as bs,h as Se,o as ys,k as Ss,l as wr,n as Ae,p as ct,q as ir,E as me,s as Es,B as mn,t as Cs,v as F,_ as N,w as xs,x as Oi,R as B,y as ws,S as _s,I as or,z as _r,C as Ps,A as Is,D as Os,F as _n,G as Pn,H as Ms}from"./5d235b85a310.js";import{t as ks}from"./b63269e77bd2.js";import{L as As,C as Ds,g as Mi,f as Pr,V as Ir,i as ki,I as te,a as Ls,c as Rs,b as yt,d as St,e as Or,m as Ts,t as Fs,h as Ai,j as Et,k as Di,l as sr,n as Li,T as Vs,r as Ns,o as ar,E as gn,u as Ri,p as js,S as Bs,q as $s,s as Mr,v as Ti,w as Rt,x as Fi,B as lr,y as ot,z as Vi,A as kr,D as Ar,F as Hs,G as zs,H as Us,J as Hn,K as qe,M as Gs,N as Ws,O as qs,P as Ys,Q as Ks,R as $e,U as ur,W as Ni,X as At,Y as Dt,Z as ji,_ as Zs,$ as Xs,a0 as Js,a1 as Dr,a2 as Qs,a3 as ea,a4 as Lr,a5 as ta,a6 as na,a7 as xe,a8 as ra,a9 as ia,aa as Bi,ab as Re,ac as Kt,ad as Rr,ae as oa,af as vn,ag as sa,ah as $i,ai as aa,aj as la,ak as Hi,al as ua,am as ca,an as da,ao as ha,ap as fa,aq as pa,ar as ma,as as zi,at as ga,au as va,av as ba,aw as ve,ax as Ui,ay as ya,az as st,aA as Gi,aB as Ct,aC as Ve,aD as Sa,aE as Ea,aF as Ca,aG as Wi,aH as xa,aI as Tr,aJ as qi,aK as wa,aL as Fr,aM as _a,aN as In,aO as Pa,aP as Vr,aQ as Ia,aR as Oa,aS as Ma,aT as ka,aU as Aa,aV as Nr,aW as Da,aX as La,aY as Ra,aZ as Tt}from"./0bc9f188afa2.js";import{a as Yi,W as Ta,b as Fa}from"./461f6c7151cb.js";import{E as Ki}from"./960f2965a833.js";import{u as De,T as mt,c as bn,a as Ft,S as Vt}from"./c96c4578334a.js";import{u as Va,a as Na,G as yn,M as ja,b as Zi,c as Xi,d as Ba,T as $a,I as Ha,Z as za,e as Ua}from"./0409b1dab741.js";import{N as Ga,u as zn,a as Wa}from"./b0fc7ba7a396.js";import{_ as jr}from"./a419295615be.js";import{u as Be,a as cr}from"./69002c2d4bec.js";import{T as Sn}from"./4a8f048f7818.js";import{B as U}from"./07edc2592393.js";import{G as dt}from"./b5e001885242.js";import{L as Ye}from"./e88fbb99b3a0.js";import{F as qa,u as Ya}from"./52303d32bead.js";import{F as Ka}from"./b5d7454880e8.js";import{S as Za,b as Xa,a as Ja}from"./ea948c1b8068.js";import{S as Qa}from"./77217a40cf1a.js";import{c as el}from"./78e620555dc0.js";import{D as Ji}from"./a7ff9134568c.js";import{F as _e}from"./110ae097b53e.js";import{L as tl}from"./e8e130b5a611.js";import{S as nl}from"./309898efdcdd.js";import{V as Br}from"./b23c4b6181ed.js";import{I as rl}from"./957f63e4b10f.js";import"./468759587098.js";import"./5e807104b454.js";var il=Object.defineProperty,ol=(n,e,t)=>e in n?il(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,K=(n,e,t)=>(ol(n,typeof e!="symbol"?e+"":e,t),t);function $r(n){return n.sort((e,t)=>{const i=e.compareDocumentPosition(t);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var sl=n=>typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE;function Hr(n,e,t){let i=n+1;return t&&i>=e&&(i=0),i}function zr(n,e,t){let i=n-1;return t&&i<0&&(i=e),i}var Un=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zt=n=>n,al=class{constructor(){K(this,"descendants",new Map),K(this,"register",n=>{if(n!=null)return sl(n)?this.registerNode(n):e=>{this.registerNode(e,n)}}),K(this,"unregister",n=>{this.descendants.delete(n);const e=$r(Array.from(this.descendants.keys()));this.assignIndex(e)}),K(this,"destroy",()=>{this.descendants.clear()}),K(this,"assignIndex",n=>{this.descendants.forEach(e=>{const t=n.indexOf(e.node);e.index=t,e.node.dataset.index=e.index.toString()})}),K(this,"count",()=>this.descendants.size),K(this,"enabledCount",()=>this.enabledValues().length),K(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),K(this,"enabledValues",()=>this.values().filter(n=>!n.disabled)),K(this,"item",n=>{if(this.count()!==0)return this.values()[n]}),K(this,"enabledItem",n=>{if(this.enabledCount()!==0)return this.enabledValues()[n]}),K(this,"first",()=>this.item(0)),K(this,"firstEnabled",()=>this.enabledItem(0)),K(this,"last",()=>this.item(this.descendants.size-1)),K(this,"lastEnabled",()=>{const n=this.enabledValues().length-1;return this.enabledItem(n)}),K(this,"indexOf",n=>{var e,t;return n&&(t=(e=this.descendants.get(n))==null?void 0:e.index)!=null?t:-1}),K(this,"enabledIndexOf",n=>n==null?-1:this.enabledValues().findIndex(e=>e.node.isSameNode(n))),K(this,"next",(n,e=!0)=>{const t=Hr(n,this.count(),e);return this.item(t)}),K(this,"nextEnabled",(n,e=!0)=>{const t=this.item(n);if(!t)return;const i=this.enabledIndexOf(t.node),r=Hr(i,this.enabledCount(),e);return this.enabledItem(r)}),K(this,"prev",(n,e=!0)=>{const t=zr(n,this.count()-1,e);return this.item(t)}),K(this,"prevEnabled",(n,e=!0)=>{const t=this.item(n);if(!t)return;const i=this.enabledIndexOf(t.node),r=zr(i,this.enabledCount()-1,e);return this.enabledItem(r)}),K(this,"registerNode",(n,e)=>{if(!n||this.descendants.has(n))return;const t=Array.from(this.descendants.keys()).concat(n),i=$r(t);e?.disabled&&(e.disabled=!!e.disabled);const r={node:n,index:-1,...e};this.descendants.set(n,r),this.assignIndex(i)})}};function ll(){const n=f.useRef(new al);return Un(()=>()=>n.current.destroy()),n.current}var[ul,Qi]=rr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function cl(n){const e=Qi(),[t,i]=f.useState(-1),r=f.useRef(null);Un(()=>()=>{r.current&&e.unregister(r.current)},[]),Un(()=>{if(!r.current)return;const s=Number(r.current.dataset.index);t!=s&&!Number.isNaN(s)&&i(s)});const o=Zt(n?e.register(n):e.register);return{descendants:e,index:t,enabledIndex:e.enabledIndexOf(r.current),register:hs(o,r)}}function dl(){return[Zt(ul),()=>Zt(Qi()),()=>ll(),r=>cl(r)]}function hl(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}function Gn(n,e){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Gn(n,e)}function je(n){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(n)}function fl(n,e){if(je(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(je(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function eo(n){var e=fl(n,"string");return je(e)==="symbol"?e:String(e)}function gt(n,e,t){return e=eo(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var to=fs((n,e)=>S.jsx(Za,{align:"center",...n,direction:"row",ref:e}));to.displayName="HStack";function pl(n,e={}){const{ssr:t=!0,fallback:i}=e,{getWindow:r}=ps(),o=Array.isArray(n)?n:[n];let s=Array.isArray(i)?i:[i];s=s.filter(u=>u!=null);const[a,l]=f.useState(()=>o.map((u,c)=>({media:u,matches:t?!!s[c]:r().matchMedia(u).matches})));return f.useEffect(()=>{const u=r();l(o.map(h=>({media:h,matches:u.matchMedia(h).matches})));const c=o.map(h=>u.matchMedia(h)),d=h=>{l(p=>p.slice().map(m=>m.media===h.media?{...m,matches:h.matches}:m))};return c.forEach(h=>{typeof h.addListener=="function"?h.addListener(d):h.addEventListener("change",d)}),()=>{c.forEach(h=>{typeof h.removeListener=="function"?h.removeListener(d):h.removeEventListener("change",d)})}},[r]),a.map(u=>u.matches)}function ml(n,e,t=Xa){let i=Object.keys(n).indexOf(e);if(i!==-1)return n[e];let r=t.indexOf(e);for(;r>=0;){const o=t[r];if(n.hasOwnProperty(o)){i=r;break}r-=1}if(i!==-1){const o=t[i];return n[o]}}function gl(n){var e,t;const i=Ii(n)?n:{fallback:n??"base"},o=kt().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=o.map(u=>u.breakpoint===i.fallback),l=pl(o.map(u=>u.query),{fallback:s,ssr:i.ssr}).findIndex(u=>u==!0);return(t=(e=o[l])==null?void 0:e.breakpoint)!=null?t:i.fallback}function vl(n,e){var t;const i=Ii(e)?e:{fallback:e??"base"},r=gl(i),o=kt();if(!r)return;const s=Array.from(((t=o.__breakpoints)==null?void 0:t.keys)||[]),a=Array.isArray(n)?Object.fromEntries(Object.entries(Ja(n,s)).map(([l,u])=>[l,u])):n;return ml(a,r,s)}function bl(n){const{ref:e,handler:t,enabled:i=!0}=n,r=ms(t),s=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;f.useEffect(()=>{if(!i)return;const a=d=>{On(d,e)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&t&&On(d,e)&&(s.isPointerDown=!1,r(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,t&&s.isPointerDown&&On(d,e)&&(s.isPointerDown=!1,r(d))},c=no(e.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[t,e,r,s,i])}function On(n,e){var t;const i=n.target;return i&&!no(i).contains(i)?!1:!((t=e.current)!=null&&n.composedPath().includes(t))}function no(n){var e;return(e=n?.ownerDocument)!=null?e:document}var[yl,zm,Sl,Um]=dl(),[El,Gm]=rr({strict:!1,name:"MenuContext"});function Cl(n,...e){const t=f.useId(),i=n||t;return f.useMemo(()=>e.map(r=>`${r}-${i}`),[i,e])}function xl(n){var e;return(e=n?.ownerDocument)!=null?e:document}function wl(n={}){const{id:e,closeOnSelect:t=!0,closeOnBlur:i=!0,initialFocusRef:r,autoSelect:o=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:h="unmount",direction:p,computePositionOnMount:m=!1,...v}=n,g=f.useRef(null),y=f.useRef(null),w=Sl(),E=f.useCallback(()=>{requestAnimationFrame(()=>{var W;(W=g.current)==null||W.focus({preventScroll:!1})})},[]),I=f.useCallback(()=>{const W=setTimeout(()=>{var Y;if(r)(Y=r.current)==null||Y.focus();else{const re=w.firstEnabled();re&&D(re.index)}});j.current.add(W)},[w,r]),L=f.useCallback(()=>{const W=setTimeout(()=>{const Y=w.lastEnabled();Y&&D(Y.index)});j.current.add(W)},[w]),P=f.useCallback(()=>{c?.(),o?I():E()},[o,I,E,c]),{isOpen:A,onOpen:b,onClose:C,onToggle:O}=gs({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:P});bl({enabled:A&&i,ref:g,handler:W=>{var Y;(Y=y.current)!=null&&W.composedPath().includes(Y)||C()}});const _=vs({...v,enabled:A||m,placement:d,direction:p}),[M,D]=f.useState(-1);bs(()=>{A||D(-1)},[A]),Va(g,{focusRef:y,visible:A,shouldFocus:!0});const x=Na({isOpen:A,ref:g}),[k,$]=Cl(e,"menu-button","menu-list"),V=f.useCallback(()=>{b(),E()},[b,E]),j=f.useRef(new Set([]));f.useEffect(()=>{const W=j.current;return()=>{W.forEach(Y=>clearTimeout(Y)),W.clear()}},[]);const G=f.useCallback(()=>{b(),I()},[I,b]),ie=f.useCallback(()=>{b(),L()},[b,L]),be=f.useCallback(()=>{var W,Y;const re=xl(g.current),oe=(W=g.current)==null?void 0:W.contains(re.activeElement);if(!(A&&!oe))return;const Ce=(Y=w.item(M))==null?void 0:Y.node;Ce?.focus({preventScroll:!0})},[A,M,w]),J=f.useRef(null);return{openAndFocusMenu:V,openAndFocusFirstItem:G,openAndFocusLastItem:ie,onTransitionEnd:be,unstable__animationState:x,descendants:w,popper:_,buttonId:k,menuId:$,forceUpdate:_.forceUpdate,orientation:"vertical",isOpen:A,onToggle:O,onOpen:b,onClose:C,menuRef:g,buttonRef:y,focusedIndex:M,closeOnSelect:t,closeOnBlur:i,autoSelect:o,setFocusedIndex:D,isLazy:s,lazyBehavior:h,initialFocusRef:r,rafId:J}}var[_l,Pl]=rr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ro=n=>{const{children:e}=n,t=Se("Menu",n),i=ys(n),{direction:r}=kt(),{descendants:o,...s}=wl({...i,direction:r}),a=f.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return S.jsx(yl,{value:o,children:S.jsx(El,{value:a,children:S.jsx(_l,{value:t,children:Ss(e,{isOpen:l,onClose:u,forceUpdate:c})})})})};ro.displayName="Menu";var io=n=>{const{className:e,children:t,...i}=n,r=Pl(),o=f.Children.only(t),s=f.isValidElement(o)?f.cloneElement(o,{focusable:"false","aria-hidden":!0,className:wr("chakra-menu__icon",o.props.className)}):null,a=wr("chakra-menu__icon-wrapper",e);return S.jsx(Ae.span,{className:a,...i,__css:r.icon,children:s})};io.displayName="MenuIcon";function oo(n,e){const t=(""+n).split("."),i=(""+e).split(".");for(let r=0;rs)return 1;if(s>o)return-1}return 0}class Il extends As{constructor(e){e=e||{},super(e)}}const Ol=Il;class Ml extends Ds{constructor(e){super(e),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],i=e.pixelRatio,r=e.viewState,o=r.resolution,s=this.getLayer().getSource(),a=e.viewHints;let l=e.extent;if(t.extent!==void 0&&(l=Mi(l,Pr(t.extent,r.projection))),!a[Ir.ANIMATING]&&!a[Ir.INTERACTING]&&!ki(l))if(s){const u=r.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===te.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(e){const t=this.frameState;if(!t)return null;const i=this.getLayer(),r=Ls(t.pixelToCoordinateTransform,e.slice()),o=i.getExtent();if(o&&!Rs(o,r))return null;const s=this.image_.getExtent(),a=this.image_.getImage(),l=yt(s),u=Math.floor(a.width*((r[0]-s[0])/l));if(u<0||u>=a.width)return null;const c=St(s),d=Math.floor(a.height*((s[3]-r[1])/c));return d<0||d>=a.height?null:this.getImageData(a,u,d)}renderFrame(e,t){const i=this.image_,r=i.getExtent(),o=i.getResolution(),[s,a]=Array.isArray(o)?o:[o,o],l=i.getPixelRatio(),u=e.layerStatesArray[e.layerIndex],c=e.pixelRatio,d=e.viewState,h=d.center,p=d.resolution,m=c*s/(p*l),v=c*a/(p*l),g=e.extent,y=d.resolution,w=d.rotation,E=Math.round(yt(g)/y*c),I=Math.round(St(g)/y*c);Or(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,w,-E/2,-I/2),Ts(this.inversePixelTransform,this.pixelTransform);const L=Fs(this.pixelTransform);this.useContainer(t,L,this.getBackground(e));const P=this.context,A=P.canvas;A.width!=E||A.height!=I?(A.width=E,A.height=I):this.containerReused||P.clearRect(0,0,E,I);let b=!1,C=!0;if(u.extent){const x=Pr(u.extent,d.projection);C=Ai(x,e.extent),b=C&&!Et(x,e.extent),b&&this.clipUnrotated(P,e,x)}const O=i.getImage(),_=Or(this.tempTransform,E/2,I/2,m,v,0,l*(r[0]-h[0])/s,l*(h[1]-r[3])/a);this.renderedResolution=a*c/l;const M=O.width*_[0],D=O.height*_[3];if(this.getLayer().getSource().getInterpolate()||(P.imageSmoothingEnabled=!1),this.preRender(P,e),C&&M>=.5&&D>=.5){const x=_[4],k=_[5],$=u.opacity;let V;$!==1&&(V=P.globalAlpha,P.globalAlpha=$),P.drawImage(O,0,0,+O.width,+O.height,x,k,M,D),$!==1&&(P.globalAlpha=V)}return this.postRender(P,e),b&&P.restore(),P.imageSmoothingEnabled=!0,L!==A.style.transform&&(A.style.transform=L),this.container}}const kl=Ml;class Al extends Ol{constructor(e){super(e)}createRenderer(){return new kl(this)}getData(e){return super.getData(e)}}const Dl=Al;function Wn(n){return Array.isArray(n)?Math.min(...n):n}class Ll extends Di{constructor(e,t,i,r,o,s,a){let l=e.getExtent();l&&e.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);let u=t.getExtent();u&&t.canWrapX()&&(u=u.slice(),u[0]=-1/0,u[2]=1/0);const c=u?Mi(i,u):i,d=sr(c),h=Li(e,t,d,r),p=js,m=new Vs(e,t,c,l,h*p,r),v=m.calculateSourceExtent(),g=ki(v)?null:s(v,h,o),y=g?te.IDLE:te.EMPTY,w=g?g.getPixelRatio():1;super(i,r,w,y),this.targetProj_=t,this.maxSourceExtent_=l,this.triangulation_=m,this.targetResolution_=r,this.targetExtent_=i,this.sourceImage_=g,this.sourcePixelRatio_=w,this.interpolate_=a,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==te.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==te.LOADED){const t=yt(this.targetExtent_)/this.targetResolution_,i=St(this.targetExtent_)/this.targetResolution_;this.canvas_=Ns(t,i,this.sourcePixelRatio_,Wn(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_,!0)}this.state=e,this.changed()}load(){if(this.state==te.IDLE){this.state=te.LOADING,this.changed();const e=this.sourceImage_.getState();e==te.LOADED||e==te.ERROR?this.reproject_():(this.sourceListenerKey_=ar(this.sourceImage_,gn.CHANGE,function(t){const i=this.sourceImage_.getState();(i==te.LOADED||i==te.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){Ri(this.sourceListenerKey_),this.sourceListenerKey_=null}}const Rl=Ll,ke=4,Mn={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class Tl extends lr{constructor(e,t){super(e),this.image=t}}class Fl extends Bs{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:e.interpolate!==void 0?e.interpolate:!0}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=e.resolutions!==void 0?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=e.loader?e.loader.length===0:!1,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();if(t){const i=$s(t,e,0);e=t[i]}return e}getImage(e,t,i,r){const o=this.getProjection();if(!o||!r||Mr(o,r))return o&&(r=o),this.getImageInternal(e,t,i,r);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Mr(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==t&&Ti(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Rl(o,r,e,t,i,(s,a,l)=>this.getImageInternal(s,a,l,o),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,i,r){if(this.loader){const o=so(e,t,i,1),s=this.findNearestResolution(t);if(this.image&&(this.static_||this.wantedProjection_===r&&(this.wantedExtent_&&Et(this.wantedExtent_,o)||Et(this.image.getExtent(),o))&&(this.wantedResolution_&&Wn(this.wantedResolution_)===s||Wn(this.image.getResolution())===s)))return this.image;this.wantedProjection_=r,this.wantedExtent_=o,this.wantedResolution_=s,this.image=new Di(o,s,i,this.loader),this.image.addEventListener(gn.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let i;switch(t.getState()){case te.LOADING:this.loading=!0,i=Mn.IMAGELOADSTART;break;case te.LOADED:this.loading=!1,i=Mn.IMAGELOADEND;break;case te.ERROR:this.loading=!1,i=Mn.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Tl(i,t))}}function Vl(n,e){n.getImage().src=e}function so(n,e,t,i){const r=e/t,o=sr(n),s=Rt(yt(n)/r,ke),a=Rt(St(n)/r,ke),l=Rt((i-1)*s/2,ke),u=s+2*l,c=Rt((i-1)*a/2,ke),d=a+2*c;return Fi(o,r,0,[u,d])}const Nl=Fl,ao="1.3.0",Ur=[101,101];function lo(n,e,t,i,r){r.WIDTH=t[0],r.HEIGHT=t[1];const o=i.getAxisOrientation();let s;const a=oo(r.VERSION,"1.3")>=0;return r[a?"CRS":"SRS"]=i.getCode(),a&&o.substr(0,2)=="ne"?s=[e[1],e[0],e[3],e[2]]:s=e,r.BBOX=s.join(","),Yi(n,r)}function jl(n,e,t,i,r,o,s){o=Object.assign({REQUEST:"GetMap"},o);const a=e/t,l=[Ar(yt(n)/a,ke),Ar(St(n)/a,ke)];if(t!=1)switch(s){case"geoserver":const c=90*t+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+c:o.FORMAT_OPTIONS="dpi:"+c;break;case"mapserver":o.MAP_RESOLUTION=90*t;break;case"carmentaserver":case"qgis":o.DPI=90*t;break;default:throw new Error("Unknown `serverType` configured")}return lo(r,n,l,i,o)}function uo(n,e){return Object.assign({REQUEST:e,SERVICE:"WMS",VERSION:ao,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},n)}function Bl(n){const e=n.hidpi===void 0?!0:n.hidpi,t=ot(n.projection||"EPSG:3857"),i=n.ratio||1.5,r=n.load||Vi;return(o,s,a)=>{o=so(o,s,a,i),a!=1&&(!e||n.serverType===void 0)&&(a=1);const l=jl(o,s,a,t,n.url,uo(n.params,"GetMap"),n.serverType),u=new Image;return n.crossOrigin!==null&&(u.crossOrigin=n.crossOrigin),r(u,l).then(c=>({image:c,extent:o,pixelRatio:a}))}}function $l(n,e,t){if(n.url===void 0)return;const i=ot(n.projection||"EPSG:3857"),r=Fi(e,t,0,Ur),o={QUERY_LAYERS:n.params.LAYERS,INFO_FORMAT:"application/json"};Object.assign(o,uo(n.params,"GetFeatureInfo"),n.params);const s=kr((e[0]-r[0])/t,ke),a=kr((r[3]-e[1])/t,ke),l=oo(o.VERSION,"1.3")>=0;return o[l?"I":"X"]=s,o[l?"J":"Y"]=a,lo(n.url,r,Ur,i,o)}function Hl(n,e){if(n.url===void 0)return;const t={SERVICE:"WMS",VERSION:ao,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n.params===void 0||n.params.LAYER===void 0){const i=n.params.LAYERS;if(!(!Array.isArray(i)||i.length===1))return;t.LAYER=i}if(e!==void 0){const i=ot(n.projection||"EPSG:3857").getMetersPerUnit()||1,r=28e-5;t.SCALE=e*i/r}return Object.assign(t,n.params),Yi(n.url,t)}class zl extends Nl{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=e.imageLoadFunction!==void 0?e.imageLoadFunction:Vl,this.params_=e.params,this.serverType_=e.serverType,this.hidpi_=e.hidpi!==void 0?e.hidpi:!0,this.renderedRevision_=0,this.ratio_=e.ratio!==void 0?e.ratio:1.5,this.loaderProjection_=null}getFeatureInfoUrl(e,t,i,r){const o=ot(i),s=this.getProjection();s&&s!==o&&(t=Li(s,o,e,t),e=Hs(e,o,s));const a={url:this.url_,params:{...this.params_,...r},projection:s||o};return $l(a,e,t)}getLegendUrl(e,t){return Hl({url:this.url_,params:{...this.params_,...t}},e)}getParams(){return this.params_}getImageInternal(e,t,i,r){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==r)&&(this.loaderProjection_=r,this.loader=Bl({crossOrigin:this.crossOrigin_,params:this.params_,projection:r,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(o,s)=>(this.image.setImage(o),this.imageLoadFunction_(this.image,s),Vi(o))})),super.getImageInternal(e,t,i,r))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(e){this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.loader=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.changed()}changed(){this.image=null,super.changed()}}const Ul=zl;function Gl(n){let e=!1,t=setTimeout(()=>{e=!0,t=void 0,n()});return{reschedule(){return!e},cancel(){t&&clearTimeout(t)}}}var Pe;class co extends Ki{constructor(t){super();z(this,Pe,void 0);H(this,Pe,t)}destroy(){for(const t of R(this,Pe))t.destroy();H(this,Pe,[])}getSublayers(t){return R(this,Pe).slice()}__getRawSublayers(){return R(this,Pe)}}Pe=new WeakMap;const Wl=ct("map:WMSLayer");var xt,Ke,Ze,Xe,Je,wt,qn,ln,ho;class ql extends zs{constructor(t){const i=new Dl;super({...t,olLayer:i});z(this,wt);z(this,ln);z(this,xt,void 0);z(this,Ke,void 0);z(this,Ze,void 0);z(this,Xe,void 0);z(this,Je,void 0);const r=new Ul({...t.sourceOptions,url:t.url,params:{...t.sourceOptions?.params}});H(this,xt,t.url),H(this,Je,r),H(this,Xe,i),H(this,Ke,new co(fo(t.sublayers))),X(this,wt,qn).call(this)}get url(){return R(this,xt)}get sublayers(){return R(this,Ke)}__attach(t){super.__attach(t);for(const i of R(this,Ke).getSublayers())i.__attach(t,this,this)}__updateSublayerVisibility(){R(this,Ze)?.reschedule()||H(this,Ze,Gl(()=>{try{X(this,wt,qn).call(this),H(this,Ze,void 0)}catch(t){Wl.error(`Failed to update sublayer visibility on WMS layer '${this.id}'.`,t)}}))}}xt=new WeakMap,Ke=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,Je=new WeakMap,wt=new WeakSet,qn=function(){const t=X(this,ln,ho).call(this);R(this,Je).updateParams({LAYERS:t});const i=t.length===0?null:R(this,Je);R(this,Xe).getSource()!==i&&R(this,Xe).setSource(i)},ln=new WeakSet,ho=function(){const t=[],i=r=>{if(!r.visible)return;const o=r.sublayers.__getRawSublayers();if(o.length)for(const s of o)i(s);else t.push(r.name)};for(const r of this.sublayers.__getRawSublayers())i(r);return t};var Te,Ie,_t,Pt,Qe;class Yl extends Us{constructor(t){super(t);z(this,Te,void 0);z(this,Ie,void 0);z(this,_t,void 0);z(this,Pt,void 0);z(this,Qe,void 0);H(this,_t,t.name),H(this,Qe,t.visible??!0),H(this,Pt,new co(fo(t.sublayers)))}get name(){return R(this,_t)}get sublayers(){return R(this,Pt)}get parent(){const t=R(this,Te);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}get parentLayer(){const t=R(this,Ie);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}__attach(t,i,r){if(super.__attachToMap(t),R(this,Te))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent '${R(this,Te).id}'`);if(H(this,Te,r),R(this,Ie))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent layer '${R(this,Ie).id}'`);H(this,Ie,i);for(const o of this.sublayers.__getRawSublayers())o.__attach(t,i,this)}get visible(){return R(this,Qe)}setVisible(t){this.visible!==t&&(H(this,Qe,t),R(this,Ie)?.__updateSublayerVisibility(),this.__emitChangeEvent("changed:visible"))}}Te=new WeakMap,Ie=new WeakMap,_t=new WeakMap,Pt=new WeakMap,Qe=new WeakMap;function fo(n=[]){const e=[];try{for(const t of n)e.push(new Yl(t));return e}catch(t){for(;e.length;)e.pop()?.destroy();throw new Error("Failed to construct sublayers.",{cause:t})}}const po=ql,Kl=25.4/.28,Zl=39.37;function dr(n){return hr(n,Xl,Jl)}function Xl(n){return n.getView()}function Jl(n,e){return n.on("change:view",e)}function mo(n){return dr(n)?.getProjection()}function Ql(n){const e=dr(n);return hr(e,eu,tu)}function eu(n){return n.getResolution()}function tu(n,e){return n.on("change:resolution",e)}function nu(n){const e=dr(n);return hr(e,ru,iu)}function ru(n){return n.getCenter()}function iu(n,e){return n.on("change:center",e)}function ou(n){const e=nu(n),t=Ql(n),i=mo(n);return f.useMemo(()=>{if(i==null||t==null||e==null)return;const o=Hn(i,t,e);return Math.round(o*Zl*Kl)},[i,t,e])}function hr(n,e,t){const i=f.useCallback(()=>n?e(n):void 0,[n,e]),r=f.useCallback(o=>{if(!n)return()=>{};const s=t(n,o);return()=>qe(s)},[n,t]);return f.useSyncExternalStore(r,i)}class En extends Gs{constructor(e,t,i){super(),i!==void 0&&t===void 0?this.setFlatCoordinates(i,e):(t=t||0,this.setCenterAndRadius(e,t,i))}clone(){const e=new En(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,i,r){const o=this.flatCoordinates,s=e-o[0],a=t-o[1],l=s*s+a*a;if(l=i[0]||e[1]<=i[1]&&e[3]>=i[1]?!0:qs(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,i=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+i;for(let o=1;oDatenquellen`});return new ur({source:r})}function lu(){const n=new At({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new yn,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new Dt({source:n})}function uu(){const n=new At({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new yn,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new Dt({source:n})}function cu(){return new po({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function du(){return new po({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}var de,It,Ot,un,go,cn,vo;class hu{constructor(e){z(this,un);z(this,cn);xr(this,"label");z(this,de,void 0);z(this,It,void 0);z(this,Ot,void 0);this.label=e.label,H(this,de,e);const{baseUrl:t,params:i}=pu(e.baseUrl);H(this,It,t),H(this,Ot,i)}async search(e,{mapProjection:t,maxResults:i,signal:r}){const o=X(this,cn,vo).call(this,e,i),s=new yn({dataProjection:"EPSG:4326",featureProjection:t});return(await fu(o,r)).features.map(l=>X(this,un,go).call(this,l,s))}}de=new WeakMap,It=new WeakMap,Ot=new WeakMap,un=new WeakSet,go=function(e,t){const i=R(this,de).renderLabel?.(e),r=e.properties[R(this,de).labelProperty],o=e.properties[R(this,de).searchProperty],s=(()=>i||(r!==void 0?String(r):o!==void 0?String(o):""))();return{id:e.id??ji(),label:s,geometry:t.readGeometry(e.geometry),properties:e.properties}},cn=new WeakSet,vo=function(e,t){const i=new URL(`${R(this,It)}/collections/${R(this,de).collectionId}/items`);for(const[r,o]of R(this,Ot))i.searchParams.append(r,o);return i.searchParams.set(R(this,de).searchProperty,`*${e}*`),i.searchParams.set("limit",String(t)),i.searchParams.set("f","json"),R(this,de).rewriteUrl?.(new URL(i))??i};async function fu(n,e){try{const t=await fetch(n,{signal:e,headers:{Accept:"application/json"}});if(!t.ok)throw new Error("Request failed with status "+t.status);return await t.json()}catch(t){throw ir(t)?t:new Error("Failed to search on OGC API Features service",{cause:t})}}function pu(n){const e=new URL(n),t=new URLSearchParams(e.searchParams);return e.search="",{baseUrl:e.href.replace(/\/+$/,""),params:t}}class mu{label;filteredTypes;constructor(e,t){this.label=e,this.filteredTypes=t}async request(e,t,i){const r=new URL("https://photon.komoot.io/api?");r.searchParams.set("q",e),r.searchParams.set("lang","de"),r.searchParams.set("lat","51.961563"),r.searchParams.set("lon","7.628202"),r.searchParams.set("limit",t.toString());const o=await fetch(r,{signal:i});if(!o.ok)throw new Error("Request failed: "+o.status);return await o.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}async search(e,{mapProjection:t,signal:i}){const r=await this.request(e,100,i),o=new yn({dataProjection:"EPSG:4326",featureProjection:t});return r.features.filter(s=>this.filteredTypes.includes(s.properties.type)).map((s,a)=>{const l=o.readGeometry(s.geometry);return{id:s.properties.osm_id||a,label:this.createLabel(s),geometry:l,properties:s.properties}})}}class gu{intl;constructor({intl:e}){this.intl=e}getSearchSources(){return[new hu({label:this.intl.formatMessage({id:"searchSources.miningPermissions"}),baseUrl:"https://ogc-api.nrw.de/inspire-am-bergbauberechtigungen/v1",collectionId:"managementrestrictionorregulationzone",searchProperty:"thematicId",labelProperty:"name",renderLabel(t){const i=t?.properties?.name,r=t?.id;return typeof i=="string"?i+" ("+r+")":String(r)},rewriteUrl(t){return t.searchParams.set("properties","name"),t}}),new mu("Photon Geocoder",["city","street"])]}}const Nt={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class jt extends lr{constructor(e,t){super(e),this.feature=t}}function vu(n,e){const t=[];for(let i=0;i=t?n[e-t]:n[e]}function $t(n,e,t){let i,r;es){const l=We(n,i),u=We(n,r);return Bt(l,u)}let a=0;if(ih.startIndex?vh.startIndex&&(v-=p.length)),l=v,a=d)}const u=e.targets[a];let c=u.ring;if(e.targetIndex===a&&c){const d=We(u.coordinates,l),h=t.getPixelFromCoordinate(d);Bi(h,e.startPx)>i&&(c=!1)}if(c){const d=u.coordinates,h=d.length,p=u.startIndex,m=l;if(p=t?i-=t:i<0&&(i+=t);let o=i+1;o>=t&&(o-=t);const s=n[i],a=s[0],l=s[1],u=n[o],c=u[0]-a,d=u[1]-l;return[a+c*r,l+d*r]}class yu extends Zs{constructor(e){const t=e;t.stopDown||(t.stopDown=Xs),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Eu(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:Js,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let i=e.geometryFunction;if(!i){const r=this.mode_;if(r==="Circle")i=function(o,s,a){const l=s||new su([NaN,NaN]),u=Dr(o[0]),c=Qs(u,Dr(o[o.length-1]));return l.setCenterAndRadius(u,Math.sqrt(c),this.geometryLayout_),l};else{let o;r==="Point"?o=Kt:r==="LineString"?o=Ye:r==="Polygon"&&(o=vn),i=function(s,a,l){return a?r==="Polygon"?s[0].length?a.setCoordinates([s[0].concat([s[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(s,this.geometryLayout_):a=new o(s,this.geometryLayout_),a}}}this.geometryFunction_=i,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new Dt({source:new At({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Su(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:ea,this.freehandCondition_,e.freehand?this.freehandCondition_=Lr:this.freehandCondition_=e.freehandCondition?e.freehandCondition:ta,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(na.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=Lr:t=e:t=aa,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===gn.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===xe.POINTERMOVE,i=!0;return!this.freehand_&&this.lastDragTime_&&e.type===xe.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===xe.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===xe.POINTERDOWN?i=!1:t&&this.getPointerCount()<2?(i=e.type===xe.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===xe.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===xe.DBLCLICK&&(i=!1),super.handleEvent(e)&&i}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new ra(xe.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),i=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),r=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),o=ia([i,r]),s=this.traceSource_.getFeaturesInExtent(o);if(s.length===0)return;const a=vu(e.coordinate,s);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const i=e.startIndex<=e.endIndex,r=e.startIndex<=t;i===r?i&&t>e.endIndex||!i&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let i=0;if(e0&&this.removeLastPoints_(i)}addTracedCoordinates_(e,t,i){if(t===i)return;const r=[];if(t=s;--a)r.push(Ge(e.coordinates,a))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&Bi(t.startPx,e.pixel)this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let i=!1;if(this.sketchFeature_){let r=!1,o=[this.finishCoordinate_];const s=this.mode_;if(s==="Point")i=!0;else if(s==="Circle")i=this.sketchCoords_.length===2;else if(s==="LineString")r=!t&&this.sketchCoords_.length>this.minPoints_;else if(s==="Polygon"){const a=this.sketchCoords_;r=a[0].length>this.minPoints_,o=[a[0][0],a[0][a[0].length-2]],t?o=[a[0][0]]:o=[a[0][0],a[0][a[0].length-2]]}if(r){const a=this.getMap();for(let l=0,u=o.length;l=this.maxPoints_&&(this.freehand_?o.pop():r=!0),o.push(e.slice()),this.geometryFunction_(o,t,i)):s==="Polygon"&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():r=!0),o.push(e.slice()),r&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,t,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),r=this.mode_;for(let o=0;o=2){this.finishCoordinate_=s[s.length-2].slice();const a=this.finishCoordinate_.slice();s[s.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(s,t,i),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r==="Polygon"){s=this.sketchCoords_[0],s.splice(-2,1);const a=this.sketchLine_.getGeometry();if(s.length>=2){const l=s[s.length-2].slice();s[s.length-1]=l,this.createOrUpdateSketchPoint_(l)}a.setCoordinates(s),this.geometryFunction_(this.sketchCoords_,t,i)}if(s.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const i=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,i,r)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,i,r),t=i.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new ja([t])):this.type_==="MultiLineString"?e.setGeometry(new Zi([t])):this.type_==="MultiPolygon"&&e.setGeometry(new Xi([t])),this.dispatchEvent(new jt(Nt.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new jt(Nt.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(e[0]);let r;if(t==="LineString"||t==="Circle")r=this.sketchCoords_;else if(t==="Polygon")r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&r.shift(),r.pop();for(let s=0;s{H(this,fe,void 0),X(this,Fe,vt).call(this)},Mu))},hn=new WeakSet,Eo=function(){try{const e=R(this,Oe);if(!e)throw new me(ge.INTERNAL,"Local storage is not available.");const t=e.getItem(R(this,et));if(t==null){H(this,he,{}),X(this,Fe,vt).call(this);return}try{const i=JSON.parse(t);if(!at(i))throw new me(ge.CORRUPTED_DATA,"Persisted value should be an object.");H(this,he,i)}catch(i){Ne.warn("Invalid persisted data, reverting to default.",i),H(this,he,{}),X(this,Fe,vt).call(this)}}catch(e){Ne.error("Failed to load from local storage",e)}},Fe=new WeakSet,vt=function(){try{const e=R(this,Oe);if(!e)throw new me(ge.INTERNAL,"Local storage is not available.");const t=JSON.stringify(R(this,he));e.setItem(R(this,et),t)}catch(e){Ne.error("Failed to save to local storage",e)}},Me=new WeakSet,Ue=function(){const e=R(this,tt);if(!e)throw new me(ge.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},fn=new WeakSet,Co=function(){const e={getByPath:t=>Wr(Au(R(this,he),t)),setByPath:(t,i)=>{if(!Lu(i))throw new me(ge.INVALID_VALUE,"The value is not supported by local storage.");if(i=Wr(i),t.length===0){if(!at(i))throw new me(ge.INVALID_VALUE,"The root value must be a plain object.");H(this,he,i)}else Du(R(this,he),t,i);X(this,dn,So).call(this)}};return new fr([],e)};class fr{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!at(t))throw new me(ge.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new fr(this.path.concat([e]),this.access)}}const Gr="trails-state";function Au(n,e){let t=n;for(const i of e){if(!at(t))throw new me(ge.INVALID_PATH,`Cannot get nested property '${i}' because the parent is no object.`);t=t[i]}return t}function Du(n,e,t){if(!e.length)throw new me(ge.INTERNAL,"Path must not be empty.");let i=n;for(let o=0,s=e.length-1;o"u"){Ne.warn("Local storage is not supported by this browser.");return}try{const n=globalThis.localStorage;if(!n){Ne.warn("Local storage is not supported by this browser.");return}return n}catch(n){Ne.warn("Local storage is not supported by this browser.",n);return}}function Wr(n){return n!=null&&(n=JSON.parse(JSON.stringify(n))),n}const Fu={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:au,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}},AppConfig:{name:"AppConfig",clazz:gu,provides:[{name:"ol-app.AppConfig",qualifier:void 0}],references:{}}},ui:{references:[{name:"map-sample-logging.LogService",qualifier:void 0,all:!1},{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppConfig",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Ga,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ba,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"map-sample-logging":{name:"map-sample-logging",services:{LogService:{name:"LogService",clazz:Ou,provides:[{name:"map-sample-logging.LogService",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{logLevel:{value:"INFO",required:!1}}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:ku,provides:[{name:"local-storage.LocalStorageService",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},Vu=`@media only screen and (max-width: 500px){.search-top-center-placement{position:absolute;left:0;top:0;width:100%;z-index:1}}@media only screen and (min-width: 501px){.search-top-center-placement{position:absolute;left:50%;top:0;transform:translate(-50%);width:500px;z-index:1}}.spatial-bookmarks{max-height:300px}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red} `,Nu=["en","de"];function ju(n){switch(n){case"en":return jr(()=>import("./9612c4ecd972.js"),[],import.meta.url).then(e=>e.default);case"de":return jr(()=>import("./44ea9c52399a.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${n}'`)}const Bu=Es(Vu),$u=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ju,locales:Nu,packages:Fu,styles:Bu},Symbol.toStringTag,{value:"Module"})),Hu="@open-pioneer/coordinate-viewer",zu=Be.bind(void 0,Hu),Uu=4,Gu=n=>{const{mapId:e,precision:t}=n,{containerProps:i}=De("coordinate-viewer",n),{map:r}=ve(e),o=r?.olMap,{coordinates:s}=qu(o),a=Wu(s,t),l=mo(o)?.getCode()??"",u=a?a+" "+l:"";return S.jsx(U,{...i,children:S.jsx(Sn,{className:"coordinate-viewer-text",children:u})})};function Wu(n,e){const t=zu();return n?Yu(n,e,t):""}function qu(n){const[e,t]=f.useState();return f.useEffect(()=>{if(!n)return;const i=n.on("pointermove",r=>{t(r.coordinate)});return()=>qe(i)},[n]),{coordinates:e}}function Yu(n,e,t){if(n[0]==null||n[1]==null)return"";const i=e??Uu,[r,o]=n,s=t.formatNumber(r,{maximumFractionDigits:i,minimumFractionDigits:i}),a=t.formatNumber(o,{maximumFractionDigits:i,minimumFractionDigits:i});return s+" "+a}const xo="@open-pioneer/geolocation",Ku=cr.bind(void 0,xo),Zu=Be.bind(void 0,xo);function Xu(n){return dt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(n)}const qr=ct("geolocation:GeolocationController"),Yr=17;class Ju extends Ki{olMap;positionHighlightLayer;geolocation;maxZoom=Yr;accuracyFeature;positionFeature;changeHandlers=[];isCurrentlyActive=!1;setMapToPosition=!0;trackingOptions={};isInitialZoom=!0;constructor(e,t){super(),this.olMap=e,this.isInitialZoom=!0,this.accuracyFeature=new Re,this.accuracyFeature.setStyle(Zr()),this.positionFeature=new Re,this.positionFeature.setStyle(Kr()),this.positionHighlightLayer=new Dt({source:new At({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(Ui);const i=t||Qu();this.geolocation=new Pu({tracking:!1,trackingOptions:i,projection:e.getView()?.getProjection()}),this.trackingOptions=i,this.geolocation.on("error",r=>this.handleGeolocationError(r))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(this.isCurrentlyActive)return Promise.resolve();const e=this.olMap;return new Promise(i=>{this.isCurrentlyActive=!0,this.geolocation?.setProjection(e.getView()?.getProjection()),this.geolocation?.setTracking(!0);const r=this.geolocation.on("change:accuracyGeometry",()=>{const l=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(l),this.accuracyFeature?.getGeometry()!==void 0&&i(),this.isInitialZoom){const u=this?.accuracyFeature?.getGeometry()?.getExtent();if(u){const c=ya(u);if(!c)return;e.getView().fit(c,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),o=this.geolocation.on("change:position",()=>{const l=this.geolocation.getPosition();l&&(l[0]||l[1])!==void 0&&(this.positionFeature?.setGeometry(new Kt(l)),this.setMapToPosition&&e.getView().setCenter(l),this.positionFeature?.getGeometry()!==void 0&&i())}),s=e.getView().on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),a=e.on("pointermove",l=>{l.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(r,o,s,a),e.addLayer(this.positionHighlightLayer)}).catch(i=>{qr.error("Failed to determine location",i)})}stopGeolocation(){this.geolocation?.setTracking(!1),this.isCurrentlyActive=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(e=>{qe(e)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.olMap.removeLayer(this.positionHighlightLayer)}setPositionFeatureStyle(e){this.positionFeature?.setStyle(e??Kr())}setAccuracyFeatureStyle(e){this.accuracyFeature?.setStyle(e??Zr())}setMaxZoom(e){this.maxZoom=e??Yr}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(e){qr.error("Error from geolocation API:",e.message);const t=(()=>{switch(e.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.emit("error",t)}}const Kr=()=>new st({image:new Gi({radius:6,fill:new Ct({color:"#3399CC"}),stroke:new Ve({color:"#fff",width:2})})}),Zr=()=>new st({stroke:new Ve({color:"#3399CC",width:3}),fill:new Ct({color:"rgba(0, 0, 255, 0.05)"})}),Qu=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),ec=f.forwardRef(function(e,t){const{mapId:i,maxZoom:r,positionFeatureStyle:o,accuracyFeatureStyle:s,trackingOptions:a}=e,{containerProps:l}=De("geolocation",e),u=!!navigator.geolocation,[c,d]=f.useState(!1),[h,p]=f.useState(!1),{map:m}=ve(i),v=Zu(),g=Ku("notifier.NotificationService"),y=tc(m,r,a,o,s),w=(()=>u?c?v.formatMessage({id:"locateMeEnd"}):v.formatMessage({id:"locateMeStart"}):v.formatMessage({id:"locateNotSupported"}))();f.useEffect(()=>{if(y===void 0)return;const I=y.on("error",function(L){const P=v.formatMessage({id:"error"}),A=(()=>{switch(L){case"permission-denied":return v.formatMessage({id:"permissionDenied"});case"position-unavailable":return v.formatMessage({id:"positionUnavailable"});case"timeout":return v.formatMessage({id:"timeout"});case"unknown":return v.formatMessage({id:"unknownError"})}})();p(!1),d(!1),g.notify({level:"error",title:P,message:A})});return()=>{I.destroy()}},[y,v,g]),f.useEffect(()=>{if(!y){p(!1);return}return c&&(p(!0),y.startGeolocation().then(()=>{p(!1)})),()=>{y?.stopGeolocation(),p(!1)}},[y,c]);const E=()=>{m&&d(!c)};return S.jsx(mt,{ref:t,label:w,icon:S.jsx(Xu,{}),onClick:()=>E(),isActive:c,isLoading:h,isDisabled:!u,...l})});function tc(n,e,t,i,r){const[o,s]=f.useState();return f.useEffect(()=>{if(!n)return;const a=new Ju(n.olMap,t);return s(a),()=>{a.destroy(),s(void 0)}},[n,t]),f.useEffect(()=>{o?.setPositionFeatureStyle(i)},[o,i]),f.useEffect(()=>{o?.setAccuracyFeatureStyle(r)},[o,r]),f.useEffect(()=>{o?.setMaxZoom(e)},[o,e]),o}const nc="@open-pioneer/measurement",rc=Be.bind(void 0,nc);class ic{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(e,t){this.olMap=e,this.messages=t;const i=this.source=new At;this.layer=new Dt({source:i}),this.layer.setZIndex(Ui),e.addLayer(this.layer);const r=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){qe(r)}});const o=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",o),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",o)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setActiveFeatureStyle(e){const t=Sa(e);this.activeFeatureStyle=(i,...r)=>{const o=i?.getGeometry()?.getType();if(o==="Polygon"||o==="LineString"||o==="Point")return t(i,...r)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[]}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",i=this.draw=new Cu({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(i);let r,o;i.on("drawstart",s=>{r=this.measureTooltip=this.createMeasureTooltip();const a=this.sketch=s.feature;if(!a)return;let l;o=a.getGeometry()?.on("change",u=>{const c=u.target,d=this.olMap.getView().getProjection();let h="";c instanceof vn?(h=sc(c,d,this.messages),l=c.getInteriorPoint().getCoordinates()||null):c instanceof Ye&&(h=ac(c,d,this.messages),l=c.getLastCoordinate()||null),r&&(r.element.innerHTML=h,l&&r?.overlay.setPosition(l))})}),i.on("drawend",()=>{if(r){const s=r.element.classList;s.remove("measurement-active-tooltip"),s.add("measurement-finished-tooltip"),r.overlay.setOffset([0,-7]),this.overlayTooltips.push(r),this.measureTooltip=r=void 0}this.sketch=void 0,o&&qe(o)}),i.on("drawabort",()=>{r&&(r.destroy(),this.measureTooltip=r=void 0),this.sketch=void 0,o&&qe(o)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const e=document.createElement("div");e.className="measurement-tooltip measurement-active-tooltip";const t=new Yn({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),i=this.olMap;return i.addOverlay(t),{overlay:t,element:e,destroy(){i.removeOverlay(t)}}}createHelpTooltip(){const e=document.createElement("div");e.className="measurement-tooltip hidden";const t=new Yn({element:e,offset:[15,0],positioning:"center-left"}),i=this.olMap;return i.addOverlay(t),{overlay:t,element:e,destroy(){i.removeOverlay(t)}}}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,i=oc(this.messages,this.sketch);t.element.textContent=i,t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}}function oc(n,e){if(e){const t=e.getGeometry();if(t instanceof vn||t instanceof Ye)return n.getContinueMessage()}return n.getHelpMessage()}function sc(n,e,t){const i=Ea(n,{projection:e});let r;return i>=1e6?r=`${t.formatNumber(i/1e6)} km2`:r=`${t.formatNumber(i)} m2`,r}function ac(n,e,t){const i=Ca(n,{projection:e});let r;return i>=1e3?r=`${t.formatNumber(i/1e3)} km`:r=`${t.formatNumber(i)} m`,r}const lc=n=>{const e=rc(),{mapId:t,activeFeatureStyle:i,finishedFeatureStyle:r}=n,{containerProps:o}=De("measurement",n),[s,a]=f.useState("distance"),l=p=>e.formatMessage({id:p}),u=ve(t),c=uc(u.map,e);f.useEffect(()=>{c?.setActiveFeatureStyle(i??cc())},[c,i]),f.useEffect(()=>{c?.setFinishedFeatureStyle(r??dc())},[c,r]),f.useEffect(()=>{if(c)return c.startMeasurement(s),()=>{c.stopMeasurement()}},[c,s]);function d(p){if(p==="distance"||p==="area")a(p);else throw new Error(`Unexpected measurement type: '${p}'.`)}function h(){c?.clearMeasurements()}return S.jsxs(U,{...o,children:[S.jsx(Sn,{mb:3,children:e.formatMessage({id:"measurementInfoText"})}),S.jsx(qa,{mb:4,alignItems:"center",children:S.jsxs(to,{mb:2,children:[S.jsx(Ka,{mb:1,children:l("measurementLabel")}),S.jsxs(Qa,{value:s,onChange:p=>d(p.target.value),className:"measurement-select",children:[S.jsx("option",{value:"distance",children:l("distance")}),S.jsx("option",{value:"area",children:l("area")})]})]})}),S.jsx(mn,{padding:2,className:"measurement-delete-button",onClick:h,width:"100%",children:l("deleteMeasurementLabel")})]})};function uc(n,e){const[t,i]=f.useState(void 0);return f.useEffect(()=>{if(!n)return;const r=new ic(n.olMap,{getContinueMessage(){return e.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return e.formatMessage({id:"tooltips.help"})},formatNumber(o){return e.formatNumber(o,{maximumFractionDigits:2})}});return i(r),()=>{r.destroy(),i(void 0)}},[n,e]),t}function cc(){return[new st({stroke:new Ve({color:"#fff",lineDash:[10,10],width:5})}),new st({fill:new Ct({color:"rgba(0,0,0,0.15)"}),stroke:new Ve({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new Gi({radius:5,stroke:new Ve({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Ct({color:"rgba(255, 255, 255, 0.2)"})})})]}function dc(){return[new st({stroke:new Ve({color:"#fff",width:5})}),new st({stroke:new Ve({color:"#0b96fc",width:3}),fill:new Ct({color:"rgba(11,150,252,0.15)"})})]}var hc=el({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});const Ln=.75,zt=.1;let fc=class extends Wi{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",i=e.tipLabel!==void 0?e.tipLabel:"Overview map",r=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof r=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r):this.collapseLabel_=r;const o=e.label!==void 0?e.label:"›";typeof o=="string"?(this.label_=document.createElement("span"),this.label_.textContent=o):this.label_=o;const s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=i,a.appendChild(s),a.addEventListener(gn.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const l=new xa({view:e.view,controls:new Tr,interactions:new Tr});this.ovmap_=l,e.layers&&e.layers.forEach(function(w){l.addLayer(w)});const u=document.createElement("div");u.className="ol-overviewmap-box",u.style.boxSizing="border-box",this.boxOverlay_=new Yn({position:[0,0],positioning:"center-center",element:u}),this.ovmap_.addOverlay(this.boxOverlay_);const c=t+" "+qi+" "+wa+(this.collapsed_&&this.collapsible_?" "+Fr:"")+(this.collapsible_?"":" ol-uncollapsible"),d=this.element;d.className=c,d.appendChild(this.ovmapDiv_),d.appendChild(a);const h=this,p=this.boxOverlay_,m=this.boxOverlay_.getElement(),v=function(w){return{clientX:w.clientX,clientY:w.clientY}},g=function(w){const E=v(w),I=l.getEventCoordinateInternal(E);p.setPosition(I)},y=function(w){const E=l.getEventCoordinateInternal(w);h.getMap().getView().setCenterInternal(E),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",y)};m.addEventListener("mousedown",function(){window.addEventListener("mousemove",g),window.addEventListener("mouseup",y)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const i=t.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(ar(e,_a.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===In.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const i=this.getMap().getView();this.bindView_(i)}else!this.ovmap_.isRendered()&&(e.key===In.TARGET||e.key===In.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new Pa({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(Vr.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(e){e.removeChangeListener(Vr.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),o=e.getView().calculateExtentInternal(i);if(this.viewExtent_&&Ti(o,this.viewExtent_))return;this.viewExtent_=o;const s=t.getSize(),l=t.getView().calculateExtentInternal(s),u=t.getPixelFromCoordinateInternal(Ia(o)),c=t.getPixelFromCoordinateInternal(Oa(o)),d=Math.abs(u[0]-c[0]),h=Math.abs(u[1]-c[1]),p=s[0],m=s[1];dp*Ln||h>m*Ln?this.resetExtent_():Et(l,o)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,i=e.getSize(),o=e.getView().calculateExtentInternal(i),s=t.getView(),a=Math.log(Ln/zt)/Math.LN2,l=1/(Math.pow(2,a/2)*zt);Ma(o,l),s.fitInternal(ka(o))}recenter_(){const e=this.getMap(),t=this.ovmap_,i=e.getView();t.getView().setCenterInternal(i.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),r=e.getView(),o=t.getView(),s=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=r.getCenterInternal(),c=r.getResolution(),d=o.getResolution(),h=i[0]*c/d,p=i[1]*c/d;if(a.setPosition(u),l){l.style.width=h+"px",l.style.height=p+"px";const m="rotate("+s+"rad)";l.style.transform=m}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Aa(this.ovmap_,zi.POSTRENDER,function(e){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(Fr),this.collapsed_?Nr(this.collapseLabel_,this.label_):Nr(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const pc=fc,Rn="units",mc=[1,2,5],ht=25.4/.28;class gc extends Wi{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const i=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=i+"-inner",this.element.className=i+" "+qi,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(Rn,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(Rn)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(Rn,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,i=e.projection,r=this.getUnits(),o=r=="degrees"?"degrees":"m";let s=Hn(i,e.resolution,t,o);const a=this.minWidth_*(this.dpi_||ht)/ht,l=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||ht)/ht:void 0;let u=a*s,c="";if(r=="degrees"){const E=Da.degrees;u*=E,u=l){h=v,p=g,m=y;break}else if(p>=a)break;v=h,g=p,y=m,++d}const w=this.scaleBar_?this.createScaleBar(p,h,c):h.toFixed(m<0?-m:0)+" "+c;this.renderedHTML_!=w&&(this.innerElement_.innerHTML=w,this.renderedHTML_=w),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,i){const r=this.getScaleForResolution(),o=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),s=this.scaleBarSteps_,a=e/s,l=[this.createMarker("absolute")];for(let c=0;c
`+this.createMarker("relative")+(c%2===0||s===2?this.createStepText(c,e,!1,t,i):"")+"")}return l.push(this.createStepText(s,e,!0,t,i)),(this.scaleBarText_?`
`+o+"
":"")+l.join("")}createMarker(e){return`
`}createStepText(e,t,i,r,o){const a=(e===0?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+o),l=e===0?-3:t/this.scaleBarSteps_*-1,u=e===0?0:t/this.scaleBarSteps_*2;return`
`+a+"
"}getScaleForResolution(){const e=Hn(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||ht,i=1e3/25.4;return e*i*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const vc=gc,bc="200px",yc="300px",Sc=n=>{const{mapId:e,olLayer:t,height:i=bc,width:r=yc}=n,{containerProps:o}=De("overview-map",n),s=f.useRef(null),{map:a}=ve(e);return f.useEffect(()=>{if(s.current&&a&&t){const l=a.olMap,u=new pc({className:"ol-overviewmap",layers:[t],collapsible:!1,collapsed:!1,target:s.current});return l.addControl(u),()=>{l.removeControl(u)}}},[a,t]),S.jsx(U,{height:i,width:r,ref:s,...o})},Ec=n=>{const{mapId:e,displayMode:t="line"}=n,{containerProps:i}=De("scale-bar",n),{map:r}=ve(e),o=f.useRef(null);return f.useEffect(()=>{if(o.current&&r){const s=r.olMap,a=new vc({units:"metric",target:o.current,bar:t==="bar"});return s.addControl(a),()=>{s.removeControl(a)}}},[t,r]),S.jsx(U,{...i,ref:o})},Cc="@open-pioneer/scale-viewer",xc=Be.bind(void 0,Cc),wc=n=>{const{mapId:e}=n,{containerProps:t}=De("scale-viewer",n),{map:i}=ve(e),r=xc(),o=ou(i?.olMap),s=o?r.formatNumber(o):void 0;return S.jsx(U,{...t,children:s&&S.jsxs(Sn,{children:["1:",s]})})};function Xr(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function T(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,i=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var Oc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Mc(n){var e=n.defaultInputValue,t=e===void 0?"":e,i=n.defaultMenuIsOpen,r=i===void 0?!1:i,o=n.defaultValue,s=o===void 0?null:o,a=n.inputValue,l=n.menuIsOpen,u=n.onChange,c=n.onInputChange,d=n.onMenuClose,h=n.onMenuOpen,p=n.value,m=Ee(n,Oc),v=f.useState(a!==void 0?a:t),g=ye(v,2),y=g[0],w=g[1],E=f.useState(l!==void 0?l:r),I=ye(E,2),L=I[0],P=I[1],A=f.useState(p!==void 0?p:s),b=ye(A,2),C=b[0],O=b[1],_=f.useCallback(function(j,G){typeof u=="function"&&u(j,G),O(j)},[u]),M=f.useCallback(function(j,G){var ie;typeof c=="function"&&(ie=c(j,G)),w(ie!==void 0?ie:j)},[c]),D=f.useCallback(function(){typeof h=="function"&&h(),P(!0)},[h]),x=f.useCallback(function(){typeof d=="function"&&d(),P(!1)},[d]),k=a!==void 0?a:y,$=l!==void 0?l:L,V=p!==void 0?p:C;return T(T({},m),{},{inputValue:k,menuIsOpen:$,onChange:_,onInputChange:M,onMenuClose:x,onMenuOpen:D,value:V})}function kc(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Jr(n,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rc(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Tc(n,e){if(e&&(je(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rc(n)}function Fc(n){var e=Lc();return function(){var i=Xt(n),r;if(e){var o=Xt(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return Tc(this,r)}}function Vc(n){if(Array.isArray(n))return Kn(n)}function Nc(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function jc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _o(n){return Vc(n)||Nc(n)||wo(n)||jc()}function Bc(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}const $c=Math.min,Hc=Math.max,Jt=Math.round,Ut=Math.floor,Qt=n=>({x:n,y:n});function zc(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Po(n){return Oo(n)?(n.nodeName||"").toLowerCase():"#document"}function ue(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Io(n){var e;return(e=(Oo(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Oo(n){return n instanceof Node||n instanceof ue(n).Node}function Zn(n){return n instanceof Element||n instanceof ue(n).Element}function pr(n){return n instanceof HTMLElement||n instanceof ue(n).HTMLElement}function Qr(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ue(n).ShadowRoot}function Mo(n){const{overflow:e,overflowX:t,overflowY:i,display:r}=mr(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Uc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gc(n){return["html","body","#document"].includes(Po(n))}function mr(n){return ue(n).getComputedStyle(n)}function Wc(n){if(Po(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Qr(n)&&n.host||Io(n);return Qr(e)?e.host:e}function ko(n){const e=Wc(n);return Gc(e)?n.ownerDocument?n.ownerDocument.body:n.body:pr(e)&&Mo(e)?e:ko(e)}function en(n,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=ko(n),o=r===((i=n.ownerDocument)==null?void 0:i.body),s=ue(r);return o?e.concat(s,s.visualViewport||[],Mo(r)?r:[],s.frameElement&&t?en(s.frameElement):[]):e.concat(r,en(r,[],t))}function qc(n){const e=mr(n);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=pr(n),o=r?n.offsetWidth:t,s=r?n.offsetHeight:i,a=Jt(t)!==o||Jt(i)!==s;return a&&(t=o,i=s),{width:t,height:i,$:a}}function gr(n){return Zn(n)?n:n.contextElement}function Tn(n){const e=gr(n);if(!pr(e))return Qt(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:o}=qc(e);let s=(o?Jt(t.width):t.width)/i,a=(o?Jt(t.height):t.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yc=Qt(0);function Kc(n){const e=ue(n);return!Uc()||!e.visualViewport?Yc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zc(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==ue(n)?!1:e}function ei(n,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),o=gr(n);let s=Qt(1);e&&(i?Zn(i)&&(s=Tn(i)):s=Tn(n));const a=Zc(o,t,i)?Kc(o):Qt(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o){const h=ue(o),p=i&&Zn(i)?ue(i):i;let m=h.frameElement;for(;m&&i&&p!==h;){const v=Tn(m),g=m.getBoundingClientRect(),y=mr(m),w=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*v.x,E=g.top+(m.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=w,u+=E,m=ue(m).frameElement}}return zc({width:c,height:d,x:l,y:u})}function Xc(n,e){let t=null,i;const r=Io(n);function o(){clearTimeout(i),t&&t.disconnect(),t=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:h}=n.getBoundingClientRect();if(a||e(),!d||!h)return;const p=Ut(c),m=Ut(r.clientWidth-(u+d)),v=Ut(r.clientHeight-(c+h)),g=Ut(u),w={rootMargin:-p+"px "+-m+"px "+-v+"px "+-g+"px",threshold:Hc(0,$c(1,l))||1};let E=!0;function I(L){const P=L[0].intersectionRatio;if(P!==l){if(!E)return s();P?s(!1,P):i=setTimeout(()=>{s(!1,1e-7)},100)}E=!1}try{t=new IntersectionObserver(I,{...w,root:r.ownerDocument})}catch{t=new IntersectionObserver(I,w)}t.observe(n)}return s(!0),o}function Jc(n,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=gr(n),c=r||o?[...u?en(u):[],...en(e)]:[];c.forEach(y=>{r&&y.addEventListener("scroll",t,{passive:!0}),o&&y.addEventListener("resize",t)});const d=u&&a?Xc(u,t):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(e)})),t()}),u&&!l&&p.observe(u),p.observe(e));let m,v=l?ei(n):null;l&&g();function g(){const y=ei(n);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&t(),v=y,m=requestAnimationFrame(g)}return t(),()=>{c.forEach(y=>{r&&y.removeEventListener("scroll",t),o&&y.removeEventListener("resize",t)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}var Xn=f.useLayoutEffect,Qc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tn=function(){};function ed(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function td(n,e){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r-1}function nd(n){return Cn(n)?window.innerHeight:n.clientHeight}function Do(n){return Cn(n)?window.pageYOffset:n.scrollTop}function nn(n,e){if(Cn(n)){window.scrollTo(0,e);return}n.scrollTop=e}function rd(n){var e=getComputedStyle(n),t=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var r=n;r=r.parentElement;)if(e=getComputedStyle(r),!(t&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return r;return document.documentElement}function id(n,e,t,i){return t*((n=n/i-1)*n*n+1)+e}function Gt(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:tn,r=Do(n),o=e-r,s=10,a=0;function l(){a+=s;var u=id(a,r,o,t);nn(n,u),at.bottom?nn(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+r,n.scrollHeight)):i.top-r1?t-1:0),r=1;r=m)return{placement:"bottom",maxHeight:e};if(C>=m&&!s)return o&&Gt(l,O,M),{placement:"bottom",maxHeight:e};if(!s&&C>=i||s&&A>=i){o&&Gt(l,O,M);var D=s?A-I:C-I;return{placement:"bottom",maxHeight:D}}if(r==="auto"||s){var x=e,k=s?P:b;return k>=i&&(x=Math.min(k-I-a,e)),{placement:"top",maxHeight:x}}if(r==="bottom")return o&&nn(l,O),{placement:"bottom",maxHeight:e};break;case"top":if(P>=m)return{placement:"top",maxHeight:e};if(b>=m&&!s)return o&&Gt(l,_,M),{placement:"top",maxHeight:e};if(!s&&b>=i||s&&P>=i){var $=e;return(!s&&b>=i||s&&P>=i)&&($=s?P-L:b-L),o&&Gt(l,_,M),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function md(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var Ro=function(e){return e==="auto"?"bottom":e},gd=function(e,t){var i,r=e.placement,o=e.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return T((i={label:"menu"},gt(i,md(r),"100%"),gt(i,"position","absolute"),gt(i,"width","100%"),gt(i,"zIndex",1),i),t?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},To=f.createContext(null),vd=function(e){var t=e.children,i=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=f.useContext(To)||{},c=u.setPortalPlacement,d=f.useRef(null),h=f.useState(r),p=ye(h,2),m=p[0],v=p[1],g=f.useState(null),y=ye(g,2),w=y[0],E=y[1],I=l.spacing.controlHeight;return Xn(function(){var L=d.current;if(L){var P=s==="fixed",A=a&&!P,b=pd({maxHeight:r,menuEl:L,minHeight:i,placement:o,shouldScroll:A,isFixedPosition:P,controlHeight:I});v(b.maxHeight),E(b.placement),c?.(b.placement)}},[r,o,s,a,i,c,I]),t({ref:d,placerProps:T(T({},e),{},{placement:w||Ro(o),maxHeight:m})})},bd=function(e){var t=e.children,i=e.innerRef,r=e.innerProps;return F("div",N({},Z(e,"menu",{menu:!0}),{ref:i},r),t)},yd=bd,Sd=function(e,t){var i=e.maxHeight,r=e.theme.spacing.baseUnit;return T({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},Ed=function(e){var t=e.children,i=e.innerProps,r=e.innerRef,o=e.isMulti;return F("div",N({},Z(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),t)},Fo=function(e,t){var i=e.theme,r=i.spacing.baseUnit,o=i.colors;return T({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Cd=Fo,xd=Fo,wd=function(e){var t=e.children,i=t===void 0?"No options":t,r=e.innerProps,o=Ee(e,hd);return F("div",N({},Z(T(T({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},_d=function(e){var t=e.children,i=t===void 0?"Loading...":t,r=e.innerProps,o=Ee(e,fd);return F("div",N({},Z(T(T({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Pd=function(e){var t=e.rect,i=e.offset,r=e.position;return{left:t.left,position:r,top:i,width:t.width,zIndex:1}},Id=function(e){var t=e.appendTo,i=e.children,r=e.controlElement,o=e.innerProps,s=e.menuPlacement,a=e.menuPosition,l=f.useRef(null),u=f.useRef(null),c=f.useState(Ro(s)),d=ye(c,2),h=d[0],p=d[1],m=f.useMemo(function(){return{setPortalPlacement:p}},[]),v=f.useState(null),g=ye(v,2),y=g[0],w=g[1],E=f.useCallback(function(){if(r){var A=od(r),b=a==="fixed"?0:window.pageYOffset,C=A[h]+b;(C!==y?.offset||A.left!==y?.rect.left||A.width!==y?.rect.width)&&w({offset:C,rect:A})}},[r,a,h,y?.offset,y?.rect.left,y?.rect.width]);Xn(function(){E()},[E]);var I=f.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&l.current&&(u.current=Jc(r,l.current,E,{elementResize:"ResizeObserver"in window}))},[r,E]);Xn(function(){I()},[I]);var L=f.useCallback(function(A){l.current=A,I()},[I]);if(!t&&a!=="fixed"||!y)return null;var P=F("div",N({ref:L},Z(T(T({},e),{},{offset:y.offset,position:a,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),i);return F(To.Provider,{value:m},t?xs.createPortal(P,t):P)},Od=function(e){var t=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Md=function(e){var t=e.children,i=e.innerProps,r=e.isDisabled,o=e.isRtl;return F("div",N({},Z(e,"container",{"--is-disabled":r,"--is-rtl":o}),i),t)},kd=function(e,t){var i=e.theme.spacing,r=e.isMulti,o=e.hasValue,s=e.selectProps.controlShouldRenderValue;return T({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Ad=function(e){var t=e.children,i=e.innerProps,r=e.isMulti,o=e.hasValue;return F("div",N({},Z(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),t)},Dd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ld=function(e){var t=e.children,i=e.innerProps;return F("div",N({},Z(e,"indicatorsContainer",{indicators:!0}),i),t)},ii,Rd=["size"],Td=["innerProps","isRtl","size"],Fd={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Vo=function(e){var t=e.size,i=Ee(e,Rd);return F("svg",N({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Fd},i))},vr=function(e){return F(Vo,N({size:20},e),F("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},No=function(e){return F(Vo,N({size:20},e),F("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},jo=function(e,t){var i=e.isFocused,r=e.theme,o=r.spacing.baseUnit,s=r.colors;return T({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},Vd=jo,Nd=function(e){var t=e.children,i=e.innerProps;return F("div",N({},Z(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),t||F(No,null))},jd=jo,Bd=function(e){var t=e.children,i=e.innerProps;return F("div",N({},Z(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),t||F(vr,null))},$d=function(e,t){var i=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,s=r.colors;return T({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},Hd=function(e){var t=e.innerProps;return F("span",N({},t,Z(e,"indicatorSeparator",{"indicator-separator":!0})))},zd=Cs(ii||(ii=Bc([` diff --git a/openlayers-base-packages/assets/7552635170e4.js b/openlayers-base-packages/assets/e6bc1137128f.js similarity index 99% rename from openlayers-base-packages/assets/7552635170e4.js rename to openlayers-base-packages/assets/e6bc1137128f.js index d599768a1..6160ee19d 100644 --- a/openlayers-base-packages/assets/7552635170e4.js +++ b/openlayers-base-packages/assets/e6bc1137128f.js @@ -16,5 +16,5 @@ ${s}`)!==100){const l=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase( `)return N.push(` `,""),N;if(re==2){N.push(Ar(J,lt),ie);return}J=Lr(J,ie,tr,lt).split(` `);for(let le=0,ue=J.length;le0&&N.push(` -`,""),N.push(J[le],ie);return N},[]):ee=wr(Z,X).trim(),we=E(x,"paint","text-opacity",v,T,m,C)}if(ee&&we&&!er){zt||(++$,b=S[$],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Se,S[$]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(G||new Yo({padding:[2,2,2,2]})),G=b.getText();const B=it["text-transform"];B=="uppercase"?ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toUpperCase()):ee.toUpperCase():B=="lowercase"&&(ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toLowerCase()):ee.toLowerCase());const Z=Array.isArray(ee)?ee:re==2?Ar(ee,lt):Lr(ee,at,tr,lt);G.setText(Z),G.setFont(at),G.setRotation(gr(E(x,"layout","text-rotate",v,T,m,C)));const N=E(x,"layout","text-anchor",v,T,m,C),W=zt||re==1?"point":E(x,"layout","symbol-placement",v,T,m,C);let D;if(W==="line-center"?(G.setPlacement("line"),D="center"):G.setPlacement(W),W==="line"&&typeof G.setRepeat=="function"){const Y=E(x,"layout","symbol-spacing",v,T,m,C);G.setRepeat(Y*2)}G.setOverflow(W==="point");let O=E(x,"paint","text-halo-width",v,T,m,C);const ie=E(x,"layout","text-offset",v,T,m,C),J=E(x,"paint","text-translate",v,T,m,C);let le=0,ue=0;if(W=="point"){D="center",N.indexOf("left")!==-1?(D="left",ue=O):N.indexOf("right")!==-1&&(D="right",ue=-O);const Y=E(x,"layout","text-rotation-alignment",v,T,m,C);G.setRotateWithView(Y=="map")}else G.setMaxAngle(gr(E(x,"layout","text-max-angle",v,T,m,C))*ee.length/Z.length),G.setRotateWithView(!1);G.setTextAlign(D);let ae="middle";N.indexOf("bottom")==0?(ae="bottom",le=-O-.5*(st-1)*Ee):N.indexOf("top")==0&&(ae="top",le=O+.5*(st-1)*Ee),G.setTextBaseline(ae);const ce=E(x,"layout","text-justify",v,T,m,C);G.setJustify(ce==="auto"?void 0:ce),G.setOffsetX(ie[0]*Ee+ue+J[0]),G.setOffsetY(ie[1]*Ee+le+J[1]),k.setColor(Ce(E(x,"paint","text-color",v,T,m,C),we)),G.setFill(k);const H=Ce(E(x,"paint","text-halo-color",v,T,m,C),we);if(H){R.setColor(H),O*=2;const Y=.5*Ee;R.setWidth(O<=Y?O:Y),G.setStroke(R)}else G.setStroke(void 0);const oe=E(x,"layout","text-padding",v,T,m,C),he=G.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if($>-1)return S.length=$+1,S};return t.setStyle(L),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),L}function lu(t,e=512){return t.getExtent()?jr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():wt}function uu(t,e){return e.accessToken||(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function cu(t,e,r="",n={},i=void 0){let o,a,s,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(s=r,l=s.source||s.layers,n=s):l=r,typeof n=="string"?(o=n,s={}):(o=n.styleUrl,s=n),s.updateSource===!1&&(u=!1),i||(i=s.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Hi(o,s.accessToken),s=uu(o,s)),new Promise(function(c,p){Ki(e,s).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof zr||t instanceof ft))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof ft?"vector":"geojson";if(l?Array.isArray(l)?a=d.layers.find(function(k){return k.id===l[0]}).source:a=l:(a=Object.keys(d.sources).find(function(k){return d.sources[k].type===f}),l=a),!a)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof ft)return yu(d.sources[a],o,s).then(function(w){const z=t.getSource();if(z?w!==z&&(z.setTileUrlFunction(w.getTileUrlFunction()),typeof z.setUrls=="function"&&typeof w.getUrls=="function"&&z.setUrls(w.getUrls()),z.format_||(z.format_=w.format_),z.getAttributions()||z.setAttributions(w.getAttributions()),z.getTileLoadFunction()===mi&&z.setTileLoadFunction(w.getTileLoadFunction()),Jo(z.getProjection(),w.getProjection())&&(z.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const M=t.getSource().getTileGrid();t.setMaxResolution(M.getResolution(M.getMinZoom()))}});const k=d.sources[a];let S=t.getSource();(!S||S.get("mapbox-source")!==k)&&(S=xu(k,o,s));const L=t.getSource();return L?S!==L&&(L.getAttributions()||L.setAttributions(S.getAttributions()),L.format_||(L.format_=S.getFormat()),L.url_=S.getUrl()):t.setSource(S),Promise.resolve()}let g,m,I,F;function R(){if(!F&&(!d.sprite||m)){if(s.projection&&!i){const S=$e(s.projection).getUnits();S!=="m"&&(i=wt.map(L=>L/Uo[S]))}F=su(t,d,l,i,m,I,Ql,s.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${a}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const k=new URL(Gl(d.sprite,s.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const S=g==.5?"@2x":"";let L=k.origin+k.pathname+S+".json"+k.search;new Promise(function(w,z){et("Sprite",L,s).then(w).catch(function(M){L=k.origin+k.pathname+".json"+k.search,et("Sprite",L,s).then(w).catch(z)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,I=k.origin+k.pathname+S+".png"+k.search,s.transformRequest){const z=s.transformRequest(I,"SpriteImage")||I;(z instanceof Request||z instanceof Promise)&&(I=z)}R()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${L}: ${w.message}`))})}else R()}).catch(p)})}const ri={};function pu(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ui)return t.setBackground(function(i){return Qi(n,i,r,{})}),!0;if(t instanceof Bo||t instanceof Zo)return t.getLayers().push(mu(n,r,{})),!0}})}function du(t,e,r={}){return Ki(e,r).then(function(n){pu(t,n,r)})}function fu(t,e){const r=t.bounds;if(r){const n=zn([r[0],r[1]],e),i=zn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return $e(e).getExtent()}function hu(t,e,r){const n=new Da({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),a=$e(r.projection||"EPSG:3857"),s=fu(i,a),l=a.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:a,tileGrid:new $r({origin:l?ai(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:u,resolutions:lu(a,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function Qi(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},a=t.paint||{};i.paint=a;const s=Ji(e,r.resolutions||wt);let l,u;return a["background-color"]!==void 0&&(l=E(i,"paint","background-color",s,ri,n)),a["background-opacity"]!==void 0&&(u=E(i,"paint","background-opacity",s,ri,n)),o.visibility=="none"?void 0:Ce(l,u)}function mu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ui({source:new Wo({}),render(i){const o=Qi(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function yu(t,e,r){return new Promise(function(n,i){Wl(t,e,r).then(function({tileJson:o,tileLoadFunction:a}){const s=hu(t,o,r);s.tileLoadFunction=a,s.format=new Nr,n(new Or(s))}).catch(i)})}function gu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function xu(t,e,r){const n=r.projection?new Fr({dataProjection:r.projection}):new Fr,i=t.data,o={};if(typeof i=="string"){const s=Dt(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(s)){const u=(p,d,f)=>{const h=gu(f);return s.replace(h,`${p.join(",")}`)},c=new At({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;et("GeoJSON",m,r).then(I=>{const F=c.getFormat().readFeatures(I,{featureProjection:f});c.addFeatures(F),h(F)}).catch(I=>{c.removeLoadedExtent(p),g()})},strategy:ni});return c.set("mapbox-source",t),c}const l=new At({attributions:t.attribution,format:n,url:s,loader:(u,c,p,d,f)=>{et("GeoJSON",s,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const a=new At(Object.assign({attributions:t.attribution,format:n},o));return a.set("mapbox-source",t),a}class bu extends Vo{constructor(e){super(Tr.ERROR),this.error=e}}class vu extends ft{constructor(e){const r="declutter"in e?e.declutter:!0,n=new Or({state:"loading",format:new Nr});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),e.accessToken&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[cu(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(du(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(a=>{this.dispatchEvent(new bu(a)),this.getSource().setState("error")})}}const Ze="main";class wu{mapId=Ze;async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new ut({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new Qo({source:new ea})}),new ut({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new zr({style:new Se({image:new ci({fill:new We({color:"blue"}),radius:5})}),source:Rn({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new ut({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new zr({source:Rn({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new ut({title:"Abschnitte / Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new vu({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs"})}),new ut({title:"Pendleratlas",visible:!0,olLayer:new ft({source:new Or({url:"https://pendleratlas.statistikportal.de/_vector_tiles/2022/vg250/{z}/{x}/{y}.pbf",format:new Nr,projection:"EPSG:3857",attributions:`© Statistische Ämter der Länder ${new Date().getFullYear()} | GeoBasis-DE/BKG ${new Date().getFullYear()}`}),style:new Se({fill:new We({color:"rgba(173, 209, 158, 0.6)"}),stroke:new pt({color:"#2d7d9f",width:3})})})})]}}}const Tu={"ogc-api-app":{name:"ogc-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:wu,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ta,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},ku=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none} +`,""),N.push(J[le],ie);return N},[]):ee=wr(Z,X).trim(),we=E(x,"paint","text-opacity",v,T,m,C)}if(ee&&we&&!er){zt||(++$,b=S[$],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Se,S[$]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(G||new Yo({padding:[2,2,2,2]})),G=b.getText();const B=it["text-transform"];B=="uppercase"?ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toUpperCase()):ee.toUpperCase():B=="lowercase"&&(ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toLowerCase()):ee.toLowerCase());const Z=Array.isArray(ee)?ee:re==2?Ar(ee,lt):Lr(ee,at,tr,lt);G.setText(Z),G.setFont(at),G.setRotation(gr(E(x,"layout","text-rotate",v,T,m,C)));const N=E(x,"layout","text-anchor",v,T,m,C),W=zt||re==1?"point":E(x,"layout","symbol-placement",v,T,m,C);let D;if(W==="line-center"?(G.setPlacement("line"),D="center"):G.setPlacement(W),W==="line"&&typeof G.setRepeat=="function"){const Y=E(x,"layout","symbol-spacing",v,T,m,C);G.setRepeat(Y*2)}G.setOverflow(W==="point");let O=E(x,"paint","text-halo-width",v,T,m,C);const ie=E(x,"layout","text-offset",v,T,m,C),J=E(x,"paint","text-translate",v,T,m,C);let le=0,ue=0;if(W=="point"){D="center",N.indexOf("left")!==-1?(D="left",ue=O):N.indexOf("right")!==-1&&(D="right",ue=-O);const Y=E(x,"layout","text-rotation-alignment",v,T,m,C);G.setRotateWithView(Y=="map")}else G.setMaxAngle(gr(E(x,"layout","text-max-angle",v,T,m,C))*ee.length/Z.length),G.setRotateWithView(!1);G.setTextAlign(D);let ae="middle";N.indexOf("bottom")==0?(ae="bottom",le=-O-.5*(st-1)*Ee):N.indexOf("top")==0&&(ae="top",le=O+.5*(st-1)*Ee),G.setTextBaseline(ae);const ce=E(x,"layout","text-justify",v,T,m,C);G.setJustify(ce==="auto"?void 0:ce),G.setOffsetX(ie[0]*Ee+ue+J[0]),G.setOffsetY(ie[1]*Ee+le+J[1]),k.setColor(Ce(E(x,"paint","text-color",v,T,m,C),we)),G.setFill(k);const H=Ce(E(x,"paint","text-halo-color",v,T,m,C),we);if(H){R.setColor(H),O*=2;const Y=.5*Ee;R.setWidth(O<=Y?O:Y),G.setStroke(R)}else G.setStroke(void 0);const oe=E(x,"layout","text-padding",v,T,m,C),he=G.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if($>-1)return S.length=$+1,S};return t.setStyle(L),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),L}function lu(t,e=512){return t.getExtent()?jr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():wt}function uu(t,e){return e.accessToken||(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function cu(t,e,r="",n={},i=void 0){let o,a,s,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(s=r,l=s.source||s.layers,n=s):l=r,typeof n=="string"?(o=n,s={}):(o=n.styleUrl,s=n),s.updateSource===!1&&(u=!1),i||(i=s.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Hi(o,s.accessToken),s=uu(o,s)),new Promise(function(c,p){Ki(e,s).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof zr||t instanceof ft))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof ft?"vector":"geojson";if(l?Array.isArray(l)?a=d.layers.find(function(k){return k.id===l[0]}).source:a=l:(a=Object.keys(d.sources).find(function(k){return d.sources[k].type===f}),l=a),!a)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof ft)return yu(d.sources[a],o,s).then(function(w){const z=t.getSource();if(z?w!==z&&(z.setTileUrlFunction(w.getTileUrlFunction()),typeof z.setUrls=="function"&&typeof w.getUrls=="function"&&z.setUrls(w.getUrls()),z.format_||(z.format_=w.format_),z.getAttributions()||z.setAttributions(w.getAttributions()),z.getTileLoadFunction()===mi&&z.setTileLoadFunction(w.getTileLoadFunction()),Jo(z.getProjection(),w.getProjection())&&(z.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const M=t.getSource().getTileGrid();t.setMaxResolution(M.getResolution(M.getMinZoom()))}});const k=d.sources[a];let S=t.getSource();(!S||S.get("mapbox-source")!==k)&&(S=xu(k,o,s));const L=t.getSource();return L?S!==L&&(L.getAttributions()||L.setAttributions(S.getAttributions()),L.format_||(L.format_=S.getFormat()),L.url_=S.getUrl()):t.setSource(S),Promise.resolve()}let g,m,I,F;function R(){if(!F&&(!d.sprite||m)){if(s.projection&&!i){const S=$e(s.projection).getUnits();S!=="m"&&(i=wt.map(L=>L/Uo[S]))}F=su(t,d,l,i,m,I,Ql,s.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${a}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const k=new URL(Gl(d.sprite,s.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const S=g==.5?"@2x":"";let L=k.origin+k.pathname+S+".json"+k.search;new Promise(function(w,z){et("Sprite",L,s).then(w).catch(function(M){L=k.origin+k.pathname+".json"+k.search,et("Sprite",L,s).then(w).catch(z)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,I=k.origin+k.pathname+S+".png"+k.search,s.transformRequest){const z=s.transformRequest(I,"SpriteImage")||I;(z instanceof Request||z instanceof Promise)&&(I=z)}R()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${L}: ${w.message}`))})}else R()}).catch(p)})}const ri={};function pu(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ui)return t.setBackground(function(i){return Qi(n,i,r,{})}),!0;if(t instanceof Bo||t instanceof Zo)return t.getLayers().push(mu(n,r,{})),!0}})}function du(t,e,r={}){return Ki(e,r).then(function(n){pu(t,n,r)})}function fu(t,e){const r=t.bounds;if(r){const n=zn([r[0],r[1]],e),i=zn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return $e(e).getExtent()}function hu(t,e,r){const n=new Da({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),a=$e(r.projection||"EPSG:3857"),s=fu(i,a),l=a.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:a,tileGrid:new $r({origin:l?ai(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:u,resolutions:lu(a,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function Qi(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},a=t.paint||{};i.paint=a;const s=Ji(e,r.resolutions||wt);let l,u;return a["background-color"]!==void 0&&(l=E(i,"paint","background-color",s,ri,n)),a["background-opacity"]!==void 0&&(u=E(i,"paint","background-opacity",s,ri,n)),o.visibility=="none"?void 0:Ce(l,u)}function mu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ui({source:new Wo({}),render(i){const o=Qi(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function yu(t,e,r){return new Promise(function(n,i){Wl(t,e,r).then(function({tileJson:o,tileLoadFunction:a}){const s=hu(t,o,r);s.tileLoadFunction=a,s.format=new Nr,n(new Or(s))}).catch(i)})}function gu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function xu(t,e,r){const n=r.projection?new Fr({dataProjection:r.projection}):new Fr,i=t.data,o={};if(typeof i=="string"){const s=Dt(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(s)){const u=(p,d,f)=>{const h=gu(f);return s.replace(h,`${p.join(",")}`)},c=new At({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;et("GeoJSON",m,r).then(I=>{const F=c.getFormat().readFeatures(I,{featureProjection:f});c.addFeatures(F),h(F)}).catch(I=>{c.removeLoadedExtent(p),g()})},strategy:ni});return c.set("mapbox-source",t),c}const l=new At({attributions:t.attribution,format:n,url:s,loader:(u,c,p,d,f)=>{et("GeoJSON",s,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const a=new At(Object.assign({attributions:t.attribution,format:n},o));return a.set("mapbox-source",t),a}class bu extends Vo{constructor(e){super(Tr.ERROR),this.error=e}}class vu extends ft{constructor(e){const r="declutter"in e?e.declutter:!0,n=new Or({state:"loading",format:new Nr});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),e.accessToken&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[cu(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(du(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(a=>{this.dispatchEvent(new bu(a)),this.getSource().setState("error")})}}const Ze="main";class wu{mapId=Ze;async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new ut({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new Qo({source:new ea})}),new ut({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new zr({style:new Se({image:new ci({fill:new We({color:"blue"}),radius:5})}),source:Rn({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new ut({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new zr({source:Rn({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new ut({title:"Abschnitte / Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new vu({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs"})}),new ut({title:"Pendleratlas",visible:!0,olLayer:new ft({source:new Or({url:"https://pendleratlas.statistikportal.de/_vector_tiles/2022/vg250/{z}/{x}/{y}.pbf",format:new Nr,projection:"EPSG:3857",attributions:`© Statistische Ämter der Länder ${new Date().getFullYear()} | GeoBasis-DE/BKG ${new Date().getFullYear()}`}),style:new Se({fill:new We({color:"rgba(173, 209, 158, 0.6)"}),stroke:new pt({color:"#2d7d9f",width:3})})})})]}}}const Tu={"ogc-api-app":{name:"ogc-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:wu,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ta,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},ku=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none} `,zu=["en","de"];function Fu(t){switch(t){case"en":return Cn(()=>import("./1ba4be1d9e54.js"),[],import.meta.url).then(e=>e.default);case"de":return Cn(()=>import("./779f9f732317.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${t}'`)}const Eu=so(ku),Cu=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Fu,locales:zu,packages:Tu,styles:Eu},Symbol.toStringTag,{value:"Module"})),Su="ogc-api-app",Ru=fa.bind(void 0,Su);function Iu(){const t=Ru();return K.jsx(or,{height:"100%",direction:"column",overflow:"hidden",children:K.jsx(Fn,{title:K.jsx(Sn,{textAlign:"center",py:1,children:K.jsx(En,{size:"md",children:"Open Pioneer - OGC API Features and OGC API Tiles Sample"})}),children:K.jsx(or,{flex:"1",direction:"column",position:"relative",children:K.jsxs(ra,{mapId:Ze,children:[K.jsx(ir,{position:"top-left",horizontalGap:20,verticalGap:20,children:K.jsx(Sn,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:K.jsx(Fn,{title:K.jsx(En,{size:"md",children:t.formatMessage({id:"tocTitle"})}),children:K.jsx(la,{mapId:Ze,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})}),K.jsx(ir,{position:"top-right",horizontalGap:10,verticalGap:10,children:K.jsxs(ha,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[K.jsx(ar,{as:"b",children:"Description"}),K.jsx(ar,{children:"This application can be used to test OGC API Features and OGC API Tiles."}),K.jsx(ar,{children:"Vector Tiles cannot be reprojected and require the map to use the same projection. Currently all known MVT vector tile sets are using WebMercator, making them unusable in the Default Sample App which uses ETRS89/UTM zone 32N. This Sample App uses WebMercator."})]})}),K.jsx(ir,{position:"bottom-right",horizontalGap:10,verticalGap:30,children:K.jsxs(or,{direction:"column",gap:1,padding:1,children:[K.jsx(ua,{mapId:Ze}),K.jsx(ca,{mapId:Ze}),K.jsx(pa,{mapId:Ze})]})})]})})})})}const Mu=lo({component:Iu,theme:uo,appMetadata:Cu,async resolveConfig(t){const e=t.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ogc-api-app",Mu);const _u=document.getElementsByTagName("body")[0];Pu();function Pu(){const t=window.location.search,r=new URLSearchParams(t).get("lang"),n=document.createElement("ogc-api-app");n.classList.add("full-height"),n.setAttribute("id","test"),r&&n.setAttribute("forced-locale",r),_u.appendChild(n)} diff --git a/openlayers-base-packages/docs/classes/_open_pioneer_ogc_features.OgcFeatureSearchSource.html b/openlayers-base-packages/docs/classes/_open_pioneer_ogc_features.OgcFeatureSearchSource.html index cf32f98b4..a379f8ae0 100644 --- a/openlayers-base-packages/docs/classes/_open_pioneer_ogc_features.OgcFeatureSearchSource.html +++ b/openlayers-base-packages/docs/classes/_open_pioneer_ogc_features.OgcFeatureSearchSource.html @@ -29,7 +29,7 @@

Implements

+
  • Defined in OgcFeatureSearchSource.ts:73
  • @@ -61,7 +61,7 @@

    Parameters

    options: OgcFeatureSearchSourceOptions

    Returns OgcFeatureSearchSource

    +
  • Defined in OgcFeatureSearchSource.ts:79
  • Properties

    @@ -73,7 +73,7 @@
    +
  • Defined in OgcFeatureSearchSource.ts:74
  • Methods

    @@ -102,7 +102,7 @@

    Returns Promise<

    +
  • Defined in OgcFeatureSearchSource.ts:88
  • +
  • Defined in map/ui/MapAnchor.tsx:57
  • +
  • Defined in src/packages/react-utils/TitledSection.tsx:168
  • +
  • Defined in src/packages/authentication/api.ts:11
  • +
  • Defined in src/packages/authentication/ForceAuth.tsx:48
  • +
  • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
  • mapId: string
    @@ -96,7 +96,7 @@
    +
  • Defined in src/packages/basemap-switcher/BasemapSwitcher.tsx:36
  • +
  • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
  • mapId: string
    @@ -67,7 +67,7 @@
    +
  • Defined in src/packages/coordinate-viewer/CoordinateViewer.tsx:23
  • precision?: number
    @@ -75,7 +75,7 @@
    +
  • Defined in src/packages/coordinate-viewer/CoordinateViewer.tsx:28
  • +
  • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
  • mapId: string
    @@ -79,7 +79,7 @@
    +
  • Defined in src/packages/geolocation/Geolocation.tsx:25
  • maxZoom?: number
    @@ -87,7 +87,7 @@
    +
  • Defined in src/packages/geolocation/Geolocation.tsx:29
  • positionFeatureStyle?: StyleLike
    @@ -95,7 +95,7 @@
    +
  • Defined in src/packages/geolocation/Geolocation.tsx:33
  • trackingOptions?: PositionOptions
    @@ -105,7 +105,7 @@
    +
  • Defined in src/packages/geolocation/Geolocation.tsx:44
  • +
  • Defined in api.ts:91
    • @@ -121,7 +121,7 @@

      Returns void

    +
  • Defined in api.ts:51
    • @@ -136,7 +136,7 @@

      Returns void

    +
  • Defined in api.ts:60
    • @@ -162,7 +162,7 @@

      Returns void

    +
  • Defined in api.ts:46
  • +
  • Defined in map/api/layers/base.ts:79
  • id: string
    @@ -94,7 +94,7 @@
    +
  • Defined in map/api/layers/base.ts:73
  • isBaseLayer: boolean
    @@ -103,7 +103,7 @@
    +
  • Defined in map/api/layers/base.ts:166
  • loadState: LayerLoadState
    @@ -111,7 +111,7 @@
    +
  • Defined in map/api/layers/base.ts:154
  • @@ -120,7 +120,7 @@
    +
  • Defined in map/api/layers/base.ts:65
  • olLayer: BaseLayer
    @@ -128,7 +128,7 @@
    +
  • Defined in map/api/layers/base.ts:159
  • sublayers: undefined | SublayersCollection
    @@ -138,7 +138,7 @@
    +
  • Defined in map/api/layers/base.ts:94
  • title: string
    @@ -147,7 +147,7 @@
    +
  • Defined in map/api/layers/base.ts:76
  • visible: boolean
    @@ -158,7 +158,7 @@
    +
  • Defined in map/api/layers/base.ts:87
  • Methods

    @@ -177,7 +177,7 @@

    Returns void

    +
  • Defined in map/api/layers/base.ts:128
    • @@ -194,7 +194,7 @@

      Returns void

    +
  • Defined in map/api/layers/base.ts:109
    • @@ -211,7 +211,7 @@

      Returns void

    +
  • Defined in map/api/layers/base.ts:104
    • @@ -230,7 +230,7 @@

      Returns void

    +
  • Defined in map/api/layers/base.ts:117
    • @@ -248,7 +248,7 @@

      Returns void

    +
  • Defined in map/api/layers/base.ts:123
  • +
  • Defined in map/api/layers/base.ts:47
  • +
  • Defined in map/api/layers/base.ts:41
  • id?: string
    @@ -76,7 +76,7 @@
    +
  • Defined in map/api/layers/base.ts:30
  • isBaseLayer?: boolean
    @@ -86,7 +86,7 @@
    +
  • Defined in map/api/layers/base.ts:141
  • title: string
    @@ -95,7 +95,7 @@
    +
  • Defined in map/api/layers/base.ts:35
  • visible?: boolean
    @@ -105,7 +105,7 @@
    +
  • Defined in map/api/layers/base.ts:47
  • +
  • Defined in react-utils/useCommonComponentProps.ts:18
  • horizontalGap?: number
    @@ -83,7 +83,7 @@

    Default

    0
     
    +
  • Defined in map/ui/MapAnchor.tsx:30
  • @@ -94,7 +94,7 @@

    Default

    "top-righ
     
    +
  • Defined in map/ui/MapAnchor.tsx:19
  • stopEvents?: boolean
    @@ -107,7 +107,7 @@
    +
  • Defined in map/ui/MapAnchor.tsx:52
  • verticalGap?: number
    @@ -122,7 +122,7 @@

    0 (If position bottom-*, default verticalGap == 30)

    +
  • Defined in map/ui/MapAnchor.tsx:41
  • +
  • Defined in react-utils/useCommonComponentProps.ts:18
  • mapId: string
    @@ -97,7 +97,7 @@
    +
  • Defined in map/ui/MapContainer.tsx:27
  • role?: string
    @@ -106,7 +106,7 @@
    +
  • Defined in map/ui/MapContainer.tsx:54
  • viewPadding?: MapPadding
    @@ -115,7 +115,7 @@
    +
  • Defined in map/ui/MapContainer.tsx:34
  • viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent"
    @@ -131,7 +131,7 @@

    Default

    "preserve
     
    +
  • Defined in map/ui/MapContainer.tsx:45
  • +
  • Defined in map/api/MapConfig.ts:65
  • +
  • Defined in map/api/layers/base.ts:41
  • id?: string
    @@ -75,7 +75,7 @@
    +
  • Defined in map/api/layers/base.ts:30
  • isBaseLayer?: boolean
    @@ -86,7 +86,7 @@
    +
  • Defined in map/api/layers/base.ts:141
  • olLayer: BaseLayer
    @@ -94,7 +94,7 @@
    +
  • Defined in map/api/layers/SimpleLayer.ts:16
  • title: string
    @@ -103,7 +103,7 @@
    +
  • Defined in map/api/layers/base.ts:35
  • visible?: boolean
    @@ -113,7 +113,7 @@
    +
  • Defined in map/api/layers/base.ts:47
  • +
  • Defined in map/api/layers/base.ts:79
  • id: string
    @@ -83,7 +83,7 @@
    +
  • Defined in map/api/layers/base.ts:73
  • @@ -92,7 +92,7 @@
    +
  • Defined in map/api/layers/base.ts:65
  • parent: Layer<{}> | Sublayer
    @@ -101,7 +101,7 @@
    +
  • Defined in map/api/layers/base.ts:177
  • parentLayer: Layer<{}>
    @@ -112,7 +112,7 @@

    Type declaration

      +
    • Defined in map/api/layers/base.ts:182
    • sublayers: undefined | SublayersCollection
      @@ -122,7 +122,7 @@
      +
    • Defined in map/api/layers/base.ts:94
    • title: string
      @@ -131,7 +131,7 @@
      +
    • Defined in map/api/layers/base.ts:76
    • visible: boolean
      @@ -142,7 +142,7 @@
      +
    • Defined in map/api/layers/base.ts:87
    • Methods

      @@ -161,7 +161,7 @@

      Returns void

      +
    • Defined in map/api/layers/base.ts:128
      • @@ -178,7 +178,7 @@

        Returns void

      +
    • Defined in map/api/layers/base.ts:109
      • @@ -195,7 +195,7 @@

        Returns void

      +
    • Defined in map/api/layers/base.ts:104
      • @@ -214,7 +214,7 @@

        Returns void

      +
    • Defined in map/api/layers/base.ts:117
      • @@ -232,7 +232,7 @@

        Returns void

      +
    • Defined in map/api/layers/base.ts:123
    • +
    • Defined in map/api/layers/base.ts:79
    • id: string
      @@ -86,7 +86,7 @@
      +
    • Defined in map/api/layers/base.ts:73
    • isBaseLayer: boolean
      @@ -96,7 +96,7 @@
      +
    • Defined in map/api/layers/base.ts:166
    • loadState: LayerLoadState
      @@ -105,7 +105,7 @@
      +
    • Defined in map/api/layers/base.ts:154
    • @@ -114,7 +114,7 @@
      +
    • Defined in map/api/layers/base.ts:65
    • olLayer: BaseLayer
      @@ -123,7 +123,7 @@
      +
    • Defined in map/api/layers/base.ts:159
    • @@ -133,7 +133,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:39
    • title: string
      @@ -142,7 +142,7 @@
      +
    • Defined in map/api/layers/base.ts:76
    • url: string
      @@ -150,7 +150,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:42
    • visible: boolean
      @@ -161,7 +161,7 @@
      +
    • Defined in map/api/layers/base.ts:87
    • Methods

      @@ -180,7 +180,7 @@

      Returns void

      +
    • Defined in map/api/layers/base.ts:128
    • +
    • Defined in map/api/layers/base.ts:109
    • +
    • Defined in map/api/layers/base.ts:104
    • +
    • Defined in map/api/layers/base.ts:117
    • +
    • Defined in map/api/layers/base.ts:123
    • +
    • Defined in map/api/layers/base.ts:41
    • id?: string
      @@ -75,7 +75,7 @@
      +
    • Defined in map/api/layers/base.ts:30
    • sourceOptions?: Partial<Options>
      @@ -85,7 +85,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:23
    • sublayers?: WMSSublayerConfig[]
      @@ -93,7 +93,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:15
    • title: string
      @@ -102,7 +102,7 @@
      +
    • Defined in map/api/layers/base.ts:35
    • url: string
      @@ -110,7 +110,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:12
    • visible?: boolean
      @@ -120,7 +120,7 @@
      +
    • Defined in map/api/layers/base.ts:47
    • +
    • Defined in map/api/layers/base.ts:41
    • id?: string
      @@ -74,7 +74,7 @@
      +
    • Defined in map/api/layers/base.ts:30
    • name: string
      @@ -82,7 +82,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:31
    • sublayers?: WMSSublayerConfig[]
      @@ -90,7 +90,7 @@
      +
    • Defined in map/api/layers/WMSLayer.ts:34
    • title: string
      @@ -99,7 +99,7 @@
      +
    • Defined in map/api/layers/base.ts:35
    • visible?: boolean
      @@ -109,7 +109,7 @@
      +
    • Defined in map/api/layers/base.ts:47
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -67,7 +67,7 @@
      +
    • Defined in src/packages/map-navigation/InitialExtent.tsx:18
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -68,7 +68,7 @@
      +
    • Defined in src/packages/map-navigation/Zoom.tsx:41
    • zoomDirection: "in" | "out"
      @@ -77,7 +77,7 @@
      +
    • Defined in src/packages/map-navigation/Zoom.tsx:48
    • +
    • Defined in index.ts:23
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • finishedFeatureStyle?: StyleLike
      @@ -76,7 +76,7 @@
      +
    • Defined in src/packages/measurement/Measurement.tsx:38
    • mapId: string
      @@ -84,7 +84,7 @@
      +
    • Defined in src/packages/measurement/Measurement.tsx:28
    • +
    • Defined in api.ts:13
    • +
    • Defined in Notifier.tsx:17
    • +
    • Defined in OgcFeatureSourceFactory.ts:27
    • limit?: number
      @@ -91,7 +91,7 @@
      +
    • Defined in OgcFeatureSourceFactory.ts:39
    • maxConcurrentRequests?: number
      @@ -99,7 +99,7 @@
      +
    • Defined in OgcFeatureSourceFactory.ts:42
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • height?: ResponsiveValue<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content">
      @@ -70,7 +70,7 @@
      +
    • Defined in src/packages/overview-map/OverviewMap.tsx:28
    • mapId: string
      @@ -78,7 +78,7 @@
      +
    • Defined in src/packages/overview-map/OverviewMap.tsx:17
    • olLayer: BaseLayer
      @@ -86,7 +86,7 @@
      +
    • Defined in src/packages/overview-map/OverviewMap.tsx:22
    • width?: ResponsiveValue<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic">
      @@ -95,7 +95,7 @@
      +
    • Defined in src/packages/overview-map/OverviewMap.tsx:34
    • +
    • Defined in src/packages/react-utils/TitledSection.tsx:89
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • icon: ReactElement<any, string | JSXElementConstructor<any>>
      @@ -83,7 +83,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:31
    • isActive?: boolean
      @@ -92,7 +92,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:43
    • isDisabled?: boolean
      @@ -101,7 +101,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:49
    • isLoading?: boolean
      @@ -110,7 +110,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:37
    • label: string
      @@ -120,7 +120,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:26
    • onClick?: MouseEventHandler<HTMLButtonElement>
      @@ -128,7 +128,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:54
    • tooltipProps?: Partial<TooltipProps>
      @@ -137,7 +137,7 @@
      +
    • Defined in src/packages/react-utils/ToolButton.tsx:61
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • displayMode?: "bar" | "line"
      @@ -67,7 +67,7 @@
      +
    • Defined in src/packages/scale-bar/ScaleBar.tsx:20
    • mapId: string
      @@ -75,7 +75,7 @@
      +
    • Defined in src/packages/scale-bar/ScaleBar.tsx:16
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -66,7 +66,7 @@
      +
    • Defined in src/packages/scale-viewer/ScaleViewer.tsx:16
    • +
    • Defined in src/packages/search/api.ts:75
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -71,7 +71,7 @@
      +
    • Defined in src/packages/search/Search.tsx:78
    • maxResultsPerGroup?: number
      @@ -80,7 +80,7 @@
      +
    • Defined in src/packages/search/Search.tsx:95
    • onClear?: (() => void)
      @@ -96,7 +96,7 @@

      Type declaration

      Returns void

      +
    • Defined in src/packages/search/Search.tsx:105
    • onSelect?: ((event) => void)
      @@ -117,7 +117,7 @@
      event: Returns void
      +
    • Defined in src/packages/search/Search.tsx:100
    • searchTypingDelay?: number
      @@ -126,7 +126,7 @@
      +
    • Defined in src/packages/search/Search.tsx:89
    • sources: SearchSource[]
      @@ -134,7 +134,7 @@
      +
    • Defined in src/packages/search/Search.tsx:83
    • +
    • Defined in src/packages/search/api.ts:120
    • +
    • Defined in src/packages/search/Search.tsx:65
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -66,7 +66,7 @@
      +
    • Defined in src/packages/spatial-bookmarks/SpatialBookmarks.tsx:33
    • +
    • Defined in src/packages/react-utils/useCommonComponentProps.ts:18
    • mapId: string
      @@ -77,7 +77,7 @@
      +
    • Defined in src/packages/toc/Toc.tsx:23
    • showBasemapSwitcher?: boolean
      @@ -86,7 +86,7 @@
      +
    • Defined in src/packages/toc/Toc.tsx:29
    • +
    • Defined in src/packages/authentication/api.ts:134
    • +
    • Defined in src/packages/authentication/api.ts:40
    • +
    • Defined in src/packages/authentication/api.ts:70
    • +
    • Defined in api.ts:21
    • +
    • Defined in map/api/MapConfig.ts:51
    • +
    • Defined in map/api/layers/base.ts:20
    • +
    • Defined in map/ui/MapAnchor.tsx:10
    • +
    • Defined in map/projections.ts:6
    • +
    • Defined in map/api/layers/SimpleLayer.ts:30
    • +
    • Defined in map/api/layers/SimpleLayer.ts:31
    • +
    • Defined in map/ui/useMapModel.ts:9
    • +
    • Defined in src/packages/map-navigation/Zoom.tsx:15
    • +
    • Defined in src/packages/map-navigation/Zoom.tsx:26
    • +
    • Defined in api.ts:6
    • +
    • Defined in src/packages/react-utils/TitledSection.tsx:161
    • +
    • Defined in map/api/layers/SimpleLayer.ts:30
    • +
    • Defined in map/api/layers/SimpleLayer.ts:31
    • +
    • Defined in map/api/layers/WMSLayer.ts:38
    • +
    • Defined in map/api/layers/WMSLayer.ts:55
    • +
    • Defined in theme.ts:90