@geops/rvf-mobility-web-component 0.1.80 → 0.1.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.83](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.82...v0.1.83) (2025-11-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * display only edited notifications in moco ([9f16519](https://github.com/geops/rvf-mobility-web-component/commit/9f1651905aa72d9df56c1adde252e3adc12e67e5))
11
+
12
+ ### [0.1.82](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.81...v0.1.82) (2025-11-05)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * do not display no details message ([4a959ca](https://github.com/geops/rvf-mobility-web-component/commit/4a959cab38ea3daa486a3967c0a4f3f2c2680f54))
18
+
19
+ ### [0.1.81](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.80...v0.1.81) (2025-11-05)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * use root publicationWindows when they are undefined at publication level ([b889939](https://github.com/geops/rvf-mobility-web-component/commit/b889939fa45807379b034944db1f0a0d68d709ec))
25
+
5
26
  ### [0.1.80](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.79...v0.1.80) (2025-10-31)
6
27
 
7
28
 
package/index.js CHANGED
@@ -1281,7 +1281,7 @@ end`};t.events.push(["putFont",function(n){(function(l){var A=l.font,d=l.out,L=l
1281
1281
  /* transform: rotate(-45deg); */
1282
1282
  `,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.585,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.585,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z",fill:"currentColor",fillRule:"nonzero",id:"Combined-Shape",style:`
1283
1283
  /* transform: rotate(-45deg); */
1284
- `})})]})}var BI=zA1;var DA1="my-1 flex items-center leading-[1.1] underline text-base items-center justify-left font-semibold gap-1",kA1={primary:{classes:"bg-red text-white disabled:bg-lightgrey hover:bg-darkred hover:border-darkred active:bg-lightred active:border-lightred ",selectedClasses:"bg-darkred border-darkred"},secondary:{classes:"bg-white text-black hover:text-red active:text-lightred",selectedClasses:"text-red"}};function OA1({children:r,className:t,theme:e="secondary",...i}){let o=ge(()=>Pe(`${DA1} ${kA1[e].classes} ${t||""}`),[t,e]);return W("a",{className:o,rel:"noreferrer",target:"_blank",...i,children:[(!i.href?.includes(window.location.hostname)||!i.href?.startsWith("(https?|ftp)"))&&W(BI,{height:"20",width:"20"}),r]})}var hs=ht(OA1);var c$=(r,t,e,i=!0)=>{let o=r.toLocaleTimeString(["de"],{hour:"2-digit",minute:"2-digit"});return`${r.toLocaleDateString(["de"],{day:"2-digit",month:i?"short":"long",year:e?"numeric":void 0})}${t&&o?` ${o}`:""}`.replace(",","")};function ZA1({canToggle:r=!1,headerClassName:t,iconClassName:e,publicationClassName:i,reasonClassName:o,situation:n,timeIntervalClassName:l,useShortMonth:A=!0}){let{locale:d,t:L}=d3(),[C,B]=wt(!r);if(!n)return null;let E={},_={},Z=[],Q=[],V=[];return Q=(n?.publications||[])?.filter(({publicationWindows:J})=>J.find(({endTime:i1,startTime:r1})=>{let _1=new Date,b1=new Date(r1),M1=new Date(i1);return b1<=_1&&_1<=M1}))||[],Z=(n?.affectedTimeIntervals||[]).filter(({endTime:J,startTime:i1})=>{let r1=new Date,_1=new Date(i1),b1=new Date(J);return _1<=r1&&r1<=b1||r1<_1})||[],V=(n?.reasons||[]).map(({name:J})=>J),W(_5,{children:Q?.map(({id:J,publicationLines:i1,publicationStops:r1,textualContentLarge:_1,textualContentMedium:b1,textualContentSmall:M1})=>{E=_1||b1||M1,_=E?.[d()],_?.summary||(_=E?.de);let g1=i1?.flatMap(R1=>R1.lines?.map(({name:a1})=>a1)||[])||[],p1=r1.map(R1=>R1?.name||"");return W("div",{className:Pe("text-base",i),children:[W("div",{className:Pe("text-xs uppercase",o),children:V}),W("h3",{className:Pe("space-x-2 text-xl font-bold text-balance",t),children:[W("span",{className:"line-height-[1.3] inline-block align-middle",children:W(MI,{className:Pe(e)})}),W("span",{className:"*:inline",dangerouslySetInnerHTML:{__html:_?.summary}})]}),W("hr",{className:"my-1"}),Z?.map(({dailyEndTime:R1,dailyStartTime:a1,endTime:x1,startTime:N1},H1)=>{let l2=R1&&a1,p2=x1.includes("2500"),s2=c$(new Date(N1),!1,!0,A),G1=p2?void 0:c$(new Date(x1),!1,!0,A);return W("button",{className:Pe("flex w-full items-center",r&&"cursor-pointer"),onClick:()=>{B(!C)},tabIndex:r?0:-1,children:[W("div",{className:Pe("flex-1 text-left text-sm font-bold text-balance",l),children:[W("span",{children:[s2&&G1?`${s2} - ${G1}`:null,s2&&!G1?L("from",{from:s2}):null]}),l2&&W("span",{children:` (${L("daily_from_to",{from:a1,to:R1})})`})]},N1),r&&H1==0&&W(_5,{children:C?W(Wp,{className:"text-red"}):W(vc,{className:"text-red"})})]},N1)}),W("div",{className:C?"my-4 flex flex-col gap-4":"hidden",children:[W("div",{dangerouslySetInnerHTML:{__html:_?.description||L("no_details_available")}}),!!E?.images?.length&&W("div",{className:"flex flex-wrap gap-2",children:E.images.map(({image:{absoluteUrl:R1,label:a1}})=>W("img",{alt:a1,className:"h-fit",src:R1,title:a1},R1+a1))}),!!E?.infoLinks?.length&&W("div",{children:E.infoLinks.map(({label:R1,uri:a1})=>{let x1=R1[d()]||R1.de||a1;return W(hs,{href:a1,title:x1,children:x1},a1)})}),!!g1?.length&&W("div",{children:[W("div",{className:"font-bold",children:[L("affected_lines"),":"]}),W("div",{className:"flex flex-wrap gap-1 text-sm",children:g1?.map(R1=>W("div",{className:"bg-red rounded-md px-2 py-1 font-bold text-white",children:R1},R1))})]}),!!p1?.length&&W("div",{children:[W("div",{className:"font-bold",children:[L("affected_stops"),":"]}),W("div",{className:"flex flex-wrap gap-1 text-sm",children:p1.map(R1=>W("div",{className:"bg-red rounded-md px-2 py-1 font-bold text-white",children:R1},R1))})]})]}),r&&W("hr",{className:"my-1"})]},J)})})}var $p=ht(ZA1);function NA1(r,t){let{lang:e,notificationsLayer:i}=Rt(),[o,n]=wt(),l=ge(()=>i?.api,[i]);return tt(()=>{let A=new AbortController;return l?.exportById(r,{contentLarge:!0,contentMedium:!0,contentSmall:!0,includeGeoms:!1,includeLines:!0,includeStops:!0,[e]:!0,limit:1,...t||{}}).then(d=>{n(d)}).catch(d=>{if(d.code!==20){n(void 0),console.error("Failed to fetch situation",d);return}}),()=>{A.abort()}},[l,r,t,e]),o}var u$=NA1;function UA1({className:r,feature:t,...e}){let{situationId:i}=t.getProperties(),o=u$(i);return W(eo,{...e,className:Pe("px-4 text-base",r),children:W($p,{situation:o})})}var yy=UA1;var SI=(r,t)=>t?W("a",{className:"whitespace-normal underline",href:t,rel:"noreferrer",target:"_blank",children:r}):r;function QA1(){let{stopSequence:r}=Rt();return!r.operator&&!r.publisher?null:W(_5,{children:W("div",{className:"m-4 mb-0 flex flex-wrap text-[10px] text-gray-500",children:[r.operator&&SI(r.operator,r.operatorUrl),r.operator&&r.publisher&&W("span",{children:" - "}),r.publisher&&SI(r.publisher,r.publisherUrl),r.license&&W("span",{children:"\xA0("}),r.license&&SI(r.license,r.licenseUrl),r.license&&")"]})})}var EI=ht(QA1);function HA1({...r}){return W("svg",{fill:"none",height:"24",part:"svg",viewBox:"0 0 14 14",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("path",{clipRule:"evenodd",d:"M7 0.333344C7.375 0.333344 7.66667 0.62501 7.66667 0.97921V2.35414C9.7292 2.66668 11.3333 4.27081 11.625 6.33334H13C13.375 6.33334 13.6667 6.62501 13.6667 7.00001C13.6667 7.37501 13.375 7.66668 13 7.66668H11.625C11.3333 9.70834 9.70833 11.3333 7.66667 11.625V13C7.66667 13.375 7.375 13.6667 7 13.6667C6.64587 13.6667 6.33333 13.375 6.33333 13V11.625C4.29167 11.3333 2.68747 9.70834 2.39587 7.66668H1C0.625 7.66668 0.333333 7.37501 0.333333 7.00001C0.333333 6.62501 0.625 6.33334 1 6.33334H2.39587C2.68747 4.27081 4.29167 2.66668 6.33333 2.35414V0.97921C6.33333 0.62501 6.64587 0.333344 7 0.333344ZM7 3.66668C5.16667 3.66668 3.66667 5.16668 3.66667 7.00001C3.66667 8.79168 5.08333 10.3125 7 10.3125C8.89587 10.3125 10.3333 8.81254 10.3333 7.00001C10.3333 5.16668 8.83333 3.66668 7 3.66668Z",fill:"currentColor",fillRule:"evenodd"}),W("path",{clipRule:"evenodd",d:"M5.66667 7.00001C5.66667 6.27081 6.2708 5.66668 7 5.66668C7.7292 5.66668 8.33333 6.27081 8.33333 7.00001C8.33333 7.72921 7.7292 8.33334 7 8.33334C6.2708 8.33334 5.66667 7.72921 5.66667 7.00001Z",fill:"currentColor",fillRule:"evenodd",part:"circle"})]})}var TI=HA1;function VA1({stopSequence:r,...t}){let{destination:e}=r||{};return W("span",{...t,children:e})}var II=ht(VA1);function GA1({stopSequence:r,...t}){let{longName:e,routeIdentifier:i}=r||{},o=e;if(i){let n=i;i.includes(".")?[n]=i.split("."):i.includes("_")?[n]=i.split("_"):i.includes(":")&&([n]=i.split(":")),/^\d*$/.test(n)&&(n=`${parseInt(n,10)}`),e.includes(n)||(o=`${e} (${n})`)}return W("span",{...t,children:o})}var FI=ht(GA1);function jA1({stopSequence:r,...t}){return W("div",{...t,children:[W(II,{className:"text-base font-bold",stopSequence:r}),W(FI,{className:"text-sm",stopSequence:r})]})}var PI=ht(jA1);function qA1(){let{isFollowing:r,setIsFollowing:t,stopSequence:e}=Rt();return W("div",{className:"flex items-center gap-x-4 bg-slate-100 p-4 py-2",children:[W(yl,{stopSequence:e}),W(PI,{className:"flex grow flex-col",stopSequence:e}),W(D6,{className:`${r?"animate-pulse":""}`,onClick:()=>{t(!r)},selected:r,children:W(TI,{})})]})}var RI=ht(qA1);var KA1=()=>ge(()=>{let t=new URLSearchParams(window.location.search).get("debug");return!t||t==="false"?!1:t},[]),_y=KA1;var zI=g9({index:null,invertColor:null,station:null,status:null,stop:null}),WA1=()=>{let r=J9(zI);if(!r)throw new Error("useRouteStop must be used within a ContextProvider");return r},E9=WA1;function $A1(r){let{status:t,stop:e}=E9();return _y()?W("div",{className:"p-4 text-left text-xs",...r,children:[W("div",{children:["State: ",W("b",{children:e.state})," (isPassed: ",`${t.isPassed}`,") (cancelled: ",`${e.cancelled}`,")"]}),W("div",{children:["Arrival time: ",e.arrivalTime," (delay: ",W("b",{children:`${e.arrivalDelay}`}),") (aimed: ",e.aimedArrivalTime,")"]}),W("div",{children:["Departure time: ",e.arrivalTime," (delay:"," ",W("b",{children:`${e.departureDelay}`}),") (aimed: ",e.aimedArrivalTime,")"]}),W("div",{children:Object.entries(t).map(([o,n])=>n===!1?null:W("div",{children:[o,": ",`${n}`]},o))})]}):null}var h$=$A1;var XA1=(r,t=!1)=>{let e=Math.round(r/1e3/60);return e>5?"#dc2626":e>=3?"#ea580c":t?"#16a34a":"transparent"},Xp=XA1;var YA1=r=>{let t=r;t<0&&(t=0);let e=Math.floor(t/36e5),i=Math.round(t%36e5/6e4),o="";return e>0&&(o+=`${e}h`),i>0&&(o+=`${i}m`),o||"0"},Yp=YA1;function JA1(r){let{status:t,stop:e}=E9(),{arrivalDelay:i,departureDelay:o}=e,n=t.isNotRealtime||t.isCancelled||t.isNotStop||t.isPassed;return W("div",{...r,children:[n||i===null||t.isFirst?null:W("span",{style:{color:Xp(i)},children:`+${Yp(i)}`}),n||o===null||t.isLast?null:W("span",{style:{color:Xp(i)},children:`+${Yp(o)}`})]})}var DI=ht(JA1);function td1({lineColor:r,svgProps:t,...e}){let{stopSequence:i}=Rt(),{invertColor:o,status:n}=E9(),{isBoarding:l,isFirst:A,isLast:d,isLeft:L,isPassed:C,progress:B}=n,E=A?"50%":"-100%",_=d?"50%":"100%",Z=`${B}%`,Q="rgb(156, 163, 175)",V=r||Ly(i),G=C?Q:V,J=C?V:Q,i1=Q;o&&(G=C?V:Q,J=C?Q:V,i1=V);let r1=!C&&(L||l)?J:G;return W("div",{...e,children:W("svg",{fill:"none",height:"100%",stroke:G,width:"16",xmlns:"http://www.w3.org/2000/svg",...t,children:[W("circle",{cx:"50%",cy:"50%",r:"5",stroke:"black",strokeWidth:"6"}),W("line",{stroke:"black",strokeWidth:"6",x1:"50%",x2:"50%",y1:E,y2:_}),W("line",{stroke:i1,strokeWidth:"4",x1:"50%",x2:"50%",y1:E,y2:Z}),W("line",{strokeWidth:"4",x1:"50%",x2:"50%",y1:`${B-2}%`,y2:_}),W("circle",{cx:"50%",cy:"50%",r:"5",strokeWidth:"4"}),W("circle",{className:l?"animate-pulse":"",cx:"50%",cy:"50%",r:"5",stroke:r1,strokeWidth:"4"}),W("circle",{cx:"50%",cy:"50%",fill:"white",r:"3",stroke:"black",strokeWidth:"1"})]})})}var kI=ht(td1);function ed1({...r}){let{stop:t}=E9(),{stopSequence:e}=Rt(),{type:i}=e,{t:o}=d3(),{platform:n}=t||{};if(!n)return null;let l=o(`platform_${i||"rail"}`);return W("span",{...r,children:[l||o("platform_rail")," ",n]})}var OI=ht(ed1);function rd1({children:r,...t}){let{stop:e}=E9(),{stationName:i}=e||{};return W("div",{...t,children:[i,W("br",{}),W(OI,{className:"rounded-sm bg-slate-100 px-0.5 py-px text-xs group-hover:bg-slate-50"}),r]})}var ZI=ht(rd1);function id1({...r}){return W("svg",{fill:"currentColor",height:"24",version:"1.1",viewBox:"0 0 14 14",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"m 14,8 0,1 -6,-1 0,3 2,2 0,1 L 7,13 4,14 4,13 6,11 6,8 0,9 0,8 6,5 6,2 C 6,1 6.22222,0 7,0 7.77777,0 8,1 8,2 l 0,3 z"})})}var NI=id1;function nd1({...r}){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 -3.84 122.88 122.88",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M29.03,100.46l20.79-25.21l9.51,12.13L41,110.69C33.98,119.61,20.99,110.21,29.03,100.46L29.03,100.46z M53.31,43.05 c1.98-6.46,1.07-11.98-6.37-20.18L28.76,1c-2.58-3.03-8.66,1.42-6.12,5.09L37.18,24c2.75,3.34-2.36,7.76-5.2,4.32L16.94,9.8 c-2.8-3.21-8.59,1.03-5.66,4.7c4.24,5.1,10.8,13.43,15.04,18.53c2.94,2.99-1.53,7.42-4.43,3.69L6.96,18.32 c-2.19-2.38-5.77-0.9-6.72,1.88c-1.02,2.97,1.49,5.14,3.2,7.34L20.1,49.06c5.17,5.99,10.95,9.54,17.67,7.53 c1.03-0.31,2.29-0.94,3.64-1.77l44.76,57.78c2.41,3.11,7.06,3.44,10.08,0.93l0.69-0.57c3.4-2.83,3.95-8,1.04-11.34L50.58,47.16 C51.96,45.62,52.97,44.16,53.31,43.05L53.31,43.05z M65.98,55.65l7.37-8.94C63.87,23.21,99-8.11,116.03,6.29 C136.72,23.8,105.97,66,84.36,55.57l-8.73,11.09L65.98,55.65L65.98,55.65z"})})}var UI=nd1;function od1({...r}){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 512 512",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("g",{children:W("g",{children:W("path",{d:`M256,0c-9.217,0-16.696,7.473-16.696,16.696v478.609c0,9.223,7.479,16.696,16.696,16.696
1284
+ `})})]})}var BI=zA1;var DA1="my-1 flex items-center leading-[1.1] underline text-base items-center justify-left font-semibold gap-1",kA1={primary:{classes:"bg-red text-white disabled:bg-lightgrey hover:bg-darkred hover:border-darkred active:bg-lightred active:border-lightred ",selectedClasses:"bg-darkred border-darkred"},secondary:{classes:"bg-white text-black hover:text-red active:text-lightred",selectedClasses:"text-red"}};function OA1({children:r,className:t,theme:e="secondary",...i}){let o=ge(()=>Pe(`${DA1} ${kA1[e].classes} ${t||""}`),[t,e]);return W("a",{className:o,rel:"noreferrer",target:"_blank",...i,children:[(!i.href?.includes(window.location.hostname)||!i.href?.startsWith("(https?|ftp)"))&&W(BI,{height:"20",width:"20"}),r]})}var hs=ht(OA1);var c$=(r,t,e,i=!0)=>{let o=r.toLocaleTimeString(["de"],{hour:"2-digit",minute:"2-digit"});return`${r.toLocaleDateString(["de"],{day:"2-digit",month:i?"short":"long",year:e?"numeric":void 0})}${t&&o?` ${o}`:""}`.replace(",","")};function ZA1({canToggle:r=!1,headerClassName:t,iconClassName:e,publicationClassName:i,reasonClassName:o,situation:n,timeIntervalClassName:l,useShortMonth:A=!0}){let{locale:d,t:L}=d3(),[C,B]=wt(!r);if(!n)return null;let E={},_={},Z=[],Q=[],V=[];return Q=(n?.publications||[])?.filter(({publicationWindows:J})=>(!J?.length&&n?.publicationWindows?.length&&(J=n?.publicationWindows),J.find(({endTime:i1,startTime:r1})=>{let _1=new Date,b1=new Date(r1),M1=new Date(i1);return b1<=_1&&_1<=M1})))||[],Z=(n?.affectedTimeIntervals||[]).filter(({endTime:J,startTime:i1})=>{let r1=new Date,_1=new Date(i1),b1=new Date(J);return _1<=r1&&r1<=b1||r1<_1})||[],V=(n?.reasons||[]).map(({name:J})=>J),W(_5,{children:Q?.map(({id:J,publicationLines:i1,publicationStops:r1,textualContentLarge:_1,textualContentMedium:b1,textualContentSmall:M1})=>{E=_1||b1||M1,_=E?.[d()],_?.summary||(_=E?.de);let g1=i1?.flatMap(R1=>R1.lines?.map(({name:a1})=>a1)||[])||[],p1=r1.map(R1=>R1?.name||"");return W("div",{className:Pe("text-base",i),children:[W("div",{className:Pe("text-xs uppercase",o),children:V}),W("h3",{className:Pe("space-x-2 text-xl font-bold text-balance",t),children:[W("span",{className:"line-height-[1.3] inline-block align-middle",children:W(MI,{className:Pe(e)})}),W("span",{className:"*:inline",dangerouslySetInnerHTML:{__html:_?.summary}})]}),W("hr",{className:"my-1"}),Z?.map(({dailyEndTime:R1,dailyStartTime:a1,endTime:x1,startTime:N1},H1)=>{let l2=R1&&a1,p2=x1.includes("2500"),s2=c$(new Date(N1),!1,!0,A),G1=p2?void 0:c$(new Date(x1),!1,!0,A);return W("button",{className:Pe("flex w-full items-center",r&&"cursor-pointer"),onClick:()=>{B(!C)},tabIndex:r?0:-1,children:[W("div",{className:Pe("flex-1 text-left text-sm font-bold text-balance",l),children:[W("span",{children:[s2&&G1?`${s2} - ${G1}`:null,s2&&!G1?L("from",{from:s2}):null]}),l2&&W("span",{children:` (${L("daily_from_to",{from:a1,to:R1})})`})]},N1),r&&H1==0&&W(_5,{children:C?W(Wp,{className:"text-red"}):W(vc,{className:"text-red"})})]},N1)}),W("div",{className:C?"my-4 flex flex-col gap-4":"hidden",children:[_?.description&&W("div",{dangerouslySetInnerHTML:{__html:_?.description}}),!!E?.images?.length&&W("div",{className:"flex flex-wrap gap-2",children:E.images.map(({image:{absoluteUrl:R1,label:a1}})=>W("img",{alt:a1,className:"h-fit",src:R1,title:a1},R1+a1))}),!!E?.infoLinks?.length&&W("div",{children:E.infoLinks.map(({label:R1,uri:a1})=>{let x1=R1[d()]||R1.de||a1;return W(hs,{href:a1,title:x1,children:x1},a1)})}),!!g1?.length&&W("div",{children:[W("div",{className:"font-bold",children:[L("affected_lines"),":"]}),W("div",{className:"flex flex-wrap gap-1 text-sm",children:g1?.map(R1=>W("div",{className:"bg-red rounded-md px-2 py-1 font-bold text-white",children:R1},R1))})]}),!!p1?.length&&W("div",{children:[W("div",{className:"font-bold",children:[L("affected_stops"),":"]}),W("div",{className:"flex flex-wrap gap-1 text-sm",children:p1.map(R1=>W("div",{className:"bg-red rounded-md px-2 py-1 font-bold text-white",children:R1},R1))})]})]}),r&&W("hr",{className:"my-1"})]},J)})})}var $p=ht(ZA1);function NA1(r,t){let{lang:e,notificationsLayer:i}=Rt(),[o,n]=wt(),l=ge(()=>i?.api,[i]);return tt(()=>{let A=new AbortController;return l?.exportById(r,{contentLarge:!0,contentMedium:!0,contentSmall:!0,includeGeoms:!1,includeLines:!0,includeStops:!0,[e]:!0,limit:1,...t||{}}).then(d=>{n(d)}).catch(d=>{if(d.code!==20){n(void 0),console.error("Failed to fetch situation",d);return}}),()=>{A.abort()}},[l,r,t,e]),o}var u$=NA1;function UA1({className:r,feature:t,...e}){let{situationId:i}=t.getProperties(),o=u$(i);return W(eo,{...e,className:Pe("px-4 text-base",r),children:W($p,{situation:o})})}var yy=UA1;var SI=(r,t)=>t?W("a",{className:"whitespace-normal underline",href:t,rel:"noreferrer",target:"_blank",children:r}):r;function QA1(){let{stopSequence:r}=Rt();return!r.operator&&!r.publisher?null:W(_5,{children:W("div",{className:"m-4 mb-0 flex flex-wrap text-[10px] text-gray-500",children:[r.operator&&SI(r.operator,r.operatorUrl),r.operator&&r.publisher&&W("span",{children:" - "}),r.publisher&&SI(r.publisher,r.publisherUrl),r.license&&W("span",{children:"\xA0("}),r.license&&SI(r.license,r.licenseUrl),r.license&&")"]})})}var EI=ht(QA1);function HA1({...r}){return W("svg",{fill:"none",height:"24",part:"svg",viewBox:"0 0 14 14",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("path",{clipRule:"evenodd",d:"M7 0.333344C7.375 0.333344 7.66667 0.62501 7.66667 0.97921V2.35414C9.7292 2.66668 11.3333 4.27081 11.625 6.33334H13C13.375 6.33334 13.6667 6.62501 13.6667 7.00001C13.6667 7.37501 13.375 7.66668 13 7.66668H11.625C11.3333 9.70834 9.70833 11.3333 7.66667 11.625V13C7.66667 13.375 7.375 13.6667 7 13.6667C6.64587 13.6667 6.33333 13.375 6.33333 13V11.625C4.29167 11.3333 2.68747 9.70834 2.39587 7.66668H1C0.625 7.66668 0.333333 7.37501 0.333333 7.00001C0.333333 6.62501 0.625 6.33334 1 6.33334H2.39587C2.68747 4.27081 4.29167 2.66668 6.33333 2.35414V0.97921C6.33333 0.62501 6.64587 0.333344 7 0.333344ZM7 3.66668C5.16667 3.66668 3.66667 5.16668 3.66667 7.00001C3.66667 8.79168 5.08333 10.3125 7 10.3125C8.89587 10.3125 10.3333 8.81254 10.3333 7.00001C10.3333 5.16668 8.83333 3.66668 7 3.66668Z",fill:"currentColor",fillRule:"evenodd"}),W("path",{clipRule:"evenodd",d:"M5.66667 7.00001C5.66667 6.27081 6.2708 5.66668 7 5.66668C7.7292 5.66668 8.33333 6.27081 8.33333 7.00001C8.33333 7.72921 7.7292 8.33334 7 8.33334C6.2708 8.33334 5.66667 7.72921 5.66667 7.00001Z",fill:"currentColor",fillRule:"evenodd",part:"circle"})]})}var TI=HA1;function VA1({stopSequence:r,...t}){let{destination:e}=r||{};return W("span",{...t,children:e})}var II=ht(VA1);function GA1({stopSequence:r,...t}){let{longName:e,routeIdentifier:i}=r||{},o=e;if(i){let n=i;i.includes(".")?[n]=i.split("."):i.includes("_")?[n]=i.split("_"):i.includes(":")&&([n]=i.split(":")),/^\d*$/.test(n)&&(n=`${parseInt(n,10)}`),e.includes(n)||(o=`${e} (${n})`)}return W("span",{...t,children:o})}var FI=ht(GA1);function jA1({stopSequence:r,...t}){return W("div",{...t,children:[W(II,{className:"text-base font-bold",stopSequence:r}),W(FI,{className:"text-sm",stopSequence:r})]})}var PI=ht(jA1);function qA1(){let{isFollowing:r,setIsFollowing:t,stopSequence:e}=Rt();return W("div",{className:"flex items-center gap-x-4 bg-slate-100 p-4 py-2",children:[W(yl,{stopSequence:e}),W(PI,{className:"flex grow flex-col",stopSequence:e}),W(D6,{className:`${r?"animate-pulse":""}`,onClick:()=>{t(!r)},selected:r,children:W(TI,{})})]})}var RI=ht(qA1);var KA1=()=>ge(()=>{let t=new URLSearchParams(window.location.search).get("debug");return!t||t==="false"?!1:t},[]),_y=KA1;var zI=g9({index:null,invertColor:null,station:null,status:null,stop:null}),WA1=()=>{let r=J9(zI);if(!r)throw new Error("useRouteStop must be used within a ContextProvider");return r},E9=WA1;function $A1(r){let{status:t,stop:e}=E9();return _y()?W("div",{className:"p-4 text-left text-xs",...r,children:[W("div",{children:["State: ",W("b",{children:e.state})," (isPassed: ",`${t.isPassed}`,") (cancelled: ",`${e.cancelled}`,")"]}),W("div",{children:["Arrival time: ",e.arrivalTime," (delay: ",W("b",{children:`${e.arrivalDelay}`}),") (aimed: ",e.aimedArrivalTime,")"]}),W("div",{children:["Departure time: ",e.arrivalTime," (delay:"," ",W("b",{children:`${e.departureDelay}`}),") (aimed: ",e.aimedArrivalTime,")"]}),W("div",{children:Object.entries(t).map(([o,n])=>n===!1?null:W("div",{children:[o,": ",`${n}`]},o))})]}):null}var h$=$A1;var XA1=(r,t=!1)=>{let e=Math.round(r/1e3/60);return e>5?"#dc2626":e>=3?"#ea580c":t?"#16a34a":"transparent"},Xp=XA1;var YA1=r=>{let t=r;t<0&&(t=0);let e=Math.floor(t/36e5),i=Math.round(t%36e5/6e4),o="";return e>0&&(o+=`${e}h`),i>0&&(o+=`${i}m`),o||"0"},Yp=YA1;function JA1(r){let{status:t,stop:e}=E9(),{arrivalDelay:i,departureDelay:o}=e,n=t.isNotRealtime||t.isCancelled||t.isNotStop||t.isPassed;return W("div",{...r,children:[n||i===null||t.isFirst?null:W("span",{style:{color:Xp(i)},children:`+${Yp(i)}`}),n||o===null||t.isLast?null:W("span",{style:{color:Xp(i)},children:`+${Yp(o)}`})]})}var DI=ht(JA1);function td1({lineColor:r,svgProps:t,...e}){let{stopSequence:i}=Rt(),{invertColor:o,status:n}=E9(),{isBoarding:l,isFirst:A,isLast:d,isLeft:L,isPassed:C,progress:B}=n,E=A?"50%":"-100%",_=d?"50%":"100%",Z=`${B}%`,Q="rgb(156, 163, 175)",V=r||Ly(i),G=C?Q:V,J=C?V:Q,i1=Q;o&&(G=C?V:Q,J=C?Q:V,i1=V);let r1=!C&&(L||l)?J:G;return W("div",{...e,children:W("svg",{fill:"none",height:"100%",stroke:G,width:"16",xmlns:"http://www.w3.org/2000/svg",...t,children:[W("circle",{cx:"50%",cy:"50%",r:"5",stroke:"black",strokeWidth:"6"}),W("line",{stroke:"black",strokeWidth:"6",x1:"50%",x2:"50%",y1:E,y2:_}),W("line",{stroke:i1,strokeWidth:"4",x1:"50%",x2:"50%",y1:E,y2:Z}),W("line",{strokeWidth:"4",x1:"50%",x2:"50%",y1:`${B-2}%`,y2:_}),W("circle",{cx:"50%",cy:"50%",r:"5",strokeWidth:"4"}),W("circle",{className:l?"animate-pulse":"",cx:"50%",cy:"50%",r:"5",stroke:r1,strokeWidth:"4"}),W("circle",{cx:"50%",cy:"50%",fill:"white",r:"3",stroke:"black",strokeWidth:"1"})]})})}var kI=ht(td1);function ed1({...r}){let{stop:t}=E9(),{stopSequence:e}=Rt(),{type:i}=e,{t:o}=d3(),{platform:n}=t||{};if(!n)return null;let l=o(`platform_${i||"rail"}`);return W("span",{...r,children:[l||o("platform_rail")," ",n]})}var OI=ht(ed1);function rd1({children:r,...t}){let{stop:e}=E9(),{stationName:i}=e||{};return W("div",{...t,children:[i,W("br",{}),W(OI,{className:"rounded-sm bg-slate-100 px-0.5 py-px text-xs group-hover:bg-slate-50"}),r]})}var ZI=ht(rd1);function id1({...r}){return W("svg",{fill:"currentColor",height:"24",version:"1.1",viewBox:"0 0 14 14",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"m 14,8 0,1 -6,-1 0,3 2,2 0,1 L 7,13 4,14 4,13 6,11 6,8 0,9 0,8 6,5 6,2 C 6,1 6.22222,0 7,0 7.77777,0 8,1 8,2 l 0,3 z"})})}var NI=id1;function nd1({...r}){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 -3.84 122.88 122.88",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M29.03,100.46l20.79-25.21l9.51,12.13L41,110.69C33.98,119.61,20.99,110.21,29.03,100.46L29.03,100.46z M53.31,43.05 c1.98-6.46,1.07-11.98-6.37-20.18L28.76,1c-2.58-3.03-8.66,1.42-6.12,5.09L37.18,24c2.75,3.34-2.36,7.76-5.2,4.32L16.94,9.8 c-2.8-3.21-8.59,1.03-5.66,4.7c4.24,5.1,10.8,13.43,15.04,18.53c2.94,2.99-1.53,7.42-4.43,3.69L6.96,18.32 c-2.19-2.38-5.77-0.9-6.72,1.88c-1.02,2.97,1.49,5.14,3.2,7.34L20.1,49.06c5.17,5.99,10.95,9.54,17.67,7.53 c1.03-0.31,2.29-0.94,3.64-1.77l44.76,57.78c2.41,3.11,7.06,3.44,10.08,0.93l0.69-0.57c3.4-2.83,3.95-8,1.04-11.34L50.58,47.16 C51.96,45.62,52.97,44.16,53.31,43.05L53.31,43.05z M65.98,55.65l7.37-8.94C63.87,23.21,99-8.11,116.03,6.29 C136.72,23.8,105.97,66,84.36,55.57l-8.73,11.09L65.98,55.65L65.98,55.65z"})})}var UI=nd1;function od1({...r}){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 512 512",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("g",{children:W("g",{children:W("path",{d:`M256,0c-9.217,0-16.696,7.473-16.696,16.696v478.609c0,9.223,7.479,16.696,16.696,16.696
1285
1285
  c9.217,0,16.696-7.473,16.696-16.696V16.696C272.696,7.473,265.217,0,256,0z`})})}),W("g",{children:W("g",{children:W("path",{d:`M105.739,44.522c-36.826,0-66.783,29.956-66.783,66.783c0,36.826,29.956,66.783,66.783,66.783
1286
1286
  s66.783-29.956,66.783-66.783C172.522,74.478,142.565,44.522,105.739,44.522z`})})}),W("g",{children:W("g",{children:W("path",{d:`M406.261,44.522c-36.826,0-66.783,29.956-66.783,66.783c0,36.826,29.956,66.783,66.783,66.783
1287
1287
  s66.783-29.956,66.783-66.783C473.043,74.478,443.087,44.522,406.261,44.522z`})})}),W("g",{children:W("g",{children:W("path",{d:`M202.935,218.664c-3.109-4.501-8.239-7.186-13.717-7.186H22.261c-5.478,0-10.608,2.685-13.717,7.185
@@ -1542,12 +1542,12 @@ ${String(r)}`)}catch(t){return t}},V$=r=>{if(typeof r!="object"||r===null)throw
1542
1542
  }
1543
1543
  }
1544
1544
  }
1545
- `,Ny=async r=>{let t=new _l(ff1,{method:"POST"}),{station:e}=await t.request(pf1,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return e};function Lf1(r){let t=r?.get("rental_uris_ios"),e=r?.get("rental_uris_android"),i=r?.get("rental_uris_web");return t&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPod"))?t:e&&navigator.userAgent.includes("Android")?e:i}var hL=Lf1;function Cf1({features:r}){let t=r.map((o,n)=>{let l,{feed_id:A,rental_uris_android:d}=o.getProperties();if(/yoio/.test(A))l=d.split("/").pop();else if(/zeus/.test(A)){let E=new URL(o.get("rental_uris_web"));l=new URLSearchParams(E.search).get("vehicle")}else if(/nextbike/.test(A)){let E=new URL(d);l=new URLSearchParams(E.search).get("id")}let L=hL(o),C=o.get("current_range_meters")?.toLocaleString()?.replace(".","'").replace(",","'"),B=C?` (${C} m)`:null;return!l||!L?null:W("li",{children:W("div",{className:"flex items-center gap-2",children:[`${l}`,B,W(hs,{href:L,children:" jetzt buchen"})]})},n)}),e=r?.[0].get("feed_id"),i=hL(r?.[0]);return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.length," Fahrzeuge"]}),W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t})]})]}),e&&i&&W("div",{children:W(hs,{href:i,children:["\xDCber ",Tg[e]]})})]})}var mF=Cf1;function gf1({feature:r}){let[t,e]=wt(null),i=ge(()=>hL(r),[r]);tt(()=>{r.get("station_id")&&(async()=>{let A=await Ny(r.get("station_id"));e(A)})()},[r]);let o=r.get("num_vehicles_available")>0;return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),o&&t?.vehicleTypesAvailable?.length&&W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:A,vehicleImage:d}})=>W("li",{children:W("div",{className:"flex items-center gap-2",children:[W("span",{children:`${n} x ${A.translation[0].value}`}),d&&W("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),t?.vehicleTypesAvailable?.length>0&&i&&W("div",{children:W(hs,{href:i,children:"Jetzt buchen"})})]})}var vF=gf1;var mf1=new L0;function vf1({className:r,feature:t,...e}){let{baseLayer:i}=Rt(),[o,n]=wt([]),l=!!t.get("station_id"),A=!!t.get("vehicle_id"),d=!!t.get("cluster_id");tt(()=>{if(l){let C=t?.get("station_id"),B=t?.get("feed_id");C&&Ny(C).then(E=>{t.setProperties(E),t.set("provider_logo",Ig[B])}).catch(E=>{console.warn("Error fetching sharing station info:",E)})}},[t,l]),tt(()=>{if(d){let C=t.get("cluster_id");if(C){let E=t.get("vectorTileFeature").layer.source;i.mapLibreMap.getSource(E)?.getClusterLeaves(C,1e3,0).then(_=>{let Z=_.map(Q=>mf1.readFeature(Q));n(Z||[])}).catch(()=>{console.warn(`Impossible to get cluster ${C} leaves from source ${E}`)})}}else n(t?[t]:[])},[t,A,d,i?.mapLibreMap]);let L=ge(()=>{let C={};return l?null:((o||[]).forEach(B=>{let E=B.get("feed_id");C[E]?C[E].push(B):C[E]=[B]}),C)},[o,l]);return W(eo,{...e,className:Pe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:[l&&W(_5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Ig[o[0]?.get("feed_id")]}),o.length&&l&&W(vF,{feature:o[0]})]}),(A||d)&&L&&Object.entries(L).map(([C,B])=>W(_5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Ig[B[0]?.get("feed_id")]}),W(mF,{features:B})]},C))]})})}var yF=ht(vf1);var yf1=r=>{if(r&&(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id")))return!0};function _f1({feature:r,featuresInfo:t,layer:e}){let i=yf1(r),o=!!r?.get("tickets");return W(_5,{children:[W(C$,{feature:r,featuresInfo:t,layer:e}),(o||i)&&W(_5,{children:[o&&W(oF,{feature:r}),i&&W(yF,{feature:r})]})]})}var Uy=ht(_f1);function xf1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.584,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.586,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z"})})}var _F=xf1;function wf1(r){let e=fy()[r]||{};return e.title||(e.title=r),e}var _A=wf1;function bf1({className:r,feature:t,layer:e,...i}){let o=_A(e?.get("name"));if(!o?.link||o?.link?.show===!1)return null;let n=t?.get("id"),l=t?.get("situation");return l&&(n=JSON.parse(l)?.id||n),W("div",{...i,className:Pe("flex flex-row p-4",r),children:W(Ja,{href:o.link.href.replace("{{id}}",n),target:"_blank",theme:"primary",children:[W("span",{children:o.link.text||"Mehr erfahren"}),W(_F,{})]})})}var xF=ht(bf1);function Mf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("g",{children:W("path",{d:"M5.29289322,5.29289322 C5.68341751,4.90236893 6.31658249,4.90236893 6.70710678,5.29289322 L12,10.585 L17.2928932,5.29289322 C17.6533772,4.93240926 18.2206082,4.90467972 18.6128994,5.20970461 L18.7071068,5.29289322 C19.0976311,5.68341751 19.0976311,6.31658249 18.7071068,6.70710678 L13.415,12 L18.7071068,17.2928932 C19.0675907,17.6533772 19.0953203,18.2206082 18.7902954,18.6128994 L18.7071068,18.7071068 C18.3165825,19.0976311 17.6834175,19.0976311 17.2928932,18.7071068 L12,13.415 L6.70710678,18.7071068 C6.34662282,19.0675907 5.77939176,19.0953203 5.38710056,18.7902954 L5.29289322,18.7071068 C4.90236893,18.3165825 4.90236893,17.6834175 5.29289322,17.2928932 L10.585,12 L5.29289322,6.70710678 C4.93240926,6.34662282 4.90467972,5.77939176 5.20970461,5.38710056 Z",fill:"currentColor"})})})}var AL=Mf1;function Bf1({children:r,className:t,onClose:e,title:i,...o}){return W("div",{...o,className:Pe("flex flex-row items-center justify-between gap-2 border-b p-2 pl-4",t),children:[r||W("span",{className:"text-base font-bold",children:i}),e&&W(D6,{className:"!size-[32px] border-none shadow-none",onClick:e,children:W(AL,{})})]})}var Wc=ht(Bf1);function Sf1({feature:r,layer:t,...e}){let{t:i}=d3(),o=_A(t?.get("name"));return t?W(Wc,{title:i(o?.title||"")||(o?.title??""),...e}):null}var wF=ht(Sf1);function Ef1(){let{featuresInfos:r,linesIds:t,linesNetworkPlanLayer:e,notificationId:i,notificationsLayer:o,realtimeLayer:n,selectedFeature:l,setFeaturesInfos:A,setLinesIds:d,setNotificationId:L,setStationId:C,setTrainId:B,stationId:E,stationsLayer:_,trainId:Z}=Rt(),Q=ge(()=>r?.find(G=>G?.features.includes(l)),[r,l]),V=ge(()=>{if(Q?.layer)return Q.layer;if(Z)return n;if(E)return _;if(t)return e;if(i)return o},[Q?.layer,Z,E,t,i,n,_,e,o]);return W(_5,{children:[W(wF,{feature:l,layer:V,onClose:()=>{A(null),B(null),C(null),d(null),L(null)}}),W(Uy,{feature:l,featuresInfo:Q,layer:V}),W(xF,{feature:l,layer:V})]})}var bF=ht(Ef1);var X$=P3(Ka(),1);function Tf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:W("polygon",{id:"path-1",points:"0 0 20 0 20 20 0 20"})}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/search",stroke:"none",strokeWidth:"1",children:W("g",{id:"Group-3-Copy",transform:"translate(2, 2)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M14.0345333,13.8617333 C14.0025333,13.8864 13.9718667,13.9137333 13.9432,13.9430667 C13.9138667,13.9724 13.8865333,14.0030667 13.8632,14.0350667 C12.6038667,15.2517333 10.8892,15.9997333 8.99986667,15.9997333 C5.13386667,15.9997333 1.99986667,12.8657333 1.99986667,8.99973333 C1.99986667,5.13373333 5.13386667,1.99973333 8.99986667,1.99973333 C12.8658667,1.99973333 15.9998667,5.13373333 15.9998667,8.99973333 C15.9998667,10.8890667 15.2512,12.6037333 14.0345333,13.8617333 M19.7072,18.2930667 L16.0318667,14.6177333 C17.2632,13.0784 17.9998667,11.1250667 17.9998667,8.99973333 C17.9998667,4.02973333 13.9705333,-0.000266666667 8.99986667,-0.000266666667 C4.0292,-0.000266666667 -0.000133333333,4.02973333 -0.000133333333,8.99973333 C-0.000133333333,13.9704 4.0292,17.9997333 8.99986667,17.9997333 C11.1252,17.9997333 13.0785333,17.2637333 14.6178667,16.0317333 L18.2932,19.7070667 C18.6832,20.0977333 19.3165333,20.0977333 19.7072,19.7070667 C20.0978667,19.3164 20.0978667,18.6837333 19.7072,18.2930667",fill:"currentColor",id:"Fill-1",mask:"url(#mask-2)"})]})})]})}var dL=Tf1;function If1({className:r,...t}){return W("input",{...t,className:Pe("p-2 text-sm read-only:text-gray-400",r)})}var MF=If1;var $$=r=>r?.properties?.name||"";function Ff1({apikey:r,bbox:t,cancelButtonClassName:e,className:i,countrycode:o,event:n,field:l,inputClassName:A,inputContainerClassName:d,limit:L,mots:C,onselect:B,params:E,prefagencies:_,reflocation:Z,resultClassName:Q,resultsClassName:V,resultsContainerClassName:G,searchIconContainerClassName:J,url:i1="https://api.geops.io/stops/v1/",withResultsClassName:r1}){let{t:_1}=d3(),[b1,M1]=wt(""),[g1,p1]=wt(),[R1,a1]=wt(),x1=Ui();tt(()=>{x1.current?.dispatchEvent(new Bf("mwc:attribute",{apikey:r,bbox:t,countrycode:o,event:n,field:l,limit:L,mots:C,onselect:B,params:E,prefagencies:_,reflocation:Z,url:i1}))},[r,t,o,n,l,L,C,B,E,_,Z,i1]);let N1=ge(()=>new $_({apiKey:r,url:i1}),[r,i1]),H1=e6(p2=>{let s2=new Bf(n||"mwc:stopssearchselect",p2,{bubbles:!0});x1.current?.dispatchEvent(s2),B&&typeof B=="function"&&B(p2)},[n,B]),l2=ge(()=>{let p2;return(0,X$.default)(s2=>{p2?.abort(),p2=new AbortController;let G1={bbox:t,field:l,limit:L,mots:C,prefagencies:_,q:s2,ref_location:Z,...JSON.parse(E||"{}")};N1.search(G1,{signal:p2.signal}).then(m2=>{a1(m2.features.filter(V2=>!o||V2.properties?.country_code===o))}).catch(m2=>{if(m2.code!==20){console.error("Failed to fetch stations",m2);return}})},150)},[N1,t,o,l,L,C,E,_,Z]);return tt(()=>{if(!(g1&&b1===$$(g1))){if(!b1){p1(void 0);return}return l2(b1),()=>{l2.cancel()}}},[b1,g1,l2]),tt(()=>{a1(void 0),g1&&M1($$(g1)),H1(g1)},[H1,g1]),W(_5,{children:[W("div",{className:Pe("flex h-16 items-center gap-4 rounded-md bg-white p-4 pt-3.5 shadow",i,R1?r1:""),ref:x1,children:[W("div",{className:Pe("text-grey flex items-center",J),children:W(dL,{className:"size-4"})}),W("div",{className:Pe("@container/inputsearch flex grow items-center border-b-2 border-solid",d),children:[W(MF,{autoComplete:"off",className:Pe("h-8 w-1 grow overflow-hidden text-ellipsis placeholder:text-zinc-400",A),onChange:p2=>{M1(p2.target.value)},onKeyUp:p2=>{p2.key==="Enter"&&R1?.length>0&&p1(R1[0])},placeholder:_1("stops_search_placeholder"),type:"text",value:b1||""}),b1.length>0&&W(D6,{className:Pe("flex !size-[32px] items-center rounded-none border-none bg-transparent shadow-none",e),onClick:()=>{M1(""),a1(void 0)},children:W(AL,{})})]})]}),R1&&W("div",{className:Pe("flex grow overflow-auto rounded-md rounded-t-none bg-white shadow",G),children:[R1&&R1.length===0&&W("div",{className:Pe("flex grow gap-3 border border-solid p-3 pt-2 text-zinc-400",V),style:{border:1},children:[W("div",{className:"size-6"}),W("div",{children:_1("no_stops_found")})]}),R1&&R1.length>0&&W("ul",{className:Pe("grow rounded-md rounded-t-none border border-solid bg-white p-0",V),style:{border:1},children:R1?.map(p2=>W("li",{className:Pe("border-b border-dashed border-slate-300 p-3 last:border-0",Q),children:W("button",{className:"flex w-full items-center gap-3 text-left",onClick:()=>{p1(p2)},children:[W("div",{className:"size-6"}),W("div",{className:"grow",children:p2.properties.name})]})},p2.properties.uid))})]})]})}var fL=ht(Ff1);var Pf1=(r,t)=>{let e=r?.geometry?.coordinates;e&&t?.getView()?.animate({center:Fa(e),duration:500,zoom:16})},Y$=Pf1;function Rf1(r){let{apikey:t,map:e,stopsurl:i}=Rt(),o=e6(n=>Y$(n,e),[e]);return W(fL,{apikey:t,bbox:Xa.join(","),onselect:o,url:i,...r})}var $c=ht(Rf1);var Ir=P3(aX());var sX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var lX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="none"><circle cx="95.749" cy="96" r="76" clip-path="url(%23i)" stroke="%23000" stroke-width="6"/><path d="M81 8.125h30v27.751H81z"/><path d="M8.082 96h19.335M166.207 96h19.336M95.75 184.167v-19.335" stroke="%23000" stroke-width="6.04" stroke-linecap="round"/></g><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var BF=Ir.default.shape({circled:Ir.default.bool,height:Ir.default.number,rotation:Ir.default.oneOfType([Ir.default.number,Ir.default.func]),src:Ir.default.string,width:Ir.default.number}),Zf1=typeof CanvasPattern>"u"?Function:CanvasPattern,Nf1={autoDownload:Ir.default.bool,children:Ir.default.node,coordinates:Ir.default.arrayOf(Ir.default.arrayOf(Ir.default.number)),extent:Ir.default.arrayOf(Ir.default.number),extraData:Ir.default.shape({copyright:Ir.default.shape({background:Ir.default.bool,fillStyle:Ir.default.oneOfType([Ir.default.string,Ir.default.instanceOf(Zf1)]),font:Ir.default.string,maxWidth:Ir.default.number,paddingBackground:Ir.default.number,paddingBottom:Ir.default.number,text:Ir.default.oneOfType([Ir.default.string,Ir.default.func])}),logo:BF,northArrow:BF,qrCode:BF}),format:Ir.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ir.default.func,map:Ir.default.instanceOf(fc),margin:Ir.default.number,onSaveEnd:Ir.default.func,onSaveStart:Ir.default.func,padding:Ir.default.number,scale:Ir.default.number},Uf1=r=>r.width/100,Qf1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},Qy=!1,Hy=0,Hf1=(r,t,e,i)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),Qy=!1,l-1===8&&(Qy=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font},Vf1=(r,t,e,i,o,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,A])=>{r[l]=A}),r.fillRect(t,e,i,o),r.restore()},Gf1=(r,t,e,i,o,n,l)=>{let{background:A,fillStyle:d,font:L,text:C}=i.copyright,{paddingBackground:B=2,paddingBottom:E=l}=i.copyright,_=typeof C=="function"?C():C?.trim();Array.isArray(_)&&(_=_.join()),r.save(),r.scale(o,o),r.font=L||"12px Arial",r.font=Hf1(r,e,_,o),r.textBaseline="bottom",r.scale(o,o),r.fillStyle=d||"black";let Z=_,Q=r.measureText(Z);if(Qy){let r1=_.split(" ").length;for(let _1=0;_1<r1&&!(Q.width*o<e);_1+=1)Z=Z.substring(0,Z.lastIndexOf(" ")),Q=r.measureText(Z)}let V=_.replace(Z,"").trim(),G=[Z,V].filter(r1=>!!r1).reverse(),J=n,i1=t.height-E;G.forEach(r1=>{let{fontBoundingBoxAscent:_1,fontBoundingBoxDescent:b1,width:M1}=r.measureText(r1),g1=_1+b1,p1=i1-g1;if(A){let R1=n;p1-=B*2,Vf1(r,R1,p1,M1+B*2,g1+B*2,A),J+=B,i1-=B}r.fillText(r1,J,i1),i1=p1}),Hy=i1,r.restore()},SF=(r,t,e,i,o,n=[0,0],l="right")=>{let A=t.getContext("2d"),{height:d,rotation:L,src:C,width:B}=r;return new Promise(E=>{let _=new Image;_.crossOrigin="Anonymous",_.src=C,_.onload=()=>{A.save();let Z=(B||80)*e,Q=(d||80)*e,V=l==="left"?i+Z/2:t.width-i-Z/2,G=(l==="left"&&Hy?Hy-o:t.height)-i-Q/2-n[1];if(A.translate(V,G),L){let J=typeof L=="function"?L():L;A.rotate(J*(Math.PI/180))}A.drawImage(_,-Z/2,-Q/2,Z,Q),A.restore(),E([Z+2*o,Q+2*o])},_.onerror=()=>{E()}})},jf1=(r,t,e)=>{let i,o;if(t?(i=Kl(t),o=ql(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},qf1=(r,t,e,i,o,n,l)=>new Promise(A=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),L,C;for(let E=0;E<d.length;E+=1){let _=d[E];if(!_.width||!_.height)continue;let Z=jf1(r,i,o)||{h:_.height,w:_.width,x:0,y:0};L||(L=document.createElement("canvas"),L.width=Z.w,L.height=Z.h,C=L.getContext("2d")),C.drawImage(_,Z.x,Z.y,Z.w,Z.h,0,0,L.width,L.height)}n=n||Uf1(L);let B=Promise.resolve();C&&t&&t.logo&&(B=SF(t.logo,L,e,n,l)),B.then((E=[0,0])=>{let _=Promise.resolve();C&&t&&t.northArrow&&(_=SF({src:t.northArrow.circled?lX:sX,...t.northArrow},L,e,n,l,E)),_.then((Z=[0,0])=>{let Q=Math.max(E[0],Z[0]);if(C&&t&&t.copyright&&t.copyright.text){let G=t.copyright.maxWidth||(Q?C.canvas.width-Q-n:C.canvas.width);Gf1(C,L,G,t,e,n,l)}let V=Promise.resolve();C&&t&&t.qrCode&&(V=SF(t.qrCode,L,e,n,l,void 0,"left")),V.then(()=>A(L))})})}),r.renderSync()}),Kf1=(r,t,e)=>new Promise(o=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),o(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(A){console.log(A)}let l=new Blob([n],{type:t});o(l),window.navigator.msSaveBlob(l,e(t))}else r.toBlob(n=>{let l=document.createElement("a");l.download=e(t),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),o(n)},t)});function cX({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:i=null,extraData:o=null,format:n="image/png",getDownloadImageName:l=Qf1,map:A=null,margin:d=null,onSaveEnd:L=()=>{},onSaveStart:C=_=>Promise.resolve(_),padding:B=5,scale:E=1}){let _=e6(Z=>{window.navigator.msSaveBlob&&(Z.preventDefault(),Z.stopPropagation()),Qy=!1,Hy=0,C(A).then(Q=>qf1(Q||A,o,E,i,e,d,B).then(V=>{r?Kf1(V,n,l).then(G=>{L(Q,V,G)}):L(Q,V)}).catch(V=>{V&&console.error(V),L(Q,V)}))},[r,e,i,o,n,A,d,L,C,B,E,l]);return t7.createElement(t7.Fragment,null,t7.Children.map(t,Z=>t7.cloneElement(Z,{onClick:_})))}cX.propTypes=Nf1;var EF=cX;function Wf1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M20,3 C21.6522847,3 23,4.34771525 23,6 L23,18 C23,19.6522847 21.6522847,21 20,21 L4,21 C2.34771525,21 1,19.6522847 1,18 L1,6 C1,4.34771525 2.34771525,3 4,3 L20,3 Z M20.9999141,7.92 L12.5734623,13.8192319 C12.2291422,14.060256 11.7708578,14.060256 11.4265377,13.8192319 L2.99991414,7.921 L3,18 C3,18.5477153 3.45228475,19 4,19 L20,19 C20.5477153,19 21,18.5477153 21,18 L20.9999141,7.92 Z M20,5 L4,5 C3.61200142,5 3.27189207,5.22696691 3.10652962,5.55404305 L12,11.7793444 L20.8934704,5.55404305 C20.7281079,5.22696691 20.3879986,5 20,5 Z"})})}var TF=Wf1;function $f1({...r}){return W("svg",{fill:"none",height:"24px",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var IF=$f1;function Xf1({...r}){return W("svg",{className:"size-6",fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75",strokeLinecap:"round",strokeLinejoin:"round"})})}var FF=Xf1;function Yf1(r){let{t}=d3(),[e,i]=wt(),[o,n]=wt(!1),l=b4(),[A,d]=wt(null),L=B=>{i(B.currentTarget.getBoundingClientRect());let E=A.querySelector(`#${l}`);navigator.clipboard.writeText(E?.value).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),E?.select()};return W("div",{className:"text-grey flex items-center",ref:B=>{d(B)},children:[W("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",id:l,onFocus:()=>{A.querySelector(`#${l}`)?.select()},readOnly:!0,type:"text",...r}),W(D6,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:L,children:W(FF,{})}),W("div",{className:`bg-grey fixed rounded-md p-1 text-sm text-white ${o?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:t("input_copy_success")})]})}var Vy=Yf1;function Jf1(r,t){let e=r||"";if(t?.forEach((i,o)=>{e=e.replace(`{{${o}}}`,i)}),e.startsWith("#"))e=`${window.location.href.split("#")[0]}${e}`;else if(e.startsWith("?")||!e){let i=new URLSearchParams(window.location.search);new URLSearchParams(e).forEach((l,A)=>{i.set(A,l)}),r?.includes("{{x}}")&&r?.includes("{{y}}")&&i.delete("center"),r?.includes("{{z}}")&&i.delete("zoom");let n=i.toString();!n.startsWith("?")&&e.length&&(n=`?${n}`),e=`${window.location.href.split("?")[0]}${n}${window.location.hash}`}return e}var uX=Jf1;function tp1(){let{permalinktemplate:r,permalinkUrlSearchParams:t}=Rt();return uX(r,t)}var xA=tp1;var ep1={};function rp1({inputProps:r=ep1,...t}){let{t:e}=d3(),i=xA();return W("div",{...t,children:[W(Vy,{value:i,...r,readonly:!0}),W("p",{className:"py-2",children:e("permalink_input_hint")})]})}var PF=ht(rp1);function ip1({className:r="",...t}){let{map:e}=Rt(),{t:i}=d3(),o=xA();return W("div",{className:Pe(`flex flex-col gap-4 ${r}`),...t,children:[W(Ja,{className:"w-fit",href:`mailto:?subject=Karte&body=${o}`,children:[W(TF,{}),W("span",{children:i("share_email_send")})]}),W(EF,{map:e,children:W(Ja,{className:"w-fit",children:[W(IF,{}),W("span",{children:i("share_image_save")})]})}),W(PF,{})]})}var RF=ip1;var np1="relative h-full overflow-x-hidden overflow-y-auto text-base bg-white";function op1({hasDetails:r,hasLayerTree:t,hasPrint:e,hasSearch:i,hasShare:o}){let{isExportMenuOpen:n,isLayerTreeOpen:l,isSearchOpen:A,isShareMenuOpen:d,setIsExportMenuOpen:L,setIsLayerTreeOpen:C,setIsShareMenuOpen:B}=Rt(),{t:E}=d3();return W(_5,{children:[r&&W(bF,{}),e&&n&&W(_5,{children:[W(Wc,{onClose:()=>{L(!1)},title:E("print_menu_title")}),W(CI,{className:Pe(np1,"flex flex-col gap-4 p-4")})]}),t&&l&&W(_5,{children:[W(Wc,{onClose:()=>{C(!1)},title:E("layertree_menu_title")}),W(_I,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto px-4 py-2 text-base *:not-last:border-b",treeItemProps:{childContainerClassName:"*:not-last:border-b"}})]}),o&&d&&W(_5,{children:[W(Wc,{onClose:()=>{B(!1)},title:E("share_menu_title")}),W(RF,{className:"h-full overflow-x-hidden overflow-y-auto p-4 text-base"})]}),i&&A&&W(_5,{children:W($c,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto p-2 text-base"})})]})}var Gy=op1;var zF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},DF=t7.createContext&&t7.createContext(zF);var ap1=["attr","size","title"];function sp1(r,t){if(r==null)return{};var e=lp1(r,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(e[i]=r[i])}return e}function lp1(r,t){if(r==null)return{};var e={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(t.indexOf(i)>=0)continue;e[i]=r[i]}return e}function jy(){return jy=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},jy.apply(this,arguments)}function hX(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,i)}return e}function qy(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?hX(Object(e),!0).forEach(function(i){cp1(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):hX(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function cp1(r,t,e){return t=up1(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function up1(r){var t=hp1(r,"string");return typeof t=="symbol"?t:t+""}function hp1(r,t){if(typeof r!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function AX(r){return r&&r.map((t,e)=>t7.createElement(t.tag,qy({key:e},t.attr),AX(t.child)))}function dX(r){return t=>t7.createElement(Ap1,jy({attr:qy({},r.attr)},t),AX(r.child))}function Ap1(r){var t=e=>{var{attr:i,size:o,title:n}=r,l=sp1(r,ap1),A=o||e.size||"1em",d;return e.className&&(d=e.className),r.className&&(d=(d?d+" ":"")+r.className),t7.createElement("svg",jy({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,l,{className:d,style:qy(qy({color:r.color||e.color},e.style),r.style),height:A,width:A,xmlns:"http://www.w3.org/2000/svg"}),n&&t7.createElement("title",null,n),r.children)};return DF!==void 0?t7.createElement(DF.Consumer,null,e=>t(e)):t(zF)}function fX(r){return dX({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 28 4.46875 L 26.59375 5.09375 L 19.96875 7.9375 L 12.34375 5.0625 L 11.96875 4.9375 L 11.59375 5.09375 L 4.59375 8.09375 L 4 8.34375 L 4 27.53125 L 5.40625 26.90625 L 12.03125 24.0625 L 19.65625 26.9375 L 20.03125 27.0625 L 20.40625 26.90625 L 27.40625 23.90625 L 28 23.65625 Z M 13 7.4375 L 19 9.6875 L 19 24.5625 L 13 22.3125 Z M 11 7.5 L 11 22.34375 L 6 24.5 L 6 9.65625 Z M 26 7.5 L 26 22.34375 L 21 24.5 L 21 9.65625 Z"},child:[]}]})(r)}function dp1({className:r,...t}){let{mainlink:e,mainlinktitle:i,map:o}=Rt(),[n,l]=wt(0),[A,d]=wt(0),[L,C]=wt(0);tt(()=>{let E=Z=>{let Q=Z.map?.getView()?.getCenter();Q&&(l(Q[0]),d(Q[1]));let V=Z.map?.getView()?.getZoom();V&&C(V)};E({map:o});let _=o?.on("moveend",E);return()=>{lr(_)}},[o]);let B=ge(()=>e?e.replace("{{x}}",n.toFixed(4)).replace("{{y}}",A.toFixed(4)).replace("{{z}}",L.toFixed(2)):"#",[e,n,A,L]);return W(D6,{className:Pe("rounded-xl border-3 border-white",r),href:B,target:"_blank",theme:"primary",title:i,...t,children:W(fX,{})})}var kF=dp1;var OF=g9({poisLayer:null,sellingPointsLayer:null,setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),fp1=()=>{let r=J9(OF);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},xl=fp1;function pp1(r){let{baseLayer:t,map:e}=Rt(),{setPoisLayer:i}=xl(),o=ge(()=>t?new z6({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:Et.pois,visible:!1,...r||{}}):null,[t,r]);return tt(()=>{i(o)},[o,i]),tt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var ZF=ht(pp1);var Lp1=new L0({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Cp1(){let{baseLayer:r}=Rt(),{selectedFeature:t}=Rt(),e=ge(()=>r?.mapLibreMap,[r?.mapLibreMap]);return tt(()=>{let i=t?.get("vectorTileFeature");t?.set("selected",!0);let o=e?.getSource(HO);if(t){let n=t.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(e?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("vectorTileFeature")?.source?.split("_")?.pop()||"scooter"),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Lp1.writeFeatureObject(n);o?.setData(l)}catch{}}return()=>{o?.setData(VO),t?.set("selected",!1),i&&e?.setFeatureState(i,{hover:!1})}},[e,t]),null}var NF=Cp1;function gp1(r){let{baseLayer:t,map:e}=Rt(),{setSellingPointsLayer:i}=xl(),o=_A(Et.verkaufsstellen),n=ge(()=>t?new z6({layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:Et.verkaufsstellen,...r||{},layerTreeTitle:W("div",{className:"flex items-center justify-between gap-2",children:[o?.title,W("span",{className:"flex items-center",children:[W(rL,{}),W(iL,{}),W(nL,{})]})]}),title:o?.title}):null,[t,r,o]);return tt(()=>{i(n)},[n,i]),tt(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var UF=ht(gp1);var pX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768219" viewBox="0 0 25.64767456 25.64768219">%0A <g id="rvf_base">%0A <g id="rvf_shared_bike">%0A <g>%0A <path d="M12.82368469,25.14785767C6.02827454,25.14785767.49995422,19.61904907.49995422,12.82363892S6.02827454.49990845,12.82368469.49990845s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371262,11.82383728,11.82384109,0,6.53011703-5.2937088,11.82384109-11.82383728,11.82384109-6.53012085,0-11.82383728-5.29372406-11.82383728-11.82384109C1,6.29371262,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.7527504,0,12.82384109c0,7.07108688,5.75274658,12.82384109,12.82383728,12.82384109s12.82383728-5.75275421,12.82383728-12.82384109C25.64767456,5.7527504,19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-rad-2px" data-name="verkehrstraeger/verkehrstraeger-rad-2px">%0A <path id="Fill-1" d="M9.25954019,11.68411861h1.42560034c.39346563,0,.7128-.31933437.7128-.7128s-.31933437-.71280017-.7128-.71280017h-1.42560034c-.01354324,0-.02494789.00712816-.03777838.00784091-.37493282.02067123-.67502162.32503686-.67502162.70495926,0,.39346563.31933437.7128.7128.7128" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.81325035,18.40129001c-.48076172,0-.95668945-.11733398-1.41547852-.34936523-.37792969-.19160156-.70883789-.45395508-.98349609-.77958984-.49350586-.5840332-.75454102-1.28408203-.75454102-2.02456055,0-.88989258.36870117-1.71518555,1.03886719-2.32426758l-.5550293-1.04501953-3.77006836,2.11464844-.50756836.29267578c.07514648.39506836.12172852.68071289.12172852.96196289,0,1.73891602-1.41459961,3.15351563-3.15351563,3.15351563-.11953125,0-.23422852-.01625977-.34848633-.03251953-1.62817383-.2175293-2.8050293-1.55522461-2.8050293-3.12099609,0-.41660156.08129883-.82397461.24169922-1.20981445.49174805-1.18081055,1.63476562-1.94370117,2.91181641-1.94370117.48032227,0,.95712891.11777344,1.41591797.35068359.34672852.1762207.65039062.40605469.90263672.6824707l.56162109-.27597656,3.69667969-2.13398438-.82353516-1.53413086c-.04042969-.07119141-.05844727-.15029297-.06987305-.21137695l-.01582031-.09667969c-.03999023-.32739258.16567383-.63632812.478125-.71938477l1.37197266-.36782227c.06064453-.01669922.11821289-.02460938.1753418-.02460938.29707031,0,.55898437.20083008.63588867.48867188.05976563.22280273-.0074707.45834961-.17973633.62973633-.09404297.09404297-.18500977.15029297-.28608398.17709961l-.50317383.13491211.65302734,1.26650391,1.0125,1.75341797c.39287109-.07382813.67631836-.11953125.95361328-.11953125,1.74331055.00703125,3.15351563,1.42075195,3.15351563,3.15351563,0,.03251953-.00439453.0637207-.00922852.09448242-.10283203,1.75166016-1.47963867,3.0590332-3.14428711,3.0590332ZM16.36173667,14.13551853c-.25136719.32651367-.38452148.71103516-.38452148,1.11225586,0,.51943359.22719727,1.01865234.62314453,1.36977539.33969727.30058594.77036133.46625977,1.21289062.46625977.20566406,0,.41835938-.03955078.63149414-.11821289l.5203125-.29970703c.43769531-.35771484.68422852-.87319336.68422852-1.41811523,0-.59545898-.29355469-1.15708008-.78530273-1.50292969-.31245117-.21796875-.67587891-.33310547-1.05073242-.33310547-.03691406,0-.07250977.00483398-.10854492.00966797l-.07954102.01098633-.01801758.07646484.7668457,1.32890625c.12612305.21796875.11381836.48603516-.03164063.69916992-.06108398.08964844-.12963867.15512695-.20917969.20039063-.08085938.04746094-.17226563.07382813-.27905273.08085937h-.00703125c-.28740234,0-.49790039-.12041016-.61435547-.32167969l-.82177734-1.42470703-.04921875.0637207ZM7.83414878,13.41173923c-1.0125,0-1.83603516.82353516-1.83603516,1.83603516s.82353516,1.83603516,1.83603516,1.83603516,1.83603516-.82353516,1.83603516-1.83603516c0-.03911133-.00527344-.07734375-.01054687-.11557617l-.01054687-.07954102-.0769043-.01977539-1.50380859.86879883c-.10063477.05756836-.21445312.08833008-.32915039.08833008-.23510742,0-.45351563-.12612305-.57128906-.32958984-.18149414-.31420898-.07338867-.71850586.24169922-.90087891l1.52358398-.8793457c-.31948242-.3375-.70136719-.46845703-1.09907227-.46845703Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function vp1({...r}){return W("img",{alt:"Bicycle",src:pX,...r})}var Ky=vp1;var LX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64768982" viewBox="0 0 25.64767838 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_car">%0A <g>%0A <path d="M12.82391739,25.14767456C6.02850723,25.14767456.50018692,19.61935425.50018692,12.82394409S6.02850723.50021362,12.82391739.50021362s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.29371643,11.82385254-11.82383728,11.82385254-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82385254C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82385254,12.82384109,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-auto-2px" data-name="verkehrstraeger/verkehrstraeger-auto-2px">%0A <path id="Fill-1" d="M16.71183851,14.25236615c.35769603,0,.648.29030397.648.648s-.29030397.648-.648.648-.648-.29030397-.648-.648.29030397-.648.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M8.93583851,14.25236615c-.35769603,0-.648.29030397-.648.648s.29030397.648.648.648.648-.29030397.648-.648-.29030397-.648-.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-11" d="M18.00783851,13.60436615v3.24c0,.35769603-.29030397.648-.648.648h-1.26943176v-.65059181c0-.35316005-.28382444-.6382804-.63504032-.64540819h-.03952792v-.00259181h-5.15289609c-.35769603,0-.648.29030397-.648.648v.65059181h-1.32710391c-.35769603,0-.648-.29030397-.648-.648v-3.24l.28187996-.648.27021604-.6194879.743904.37195192.221616.110808.1095121.04859988c.14968797.0583201.30909584.0881281.46979994.0881281h6.17414392l.12052792-.00583189c.15940757-.01490416.31492866-.05896805.45878474-.13089609l.22161539-.110808.75751241-.37843207.26438338.62596805.27410422.648ZM8.93583851,10.62745424l.50932785-1.16964004c.10303226-.23652001.33631203-.38944805.59421619-.38944805h5.62140012c.26049566,0,.49507196.15552001.59680769.39592804l.45424814,1.074384.25142432.5955121-.25142432.12571185-.80092804.40046402h-6.17414392l-.80092804-.40046402-.22615199-.11275186.22615199-.51969603ZM19.30383851,11.01236615h-.9849603l-.27345534-.648-.59421588-1.40486399c-.30391191-.719928-1.00958437-1.18713601-1.79042432-1.18713601h-5.62140012c-.77371216,0-1.47355211.458784-1.782,1.16769603l-.62013601,1.42430397-.28252807.648h-1.01087996c-.35769599,0-.648.29030397-.648.648s.29030401.648.648.648h.44647201l-.28188004.648-.05702396.13089578c-.07063198.16264826-.10756801.33890446-.10756801.51710422v3.24c0,1.07373573.87026396,1.944,1.944,1.944h1.32710391l.09655211-.00323946c.6706799-.04989702,1.1994482-.60976799,1.19879994-1.29600062h3.88346402c.00064826.71927978.58060794,1.29924007,1.29664826,1.29924007h1.26943176c1.07373573,0,1.944-.87026427,1.944-1.944v-3.24c0-.17366377-.03499255-.34473573-.10238461-.50479218l-.06026303-.14320782-.27410422-.648h.43675186c.35769603,0,.648-.29030397.648-.648s-.29030397-.648-.648-.648h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function _p1({...r}){return W("img",{alt:"Car",src:LX,...r})}var pL=_p1;var CX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="28.01245499" height="28.01245499" viewBox="0 0 28.01245499 28.01245499">%0A <g id="rvf_base">%0A <g id="rvf_shared_cargo_bike">%0A <g>%0A <path d="M14.0060463,27.51237106C6.55878067,27.51237106.50018692,21.45328903.50018692,14.00602341S6.55878067.50016403,14.0060463.50016403s13.50634766,6.05859375,13.50634766,13.50585938-6.05908203,13.50634766-13.50634766,13.50634766Z" style="fill: %2300973b;"/>%0A <path d="M14.00622177,1c7.18314362,0,13.00623322,5.82308197,13.00623322,13.00622177,0,7.18314362-5.8230896,13.00623322-13.00623322,13.00623322-7.1831398,0-13.00622177-5.8230896-13.00622177-13.00623322C1,6.82308197,6.82308197,1,14.00622177,1M14.00622177,0C6.28316116,0,0,6.28316116,0,14.00622177s6.28316116,14.00623322,14.00622177,14.00623322,14.00623322-6.28317261,14.00623322-14.00623322S21.72928238,0,14.00622177,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-9">%0A <path id="Fill-1" d="M6.784509,13.90291161h1.4256c.35354867,0,.6343919-.26231042.68999035-.60017761.00641507-.03777838.02280965-.07270543.02280965-.11262239,0-.22880887-.11476098-.42269035-.28226873-.55313265-.11333548-.08838725-.24876718-.14754961-.40273204-.15396486-.00926641-.00071275-.01782007-.00570233-.02779922-.00570233h-1.4256c-.39346572,0-.71280008.3193342-.71280008.71279983,0,.04561929.01781998.08482317.02566081.12830422.06272636.33002627.33929277.58449578.68713928.58449578" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.90206812,20.62062811c-.64204102,0-1.24848633-.24873047-1.70771484-.70048828-.26015625-.25532227-.4574707-.57041016-.58623047-.93603516-.09887695-.28168945-.14677734-.54492188-.14677734-.80419922,0-.24741211.04526367-.50141602.13798828-.77695313.29707031-.87890625,1.05161133-1.50380859,1.96962891-1.63037109.14238281-.02021484.23554687-.03339844.33310547-.03339844.53833008,0,1.0546875.18061523,1.49282227.52294922.60249023.46889648.94790039,1.16806641.94790039,1.91777344,0,.20170898-.03164062.41044922-.10019531.65610352-.29487305,1.05073242-1.25727539,1.78461914-2.34052734,1.78461914ZM18.90206812,17.05666327c-.61918945,0-1.12324219.50405273-1.12324219,1.12324219s.50405273,1.12324219,1.12324219,1.12324219,1.12324219-.50405273,1.12324219-1.12324219-.50405273-1.12324219-1.12324219-1.12324219Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M8.31652125,20.68303045c-.21401367,0-.43681641-.02416992-.66225586-.07250977-1.44360352-.30893555-2.49125977-1.60488281-2.49125977-3.08144531,0-.89033203.37001953-1.71694336,1.04238281-2.3277832.24609375-.22368164.51767578-.40429688.80771484-.53657227.36694336-.16743164.76420898-.26015625,1.18081055-.27597656l.12260742-.01318359c.44208984,0,.8784668.09624023,1.29682617.28564453.62270508.28168945,1.1465332.77739258,1.47612305,1.39614258l.56645508-.10810547-.68686523-2.77338867-.45-1.67827148-.18457031-.00615234-.58007812.15556641c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20083008-.63588867-.48867188-.09404297-.35068359.11469727-.71279297.46582031-.80683594l1.37680664-.36914062c.05537109-.01494141.1125-.02241211.17006836-.02241211.03164063,0,.06240234.00219727.09316406.0065918.21269531.02680664.39946289.16611328.4996582.3730957l.05493164.10854492.15864258.59458008,1.04414063.03999023h7.87324219l.10854492.02329102c.31904297.05493164.55019531.32211914.55019531.63544922l-.02241211.11557617c.00483398.06416016.00703125.13974609-.01274414.21577148l-.65522461,2.44379883c-.04174805.15512695-.14326172.29047852-.28564453.38144531-.12832031.07426758-.18061523.1059082-.24169922.12260742l-6.75087891,1.80922852.26323242,1.19223633c.09404297.35068359-.11469727.71235352-.46582031.80639648-.05625.01538086-.11381836.02285156-.17138672.02285156-.29707031,0-.55854492-.20083008-.63544922-.48867188l-.30146484-1.12543945-.56557617.09492188-.04614258.01230469.01274414.10283203c.00571289,1.22124023-.64204102,2.2855957-1.68442383,2.83666992-.47285156.24960937-.96503906.37617188-1.46337891.37617188ZM8.31652125,15.69304022c-.77080078,0-1.46293945.49130859-1.7230957,1.22299805-.07470703.20830078-.11293945.4144043-.11293945.61303711,0,.53085937.23686523,1.03754883.64951172,1.39042969.34145508.29179687.75146484.44604492,1.18652344.44604492.41088867,0,.80419922-.13974609,1.13686523-.40473633.36474609-.29003906.60336914-.70180664.67236328-1.1597168l.01186523-.08129883-1.43964844.38583984c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20126953-.63588867-.48911133-.04570312-.16962891-.02241211-.34716797.06591797-.4996582.08789062-.15249023.22983398-.26147461.39990234-.30673828l1.43701172-.38496094-.05229492-.06459961c-.29179687-.36035156-.70224609-.59589844-1.15620117-.66357422-.10107422-.01494141-.18325195-.02680664-.26894531-.02680664ZM12.96637476,15.54186834l2.89467773-.71938477,3.58110352-.95976562.2043457-.65874023.19116211-.71279297-1.70947266-.06811523h-5.9972168l.83540039,3.11879883Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function wp1({...r}){return W("img",{alt:"Cargo bike",src:CX,...r})}var Wy=wp1;var gX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768982" viewBox="0 0 25.64767456 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_ride">%0A <g>%0A <path d="M12.82368469,25.14767456C6.02827454,25.14767456.49995422,19.61935425.49995422,12.82394409S6.02827454.50021362,12.82368469.50021362s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32373047-12.32421875,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.2937088,11.82385254-11.82383728,11.82385254-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82385254C1,6.29371643,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82385254,12.82383728,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M18.43790805,8.78152597l-4.85659507.00731315c-.24399321.03723057-.39025617.1954605-.53518946.35369043-.390921.29319075-.845001.44809652-1.31437214.44809652-.36698706,0-.73064996-.09839508-1.0530933-.28521277-.03590091-.02193944-.08576328-.06049968-.21474062-.16487824-.27058647-.21540545-.42017359-.33374548-.68012276-.3530256-.19280117,0-.51590935.06382384-.63424938.0924116-.92611046.23202624-1.68268886,1.08899421-1.83958912,2.08823615.00265933.47402495-.01728562.97131901-.04055473,1.54440388-.03723057.90948967-.07579081,1.85022643.00265933,2.71317789.0797798.88289641.73663345,1.52445893,1.5616895,1.52445893.06781283,0,.13562565-.00398899.20277365-.01329663l.13703842-.04587338.01786735-.00241001v4.35040888c0,.49662923.41684943,1.05774713.80644077,1.26916358.25463051.13828498.5192335.20875713.78716065.20875713.33706964,0,.64422185-.11501587.78250683-.29319075l.06116451-.12166419.1283125.09706542c.27191614.20543297.59502431.31380053.93541811.31380053.83170437,0,1.51315679-.64754601,1.58628827-1.50783814l-.00531865-8.71328336c.02127461-.20277365.15025195-.33175098.35502009-.35236076.26726232-.02592843.54383227-.03523608.82572089-.03523608.3782892,0,.7672157.01662079,1.24190549.03723057.37297055.01595596.7439466.03124709,1.1076095.03124709.27590513,0,.54782126-.00797798.81042976-.03191192.93541811-.07911496,1.42207486-.85031966,1.41941553-1.57033231-.00398899-.70738086-.50460721-1.50584365-1.59559592-1.5889476ZM17.83158161,10.72615849c-.36166841,0-.72799064-.01196697-1.14949389-.02592843-.39358033-.01396146-.78716065-.0272581-1.17409266-.0272581-.323773,0-.64222736.00930764-.95403339.03590091-.82705055.06980732-1.4207452.65951298-1.51315679,1.50584365l.00066483,8.76846439c-.07446114.26859198-.26393816.29784457-.34238829.29784457-.14626296,0-.32643233-.09972474-.35036627-.38161336-.06714799-.781842-.03457124-1.67803504-.00531865-2.48181648.02792293-.76389154.05651069-1.55304669.00664832-2.32092723-.03457124-.34837177-.2752403-.58239251-.59768364-.58239251-.34770694,0-.60965061.26925681-.63624387.65618882l.00797798,4.82069416c-.0505272.17950454-.17950454.28654243-.34438279.28654243-.19745499,0-.33241582-.11966969-.3530256-.30981154l.00398899-8.79705215-.05917002-.13629048c-.11634554-.22005927-.33308065-.35634975-.56510689-.35634975-.31047637,0-.55646408.23269107-.61230993.58172768-.03390641.47867877-.01529113.98195632.00332416,1.48523386.01928012.52056317.03723057,1.01253857-.00332416,1.48257454-.01728562.19811983-.18016937.28654243-.33441031.28654243-.09706542,0-.3257675-.04121956-.36033874-.42615708-.07113698-.82838021-.03124709-1.75515551.00731315-2.65134855.02127461-.50128305.04188439-.99458812.04321406-1.43736599.02260428-.31380053.64355702-.95270373,1.0171924-.98461565.02925259.01728562.07246665.04919754.19944949.14626296.13629048.10238407.28321828.2100868.36100358.25330085.50061822.27457546,1.03780218.41352527,1.59626075.41352527.77519368,0,1.54839287-.27856445,2.21787832-.79912762.19014185.00598348.38294302.00797798.57574419.00797798.45939866,0,.92544563-.01329663,1.46129993-.02858776.43546472-.01196697.87092944-.02393394,1.3010755-.02393394.34637728,0,.69076007.00797798,1.02849453.02925259.34238829.02193944.48732159.19014185.5066017.32643233.02260428.17219139-.13230149.31380053-.23202624.36432773-.2459877.01662079-.49795889.02193944-.75125974.02193944Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M11.67922969,8.57077434c1.35093788,0,2.45056939-1.09963152,2.45056939-2.45123423,0-1.35093788-1.09963152-2.45056939-2.45056939-2.45056939s-2.45056939,1.09963152-2.45056939,2.45056939c0,1.35160271,1.09963152,2.45123423,2.45056939,2.45123423ZM11.67922969,4.92882666c.65685365,0,1.19071345.5338598,1.19071345,1.19071345s-.5338598,1.19137828-1.19071345,1.19137828-1.19071345-.53452463-1.19071345-1.19137828.5338598-1.19071345,1.19071345-1.19071345Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Mp1({...r}){return W("img",{alt:"Ride",src:gX,...r})}var QF=Mp1;var mX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_shared_scooter">%0A <g>%0A <path d="M12.82391739,25.14752197C6.02850723,25.14752197.50018692,19.61920166.50018692,12.8237915S6.02850723.50006104,12.82391739.50006104s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82384491,0,6.53012085-5.29371643,11.82382965-11.82383728,11.82382965-6.53012848,0-11.82384109-5.2937088-11.82384109-11.82382965C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75275421,0,12.82384491c0,7.07108307,5.7527504,12.82382965,12.82384109,12.82382965s12.82383728-5.75274658,12.82383728-12.82382965C25.64767838,5.75275421,19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-5">%0A <path d="M18.64085918,18.24216413l-.93076172-3.47475586c-.09360352-.34848633-.45087891-.55722656-.80288086-.46274414-.34892578.09360352-.55634766.45395508-.46274414.80244141l.93076172,3.47387695c.04482422.16918945.15336914.31025391.30498047.39770508.10107422.05844727.21313477.08833008.32651367.08833008.05712891,0,.11425781-.0074707.17050781-.02285156.16918945-.04482422.31025391-.15336914.39814453-.30498047.08745117-.15161133.11074219-.32827148.06547852-.49702148Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.1513084,8.25778913c-.07602539-.28608398-.33618164-.48603516-.63237305-.48603516-.05712891,0-.11425781.0074707-.22719727.03779297l-4.44902344,1.19179687c-.34892578.09360352-.55722656.45351563-.46362305.80244141.07558594.28300781.33530273.48076172.63105469.48076172.04526367,0,.0909668-.00439453.17138672-.01757812l1.80791016-.47241211.4855957,1.81186523.1340332.41748047-1.98413086,3.43608398-.2746582.54711914h-2.43676758c-.04350586-.17446289-.11030273-.35244141-.2034668-.54316406-.08393555-.16918945-.18764648-.33178711-.30805664-.48383789-.51943359-.65390625-1.2862793-1.02919922-2.10454102-1.02919922-1.48666992,0-2.69648438,1.20981445-2.69648438,2.69648437s1.20981445,2.69648438,2.69648438,2.69648438c1.01206055,0,1.93051758-.56777344,2.39589844-1.48227539.10458984-.20698242.17797852-.40341797.15380859-.54404297h2.69604492c.25927734,0,.59238281-.12172852.72685547-.35375977l1.81186523-3.13857422.77651367-1.37592773c.08745117-.15117187.11118164-.32783203.06591797-.49746094l-.67192383-2.50751953,1.43569336-.38452148c.16918945-.04482422.31025391-.15336914.39770508-.30498047.08789062-.15161133.11118164-.32827148.06547852-.49702148ZM6.91141582,16.64738874c0-.3234375.11381836-.63017578.32915039-.88637695.06416016-.0769043.13710938-.1472168.21533203-.20786133.24785156-.19116211.53920898-.29179687.84155273-.29179687.3019043,0,.59326172.10063477.84155273.29179687.16391602.1265625.29663086.28212891.38759766.45395508h-1.17509766c-.36123047,0-.65522461.29399414-.65522461.65522461s.29399414.65522461.65522461.65522461h1.15576172c-.0984375.17753906-.23642578.33266602-.40297852.45307617-.24038086.17182617-.51943359.26279297-.80683594.26279297-.2878418,0-.56689453-.0909668-.80639648-.26279297-.08789062-.0637207-.17006836-.14106445-.25048828-.23642578-.21533203-.25664062-.32915039-.56337891-.32915039-.88681641Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Sp1({...r}){return W("img",{alt:"Scooter",src:mX,...r})}var HF=Sp1;var Ep1=(r,t=Xa)=>`https://api.mobidata-bw.de/geoserver/MobiData-BW/${r}/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:${r}&outputFormat=application/json&bbox=${t.toString()},EPSG:4326`,VF=async(r,t,e=Xa)=>{let i=Ep1(r,e),n=await(await fetch(i,{signal:t.signal})).json();return n?.features.forEach(l=>{let A=l.properties.vehicle_id;l.properties.id=A||l.properties.station_id,l.properties.provider_name=Tg[l.properties.feed_id];let L=l.properties.form_factor||r.split("_").pop();if(L==="bicycle"?L="bike":L==="cargo_bicycle"&&(L="cargo_bike"),L==="stations"){let C=l.properties;C.num_bicycles_available!==null?(L="bike",l.properties.num_vehicles_available=C.num_bicycles_available):C.num_cars_available!==null?(L="car",l.properties.num_vehicles_available=C.num_cars_available):C.num_cargo_bicycles_available!==null&&(L="cargo_bike",l.properties.num_vehicles_available=C.num_cargo_bicycles_available)}else l.properties.num_vehicles_available=1;l.properties.mot=L,l.properties.display_num_vehicles_available=!0}),n};var Tp1=async(r,t,e=Xa)=>({features:(await VF(r,t,e)).features,type:"FeatureCollection"});function Ip1(r){let{baseLayer:t,map:e}=Rt(),{setSharedMobilityLayerGroup:i}=xl(),{t:o}=d3(),[n,l]=wt(),[A,d]=wt(),[L,C]=wt(),[B,E]=wt(),[_,Z]=wt(),Q=ge(()=>t?.mapLibreMap,[t?.mapLibreMap]);tt(()=>{if(!Q?.style||!n)return;Q.getSource(OO)?.setData(n)},[n,Q]),tt(()=>{if(!Q?.style||!A)return;Q.getSource(ZO)?.setData(A)},[Q,A]),tt(()=>{if(!Q?.style||!L)return;Q.getSource(NO)?.setData(L)},[Q,L]),tt(()=>{if(!Q?.style||!B)return;Q.getSource(UO)?.setData(B)},[Q,B]),tt(()=>{if(!Q?.style||!_)return;Q.getSource(QO)?.setData(_)},[Q,_]);let V=ge(()=>{if(!t)return null;let J=new z6({layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Ky,{})]}),maplibreLayer:t,name:Et.bikeFrelo,styleLayersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="bike.frelo"}),i1=new z6({layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Ky,{})]}),maplibreLayer:t,name:Et.bikeOthers,styleLayersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="bike.other"}),r1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="cargo_bike.frelo",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Wy,{})]}),maplibreLayer:t,name:Et.cargobikeFrelo}),_1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="cargo_bike.other",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Wy,{})]}),maplibreLayer:t,name:Et.cargobikeOthers}),b1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.grueneflotte",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carGrf}),M1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.naturenergy",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carNatur}),g1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.other",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carOthers}),p1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="scooter",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(HF,{})]}),maplibreLayer:t,name:Et.eroller}),R1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="hitchhiking",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(QF,{})]}),maplibreLayer:t,name:Et.mitfahrpunkte});return new Go({layers:[J,i1,r1,_1,b1,M1,g1,p1,R1],name:Et.sharedMobility,...r})},[t,r,o]),G=e6(()=>{if(e?.getView()?.getZoom()<15.5||!V.getVisible())return;let J=new AbortController,i1=Ra(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let _1=await Tp1(DO,J,i1);l(_1);let b1=await VF(kO,J,i1),M1={features:[],type:"FeatureCollection"},g1={features:[],type:"FeatureCollection"},p1={features:[],type:"FeatureCollection"},R1={features:[],type:"FeatureCollection"};b1.features.forEach(a1=>{a1.properties.form_factor===GO?M1.features.push(a1):a1.properties.form_factor===qO?g1.features.push(a1):a1.properties.form_factor===jO?p1.features.push(a1):a1.properties.form_factor===KO&&R1.features.push(a1)}),d(M1),C(g1),E(p1),Z(R1)})(),()=>{J.abort()}},[e,V]);return tt(()=>{let J=e?.on("moveend",()=>G()),i1=e?.on(`change:${Ko}`,b1=>{b1.target.get(Ko)||G()}),r1=e?.once("rendercomplete",G),_1=V?.on("change:visible",b1=>{b1.target.getVisible()&&G()});return()=>{lr([J,i1,r1,_1])}},[e,G,Q,V]),tt(()=>{let J=window.setInterval(()=>{G()},6e4);return()=>{window.clearInterval(J)}},[V,G]),tt(()=>{i(V)},[V,i]),tt(()=>{if(!(!e||!V))return e.addLayer(V),()=>{e.removeLayer(V)}},[e,V]),null}var GF=ht(Ip1);function Fp1(r){let{baseLayer:t,map:e}=Rt(),{setTarifZonenLayer:i}=xl(),o=ge(()=>t?new z6({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:t,name:Et.tarifzonen,...r||{}}):null,[t,r]);return tt(()=>{i(o)},[o,i]),tt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var jF=ht(Fp1);var vX=`.ol-scale-line {
1545
+ `,Ny=async r=>{let t=new _l(ff1,{method:"POST"}),{station:e}=await t.request(pf1,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return e};function Lf1(r){let t=r?.get("rental_uris_ios"),e=r?.get("rental_uris_android"),i=r?.get("rental_uris_web");return t&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPod"))?t:e&&navigator.userAgent.includes("Android")?e:i}var hL=Lf1;function Cf1({features:r}){let t=r.map((o,n)=>{let l,{feed_id:A,rental_uris_android:d}=o.getProperties();if(/yoio/.test(A))l=d.split("/").pop();else if(/zeus/.test(A)){let E=new URL(o.get("rental_uris_web"));l=new URLSearchParams(E.search).get("vehicle")}else if(/nextbike/.test(A)){let E=new URL(d);l=new URLSearchParams(E.search).get("id")}let L=hL(o),C=o.get("current_range_meters")?.toLocaleString()?.replace(".","'").replace(",","'"),B=C?` (${C} m)`:null;return!l||!L?null:W("li",{children:W("div",{className:"flex items-center gap-2",children:[`${l}`,B,W(hs,{href:L,children:" jetzt buchen"})]})},n)}),e=r?.[0].get("feed_id"),i=hL(r?.[0]);return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.length," Fahrzeuge"]}),W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t})]})]}),e&&i&&W("div",{children:W(hs,{href:i,children:["\xDCber ",Tg[e]]})})]})}var mF=Cf1;function gf1({feature:r}){let[t,e]=wt(null),i=ge(()=>hL(r),[r]);tt(()=>{r.get("station_id")&&(async()=>{let A=await Ny(r.get("station_id"));e(A)})()},[r]);let o=r.get("num_vehicles_available")>0;return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),o&&t?.vehicleTypesAvailable?.length&&W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:A,vehicleImage:d}})=>W("li",{children:W("div",{className:"flex items-center gap-2",children:[W("span",{children:`${n} x ${A.translation[0].value}`}),d&&W("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),t?.vehicleTypesAvailable?.length>0&&i&&W("div",{children:W(hs,{href:i,children:"Jetzt buchen"})})]})}var vF=gf1;var mf1=new L0;function vf1({className:r,feature:t,...e}){let{baseLayer:i}=Rt(),[o,n]=wt([]),l=!!t.get("station_id"),A=!!t.get("vehicle_id"),d=!!t.get("cluster_id");tt(()=>{if(l){let C=t?.get("station_id"),B=t?.get("feed_id");C&&Ny(C).then(E=>{t.setProperties(E),t.set("provider_logo",Ig[B])}).catch(E=>{console.warn("Error fetching sharing station info:",E)})}},[t,l]),tt(()=>{if(d){let C=t.get("cluster_id");if(C){let E=t.get("vectorTileFeature").layer.source;i.mapLibreMap.getSource(E)?.getClusterLeaves(C,1e3,0).then(_=>{let Z=_.map(Q=>mf1.readFeature(Q));n(Z||[])}).catch(()=>{console.warn(`Impossible to get cluster ${C} leaves from source ${E}`)})}}else n(t?[t]:[])},[t,A,d,i?.mapLibreMap]);let L=ge(()=>{let C={};return l?null:((o||[]).forEach(B=>{let E=B.get("feed_id");C[E]?C[E].push(B):C[E]=[B]}),C)},[o,l]);return W(eo,{...e,className:Pe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:[l&&W(_5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Ig[o[0]?.get("feed_id")]}),o.length&&l&&W(vF,{feature:o[0]})]}),(A||d)&&L&&Object.entries(L).map(([C,B])=>W(_5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Ig[B[0]?.get("feed_id")]}),W(mF,{features:B})]},C))]})})}var yF=ht(vf1);var yf1=r=>{if(r&&(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id")))return!0};function _f1({feature:r,featuresInfo:t,layer:e}){let i=yf1(r),o=!!r?.get("tickets");return W(_5,{children:[W(C$,{feature:r,featuresInfo:t,layer:e}),(o||i)&&W(_5,{children:[o&&W(oF,{feature:r}),i&&W(yF,{feature:r})]})]})}var Uy=ht(_f1);function xf1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.584,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.586,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z"})})}var _F=xf1;function wf1(r){let e=fy()[r]||{};return e.title||(e.title=r),e}var _A=wf1;function bf1({className:r,feature:t,layer:e,...i}){let o=_A(e?.get("name"));if(!o?.link||o?.link?.show===!1)return null;let n=t?.get("id"),l=t?.get("situationId");return l&&(n=l),W("div",{...i,className:Pe("flex flex-row p-4",r),children:W(Ja,{href:o.link.href.replace("{{id}}",n),target:"_blank",theme:"primary",children:[W("span",{children:o.link.text||"Mehr erfahren"}),W(_F,{})]})})}var xF=ht(bf1);function Mf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("g",{children:W("path",{d:"M5.29289322,5.29289322 C5.68341751,4.90236893 6.31658249,4.90236893 6.70710678,5.29289322 L12,10.585 L17.2928932,5.29289322 C17.6533772,4.93240926 18.2206082,4.90467972 18.6128994,5.20970461 L18.7071068,5.29289322 C19.0976311,5.68341751 19.0976311,6.31658249 18.7071068,6.70710678 L13.415,12 L18.7071068,17.2928932 C19.0675907,17.6533772 19.0953203,18.2206082 18.7902954,18.6128994 L18.7071068,18.7071068 C18.3165825,19.0976311 17.6834175,19.0976311 17.2928932,18.7071068 L12,13.415 L6.70710678,18.7071068 C6.34662282,19.0675907 5.77939176,19.0953203 5.38710056,18.7902954 L5.29289322,18.7071068 C4.90236893,18.3165825 4.90236893,17.6834175 5.29289322,17.2928932 L10.585,12 L5.29289322,6.70710678 C4.93240926,6.34662282 4.90467972,5.77939176 5.20970461,5.38710056 Z",fill:"currentColor"})})})}var AL=Mf1;function Bf1({children:r,className:t,onClose:e,title:i,...o}){return W("div",{...o,className:Pe("flex flex-row items-center justify-between gap-2 border-b p-2 pl-4",t),children:[r||W("span",{className:"text-base font-bold",children:i}),e&&W(D6,{className:"!size-[32px] border-none shadow-none",onClick:e,children:W(AL,{})})]})}var Wc=ht(Bf1);function Sf1({feature:r,layer:t,...e}){let{t:i}=d3(),o=_A(t?.get("name"));return t?W(Wc,{title:i(o?.title||"")||(o?.title??""),...e}):null}var wF=ht(Sf1);function Ef1(){let{featuresInfos:r,linesIds:t,linesNetworkPlanLayer:e,notificationId:i,notificationsLayer:o,realtimeLayer:n,selectedFeature:l,setFeaturesInfos:A,setLinesIds:d,setNotificationId:L,setStationId:C,setTrainId:B,stationId:E,stationsLayer:_,trainId:Z}=Rt(),Q=ge(()=>r?.find(G=>G?.features.includes(l)),[r,l]),V=ge(()=>{if(Q?.layer)return Q.layer;if(Z)return n;if(E)return _;if(t)return e;if(i)return o},[Q?.layer,Z,E,t,i,n,_,e,o]);return W(_5,{children:[W(wF,{feature:l,layer:V,onClose:()=>{A(null),B(null),C(null),d(null),L(null)}}),W(Uy,{feature:l,featuresInfo:Q,layer:V}),W(xF,{feature:l,layer:V})]})}var bF=ht(Ef1);var X$=P3(Ka(),1);function Tf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:W("polygon",{id:"path-1",points:"0 0 20 0 20 20 0 20"})}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/search",stroke:"none",strokeWidth:"1",children:W("g",{id:"Group-3-Copy",transform:"translate(2, 2)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M14.0345333,13.8617333 C14.0025333,13.8864 13.9718667,13.9137333 13.9432,13.9430667 C13.9138667,13.9724 13.8865333,14.0030667 13.8632,14.0350667 C12.6038667,15.2517333 10.8892,15.9997333 8.99986667,15.9997333 C5.13386667,15.9997333 1.99986667,12.8657333 1.99986667,8.99973333 C1.99986667,5.13373333 5.13386667,1.99973333 8.99986667,1.99973333 C12.8658667,1.99973333 15.9998667,5.13373333 15.9998667,8.99973333 C15.9998667,10.8890667 15.2512,12.6037333 14.0345333,13.8617333 M19.7072,18.2930667 L16.0318667,14.6177333 C17.2632,13.0784 17.9998667,11.1250667 17.9998667,8.99973333 C17.9998667,4.02973333 13.9705333,-0.000266666667 8.99986667,-0.000266666667 C4.0292,-0.000266666667 -0.000133333333,4.02973333 -0.000133333333,8.99973333 C-0.000133333333,13.9704 4.0292,17.9997333 8.99986667,17.9997333 C11.1252,17.9997333 13.0785333,17.2637333 14.6178667,16.0317333 L18.2932,19.7070667 C18.6832,20.0977333 19.3165333,20.0977333 19.7072,19.7070667 C20.0978667,19.3164 20.0978667,18.6837333 19.7072,18.2930667",fill:"currentColor",id:"Fill-1",mask:"url(#mask-2)"})]})})]})}var dL=Tf1;function If1({className:r,...t}){return W("input",{...t,className:Pe("p-2 text-sm read-only:text-gray-400",r)})}var MF=If1;var $$=r=>r?.properties?.name||"";function Ff1({apikey:r,bbox:t,cancelButtonClassName:e,className:i,countrycode:o,event:n,field:l,inputClassName:A,inputContainerClassName:d,limit:L,mots:C,onselect:B,params:E,prefagencies:_,reflocation:Z,resultClassName:Q,resultsClassName:V,resultsContainerClassName:G,searchIconContainerClassName:J,url:i1="https://api.geops.io/stops/v1/",withResultsClassName:r1}){let{t:_1}=d3(),[b1,M1]=wt(""),[g1,p1]=wt(),[R1,a1]=wt(),x1=Ui();tt(()=>{x1.current?.dispatchEvent(new Bf("mwc:attribute",{apikey:r,bbox:t,countrycode:o,event:n,field:l,limit:L,mots:C,onselect:B,params:E,prefagencies:_,reflocation:Z,url:i1}))},[r,t,o,n,l,L,C,B,E,_,Z,i1]);let N1=ge(()=>new $_({apiKey:r,url:i1}),[r,i1]),H1=e6(p2=>{let s2=new Bf(n||"mwc:stopssearchselect",p2,{bubbles:!0});x1.current?.dispatchEvent(s2),B&&typeof B=="function"&&B(p2)},[n,B]),l2=ge(()=>{let p2;return(0,X$.default)(s2=>{p2?.abort(),p2=new AbortController;let G1={bbox:t,field:l,limit:L,mots:C,prefagencies:_,q:s2,ref_location:Z,...JSON.parse(E||"{}")};N1.search(G1,{signal:p2.signal}).then(m2=>{a1(m2.features.filter(V2=>!o||V2.properties?.country_code===o))}).catch(m2=>{if(m2.code!==20){console.error("Failed to fetch stations",m2);return}})},150)},[N1,t,o,l,L,C,E,_,Z]);return tt(()=>{if(!(g1&&b1===$$(g1))){if(!b1){p1(void 0);return}return l2(b1),()=>{l2.cancel()}}},[b1,g1,l2]),tt(()=>{a1(void 0),g1&&M1($$(g1)),H1(g1)},[H1,g1]),W(_5,{children:[W("div",{className:Pe("flex h-16 items-center gap-4 rounded-md bg-white p-4 pt-3.5 shadow",i,R1?r1:""),ref:x1,children:[W("div",{className:Pe("text-grey flex items-center",J),children:W(dL,{className:"size-4"})}),W("div",{className:Pe("@container/inputsearch flex grow items-center border-b-2 border-solid",d),children:[W(MF,{autoComplete:"off",className:Pe("h-8 w-1 grow overflow-hidden text-ellipsis placeholder:text-zinc-400",A),onChange:p2=>{M1(p2.target.value)},onKeyUp:p2=>{p2.key==="Enter"&&R1?.length>0&&p1(R1[0])},placeholder:_1("stops_search_placeholder"),type:"text",value:b1||""}),b1.length>0&&W(D6,{className:Pe("flex !size-[32px] items-center rounded-none border-none bg-transparent shadow-none",e),onClick:()=>{M1(""),a1(void 0)},children:W(AL,{})})]})]}),R1&&W("div",{className:Pe("flex grow overflow-auto rounded-md rounded-t-none bg-white shadow",G),children:[R1&&R1.length===0&&W("div",{className:Pe("flex grow gap-3 border border-solid p-3 pt-2 text-zinc-400",V),style:{border:1},children:[W("div",{className:"size-6"}),W("div",{children:_1("no_stops_found")})]}),R1&&R1.length>0&&W("ul",{className:Pe("grow rounded-md rounded-t-none border border-solid bg-white p-0",V),style:{border:1},children:R1?.map(p2=>W("li",{className:Pe("border-b border-dashed border-slate-300 p-3 last:border-0",Q),children:W("button",{className:"flex w-full items-center gap-3 text-left",onClick:()=>{p1(p2)},children:[W("div",{className:"size-6"}),W("div",{className:"grow",children:p2.properties.name})]})},p2.properties.uid))})]})]})}var fL=ht(Ff1);var Pf1=(r,t)=>{let e=r?.geometry?.coordinates;e&&t?.getView()?.animate({center:Fa(e),duration:500,zoom:16})},Y$=Pf1;function Rf1(r){let{apikey:t,map:e,stopsurl:i}=Rt(),o=e6(n=>Y$(n,e),[e]);return W(fL,{apikey:t,bbox:Xa.join(","),onselect:o,url:i,...r})}var $c=ht(Rf1);var Ir=P3(aX());var sX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var lX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="none"><circle cx="95.749" cy="96" r="76" clip-path="url(%23i)" stroke="%23000" stroke-width="6"/><path d="M81 8.125h30v27.751H81z"/><path d="M8.082 96h19.335M166.207 96h19.336M95.75 184.167v-19.335" stroke="%23000" stroke-width="6.04" stroke-linecap="round"/></g><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var BF=Ir.default.shape({circled:Ir.default.bool,height:Ir.default.number,rotation:Ir.default.oneOfType([Ir.default.number,Ir.default.func]),src:Ir.default.string,width:Ir.default.number}),Zf1=typeof CanvasPattern>"u"?Function:CanvasPattern,Nf1={autoDownload:Ir.default.bool,children:Ir.default.node,coordinates:Ir.default.arrayOf(Ir.default.arrayOf(Ir.default.number)),extent:Ir.default.arrayOf(Ir.default.number),extraData:Ir.default.shape({copyright:Ir.default.shape({background:Ir.default.bool,fillStyle:Ir.default.oneOfType([Ir.default.string,Ir.default.instanceOf(Zf1)]),font:Ir.default.string,maxWidth:Ir.default.number,paddingBackground:Ir.default.number,paddingBottom:Ir.default.number,text:Ir.default.oneOfType([Ir.default.string,Ir.default.func])}),logo:BF,northArrow:BF,qrCode:BF}),format:Ir.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ir.default.func,map:Ir.default.instanceOf(fc),margin:Ir.default.number,onSaveEnd:Ir.default.func,onSaveStart:Ir.default.func,padding:Ir.default.number,scale:Ir.default.number},Uf1=r=>r.width/100,Qf1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},Qy=!1,Hy=0,Hf1=(r,t,e,i)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),Qy=!1,l-1===8&&(Qy=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font},Vf1=(r,t,e,i,o,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,A])=>{r[l]=A}),r.fillRect(t,e,i,o),r.restore()},Gf1=(r,t,e,i,o,n,l)=>{let{background:A,fillStyle:d,font:L,text:C}=i.copyright,{paddingBackground:B=2,paddingBottom:E=l}=i.copyright,_=typeof C=="function"?C():C?.trim();Array.isArray(_)&&(_=_.join()),r.save(),r.scale(o,o),r.font=L||"12px Arial",r.font=Hf1(r,e,_,o),r.textBaseline="bottom",r.scale(o,o),r.fillStyle=d||"black";let Z=_,Q=r.measureText(Z);if(Qy){let r1=_.split(" ").length;for(let _1=0;_1<r1&&!(Q.width*o<e);_1+=1)Z=Z.substring(0,Z.lastIndexOf(" ")),Q=r.measureText(Z)}let V=_.replace(Z,"").trim(),G=[Z,V].filter(r1=>!!r1).reverse(),J=n,i1=t.height-E;G.forEach(r1=>{let{fontBoundingBoxAscent:_1,fontBoundingBoxDescent:b1,width:M1}=r.measureText(r1),g1=_1+b1,p1=i1-g1;if(A){let R1=n;p1-=B*2,Vf1(r,R1,p1,M1+B*2,g1+B*2,A),J+=B,i1-=B}r.fillText(r1,J,i1),i1=p1}),Hy=i1,r.restore()},SF=(r,t,e,i,o,n=[0,0],l="right")=>{let A=t.getContext("2d"),{height:d,rotation:L,src:C,width:B}=r;return new Promise(E=>{let _=new Image;_.crossOrigin="Anonymous",_.src=C,_.onload=()=>{A.save();let Z=(B||80)*e,Q=(d||80)*e,V=l==="left"?i+Z/2:t.width-i-Z/2,G=(l==="left"&&Hy?Hy-o:t.height)-i-Q/2-n[1];if(A.translate(V,G),L){let J=typeof L=="function"?L():L;A.rotate(J*(Math.PI/180))}A.drawImage(_,-Z/2,-Q/2,Z,Q),A.restore(),E([Z+2*o,Q+2*o])},_.onerror=()=>{E()}})},jf1=(r,t,e)=>{let i,o;if(t?(i=Kl(t),o=ql(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},qf1=(r,t,e,i,o,n,l)=>new Promise(A=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),L,C;for(let E=0;E<d.length;E+=1){let _=d[E];if(!_.width||!_.height)continue;let Z=jf1(r,i,o)||{h:_.height,w:_.width,x:0,y:0};L||(L=document.createElement("canvas"),L.width=Z.w,L.height=Z.h,C=L.getContext("2d")),C.drawImage(_,Z.x,Z.y,Z.w,Z.h,0,0,L.width,L.height)}n=n||Uf1(L);let B=Promise.resolve();C&&t&&t.logo&&(B=SF(t.logo,L,e,n,l)),B.then((E=[0,0])=>{let _=Promise.resolve();C&&t&&t.northArrow&&(_=SF({src:t.northArrow.circled?lX:sX,...t.northArrow},L,e,n,l,E)),_.then((Z=[0,0])=>{let Q=Math.max(E[0],Z[0]);if(C&&t&&t.copyright&&t.copyright.text){let G=t.copyright.maxWidth||(Q?C.canvas.width-Q-n:C.canvas.width);Gf1(C,L,G,t,e,n,l)}let V=Promise.resolve();C&&t&&t.qrCode&&(V=SF(t.qrCode,L,e,n,l,void 0,"left")),V.then(()=>A(L))})})}),r.renderSync()}),Kf1=(r,t,e)=>new Promise(o=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),o(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(A){console.log(A)}let l=new Blob([n],{type:t});o(l),window.navigator.msSaveBlob(l,e(t))}else r.toBlob(n=>{let l=document.createElement("a");l.download=e(t),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),o(n)},t)});function cX({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:i=null,extraData:o=null,format:n="image/png",getDownloadImageName:l=Qf1,map:A=null,margin:d=null,onSaveEnd:L=()=>{},onSaveStart:C=_=>Promise.resolve(_),padding:B=5,scale:E=1}){let _=e6(Z=>{window.navigator.msSaveBlob&&(Z.preventDefault(),Z.stopPropagation()),Qy=!1,Hy=0,C(A).then(Q=>qf1(Q||A,o,E,i,e,d,B).then(V=>{r?Kf1(V,n,l).then(G=>{L(Q,V,G)}):L(Q,V)}).catch(V=>{V&&console.error(V),L(Q,V)}))},[r,e,i,o,n,A,d,L,C,B,E,l]);return t7.createElement(t7.Fragment,null,t7.Children.map(t,Z=>t7.cloneElement(Z,{onClick:_})))}cX.propTypes=Nf1;var EF=cX;function Wf1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M20,3 C21.6522847,3 23,4.34771525 23,6 L23,18 C23,19.6522847 21.6522847,21 20,21 L4,21 C2.34771525,21 1,19.6522847 1,18 L1,6 C1,4.34771525 2.34771525,3 4,3 L20,3 Z M20.9999141,7.92 L12.5734623,13.8192319 C12.2291422,14.060256 11.7708578,14.060256 11.4265377,13.8192319 L2.99991414,7.921 L3,18 C3,18.5477153 3.45228475,19 4,19 L20,19 C20.5477153,19 21,18.5477153 21,18 L20.9999141,7.92 Z M20,5 L4,5 C3.61200142,5 3.27189207,5.22696691 3.10652962,5.55404305 L12,11.7793444 L20.8934704,5.55404305 C20.7281079,5.22696691 20.3879986,5 20,5 Z"})})}var TF=Wf1;function $f1({...r}){return W("svg",{fill:"none",height:"24px",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var IF=$f1;function Xf1({...r}){return W("svg",{className:"size-6",fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75",strokeLinecap:"round",strokeLinejoin:"round"})})}var FF=Xf1;function Yf1(r){let{t}=d3(),[e,i]=wt(),[o,n]=wt(!1),l=b4(),[A,d]=wt(null),L=B=>{i(B.currentTarget.getBoundingClientRect());let E=A.querySelector(`#${l}`);navigator.clipboard.writeText(E?.value).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),E?.select()};return W("div",{className:"text-grey flex items-center",ref:B=>{d(B)},children:[W("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",id:l,onFocus:()=>{A.querySelector(`#${l}`)?.select()},readOnly:!0,type:"text",...r}),W(D6,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:L,children:W(FF,{})}),W("div",{className:`bg-grey fixed rounded-md p-1 text-sm text-white ${o?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:t("input_copy_success")})]})}var Vy=Yf1;function Jf1(r,t){let e=r||"";if(t?.forEach((i,o)=>{e=e.replace(`{{${o}}}`,i)}),e.startsWith("#"))e=`${window.location.href.split("#")[0]}${e}`;else if(e.startsWith("?")||!e){let i=new URLSearchParams(window.location.search);new URLSearchParams(e).forEach((l,A)=>{i.set(A,l)}),r?.includes("{{x}}")&&r?.includes("{{y}}")&&i.delete("center"),r?.includes("{{z}}")&&i.delete("zoom");let n=i.toString();!n.startsWith("?")&&e.length&&(n=`?${n}`),e=`${window.location.href.split("?")[0]}${n}${window.location.hash}`}return e}var uX=Jf1;function tp1(){let{permalinktemplate:r,permalinkUrlSearchParams:t}=Rt();return uX(r,t)}var xA=tp1;var ep1={};function rp1({inputProps:r=ep1,...t}){let{t:e}=d3(),i=xA();return W("div",{...t,children:[W(Vy,{value:i,...r,readonly:!0}),W("p",{className:"py-2",children:e("permalink_input_hint")})]})}var PF=ht(rp1);function ip1({className:r="",...t}){let{map:e}=Rt(),{t:i}=d3(),o=xA();return W("div",{className:Pe(`flex flex-col gap-4 ${r}`),...t,children:[W(Ja,{className:"w-fit",href:`mailto:?subject=Karte&body=${o}`,children:[W(TF,{}),W("span",{children:i("share_email_send")})]}),W(EF,{map:e,children:W(Ja,{className:"w-fit",children:[W(IF,{}),W("span",{children:i("share_image_save")})]})}),W(PF,{})]})}var RF=ip1;var np1="relative h-full overflow-x-hidden overflow-y-auto text-base bg-white";function op1({hasDetails:r,hasLayerTree:t,hasPrint:e,hasSearch:i,hasShare:o}){let{isExportMenuOpen:n,isLayerTreeOpen:l,isSearchOpen:A,isShareMenuOpen:d,setIsExportMenuOpen:L,setIsLayerTreeOpen:C,setIsShareMenuOpen:B}=Rt(),{t:E}=d3();return W(_5,{children:[r&&W(bF,{}),e&&n&&W(_5,{children:[W(Wc,{onClose:()=>{L(!1)},title:E("print_menu_title")}),W(CI,{className:Pe(np1,"flex flex-col gap-4 p-4")})]}),t&&l&&W(_5,{children:[W(Wc,{onClose:()=>{C(!1)},title:E("layertree_menu_title")}),W(_I,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto px-4 py-2 text-base *:not-last:border-b",treeItemProps:{childContainerClassName:"*:not-last:border-b"}})]}),o&&d&&W(_5,{children:[W(Wc,{onClose:()=>{B(!1)},title:E("share_menu_title")}),W(RF,{className:"h-full overflow-x-hidden overflow-y-auto p-4 text-base"})]}),i&&A&&W(_5,{children:W($c,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto p-2 text-base"})})]})}var Gy=op1;var zF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},DF=t7.createContext&&t7.createContext(zF);var ap1=["attr","size","title"];function sp1(r,t){if(r==null)return{};var e=lp1(r,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(e[i]=r[i])}return e}function lp1(r,t){if(r==null)return{};var e={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(t.indexOf(i)>=0)continue;e[i]=r[i]}return e}function jy(){return jy=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},jy.apply(this,arguments)}function hX(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,i)}return e}function qy(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?hX(Object(e),!0).forEach(function(i){cp1(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):hX(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function cp1(r,t,e){return t=up1(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function up1(r){var t=hp1(r,"string");return typeof t=="symbol"?t:t+""}function hp1(r,t){if(typeof r!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function AX(r){return r&&r.map((t,e)=>t7.createElement(t.tag,qy({key:e},t.attr),AX(t.child)))}function dX(r){return t=>t7.createElement(Ap1,jy({attr:qy({},r.attr)},t),AX(r.child))}function Ap1(r){var t=e=>{var{attr:i,size:o,title:n}=r,l=sp1(r,ap1),A=o||e.size||"1em",d;return e.className&&(d=e.className),r.className&&(d=(d?d+" ":"")+r.className),t7.createElement("svg",jy({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,l,{className:d,style:qy(qy({color:r.color||e.color},e.style),r.style),height:A,width:A,xmlns:"http://www.w3.org/2000/svg"}),n&&t7.createElement("title",null,n),r.children)};return DF!==void 0?t7.createElement(DF.Consumer,null,e=>t(e)):t(zF)}function fX(r){return dX({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 28 4.46875 L 26.59375 5.09375 L 19.96875 7.9375 L 12.34375 5.0625 L 11.96875 4.9375 L 11.59375 5.09375 L 4.59375 8.09375 L 4 8.34375 L 4 27.53125 L 5.40625 26.90625 L 12.03125 24.0625 L 19.65625 26.9375 L 20.03125 27.0625 L 20.40625 26.90625 L 27.40625 23.90625 L 28 23.65625 Z M 13 7.4375 L 19 9.6875 L 19 24.5625 L 13 22.3125 Z M 11 7.5 L 11 22.34375 L 6 24.5 L 6 9.65625 Z M 26 7.5 L 26 22.34375 L 21 24.5 L 21 9.65625 Z"},child:[]}]})(r)}function dp1({className:r,...t}){let{mainlink:e,mainlinktitle:i,map:o}=Rt(),[n,l]=wt(0),[A,d]=wt(0),[L,C]=wt(0);tt(()=>{let E=Z=>{let Q=Z.map?.getView()?.getCenter();Q&&(l(Q[0]),d(Q[1]));let V=Z.map?.getView()?.getZoom();V&&C(V)};E({map:o});let _=o?.on("moveend",E);return()=>{lr(_)}},[o]);let B=ge(()=>e?e.replace("{{x}}",n.toFixed(4)).replace("{{y}}",A.toFixed(4)).replace("{{z}}",L.toFixed(2)):"#",[e,n,A,L]);return W(D6,{className:Pe("rounded-xl border-3 border-white",r),href:B,target:"_blank",theme:"primary",title:i,...t,children:W(fX,{})})}var kF=dp1;var OF=g9({poisLayer:null,sellingPointsLayer:null,setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),fp1=()=>{let r=J9(OF);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},xl=fp1;function pp1(r){let{baseLayer:t,map:e}=Rt(),{setPoisLayer:i}=xl(),o=ge(()=>t?new z6({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:Et.pois,visible:!1,...r||{}}):null,[t,r]);return tt(()=>{i(o)},[o,i]),tt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var ZF=ht(pp1);var Lp1=new L0({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Cp1(){let{baseLayer:r}=Rt(),{selectedFeature:t}=Rt(),e=ge(()=>r?.mapLibreMap,[r?.mapLibreMap]);return tt(()=>{let i=t?.get("vectorTileFeature");t?.set("selected",!0);let o=e?.getSource(HO);if(t){let n=t.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(e?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("vectorTileFeature")?.source?.split("_")?.pop()||"scooter"),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Lp1.writeFeatureObject(n);o?.setData(l)}catch{}}return()=>{o?.setData(VO),t?.set("selected",!1),i&&e?.setFeatureState(i,{hover:!1})}},[e,t]),null}var NF=Cp1;function gp1(r){let{baseLayer:t,map:e}=Rt(),{setSellingPointsLayer:i}=xl(),o=_A(Et.verkaufsstellen),n=ge(()=>t?new z6({layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:Et.verkaufsstellen,...r||{},layerTreeTitle:W("div",{className:"flex items-center justify-between gap-2",children:[o?.title,W("span",{className:"flex items-center",children:[W(rL,{}),W(iL,{}),W(nL,{})]})]}),title:o?.title}):null,[t,r,o]);return tt(()=>{i(n)},[n,i]),tt(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var UF=ht(gp1);var pX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768219" viewBox="0 0 25.64767456 25.64768219">%0A <g id="rvf_base">%0A <g id="rvf_shared_bike">%0A <g>%0A <path d="M12.82368469,25.14785767C6.02827454,25.14785767.49995422,19.61904907.49995422,12.82363892S6.02827454.49990845,12.82368469.49990845s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371262,11.82383728,11.82384109,0,6.53011703-5.2937088,11.82384109-11.82383728,11.82384109-6.53012085,0-11.82383728-5.29372406-11.82383728-11.82384109C1,6.29371262,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.7527504,0,12.82384109c0,7.07108688,5.75274658,12.82384109,12.82383728,12.82384109s12.82383728-5.75275421,12.82383728-12.82384109C25.64767456,5.7527504,19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-rad-2px" data-name="verkehrstraeger/verkehrstraeger-rad-2px">%0A <path id="Fill-1" d="M9.25954019,11.68411861h1.42560034c.39346563,0,.7128-.31933437.7128-.7128s-.31933437-.71280017-.7128-.71280017h-1.42560034c-.01354324,0-.02494789.00712816-.03777838.00784091-.37493282.02067123-.67502162.32503686-.67502162.70495926,0,.39346563.31933437.7128.7128.7128" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.81325035,18.40129001c-.48076172,0-.95668945-.11733398-1.41547852-.34936523-.37792969-.19160156-.70883789-.45395508-.98349609-.77958984-.49350586-.5840332-.75454102-1.28408203-.75454102-2.02456055,0-.88989258.36870117-1.71518555,1.03886719-2.32426758l-.5550293-1.04501953-3.77006836,2.11464844-.50756836.29267578c.07514648.39506836.12172852.68071289.12172852.96196289,0,1.73891602-1.41459961,3.15351563-3.15351563,3.15351563-.11953125,0-.23422852-.01625977-.34848633-.03251953-1.62817383-.2175293-2.8050293-1.55522461-2.8050293-3.12099609,0-.41660156.08129883-.82397461.24169922-1.20981445.49174805-1.18081055,1.63476562-1.94370117,2.91181641-1.94370117.48032227,0,.95712891.11777344,1.41591797.35068359.34672852.1762207.65039062.40605469.90263672.6824707l.56162109-.27597656,3.69667969-2.13398438-.82353516-1.53413086c-.04042969-.07119141-.05844727-.15029297-.06987305-.21137695l-.01582031-.09667969c-.03999023-.32739258.16567383-.63632812.478125-.71938477l1.37197266-.36782227c.06064453-.01669922.11821289-.02460938.1753418-.02460938.29707031,0,.55898437.20083008.63588867.48867188.05976563.22280273-.0074707.45834961-.17973633.62973633-.09404297.09404297-.18500977.15029297-.28608398.17709961l-.50317383.13491211.65302734,1.26650391,1.0125,1.75341797c.39287109-.07382813.67631836-.11953125.95361328-.11953125,1.74331055.00703125,3.15351563,1.42075195,3.15351563,3.15351563,0,.03251953-.00439453.0637207-.00922852.09448242-.10283203,1.75166016-1.47963867,3.0590332-3.14428711,3.0590332ZM16.36173667,14.13551853c-.25136719.32651367-.38452148.71103516-.38452148,1.11225586,0,.51943359.22719727,1.01865234.62314453,1.36977539.33969727.30058594.77036133.46625977,1.21289062.46625977.20566406,0,.41835938-.03955078.63149414-.11821289l.5203125-.29970703c.43769531-.35771484.68422852-.87319336.68422852-1.41811523,0-.59545898-.29355469-1.15708008-.78530273-1.50292969-.31245117-.21796875-.67587891-.33310547-1.05073242-.33310547-.03691406,0-.07250977.00483398-.10854492.00966797l-.07954102.01098633-.01801758.07646484.7668457,1.32890625c.12612305.21796875.11381836.48603516-.03164063.69916992-.06108398.08964844-.12963867.15512695-.20917969.20039063-.08085938.04746094-.17226563.07382813-.27905273.08085937h-.00703125c-.28740234,0-.49790039-.12041016-.61435547-.32167969l-.82177734-1.42470703-.04921875.0637207ZM7.83414878,13.41173923c-1.0125,0-1.83603516.82353516-1.83603516,1.83603516s.82353516,1.83603516,1.83603516,1.83603516,1.83603516-.82353516,1.83603516-1.83603516c0-.03911133-.00527344-.07734375-.01054687-.11557617l-.01054687-.07954102-.0769043-.01977539-1.50380859.86879883c-.10063477.05756836-.21445312.08833008-.32915039.08833008-.23510742,0-.45351563-.12612305-.57128906-.32958984-.18149414-.31420898-.07338867-.71850586.24169922-.90087891l1.52358398-.8793457c-.31948242-.3375-.70136719-.46845703-1.09907227-.46845703Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function vp1({...r}){return W("img",{alt:"Bicycle",src:pX,...r})}var Ky=vp1;var LX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64768982" viewBox="0 0 25.64767838 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_car">%0A <g>%0A <path d="M12.82391739,25.14767456C6.02850723,25.14767456.50018692,19.61935425.50018692,12.82394409S6.02850723.50021362,12.82391739.50021362s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.29371643,11.82385254-11.82383728,11.82385254-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82385254C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82385254,12.82384109,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-auto-2px" data-name="verkehrstraeger/verkehrstraeger-auto-2px">%0A <path id="Fill-1" d="M16.71183851,14.25236615c.35769603,0,.648.29030397.648.648s-.29030397.648-.648.648-.648-.29030397-.648-.648.29030397-.648.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M8.93583851,14.25236615c-.35769603,0-.648.29030397-.648.648s.29030397.648.648.648.648-.29030397.648-.648-.29030397-.648-.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-11" d="M18.00783851,13.60436615v3.24c0,.35769603-.29030397.648-.648.648h-1.26943176v-.65059181c0-.35316005-.28382444-.6382804-.63504032-.64540819h-.03952792v-.00259181h-5.15289609c-.35769603,0-.648.29030397-.648.648v.65059181h-1.32710391c-.35769603,0-.648-.29030397-.648-.648v-3.24l.28187996-.648.27021604-.6194879.743904.37195192.221616.110808.1095121.04859988c.14968797.0583201.30909584.0881281.46979994.0881281h6.17414392l.12052792-.00583189c.15940757-.01490416.31492866-.05896805.45878474-.13089609l.22161539-.110808.75751241-.37843207.26438338.62596805.27410422.648ZM8.93583851,10.62745424l.50932785-1.16964004c.10303226-.23652001.33631203-.38944805.59421619-.38944805h5.62140012c.26049566,0,.49507196.15552001.59680769.39592804l.45424814,1.074384.25142432.5955121-.25142432.12571185-.80092804.40046402h-6.17414392l-.80092804-.40046402-.22615199-.11275186.22615199-.51969603ZM19.30383851,11.01236615h-.9849603l-.27345534-.648-.59421588-1.40486399c-.30391191-.719928-1.00958437-1.18713601-1.79042432-1.18713601h-5.62140012c-.77371216,0-1.47355211.458784-1.782,1.16769603l-.62013601,1.42430397-.28252807.648h-1.01087996c-.35769599,0-.648.29030397-.648.648s.29030401.648.648.648h.44647201l-.28188004.648-.05702396.13089578c-.07063198.16264826-.10756801.33890446-.10756801.51710422v3.24c0,1.07373573.87026396,1.944,1.944,1.944h1.32710391l.09655211-.00323946c.6706799-.04989702,1.1994482-.60976799,1.19879994-1.29600062h3.88346402c.00064826.71927978.58060794,1.29924007,1.29664826,1.29924007h1.26943176c1.07373573,0,1.944-.87026427,1.944-1.944v-3.24c0-.17366377-.03499255-.34473573-.10238461-.50479218l-.06026303-.14320782-.27410422-.648h.43675186c.35769603,0,.648-.29030397.648-.648s-.29030397-.648-.648-.648h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function _p1({...r}){return W("img",{alt:"Car",src:LX,...r})}var pL=_p1;var CX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="28.01245499" height="28.01245499" viewBox="0 0 28.01245499 28.01245499">%0A <g id="rvf_base">%0A <g id="rvf_shared_cargo_bike">%0A <g>%0A <path d="M14.0060463,27.51237106C6.55878067,27.51237106.50018692,21.45328903.50018692,14.00602341S6.55878067.50016403,14.0060463.50016403s13.50634766,6.05859375,13.50634766,13.50585938-6.05908203,13.50634766-13.50634766,13.50634766Z" style="fill: %2300973b;"/>%0A <path d="M14.00622177,1c7.18314362,0,13.00623322,5.82308197,13.00623322,13.00622177,0,7.18314362-5.8230896,13.00623322-13.00623322,13.00623322-7.1831398,0-13.00622177-5.8230896-13.00622177-13.00623322C1,6.82308197,6.82308197,1,14.00622177,1M14.00622177,0C6.28316116,0,0,6.28316116,0,14.00622177s6.28316116,14.00623322,14.00622177,14.00623322,14.00623322-6.28317261,14.00623322-14.00623322S21.72928238,0,14.00622177,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-9">%0A <path id="Fill-1" d="M6.784509,13.90291161h1.4256c.35354867,0,.6343919-.26231042.68999035-.60017761.00641507-.03777838.02280965-.07270543.02280965-.11262239,0-.22880887-.11476098-.42269035-.28226873-.55313265-.11333548-.08838725-.24876718-.14754961-.40273204-.15396486-.00926641-.00071275-.01782007-.00570233-.02779922-.00570233h-1.4256c-.39346572,0-.71280008.3193342-.71280008.71279983,0,.04561929.01781998.08482317.02566081.12830422.06272636.33002627.33929277.58449578.68713928.58449578" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.90206812,20.62062811c-.64204102,0-1.24848633-.24873047-1.70771484-.70048828-.26015625-.25532227-.4574707-.57041016-.58623047-.93603516-.09887695-.28168945-.14677734-.54492188-.14677734-.80419922,0-.24741211.04526367-.50141602.13798828-.77695313.29707031-.87890625,1.05161133-1.50380859,1.96962891-1.63037109.14238281-.02021484.23554687-.03339844.33310547-.03339844.53833008,0,1.0546875.18061523,1.49282227.52294922.60249023.46889648.94790039,1.16806641.94790039,1.91777344,0,.20170898-.03164062.41044922-.10019531.65610352-.29487305,1.05073242-1.25727539,1.78461914-2.34052734,1.78461914ZM18.90206812,17.05666327c-.61918945,0-1.12324219.50405273-1.12324219,1.12324219s.50405273,1.12324219,1.12324219,1.12324219,1.12324219-.50405273,1.12324219-1.12324219-.50405273-1.12324219-1.12324219-1.12324219Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M8.31652125,20.68303045c-.21401367,0-.43681641-.02416992-.66225586-.07250977-1.44360352-.30893555-2.49125977-1.60488281-2.49125977-3.08144531,0-.89033203.37001953-1.71694336,1.04238281-2.3277832.24609375-.22368164.51767578-.40429688.80771484-.53657227.36694336-.16743164.76420898-.26015625,1.18081055-.27597656l.12260742-.01318359c.44208984,0,.8784668.09624023,1.29682617.28564453.62270508.28168945,1.1465332.77739258,1.47612305,1.39614258l.56645508-.10810547-.68686523-2.77338867-.45-1.67827148-.18457031-.00615234-.58007812.15556641c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20083008-.63588867-.48867188-.09404297-.35068359.11469727-.71279297.46582031-.80683594l1.37680664-.36914062c.05537109-.01494141.1125-.02241211.17006836-.02241211.03164063,0,.06240234.00219727.09316406.0065918.21269531.02680664.39946289.16611328.4996582.3730957l.05493164.10854492.15864258.59458008,1.04414063.03999023h7.87324219l.10854492.02329102c.31904297.05493164.55019531.32211914.55019531.63544922l-.02241211.11557617c.00483398.06416016.00703125.13974609-.01274414.21577148l-.65522461,2.44379883c-.04174805.15512695-.14326172.29047852-.28564453.38144531-.12832031.07426758-.18061523.1059082-.24169922.12260742l-6.75087891,1.80922852.26323242,1.19223633c.09404297.35068359-.11469727.71235352-.46582031.80639648-.05625.01538086-.11381836.02285156-.17138672.02285156-.29707031,0-.55854492-.20083008-.63544922-.48867188l-.30146484-1.12543945-.56557617.09492188-.04614258.01230469.01274414.10283203c.00571289,1.22124023-.64204102,2.2855957-1.68442383,2.83666992-.47285156.24960937-.96503906.37617188-1.46337891.37617188ZM8.31652125,15.69304022c-.77080078,0-1.46293945.49130859-1.7230957,1.22299805-.07470703.20830078-.11293945.4144043-.11293945.61303711,0,.53085937.23686523,1.03754883.64951172,1.39042969.34145508.29179687.75146484.44604492,1.18652344.44604492.41088867,0,.80419922-.13974609,1.13686523-.40473633.36474609-.29003906.60336914-.70180664.67236328-1.1597168l.01186523-.08129883-1.43964844.38583984c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20126953-.63588867-.48911133-.04570312-.16962891-.02241211-.34716797.06591797-.4996582.08789062-.15249023.22983398-.26147461.39990234-.30673828l1.43701172-.38496094-.05229492-.06459961c-.29179687-.36035156-.70224609-.59589844-1.15620117-.66357422-.10107422-.01494141-.18325195-.02680664-.26894531-.02680664ZM12.96637476,15.54186834l2.89467773-.71938477,3.58110352-.95976562.2043457-.65874023.19116211-.71279297-1.70947266-.06811523h-5.9972168l.83540039,3.11879883Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function wp1({...r}){return W("img",{alt:"Cargo bike",src:CX,...r})}var Wy=wp1;var gX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768982" viewBox="0 0 25.64767456 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_ride">%0A <g>%0A <path d="M12.82368469,25.14767456C6.02827454,25.14767456.49995422,19.61935425.49995422,12.82394409S6.02827454.50021362,12.82368469.50021362s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32373047-12.32421875,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.2937088,11.82385254-11.82383728,11.82385254-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82385254C1,6.29371643,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82385254,12.82383728,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M18.43790805,8.78152597l-4.85659507.00731315c-.24399321.03723057-.39025617.1954605-.53518946.35369043-.390921.29319075-.845001.44809652-1.31437214.44809652-.36698706,0-.73064996-.09839508-1.0530933-.28521277-.03590091-.02193944-.08576328-.06049968-.21474062-.16487824-.27058647-.21540545-.42017359-.33374548-.68012276-.3530256-.19280117,0-.51590935.06382384-.63424938.0924116-.92611046.23202624-1.68268886,1.08899421-1.83958912,2.08823615.00265933.47402495-.01728562.97131901-.04055473,1.54440388-.03723057.90948967-.07579081,1.85022643.00265933,2.71317789.0797798.88289641.73663345,1.52445893,1.5616895,1.52445893.06781283,0,.13562565-.00398899.20277365-.01329663l.13703842-.04587338.01786735-.00241001v4.35040888c0,.49662923.41684943,1.05774713.80644077,1.26916358.25463051.13828498.5192335.20875713.78716065.20875713.33706964,0,.64422185-.11501587.78250683-.29319075l.06116451-.12166419.1283125.09706542c.27191614.20543297.59502431.31380053.93541811.31380053.83170437,0,1.51315679-.64754601,1.58628827-1.50783814l-.00531865-8.71328336c.02127461-.20277365.15025195-.33175098.35502009-.35236076.26726232-.02592843.54383227-.03523608.82572089-.03523608.3782892,0,.7672157.01662079,1.24190549.03723057.37297055.01595596.7439466.03124709,1.1076095.03124709.27590513,0,.54782126-.00797798.81042976-.03191192.93541811-.07911496,1.42207486-.85031966,1.41941553-1.57033231-.00398899-.70738086-.50460721-1.50584365-1.59559592-1.5889476ZM17.83158161,10.72615849c-.36166841,0-.72799064-.01196697-1.14949389-.02592843-.39358033-.01396146-.78716065-.0272581-1.17409266-.0272581-.323773,0-.64222736.00930764-.95403339.03590091-.82705055.06980732-1.4207452.65951298-1.51315679,1.50584365l.00066483,8.76846439c-.07446114.26859198-.26393816.29784457-.34238829.29784457-.14626296,0-.32643233-.09972474-.35036627-.38161336-.06714799-.781842-.03457124-1.67803504-.00531865-2.48181648.02792293-.76389154.05651069-1.55304669.00664832-2.32092723-.03457124-.34837177-.2752403-.58239251-.59768364-.58239251-.34770694,0-.60965061.26925681-.63624387.65618882l.00797798,4.82069416c-.0505272.17950454-.17950454.28654243-.34438279.28654243-.19745499,0-.33241582-.11966969-.3530256-.30981154l.00398899-8.79705215-.05917002-.13629048c-.11634554-.22005927-.33308065-.35634975-.56510689-.35634975-.31047637,0-.55646408.23269107-.61230993.58172768-.03390641.47867877-.01529113.98195632.00332416,1.48523386.01928012.52056317.03723057,1.01253857-.00332416,1.48257454-.01728562.19811983-.18016937.28654243-.33441031.28654243-.09706542,0-.3257675-.04121956-.36033874-.42615708-.07113698-.82838021-.03124709-1.75515551.00731315-2.65134855.02127461-.50128305.04188439-.99458812.04321406-1.43736599.02260428-.31380053.64355702-.95270373,1.0171924-.98461565.02925259.01728562.07246665.04919754.19944949.14626296.13629048.10238407.28321828.2100868.36100358.25330085.50061822.27457546,1.03780218.41352527,1.59626075.41352527.77519368,0,1.54839287-.27856445,2.21787832-.79912762.19014185.00598348.38294302.00797798.57574419.00797798.45939866,0,.92544563-.01329663,1.46129993-.02858776.43546472-.01196697.87092944-.02393394,1.3010755-.02393394.34637728,0,.69076007.00797798,1.02849453.02925259.34238829.02193944.48732159.19014185.5066017.32643233.02260428.17219139-.13230149.31380053-.23202624.36432773-.2459877.01662079-.49795889.02193944-.75125974.02193944Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M11.67922969,8.57077434c1.35093788,0,2.45056939-1.09963152,2.45056939-2.45123423,0-1.35093788-1.09963152-2.45056939-2.45056939-2.45056939s-2.45056939,1.09963152-2.45056939,2.45056939c0,1.35160271,1.09963152,2.45123423,2.45056939,2.45123423ZM11.67922969,4.92882666c.65685365,0,1.19071345.5338598,1.19071345,1.19071345s-.5338598,1.19137828-1.19071345,1.19137828-1.19071345-.53452463-1.19071345-1.19137828.5338598-1.19071345,1.19071345-1.19071345Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Mp1({...r}){return W("img",{alt:"Ride",src:gX,...r})}var QF=Mp1;var mX='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_shared_scooter">%0A <g>%0A <path d="M12.82391739,25.14752197C6.02850723,25.14752197.50018692,19.61920166.50018692,12.8237915S6.02850723.50006104,12.82391739.50006104s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82384491,0,6.53012085-5.29371643,11.82382965-11.82383728,11.82382965-6.53012848,0-11.82384109-5.2937088-11.82384109-11.82382965C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75275421,0,12.82384491c0,7.07108307,5.7527504,12.82382965,12.82384109,12.82382965s12.82383728-5.75274658,12.82383728-12.82382965C25.64767838,5.75275421,19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-5">%0A <path d="M18.64085918,18.24216413l-.93076172-3.47475586c-.09360352-.34848633-.45087891-.55722656-.80288086-.46274414-.34892578.09360352-.55634766.45395508-.46274414.80244141l.93076172,3.47387695c.04482422.16918945.15336914.31025391.30498047.39770508.10107422.05844727.21313477.08833008.32651367.08833008.05712891,0,.11425781-.0074707.17050781-.02285156.16918945-.04482422.31025391-.15336914.39814453-.30498047.08745117-.15161133.11074219-.32827148.06547852-.49702148Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.1513084,8.25778913c-.07602539-.28608398-.33618164-.48603516-.63237305-.48603516-.05712891,0-.11425781.0074707-.22719727.03779297l-4.44902344,1.19179687c-.34892578.09360352-.55722656.45351563-.46362305.80244141.07558594.28300781.33530273.48076172.63105469.48076172.04526367,0,.0909668-.00439453.17138672-.01757812l1.80791016-.47241211.4855957,1.81186523.1340332.41748047-1.98413086,3.43608398-.2746582.54711914h-2.43676758c-.04350586-.17446289-.11030273-.35244141-.2034668-.54316406-.08393555-.16918945-.18764648-.33178711-.30805664-.48383789-.51943359-.65390625-1.2862793-1.02919922-2.10454102-1.02919922-1.48666992,0-2.69648438,1.20981445-2.69648438,2.69648437s1.20981445,2.69648438,2.69648438,2.69648438c1.01206055,0,1.93051758-.56777344,2.39589844-1.48227539.10458984-.20698242.17797852-.40341797.15380859-.54404297h2.69604492c.25927734,0,.59238281-.12172852.72685547-.35375977l1.81186523-3.13857422.77651367-1.37592773c.08745117-.15117187.11118164-.32783203.06591797-.49746094l-.67192383-2.50751953,1.43569336-.38452148c.16918945-.04482422.31025391-.15336914.39770508-.30498047.08789062-.15161133.11118164-.32827148.06547852-.49702148ZM6.91141582,16.64738874c0-.3234375.11381836-.63017578.32915039-.88637695.06416016-.0769043.13710938-.1472168.21533203-.20786133.24785156-.19116211.53920898-.29179687.84155273-.29179687.3019043,0,.59326172.10063477.84155273.29179687.16391602.1265625.29663086.28212891.38759766.45395508h-1.17509766c-.36123047,0-.65522461.29399414-.65522461.65522461s.29399414.65522461.65522461.65522461h1.15576172c-.0984375.17753906-.23642578.33266602-.40297852.45307617-.24038086.17182617-.51943359.26279297-.80683594.26279297-.2878418,0-.56689453-.0909668-.80639648-.26279297-.08789062-.0637207-.17006836-.14106445-.25048828-.23642578-.21533203-.25664062-.32915039-.56337891-.32915039-.88681641Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Sp1({...r}){return W("img",{alt:"Scooter",src:mX,...r})}var HF=Sp1;var Ep1=(r,t=Xa)=>`https://api.mobidata-bw.de/geoserver/MobiData-BW/${r}/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:${r}&outputFormat=application/json&bbox=${t.toString()},EPSG:4326`,VF=async(r,t,e=Xa)=>{let i=Ep1(r,e),n=await(await fetch(i,{signal:t.signal})).json();return n?.features.forEach(l=>{let A=l.properties.vehicle_id;l.properties.id=A||l.properties.station_id,l.properties.provider_name=Tg[l.properties.feed_id];let L=l.properties.form_factor||r.split("_").pop();if(L==="bicycle"?L="bike":L==="cargo_bicycle"&&(L="cargo_bike"),L==="stations"){let C=l.properties;C.num_bicycles_available!==null?(L="bike",l.properties.num_vehicles_available=C.num_bicycles_available):C.num_cars_available!==null?(L="car",l.properties.num_vehicles_available=C.num_cars_available):C.num_cargo_bicycles_available!==null&&(L="cargo_bike",l.properties.num_vehicles_available=C.num_cargo_bicycles_available)}else l.properties.num_vehicles_available=1;l.properties.mot=L,l.properties.display_num_vehicles_available=!0}),n};var Tp1=async(r,t,e=Xa)=>({features:(await VF(r,t,e)).features,type:"FeatureCollection"});function Ip1(r){let{baseLayer:t,map:e}=Rt(),{setSharedMobilityLayerGroup:i}=xl(),{t:o}=d3(),[n,l]=wt(),[A,d]=wt(),[L,C]=wt(),[B,E]=wt(),[_,Z]=wt(),Q=ge(()=>t?.mapLibreMap,[t?.mapLibreMap]);tt(()=>{if(!Q?.style||!n)return;Q.getSource(OO)?.setData(n)},[n,Q]),tt(()=>{if(!Q?.style||!A)return;Q.getSource(ZO)?.setData(A)},[Q,A]),tt(()=>{if(!Q?.style||!L)return;Q.getSource(NO)?.setData(L)},[Q,L]),tt(()=>{if(!Q?.style||!B)return;Q.getSource(UO)?.setData(B)},[Q,B]),tt(()=>{if(!Q?.style||!_)return;Q.getSource(QO)?.setData(_)},[Q,_]);let V=ge(()=>{if(!t)return null;let J=new z6({layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Ky,{})]}),maplibreLayer:t,name:Et.bikeFrelo,styleLayersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="bike.frelo"}),i1=new z6({layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Ky,{})]}),maplibreLayer:t,name:Et.bikeOthers,styleLayersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="bike.other"}),r1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="cargo_bike.frelo",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Wy,{})]}),maplibreLayer:t,name:Et.cargobikeFrelo}),_1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="cargo_bike.other",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(Wy,{})]}),maplibreLayer:t,name:Et.cargobikeOthers}),b1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.grueneflotte",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carGrf}),M1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.naturenergy",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carNatur}),g1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="car.other",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(pL,{})]}),maplibreLayer:t,name:Et.carOthers}),p1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="scooter",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(HF,{})]}),maplibreLayer:t,name:Et.eroller}),R1=new z6({layersFilter:({metadata:a1})=>a1?.["rvf.filter"]==="hitchhiking",layerTreeTitle:a1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(a1)||a1,W(QF,{})]}),maplibreLayer:t,name:Et.mitfahrpunkte});return new Go({layers:[J,i1,r1,_1,b1,M1,g1,p1,R1],name:Et.sharedMobility,...r})},[t,r,o]),G=e6(()=>{if(e?.getView()?.getZoom()<15.5||!V.getVisible())return;let J=new AbortController,i1=Ra(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let _1=await Tp1(DO,J,i1);l(_1);let b1=await VF(kO,J,i1),M1={features:[],type:"FeatureCollection"},g1={features:[],type:"FeatureCollection"},p1={features:[],type:"FeatureCollection"},R1={features:[],type:"FeatureCollection"};b1.features.forEach(a1=>{a1.properties.form_factor===GO?M1.features.push(a1):a1.properties.form_factor===qO?g1.features.push(a1):a1.properties.form_factor===jO?p1.features.push(a1):a1.properties.form_factor===KO&&R1.features.push(a1)}),d(M1),C(g1),E(p1),Z(R1)})(),()=>{J.abort()}},[e,V]);return tt(()=>{let J=e?.on("moveend",()=>G()),i1=e?.on(`change:${Ko}`,b1=>{b1.target.get(Ko)||G()}),r1=e?.once("rendercomplete",G),_1=V?.on("change:visible",b1=>{b1.target.getVisible()&&G()});return()=>{lr([J,i1,r1,_1])}},[e,G,Q,V]),tt(()=>{let J=window.setInterval(()=>{G()},6e4);return()=>{window.clearInterval(J)}},[V,G]),tt(()=>{i(V)},[V,i]),tt(()=>{if(!(!e||!V))return e.addLayer(V),()=>{e.removeLayer(V)}},[e,V]),null}var GF=ht(Ip1);function Fp1(r){let{baseLayer:t,map:e}=Rt(),{setTarifZonenLayer:i}=xl(),o=ge(()=>t?new z6({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:t,name:Et.tarifzonen,...r||{}}):null,[t,r]);return tt(()=>{i(o)},[o,i]),tt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var jF=ht(Fp1);var vX=`.ol-scale-line {
1546
1546
  position:relative;
1547
1547
  left: unset;
1548
1548
  bottom: unset;
1549
1549
  background:unset;
1550
- }`;function Pp1({options:r,...t}){let{map:e}=Rt(),[i,o]=wt(),n=ge(()=>i?new gZ({target:i,...r}):null,[r,i]);return tt(()=>{if(!(!e||!n))return e.addControl(n),()=>{e&&n&&e.removeControl(n)}},[e,n]),W("div",{ref:l=>{o(l)},...t,children:W("style",{children:vX})})}var qF=Pp1;function Rp1({...r}){let{isSearchOpen:t,setIsSearchOpen:e}=Rt(),{t:i}=d3(),o=e6(()=>{e(!t)},[t,e]);return W(D6,{title:i("search_menu_title"),...r,onClick:o,selected:t,children:W(dL,{})})}var KF=ht(Rp1);function zp1({...r}){return W("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var WF=zp1;function Dp1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=Rt(),{t:i}=d3(),o=e6(()=>{e(!t)},[t,e]);return W(D6,{title:i("share_menu_title"),...r,onClick:o,selected:t,children:W(WF,{})})}var $F=ht(Dp1);function kp1(r){let{baseLayer:t,map:e,setStationsLayer:i}=Rt(),o=ge(()=>t?new z6({layersFilter:({metadata:n})=>n?.["tralis.variable"]==="station"||n?.["general.filter"]==="stations",maplibreLayer:t,name:Bg,...r||{}}):null,[t,r]);return tt(()=>{if(!(!e||!o))return e.addLayer(o),i(o),()=>{e.removeLayer(o)}},[e,i,o]),null}var yX=ht(kp1);var Op1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations",minZoom:10});function Zp1(r){return W(yX,{...Op1,...r})}var wA=ht(Zp1);function Np1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var XF=Np1;function Up1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var YF=Up1;function Qp1(){let{map:r}=Rt(),[t,e]=wt(!1),[i,o]=wt(!1),{t:n}=d3(),l=e6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L+1)},[r]),A=e6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L-1)},[r]);return tt(()=>{let d=r?.on("moveend",()=>{let L=r.getView(),C=L.getZoom(),B=L.getMaxZoom(),E=L.getMinZoom();B&&C===Number(B)?e(!0):e(!1),E&&C===Number(E)?o(!0):o(!1)});return()=>{lr(d)}},[r]),W(_5,{children:[W(D6,{disabled:t,onClick:l,title:n("zoomin"),children:W(YF,{})}),W(D6,{disabled:i,onClick:A,title:n("zoomout"),children:W(XF,{})})]})}var JF=ht(Qp1);var _X={style:{width:"calc(100% - 60px)"}},Hp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations"});function Vp1({className:r,...t}){let{hasDetails:e,hasGeolocation:i,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:A,hasShare:d,hasToolbar:L,isEmbed:C,isOverlayOpen:B,isSearchOpen:E,mainlink:_}=Rt();return W("div",{className:Pe("relative flex size-full flex-col text-base @lg/main:flex-row-reverse",r),...t,children:[W(NF,{}),W(wA,{minZoom:10,...Hp1}),W(jF,{}),W(UF,{}),W(ZF,{}),W(GF,{}),W(xB,{className:"relative flex-1 overflow-visible",children:[C&&W(LB,{}),_&&W(kF,{className:"absolute inset-x-2 bottom-8 z-10"}),W("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[W(qF,{className:"bg-slate-50/70"}),W(Dg,{className:"pointer-events-auto bg-slate-50/70"})]}),W("div",{className:"absolute top-2 right-2 z-10 flex",children:i&&W(kg,{title:"Geolokalisierung"})}),W("div",{className:"absolute right-2 bottom-10 z-10 flex flex-col justify-between gap-2",children:W(JF,{})}),!L&&A&&W("div",{className:Pe("absolute top-2 right-2 left-2 z-10 max-w-96",B&&"@lg:left-68"),children:W($c,{})})]}),W("div",{className:"pointer-events-none absolute top-2 bottom-2 left-2 z-10 flex flex-col gap-2",children:[L&&W("div",{className:"pointer-events-none relative z-10 w-fit rounded-2xl bg-black/10 p-0 backdrop-blur-sm *:pointer-events-auto",children:[A&&W("div",{className:Pe("absolute top-12 left-0 w-0 p-0 opacity-0 transition-all @sm:top-0 @sm:left-[calc(100%-43px)] @md:left-[calc(100%-47px)]",E?"w-64 opacity-100":""),children:W($c,{className:"border-grey @container m-0 h-[40px] rounded-2xl border p-2 px-4 text-base @sm/main:h-[44px] @sm/main:rounded-l-none @sm/main:rounded-r-2xl @md/main:h-[48px]",inputClassName:"h-6 text-base",inputContainerClassName:"border-none",resultClassName:"text-base **:hover:cursor-pointer hover:text-red-500 p-2",resultsContainerClassName:"@container rounded-b-2xl max-h-[200px] overflow-y-auto border border-grey border-t-0 ",withResultsClassName:"text-base !rounded-b-none"})}),W("div",{className:Pe("border-grey relative flex gap-[1px] overflow-hidden rounded-2xl border @sm/main:h-[44px] @md/main:h-[48px]","*:size-[38px] *:rounded-none *:border-none *:@sm/main:size-[42px] *:@md/main:!size-[46px]","*:first:!rounded-l-2xl","*:last:!rounded-r-2xl",E?"@sm:rounded-r-none @sm:border-r-0 @sm:*:last:!rounded-r-none @sm:*:last:border-r-0":""),children:[n&&W(gB,{}),d&&W($F,{}),o&&W(_B,{}),A&&W(KF,{})]})]}),W("div",{className:Pe("pointer-events-none flex w-0 flex-1 flex-col overflow-hidden rounded-2xl",B?"@lg:min-w-[320px]":"p-0"),style:{containerType:"normal"},children:W(Zg,{className:"border-grey @container/overlay pointer-events-auto relative hidden flex-col overflow-hidden rounded-2xl border bg-white text-base shadow-lg @lg:flex",ScrollableHandlerProps:_X,children:W(Gy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})})]}),W(Zg,{className:B?"absolute bottom-0 z-20 flex max-h-[70%] min-h-[75px] w-full flex-col border-t bg-white @lg:hidden":"@lg:hidden",ScrollableHandlerProps:_X,children:W(Gy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})]})}var $y=ht(Vp1);var Gp1=(r,t)=>{let e=t?.getView()?.getZoom(),i=r.get("minZoom"),o=r.get("maxZoom");return i>e||e>o};function jp1(r){let{apikey:t,baseLayer:e,map:i,mapsetplanid:o,mapsettags:n,mapsettenants:l,mapsettimestamp:A,mapseturl:d,setMapsetLayer:L}=Rt(),C=ge(()=>!e||!i?null:new ZM({apiKey:t,name:Eg,planId:o??void 0,tags:n?.split(",").map(B=>B.trim()),tenants:l?.split(",").map(B=>B.trim()),timestamp:A,url:d,...r||{}}),[e,i,t,d,o,n,l,A,r]);return tt(()=>{L?.(C)},[C,L,i]),tt(()=>{if(!(!i||!C))return i.addLayer(C),()=>{i.removeLayer(C)}},[i,C]),tt(()=>{let B=null;return C&&(B=C.on("updatefeatures",()=>{let E=C.getSource()?.getFeatures();E?.length&&E.forEach(_=>{let Z=_.getStyleFunction();Z&&_.setStyle((Q,V)=>Gp1(Q,C.getMapInternal())?null:Z(_,V))})})),()=>{lr(B)}},[C]),null}var tP=ht(jp1);function qp1(r){let{apikey:t,baseLayer:e,map:i,notificationat:o,notificationtenant:n,notificationurl:l,previewNotifications:A,setNotificationsLayer:d}=Rt(),L=ge(()=>{if(!e)return null;let C=new HM({apiKey:t,apiParameters:{contentMedium:!0},maplibreLayer:e,name:Sg,publicAt:o?new Date(o):void 0,situations:A,tenant:n,url:l,...r||{},loadAll:!A});return A&&!C.getVisible()&&C.setVisible(!0),C},[t,e,o,n,l,A,r]);return tt(()=>{d?.(L)},[L,d]),tt(()=>{if(!(!i||!L))return i.addLayer(L),()=>{i.removeLayer(L)}},[i,L]),null}var eP=ht(qp1);var wX=P3(Ka(),1);var Kp1=(r,t=new URLSearchParams)=>{let e=r.getView().getZoom(),[i,o]=r.getView().getCenter()||[],n=B4(r.getLayers().getArray()).filter(l=>l.get("name")&&l.getVisible()).map(l=>l.get("name"));return t.set("layers",n.join(",")),i>=0&&t.set("x",i.toFixed(2)),o>=0&&t.set("y",o.toFixed(2)),e>=0&&t.set("z",e.toFixed(1)),t},xX=Kp1;var Wp1=({replaceState:r=!1})=>{let{map:t,setPermalinkUrlSearchParams:e}=Rt(),i=xA(),o=e6(n=>{if(t.get(Ko))return;let l=new URLSearchParams(window.location.search),A=xX(n,l);e(A)},[t,e]);return tt(()=>{r&&i&&i!==window.location.href&&!i.includes(encodeURIComponent("{{"))&&window.history.replaceState(null,null,i)},[t,i,r]),tt(()=>{let n,l,A,d=(0,wX.default)(o,1e3);return t&&(d(t),n=t?.on("moveend",L=>{d(L.map)}),l=t.once("loadend",L=>{d(L.map),A=B4(L.map.getLayers().getArray()).map(C=>C.on("change:visible",()=>{d(L.map)}))})),()=>{lr(n),lr(l),lr(A)}},[t,o]),null},rP=ht(Wp1);var $p1=async(r,t,e=0)=>{if(!r)return Promise.reject(new Error("No vehicle provided"));let{geometry:i,properties:{coordinate:o}}=r,n=t.getView(),l=e||n.getZoom(),A=l>0?n.getResolutionForZoom(l):void 0,d=o;if(!d&&i){let{coord:C}=Nd(Date.now(),r,!0);d=C}return d?(n.cancelAnimations(),new Promise(C=>{n.animate({center:d,duration:1e3,easing:zC,resolution:A},B=>{C(B)})})):Promise.reject(new Error("No center found"))},iP=$p1;var Xp1=(r,t,e)=>t?e?"#dc2626":"#a0a0a0":r===null?"transparent":Xp(r,e),bX=Xp1;var Yp1=r=>`bold ${r}px arial`,MX=Yp1;var Jp1=(r,t=!1)=>{if(t)return String.fromCodePoint(215);let e=Yp(r);return e==="0"?"":`+${e}`},BX=Jp1;var tL1=16,eL1=!0;function rL1(r){let{apikey:t,baseLayer:e,isFollowing:i,isTracking:o,linesNetworkPlanLayer:n,map:l,mots:A,realtimebboxparameters:d,realtimeurl:L,setIsFollowing:C,setIsTracking:B,setRealtimeLayer:E,setStation:_,setStopSequence:Z,stationId:Q,stopSequence:V,tenant:G,trainId:J}=Rt(),[i1,r1]=wt([]),[_1,b1]=wt(!1),M1=ge(()=>!t||!L?null:new XM({apiKey:t,bboxParameters:d?.split(" ").reduce((p1,R1)=>{if(!R1)return p1;let[a1,x1]=R1.split("=");return p1[a1]=x1,p1},{}),getMotsByZoom:A?()=>A.split(","):void 0,isQueryable:!0,name:Mg,tenant:G,url:L,zIndex:1,...r,styleOptions:{getDelayColor:bX,getDelayFont:MX,getDelayText:BX,getText:my,getTextFont:gy,...r?.styleOptions||{}}}),[t,L,d,A,G,r]);return tt(()=>{if(!(!l||!M1))return l.getView()?.getCenter()?l.addLayer(M1):l.once("moveend",()=>{l.addLayer(M1)}),E(M1),()=>{l.removeLayer(M1),E(null)}},[l,E,M1]),tt(()=>{V||C(!1)},[V,C]),tt(()=>{let g1=[];return o&&C(!1),()=>{lr(g1)}},[o,C]),tt(()=>{if(!l)return;let g1=null;return g1=l.getView().on("change:center",p1=>{p1.target.getInteracting()&&(C(!1),B(!1))}),()=>{lr(g1)}},[l,C,B]),tt(()=>{let g1=null;return M1&&(M1.engine.useThrottle=!i,M1.engine.isUpdateBboxOnMoveEnd=!i,M1.allowRenderWhenAnimating=!!i),!i||!V||!l||!M1?void 0:(B(!1),(async R1=>{let a1=R1&&M1?.trajectories?.[R1];a1||(a1=(await M1.api.getTrajectory(V.id,M1.mode))?.content),await iP(a1,l,tL1)===!0&&(g1=setInterval(()=>{iP(M1?.trajectories?.[V.id],l)},1e3))})(V.id),()=>{clearInterval(g1)})},[i,l,M1,V,B]),tt(()=>{if(!(!Q||!M1?.api))return M1?.api?.subscribe(`station ${Q}`,({content:g1})=>{g1&&_(g1)}),()=>{_(null),Q&&M1?.api?.unsubscribe(`station ${Q}`)}},[Q,M1?.api,_]),tt(()=>{if(!(!J||!M1?.api))return M1.selectedVehicleId=J,M1.highlightTrajectory(J).catch(g1=>{console.error("Error highlighting trajectory:",g1)}),M1?.api?.subscribeStopSequence(J,({content:g1})=>{if(g1){let[p1]=g1;p1&&Z(p1)}}),()=>{Z(null),J&&M1&&(M1.api?.unsubscribeStopSequence(J),M1.api?.unsubscribeFullTrajectory(M1.selectedVehicleId),M1.selectedVehicleId=null,M1.vectorLayer.getSource().clear())}},[J,M1,M1?.api,Z]),tt(()=>{if(!l||!e)return;let g1=l.once("rendercomplete",()=>{let p1=e.mapLibreMap?.getStyle()?.metadata,R1=[];for(let a1=0;a1<26;a1++)R1.push(yh(a1,p1?.graphs));r1(R1)});return()=>{lr(g1)}},[l,e,M1]),tt(()=>{let g1=n?.on("change:visible",()=>{let p1=n.getVisible();b1(p1)});return b1(n?.getVisible()||!1),()=>{lr(g1)}},[n]),tt(()=>{!M1||!i1?.length||(eL1&&_1?M1.engine.graphByZoom=i1:M1.engine.graphByZoom=[],M1.engine.setBbox())},[_1,M1,i1,n]),null}var SX=ht(rL1);var iL1=new j3({image:new i7({fill:new z0({color:"#000000"}),radius:5}),stroke:new _8({color:"#000000",width:6}),zIndex:2}),nL1=(r,t,e)=>{let i="#ffffff",o=r.get("type"),n=r.get("stroke");return n&&n[0]!=="#"&&(n=`#${n}`),i=n||e?.getBgColor(o,{name:r.get("line_name")}),i=/#ffffff/i.test(i)?"#ff0000":i,[iL1,new j3({image:new i7({fill:new z0({color:i}),radius:4}),stroke:new _8({color:i,width:4}),zIndex:3})]},EX=nL1;var oL1={0:[0,0,0,0,0,2,2,2,2,2,3,3,4,4,6,7,7],1:[0,0,0,0,0,2,2,2,2,2,3,3,4,4,6,7,7],2:[0,0,0,0,0,2,2,2,2,3,3,4,4,6,7,12,15],3:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,6,6],4:[0,0,0,0,0,2,2,2,2,2,2,3,3,6,7,12,15],5:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],6:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],7:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],8:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,6,6],9:[0,0,0,0,0,2,2,2,2,3,3,4,4,6,7,12,15]},aL1=oL1,TX=(r=0,t=0,e=!1)=>{try{let i=Fo.getTypeIndex(r);return aL1[i][t]*(e?2:1)}catch{return 1}};var IX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" width="42" height="42">%0A <path id="Pfad_1" data-name="Pfad 1" d="M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z" transform="translate(0 0)" fill="%23353535"/>%0A <path id="Pfad_2" data-name="Pfad 2" d="M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5" transform="translate(-5.477 -4.19)" fill="%23fff"/>%0A <path id="Pfad_3" data-name="Pfad 3" d="M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z" transform="translate(-3.206 -2.874)" fill="%23ec0016"/>%0A <path id="Pfad_4" data-name="Pfad 4" d="M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0" transform="translate(0 0)" fill="%23353535"/>%0A</svg>%0A';var nP={},FX=new Image(42,42);FX.src=IX;var lL1=(r,t)=>{let e=16;r>e&&(e=22);let i=`${e},${t}`;if(!nP[i]){let o=I7(e*t,e*t),n=o.getContext("2d");if(!n)return null;n.drawImage(FX,0,0,e*t,e*t),nP[i]=o}return nP[i]},oP={},cL1=(r,t,e)=>{let i=`${r}, ${t}, ${e}`;if(!oP[i]){let o=I7(r*2,r*2);if(o){let n=o.getContext("2d");if(!n)return null;n.beginPath(),n.arc(r,r,t,0,2*Math.PI,!1),n.fillStyle=e,n.filter="blur(1px)",n.fill(),oP[i]=o}}return oP[i]},aP={},uL1=(r,t,e,i,o="#000",n=1)=>{let l=`${r}, ${e}, ${i}, ${o}, ${n}`;if(!aP[l]){let A=I7(Math.ceil(r.length*t),Math.ceil(t+8*n));if(A){let d=A.getContext("2d");if(!d)return null;d.font=e,d.textAlign="left",d.textBaseline="middle",d.font=e,d.fillStyle=i,d.strokeStyle=o,d.lineWidth=1.5*n,d.strokeText(r,0,t),d.fillText(r,0,t),aP[l]=A}}return aP[l]},sP={},hL1=(r,t,e,i,o,n)=>{let l=`${r}, ${t}, ${e}, ${i}, ${o}, ${n}`;if(!sP[l]){let A=I7(r*2,r*2);if(A){let d=A.getContext("2d");if(!d)return null;d.fillStyle=e,i&&(d.lineWidth=1*n,d.strokeStyle="#000000"),d.beginPath(),d.arc(r,r,t,0,2*Math.PI,!1),d.fill(),o&&d.setLineDash([5,3]),i&&d.stroke(),sP[l]=A}}return sP[l]},lP={},AL1=(r,t,e,i,o,n,l,A)=>{let d=`${r}, ${t}, ${e}, ${i},${o}, ${n}, ${l}`;if(!lP[d]){let L=I7(t*2,t*2);if(L){let C=L.getContext("2d");if(!C)return null;n&&(C.save(),C.textBaseline="middle",C.textAlign="center",C.font=A(e+2,r),C.strokeStyle=o,C.strokeText(r,t,t),C.restore()),C.textBaseline="middle",C.textAlign="center",C.fillStyle=i,C.font=A(e,r),C.strokeStyle=o,C.strokeText(r,t,t),C.fillText(r,t,t),lP[d]=L}}return lP[d]},cP={},dL1=(r,t,e)=>{let{delayDisplay:i=3e5,delayOutlineColor:o="#000",getBgColor:n=()=>"#000",getDelayColor:l=()=>"#000",getDelayFont:A=P1=>`bold ${P1}px arial, sans-serif`,getDelayText:d=()=>null,getMaxRadiusForStrokeAndDelay:L=()=>7,getMaxRadiusForText:C=()=>10,getRadius:B=()=>0,getText:E=P1=>P1,getTextColor:_=()=>"#000",getTextFont:Z=P1=>`bold ${P1}px arial, sans-serif`,getTextSize:Q=()=>14,hoverVehicleId:V,selectedVehicleId:G,useDelayStyle:J}=e,{pixelRatio:i1=1,zoom:r1}=t,{type:_1}=r.properties,{delay:b1,has_realtime_journey:M1,line:g1,operator_provides_realtime_journey:p1,state:R1,train_id:a1}=r.properties,{color:x1,name:N1,text_color:H1}=g1||{};N1=E(N1);let l2=R1==="JOURNEY_CANCELLED";_1||(_1="Rail"),N1||(N1="I"),H1=_(_1),x1=n(_1,g1),x1&&!x1.startsWith("#")&&(x1=`#${x1}`),H1.startsWith("#")||(H1=`#${H1}`);let p2=Math.min(Math.floor(r1||1),16),s2=!!(V&&V===a1),G1=!!(G&&G===a1),m2=B(_1,p2)*i1,V2=m2>=L()*i1;(s2||G1)&&(m2=V2?m2+5*i1:14*i1);let T2=m2>C()*i1,h1=`${m2}${s2||G1}${M1}`;if(J?h1+=`${p1}${b1}${l2}`:(h1+=`${x1||_1}`,V2&&(h1+=`${l2}${b1}`)),T2&&(h1+=`${N1}${H1}`),!cP[h1]){if(m2===0)return null;let P1=1*i1,F1=m2+2*i1,X1=m2*2,f2=F1*2+P1*2,a2=f2/2,R2=null;V2&&b1!==null&&(R2=cL1(a2,F1,l(b1,l2)));let P2=null,U2=0;if(V2&&(s2||(b1||0)>=i||l2)){U2=Math.max(l2?19:14,Math.min(l2?19:17,m2*1.2))*i1;let jt=d(b1,l2);jt&&(P2=uL1(jt,U2,A(s2||t.zoom>=13?U2:0,jt),l(b1,l2,!0),o,i1))}let O2=null,nt;J?nt=l(b1,l2):nt=x1||n(_1,r);let at=V2||s2||G1,Z2=!!V2&&!!J&&b1===null&&p1==="yes",K1=!!at&&T2&&!M1&&!l2;K1&&(O2=lL1(m2,i1));let ne=hL1(a2,m2,nt,at,Z2,i1),Ht=P2?.width||K1&&O2.width/2||0,Gt=K1&&O2.height/2||0,ot=f2+Ht*2,Zt=f2+Gt*2,pt=I7(ot,Zt);if(pt){let jt=pt.getContext("2d");if(!jt)return null;let Nt=Ht,ee=Gt;R2&&jt.drawImage(R2,Nt,ee),ne&&jt.drawImage(ne,Nt,ee);let Ae=null;if(T2){let se=Math.max(m2,10),Qe=Q(jt,X1,N1,se,Z),n2=J?"#000000":H1||_(_1);Ae=AL1(N1,a2,Qe,n2,nt,!!J&&b1===null&&p1==="yes",i1,Z)}Ae&&jt.drawImage(Ae,Nt,ee),P2&&jt.drawImage(P2,Nt+Math.ceil(a2+F1)+P1,ee+Math.ceil(a2-U2)),K1&&jt.drawImage(O2,Nt-O2.width/4,ee-O2.height/4),cP[h1]=pt}}return cP[h1]},PX=dL1;var RX={bus:25,coach:15,train:30,tram:20},fL1={fullTrajectoryStyle:EX,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:t}},{properties:{delay:e,type:i}})=>t!==i?RX[t]<RX[i]?-1:1:r===e?0:r<e?-1:1,style:PX,styleOptions:{getBgColor:py,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:TX,getTextColor:Cy}};function pL1(r){return W(SX,{...fL1,...r})}var Xy=ht(pL1);var zX=P3(Ka(),1);function LL1({debounceOptions:r,debounceTimeout:t=150,hover:e=!0}){let{map:i,queryablelayers:o,setFeaturesInfos:n,setFeaturesInfosHovered:l,stationsLayer:A,tenant:d}=Rt(),L=e6(async E=>{let _=E.map.getAllLayers().filter(Q=>o.split(",").includes(Q.get("name"))),Z=await YM(E.coordinate,_,5,!0);if(A){let Q=Z?.find(J=>J.layer===A),V=Q?.features||[],[G]=V.filter(J=>J.get("tralis_network")?.includes(d));Q&&(Q.features=G?[G]:[])}return Z},[o,A,d]),C=e6(async E=>{let _=await L(E);l(_);let Z=_.flatMap(Q=>Q.features);E.map.getTargetElement().style.cursor=Z?.length?"pointer":"default"},[L,l]),B=e6(async E=>{let _=await L(E);n(_)},[L,n]);return tt(()=>{let E=i?.on("singleclick",B);return()=>{lr(E)}},[i,B]),tt(()=>{let E;if(e){let _=C;t&&(_=(0,zX.default)(C,t,r)),E=i?.on("pointermove",_)}return()=>{lr(E)}},[r,t,e,i,C]),null}var uP=LL1;var DX=(r,t)=>{if(!!t.get("name")&&r!=null){let o=r?.split(",")||[],n=t.get("name"),l=o.includes(n);t.getVisible()!==l&&(t.setVisible(l),t.getLayers&&t.getLayers().getArray().forEach(A=>{A.setVisible(l)}))}t.getLayers&&t.getLayers().getArray().forEach(o=>{DX(r,o)})},hP=DX;var CL1=(r,t,e)=>{let i=Ui(!1),o=Ui(Og(e)?.layers);return tt(()=>{if(!r)return;let n=t;o.current!==null&&o.current!==void 0&&!i.current&&(n=o.current,i.current=!0),B4(r.getLayers().getArray()).forEach(A=>{hP(n,A)});let l=r.getLayers().on("add",A=>{hP(n,A.element)});return()=>{lr(l)}},[r,t]),null},kX=CL1;var NX=P3(OX(),1);var gL1=/{{(.*?)}}/g;function ZX(r,t){return r.replace(gL1,(e,i,o)=>{for(e=0,o=t,i=i.trim().split(".");o&&e<i.length;)o=o[i[e++]];return o??""})}function UX(r){var t="",e=r||{};return{set(i,o){e[i]=Object.assign(e[i]||{},o)},locale(i){return t=i||t},table(i){return e[i]},t(i,o,n){var l=(0,NX.default)(e[n||t],i,"");return typeof l=="function"?l(o):typeof l=="string"?ZX(l,o):l}}}var mL1={de:{affected_lines:"Betroffene Linien",affected_stops:"Betroffene Haltestellen",all_line_stops:"Alle Haltestellen auf dieser Strecke",consequence:"konsequenz",daily_from_to:"T\xE4glich von {{from}} bis {{to}}",download:"Herunterladen",duration_text:"Dauer",error:"Fehler",export_all_region:"Ganze Region exportieren",export_format_title:"Format",exporting:"Exportieren ...",from:"ab {{from}}",from_to:"von {{from}} bis {{to}}",geolocation_button_title_off:"Geolokalisierung deaktivieren",geolocation_button_title_on:"Geolokalisierung aktivieren",input_copy_success:"Kopiert!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Fahrrad, andere Anbieter",[Et.cargobikeFrelo]:"Lastenfrelo",[Et.cargobikeOthers]:"Cargobike, andere Anbieter",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Liniennetzpl\xE4ne",[Et.mapset]:"Mapset-Pl\xE4ne",[Et.mitfahrpunkte]:"Mitfahrpunkte",[Et.notifications]:"Meldungen",[Et.pois]:"POIs",[Et.realtime]:"Echtzeit",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stationen",[Et.tarifzonen]:"Tarifzonen",[Et.verkaufsstellen]:"Verkaufsstellen",layertree_menu_title:"Ebenen",linesnetworkplan:"plan retea linii",no_details_available:"Keine Details verf\xFCgbar",no_stops_found:"Keine Haltestellen gefunden",notifications:"notificari",permalink_input_hint:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren.",platform_ferry:"St.",platform_other:"Kan.",platform_rail:"Gl.",print_menu_title:"Drucken",reason:"Grund",recommendation:"Empfehlung",search_menu_title:"Suchen",share_email_send:"E-Mail senden",share_image_save:"Bild speichern",share_menu_title:"Teilen",stops_search_placeholder:"Haltestellen suchen",zoomin:"Hineinzoomen",zoomout:"Herauszoomen"},en:{affected_lines:"Affected lines",affected_stops:"Affected stops",all_line_stops:"All stops on this line",consequence:"Consequence",daily_from_to:"Daily from {{from}} to {{to}}",download:"Download",duration_text:"Duration",error:"Error",export_all_region:"Export entire region",export_format_title:"Format",exporting:"Exporting ...",from:"from {{from}}",from_to:"from {{from}} to {{to}}",geolocation_button_title_off:"Disable geolocation",geolocation_button_title_on:"Enable geolocation",input_copy_success:"Copied!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicycle, other providers",[Et.cargobikeFrelo]:"Cargo bike Frelo",[Et.cargobikeOthers]:"Cargo bike, other providers",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Lines Network Plan",[Et.mapset]:"Mapset plans",[Et.mitfahrpunkte]:"Carpooling Points",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Realtime",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stations",[Et.tarifzonen]:"Tariff Zones",[Et.verkaufsstellen]:"Sales Outlets",layertree_menu_title:"Layers",no_details_available:"No details available",no_stops_found:"No stops found",permalink_input_hint:"You can also copy the link from the browser address bar.",platform_ferry:"Pier",platform_other:"Std.",platform_rail:"Pl.",print_menu_title:"Print",reason:"Reason",recommendation:"Recommendation",search_menu_title:"Search",share_email_send:"Send email",share_image_save:"Save image",share_menu_title:"Share",stops_search_placeholder:"Search for stop",zoomin:"Zoom in",zoomout:"Zoom out"},fr:{affected_lines:"Lignes affect\xE9es",affected_stops:"Arr\xEAts affect\xE9s",all_line_stops:"Tous les arr\xEAts sur cette ligne",consequence:"Cons\xE9quence",daily_from_to:"Tous les jours de {{from}} \xE0 {{to}}",download:"T\xE9l\xE9charger",duration_text:"Dur\xE9e",error:"Erreur",export_all_region:"Exporter toute la r\xE9gion",export_format_title:"Format",exporting:"Exportation ...",from:"\xE0 partir du {{from}}",from_to:"de {{from}} \xE0 {{to}}",geolocation_button_title_off:"D\xE9sactiver la g\xE9olocalisation",geolocation_button_title_on:"Activer la g\xE9olocalisation",input_copy_success:"Copi\xE9!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"V\xE9lo, autres fournisseurs",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, autres fournisseurs",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Voiture, autres fournisseurs",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Plans du r\xE9seau",[Et.mapset]:"Plans de Mapset",[Et.mitfahrpunkte]:"Points de covoiturage",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Temps r\xE9el",[Et.sharedMobility]:"Mobilit\xE9 partag\xE9e",[Et.stations]:"Stations",[Et.tarifzonen]:"Zones tarifaires",[Et.verkaufsstellen]:"Points de vente",layertree_menu_title:"Couches",no_details_available:"Aucun d\xE9tail disponible",no_stops_found:"Aucun arr\xEAt trouv\xE9",permalink_input_hint:"Vous pouvez aussi copier le lien depuis la barre d'adresse du navigateur.",platform_ferry:"Quai",platform_other:"Quai",platform_rail:"Voie",print_menu_title:"Imprimer",reason:"Raison",recommendation:"Recommandation",search_menu_title:"Rechercher",share_email_send:"Envoyer un email",share_image_save:"Enregistrer l'image",share_menu_title:"Partager",stops_search_placeholder:"Chercher un arr\xEAt",zoomin:"Zoomer",zoomout:"D\xE9zoomer"},it:{affected_lines:"Linee interessate",affected_stops:"Fermate interessate",all_line_stops:"Tutte le fermate su questa linea",consequence:"Conseguenza",daily_from_to:"Tutti i giorni da {{from}} a {{to}}",download:"Scarica",duration_text:"Durata",error:"Errore",export_all_region:"Esporta l'intera regione",export_format_title:"Formato",exporting:"Esportazione ...",from:"da {{from}}",from_to:"da {{from}} a {{to}}",geolocation_button_title_off:"Disattiva geolocalizzazione",geolocation_button_title_on:"Attiva geolocalizzazione",input_copy_success:"Copiato!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicicletta, altri fornitori",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, altri fornitori",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, altri fornitori",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Piani della rete",[Et.mapset]:"Piani di Mapset",[Et.mitfahrpunkte]:"Punti di carpooling",[Et.notifications]:"Notifiche",[Et.pois]:"POI",[Et.realtime]:"In tempo reale",[Et.sharedMobility]:"Mobilit\xE0 condivisa",[Et.stations]:"Stazioni",[Et.tarifzonen]:"Zone tariffarie",[Et.verkaufsstellen]:"Punti vendita",layertree_menu_title:"Livelli",no_details_available:"Nessun dettaglio disponibile",no_stops_found:"Nessuna fermata trovata",permalink_input_hint:"Puoi anche copiare il link dalla barra degli indirizzi del browser.",platform_ferry:"Imb.",platform_other:"Cor.",platform_rail:"Bin.",print_menu_title:"Stampa",reason:"Motivo",recommendation:"Raccomandazione",search_menu_title:"Cerca",share_email_send:"Invia email",share_image_save:"Salva immagine",share_menu_title:"Condividi",stops_search_placeholder:"Ricerca delle fermate",zoomin:"Zoom avanti",zoomout:"Zoom indietro"}},QX=mL1;var vL1=UX(QX),wl=vL1;var HX=["mwc:permalink","mwc:selectedfeature","mwc:singleclick","mwc:attribute"];function yL1({eventNode:r}){let{setPreviewNotifications:t}=Rt();return tt(()=>{let e=i=>{i.data.situations&&t(i.data.situations)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[t]),tt(()=>{if(!r)return;let e=i=>{i.type==="mwc:attribute"&&delete i.data.children,i.type==="mwc:selectedfeature"&&i.data?.properties?.olGeometry&&delete i.data.properties.olGeometry,window.parent?.postMessage({data:i.data,type:i.type},"*")};return HX.forEach(i=>{r.addEventListener(i,e)}),window.parent?.postMessage({data:!0,type:"mwc:messageready"},"*"),()=>{HX.forEach(i=>{r.removeEventListener(i,e)})}},[r]),null}var fP=ht(yL1);var _L1='<a href="https://developer.geops.io/">geOps API key</a>',VX='<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>',xL1='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',pP='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',Yy='<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>',LP='<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>',wL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${_L1}`,public:!1},baselayer:{defaultValue:"de.rvf_moco",description:`The style's name from the ${VX}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,public:!1},center:{description:"The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",public:!0},details:{defaultValue:"true",description:"When a feature of a queryable layer is clicked, it displays informations about it.",public:!0,type:"boolean"},embed:{defaultValue:"false",description:"Toggle the embedded navigation mode.<br/>In this mode zooming with mouse wheel is deactivated and, on touch device, you can only navigate with two finger, a warning message is displayed to warn the user.",public:!0,type:"boolean"},extent:{defaultValue:Mf.join(","),description:"The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",public:!0},geolocation:{defaultValue:"true",description:"Toggle the display of the geolocation button or not.",public:!0,type:"boolean"},lang:{defaultValue:"de",description:"The language to use for the map. Supported languages are : de, en, fr, it.",public:!1},layers:{defaultValue:null,description:`A comma separated list of layers's name to make visible on load, others are hidden. If empty, all layers will be hidden except the baselayer.<br/>Layers available are ${Object.values(Et).join(", ")}.`,public:!0},layersconfig:{description:`A JSON string to configure the layers and other components associated to it.<br/>
1550
+ }`;function Pp1({options:r,...t}){let{map:e}=Rt(),[i,o]=wt(),n=ge(()=>i?new gZ({target:i,...r}):null,[r,i]);return tt(()=>{if(!(!e||!n))return e.addControl(n),()=>{e&&n&&e.removeControl(n)}},[e,n]),W("div",{ref:l=>{o(l)},...t,children:W("style",{children:vX})})}var qF=Pp1;function Rp1({...r}){let{isSearchOpen:t,setIsSearchOpen:e}=Rt(),{t:i}=d3(),o=e6(()=>{e(!t)},[t,e]);return W(D6,{title:i("search_menu_title"),...r,onClick:o,selected:t,children:W(dL,{})})}var KF=ht(Rp1);function zp1({...r}){return W("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var WF=zp1;function Dp1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=Rt(),{t:i}=d3(),o=e6(()=>{e(!t)},[t,e]);return W(D6,{title:i("share_menu_title"),...r,onClick:o,selected:t,children:W(WF,{})})}var $F=ht(Dp1);function kp1(r){let{baseLayer:t,map:e,setStationsLayer:i}=Rt(),o=ge(()=>t?new z6({layersFilter:({metadata:n})=>n?.["tralis.variable"]==="station"||n?.["general.filter"]==="stations",maplibreLayer:t,name:Bg,...r||{}}):null,[t,r]);return tt(()=>{if(!(!e||!o))return e.addLayer(o),i(o),()=>{e.removeLayer(o)}},[e,i,o]),null}var yX=ht(kp1);var Op1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations",minZoom:10});function Zp1(r){return W(yX,{...Op1,...r})}var wA=ht(Zp1);function Np1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var XF=Np1;function Up1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var YF=Up1;function Qp1(){let{map:r}=Rt(),[t,e]=wt(!1),[i,o]=wt(!1),{t:n}=d3(),l=e6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L+1)},[r]),A=e6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L-1)},[r]);return tt(()=>{let d=r?.on("moveend",()=>{let L=r.getView(),C=L.getZoom(),B=L.getMaxZoom(),E=L.getMinZoom();B&&C===Number(B)?e(!0):e(!1),E&&C===Number(E)?o(!0):o(!1)});return()=>{lr(d)}},[r]),W(_5,{children:[W(D6,{disabled:t,onClick:l,title:n("zoomin"),children:W(YF,{})}),W(D6,{disabled:i,onClick:A,title:n("zoomout"),children:W(XF,{})})]})}var JF=ht(Qp1);var _X={style:{width:"calc(100% - 60px)"}},Hp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations"});function Vp1({className:r,...t}){let{hasDetails:e,hasGeolocation:i,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:A,hasShare:d,hasToolbar:L,isEmbed:C,isOverlayOpen:B,isSearchOpen:E,mainlink:_}=Rt();return W("div",{className:Pe("relative flex size-full flex-col text-base @lg/main:flex-row-reverse",r),...t,children:[W(NF,{}),W(wA,{minZoom:10,...Hp1}),W(jF,{}),W(UF,{}),W(ZF,{}),W(GF,{}),W(xB,{className:"relative flex-1 overflow-visible",children:[C&&W(LB,{}),_&&W(kF,{className:"absolute inset-x-2 bottom-8 z-10"}),W("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[W(qF,{className:"bg-slate-50/70"}),W(Dg,{className:"pointer-events-auto bg-slate-50/70"})]}),W("div",{className:"absolute top-2 right-2 z-10 flex",children:i&&W(kg,{title:"Geolokalisierung"})}),W("div",{className:"absolute right-2 bottom-10 z-10 flex flex-col justify-between gap-2",children:W(JF,{})}),!L&&A&&W("div",{className:Pe("absolute top-2 right-2 left-2 z-10 max-w-96",B&&"@lg:left-68"),children:W($c,{})})]}),W("div",{className:"pointer-events-none absolute top-2 bottom-2 left-2 z-10 flex flex-col gap-2",children:[L&&W("div",{className:"pointer-events-none relative z-10 w-fit rounded-2xl bg-black/10 p-0 backdrop-blur-sm *:pointer-events-auto",children:[A&&W("div",{className:Pe("absolute top-12 left-0 w-0 p-0 opacity-0 transition-all @sm:top-0 @sm:left-[calc(100%-43px)] @md:left-[calc(100%-47px)]",E?"w-64 opacity-100":""),children:W($c,{className:"border-grey @container m-0 h-[40px] rounded-2xl border p-2 px-4 text-base @sm/main:h-[44px] @sm/main:rounded-l-none @sm/main:rounded-r-2xl @md/main:h-[48px]",inputClassName:"h-6 text-base",inputContainerClassName:"border-none",resultClassName:"text-base **:hover:cursor-pointer hover:text-red-500 p-2",resultsContainerClassName:"@container rounded-b-2xl max-h-[200px] overflow-y-auto border border-grey border-t-0 ",withResultsClassName:"text-base !rounded-b-none"})}),W("div",{className:Pe("border-grey relative flex gap-[1px] overflow-hidden rounded-2xl border @sm/main:h-[44px] @md/main:h-[48px]","*:size-[38px] *:rounded-none *:border-none *:@sm/main:size-[42px] *:@md/main:!size-[46px]","*:first:!rounded-l-2xl","*:last:!rounded-r-2xl",E?"@sm:rounded-r-none @sm:border-r-0 @sm:*:last:!rounded-r-none @sm:*:last:border-r-0":""),children:[n&&W(gB,{}),d&&W($F,{}),o&&W(_B,{}),A&&W(KF,{})]})]}),W("div",{className:Pe("pointer-events-none flex w-0 flex-1 flex-col overflow-hidden rounded-2xl",B?"@lg:min-w-[320px]":"p-0"),style:{containerType:"normal"},children:W(Zg,{className:"border-grey @container/overlay pointer-events-auto relative hidden flex-col overflow-hidden rounded-2xl border bg-white text-base shadow-lg @lg:flex",ScrollableHandlerProps:_X,children:W(Gy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})})]}),W(Zg,{className:B?"absolute bottom-0 z-20 flex max-h-[70%] min-h-[75px] w-full flex-col border-t bg-white @lg:hidden":"@lg:hidden",ScrollableHandlerProps:_X,children:W(Gy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})]})}var $y=ht(Vp1);var Gp1=(r,t)=>{let e=t?.getView()?.getZoom(),i=r.get("minZoom"),o=r.get("maxZoom");return i>e||e>o};function jp1(r){let{apikey:t,baseLayer:e,map:i,mapsetplanid:o,mapsettags:n,mapsettenants:l,mapsettimestamp:A,mapseturl:d,setMapsetLayer:L}=Rt(),C=ge(()=>!e||!i?null:new ZM({apiKey:t,name:Eg,planId:o??void 0,tags:n?.split(",").map(B=>B.trim()),tenants:l?.split(",").map(B=>B.trim()),timestamp:A,url:d,...r||{}}),[e,i,t,d,o,n,l,A,r]);return tt(()=>{L?.(C)},[C,L,i]),tt(()=>{if(!(!i||!C))return i.addLayer(C),()=>{i.removeLayer(C)}},[i,C]),tt(()=>{let B=null;return C&&(B=C.on("updatefeatures",()=>{let E=C.getSource()?.getFeatures();E?.length&&E.forEach(_=>{let Z=_.getStyleFunction();Z&&_.setStyle((Q,V)=>Gp1(Q,C.getMapInternal())?null:Z(_,V))})})),()=>{lr(B)}},[C]),null}var tP=ht(jp1);function qp1(r){let{apikey:t,baseLayer:e,map:i,notificationat:o,notificationtenant:n,notificationurl:l,previewNotifications:A,setNotificationsLayer:d}=Rt(),L=ge(()=>{if(!e)return null;let C=new HM({apiKey:t,apiParameters:{contentMedium:!0,isEdited:!0,publicNow:!0},maplibreLayer:e,name:Sg,publicAt:o?new Date(o):void 0,situations:A,tenant:n,url:l,...r||{},loadAll:!A});return A&&!C.getVisible()&&C.setVisible(!0),C},[t,e,o,n,l,A,r]);return tt(()=>{d?.(L)},[L,d]),tt(()=>{if(!(!i||!L))return i.addLayer(L),()=>{i.removeLayer(L)}},[i,L]),null}var eP=ht(qp1);var wX=P3(Ka(),1);var Kp1=(r,t=new URLSearchParams)=>{let e=r.getView().getZoom(),[i,o]=r.getView().getCenter()||[],n=B4(r.getLayers().getArray()).filter(l=>l.get("name")&&l.getVisible()).map(l=>l.get("name"));return t.set("layers",n.join(",")),i>=0&&t.set("x",i.toFixed(2)),o>=0&&t.set("y",o.toFixed(2)),e>=0&&t.set("z",e.toFixed(1)),t},xX=Kp1;var Wp1=({replaceState:r=!1})=>{let{map:t,setPermalinkUrlSearchParams:e}=Rt(),i=xA(),o=e6(n=>{if(t.get(Ko))return;let l=new URLSearchParams(window.location.search),A=xX(n,l);e(A)},[t,e]);return tt(()=>{r&&i&&i!==window.location.href&&!i.includes(encodeURIComponent("{{"))&&window.history.replaceState(null,null,i)},[t,i,r]),tt(()=>{let n,l,A,d=(0,wX.default)(o,1e3);return t&&(d(t),n=t?.on("moveend",L=>{d(L.map)}),l=t.once("loadend",L=>{d(L.map),A=B4(L.map.getLayers().getArray()).map(C=>C.on("change:visible",()=>{d(L.map)}))})),()=>{lr(n),lr(l),lr(A)}},[t,o]),null},rP=ht(Wp1);var $p1=async(r,t,e=0)=>{if(!r)return Promise.reject(new Error("No vehicle provided"));let{geometry:i,properties:{coordinate:o}}=r,n=t.getView(),l=e||n.getZoom(),A=l>0?n.getResolutionForZoom(l):void 0,d=o;if(!d&&i){let{coord:C}=Nd(Date.now(),r,!0);d=C}return d?(n.cancelAnimations(),new Promise(C=>{n.animate({center:d,duration:1e3,easing:zC,resolution:A},B=>{C(B)})})):Promise.reject(new Error("No center found"))},iP=$p1;var Xp1=(r,t,e)=>t?e?"#dc2626":"#a0a0a0":r===null?"transparent":Xp(r,e),bX=Xp1;var Yp1=r=>`bold ${r}px arial`,MX=Yp1;var Jp1=(r,t=!1)=>{if(t)return String.fromCodePoint(215);let e=Yp(r);return e==="0"?"":`+${e}`},BX=Jp1;var tL1=16,eL1=!0;function rL1(r){let{apikey:t,baseLayer:e,isFollowing:i,isTracking:o,linesNetworkPlanLayer:n,map:l,mots:A,realtimebboxparameters:d,realtimeurl:L,setIsFollowing:C,setIsTracking:B,setRealtimeLayer:E,setStation:_,setStopSequence:Z,stationId:Q,stopSequence:V,tenant:G,trainId:J}=Rt(),[i1,r1]=wt([]),[_1,b1]=wt(!1),M1=ge(()=>!t||!L?null:new XM({apiKey:t,bboxParameters:d?.split(" ").reduce((p1,R1)=>{if(!R1)return p1;let[a1,x1]=R1.split("=");return p1[a1]=x1,p1},{}),getMotsByZoom:A?()=>A.split(","):void 0,isQueryable:!0,name:Mg,tenant:G,url:L,zIndex:1,...r,styleOptions:{getDelayColor:bX,getDelayFont:MX,getDelayText:BX,getText:my,getTextFont:gy,...r?.styleOptions||{}}}),[t,L,d,A,G,r]);return tt(()=>{if(!(!l||!M1))return l.getView()?.getCenter()?l.addLayer(M1):l.once("moveend",()=>{l.addLayer(M1)}),E(M1),()=>{l.removeLayer(M1),E(null)}},[l,E,M1]),tt(()=>{V||C(!1)},[V,C]),tt(()=>{let g1=[];return o&&C(!1),()=>{lr(g1)}},[o,C]),tt(()=>{if(!l)return;let g1=null;return g1=l.getView().on("change:center",p1=>{p1.target.getInteracting()&&(C(!1),B(!1))}),()=>{lr(g1)}},[l,C,B]),tt(()=>{let g1=null;return M1&&(M1.engine.useThrottle=!i,M1.engine.isUpdateBboxOnMoveEnd=!i,M1.allowRenderWhenAnimating=!!i),!i||!V||!l||!M1?void 0:(B(!1),(async R1=>{let a1=R1&&M1?.trajectories?.[R1];a1||(a1=(await M1.api.getTrajectory(V.id,M1.mode))?.content),await iP(a1,l,tL1)===!0&&(g1=setInterval(()=>{iP(M1?.trajectories?.[V.id],l)},1e3))})(V.id),()=>{clearInterval(g1)})},[i,l,M1,V,B]),tt(()=>{if(!(!Q||!M1?.api))return M1?.api?.subscribe(`station ${Q}`,({content:g1})=>{g1&&_(g1)}),()=>{_(null),Q&&M1?.api?.unsubscribe(`station ${Q}`)}},[Q,M1?.api,_]),tt(()=>{if(!(!J||!M1?.api))return M1.selectedVehicleId=J,M1.highlightTrajectory(J).catch(g1=>{console.error("Error highlighting trajectory:",g1)}),M1?.api?.subscribeStopSequence(J,({content:g1})=>{if(g1){let[p1]=g1;p1&&Z(p1)}}),()=>{Z(null),J&&M1&&(M1.api?.unsubscribeStopSequence(J),M1.api?.unsubscribeFullTrajectory(M1.selectedVehicleId),M1.selectedVehicleId=null,M1.vectorLayer.getSource().clear())}},[J,M1,M1?.api,Z]),tt(()=>{if(!l||!e)return;let g1=l.once("rendercomplete",()=>{let p1=e.mapLibreMap?.getStyle()?.metadata,R1=[];for(let a1=0;a1<26;a1++)R1.push(yh(a1,p1?.graphs));r1(R1)});return()=>{lr(g1)}},[l,e,M1]),tt(()=>{let g1=n?.on("change:visible",()=>{let p1=n.getVisible();b1(p1)});return b1(n?.getVisible()||!1),()=>{lr(g1)}},[n]),tt(()=>{!M1||!i1?.length||(eL1&&_1?M1.engine.graphByZoom=i1:M1.engine.graphByZoom=[],M1.engine.setBbox())},[_1,M1,i1,n]),null}var SX=ht(rL1);var iL1=new j3({image:new i7({fill:new z0({color:"#000000"}),radius:5}),stroke:new _8({color:"#000000",width:6}),zIndex:2}),nL1=(r,t,e)=>{let i="#ffffff",o=r.get("type"),n=r.get("stroke");return n&&n[0]!=="#"&&(n=`#${n}`),i=n||e?.getBgColor(o,{name:r.get("line_name")}),i=/#ffffff/i.test(i)?"#ff0000":i,[iL1,new j3({image:new i7({fill:new z0({color:i}),radius:4}),stroke:new _8({color:i,width:4}),zIndex:3})]},EX=nL1;var oL1={0:[0,0,0,0,0,2,2,2,2,2,3,3,4,4,6,7,7],1:[0,0,0,0,0,2,2,2,2,2,3,3,4,4,6,7,7],2:[0,0,0,0,0,2,2,2,2,3,3,4,4,6,7,12,15],3:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,6,6],4:[0,0,0,0,0,2,2,2,2,2,2,3,3,6,7,12,15],5:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],6:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],7:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,7,7],8:[0,0,0,0,0,2,2,2,2,2,2,3,3,4,6,6,6],9:[0,0,0,0,0,2,2,2,2,3,3,4,4,6,7,12,15]},aL1=oL1,TX=(r=0,t=0,e=!1)=>{try{let i=Fo.getTypeIndex(r);return aL1[i][t]*(e?2:1)}catch{return 1}};var IX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" width="42" height="42">%0A <path id="Pfad_1" data-name="Pfad 1" d="M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z" transform="translate(0 0)" fill="%23353535"/>%0A <path id="Pfad_2" data-name="Pfad 2" d="M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5" transform="translate(-5.477 -4.19)" fill="%23fff"/>%0A <path id="Pfad_3" data-name="Pfad 3" d="M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z" transform="translate(-3.206 -2.874)" fill="%23ec0016"/>%0A <path id="Pfad_4" data-name="Pfad 4" d="M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0" transform="translate(0 0)" fill="%23353535"/>%0A</svg>%0A';var nP={},FX=new Image(42,42);FX.src=IX;var lL1=(r,t)=>{let e=16;r>e&&(e=22);let i=`${e},${t}`;if(!nP[i]){let o=I7(e*t,e*t),n=o.getContext("2d");if(!n)return null;n.drawImage(FX,0,0,e*t,e*t),nP[i]=o}return nP[i]},oP={},cL1=(r,t,e)=>{let i=`${r}, ${t}, ${e}`;if(!oP[i]){let o=I7(r*2,r*2);if(o){let n=o.getContext("2d");if(!n)return null;n.beginPath(),n.arc(r,r,t,0,2*Math.PI,!1),n.fillStyle=e,n.filter="blur(1px)",n.fill(),oP[i]=o}}return oP[i]},aP={},uL1=(r,t,e,i,o="#000",n=1)=>{let l=`${r}, ${e}, ${i}, ${o}, ${n}`;if(!aP[l]){let A=I7(Math.ceil(r.length*t),Math.ceil(t+8*n));if(A){let d=A.getContext("2d");if(!d)return null;d.font=e,d.textAlign="left",d.textBaseline="middle",d.font=e,d.fillStyle=i,d.strokeStyle=o,d.lineWidth=1.5*n,d.strokeText(r,0,t),d.fillText(r,0,t),aP[l]=A}}return aP[l]},sP={},hL1=(r,t,e,i,o,n)=>{let l=`${r}, ${t}, ${e}, ${i}, ${o}, ${n}`;if(!sP[l]){let A=I7(r*2,r*2);if(A){let d=A.getContext("2d");if(!d)return null;d.fillStyle=e,i&&(d.lineWidth=1*n,d.strokeStyle="#000000"),d.beginPath(),d.arc(r,r,t,0,2*Math.PI,!1),d.fill(),o&&d.setLineDash([5,3]),i&&d.stroke(),sP[l]=A}}return sP[l]},lP={},AL1=(r,t,e,i,o,n,l,A)=>{let d=`${r}, ${t}, ${e}, ${i},${o}, ${n}, ${l}`;if(!lP[d]){let L=I7(t*2,t*2);if(L){let C=L.getContext("2d");if(!C)return null;n&&(C.save(),C.textBaseline="middle",C.textAlign="center",C.font=A(e+2,r),C.strokeStyle=o,C.strokeText(r,t,t),C.restore()),C.textBaseline="middle",C.textAlign="center",C.fillStyle=i,C.font=A(e,r),C.strokeStyle=o,C.strokeText(r,t,t),C.fillText(r,t,t),lP[d]=L}}return lP[d]},cP={},dL1=(r,t,e)=>{let{delayDisplay:i=3e5,delayOutlineColor:o="#000",getBgColor:n=()=>"#000",getDelayColor:l=()=>"#000",getDelayFont:A=P1=>`bold ${P1}px arial, sans-serif`,getDelayText:d=()=>null,getMaxRadiusForStrokeAndDelay:L=()=>7,getMaxRadiusForText:C=()=>10,getRadius:B=()=>0,getText:E=P1=>P1,getTextColor:_=()=>"#000",getTextFont:Z=P1=>`bold ${P1}px arial, sans-serif`,getTextSize:Q=()=>14,hoverVehicleId:V,selectedVehicleId:G,useDelayStyle:J}=e,{pixelRatio:i1=1,zoom:r1}=t,{type:_1}=r.properties,{delay:b1,has_realtime_journey:M1,line:g1,operator_provides_realtime_journey:p1,state:R1,train_id:a1}=r.properties,{color:x1,name:N1,text_color:H1}=g1||{};N1=E(N1);let l2=R1==="JOURNEY_CANCELLED";_1||(_1="Rail"),N1||(N1="I"),H1=_(_1),x1=n(_1,g1),x1&&!x1.startsWith("#")&&(x1=`#${x1}`),H1.startsWith("#")||(H1=`#${H1}`);let p2=Math.min(Math.floor(r1||1),16),s2=!!(V&&V===a1),G1=!!(G&&G===a1),m2=B(_1,p2)*i1,V2=m2>=L()*i1;(s2||G1)&&(m2=V2?m2+5*i1:14*i1);let T2=m2>C()*i1,h1=`${m2}${s2||G1}${M1}`;if(J?h1+=`${p1}${b1}${l2}`:(h1+=`${x1||_1}`,V2&&(h1+=`${l2}${b1}`)),T2&&(h1+=`${N1}${H1}`),!cP[h1]){if(m2===0)return null;let P1=1*i1,F1=m2+2*i1,X1=m2*2,f2=F1*2+P1*2,a2=f2/2,R2=null;V2&&b1!==null&&(R2=cL1(a2,F1,l(b1,l2)));let P2=null,U2=0;if(V2&&(s2||(b1||0)>=i||l2)){U2=Math.max(l2?19:14,Math.min(l2?19:17,m2*1.2))*i1;let jt=d(b1,l2);jt&&(P2=uL1(jt,U2,A(s2||t.zoom>=13?U2:0,jt),l(b1,l2,!0),o,i1))}let O2=null,nt;J?nt=l(b1,l2):nt=x1||n(_1,r);let at=V2||s2||G1,Z2=!!V2&&!!J&&b1===null&&p1==="yes",K1=!!at&&T2&&!M1&&!l2;K1&&(O2=lL1(m2,i1));let ne=hL1(a2,m2,nt,at,Z2,i1),Ht=P2?.width||K1&&O2.width/2||0,Gt=K1&&O2.height/2||0,ot=f2+Ht*2,Zt=f2+Gt*2,pt=I7(ot,Zt);if(pt){let jt=pt.getContext("2d");if(!jt)return null;let Nt=Ht,ee=Gt;R2&&jt.drawImage(R2,Nt,ee),ne&&jt.drawImage(ne,Nt,ee);let Ae=null;if(T2){let se=Math.max(m2,10),Qe=Q(jt,X1,N1,se,Z),n2=J?"#000000":H1||_(_1);Ae=AL1(N1,a2,Qe,n2,nt,!!J&&b1===null&&p1==="yes",i1,Z)}Ae&&jt.drawImage(Ae,Nt,ee),P2&&jt.drawImage(P2,Nt+Math.ceil(a2+F1)+P1,ee+Math.ceil(a2-U2)),K1&&jt.drawImage(O2,Nt-O2.width/4,ee-O2.height/4),cP[h1]=pt}}return cP[h1]},PX=dL1;var RX={bus:25,coach:15,train:30,tram:20},fL1={fullTrajectoryStyle:EX,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:t}},{properties:{delay:e,type:i}})=>t!==i?RX[t]<RX[i]?-1:1:r===e?0:r<e?-1:1,style:PX,styleOptions:{getBgColor:py,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:TX,getTextColor:Cy}};function pL1(r){return W(SX,{...fL1,...r})}var Xy=ht(pL1);var zX=P3(Ka(),1);function LL1({debounceOptions:r,debounceTimeout:t=150,hover:e=!0}){let{map:i,queryablelayers:o,setFeaturesInfos:n,setFeaturesInfosHovered:l,stationsLayer:A,tenant:d}=Rt(),L=e6(async E=>{let _=E.map.getAllLayers().filter(Q=>o.split(",").includes(Q.get("name"))),Z=await YM(E.coordinate,_,5,!0);if(A){let Q=Z?.find(J=>J.layer===A),V=Q?.features||[],[G]=V.filter(J=>J.get("tralis_network")?.includes(d));Q&&(Q.features=G?[G]:[])}return Z},[o,A,d]),C=e6(async E=>{let _=await L(E);l(_);let Z=_.flatMap(Q=>Q.features);E.map.getTargetElement().style.cursor=Z?.length?"pointer":"default"},[L,l]),B=e6(async E=>{let _=await L(E);n(_)},[L,n]);return tt(()=>{let E=i?.on("singleclick",B);return()=>{lr(E)}},[i,B]),tt(()=>{let E;if(e){let _=C;t&&(_=(0,zX.default)(C,t,r)),E=i?.on("pointermove",_)}return()=>{lr(E)}},[r,t,e,i,C]),null}var uP=LL1;var DX=(r,t)=>{if(!!t.get("name")&&r!=null){let o=r?.split(",")||[],n=t.get("name"),l=o.includes(n);t.getVisible()!==l&&(t.setVisible(l),t.getLayers&&t.getLayers().getArray().forEach(A=>{A.setVisible(l)}))}t.getLayers&&t.getLayers().getArray().forEach(o=>{DX(r,o)})},hP=DX;var CL1=(r,t,e)=>{let i=Ui(!1),o=Ui(Og(e)?.layers);return tt(()=>{if(!r)return;let n=t;o.current!==null&&o.current!==void 0&&!i.current&&(n=o.current,i.current=!0),B4(r.getLayers().getArray()).forEach(A=>{hP(n,A)});let l=r.getLayers().on("add",A=>{hP(n,A.element)});return()=>{lr(l)}},[r,t]),null},kX=CL1;var NX=P3(OX(),1);var gL1=/{{(.*?)}}/g;function ZX(r,t){return r.replace(gL1,(e,i,o)=>{for(e=0,o=t,i=i.trim().split(".");o&&e<i.length;)o=o[i[e++]];return o??""})}function UX(r){var t="",e=r||{};return{set(i,o){e[i]=Object.assign(e[i]||{},o)},locale(i){return t=i||t},table(i){return e[i]},t(i,o,n){var l=(0,NX.default)(e[n||t],i,"");return typeof l=="function"?l(o):typeof l=="string"?ZX(l,o):l}}}var mL1={de:{affected_lines:"Betroffene Linien",affected_stops:"Betroffene Haltestellen",all_line_stops:"Alle Haltestellen auf dieser Strecke",consequence:"konsequenz",daily_from_to:"T\xE4glich von {{from}} bis {{to}}",download:"Herunterladen",duration_text:"Dauer",error:"Fehler",export_all_region:"Ganze Region exportieren",export_format_title:"Format",exporting:"Exportieren ...",from:"ab {{from}}",from_to:"von {{from}} bis {{to}}",geolocation_button_title_off:"Geolokalisierung deaktivieren",geolocation_button_title_on:"Geolokalisierung aktivieren",input_copy_success:"Kopiert!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Fahrrad, andere Anbieter",[Et.cargobikeFrelo]:"Lastenfrelo",[Et.cargobikeOthers]:"Cargobike, andere Anbieter",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Liniennetzpl\xE4ne",[Et.mapset]:"Mapset-Pl\xE4ne",[Et.mitfahrpunkte]:"Mitfahrpunkte",[Et.notifications]:"Meldungen",[Et.pois]:"POIs",[Et.realtime]:"Echtzeit",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stationen",[Et.tarifzonen]:"Tarifzonen",[Et.verkaufsstellen]:"Verkaufsstellen",layertree_menu_title:"Ebenen",linesnetworkplan:"plan retea linii",no_details_available:"Keine Details verf\xFCgbar",no_stops_found:"Keine Haltestellen gefunden",notifications:"notificari",permalink_input_hint:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren.",platform_ferry:"St.",platform_other:"Kan.",platform_rail:"Gl.",print_menu_title:"Drucken",reason:"Grund",recommendation:"Empfehlung",search_menu_title:"Suchen",share_email_send:"E-Mail senden",share_image_save:"Bild speichern",share_menu_title:"Teilen",stops_search_placeholder:"Haltestellen suchen",zoomin:"Hineinzoomen",zoomout:"Herauszoomen"},en:{affected_lines:"Affected lines",affected_stops:"Affected stops",all_line_stops:"All stops on this line",consequence:"Consequence",daily_from_to:"Daily from {{from}} to {{to}}",download:"Download",duration_text:"Duration",error:"Error",export_all_region:"Export entire region",export_format_title:"Format",exporting:"Exporting ...",from:"from {{from}}",from_to:"from {{from}} to {{to}}",geolocation_button_title_off:"Disable geolocation",geolocation_button_title_on:"Enable geolocation",input_copy_success:"Copied!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicycle, other providers",[Et.cargobikeFrelo]:"Cargo bike Frelo",[Et.cargobikeOthers]:"Cargo bike, other providers",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Lines Network Plan",[Et.mapset]:"Mapset plans",[Et.mitfahrpunkte]:"Carpooling Points",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Realtime",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stations",[Et.tarifzonen]:"Tariff Zones",[Et.verkaufsstellen]:"Sales Outlets",layertree_menu_title:"Layers",no_details_available:"No details available",no_stops_found:"No stops found",permalink_input_hint:"You can also copy the link from the browser address bar.",platform_ferry:"Pier",platform_other:"Std.",platform_rail:"Pl.",print_menu_title:"Print",reason:"Reason",recommendation:"Recommendation",search_menu_title:"Search",share_email_send:"Send email",share_image_save:"Save image",share_menu_title:"Share",stops_search_placeholder:"Search for stop",zoomin:"Zoom in",zoomout:"Zoom out"},fr:{affected_lines:"Lignes affect\xE9es",affected_stops:"Arr\xEAts affect\xE9s",all_line_stops:"Tous les arr\xEAts sur cette ligne",consequence:"Cons\xE9quence",daily_from_to:"Tous les jours de {{from}} \xE0 {{to}}",download:"T\xE9l\xE9charger",duration_text:"Dur\xE9e",error:"Erreur",export_all_region:"Exporter toute la r\xE9gion",export_format_title:"Format",exporting:"Exportation ...",from:"\xE0 partir du {{from}}",from_to:"de {{from}} \xE0 {{to}}",geolocation_button_title_off:"D\xE9sactiver la g\xE9olocalisation",geolocation_button_title_on:"Activer la g\xE9olocalisation",input_copy_success:"Copi\xE9!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"V\xE9lo, autres fournisseurs",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, autres fournisseurs",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Voiture, autres fournisseurs",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Plans du r\xE9seau",[Et.mapset]:"Plans de Mapset",[Et.mitfahrpunkte]:"Points de covoiturage",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Temps r\xE9el",[Et.sharedMobility]:"Mobilit\xE9 partag\xE9e",[Et.stations]:"Stations",[Et.tarifzonen]:"Zones tarifaires",[Et.verkaufsstellen]:"Points de vente",layertree_menu_title:"Couches",no_details_available:"Aucun d\xE9tail disponible",no_stops_found:"Aucun arr\xEAt trouv\xE9",permalink_input_hint:"Vous pouvez aussi copier le lien depuis la barre d'adresse du navigateur.",platform_ferry:"Quai",platform_other:"Quai",platform_rail:"Voie",print_menu_title:"Imprimer",reason:"Raison",recommendation:"Recommandation",search_menu_title:"Rechercher",share_email_send:"Envoyer un email",share_image_save:"Enregistrer l'image",share_menu_title:"Partager",stops_search_placeholder:"Chercher un arr\xEAt",zoomin:"Zoomer",zoomout:"D\xE9zoomer"},it:{affected_lines:"Linee interessate",affected_stops:"Fermate interessate",all_line_stops:"Tutte le fermate su questa linea",consequence:"Conseguenza",daily_from_to:"Tutti i giorni da {{from}} a {{to}}",download:"Scarica",duration_text:"Durata",error:"Errore",export_all_region:"Esporta l'intera regione",export_format_title:"Formato",exporting:"Esportazione ...",from:"da {{from}}",from_to:"da {{from}} a {{to}}",geolocation_button_title_off:"Disattiva geolocalizzazione",geolocation_button_title_on:"Attiva geolocalizzazione",input_copy_success:"Copiato!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicicletta, altri fornitori",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, altri fornitori",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, altri fornitori",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Piani della rete",[Et.mapset]:"Piani di Mapset",[Et.mitfahrpunkte]:"Punti di carpooling",[Et.notifications]:"Notifiche",[Et.pois]:"POI",[Et.realtime]:"In tempo reale",[Et.sharedMobility]:"Mobilit\xE0 condivisa",[Et.stations]:"Stazioni",[Et.tarifzonen]:"Zone tariffarie",[Et.verkaufsstellen]:"Punti vendita",layertree_menu_title:"Livelli",no_details_available:"Nessun dettaglio disponibile",no_stops_found:"Nessuna fermata trovata",permalink_input_hint:"Puoi anche copiare il link dalla barra degli indirizzi del browser.",platform_ferry:"Imb.",platform_other:"Cor.",platform_rail:"Bin.",print_menu_title:"Stampa",reason:"Motivo",recommendation:"Raccomandazione",search_menu_title:"Cerca",share_email_send:"Invia email",share_image_save:"Salva immagine",share_menu_title:"Condividi",stops_search_placeholder:"Ricerca delle fermate",zoomin:"Zoom avanti",zoomout:"Zoom indietro"}},QX=mL1;var vL1=UX(QX),wl=vL1;var HX=["mwc:permalink","mwc:selectedfeature","mwc:singleclick","mwc:attribute"];function yL1({eventNode:r}){let{setPreviewNotifications:t}=Rt();return tt(()=>{let e=i=>{i.data.situations&&t(i.data.situations)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[t]),tt(()=>{if(!r)return;let e=i=>{i.type==="mwc:attribute"&&delete i.data.children,i.type==="mwc:selectedfeature"&&i.data?.properties?.olGeometry&&delete i.data.properties.olGeometry,window.parent?.postMessage({data:i.data,type:i.type},"*")};return HX.forEach(i=>{r.addEventListener(i,e)}),window.parent?.postMessage({data:!0,type:"mwc:messageready"},"*"),()=>{HX.forEach(i=>{r.removeEventListener(i,e)})}},[r]),null}var fP=ht(yL1);var _L1='<a href="https://developer.geops.io/">geOps API key</a>',VX='<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>',xL1='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',pP='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',Yy='<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>',LP='<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>',wL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${_L1}`,public:!1},baselayer:{defaultValue:"de.rvf_moco",description:`The style's name from the ${VX}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,public:!1},center:{description:"The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",public:!0},details:{defaultValue:"true",description:"When a feature of a queryable layer is clicked, it displays informations about it.",public:!0,type:"boolean"},embed:{defaultValue:"false",description:"Toggle the embedded navigation mode.<br/>In this mode zooming with mouse wheel is deactivated and, on touch device, you can only navigate with two finger, a warning message is displayed to warn the user.",public:!0,type:"boolean"},extent:{defaultValue:Mf.join(","),description:"The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",public:!0},geolocation:{defaultValue:"true",description:"Toggle the display of the geolocation button or not.",public:!0,type:"boolean"},lang:{defaultValue:"de",description:"The language to use for the map. Supported languages are : de, en, fr, it.",public:!1},layers:{defaultValue:null,description:`A comma separated list of layers's name to make visible on load, others are hidden. If empty, all layers will be hidden except the baselayer.<br/>Layers available are ${Object.values(Et).join(", ")}.`,public:!0},layersconfig:{description:`A JSON string to configure the layers and other components associated to it.<br/>
1551
1551
  The layers available are : ${zO.toString()}.<br/>
1552
1552
  Definition for a layer :
1553
1553
  <pre style="font-size: 12px; overflow: auto;">{
@@ -3583,7 +3583,7 @@ html {
3583
3583
  --tw-drop-shadow: initial;
3584
3584
  --tw-duration: initial;
3585
3585
  --tw-ease: initial;
3586
- }`}),W("style",{children:bA}),W("style",{children:GX}),W(JM.Provider,{value:qt,children:[W(nB,{}),W(rP,{replaceState:r1}),W(cB,{node:t.current,wcAttributes:r}),W(fP,{eventNode:t.current}),W(uP,{}),W(eB,{}),W(tB,{}),J&&W(eP,{}),g1&&W(Xy,{}),x1&&W(wA,{}),E&&W(oB,{}),E&&W(sB,{}),V&&W(tP,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W($y,{})})]})]})}var ML1=ht(bL1),jX={};Object.entries(ds).forEach(([r])=>{jX[r]=ds[r].defaultValue||null});function BL1(r){return W(ML1,{...jX,...r})}var qX=ht(BL1);function SL1(r){let[t,e]=wt(),[i,o]=wt(),[n,l]=wt(),[A,d]=wt(),L=ge(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(OF.Provider,{value:L,children:W(qX,{...r})})}var EL1=ht(SL1),KX={};Object.entries(ds).forEach(([r])=>{KX[r]=ds[r].defaultValue||null});function TL1(r){return W(EL1,{...KX,...r})}var Jy=ht(TL1);var WX;(function(r){r.Bus="BUS",r.Cablecar="CABLECAR",r.Coach="COACH",r.Ferry="FERRY",r.Funicular="FUNICULAR",r.Gondola="GONDOLA",r.Rail="RAIL",r.Subway="SUBWAY",r.Tram="TRAM"})(WX||(WX={}));var $X;(function(r){r.Error="ERROR",r.Info="INFO",r.Permission="PERMISSION",r.Validation="VALIDATION",r.Warning="WARNING"})($X||($X={}));var XX;(function(r){r.Asc="ASC",r.AscNullsFirst="ASC_NULLS_FIRST",r.AscNullsLast="ASC_NULLS_LAST",r.Desc="DESC",r.DescNullsFirst="DESC_NULLS_FIRST",r.DescNullsLast="DESC_NULLS_LAST"})(XX||(XX={}));var YX;(function(r){r.Construction="CONSTRUCTION",r.Disruption="DISRUPTION",r.IndustrialAction="INDUSTRIAL_ACTION",r.LiftFailure="LIFT_FAILURE",r.Other="OTHER",r.RailReplacement="RAIL_REPLACEMENT",r.SpecialEvent="SPECIAL_EVENT",r.VehicleFaulure="VEHICLE_FAULURE",r.Warning="WARNING"})(YX||(YX={}));var JX;(function(r){r.AdditionalRide="ADDITIONAL_RIDE",r.AdditionalStop="ADDITIONAL_STOP",r.Boarding="BOARDING",r.ChangeOfPlatform="CHANGE_OF_PLATFORM",r.Delay="DELAY",r.DiscontinuedOperation="DISCONTINUED_OPERATION",r.Disruption="DISRUPTION",r.DisturbanceRectified="DISTURBANCE_RECTIFIED",r.Diverted="DIVERTED",r.GoToGate="GO_TO_GATE",r.IrregularTraffic="IRREGULAR_TRAFFIC",r.LimitedOperation="LIMITED_OPERATION",r.LineCancellation="LINE_CANCELLATION",r.MajorDelays="MAJOR_DELAYS",r.MinorDelays="MINOR_DELAYS",r.OnTime="ON_TIME",r.OperationTimeExtension="OPERATION_TIME_EXTENSION",r.ReplacementRide="REPLACEMENT_RIDE",r.StopCancelled="STOP_CANCELLED",r.StopMoved="STOP_MOVED",r.StopOnDemand="STOP_ON_DEMAND",r.SubstitutedStop="SUBSTITUTED_STOP",r.TemporarilyNonStopping="TEMPORARILY_NON_STOPPING",r.TemporaryStopplace="TEMPORARY_STOPPLACE",r.TrainShortened="TRAIN_SHORTENED",r.TripCancellation="TRIP_CANCELLATION",r.UndefinedStatus="UNDEFINED_STATUS",r.Unknown="UNKNOWN",r.WagonOrderChanged="WAGON_ORDER_CHANGED"})(JX||(JX={}));var tY;(function(r){r.Changes="CHANGES",r.Disruption="DISRUPTION",r.Information="INFORMATION"})(tY||(tY={}));var no;(function(r){r.Normal="NORMAL",r.NoImpact="NO_IMPACT",r.Severe="SEVERE",r.Slight="SLIGHT",r.Undefined="UNDEFINED",r.Unknown="UNKNOWN",r.VerySevere="VERY_SEVERE",r.VerySlight="VERY_SLIGHT"})(no||(no={}));var eY;(function(r){r.High="HIGH",r.Low="LOW",r.Normal="NORMAL",r.Undefined="UNDEFINED"})(eY||(eY={}));var IL1='<a href="https://developer.geops.io/">geOps API key</a>',rY='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',FL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${IL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${rY} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${rY} url to use.`,public:!1}},MA=FL1;var iY={[no.NoImpact]:2,[no.Normal]:5,[no.Severe]:6,[no.Slight]:4,[no.Undefined]:1,[no.Unknown]:0,[no.VerySevere]:7,[no.VerySlight]:3};function PL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=wt([]);return tt(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,includeGeoms:!1,includeLines:!0,includeStops:!0,publicNow:!0}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),tt(()=>{wl.locale(t)},[t]),W(mc.Provider,{value:wl,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.sort((l,A)=>{let d=l.affectedTimeIntervalsStart,L=A.affectedTimeIntervalsStart;if(d&&L){if(d.split("T")[0]===L.split("T")[0]){let C=l.publications.find(E=>!!E.severity)?.severity||0,B=A.publications.find(E=>!!E.severity)?.severity||0;return iY[C]>iY[B]?-1:1}return d<L?-1:1}if(!d)return 1;if(!L)return-1}).map(l=>(console.log("Rendering situation",l.id,l.title),W($p,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id)))})]})}var nY={};Object.entries(MA).forEach(([r])=>{nY[r]=MA[r].defaultValue||null});function RL1(r){return W(PL1,{...nY,...r})}var CP=ht(RL1);var zL1='<a href="https://developer.geops.io/">geOps API key</a>',bl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',DL1={apikey:{description:`Your ${zL1}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${bl} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${bl} documentation.`,public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${bl} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${bl} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${bl} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
3586
+ }`}),W("style",{children:bA}),W("style",{children:GX}),W(JM.Provider,{value:qt,children:[W(nB,{}),W(rP,{replaceState:r1}),W(cB,{node:t.current,wcAttributes:r}),W(fP,{eventNode:t.current}),W(uP,{}),W(eB,{}),W(tB,{}),J&&W(eP,{}),g1&&W(Xy,{}),x1&&W(wA,{}),E&&W(oB,{}),E&&W(sB,{}),V&&W(tP,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W($y,{})})]})]})}var ML1=ht(bL1),jX={};Object.entries(ds).forEach(([r])=>{jX[r]=ds[r].defaultValue||null});function BL1(r){return W(ML1,{...jX,...r})}var qX=ht(BL1);function SL1(r){let[t,e]=wt(),[i,o]=wt(),[n,l]=wt(),[A,d]=wt(),L=ge(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(OF.Provider,{value:L,children:W(qX,{...r})})}var EL1=ht(SL1),KX={};Object.entries(ds).forEach(([r])=>{KX[r]=ds[r].defaultValue||null});function TL1(r){return W(EL1,{...KX,...r})}var Jy=ht(TL1);var WX;(function(r){r.Bus="BUS",r.Cablecar="CABLECAR",r.Coach="COACH",r.Ferry="FERRY",r.Funicular="FUNICULAR",r.Gondola="GONDOLA",r.Rail="RAIL",r.Subway="SUBWAY",r.Tram="TRAM"})(WX||(WX={}));var $X;(function(r){r.Error="ERROR",r.Info="INFO",r.Permission="PERMISSION",r.Validation="VALIDATION",r.Warning="WARNING"})($X||($X={}));var XX;(function(r){r.Asc="ASC",r.AscNullsFirst="ASC_NULLS_FIRST",r.AscNullsLast="ASC_NULLS_LAST",r.Desc="DESC",r.DescNullsFirst="DESC_NULLS_FIRST",r.DescNullsLast="DESC_NULLS_LAST"})(XX||(XX={}));var YX;(function(r){r.Construction="CONSTRUCTION",r.Disruption="DISRUPTION",r.IndustrialAction="INDUSTRIAL_ACTION",r.LiftFailure="LIFT_FAILURE",r.Other="OTHER",r.RailReplacement="RAIL_REPLACEMENT",r.SpecialEvent="SPECIAL_EVENT",r.VehicleFaulure="VEHICLE_FAULURE",r.Warning="WARNING"})(YX||(YX={}));var JX;(function(r){r.AdditionalRide="ADDITIONAL_RIDE",r.AdditionalStop="ADDITIONAL_STOP",r.Boarding="BOARDING",r.ChangeOfPlatform="CHANGE_OF_PLATFORM",r.Delay="DELAY",r.DiscontinuedOperation="DISCONTINUED_OPERATION",r.Disruption="DISRUPTION",r.DisturbanceRectified="DISTURBANCE_RECTIFIED",r.Diverted="DIVERTED",r.GoToGate="GO_TO_GATE",r.IrregularTraffic="IRREGULAR_TRAFFIC",r.LimitedOperation="LIMITED_OPERATION",r.LineCancellation="LINE_CANCELLATION",r.MajorDelays="MAJOR_DELAYS",r.MinorDelays="MINOR_DELAYS",r.OnTime="ON_TIME",r.OperationTimeExtension="OPERATION_TIME_EXTENSION",r.ReplacementRide="REPLACEMENT_RIDE",r.StopCancelled="STOP_CANCELLED",r.StopMoved="STOP_MOVED",r.StopOnDemand="STOP_ON_DEMAND",r.SubstitutedStop="SUBSTITUTED_STOP",r.TemporarilyNonStopping="TEMPORARILY_NON_STOPPING",r.TemporaryStopplace="TEMPORARY_STOPPLACE",r.TrainShortened="TRAIN_SHORTENED",r.TripCancellation="TRIP_CANCELLATION",r.UndefinedStatus="UNDEFINED_STATUS",r.Unknown="UNKNOWN",r.WagonOrderChanged="WAGON_ORDER_CHANGED"})(JX||(JX={}));var tY;(function(r){r.Changes="CHANGES",r.Disruption="DISRUPTION",r.Information="INFORMATION"})(tY||(tY={}));var no;(function(r){r.Normal="NORMAL",r.NoImpact="NO_IMPACT",r.Severe="SEVERE",r.Slight="SLIGHT",r.Undefined="UNDEFINED",r.Unknown="UNKNOWN",r.VerySevere="VERY_SEVERE",r.VerySlight="VERY_SLIGHT"})(no||(no={}));var eY;(function(r){r.High="HIGH",r.Low="LOW",r.Normal="NORMAL",r.Undefined="UNDEFINED"})(eY||(eY={}));var IL1='<a href="https://developer.geops.io/">geOps API key</a>',rY='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',FL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${IL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${rY} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${rY} url to use.`,public:!1}},MA=FL1;var iY={[no.NoImpact]:2,[no.Normal]:5,[no.Severe]:6,[no.Slight]:4,[no.Undefined]:1,[no.Unknown]:0,[no.VerySevere]:7,[no.VerySlight]:3};function PL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=wt([]);return tt(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,includeGeoms:!1,includeLines:!0,includeStops:!0,isEdited:!0,publicNow:!0}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),tt(()=>{wl.locale(t)},[t]),W(mc.Provider,{value:wl,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.sort((l,A)=>{let d=l.affectedTimeIntervalsStart,L=A.affectedTimeIntervalsStart;if(d&&L){if(d.split("T")[0]===L.split("T")[0]){let C=l.publications.find(E=>!!E.severity)?.severity||0,B=A.publications.find(E=>!!E.severity)?.severity||0;return iY[C]>iY[B]?-1:1}return d<L?-1:1}if(!d)return 1;if(!L)return-1}).map(l=>(console.log("Rendering situation",l.id,l.title),W($p,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id)))})]})}var nY={};Object.entries(MA).forEach(([r])=>{nY[r]=MA[r].defaultValue||null});function RL1(r){return W(PL1,{...nY,...r})}var CP=ht(RL1);var zL1='<a href="https://developer.geops.io/">geOps API key</a>',bl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',DL1={apikey:{description:`Your ${zL1}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${bl} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${bl} documentation.`,public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${bl} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${bl} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${bl} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
3587
3587
  ident_source (for id and code fields). Possible values: sbb, db. See the ${bl} documentation.`,public:!0},reflocation:{description:`Coordinates in WGS84 (in lat,lon order) used to rank stops close to this position higher. See the ${bl} documentation.`,public:!0},url:{defaultValue:"https://api.geops.io/stops/v1/",description:`The URL to the ${bl}.`,public:!0}},BA=DL1;function kL1(r){return W(mc.Provider,{value:wl,children:[W("style",{children:bA}),W(fL,{...r})]})}var oY={};Object.entries(BA).forEach(([r])=>{oY[r]=BA[r].defaultValue||null});function OL1(r){return W(kL1,{...oY,...r})}var gP=ht(OL1);KL(Jy,"geops-mobility",Object.keys(ds),{mode:"open",shadow:!0});KL(gP,"geops-mobility-search",Object.keys(BA),{mode:"open",shadow:!0});KL(CP,"geops-mobility-notifications",Object.keys(MA),{mode:"open",shadow:!0});})();
3588
3588
  /*! Bundled license information:
3589
3589
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.80",
5
+ "version": "0.1.83",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -50,6 +50,7 @@ function MobilityNotifications({
50
50
  includeGeoms: false,
51
51
  includeLines: true,
52
52
  includeStops: true,
53
+ isEdited: true,
53
54
  publicNow: true, // improve caching efficiency compare to use of publicAt
54
55
  })
55
56
  .then((data) => {
@@ -74,6 +75,7 @@ function MobilityNotifications({
74
75
  {situations
75
76
  ?.sort((a, b) => {
76
77
  // sort by startDate
78
+ // TODO the sort by date should be done server side
77
79
  const startDateA = a.affectedTimeIntervalsStart;
78
80
  const startDateB = b.affectedTimeIntervalsStart;
79
81
  if (startDateA && startDateB) {
@@ -25,6 +25,8 @@ function NotificationsLayer(props?: Partial<MocoLayerOptions>) {
25
25
  apiKey: apikey,
26
26
  apiParameters: {
27
27
  contentMedium: true,
28
+ isEdited: true,
29
+ publicNow: true,
28
30
  },
29
31
  maplibreLayer: baseLayer,
30
32
  name: LAYER_NAME_NOTIFICATIONS,
@@ -29,10 +29,9 @@ function OverlayDetailsFooter({
29
29
  }
30
30
 
31
31
  let id = feature?.get("id");
32
- const situation = feature?.get("situation");
33
- if (situation) {
34
- const situationParsed = JSON.parse(situation);
35
- id = situationParsed?.id || id;
32
+ const situationId = feature?.get("situationId");
33
+ if (situationId) {
34
+ id = situationId;
36
35
  }
37
36
  return (
38
37
  <div {...props} className={twMerge("flex flex-row p-4", className)}>
@@ -77,6 +77,16 @@ function SituationDetails({
77
77
  // Find the current publication(s) at the current date
78
78
  publicationsToDisplay =
79
79
  publicationsArr?.filter(({ publicationWindows }) => {
80
+ // In some cases publicationWindows can be undefined here but defined at the
81
+ // root of the object so we apply the root publicationWindows to all publications with empty one
82
+ if (
83
+ !publicationWindows?.length &&
84
+ situation?.publicationWindows?.length
85
+ ) {
86
+ // @ts-expect-error we should not set this value directly
87
+ // eslint-disable-next-line no-param-reassign
88
+ publicationWindows = situation?.publicationWindows;
89
+ }
80
90
  return publicationWindows.find(({ endTime, startTime }) => {
81
91
  const now = new Date();
82
92
  const startT = new Date(startTime);
@@ -235,12 +245,13 @@ function SituationDetails({
235
245
  },
236
246
  )}
237
247
  <div className={isOpen ? "my-4 flex flex-col gap-4" : "hidden"}>
238
- <div
239
- dangerouslySetInnerHTML={{
240
- __html:
241
- textualContent?.description || t("no_details_available"),
242
- }}
243
- />
248
+ {textualContent?.description && (
249
+ <div
250
+ dangerouslySetInnerHTML={{
251
+ __html: textualContent?.description,
252
+ }}
253
+ />
254
+ )}
244
255
  {!!textualContentMultilingual?.images?.length && (
245
256
  <div className="flex flex-wrap gap-2">
246
257
  {textualContentMultilingual.images.map(
@@ -1,2 +1 @@
1
1
  export { default } from "./StopsSearch";
2
- export type { StopsFeature, StopsSearchProps } from "./StopsSearch";