From 39f40fa0f71c3505367e02a7e92066efef5df7b2 Mon Sep 17 00:00:00 2001 From: Alexander Ackermann Date: Mon, 10 Nov 2025 13:32:39 +0100 Subject: [PATCH] chore: bump web app maps to v1.0.2 --- .../opencloud/apps/maps/js/maps-DKGjis05.js | 24 ------------------- .../opencloud/apps/maps/js/maps-uKkx1qsf.js | 21 ++++++++++++++++ config/opencloud/apps/maps/manifest.json | 2 +- 3 files changed, 22 insertions(+), 25 deletions(-) delete mode 100644 config/opencloud/apps/maps/js/maps-DKGjis05.js create mode 100644 config/opencloud/apps/maps/js/maps-uKkx1qsf.js diff --git a/config/opencloud/apps/maps/js/maps-DKGjis05.js b/config/opencloud/apps/maps/js/maps-DKGjis05.js deleted file mode 100644 index 5a4b077..0000000 --- a/config/opencloud/apps/maps/js/maps-DKGjis05.js +++ /dev/null @@ -1,24 +0,0 @@ -define(["require","@opencloud-eu/web-pkg","vue","vue3-gettext"],function(Sl,Pe,x,tn){"use strict";var Jn=document.createElement("style");Jn.textContent=`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--ext-spacing:4px}}@layer base,components;@layer utilities{.ext\\:absolute{position:absolute}.ext\\:top-2{top:calc(var(--ext-spacing)*2)}.ext\\:right-2{right:calc(var(--ext-spacing)*2)}.ext\\:z-1{z-index:1}.ext\\:z-990{z-index:990}.ext\\:flex{display:flex}.ext\\:grid{display:grid}.ext\\:size-full{width:100%;height:100%}.ext\\:h-\\[200px\\]{height:200px}.ext\\:h-full{height:100%}.ext\\:grid-cols-\\[auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:auto minmax(0,1fr)}.ext\\:flex-col{flex-direction:column}.ext\\:rounded{border-radius:.25rem}.ext\\:p-2{padding:calc(var(--ext-spacing)*2)}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-zoom{border:0!important}.leaflet-control-zoom-in,.leaflet-control-zoom-out{background:#fffc!important} -/*$vite$:1*/`,document.head.appendChild(Jn);function Fo(i,s){for(var r=0;rl[u]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const Wo={bg:{},af:{},ar:{},bs:{},cs:{},de:{Distance:"Entfernung","Elevation Gain":"Anstieg","Elevation Loss":"Abstieg",Location:"Position",Maps:"Karten",Name:"Name","No files with location data":"Keine Dateien mit Positions-Daten vorhanden","Switch to map view":"Zur Kartenansicht wechseln"},el:{},et:{},es:{},gl:{},fr:{Distance:"Distance","Elevation Gain":"Dénivelé positif","Elevation Loss":"Dénivelé négatif",Location:"Localisation",Maps:"Cartes",Name:"Nom","No files with location data":" Aucun fichier ne contient de données de localisation","Switch to map view":" Passer à l'affichage de la carte"},he:{},hr:{},id:{},ja:{},nl:{Distance:"Afstand","Elevation Gain":"Hoogtetoename","Elevation Loss":"Hoogteafname",Location:"Locatie",Maps:"Kaarten",Name:"Naam","No files with location data":"Geen bestanden met locatiegegevens","Switch to map view":"Schakelen naar kaartweergave"},pl:{},it:{},ka:{},pt:{},ko:{},ro:{},si:{},sk:{},ru:{Distance:"Расстояние","Elevation Gain":"Увеличение высоты","Elevation Loss":"Уменьшение высоты",Location:"Локация",Maps:"Карты",Name:"Имя","No files with location data":"Нет файлов с информацией о локации","Switch to map view":"Переключиться в режим карты"},sq:{},sv:{},sr:{},ta:{},tr:{},ug:{},uk:{},zh:{}};function jo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var se={exports:{}};/* @preserve - * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com - * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */var Go=se.exports,Xn;function Uo(){return Xn||(Xn=1,function(i,s){(function(r,l){l(s)})(Go,function(r){var l="1.9.4";function u(t){var e,n,o,a;for(n=1,o=arguments.length;n"u"||!L||!L.Mixin)){t=W(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};C.prototype={clone:function(){return new C(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new C(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new C(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Ti(this.x),this.y=Ti(this.y),this},distanceTo:function(t){t=M(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function M(t,e,n){return t instanceof C?t:W(t)?new C(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new C(t.x,t.y):new C(t,e,n)}function H(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>=e.x&&o.x<=n.x,f=a.y>=e.y&&o.y<=n.y;return h&&f},overlaps:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>e.x&&o.xe.y&&o.y=e.lat&&a.lat<=n.lat&&o.lng>=e.lng&&a.lng<=n.lng},intersects:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>=e.lat&&o.lat<=n.lat,f=a.lng>=e.lng&&o.lng<=n.lng;return h&&f},overlaps:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>e.lat&&o.late.lng&&o.lng1,wa=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",w,e),window.removeEventListener("testPassiveEventSupport",w,e)}catch{}return t}(),ba=function(){return!!document.createElement("canvas").getContext}(),Ln=!!(document.createElementNS&&Mi("svg").createSVGRect),Aa=!!Ln&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),La=!Ln&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),Pa=navigator.platform.indexOf("Mac")===0,za=navigator.platform.indexOf("Linux")===0;function vt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var z={ie:Ie,ielt9:ha,edge:Si,webkit:wn,android:Oi,android23:Zi,androidStock:ca,opera:bn,chrome:Ii,gecko:Bi,safari:fa,phantom:Ni,opera12:Ri,win:da,ie3d:Di,webkit3d:An,gecko3d:Fi,any3d:_a,mobile:fe,mobileWebkit:pa,mobileWebkit3d:ma,msPointer:Wi,pointer:ji,touch:ga,touchNative:Gi,mobileOpera:va,mobileGecko:ya,retina:xa,passiveEvents:wa,canvas:ba,svg:Ln,vml:La,inlineSvg:Aa,mac:Pa,linux:za},Ui=z.msPointer?"MSPointerDown":"pointerdown",Hi=z.msPointer?"MSPointerMove":"pointermove",Vi=z.msPointer?"MSPointerUp":"pointerup",Qi=z.msPointer?"MSPointerCancel":"pointercancel",Pn={touchstart:Ui,touchmove:Hi,touchend:Vi,touchcancel:Qi},qi={touchstart:Sa,touchmove:Be,touchend:Be,touchcancel:Be},Jt={},Ki=!1;function ka(t,e,n){return e==="touchstart"&&Ca(),qi[e]?(n=qi[e].bind(this,n),t.addEventListener(Pn[e],n,!1),n):(console.warn("wrong event specified:",e),w)}function Ta(t,e,n){if(!Pn[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Pn[e],n,!1)}function Ea(t){Jt[t.pointerId]=t}function Ma(t){Jt[t.pointerId]&&(Jt[t.pointerId]=t)}function Yi(t){delete Jt[t.pointerId]}function Ca(){Ki||(document.addEventListener(Ui,Ea,!0),document.addEventListener(Hi,Ma,!0),document.addEventListener(Vi,Yi,!0),document.addEventListener(Qi,Yi,!0),Ki=!0)}function Be(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Jt)e.touches.push(Jt[n]);e.changedTouches=[e],t(e)}}function Sa(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&nt(e),Be(t,e)}function Oa(t){var e={},n,o;for(o in t)n=t[o],e[o]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Za=200;function Ia(t,e){t.addEventListener("dblclick",e);var n=0,o;function a(h){if(h.detail!==1){o=h.detail;return}if(!(h.pointerType==="mouse"||h.sourceCapabilities&&!h.sourceCapabilities.firesTouchEvents)){var f=eo(h);if(!(f.some(function(p){return p instanceof HTMLLabelElement&&p.attributes.for})&&!f.some(function(p){return p instanceof HTMLInputElement||p instanceof HTMLSelectElement}))){var _=Date.now();_-n<=Za?(o++,o===2&&e(Oa(h))):o=1,n=_}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Ba(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var zn=De(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=De(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ji=de==="webkitTransition"||de==="OTransition"?de+"End":"transitionend";function Xi(t){return typeof t=="string"?document.getElementById(t):t}function _e(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return n==="auto"?null:n}function D(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function V(t){var e=t.parentNode;e&&e.removeChild(t)}function Ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Xt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function $t(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function kn(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=Re(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function I(t,e){if(t.classList!==void 0)for(var n=k(e),o=0,a=n.length;o0?2*window.devicePixelRatio:1;function io(t){return z.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Da:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Dn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var Fa={__proto__:null,on:S,off:U,stopPropagation:Gt,disableScrollPropagation:Rn,disableClickPropagation:ve,preventDefault:nt,stop:Ut,getPropagationPath:eo,getMousePosition:no,getWheelDelta:io,isExternalTarget:Dn,addListener:S,removeListener:U},oo=ue.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=jt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Q(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,Y(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=M(e.paddingTopLeft||e.padding||[0,0]),o=M(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),h=this.project(t),f=this.getPixelBounds(),_=st([f.min.add(n),f.max.subtract(o)]),p=_.getSize();if(!_.contains(h)){this._enforcingBounds=!0;var g=h.subtract(_.getCenter()),A=_.extend(h).getSize().subtract(p);a.x+=g.x<0?-A.x:A.x,a.y+=g.y<0?-A.y:A.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=u({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),h=o.subtract(a);return!h.x&&!h.y?this:(t.animate&&t.pan?this.panBy(h):(t.pan&&this._rawPanBy(h),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(d(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=u({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=d(this._handleGeolocationResponse,this),n=d(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,o=new F(e,n),a=o.toBounds(t.coords.accuracy*2),h=this._locateOptions;if(h.setView){var f=this.getBoundsZoom(a);this.setView(o,h.maxZoom?Math.min(f,h.maxZoom):f)}var _={latlng:o,bounds:a,timestamp:t.timestamp};for(var p in t.coords)typeof t.coords[p]=="number"&&(_[p]=t.coords[p]);this.fire("locationfound",_)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)V(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=D("div",n,e||this._mapPane);return t&&(this._panes[t]=o),o},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new at(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Y(t),n=M(n||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),h=this.getMaxZoom(),f=t.getNorthWest(),_=t.getSouthEast(),p=this.getSize().subtract(n),g=st(this.project(_,o),this.project(f,o)).getSize(),A=z.any3d?this.options.zoomSnap:1,T=p.x/g.x,B=p.y/g.y,ot=e?Math.max(T,B):Math.min(T,B);return o=this.getScaleZoom(ot,o),A&&(o=Math.round(o/(A/100))*(A/100),o=e?Math.ceil(o/A)*A:Math.floor(o/A)*A),Math.max(a,Math.min(h,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new C(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new H(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(N(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(M(t),e)},layerPointToLatLng:function(t){var e=M(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(N(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(N(t),N(e))},containerPointToLayerPoint:function(t){return M(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return M(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(M(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return no(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Xi(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");S(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,I(t,"leaflet-container"+(z.touch?" leaflet-touch":"")+(z.retina?" leaflet-retina":"")+(z.ielt9?" leaflet-oldie":"")+(z.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=_e(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),J(this._mapPane,new C(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(I(t.markerPane,"leaflet-zoom-hide"),I(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){J(this._mapPane,new C(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,n)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n&&n.pinch&&this.fire("zoom",n):((a||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){J(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[m(this._container)]=this;var e=t?U:S;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),z.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n=[],o,a=e==="mouseout"||e==="mouseover",h=t.target||t.srcElement,f=!1;h;){if(o=this._targets[m(h)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){f=!0;break}if(o&&o.listens(e,!0)&&(a&&!Dn(h,t)||(n.push(o),a))||h===this._container)break;h=h.parentNode}return!n.length&&!f&&!a&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var n=t.type;n==="mousedown"&&On(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=u({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var a=this._findEventTargets(t,e);if(n){for(var h=[],f=0;f0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=z.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){K(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=D("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=zn,o=this._proxy.style[n];Wt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Wt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return n.animate!==!0&&!this.getSize().contains(a)?!1:(Q(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,I(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(d(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&K(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Wa(t,e){return new R(t,e)}var mt=Lt.extend({options:{position:"topright"},initialize:function(t){O(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),o=t._controlCorners[n];return I(e,"leaflet-control"),n.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ye=function(t){return new mt(t)};R.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=D("div",e+"control-container",this._container);function o(a,h){var f=e+a+" "+e+h;t[a+h]=D("div",f,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)V(this._controlCorners[t]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ro=mt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(m(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=n):o=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(o),o.layerId=m(t.layer),S(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var h=document.createElement("span");e.appendChild(h),h.appendChild(o),h.appendChild(a);var f=t.overlay?this._overlaysList:this._baseLayersList;return f.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,o=[],a=[];this._handlingClick=!0;for(var h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.checked?o.push(n):e.checked||a.push(n);for(h=0;h=0;a--)e=t[a],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&on.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,S(t,"click",nt),this.expand();var e=this;setTimeout(function(){U(t,"click",nt),e._preventClick=!1})}}),ja=function(t,e,n){return new ro(t,e,n)},Fn=mt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=D("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,a){var h=D("a",n,o);return h.innerHTML=t,h.href="#",h.title=e,h.setAttribute("role","button"),h.setAttribute("aria-label",e),ve(h),S(h,"click",Ut),S(h,"click",a,this),S(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";K(this._zoomInButton,e),K(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(I(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(I(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});R.mergeOptions({zoomControl:!0}),R.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Fn,this.addControl(this.zoomControl))});var Ga=function(t){return new Fn(t)},so=mt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=D("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=D("div",e,n)),t.imperial&&(this._iScale=D("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e=t*3.2808399,n,o,a;e>5280?(n=e/5280,o=this._getRoundNum(n),this._updateScale(this._iScale,o+" mi",o/n)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Ua=function(t){return new so(t)},Ha='',Wn=mt.extend({options:{position:"bottomright",prefix:''+(z.inlineSvg?Ha+" ":"")+"Leaflet"},initialize:function(t){O(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=D("div","leaflet-control-attribution"),ve(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' ')}}});R.mergeOptions({attributionControl:!0}),R.addInitHook(function(){this.options.attributionControl&&new Wn().addTo(this)});var Va=function(t){return new Wn(t)};mt.Layers=ro,mt.Zoom=Fn,mt.Scale=so,mt.Attribution=Wn,ye.layers=ja,ye.zoom=Ga,ye.scale=Ua,ye.attribution=Va;var xt=Lt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});xt.addTo=function(t,e){return t.addHandler(e,this),this};var Qa={Events:ht},ao=z.touch?"touchstart mousedown":"mousedown",St=ue.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){O(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(S(this._dragStartTarget,ao,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(St._dragging===this&&this.finishDrag(!0),U(this._dragStartTarget,ao,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!kn(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){St._dragging===this&&this.finishDrag();return}if(!(St._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(St._dragging=this,this._preventOutline&&On(this._element),Mn(),pe(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=$i(this._element);this._startPoint=new C(e.clientX,e.clientY),this._startPos=jt(this._element),this._parentScale=Zn(n);var o=t.type==="mousedown";S(document,o?"mousemove":"touchmove",this._onMove,this),S(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new C(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)h&&(f=_,h=p);h>n&&(e[f]=1,Gn(t,e,n,o,f),Gn(t,e,n,f,a))}function Ja(t,e){for(var n=[t[0]],o=1,a=0,h=t.length;oe&&(n.push(t[o]),a=o);return ae.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function Xa(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function xe(t,e,n,o){var a=e.x,h=e.y,f=n.x-a,_=n.y-h,p=f*f+_*_,g;return p>0&&(g=((t.x-a)*f+(t.y-h)*_)/p,g>1?(a=n.x,h=n.y):g>0&&(a+=f*g,h+=_*g)),f=t.x-a,_=t.y-h,o?f*f+_*_:new C(a,h)}function dt(t){return!W(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function po(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),dt(t)}function mo(t,e){var n,o,a,h,f,_,p,g;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var A=N([0,0]),T=Y(t),B=T.getNorthWest().distanceTo(T.getSouthWest())*T.getNorthEast().distanceTo(T.getNorthWest());B<1700&&(A=jn(t));var ot=t.length,et=[];for(n=0;no){p=(h-o)/a,g=[_.x-p*(_.x-f.x),_.y-p*(_.y-f.y)];break}var lt=e.unproject(M(g));return N([lt.lat+A.lat,lt.lng+A.lng])}var $a={__proto__:null,simplify:uo,pointToSegmentDistance:co,closestPointOnSegment:Ka,clipSegment:_o,_getEdgeIntersection:je,_getBitCode:Ht,_sqClosestPointOnSegment:xe,isFlat:dt,_flat:po,polylineCenter:mo},Un={project:function(t){return new C(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new H([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,a=this.R_MINOR/n,h=Math.sqrt(1-a*a),f=h*Math.sin(o),_=Math.tan(Math.PI/4-o/2)/Math.pow((1-f)/(1+f),h/2);return o=-n*Math.log(Math.max(_,1e-10)),new C(t.lng*e*n,o)},unproject:function(t){for(var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),h=Math.exp(-t.y/n),f=Math.PI/2-2*Math.atan(h),_=0,p=.1,g;_<15&&Math.abs(p)>1e-7;_++)g=a*Math.sin(f),g=Math.pow((1-g)/(1+g),a/2),p=Math.PI/2-2*Math.atan(h*g)-f,f+=p;return new F(f*e,t.x*e/n)}},tl={__proto__:null,LonLat:Un,Mercator:Hn,SphericalMercator:gn},el=u({},Ct,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return ce(t,.5,-t,.5)}()}),go=u({},Ct,{code:"EPSG:4326",projection:Un,transformation:ce(1/180,1,-1/180,.5)}),nl=u({},Pt,{projection:Un,transformation:ce(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});Pt.Earth=Ct,Pt.EPSG3395=el,Pt.EPSG3857=yn,Pt.EPSG900913=la,Pt.EPSG4326=go,Pt.Simple=nl;var gt=ue.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});R.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=m(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return m(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?W(t)?t:[t]:[];for(var e=0,n=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){kt.prototype._setLatLngs.call(this,t),dt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return dt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new C(e,e);if(t=new H(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,a=this._rings.length,h;ot.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||kt.prototype._containsPoint.call(this,t,!0)}});function ul(t,e){return new ne(t,e)}var Tt=zt.extend({initialize:function(t,e){O(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=W(t)?t:t.features,n,o,a;if(e){for(n=0,o=e.length;n0&&a.push(a[0].slice()),a}function ie(t,e){return t.feature?u({},t.feature,{geometry:e}):qe(e)}function qe(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Kn={toGeoJSON:function(t){return ie(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};Ge.include(Kn),Vn.include(Kn),Ue.include(Kn),kt.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=Qe(this._latlngs,e?1:0,!1,t);return ie(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ne.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=e&&!dt(this._latlngs[0]),o=Qe(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),ie(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),te.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),ie(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var n=e==="GeometryCollection",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var h=a.toGeoJSON(t);if(n)o.push(h.geometry);else{var f=qe(h);f.type==="FeatureCollection"?o.push.apply(o,f.features):o.push(f)}}}),n?ie(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function xo(t,e){return new Tt(t,e)}var cl=xo,Ke=gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Y(e),O(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(I(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Xt(this._image),this},bringToBack:function(){return this._map&&$t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:D("img");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onload=d(this.fire,this,"load"),e.onerror=d(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Wt(this._image,n,e)},_reset:function(){var t=this._image,e=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();J(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ft(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),fl=function(t,e,n){return new Ke(t,e,n)},wo=Ke.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:D("video");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onloadeddata=d(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],a=0;a0?o:[e.src];return}W(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var h=0;ha?(e.height=a+"px",I(t,h)):K(t,h),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();J(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(_e(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,a=new C(this._containerLeft,-n-this._containerBottom);a._add(jt(this._container));var h=t.layerPointToContainerPoint(a),f=M(this.options.autoPanPadding),_=M(this.options.autoPanPaddingTopLeft||f),p=M(this.options.autoPanPaddingBottomRight||f),g=t.getSize(),A=0,T=0;h.x+o+p.x>g.x&&(A=h.x+o-g.x+p.x),h.x-A-_.x<0&&(A=h.x-_.x),h.y+n+p.y>g.y&&(T=h.y+n-g.y+p.y),h.y-T-_.y<0&&(T=h.y-_.y),(A||T)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([A,T]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),pl=function(t,e){return new Ye(t,e)};R.mergeOptions({closePopupOnClick:!0}),R.include({openPopup:function(t,e,n){return this._initOverlay(Ye,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),gt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ye,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof zt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ut(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ot)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Je=wt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){wt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=D("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,o=this._map,a=this._container,h=o.latLngToContainerPoint(o.getCenter()),f=o.layerPointToContainerPoint(t),_=this.options.direction,p=a.offsetWidth,g=a.offsetHeight,A=M(this.options.offset),T=this._getAnchor();_==="top"?(e=p/2,n=g):_==="bottom"?(e=p/2,n=0):_==="center"?(e=p/2,n=g/2):_==="right"?(e=0,n=g/2):_==="left"?(e=p,n=g/2):f.xthis.options.maxZoom||no?this._retainParent(a,h,f,o):!1)},_retainChildren:function(t,e,n,o){for(var a=2*t;a<2*t+2;a++)for(var h=2*e;h<2*e+2;h++){var f=new C(a,h);f.z=n+1;var _=this._tileCoordsToKey(f),p=this._tiles[_];if(p&&p.active){p.retain=!0;continue}else p&&p.loaded&&(p.retain=!0);n+1this.options.maxZoom||this.options.minZoom!==void 0&&a1){this._setView(t,n);return}for(var T=a.min.y;T<=a.max.y;T++)for(var B=a.min.x;B<=a.max.x;B++){var ot=new C(B,T);if(ot.z=this._tileZoom,!!this._isValidTile(ot)){var et=this._tiles[this._tileCoordsToKey(ot)];et?et.current=!0:f.push(ot)}}if(f.sort(function(lt,re){return lt.distanceTo(h)-re.distanceTo(h)}),f.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _t=document.createDocumentFragment();for(B=0;Bn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),a=o.add(n),h=e.unproject(o,t.z),f=e.unproject(a,t.z);return[h,f]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new at(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new C(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(V(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){I(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=w,t.onmousemove=w,z.ielt9&&this.options.opacity<1&&ft(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),d(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&Q(d(this._tileReady,this,t,null,a)),J(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(I(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),z.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(d(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new C(this._wrapX?P(t.x,this._wrapX):t.x,this._wrapY?P(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new H(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function vl(t){return new be(t)}var oe=be.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=O(this,e),e.detectRetina&&z.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return S(n,"load",d(this._tileOnLoad,this,e,n)),S(n,"error",d(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return ct(this._url,u(e,this.options))},_tileOnLoad:function(t,e){z.ielt9?setTimeout(d(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return n&&(t=e-t),t+o},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=w,e.onerror=w,!e.complete)){e.src=it;var n=this._tiles[t].coords;V(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",it),be.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===it))return be.prototype._tileReady.call(this,t,e,n)}});function Lo(t,e){return new oe(t,e)}var Po=oe.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=u({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=O(this,e);var a=e.detectRetina&&z.retina?2:1,h=this.getTileSize();n.width=h.x*a,n.height=h.y*a,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oe.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=st(n.project(e[0]),n.project(e[1])),a=o.min,h=o.max,f=(this._wmsVersion>=1.3&&this._crs===go?[a.y,a.x,h.y,h.x]:[a.x,a.y,h.x,h.y]).join(","),_=oe.prototype.getTileUrl.call(this,t);return _+pt(this.wmsParams,_,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+f},setParams:function(t,e){return u(this.wmsParams,t),e||this.redraw(),this}});function yl(t,e){return new Po(t,e)}oe.WMS=Po,Lo.wms=yl;var Et=gt.extend({options:{padding:.1},initialize:function(t){O(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),I(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),h=o.multiplyBy(-n).add(a).subtract(this._map._getNewPixelOrigin(t,e));z.any3d?Wt(this._container,h,n):J(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new H(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zo=Et.extend({options:{tolerance:0},getEvents:function(){var t=Et.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Et.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");S(t,"mousemove",this._onMouseMove,this),S(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),S(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,V(this._container),U(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=z.retina?2:1;J(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",z.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Et.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],o,a;for(a=0;a')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),xl={_initContainer:function(){this._container=D("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Et.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ae("shape");I(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ae("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;V(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Ae("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=W(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=Ae("fill")),a.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(a.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Xt(t._container)},_bringToBack:function(t){$t(t._container)}},Xe=z.vml?Ae:Mi,Le=Et.extend({_initContainer:function(){this._container=Xe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){V(this._container),U(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),J(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Xe("path");t.options.className&&I(e,t.options.className),t.options.interactive&&I(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){V(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Ci(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||n,a="a"+n+","+o+" 0 1,0 ",h=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+a+n*2+",0 "+a+-n*2+",0 ";this._setPath(t,h)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Xt(t._path)},_bringToBack:function(t){$t(t._path)}});z.vml&&Le.include(xl);function To(t){return z.svg||z.vml?new Le(t):null}R.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ko(t)||To(t)}});var Eo=ne.extend({initialize:function(t,e){ne.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function wl(t,e){return new Eo(t,e)}Le.create=Xe,Le.pointsToPath=Ci,Tt.geometryToLayer=He,Tt.coordsToLatLng=Qn,Tt.coordsToLatLngs=Ve,Tt.latLngToCoords=qn,Tt.latLngsToCoords=Qe,Tt.getFeature=ie,Tt.asFeature=qe,R.mergeOptions({boxZoom:!0});var Mo=xt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){S(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){U(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){V(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),pe(),Mn(),this._startPoint=this._map.mouseEventToContainerPoint(t),S(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=D("div","leaflet-zoom-box",this._container),I(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new H(this._point,this._startPoint),n=e.getSize();J(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(V(this._box),K(this._container,"leaflet-crosshair")),me(),Cn(),U(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(d(this._resetState,this),0);var e=new at(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});R.addInitHook("addHandler","boxZoom",Mo),R.mergeOptions({doubleClickZoom:!0});var Co=xt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?n-o:n+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});R.addInitHook("addHandler","doubleClickZoom",Co),R.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var So=xt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new St(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}I(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){K(this._map._container,"leaflet-grab"),K(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,a=(o-e+n)%t+e-n,h=(o+e+n)%t-e-n,f=Math.abs(a+n)0?h:-h))-e;this._delta=0,this._startTime=null,f&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+f):t.setZoomAround(this._lastMousePos,e+f))}});R.addInitHook("addHandler","scrollWheelZoom",Zo);var bl=600;R.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var Io=xt.extend({addHooks:function(){S(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){U(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new C(e.clientX,e.clientY),this._holdTimeout=setTimeout(d(function(){this._cancel(),this._isTapValid()&&(S(document,"touchend",nt),S(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),bl),S(document,"touchend touchcancel contextmenu",this._cancel,this),S(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){U(document,"touchend",nt),U(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),U(document,"touchend touchcancel contextmenu",this._cancel,this),U(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new C(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});R.addInitHook("addHandler","tapHold",Io),R.mergeOptions({touchZoom:z.touch,bounceAtZoomLimits:!0});var Bo=xt.extend({addHooks:function(){I(this._map._container,"leaflet-touch-zoom"),S(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){K(this._map._container,"leaflet-touch-zoom"),U(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),S(document,"touchmove",this._onTouchMove,this),S(document,"touchend touchcancel",this._onTouchEnd,this),nt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var h=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&h.x===0&&h.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var f=d(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(f,this,!0),nt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),U(document,"touchmove",this._onTouchMove,this),U(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});R.addInitHook("addHandler","touchZoom",Bo),R.BoxZoom=Mo,R.DoubleClickZoom=Co,R.Drag=So,R.Keyboard=Oo,R.ScrollWheelZoom=Zo,R.TapHold=Io,R.TouchZoom=Bo,r.Bounds=H,r.Browser=z,r.CRS=Pt,r.Canvas=zo,r.Circle=Vn,r.CircleMarker=Ue,r.Class=Lt,r.Control=mt,r.DivIcon=Ao,r.DivOverlay=wt,r.DomEvent=Fa,r.DomUtil=Ra,r.Draggable=St,r.Evented=ue,r.FeatureGroup=zt,r.GeoJSON=Tt,r.GridLayer=be,r.Handler=xt,r.Icon=ee,r.ImageOverlay=Ke,r.LatLng=F,r.LatLngBounds=at,r.Layer=gt,r.LayerGroup=te,r.LineUtil=$a,r.Map=R,r.Marker=Ge,r.Mixin=Qa,r.Path=Ot,r.Point=C,r.PolyUtil=qa,r.Polygon=ne,r.Polyline=kt,r.Popup=Ye,r.PosAnimation=oo,r.Projection=tl,r.Rectangle=Eo,r.Renderer=Et,r.SVG=Le,r.SVGOverlay=bo,r.TileLayer=oe,r.Tooltip=Je,r.Transformation=vn,r.Util=he,r.VideoOverlay=wo,r.bind=d,r.bounds=st,r.canvas=ko,r.circle=ll,r.circleMarker=al,r.control=ye,r.divIcon=gl,r.extend=u,r.featureGroup=ol,r.geoJSON=xo,r.geoJson=cl,r.gridLayer=vl,r.icon=rl,r.imageOverlay=fl,r.latLng=N,r.latLngBounds=Y,r.layerGroup=il,r.map=Wa,r.marker=sl,r.point=M,r.polygon=ul,r.polyline=hl,r.popup=pl,r.rectangle=wl,r.setOptions=O,r.stamp=m,r.svg=To,r.svgOverlay=_l,r.tileLayer=Lo,r.tooltip=ml,r.transformation=ce,r.version=l,r.videoOverlay=dl;var Al=window.L;r.noConflict=function(){return window.L=Al,this},window.L=r})}(se,se.exports)),se.exports}var Vt=Uo();const en=Fo({__proto__:null,default:jo(Vt)},[Vt]),nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABC1BMVEUAAAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAD///8AlAAAkgAAgQAAgwAAhgAAjQAAkAAAhwAElQQAigD7/fv3/PcfoR8LmQsAjABRtlFGskY8rTw0qjQAkQDx+fHp9unX7te+5L6W05ZjvmMUnRTi8+Lc8NzP68+q26qc1px0xXRAr0DM6szI6Mi04LSIzYhyxHJpwGkupy4spyzxfiXGAAAALXRSTlMA/QL59OffBr60qG9iDuzPujoJ746Ff3l0TUhAMycjGxJd18WunJhZLRgMZVI0U6/AAAACQklEQVQ4y32U53baQBBGR6L33k1zjZ0sLJJA9GoDjmt63v9JMrNarELs+4ODVvd8MxrtCmzU62opmg6no6VqU4VjQieFVI4JFH8qnwl5hUY+wJwkL+vgRK2kmJfTL6pDiMuAnqbrutaTMbGQLVgNaMM+J9YzXUj+8kGpioTekHcPcENjSK4NguaZCDDELUL8GTAkeAJEUQh9WjYny8XrxORvynmCnvOUSoiE1e5uMxo/PC9NUqiQ7wqNGLkDXDL3XzsWt7+meG1Qu5EbyEYogmrsN50D4xdT1glkoBG0IvjKSpApr9wKUWJQ8aNhYI3njpMnU3YShbgiivDJg8u4/YMhVCYMMTQ03uWLscsYzdEYonEGZWnMRx0Xv8mwM46N0V4aEYhLY7lxGeOFNPL0LKLT++8u426Cho5DbUOd5jHDR3txlfkp5x78BIk0GjrHkK1D+EYRBrWRBSjKqfPVo11jiQLHIiwGAJkcjZ1W/j6NrS5/rLh8c0Hazzfi1c2o7nSx2z5ud/MpCWua+YUKSNv3tkF4d3o/xV8SqEayBkQrzGSKJQn6JLBoFgRXfoWUQd/eyTONyQhB4pyhQo6x5kh/SPdx7TIEkkyAKYo8UvJE4QJN64BaVAhmQ5e+Mthch5nihaVb4KAWYF4hUHMf/rLPY/hKKrhIRJk7ItICD/WUU6ETe0Ql6VD8cThGLTlayctxv9cKCzfhvzRSTDaRAS/2x8jVxDHqZz9NohCCdwkVsduLBHxAtuBLN+FDWgXvqP4Bkoed0xIT03MAAAAASUVORK5CYII=",Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAELklEQVR4AWIYBaNgFIyCUTAKRsEoADRLF2uSFEEcwCMjpaRlfb9vcXeHK+5whjP+GuzzMFfuzBl3d4fx6ZK0iGC2exenC4d/tHdV/NL+bNTf2kf+ODLUFEF9X4sIMMip+tPIouX16FWLEROKYiXzAlh80FxQyWfQ6gL8w4gCvB53cJ/2OMZOJ8xIyEjYLeYiyGM2VOVp5rxLl9GKAP8RBEFdrqe60EaLAYM66KiTbjWjR1CMAEqQKprkKpWhjhTLDLQyn436nUukz9Ejc451dmLRZkOms9F0xuuwVwlPQ4Av2VGR98ex399N+txvxQP5NAIGMMdhWY6fBFozsUedcVOHBRbksh3Z7DbsV0Y0acKvEECxpiPxaBi11iBMOfNnvMUAAOaNJcSKAgR9mtmxh1xdmBJLXx2uUvlcEV2y4cSMNCMhICiAzMzrcdZPzU2s0nbyaZzX1BxZG9jq00xb7C/rkutcQ/1J/VxFZXbZRkNzAhQrWJwuFsoGoEkvuwvsTAfcVhOYI78trCrAM8ysmNR6lEcXTF4eh5pLLnORjGjWCQF5TgAszhYAI++B6+os+EZa2IUXABTIso3HC+xmMRnh1E7Hk0+mapQqKcixBUx4cg7zoIAgIUlErxrcOXPTb/KO7sB/nICWzgSUx8PO1WdNPtr3yZQmeUQFWdCsfzJ+QUYG0hmSCtxhc6T5phVPqcprDLJ8udQtCjSYfcWn9bcjGu8RVXKMgKcAFGBkJEuaIKnEUXpoj862d2SWuzY0CWgIgZm6BMFku1GYMhfiyLL5MWBIE5LNOpnMUYL41J3drM2kyW3bQwQCHkSuhwNqot7W1rCJBjQj4wJARtJksk4um2iiRB1Cf2nP3Uetabu+9ZAgL4hBJEiCs+BFyDDvrkAQgM0ccEnHItpog/Xkr+t3+22/04Nv/Sg2+RQxgAisyq4EtnQRvSpOohgGQNH5BOBOAL7wyl/fH+sb33rrdaBYpgPpYwJeEIOIkmdgKkl62S9aNGvmrBBzuQeYUPqyt/29fdUpzz2FFEOC1OY5IPOCQWSRo7Ah1V5ZimQTihKdquB83evu/u5wZzrnfQixSZyYZvzxL4Eh5BZ4E2owotmQSbWiBFSGsnPd/e2xbtzZ3gUKmD7Mn9Mar/Iv2w8iokAdVZ8pB4pcYp8zAEbX39uc1h7oRp3zOu7GNmf6nC+X478BDCCLsCCnbAOyKKRrwg1t0Rzs9nv0IULeogP8MAOsLAEGkBdgDB1s88fR9jrUfG9y/aSbdpWHAHmSP+QnGERgOGbZReuwxbOUPeQ7ZJSLtM8f6DFMUpXfoAf4+uH+gzNRAC0jfRDOkmtUSzVVCQLElGf0ND8pIPC7o+Q3/1nVL9novLU6SkEVTQlTpK/ojwEDyIN4ud7RQY9VI5lPY+A36Cn+/cAwMpz/G/IdAqGyx1q2VHAAAAAASUVORK5CYII=",on=()=>({createMap:(r,l,u)=>{const c=Vt.map(l,u),d=r?.tileLayerUrlTemplate||"https://tile.openstreetmap.org/{z}/{x}/{y}.png",v={maxZoom:19,attribution:"© OpenStreetMap",...r?.tileLayerOptions};return Vt.tileLayer(d,v).addTo(c),Vt.control.scale({imperial:!1}).addTo(c),c},createPinIcon:r=>Vt.icon({iconUrl:nn,shadowUrl:Ho,...r})}),Vo=x.defineComponent({__name:"LocationPanel",props:{panelContext:{},applicationConfig:{}},setup(i){const s=en,{createMap:r,createPinIcon:l}=on(),{onPanelActive:u}=Pe.useSideBar(),c=x.ref(null),d=x.ref(!1),v=x.computed(()=>!i.panelContext||!i.panelContext.items?[]:x.unref(i.panelContext.items.filter(k=>!!k.location))||[]),m=x.computed(()=>x.unref(v).map(k=>[k.location.latitude,k.location.longitude,1])),b=x.computed(()=>{const k=new s.LatLngBounds;return x.unref(m).forEach(O=>{k.extend(O)}),k}),P=l(),w=[];let y=null;const Z=()=>{d.value&&(y?.invalidateSize(),x.unref(m).length>0&&y?.fitBounds(x.unref(b),{maxZoom:x.unref(m).length>1?15:10}),w.forEach(k=>y?.removeLayer(k)),x.unref(m).forEach(k=>{w.push(s.marker(k,{icon:P}).addTo(y))}))};return x.watch(()=>[b],Z),x.onMounted(()=>{d.value=!0,y=r(i.applicationConfig,x.unref(c)),Z()}),x.onUnmounted(()=>{y?.remove()}),u("location-details",()=>{d.value=!0,Z()}),(k,O)=>(x.openBlock(),x.createElementBlock("div",{ref_key:"leafletElement",ref:c,class:"leafletContainer ext:h-[200px]"},null,512))}}),$n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABAlBMVEUAAADGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkL///+3LCy4Li62KSnFQEDDPT3COzu7MjK9NDT9+Pi6MDC/NzfARUXBOTn+/PzUf3/Ob2/GV1e6NTX57e303t7iqKjYjIzLZGTJX1/78/P35+f14uLx19fx1NTtysrrxMTkrq7MaGjIXFzEUVG8PDznubnnuLjdnJy+Pz/5SaUvAAAALHRSTlMA/AL5Cgb08ObdurSoGg3sz75zbmM6joV/eVpNSEAzJyMSX+jh18SunJgtUvqwWL0AAAJBSURBVDjLfZN3e6JAEIcHsAXF3kssudRbAQFBjSWx5NLLle//VW5nWaUYff/hYZ+X3wyzu+AhKs1aSpblVK2piLBP9LSSjROGEM+WS9Gw0CkniJ/MdRv8iI0sCXP+U/QJxTPCGBimaRoDHlOI7oSe24AxsjRN1TRnaDIplt8qzQT7fqSpWzTLwKV4HRjKBRMsFdEpzDFx8eQUkOpO0LXxZr0Za/pOuUzjf56jMFQp8+W9bduPbx8sBQtJWKeA7gSXpr/6LncrTLSw3WQEIkmMcOjK9KG/xV5hCtY5K0HnxI3Q524CT1nrNAR3IA+NGH0OaY23vp8/Fu8kBUWBFdHHjwHj7pOGTKiRgwI1DE3V13bAuJ1RY0SNC8hzY3bbDzBFg2ccN5JQ5MbHQ0Cw37lRxn9h4/h6Dhj3Y50NROpBG+eBM18FyvzFIdOh/riBtEwNk77/e/EJzxhhuVOHKt9Zff7k1djofHcLAFCKY4hGlc/fttvl61ylDLFIGwC3jneiL96Xr08vy9kCD4iDM78SgVKXdgdEVxdfC9U7ZJkWIN0c4YoPBwWSigCjHhNQmTjeScYeeASSviRUQcdyNIo1whbo2nUUOKUEEQR+pQxjgN/jwsmNd+eqAkI88FXKg4eSI0IYInfBRytBwkKiBX7EvBQypJoIAdIpEoxIdiFEO+tX8Mbu0cj4lFgR9hFrvlbKfNyHWiE5Bb6lkyW8iRIcoOlOJdaDQ4jFOE6iEoWDRKu026s0HCFSkWQFjtKthEf1H+4TmsxXLEfyAAAAAElFTkSuQmCC",Qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAzCAMAAAAuJJHNAAAAkFBMVEUAAAAAru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru9ovJP8AAAAL3RSTlMA+AT68Fr0FA8H3MSXQDkL6+bg1o6CUkcxwbitbV8sJyQZz76neH1yTB6yolWHaUf8FCEAAAGESURBVDjLfdTnloIwEAXgmyxVKUoTxLWsvezO+7/dqkgGDPH7B2dOuJkwQVe8Dgv7Fq48DIqjfJtYQggrGWczvcifXSxiTmXH6DkHFvWJeomOcky6dNYp+KEhiSrZbGlY+vqQzMikbuKGEzIRNu7klcwqD8BySmbiEXbRi18Hu/SLWAbIHSlOtpaQm30n2NjFhnvxtZd4srnB0xIlx5h7aMiAgxSYOdT6RivklwvYQqWI+CATVZHjWyW3uGIzUhW/uAkV1EYr4qgHRLy1nY+XvNt3l3frtFHDKe92CQTEj38egLhISZnHQNFpsqjyxWHuENs/cqdkNilxl5FZ7fPWdNwAvyaTHxdPhSCDIxqe6V8frfHCZ9OXo+WOh5dYAZ8XycHcypCC2YI0B3R5c31oz+g5Oe/tXKDPV2PDg/ImmmgzzYbuiEsMzWpEbBJiwJFYIMG03nO/NYXDpz7Mv1KjcmFQJvRgnWC0b2L6YENhR0t8cLLUgRjIgG8ig9U2xGdy/R7zH4uopdSUohgfAAAAAElFTkSuQmCC",qo={class:"ext:flex ext:flex-col"},Ko={class:"ext:absolute ext:grid ext:grid-cols-[auto_minmax(0,1fr)] ext:z-990 bg-role-surface-container ext:rounded ext:p-2 ext:right-2 ext:top-2"},Yo=["textContent"],Jo=["textContent"],Xo=["textContent"],$o=["textContent"],tr=x.defineComponent({__name:"GpxMap",props:{currentContent:{},applicationConfig:{}},setup(i){const s=en,{createMap:r}=on(),l=x.ref(null),{$gettext:u}=tn.useGettext();let c=null;const d=x.ref({}),v={async:!0,marker_options:{clickable:!1},markers:{startIcon:nn,endIcon:$n,wptIcons:{start:nn,end:$n,"":Qo}}};let m=null;const b=()=>{c&&(m&&c.removeLayer(m),m=new s.GPX(i.currentContent,v).on("loaded",P=>{const w=P.target;c.fitBounds(P.target.getBounds()),d.value={name:w.get_name(),distance:w.get_distance_imp().toFixed(2),elevationGain:w.to_ft(w.get_elevation_gain()).toFixed(0),elevationLoss:w.to_ft(w.get_elevation_loss()).toFixed(0),elevationNet:w.to_ft(w.get_elevation_gain()-w.get_elevation_loss()).toFixed(0)}}).addTo(c))};return x.onMounted(()=>{c=r(i.applicationConfig,x.unref(l)),b()}),x.watch(()=>i.currentContent,b),x.onBeforeUnmount(()=>{c?.remove()}),(P,w)=>(x.openBlock(),x.createElementBlock("div",qo,[x.createElementVNode("div",{ref_key:"leafletElement",ref:l,class:"ext:size-full ext:z-1"},[x.createElementVNode("dl",Ko,[x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Name"))},null,8,Yo),x.createElementVNode("dd",null,x.toDisplayString(d.value.name),1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Distance"))},null,8,Jo),x.createElementVNode("dd",null,x.toDisplayString(d.value.distance)+"km",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Elevation Gain"))},null,8,Xo),x.createElementVNode("dd",null,x.toDisplayString(d.value.elevationGain)+"m",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Elevation Loss"))},null,8,$o),x.createElementVNode("dd",null,x.toDisplayString(d.value.elevationLoss)+"m",1)])],512)]))}});var er=15e3,rn=1e3,sn=60*rn,ze=60*sn,an=24*ze,nr="http://www.topografix.com/GPX/gpx_style/0/2",ke=new L.Icon.Default,ir={startIcon:ke,endIcon:ke,wptIcons:{"":ke},wptTypeIcons:{"":ke},pointMatchers:[]},or={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},rr={color:"blue"},sr={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(i,s){s.max_point_interval=s.max_point_interval||er,s.markers=this._merge_objs(ir,s.markers||{}),s.marker_options=this._merge_objs(or,s.marker_options||{}),s.polyline_options=s.polyline_options||[],s.gpx_options=this._merge_objs(sr,s.gpx_options||{}),L.Util.setOptions(this,s),L.GPXTrackIcon=L.Icon.extend({options:s.marker_options}),this._gpx=i,this._layers={},this._prepare_markers(s.markers),this._init_info(),i&&this._parse(i,s,this.options.async)},get_duration_string:function(i,s){var r="";i>=an&&(r+=Math.floor(i/an)+"d ",i=i%an),i>=ze&&(r+=Math.floor(i/ze)+":",i=i%ze);var l=Math.floor(i/sn);i=i%sn,l<10&&(r+="0"),r+=l+"'";var u=Math.floor(i/rn);return i=i%rn,u<10&&(r+="0"),r+=u,!s&&i>0?r+="."+Math.round(Math.floor(i)*1e3)/1e3:r+='"',r},get_duration_string_iso:function(i,s){var r=this.get_duration_string(i,s);return r.replace("'",":").replace('"',"")},_toFixed_helper:function(i,s=0){return typeof i=="number"?i.toFixed(s):"?"},to_miles:function(i){return i/1.60934},to_ft:function(i){return i*3.28084},m_to_km:function(i){return i/1e3},m_to_mi:function(i){return i/1609.34},ms_to_kmh:function(i){return i*3.6},ms_to_mih:function(i){return i/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/(3600*1e3))},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/(3600*1e3))},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/(3600*1e3))},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/(3600*1e3))},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var i=this;return this._info.elevation._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" m"})})},get_elevation_data_imp:function(){var i=this;return this._info.elevation._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,i.to_ft,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" ft"})})},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var i=this;return this._info.speed._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,i.ms_to_kmh,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,2)+" km/h"})})},get_speed_data_imp:function(){var i=this;return this._info.speed._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,i.ms_to_mih,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,2)+" mi/h"})})},get_speed_max:function(){return this.m_to_km(this._info.speed.max)*3600},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var i=this;return this._info.hr._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" bpm"})})},get_heartrate_data_imp:function(){var i=this;return this._info.hr._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" bpm"})})},get_cadence_data:function(){var i=this;return this._info.cad._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data:function(){var i=this;return this._info.atemp._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" degrees"})})},get_cadence_data_imp:function(){var i=this;return this._info.cad._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data_imp:function(){var i=this;return this._info.atemp._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" degrees"})})},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(i,s){var r={};for(var l in i)r[l]=i[l];for(var l in s)r[l]=s[l];return r},_prepare_data_point:function(i,s,r,l){var u=[s&&s(i[0])||i[0],r&&r(i[1])||i[1]];return u.push(l&&l(u[0],u[1])||u[0]+": "+u[1]),u},_prepare_markers:function(i){function s(r){return new L.GPXTrackIcon({iconUrl:r})}return Object.entries(i).forEach(([r,l])=>{r==="wptIcons"||r==="wptTypeIcons"?i[r]=this._prepare_markers(l):r==="pointMatchers"?i[r]=l.map(u=>(typeof u.icon=="string"&&(u.icon=s(u.icon)),u)):typeof l=="string"?i[r]=s(l):typeof l=="object"&&l!==null&&(i[r]=l)}),i},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(i,s,r,l){l==null&&(l=this.options.async),r==null&&(r=this.options);var u=this,c=new window.XMLHttpRequest;c.open("GET",i,l);try{c.overrideMimeType("text/xml")}catch{}c.onloadend=function(){c.status==200?s(c.responseXML,r):u.fire("error",{err:"Error fetching resource: "+i})},c.send(null)},_parse:function(i,s,r){var l=this,u=function(d,v){var m=l._parse_gpx_data(d,v);if(!m){l.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(v.gpx_options.parseElements)});return}l.addLayer(m),l.fire("loaded",{layers:m,element:d})};if(i.substr(0,1)==="<"){var c=new DOMParser;r?setTimeout(function(){u(c.parseFromString(i,"text/xml"),s)}):u(c.parseFromString(i,"text/xml"),s)}else this._load_xml(i,u,s,r)},_parse_gpx_data:function(i,s){var r,l,u=[],c=i.getElementsByTagName("name");c.length>0&&(this._info.name=c[0].textContent);var d=i.getElementsByTagName("desc");d.length>0&&(this._info.desc=d[0].textContent);var v=i.getElementsByTagName("author");v.length>0&&(this._info.author=v[0].textContent);var m=i.getElementsByTagName("copyright");m.length>0&&(this._info.copyright=m[0].textContent);var b=s.gpx_options.parseElements;if(b.indexOf("route")>-1){var P=i.getElementsByTagName("rte");for(r=0;r-1){var k=i.getElementsByTagName("trk");for(r=0;r-1)for(l=i.getElementsByTagName("wpt"),r=0;r0?ct[0].textContent:"",W=l[r].getElementsByTagName("desc"),d=W.length>0?W[0].textContent:"",G=l[r].getElementsByTagName("sym"),it=G.length>0?G[0].textContent:null,Yt=l[r].getElementsByTagName("type"),Rt=Yt.length>0?Yt[0].textContent:null,At=s.markers.wptIcons,Dt=s.markers.wptTypeIcons,Ft=s.markers.pointMatchers||[],Q;if(At&&it&&At[it])Q=At[it];else if(Dt&&Rt&&Dt[Rt])Q=Dt[Rt];else if(Ft.length>0){for(var q=0;q"+c+""+(d.length>0?"
"+d:"")).openPopup(),this.fire("addpoint",{point:he,point_type:"waypoint",element:l[r]}),u.push(he)}if(u.length>1)return new L.FeatureGroup(u);if(u.length==1)return u[0]},_parse_segment:function(i,s,r,l,u){var c=i.getElementsByTagName(u);if(!c.length)return[];for(var d=[],v=[],m=[],b=null,P=0;P0?y.meta.time=new Date(Date.parse(w[0].textContent)):y.meta.time=new Date("1970-01-01T00:00:00");var Z=b!=null?Math.abs(y.meta.time-b.meta.time):0;w=c[P].getElementsByTagName("ele"),w.length>0?y.meta.ele=parseFloat(w[0].textContent):y.meta.ele=b!=null?b.meta.ele:null;var k=b!=null?y.meta.ele-b.meta.ele:0,O=b!=null?this._dist3d(b,y):0;if(w=c[P].getElementsByTagName("speed"),w.length>0?y.meta.speed=parseFloat(w[0].textContent):y.meta.speed=Z>0?1e3*O/Z:0,w=c[P].getElementsByTagName("name"),w.length>0){for(var pt=w[0].textContent,bt=s.markers.pointMatchers||[],ct=0;ct0&&(y.meta.hr=parseInt(w[0].textContent),this._info.hr._points.push([this._info.length,y.meta.hr]),this._info.hr._total+=y.meta.hr),w=c[P].getElementsByTagNameNS("*","cad"),w.length>0&&(y.meta.cad=parseInt(w[0].textContent),this._info.cad._points.push([this._info.length,y.meta.cad]),this._info.cad._total+=y.meta.cad),w=c[P].getElementsByTagNameNS("*","atemp"),w.length>0&&(y.meta.atemp=parseInt(w[0].textContent),this._info.atemp._points.push([this._info.length,y.meta.atemp]),this._info.atemp._total+=y.meta.atemp),y.meta.ele>this._info.elevation.max&&(this._info.elevation.max=y.meta.ele),y.meta.elethis._info.speed.max&&(this._info.speed.max=y.meta.speed),this._info.speed._points.push([this._info.length,y.meta.speed]),b==null&&this._info.duration.start==null&&(this._info.duration.start=y.meta.time),this._info.duration.end=y.meta.time,this._info.duration.total+=Z,Z0?this._info.elevation.gain+=k:this._info.elevation.loss+=Math.abs(k),b=y,d.push(y)}var W=new L.Polyline(d,this._extract_styling(i,r,l));if(this.fire("addline",{line:W,element:i}),m.push(W),s.markers.startIcon){var G=new L.Marker(d[0],{clickable:s.marker_options.clickable,icon:s.markers.startIcon});this.fire("addpoint",{point:G,point_type:"start",element:c[0],line:i}),m.push(G)}if(s.markers.endIcon){var G=new L.Marker(d[d.length-1],{clickable:s.marker_options.clickable,icon:s.markers.endIcon});this.fire("addpoint",{point:G,point_type:"end",element:c[c.length-1],line:i}),m.push(G)}for(var P=0;P0){var c=u[0].getElementsByTagName("color");c.length>0&&(l.color="#"+c[0].textContent);var c=u[0].getElementsByTagName("opacity");c.length>0&&(l.opacity=c[0].textContent);var c=u[0].getElementsByTagName("weight");c.length>0&&(l.weight=c[0].textContent);var c=u[0].getElementsByTagName("linecap");c.length>0&&(l.lineCap=c[0].textContent);var c=u[0].getElementsByTagName("linejoin");c.length>0&&(l.lineJoin=c[0].textContent);var c=u[0].getElementsByTagName("dasharray");c.length>0&&(l.dashArray=c[0].textContent);var c=u[0].getElementsByTagName("dashoffset");c.length>0&&(l.dashOffset=c[0].textContent)}return this._merge_objs(l,r)},_dist2d:function(i,s){var r=6371e3,l=this._deg2rad(s.lat-i.lat),u=this._deg2rad(s.lng-i.lng),c=Math.sin(l/2)*Math.sin(l/2)+Math.cos(this._deg2rad(i.lat))*Math.cos(this._deg2rad(s.lat))*Math.sin(u/2)*Math.sin(u/2),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),v=r*d;return v},_dist3d:function(i,s){var r=this._dist2d(i,s),l=Math.abs(s.meta.ele-i.meta.ele);return Math.sqrt(Math.pow(r,2)+Math.pow(l,2))},_deg2rad:function(i){return i*Math.PI/180}});const ar={class:"ext:h-full"},lr=["textContent"],hr=x.defineComponent({__name:"LocationFolderView",props:{resources:{},applicationConfig:{}},setup(i){const s=en,{$gettext:r}=tn.useGettext(),{createMap:l,createPinIcon:u}=on(),c=x.ref(null),d=x.ref(!1),v=x.computed(()=>x.unref(i.resources?.filter(k=>!!k.location))||[]),m=x.computed(()=>x.unref(v).map(k=>[k.location.latitude,k.location.longitude,1])),b=x.computed(()=>{const k=new s.LatLngBounds;return x.unref(m).forEach(O=>{k.extend(O)}),k}),P=u(),w=[];let y=null;const Z=()=>{d.value&&(y?.invalidateSize(),x.unref(m).length>0&&y?.fitBounds(x.unref(b),{maxZoom:x.unref(m).length>1?15:10}),w.forEach(k=>y?.removeLayer(k)),x.unref(m).forEach(k=>{w.push(s.marker(k,{icon:P}).addTo(y))}))};return x.watch(()=>[b],Z),x.onMounted(()=>{d.value=!0,y=l(i.applicationConfig,x.unref(c)),Z()}),x.onUnmounted(()=>{y?.remove()}),(k,O)=>(x.openBlock(),x.createElementBlock("div",ar,[m.value.length?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(x.unref(Pe.NoContentMessage),{key:0,icon:"map-2"},{message:x.withCtx(()=>[x.createElementVNode("span",{textContent:x.toDisplayString(x.unref(r)("No files with location data"))},null,8,lr)]),_:1})),x.createElementVNode("div",{ref_key:"leafletElement",ref:c,class:x.normalizeClass(["ext:h-full",{hidden:!m.value.length}])},null,2)]))}});function E(i,s,r){function l(v,m){var b;Object.defineProperty(v,"_zod",{value:v._zod??{},enumerable:!1}),(b=v._zod).traits??(b.traits=new Set),v._zod.traits.add(i),s(v,m);for(const P in d.prototype)P in v||Object.defineProperty(v,P,{value:d.prototype[P].bind(v)});v._zod.constr=d,v._zod.def=m}const u=r?.Parent??Object;class c extends u{}Object.defineProperty(c,"name",{value:i});function d(v){var m;const b=r?.Parent?new c:this;l(b,v),(m=b._zod).deferred??(m.deferred=[]);for(const P of b._zod.deferred)P();return b}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:v=>r?.Parent&&v instanceof r.Parent?!0:v?._zod?.traits?.has(i)}),Object.defineProperty(d,"name",{value:i}),d}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ti extends Error{constructor(s){super(`Encountered unidirectional transform during encode: ${s}`),this.name="ZodEncodeError"}}const ei={};function Zt(i){return ei}function ur(i){const s=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,u])=>s.indexOf(+l)===-1).map(([l,u])=>u)}function ln(i,s){return typeof s=="bigint"?s.toString():s}function hn(i){return{get value(){{const s=i();return Object.defineProperty(this,"value",{value:s}),s}}}}function un(i){return i==null}function cn(i){const s=i.startsWith("^")?1:0,r=i.endsWith("$")?i.length-1:i.length;return i.slice(s,r)}const ni=Symbol("evaluating");function j(i,s,r){let l;Object.defineProperty(i,s,{get(){if(l!==ni)return l===void 0&&(l=ni,l=r()),l},set(u){Object.defineProperty(i,s,{value:u})},configurable:!0})}function It(i,s,r){Object.defineProperty(i,s,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Bt(...i){const s={};for(const r of i){const l=Object.getOwnPropertyDescriptors(r);Object.assign(s,l)}return Object.defineProperties({},s)}function ii(i){return JSON.stringify(i)}const oi="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function Te(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const cr=hn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function ae(i){if(Te(i)===!1)return!1;const s=i.constructor;if(s===void 0)return!0;const r=s.prototype;return!(Te(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ri(i){return ae(i)?{...i}:Array.isArray(i)?[...i]:i}const fr=new Set(["string","number","symbol"]);function dr(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(i,s,r){const l=new i._zod.constr(s??i._zod.def);return(!s||r?.parent)&&(l._zod.parent=i),l}function rt(i){const s=i;if(!s)return{};if(typeof s=="string")return{error:()=>s};if(s?.message!==void 0){if(s?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");s.error=s.message}return delete s.message,typeof s.error=="string"?{...s,error:()=>s.error}:s}function _r(i){return Object.keys(i).filter(s=>i[s]._zod.optin==="optional"&&i[s]._zod.optout==="optional")}function pr(i,s){const r=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={};for(const c in s){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);s[c]&&(u[c]=r.shape[c])}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function mr(i,s){const r=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={...i._zod.def.shape};for(const c in s){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);s[c]&&delete u[c]}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function gr(i,s){if(!ae(s))throw new Error("Invalid input to extend: expected a plain object");const r=i._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const u=Bt(i._zod.def,{get shape(){const c={...i._zod.def.shape,...s};return It(this,"shape",c),c},checks:[]});return Mt(i,u)}function vr(i,s){if(!ae(s))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...i._zod.def,get shape(){const l={...i._zod.def.shape,...s};return It(this,"shape",l),l},checks:i._zod.def.checks};return Mt(i,r)}function yr(i,s){const r=Bt(i._zod.def,{get shape(){const l={...i._zod.def.shape,...s._zod.def.shape};return It(this,"shape",l),l},get catchall(){return s._zod.def.catchall},checks:[]});return Mt(i,r)}function xr(i,s,r){const l=Bt(s._zod.def,{get shape(){const u=s._zod.def.shape,c={...u};if(r)for(const d in r){if(!(d in u))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=i?new i({type:"optional",innerType:u[d]}):u[d])}else for(const d in u)c[d]=i?new i({type:"optional",innerType:u[d]}):u[d];return It(this,"shape",c),c},checks:[]});return Mt(s,l)}function wr(i,s,r){const l=Bt(s._zod.def,{get shape(){const u=s._zod.def.shape,c={...u};if(r)for(const d in r){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=new i({type:"nonoptional",innerType:u[d]}))}else for(const d in u)c[d]=new i({type:"nonoptional",innerType:u[d]});return It(this,"shape",c),c},checks:[]});return Mt(s,l)}function qt(i,s=0){if(i.aborted===!0)return!0;for(let r=s;r{var l;return(l=r).path??(l.path=[]),r.path.unshift(i),r})}function Ee(i){return typeof i=="string"?i:i?.message}function Nt(i,s,r){const l={...i,path:i.path??[]};if(!i.message){const u=Ee(i.inst?._zod.def?.error?.(i))??Ee(s?.error?.(i))??Ee(r.customError?.(i))??Ee(r.localeError?.(i))??"Invalid input";l.message=u}return delete l.inst,delete l.continue,s?.reportInput||delete l.input,l}function fn(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function le(...i){const[s,r,l]=i;return typeof s=="string"?{message:s,code:"custom",input:r,inst:l}:{...s}}const ai=(i,s)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:s,enumerable:!1}),i.message=JSON.stringify(s,ln,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},li=E("$ZodError",ai),hi=E("$ZodError",ai,{Parent:Error});function br(i,s=r=>r.message){const r={},l=[];for(const u of i.issues)u.path.length>0?(r[u.path[0]]=r[u.path[0]]||[],r[u.path[0]].push(s(u))):l.push(s(u));return{formErrors:l,fieldErrors:r}}function Ar(i,s=r=>r.message){const r={_errors:[]},l=u=>{for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>l({issues:d}));else if(c.code==="invalid_key")l({issues:c.issues});else if(c.code==="invalid_element")l({issues:c.issues});else if(c.path.length===0)r._errors.push(s(c));else{let d=r,v=0;for(;v(s,r,l,u)=>{const c=l?Object.assign(l,{async:!1}):{async:!1},d=s._zod.run({value:r,issues:[]},c);if(d instanceof Promise)throw new Qt;if(d.issues.length){const v=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw oi(v,u?.callee),v}return d.value},_n=i=>async(s,r,l,u)=>{const c=l?Object.assign(l,{async:!0}):{async:!0};let d=s._zod.run({value:r,issues:[]},c);if(d instanceof Promise&&(d=await d),d.issues.length){const v=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw oi(v,u?.callee),v}return d.value},Me=i=>(s,r,l)=>{const u=l?{...l,async:!1}:{async:!1},c=s._zod.run({value:r,issues:[]},u);if(c instanceof Promise)throw new Qt;return c.issues.length?{success:!1,error:new(i??li)(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Lr=Me(hi),Ce=i=>async(s,r,l)=>{const u=l?Object.assign(l,{async:!0}):{async:!0};let c=s._zod.run({value:r,issues:[]},u);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new i(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Pr=Ce(hi),zr=i=>(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return dn(i)(s,r,u)},kr=i=>(s,r,l)=>dn(i)(s,r,l),Tr=i=>async(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return _n(i)(s,r,u)},Er=i=>async(s,r,l)=>_n(i)(s,r,l),Mr=i=>(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Me(i)(s,r,u)},Cr=i=>(s,r,l)=>Me(i)(s,r,l),Sr=i=>async(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ce(i)(s,r,u)},Or=i=>async(s,r,l)=>Ce(i)(s,r,l),Zr=/^(?:true|false)$/i,Kt=E("$ZodCheck",(i,s)=>{var r;i._zod??(i._zod={}),i._zod.def=s,(r=i._zod).onattach??(r.onattach=[])}),Ir=E("$ZodCheckMaxLength",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.maximum??Number.POSITIVE_INFINITY;s.maximum{const u=l.value;if(u.length<=s.maximum)return;const d=fn(u);l.issues.push({origin:d,code:"too_big",maximum:s.maximum,inclusive:!0,input:u,inst:i,continue:!s.abort})}}),Br=E("$ZodCheckMinLength",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;s.minimum>u&&(l._zod.bag.minimum=s.minimum)}),i._zod.check=l=>{const u=l.value;if(u.length>=s.minimum)return;const d=fn(u);l.issues.push({origin:d,code:"too_small",minimum:s.minimum,inclusive:!0,input:u,inst:i,continue:!s.abort})}}),Nr=E("$ZodCheckLengthEquals",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag;u.minimum=s.length,u.maximum=s.length,u.length=s.length}),i._zod.check=l=>{const u=l.value,c=u.length;if(c===s.length)return;const d=fn(u),v=c>s.length;l.issues.push({origin:d,...v?{code:"too_big",maximum:s.length}:{code:"too_small",minimum:s.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!s.abort})}}),Rr=E("$ZodCheckOverwrite",(i,s)=>{Kt.init(i,s),i._zod.check=r=>{r.value=s.tx(r.value)}});class Dr{constructor(s=[]){this.content=[],this.indent=0,this&&(this.args=s)}indented(s){this.indent+=1,s(this),this.indent-=1}write(s){if(typeof s=="function"){s(this,{execution:"sync"}),s(this,{execution:"async"});return}const l=s.split(` -`).filter(d=>d),u=Math.min(...l.map(d=>d.length-d.trimStart().length)),c=l.map(d=>d.slice(u)).map(d=>" ".repeat(this.indent*2)+d);for(const d of c)this.content.push(d)}compile(){const s=Function,r=this?.args,u=[...(this?.content??[""]).map(c=>` ${c}`)];return new s(...r,u.join(` -`))}}const Fr={major:4,minor:1,patch:12},$=E("$ZodType",(i,s)=>{var r;i??(i={}),i._zod.def=s,i._zod.bag=i._zod.bag||{},i._zod.version=Fr;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const c of u._zod.onattach)c(i);if(l.length===0)(r=i._zod).deferred??(r.deferred=[]),i._zod.deferred?.push(()=>{i._zod.run=i._zod.parse});else{const u=(d,v,m)=>{let b=qt(d),P;for(const w of v){if(w._zod.def.when){if(!w._zod.def.when(d))continue}else if(b)continue;const y=d.issues.length,Z=w._zod.check(d);if(Z instanceof Promise&&m?.async===!1)throw new Qt;if(P||Z instanceof Promise)P=(P??Promise.resolve()).then(async()=>{await Z,d.issues.length!==y&&(b||(b=qt(d,y)))});else{if(d.issues.length===y)continue;b||(b=qt(d,y))}}return P?P.then(()=>d):d},c=(d,v,m)=>{if(qt(d))return d.aborted=!0,d;const b=u(v,l,m);if(b instanceof Promise){if(m.async===!1)throw new Qt;return b.then(P=>i._zod.parse(P,m))}return i._zod.parse(b,m)};i._zod.run=(d,v)=>{if(v.skipChecks)return i._zod.parse(d,v);if(v.direction==="backward"){const b=i._zod.parse({value:d.value,issues:[]},{...v,skipChecks:!0});return b instanceof Promise?b.then(P=>c(P,d,v)):c(b,d,v)}const m=i._zod.parse(d,v);if(m instanceof Promise){if(v.async===!1)throw new Qt;return m.then(b=>u(b,l,v))}return u(m,l,v)}}i["~standard"]={validate:u=>{try{const c=Lr(i,u);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return Pr(i,u).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Wr=E("$ZodBoolean",(i,s)=>{$.init(i,s),i._zod.pattern=Zr,i._zod.parse=(r,l)=>{if(s.coerce)try{r.value=!!r.value}catch{}const u=r.value;return typeof u=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:i}),r}}),jr=E("$ZodUnknown",(i,s)=>{$.init(i,s),i._zod.parse=r=>r}),Gr=E("$ZodNever",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:i}),r)});function ui(i,s,r){i.issues.length&&s.issues.push(...si(r,i.issues)),s.value[r]=i.value}const Ur=E("$ZodArray",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{const u=r.value;if(!Array.isArray(u))return r.issues.push({expected:"array",code:"invalid_type",input:u,inst:i}),r;r.value=Array(u.length);const c=[];for(let d=0;dui(b,r,d))):ui(m,r,d)}return c.length?Promise.all(c).then(()=>r):r}});function Se(i,s,r,l){i.issues.length&&s.issues.push(...si(r,i.issues)),i.value===void 0?r in l&&(s.value[r]=void 0):s.value[r]=i.value}function ci(i){const s=Object.keys(i.shape);for(const l of s)if(!i.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const r=_r(i.shape);return{...i,keys:s,keySet:new Set(s),numKeys:s.length,optionalKeys:new Set(r)}}function fi(i,s,r,l,u,c){const d=[],v=u.keySet,m=u.catchall._zod,b=m.def.type;for(const P of Object.keys(s)){if(v.has(P))continue;if(b==="never"){d.push(P);continue}const w=m.run({value:s[P],issues:[]},l);w instanceof Promise?i.push(w.then(y=>Se(y,r,P,s))):Se(w,r,P,s)}return d.length&&r.issues.push({code:"unrecognized_keys",keys:d,input:s,inst:c}),i.length?Promise.all(i).then(()=>r):r}const Hr=E("$ZodObject",(i,s)=>{if($.init(i,s),!Object.getOwnPropertyDescriptor(s,"shape")?.get){const v=s.shape;Object.defineProperty(s,"shape",{get:()=>{const m={...v};return Object.defineProperty(s,"shape",{value:m}),m}})}const l=hn(()=>ci(s));j(i._zod,"propValues",()=>{const v=s.shape,m={};for(const b in v){const P=v[b]._zod;if(P.values){m[b]??(m[b]=new Set);for(const w of P.values)m[b].add(w)}}return m});const u=Te,c=s.catchall;let d;i._zod.parse=(v,m)=>{d??(d=l.value);const b=v.value;if(!u(b))return v.issues.push({expected:"object",code:"invalid_type",input:b,inst:i}),v;v.value={};const P=[],w=d.shape;for(const y of d.keys){const k=w[y]._zod.run({value:b[y],issues:[]},m);k instanceof Promise?P.push(k.then(O=>Se(O,v,y,b))):Se(k,v,y,b)}return c?fi(P,b,v,m,l.value,i):P.length?Promise.all(P).then(()=>v):v}}),Vr=E("$ZodObjectJIT",(i,s)=>{Hr.init(i,s);const r=i._zod.parse,l=hn(()=>ci(s)),u=y=>{const Z=new Dr(["shape","payload","ctx"]),k=l.value,O=W=>{const G=ii(W);return`shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`};Z.write("const input = payload.value;");const pt=Object.create(null);let bt=0;for(const W of k.keys)pt[W]=`key_${bt++}`;Z.write("const newResult = {};");for(const W of k.keys){const G=pt[W],it=ii(W);Z.write(`const ${G} = ${O(W)};`),Z.write(` - if (${G}.issues.length) { - payload.issues = payload.issues.concat(${G}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${it}, ...iss.path] : [${it}] - }))); - } - - - if (${G}.value === undefined) { - if (${it} in input) { - newResult[${it}] = undefined; - } - } else { - newResult[${it}] = ${G}.value; - } - - `)}Z.write("payload.value = newResult;"),Z.write("return payload;");const ct=Z.compile();return(W,G)=>ct(y,W,G)};let c;const d=Te,v=!ei.jitless,b=v&&cr.value,P=s.catchall;let w;i._zod.parse=(y,Z)=>{w??(w=l.value);const k=y.value;return d(k)?v&&b&&Z?.async===!1&&Z.jitless!==!0?(c||(c=u(s.shape)),y=c(y,Z),P?fi([],k,y,Z,w,i):y):r(y,Z):(y.issues.push({expected:"object",code:"invalid_type",input:k,inst:i}),y)}});function di(i,s,r,l){for(const c of i)if(c.issues.length===0)return s.value=c.value,s;const u=i.filter(c=>!qt(c));return u.length===1?(s.value=u[0].value,u[0]):(s.issues.push({code:"invalid_union",input:s.value,inst:r,errors:i.map(c=>c.issues.map(d=>Nt(d,l,Zt())))}),s)}const Qr=E("$ZodUnion",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.options.some(u=>u._zod.optin==="optional")?"optional":void 0),j(i._zod,"optout",()=>s.options.some(u=>u._zod.optout==="optional")?"optional":void 0),j(i._zod,"values",()=>{if(s.options.every(u=>u._zod.values))return new Set(s.options.flatMap(u=>Array.from(u._zod.values)))}),j(i._zod,"pattern",()=>{if(s.options.every(u=>u._zod.pattern)){const u=s.options.map(c=>c._zod.pattern);return new RegExp(`^(${u.map(c=>cn(c.source)).join("|")})$`)}});const r=s.options.length===1,l=s.options[0]._zod.run;i._zod.parse=(u,c)=>{if(r)return l(u,c);let d=!1;const v=[];for(const m of s.options){const b=m._zod.run({value:u.value,issues:[]},c);if(b instanceof Promise)v.push(b),d=!0;else{if(b.issues.length===0)return b;v.push(b)}}return d?Promise.all(v).then(m=>di(m,u,i,c)):di(v,u,i,c)}}),qr=E("$ZodIntersection",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{const u=r.value,c=s.left._zod.run({value:u,issues:[]},l),d=s.right._zod.run({value:u,issues:[]},l);return c instanceof Promise||d instanceof Promise?Promise.all([c,d]).then(([m,b])=>_i(r,m,b)):_i(r,c,d)}});function pn(i,s){if(i===s)return{valid:!0,data:i};if(i instanceof Date&&s instanceof Date&&+i==+s)return{valid:!0,data:i};if(ae(i)&&ae(s)){const r=Object.keys(s),l=Object.keys(i).filter(c=>r.indexOf(c)!==-1),u={...i,...s};for(const c of l){const d=pn(i[c],s[c]);if(!d.valid)return{valid:!1,mergeErrorPath:[c,...d.mergeErrorPath]};u[c]=d.data}return{valid:!0,data:u}}if(Array.isArray(i)&&Array.isArray(s)){if(i.length!==s.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let l=0;l{$.init(i,s);const r=ur(s.entries),l=new Set(r);i._zod.values=l,i._zod.pattern=new RegExp(`^(${r.filter(u=>fr.has(typeof u)).map(u=>typeof u=="string"?dr(u):u.toString()).join("|")})$`),i._zod.parse=(u,c)=>{const d=u.value;return l.has(d)||u.issues.push({code:"invalid_value",values:r,input:d,inst:i}),u}}),Yr=E("$ZodTransform",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{if(l.direction==="backward")throw new ti(i.constructor.name);const u=s.transform(r.value,r);if(l.async)return(u instanceof Promise?u:Promise.resolve(u)).then(d=>(r.value=d,r));if(u instanceof Promise)throw new Qt;return r.value=u,r}});function pi(i,s){return i.issues.length&&s===void 0?{issues:[],value:void 0}:i}const Jr=E("$ZodOptional",(i,s)=>{$.init(i,s),i._zod.optin="optional",i._zod.optout="optional",j(i._zod,"values",()=>s.innerType._zod.values?new Set([...s.innerType._zod.values,void 0]):void 0),j(i._zod,"pattern",()=>{const r=s.innerType._zod.pattern;return r?new RegExp(`^(${cn(r.source)})?$`):void 0}),i._zod.parse=(r,l)=>{if(s.innerType._zod.optin==="optional"){const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>pi(c,r.value)):pi(u,r.value)}return r.value===void 0?r:s.innerType._zod.run(r,l)}}),Xr=E("$ZodNullable",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),j(i._zod,"pattern",()=>{const r=s.innerType._zod.pattern;return r?new RegExp(`^(${cn(r.source)}|null)$`):void 0}),j(i._zod,"values",()=>s.innerType._zod.values?new Set([...s.innerType._zod.values,null]):void 0),i._zod.parse=(r,l)=>r.value===null?r:s.innerType._zod.run(r,l)}),$r=E("$ZodDefault",(i,s)=>{$.init(i,s),i._zod.optin="optional",j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);if(r.value===void 0)return r.value=s.defaultValue,r;const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>mi(c,s)):mi(u,s)}});function mi(i,s){return i.value===void 0&&(i.value=s.defaultValue),i}const ts=E("$ZodPrefault",(i,s)=>{$.init(i,s),i._zod.optin="optional",j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>(l.direction==="backward"||r.value===void 0&&(r.value=s.defaultValue),s.innerType._zod.run(r,l))}),es=E("$ZodNonOptional",(i,s)=>{$.init(i,s),j(i._zod,"values",()=>{const r=s.innerType._zod.values;return r?new Set([...r].filter(l=>l!==void 0)):void 0}),i._zod.parse=(r,l)=>{const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>gi(c,i)):gi(u,i)}});function gi(i,s){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:s}),i}const ns=E("$ZodCatch",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>(r.value=c.value,c.issues.length&&(r.value=s.catchValue({...r,error:{issues:c.issues.map(d=>Nt(d,l,Zt()))},input:r.value}),r.issues=[]),r)):(r.value=u.value,u.issues.length&&(r.value=s.catchValue({...r,error:{issues:u.issues.map(c=>Nt(c,l,Zt()))},input:r.value}),r.issues=[]),r)}}),is=E("$ZodPipe",(i,s)=>{$.init(i,s),j(i._zod,"values",()=>s.in._zod.values),j(i._zod,"optin",()=>s.in._zod.optin),j(i._zod,"optout",()=>s.out._zod.optout),j(i._zod,"propValues",()=>s.in._zod.propValues),i._zod.parse=(r,l)=>{if(l.direction==="backward"){const c=s.out._zod.run(r,l);return c instanceof Promise?c.then(d=>Oe(d,s.in,l)):Oe(c,s.in,l)}const u=s.in._zod.run(r,l);return u instanceof Promise?u.then(c=>Oe(c,s.out,l)):Oe(u,s.out,l)}});function Oe(i,s,r){return i.issues.length?(i.aborted=!0,i):s._zod.run({value:i.value,issues:i.issues},r)}const os=E("$ZodReadonly",(i,s)=>{$.init(i,s),j(i._zod,"propValues",()=>s.innerType._zod.propValues),j(i._zod,"values",()=>s.innerType._zod.values),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(vi):vi(u)}});function vi(i){return i.value=Object.freeze(i.value),i}const rs=E("$ZodCustom",(i,s)=>{Kt.init(i,s),$.init(i,s),i._zod.parse=(r,l)=>r,i._zod.check=r=>{const l=r.value,u=s.fn(l);if(u instanceof Promise)return u.then(c=>yi(c,r,l,i));yi(u,r,l,i)}});function yi(i,s,r,l){if(!i){const u={code:"custom",input:r,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(u.params=l._zod.def.params),s.issues.push(le(u))}}class ss{constructor(){this._map=new WeakMap,this._idmap=new Map}add(s,...r){const l=r[0];if(this._map.set(s,l),l&&typeof l=="object"&&"id"in l){if(this._idmap.has(l.id))throw new Error(`ID ${l.id} already exists in the registry`);this._idmap.set(l.id,s)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(s){const r=this._map.get(s);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(s),this}get(s){const r=s._zod.parent;if(r){const l={...this.get(r)??{}};delete l.id;const u={...l,...this._map.get(s)};return Object.keys(u).length?u:void 0}return this._map.get(s)}has(s){return this._map.has(s)}}function as(){return new ss}const Ze=as();function ls(i,s){return new i({type:"boolean",...rt(s)})}function hs(i){return new i({type:"unknown"})}function us(i,s){return new i({type:"never",...rt(s)})}function cs(i,s){return new Ir({check:"max_length",...rt(s),maximum:i})}function xi(i,s){return new Br({check:"min_length",...rt(s),minimum:i})}function fs(i,s){return new Nr({check:"length_equals",...rt(s),length:i})}function ds(i){return new Rr({check:"overwrite",tx:i})}function _s(i,s,r){return new i({type:"array",element:s,...rt(r)})}function ps(i,s,r){return new i({type:"custom",check:"custom",fn:s,...rt(r)})}function ms(i){const s=gs(r=>(r.addIssue=l=>{if(typeof l=="string")r.issues.push(le(l,r.value,s._zod.def));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=s),u.continue??(u.continue=!s._zod.def.abort),r.issues.push(le(u))}},i(r.value,r)));return s}function gs(i,s){const r=new Kt({check:"custom",...rt(s)});return r._zod.check=i,r}const ut=E("ZodError",(i,s)=>{li.init(i,s),i.name="ZodError",Object.defineProperties(i,{format:{value:r=>Ar(i,r)},flatten:{value:r=>br(i,r)},addIssue:{value:r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,ln,2)}},addIssues:{value:r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,ln,2)}},isEmpty:{get(){return i.issues.length===0}}})},{Parent:Error}),vs=dn(ut),ys=_n(ut),xs=Me(ut),ws=Ce(ut),bs=zr(ut),As=kr(ut),Ls=Tr(ut),Ps=Er(ut),zs=Mr(ut),ks=Cr(ut),Ts=Sr(ut),Es=Or(ut),tt=E("ZodType",(i,s)=>($.init(i,s),i.def=s,i.type=s.type,Object.defineProperty(i,"_def",{value:s}),i.check=(...r)=>i.clone(Bt(s,{checks:[...s.checks??[],...r.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]})),i.clone=(r,l)=>Mt(i,r,l),i.brand=()=>i,i.register=(r,l)=>(r.add(i,l),i),i.parse=(r,l)=>vs(i,r,l,{callee:i.parse}),i.safeParse=(r,l)=>xs(i,r,l),i.parseAsync=async(r,l)=>ys(i,r,l,{callee:i.parseAsync}),i.safeParseAsync=async(r,l)=>ws(i,r,l),i.spa=i.safeParseAsync,i.encode=(r,l)=>bs(i,r,l),i.decode=(r,l)=>As(i,r,l),i.encodeAsync=async(r,l)=>Ls(i,r,l),i.decodeAsync=async(r,l)=>Ps(i,r,l),i.safeEncode=(r,l)=>zs(i,r,l),i.safeDecode=(r,l)=>ks(i,r,l),i.safeEncodeAsync=async(r,l)=>Ts(i,r,l),i.safeDecodeAsync=async(r,l)=>Es(i,r,l),i.refine=(r,l)=>i.check(oa(r,l)),i.superRefine=r=>i.check(ra(r)),i.overwrite=r=>i.check(ds(r)),i.optional=()=>Ai(i),i.nullable=()=>Li(i),i.nullish=()=>Ai(Li(i)),i.nonoptional=r=>Js(i,r),i.array=()=>Bs(i),i.or=r=>Fs([i,r]),i.and=r=>js(i,r),i.transform=r=>zi(i,Hs(r)),i.default=r=>qs(i,r),i.prefault=r=>Ys(i,r),i.catch=r=>$s(i,r),i.pipe=r=>zi(i,r),i.readonly=()=>na(i),i.describe=r=>{const l=i.clone();return Ze.add(l,{description:r}),l},Object.defineProperty(i,"description",{get(){return Ze.get(i)?.description},configurable:!0}),i.meta=(...r)=>{if(r.length===0)return Ze.get(i);const l=i.clone();return Ze.add(l,r[0]),l},i.isOptional=()=>i.safeParse(void 0).success,i.isNullable=()=>i.safeParse(null).success,i)),Ms=E("ZodBoolean",(i,s)=>{Wr.init(i,s),tt.init(i,s)});function Cs(i){return ls(Ms,i)}const Ss=E("ZodUnknown",(i,s)=>{jr.init(i,s),tt.init(i,s)});function wi(){return hs(Ss)}const Os=E("ZodNever",(i,s)=>{Gr.init(i,s),tt.init(i,s)});function Zs(i){return us(Os,i)}const Is=E("ZodArray",(i,s)=>{Ur.init(i,s),tt.init(i,s),i.element=s.element,i.min=(r,l)=>i.check(xi(r,l)),i.nonempty=r=>i.check(xi(1,r)),i.max=(r,l)=>i.check(cs(r,l)),i.length=(r,l)=>i.check(fs(r,l)),i.unwrap=()=>i.element});function Bs(i,s){return _s(Is,i,s)}const Ns=E("ZodObject",(i,s)=>{Vr.init(i,s),tt.init(i,s),j(i,"shape",()=>s.shape),i.keyof=()=>Gs(Object.keys(i._zod.def.shape)),i.catchall=r=>i.clone({...i._zod.def,catchall:r}),i.passthrough=()=>i.clone({...i._zod.def,catchall:wi()}),i.loose=()=>i.clone({...i._zod.def,catchall:wi()}),i.strict=()=>i.clone({...i._zod.def,catchall:Zs()}),i.strip=()=>i.clone({...i._zod.def,catchall:void 0}),i.extend=r=>gr(i,r),i.safeExtend=r=>vr(i,r),i.merge=r=>yr(i,r),i.pick=r=>pr(i,r),i.omit=r=>mr(i,r),i.partial=(...r)=>xr(bi,i,r[0]),i.required=(...r)=>wr(Pi,i,r[0])});function Rs(i,s){const r={type:"object",shape:i??{},...rt(s)};return new Ns(r)}const Ds=E("ZodUnion",(i,s)=>{Qr.init(i,s),tt.init(i,s),i.options=s.options});function Fs(i,s){return new Ds({type:"union",options:i,...rt(s)})}const Ws=E("ZodIntersection",(i,s)=>{qr.init(i,s),tt.init(i,s)});function js(i,s){return new Ws({type:"intersection",left:i,right:s})}const mn=E("ZodEnum",(i,s)=>{Kr.init(i,s),tt.init(i,s),i.enum=s.entries,i.options=Object.values(s.entries);const r=new Set(Object.keys(s.entries));i.extract=(l,u)=>{const c={};for(const d of l)if(r.has(d))c[d]=s.entries[d];else throw new Error(`Key ${d} not found in enum`);return new mn({...s,checks:[],...rt(u),entries:c})},i.exclude=(l,u)=>{const c={...s.entries};for(const d of l)if(r.has(d))delete c[d];else throw new Error(`Key ${d} not found in enum`);return new mn({...s,checks:[],...rt(u),entries:c})}});function Gs(i,s){const r=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new mn({type:"enum",entries:r,...rt(s)})}const Us=E("ZodTransform",(i,s)=>{Yr.init(i,s),tt.init(i,s),i._zod.parse=(r,l)=>{if(l.direction==="backward")throw new ti(i.constructor.name);r.addIssue=c=>{if(typeof c=="string")r.issues.push(le(c,r.value,s));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=r.value),d.inst??(d.inst=i),r.issues.push(le(d))}};const u=s.transform(r.value,r);return u instanceof Promise?u.then(c=>(r.value=c,r)):(r.value=u,r)}});function Hs(i){return new Us({type:"transform",transform:i})}const bi=E("ZodOptional",(i,s)=>{Jr.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Ai(i){return new bi({type:"optional",innerType:i})}const Vs=E("ZodNullable",(i,s)=>{Xr.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Li(i){return new Vs({type:"nullable",innerType:i})}const Qs=E("ZodDefault",(i,s)=>{$r.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function qs(i,s){return new Qs({type:"default",innerType:i,get defaultValue(){return typeof s=="function"?s():ri(s)}})}const Ks=E("ZodPrefault",(i,s)=>{ts.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Ys(i,s){return new Ks({type:"prefault",innerType:i,get defaultValue(){return typeof s=="function"?s():ri(s)}})}const Pi=E("ZodNonOptional",(i,s)=>{es.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Js(i,s){return new Pi({type:"nonoptional",innerType:i,...rt(s)})}const Xs=E("ZodCatch",(i,s)=>{ns.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function $s(i,s){return new Xs({type:"catch",innerType:i,catchValue:typeof s=="function"?s:()=>s})}const ta=E("ZodPipe",(i,s)=>{is.init(i,s),tt.init(i,s),i.in=s.in,i.out=s.out});function zi(i,s){return new ta({type:"pipe",in:i,out:s})}const ea=E("ZodReadonly",(i,s)=>{os.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function na(i){return new ea({type:"readonly",innerType:i})}const ia=E("ZodCustom",(i,s)=>{rs.init(i,s),tt.init(i,s)});function oa(i,s={}){return ps(ia,i,s)}function ra(i){return ms(i)}const sa=Rs({folderViewEnabled:Cs().optional()}),ki="maps";return Pe.defineWebApplication({setup(i){const{$gettext:s}=tn.useGettext(),{folderViewEnabled:r}=sa.parse(i.applicationConfig),l=({applicationConfig:c})=>x.computed(()=>[{id:"com.github.opencloud-eu.maps.sidebar-panel",type:"sidebarPanel",extensionPointIds:["global.files.sidebar"],panel:{name:"location-details",icon:"map-2",iconFillType:"line",title:()=>s("Location"),component:Vo,componentAttrs:d=>({panelContext:d,applicationConfig:c}),isRoot:()=>!0,isVisible:({items:d})=>d?.length>0&&d?.some(v=>!!v.location)}},...r?[{id:"com.github.opencloud-eu.maps.folder-view.map-view",type:"folderView",extensionPointIds:["app.files.folder-views.folder"],folderView:{name:"resource-map",label:s("Switch to map view"),icon:{name:"map-2",fillType:"line"},component:hr,componentAttrs:()=>({applicationConfig:c})}}]:[]]),u=[{name:"maps",path:"/:driveAliasAndItem(.*)?",component:Pe.AppWrapperRoute(tr,{applicationId:ki,urlForResourceOptions:{disposition:"inline"}}),meta:{authContext:"hybrid",title:s("Maps"),patchCleanPath:!0}}];return{appInfo:{name:s("Maps"),id:ki,icon:"map-2",iconFillType:"line",iconColor:"#84c143",extensions:[{extension:"gpx",routeName:"maps",canBeDefault:!0}]},routes:u,translations:Wo,extensions:l(i)}}})}); diff --git a/config/opencloud/apps/maps/js/maps-uKkx1qsf.js b/config/opencloud/apps/maps/js/maps-uKkx1qsf.js new file mode 100644 index 0000000..ab7b4f9 --- /dev/null +++ b/config/opencloud/apps/maps/js/maps-uKkx1qsf.js @@ -0,0 +1,21 @@ +define(["require","@opencloud-eu/web-pkg","vue","vue3-gettext"],function(Il,Pe,x,en){"use strict";var Yn=document.createElement("style");Yn.textContent=`@layer theme{:root,:host{--ext-spacing:4px}}@layer base,components;@layer utilities{.ext\\:absolute{position:absolute}.ext\\:top-2{top:calc(var(--ext-spacing)*2)}.ext\\:right-2{right:calc(var(--ext-spacing)*2)}.ext\\:z-1{z-index:1}.ext\\:z-990{z-index:990}.ext\\:flex{display:flex}.ext\\:grid{display:grid}.ext\\:size-full{width:100%;height:100%}.ext\\:h-\\[200px\\]{height:200px}.ext\\:h-full{height:100%}.ext\\:grid-cols-\\[auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:auto minmax(0,1fr)}.ext\\:flex-col{flex-direction:column}.ext\\:rounded{border-radius:.25rem}.ext\\:p-2{padding:calc(var(--ext-spacing)*2)}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-zoom{border:0!important}.leaflet-control-zoom-in,.leaflet-control-zoom-out{background:#fffc!important} +/*$vite$:1*/`,document.head.appendChild(Yn);function Go(i,r){for(var s=0;sl[u]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const jo={af:{},ar:{Distance:"المسافة","Elevation Gain":"مكسب الارتفاع","Elevation Loss":"خسارة الارتفاع",Location:"الموقع",Maps:"الخرائط",Name:"الاسم","No files with location data":"لا توجد ملفات تحتوي على بيانات الموقع","Switch to map view":"التبديل إلى عرض الخريطة"},bs:{},bg:{},de:{Distance:"Entfernung","Elevation Gain":"Anstieg","Elevation Loss":"Abstieg",Location:"Position",Maps:"Karten",Name:"Name","No files with location data":"Keine Dateien mit Positions-Daten vorhanden","Switch to map view":"Zur Kartenansicht wechseln"},cs:{Distance:"Vzdálenost",Location:"Umístění",Maps:"Mapy",Name:"Název"},el:{},es:{},et:{},fr:{Distance:"Distance","Elevation Gain":"Dénivelé positif","Elevation Loss":"Dénivelé négatif",Location:"Localisation",Maps:"Cartes",Name:"Nom","No files with location data":" Aucun fichier ne contient de données de localisation","Switch to map view":" Passer à l'affichage de la carte"},gl:{},hr:{},he:{},id:{},it:{},ja:{},nl:{Distance:"Afstand","Elevation Gain":"Hoogtetoename","Elevation Loss":"Hoogteafname",Location:"Locatie",Maps:"Kaarten",Name:"Naam","No files with location data":"Geen bestanden met locatiegegevens","Switch to map view":"Schakelen naar kaartweergave"},pl:{},pt:{},ka:{},ko:{},ro:{},ru:{Distance:"Расстояние","Elevation Gain":"Увеличение высоты","Elevation Loss":"Уменьшение высоты",Location:"Локация",Maps:"Карты",Name:"Имя","No files with location data":"Нет файлов с информацией о локации","Switch to map view":"Переключиться в режим карты"},sk:{},sq:{},si:{},sv:{Distance:"Avstånd","Elevation Gain":"Höjdökning","Elevation Loss":"Höjdminskning",Location:"Plats",Maps:"Kartor",Name:"Namn","No files with location data":"Inga filer med platsdata","Switch to map view":"Växla till kartvy"},sr:{},ta:{},tr:{},ug:{},uk:{},zh:{}};function Ho(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var se={exports:{}};var Uo=se.exports,Jn;function Vo(){return Jn||(Jn=1,function(i,r){(function(s,l){l(r)})(Uo,function(s){var l="1.9.4";function u(t){var e,n,o,a;for(n=1,o=arguments.length;n"u"||!L||!L.Mixin)){t=W(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(E(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(E(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Mi(this.x),this.y=Mi(this.y),this},distanceTo:function(t){t=E(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=E(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=E(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+A(this.x)+", "+A(this.y)+")"}};function E(t,e,n){return t instanceof M?t:W(t)?new M(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function U(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>=e.x&&o.x<=n.x,f=a.y>=e.y&&o.y<=n.y;return h&&f},overlaps:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>e.x&&o.xe.y&&o.y=e.lat&&a.lat<=n.lat&&o.lng>=e.lng&&a.lng<=n.lng},intersects:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>=e.lat&&o.lat<=n.lat,f=a.lng>=e.lng&&o.lng<=n.lng;return h&&f},overlaps:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>e.lat&&o.late.lng&&o.lng1,La=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",b,e),window.removeEventListener("testPassiveEventSupport",b,e)}catch{}return t}(),Pa=function(){return!!document.createElement("canvas").getContext}(),An=!!(document.createElementNS&&Si("svg").createSVGRect),za=!!An&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ka=!An&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),Ta=navigator.platform.indexOf("Mac")===0,Ea=navigator.platform.indexOf("Linux")===0;function vt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var z={ie:Be,ielt9:fa,edge:Zi,webkit:xn,android:Ii,android23:Bi,androidStock:_a,opera:wn,chrome:Ni,gecko:Ri,safari:pa,phantom:Di,opera12:Fi,win:ma,ie3d:Wi,webkit3d:bn,gecko3d:Gi,any3d:ga,mobile:fe,mobileWebkit:va,mobileWebkit3d:ya,msPointer:ji,pointer:Hi,touch:xa,touchNative:Ui,mobileOpera:wa,mobileGecko:ba,retina:Aa,passiveEvents:La,canvas:Pa,svg:An,vml:ka,inlineSvg:za,mac:Ta,linux:Ea},Vi=z.msPointer?"MSPointerDown":"pointerdown",Qi=z.msPointer?"MSPointerMove":"pointermove",qi=z.msPointer?"MSPointerUp":"pointerup",Ki=z.msPointer?"MSPointerCancel":"pointercancel",Ln={touchstart:Vi,touchmove:Qi,touchend:qi,touchcancel:Ki},Yi={touchstart:Ia,touchmove:Ne,touchend:Ne,touchcancel:Ne},Jt={},Ji=!1;function Ma(t,e,n){return e==="touchstart"&&Za(),Yi[e]?(n=Yi[e].bind(this,n),t.addEventListener(Ln[e],n,!1),n):(console.warn("wrong event specified:",e),b)}function Ca(t,e,n){if(!Ln[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ln[e],n,!1)}function Sa(t){Jt[t.pointerId]=t}function Oa(t){Jt[t.pointerId]&&(Jt[t.pointerId]=t)}function Xi(t){delete Jt[t.pointerId]}function Za(){Ji||(document.addEventListener(Vi,Sa,!0),document.addEventListener(Qi,Oa,!0),document.addEventListener(qi,Xi,!0),document.addEventListener(Ki,Xi,!0),Ji=!0)}function Ne(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Jt)e.touches.push(Jt[n]);e.changedTouches=[e],t(e)}}function Ia(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&nt(e),Ne(t,e)}function Ba(t){var e={},n,o;for(o in t)n=t[o],e[o]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Na=200;function Ra(t,e){t.addEventListener("dblclick",e);var n=0,o;function a(h){if(h.detail!==1){o=h.detail;return}if(!(h.pointerType==="mouse"||h.sourceCapabilities&&!h.sourceCapabilities.firesTouchEvents)){var f=io(h);if(!(f.some(function(p){return p instanceof HTMLLabelElement&&p.attributes.for})&&!f.some(function(p){return p instanceof HTMLInputElement||p instanceof HTMLSelectElement}))){var _=Date.now();_-n<=Na?(o++,o===2&&e(Ba(h))):o=1,n=_}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Da(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Pn=Fe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=Fe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$i=de==="webkitTransition"||de==="OTransition"?de+"End":"transitionend";function to(t){return typeof t=="string"?document.getElementById(t):t}function _e(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return n==="auto"?null:n}function R(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function V(t){var e=t.parentNode;e&&e.removeChild(t)}function Re(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Xt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function $t(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function zn(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=De(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function S(t,e){if(t.classList!==void 0)for(var n=D(e),o=0,a=n.length;o0?2*window.devicePixelRatio:1;function ro(t){return z.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ga:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Rn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var ja={__proto__:null,on:C,off:H,stopPropagation:jt,disableScrollPropagation:Nn,disableClickPropagation:ve,preventDefault:nt,stop:Ht,getPropagationPath:io,getMousePosition:oo,getWheelDelta:ro,isExternalTarget:Rn,addListener:C,removeListener:H},so=ue.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Gt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Q(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,Y(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=E(e.paddingTopLeft||e.padding||[0,0]),o=E(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),h=this.project(t),f=this.getPixelBounds(),_=st([f.min.add(n),f.max.subtract(o)]),p=_.getSize();if(!_.contains(h)){this._enforcingBounds=!0;var v=h.subtract(_.getCenter()),P=_.extend(h).getSize().subtract(p);a.x+=v.x<0?-P.x:P.x,a.y+=v.y<0?-P.y:P.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=u({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),h=o.subtract(a);return!h.x&&!h.y?this:(t.animate&&t.pan?this.panBy(h):(t.pan&&this._rawPanBy(h),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(d(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=u({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=d(this._handleGeolocationResponse,this),n=d(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,o=new F(e,n),a=o.toBounds(t.coords.accuracy*2),h=this._locateOptions;if(h.setView){var f=this.getBoundsZoom(a);this.setView(o,h.maxZoom?Math.min(f,h.maxZoom):f)}var _={latlng:o,bounds:a,timestamp:t.timestamp};for(var p in t.coords)typeof t.coords[p]=="number"&&(_[p]=t.coords[p]);this.fire("locationfound",_)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)V(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=R("div",n,e||this._mapPane);return t&&(this._panes[t]=o),o},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new at(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Y(t),n=E(n||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),h=this.getMaxZoom(),f=t.getNorthWest(),_=t.getSouthEast(),p=this.getSize().subtract(n),v=st(this.project(_,o),this.project(f,o)).getSize(),P=z.any3d?this.options.zoomSnap:1,k=p.x/v.x,O=p.y/v.y,ot=e?Math.max(k,O):Math.min(k,O);return o=this.getScaleZoom(ot,o),P&&(o=Math.round(o/(P/100))*(P/100),o=e?Math.ceil(o/P)*P:Math.floor(o/P)*P),Math.max(a,Math.min(h,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new U(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(I(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(E(t),e)},layerPointToLatLng:function(t){var e=E(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(I(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(I(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(I(t),I(e))},containerPointToLayerPoint:function(t){return E(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return E(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(E(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(I(t)))},mouseEventToContainerPoint:function(t){return oo(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=to(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");C(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,S(t,"leaflet-container"+(z.touch?" leaflet-touch":"")+(z.retina?" leaflet-retina":"")+(z.ielt9?" leaflet-oldie":"")+(z.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=_e(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),J(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(S(t.markerPane,"leaflet-zoom-hide"),S(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){J(this._mapPane,new M(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,n)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n&&n.pinch&&this.fire("zoom",n):((a||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){J(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[m(this._container)]=this;var e=t?H:C;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),z.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n=[],o,a=e==="mouseout"||e==="mouseover",h=t.target||t.srcElement,f=!1;h;){if(o=this._targets[m(h)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){f=!0;break}if(o&&o.listens(e,!0)&&(a&&!Rn(h,t)||(n.push(o),a))||h===this._container)break;h=h.parentNode}return!n.length&&!f&&!a&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var n=t.type;n==="mousedown"&&Sn(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=u({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var a=this._findEventTargets(t,e);if(n){for(var h=[],f=0;f0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=z.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){K(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=R("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=Pn,o=this._proxy.style[n];Wt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Wt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return n.animate!==!0&&!this.getSize().contains(a)?!1:(Q(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,S(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(d(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&K(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Ha(t,e){return new B(t,e)}var mt=Lt.extend({options:{position:"topright"},initialize:function(t){Z(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),o=t._controlCorners[n];return S(e,"leaflet-control"),n.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ye=function(t){return new mt(t)};B.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=R("div",e+"control-container",this._container);function o(a,h){var f=e+a+" "+e+h;t[a+h]=R("div",f,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)V(this._controlCorners[t]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ao=mt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(m(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=n):o=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(o),o.layerId=m(t.layer),C(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var h=document.createElement("span");e.appendChild(h),h.appendChild(o),h.appendChild(a);var f=t.overlay?this._overlaysList:this._baseLayersList;return f.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,o=[],a=[];this._handlingClick=!0;for(var h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.checked?o.push(n):e.checked||a.push(n);for(h=0;h=0;a--)e=t[a],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&on.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,C(t,"click",nt),this.expand();var e=this;setTimeout(function(){H(t,"click",nt),e._preventClick=!1})}}),Ua=function(t,e,n){return new ao(t,e,n)},Dn=mt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=R("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,a){var h=R("a",n,o);return h.innerHTML=t,h.href="#",h.title=e,h.setAttribute("role","button"),h.setAttribute("aria-label",e),ve(h),C(h,"click",Ht),C(h,"click",a,this),C(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";K(this._zoomInButton,e),K(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(S(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(S(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});B.mergeOptions({zoomControl:!0}),B.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Dn,this.addControl(this.zoomControl))});var Va=function(t){return new Dn(t)},lo=mt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=R("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=R("div",e,n)),t.imperial&&(this._iScale=R("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e=t*3.2808399,n,o,a;e>5280?(n=e/5280,o=this._getRoundNum(n),this._updateScale(this._iScale,o+" mi",o/n)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Qa=function(t){return new lo(t)},qa='',Fn=mt.extend({options:{position:"bottomright",prefix:''+(z.inlineSvg?qa+" ":"")+"Leaflet"},initialize:function(t){Z(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=R("div","leaflet-control-attribution"),ve(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' ')}}});B.mergeOptions({attributionControl:!0}),B.addInitHook(function(){this.options.attributionControl&&new Fn().addTo(this)});var Ka=function(t){return new Fn(t)};mt.Layers=ao,mt.Zoom=Dn,mt.Scale=lo,mt.Attribution=Fn,ye.layers=Ua,ye.zoom=Va,ye.scale=Qa,ye.attribution=Ka;var xt=Lt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});xt.addTo=function(t,e){return t.addHandler(e,this),this};var Ya={Events:ht},ho=z.touch?"touchstart mousedown":"mousedown",St=ue.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){Z(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(C(this._dragStartTarget,ho,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(St._dragging===this&&this.finishDrag(!0),H(this._dragStartTarget,ho,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!zn(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){St._dragging===this&&this.finishDrag();return}if(!(St._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(St._dragging=this,this._preventOutline&&Sn(this._element),En(),pe(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=eo(this._element);this._startPoint=new M(e.clientX,e.clientY),this._startPos=Gt(this._element),this._parentScale=On(n);var o=t.type==="mousedown";C(document,o?"mousemove":"touchmove",this._onMove,this),C(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new M(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)h&&(f=_,h=p);h>n&&(e[f]=1,Gn(t,e,n,o,f),Gn(t,e,n,f,a))}function tl(t,e){for(var n=[t[0]],o=1,a=0,h=t.length;oe&&(n.push(t[o]),a=o);return ae.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function el(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function xe(t,e,n,o){var a=e.x,h=e.y,f=n.x-a,_=n.y-h,p=f*f+_*_,v;return p>0&&(v=((t.x-a)*f+(t.y-h)*_)/p,v>1?(a=n.x,h=n.y):v>0&&(a+=f*v,h+=_*v)),f=t.x-a,_=t.y-h,o?f*f+_*_:new M(a,h)}function dt(t){return!W(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function go(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),dt(t)}function vo(t,e){var n,o,a,h,f,_,p,v;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var P=I([0,0]),k=Y(t),O=k.getNorthWest().distanceTo(k.getSouthWest())*k.getNorthEast().distanceTo(k.getNorthWest());O<1700&&(P=Wn(t));var ot=t.length,et=[];for(n=0;no){p=(h-o)/a,v=[_.x-p*(_.x-f.x),_.y-p*(_.y-f.y)];break}var lt=e.unproject(E(v));return I([lt.lat+P.lat,lt.lng+P.lng])}var nl={__proto__:null,simplify:fo,pointToSegmentDistance:_o,closestPointOnSegment:Xa,clipSegment:mo,_getEdgeIntersection:je,_getBitCode:Ut,_sqClosestPointOnSegment:xe,isFlat:dt,_flat:go,polylineCenter:vo},jn={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new U([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new U([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,a=this.R_MINOR/n,h=Math.sqrt(1-a*a),f=h*Math.sin(o),_=Math.tan(Math.PI/4-o/2)/Math.pow((1-f)/(1+f),h/2);return o=-n*Math.log(Math.max(_,1e-10)),new M(t.lng*e*n,o)},unproject:function(t){for(var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),h=Math.exp(-t.y/n),f=Math.PI/2-2*Math.atan(h),_=0,p=.1,v;_<15&&Math.abs(p)>1e-7;_++)v=a*Math.sin(f),v=Math.pow((1-v)/(1+v),a/2),p=Math.PI/2-2*Math.atan(h*v)-f,f+=p;return new F(f*e,t.x*e/n)}},il={__proto__:null,LonLat:jn,Mercator:Hn,SphericalMercator:mn},ol=u({},Ct,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return ce(t,.5,-t,.5)}()}),yo=u({},Ct,{code:"EPSG:4326",projection:jn,transformation:ce(1/180,1,-1/180,.5)}),rl=u({},Pt,{projection:jn,transformation:ce(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});Pt.Earth=Ct,Pt.EPSG3395=ol,Pt.EPSG3857=vn,Pt.EPSG900913=ca,Pt.EPSG4326=yo,Pt.Simple=rl;var gt=ue.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});B.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=m(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return m(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?W(t)?t:[t]:[];for(var e=0,n=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){kt.prototype._setLatLngs.call(this,t),dt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return dt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new U(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,a=this._rings.length,h;ot.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||kt.prototype._containsPoint.call(this,t,!0)}});function dl(t,e){return new ne(t,e)}var Tt=zt.extend({initialize:function(t,e){Z(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=W(t)?t:t.features,n,o,a;if(e){for(n=0,o=e.length;n0&&a.push(a[0].slice()),a}function ie(t,e){return t.feature?u({},t.feature,{geometry:e}):Ke(e)}function Ke(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var qn={toGeoJSON:function(t){return ie(this,{type:"Point",coordinates:Qn(this.getLatLng(),t)})}};He.include(qn),Un.include(qn),Ue.include(qn),kt.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=qe(this._latlngs,e?1:0,!1,t);return ie(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ne.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=e&&!dt(this._latlngs[0]),o=qe(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),ie(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),te.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),ie(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var n=e==="GeometryCollection",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var h=a.toGeoJSON(t);if(n)o.push(h.geometry);else{var f=Ke(h);f.type==="FeatureCollection"?o.push.apply(o,f.features):o.push(f)}}}),n?ie(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function bo(t,e){return new Tt(t,e)}var _l=bo,Ye=gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Y(e),Z(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(S(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Xt(this._image),this},bringToBack:function(){return this._map&&$t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:R("img");if(S(e,"leaflet-image-layer"),this._zoomAnimated&&S(e,"leaflet-zoom-animated"),this.options.className&&S(e,this.options.className),e.onselectstart=b,e.onmousemove=b,e.onload=d(this.fire,this,"load"),e.onerror=d(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Wt(this._image,n,e)},_reset:function(){var t=this._image,e=new U(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();J(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ft(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),pl=function(t,e,n){return new Ye(t,e,n)},Ao=Ye.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:R("video");if(S(e,"leaflet-image-layer"),this._zoomAnimated&&S(e,"leaflet-zoom-animated"),this.options.className&&S(e,this.options.className),e.onselectstart=b,e.onmousemove=b,e.onloadeddata=d(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],a=0;a0?o:[e.src];return}W(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var h=0;ha?(e.height=a+"px",S(t,h)):K(t,h),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();J(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(_e(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,a=new M(this._containerLeft,-n-this._containerBottom);a._add(Gt(this._container));var h=t.layerPointToContainerPoint(a),f=E(this.options.autoPanPadding),_=E(this.options.autoPanPaddingTopLeft||f),p=E(this.options.autoPanPaddingBottomRight||f),v=t.getSize(),P=0,k=0;h.x+o+p.x>v.x&&(P=h.x+o-v.x+p.x),h.x-P-_.x<0&&(P=h.x-_.x),h.y+n+p.y>v.y&&(k=h.y+n-v.y+p.y),h.y-k-_.y<0&&(k=h.y-_.y),(P||k)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([P,k]))}},_getAnchor:function(){return E(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vl=function(t,e){return new Je(t,e)};B.mergeOptions({closePopupOnClick:!0}),B.include({openPopup:function(t,e,n){return this._initOverlay(Je,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),gt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Je,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof zt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ht(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ot)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Xe=wt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){wt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=R("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,o=this._map,a=this._container,h=o.latLngToContainerPoint(o.getCenter()),f=o.layerPointToContainerPoint(t),_=this.options.direction,p=a.offsetWidth,v=a.offsetHeight,P=E(this.options.offset),k=this._getAnchor();_==="top"?(e=p/2,n=v):_==="bottom"?(e=p/2,n=0):_==="center"?(e=p/2,n=v/2):_==="right"?(e=0,n=v/2):_==="left"?(e=p,n=v/2):f.xthis.options.maxZoom||no?this._retainParent(a,h,f,o):!1)},_retainChildren:function(t,e,n,o){for(var a=2*t;a<2*t+2;a++)for(var h=2*e;h<2*e+2;h++){var f=new M(a,h);f.z=n+1;var _=this._tileCoordsToKey(f),p=this._tiles[_];if(p&&p.active){p.retain=!0;continue}else p&&p.loaded&&(p.retain=!0);n+1this.options.maxZoom||this.options.minZoom!==void 0&&a1){this._setView(t,n);return}for(var k=a.min.y;k<=a.max.y;k++)for(var O=a.min.x;O<=a.max.x;O++){var ot=new M(O,k);if(ot.z=this._tileZoom,!!this._isValidTile(ot)){var et=this._tiles[this._tileCoordsToKey(ot)];et?et.current=!0:f.push(ot)}}if(f.sort(function(lt,re){return lt.distanceTo(h)-re.distanceTo(h)}),f.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _t=document.createDocumentFragment();for(O=0;On.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),a=o.add(n),h=e.unproject(o,t.z),f=e.unproject(a,t.z);return[h,f]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new at(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(V(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){S(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=b,t.onmousemove=b,z.ielt9&&this.options.opacity<1&&ft(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),d(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&Q(d(this._tileReady,this,t,null,a)),J(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(S(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),z.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(d(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?w(t.x,this._wrapX):t.x,this._wrapY?w(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new U(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function wl(t){return new be(t)}var oe=be.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=Z(this,e),e.detectRetina&&z.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return C(n,"load",d(this._tileOnLoad,this,e,n)),C(n,"error",d(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return ct(this._url,u(e,this.options))},_tileOnLoad:function(t,e){z.ielt9?setTimeout(d(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return n&&(t=e-t),t+o},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=b,e.onerror=b,!e.complete)){e.src=it;var n=this._tiles[t].coords;V(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",it),be.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===it))return be.prototype._tileReady.call(this,t,e,n)}});function zo(t,e){return new oe(t,e)}var ko=oe.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=u({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=Z(this,e);var a=e.detectRetina&&z.retina?2:1,h=this.getTileSize();n.width=h.x*a,n.height=h.y*a,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oe.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=st(n.project(e[0]),n.project(e[1])),a=o.min,h=o.max,f=(this._wmsVersion>=1.3&&this._crs===yo?[a.y,a.x,h.y,h.x]:[a.x,a.y,h.x,h.y]).join(","),_=oe.prototype.getTileUrl.call(this,t);return _+pt(this.wmsParams,_,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+f},setParams:function(t,e){return u(this.wmsParams,t),e||this.redraw(),this}});function bl(t,e){return new ko(t,e)}oe.WMS=ko,zo.wms=bl;var Et=gt.extend({options:{padding:.1},initialize:function(t){Z(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),S(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),h=o.multiplyBy(-n).add(a).subtract(this._map._getNewPixelOrigin(t,e));z.any3d?Wt(this._container,h,n):J(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new U(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),To=Et.extend({options:{tolerance:0},getEvents:function(){var t=Et.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Et.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");C(t,"mousemove",this._onMouseMove,this),C(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),C(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,V(this._container),H(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=z.retina?2:1;J(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",z.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Et.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],o,a;for(a=0;a')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Al={_initContainer:function(){this._container=R("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Et.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ae("shape");S(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ae("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;V(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Ae("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=W(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=Ae("fill")),a.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(a.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Xt(t._container)},_bringToBack:function(t){$t(t._container)}},$e=z.vml?Ae:Si,Le=Et.extend({_initContainer:function(){this._container=$e("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$e("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){V(this._container),H(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),J(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=$e("path");t.options.className&&S(e,t.options.className),t.options.interactive&&S(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){V(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Oi(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||n,a="a"+n+","+o+" 0 1,0 ",h=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+a+n*2+",0 "+a+-n*2+",0 ";this._setPath(t,h)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Xt(t._path)},_bringToBack:function(t){$t(t._path)}});z.vml&&Le.include(Al);function Mo(t){return z.svg||z.vml?new Le(t):null}B.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Eo(t)||Mo(t)}});var Co=ne.extend({initialize:function(t,e){ne.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Ll(t,e){return new Co(t,e)}Le.create=$e,Le.pointsToPath=Oi,Tt.geometryToLayer=Ve,Tt.coordsToLatLng=Vn,Tt.coordsToLatLngs=Qe,Tt.latLngToCoords=Qn,Tt.latLngsToCoords=qe,Tt.getFeature=ie,Tt.asFeature=Ke,B.mergeOptions({boxZoom:!0});var So=xt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){C(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){H(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){V(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),pe(),En(),this._startPoint=this._map.mouseEventToContainerPoint(t),C(document,{contextmenu:Ht,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=R("div","leaflet-zoom-box",this._container),S(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new U(this._point,this._startPoint),n=e.getSize();J(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(V(this._box),K(this._container,"leaflet-crosshair")),me(),Mn(),H(document,{contextmenu:Ht,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(d(this._resetState,this),0);var e=new at(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});B.addInitHook("addHandler","boxZoom",So),B.mergeOptions({doubleClickZoom:!0});var Oo=xt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?n-o:n+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});B.addInitHook("addHandler","doubleClickZoom",Oo),B.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Zo=xt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new St(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}S(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){K(this._map._container,"leaflet-grab"),K(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,a=(o-e+n)%t+e-n,h=(o+e+n)%t-e-n,f=Math.abs(a+n)0?h:-h))-e;this._delta=0,this._startTime=null,f&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+f):t.setZoomAround(this._lastMousePos,e+f))}});B.addInitHook("addHandler","scrollWheelZoom",Bo);var Pl=600;B.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var No=xt.extend({addHooks:function(){C(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){H(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new M(e.clientX,e.clientY),this._holdTimeout=setTimeout(d(function(){this._cancel(),this._isTapValid()&&(C(document,"touchend",nt),C(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Pl),C(document,"touchend touchcancel contextmenu",this._cancel,this),C(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){H(document,"touchend",nt),H(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),H(document,"touchend touchcancel contextmenu",this._cancel,this),H(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});B.addInitHook("addHandler","tapHold",No),B.mergeOptions({touchZoom:z.touch,bounceAtZoomLimits:!0});var Ro=xt.extend({addHooks:function(){S(this._map._container,"leaflet-touch-zoom"),C(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){K(this._map._container,"leaflet-touch-zoom"),H(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),C(document,"touchmove",this._onTouchMove,this),C(document,"touchend touchcancel",this._onTouchEnd,this),nt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var h=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&h.x===0&&h.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var f=d(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(f,this,!0),nt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),H(document,"touchmove",this._onTouchMove,this),H(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});B.addInitHook("addHandler","touchZoom",Ro),B.BoxZoom=So,B.DoubleClickZoom=Oo,B.Drag=Zo,B.Keyboard=Io,B.ScrollWheelZoom=Bo,B.TapHold=No,B.TouchZoom=Ro,s.Bounds=U,s.Browser=z,s.CRS=Pt,s.Canvas=To,s.Circle=Un,s.CircleMarker=Ue,s.Class=Lt,s.Control=mt,s.DivIcon=Po,s.DivOverlay=wt,s.DomEvent=ja,s.DomUtil=Wa,s.Draggable=St,s.Evented=ue,s.FeatureGroup=zt,s.GeoJSON=Tt,s.GridLayer=be,s.Handler=xt,s.Icon=ee,s.ImageOverlay=Ye,s.LatLng=F,s.LatLngBounds=at,s.Layer=gt,s.LayerGroup=te,s.LineUtil=nl,s.Map=B,s.Marker=He,s.Mixin=Ya,s.Path=Ot,s.Point=M,s.PolyUtil=Ja,s.Polygon=ne,s.Polyline=kt,s.Popup=Je,s.PosAnimation=so,s.Projection=il,s.Rectangle=Co,s.Renderer=Et,s.SVG=Le,s.SVGOverlay=Lo,s.TileLayer=oe,s.Tooltip=Xe,s.Transformation=gn,s.Util=he,s.VideoOverlay=Ao,s.bind=d,s.bounds=st,s.canvas=Eo,s.circle=cl,s.circleMarker=ul,s.control=ye,s.divIcon=xl,s.extend=u,s.featureGroup=al,s.geoJSON=bo,s.geoJson=_l,s.gridLayer=wl,s.icon=ll,s.imageOverlay=pl,s.latLng=I,s.latLngBounds=Y,s.layerGroup=sl,s.map=Ha,s.marker=hl,s.point=E,s.polygon=dl,s.polyline=fl,s.popup=vl,s.rectangle=Ll,s.setOptions=Z,s.stamp=m,s.svg=Mo,s.svgOverlay=gl,s.tileLayer=zo,s.tooltip=yl,s.transformation=ce,s.version=l,s.videoOverlay=ml;var zl=window.L;s.noConflict=function(){return window.L=zl,this},window.L=s})}(se,se.exports)),se.exports}var Vt=Vo();const Xn=Ho(Vt),Qo=Go({__proto__:null,default:Xn},[Vt]),nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABC1BMVEUAAAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAD///8AlAAAkgAAgQAAgwAAhgAAjQAAkAAAhwAElQQAigD7/fv3/PcfoR8LmQsAjABRtlFGskY8rTw0qjQAkQDx+fHp9unX7te+5L6W05ZjvmMUnRTi8+Lc8NzP68+q26qc1px0xXRAr0DM6szI6Mi04LSIzYhyxHJpwGkupy4spyzxfiXGAAAALXRSTlMA/QL59OffBr60qG9iDuzPujoJ746Ff3l0TUhAMycjGxJd18WunJhZLRgMZVI0U6/AAAACQklEQVQ4y32U53baQBBGR6L33k1zjZ0sLJJA9GoDjmt63v9JMrNarELs+4ODVvd8MxrtCmzU62opmg6no6VqU4VjQieFVI4JFH8qnwl5hUY+wJwkL+vgRK2kmJfTL6pDiMuAnqbrutaTMbGQLVgNaMM+J9YzXUj+8kGpioTekHcPcENjSK4NguaZCDDELUL8GTAkeAJEUQh9WjYny8XrxORvynmCnvOUSoiE1e5uMxo/PC9NUqiQ7wqNGLkDXDL3XzsWt7+meG1Qu5EbyEYogmrsN50D4xdT1glkoBG0IvjKSpApr9wKUWJQ8aNhYI3njpMnU3YShbgiivDJg8u4/YMhVCYMMTQ03uWLscsYzdEYonEGZWnMRx0Xv8mwM46N0V4aEYhLY7lxGeOFNPL0LKLT++8u426Cho5DbUOd5jHDR3txlfkp5x78BIk0GjrHkK1D+EYRBrWRBSjKqfPVo11jiQLHIiwGAJkcjZ1W/j6NrS5/rLh8c0Hazzfi1c2o7nSx2z5ud/MpCWua+YUKSNv3tkF4d3o/xV8SqEayBkQrzGSKJQn6JLBoFgRXfoWUQd/eyTONyQhB4pyhQo6x5kh/SPdx7TIEkkyAKYo8UvJE4QJN64BaVAhmQ5e+Mthch5nihaVb4KAWYF4hUHMf/rLPY/hKKrhIRJk7ItICD/WUU6ETe0Ql6VD8cThGLTlayctxv9cKCzfhvzRSTDaRAS/2x8jVxDHqZz9NohCCdwkVsduLBHxAtuBLN+FDWgXvqP4Bkoed0xIT03MAAAAASUVORK5CYII=",qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAELklEQVR4AWIYBaNgFIyCUTAKRsEoADRLF2uSFEEcwCMjpaRlfb9vcXeHK+5whjP+GuzzMFfuzBl3d4fx6ZK0iGC2exenC4d/tHdV/NL+bNTf2kf+ODLUFEF9X4sIMMip+tPIouX16FWLEROKYiXzAlh80FxQyWfQ6gL8w4gCvB53cJ/2OMZOJ8xIyEjYLeYiyGM2VOVp5rxLl9GKAP8RBEFdrqe60EaLAYM66KiTbjWjR1CMAEqQKprkKpWhjhTLDLQyn436nUukz9Ejc451dmLRZkOms9F0xuuwVwlPQ4Av2VGR98ex399N+txvxQP5NAIGMMdhWY6fBFozsUedcVOHBRbksh3Z7DbsV0Y0acKvEECxpiPxaBi11iBMOfNnvMUAAOaNJcSKAgR9mtmxh1xdmBJLXx2uUvlcEV2y4cSMNCMhICiAzMzrcdZPzU2s0nbyaZzX1BxZG9jq00xb7C/rkutcQ/1J/VxFZXbZRkNzAhQrWJwuFsoGoEkvuwvsTAfcVhOYI78trCrAM8ysmNR6lEcXTF4eh5pLLnORjGjWCQF5TgAszhYAI++B6+os+EZa2IUXABTIso3HC+xmMRnh1E7Hk0+mapQqKcixBUx4cg7zoIAgIUlErxrcOXPTb/KO7sB/nICWzgSUx8PO1WdNPtr3yZQmeUQFWdCsfzJ+QUYG0hmSCtxhc6T5phVPqcprDLJ8udQtCjSYfcWn9bcjGu8RVXKMgKcAFGBkJEuaIKnEUXpoj862d2SWuzY0CWgIgZm6BMFku1GYMhfiyLL5MWBIE5LNOpnMUYL41J3drM2kyW3bQwQCHkSuhwNqot7W1rCJBjQj4wJARtJksk4um2iiRB1Cf2nP3Uetabu+9ZAgL4hBJEiCs+BFyDDvrkAQgM0ccEnHItpog/Xkr+t3+22/04Nv/Sg2+RQxgAisyq4EtnQRvSpOohgGQNH5BOBOAL7wyl/fH+sb33rrdaBYpgPpYwJeEIOIkmdgKkl62S9aNGvmrBBzuQeYUPqyt/29fdUpzz2FFEOC1OY5IPOCQWSRo7Ah1V5ZimQTihKdquB83evu/u5wZzrnfQixSZyYZvzxL4Eh5BZ4E2owotmQSbWiBFSGsnPd/e2xbtzZ3gUKmD7Mn9Mar/Iv2w8iokAdVZ8pB4pcYp8zAEbX39uc1h7oRp3zOu7GNmf6nC+X478BDCCLsCCnbAOyKKRrwg1t0Rzs9nv0IULeogP8MAOsLAEGkBdgDB1s88fR9jrUfG9y/aSbdpWHAHmSP+QnGERgOGbZReuwxbOUPeQ7ZJSLtM8f6DFMUpXfoAf4+uH+gzNRAC0jfRDOkmtUSzVVCQLElGf0ND8pIPC7o+Q3/1nVL9novLU6SkEVTQlTpK/ojwEDyIN4ud7RQY9VI5lPY+A36Cn+/cAwMpz/G/IdAqGyx1q2VHAAAAAASUVORK5CYII=",ze=()=>({createMap:(s,l,u)=>{const c=Vt.map(l,u),d=s?.tileLayerUrlTemplate||"https://tile.openstreetmap.org/{z}/{x}/{y}.png",g={maxZoom:19,attribution:"© OpenStreetMap",...s?.tileLayerOptions};return Vt.tileLayer(d,g).addTo(c),Vt.control.scale({imperial:!1}).addTo(c),c},createPinIcon:s=>Vt.icon({iconUrl:nn,shadowUrl:qo,iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41],shadowAnchor:[12,41],popupAnchor:[1,-34],...s})}),$n=Qo,ti=(i,r,s)=>{const{createPinIcon:l}=ze(),u=x.computed(()=>x.unref(i).map(b=>[b.location.latitude,b.location.longitude])),c=x.computed(()=>{const b=new $n.LatLngBounds;return x.unref(u).forEach(A=>{b.extend(A)}),b}),d=l(),g=[];let m=!1;const y=()=>{!s.value||!r.value||(g.forEach(b=>r.value?.removeLayer(b)),g.length=0,x.unref(u).forEach(b=>{g.push($n.marker(b,{icon:d}).addTo(r.value))}))},w=()=>{if(!(!s.value||!r.value)&&(r.value.invalidateSize(),y(),!m&&x.unref(u).length>0)){const b=x.unref(u).length>1?15:10;r.value.fitBounds(x.unref(c),{maxZoom:b,padding:[20,20]}),m=!0}};return x.watch(()=>u.value.length,()=>{m=!1,w()}),x.watch(u,(b,A)=>{b.length===A?.length&&y()},{deep:!0}),{pinLocations:u,bounds:c,setView:w,updatePins:y}},Ko=x.defineComponent({__name:"LocationPanel",props:{panelContext:{},applicationConfig:{}},setup(i){const{createMap:r}=ze(),{onPanelActive:s}=Pe.useSideBar(),l=x.ref(null),u=x.ref(!1),c=x.ref(),d=x.computed(()=>!i.panelContext||!i.panelContext.items?[]:x.unref(i.panelContext.items.filter(m=>!!m.location))||[]),{setView:g}=ti(d,c,u);return x.onMounted(()=>{u.value=!0,c.value=r(i.applicationConfig,x.unref(l)),g()}),x.onUnmounted(()=>{c.value?.remove()}),s("location-details",()=>{u.value=!0,g()}),(m,y)=>(x.openBlock(),x.createElementBlock("div",{ref_key:"leafletElement",ref:l,class:"leafletContainer ext:h-[200px]"},null,512))}});var Yo=15e3,on=1e3,rn=60*on,ke=60*rn,sn=24*ke,Jo="http://www.topografix.com/GPX/gpx_style/0/2",Te=new L.Icon.Default,Xo={startIcon:Te,endIcon:Te,wptIcons:{"":Te},wptTypeIcons:{"":Te},pointMatchers:[]},$o={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},tr={color:"blue"},er={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(i,r){r.max_point_interval=r.max_point_interval||Yo,r.markers=this._merge_objs(Xo,r.markers||{}),r.marker_options=this._merge_objs($o,r.marker_options||{}),r.polyline_options=r.polyline_options||[],r.gpx_options=this._merge_objs(er,r.gpx_options||{}),L.Util.setOptions(this,r),L.GPXTrackIcon=L.Icon.extend({options:r.marker_options}),this._gpx=i,this._layers={},this._prepare_markers(r.markers),this._init_info(),i&&this._parse(i,r,this.options.async)},get_duration_string:function(i,r){var s="";i>=sn&&(s+=Math.floor(i/sn)+"d ",i=i%sn),i>=ke&&(s+=Math.floor(i/ke)+":",i=i%ke);var l=Math.floor(i/rn);i=i%rn,l<10&&(s+="0"),s+=l+"'";var u=Math.floor(i/on);return i=i%on,u<10&&(s+="0"),s+=u,!r&&i>0?s+="."+Math.round(Math.floor(i)*1e3)/1e3:s+='"',s},get_duration_string_iso:function(i,r){var s=this.get_duration_string(i,r);return s.replace("'",":").replace('"',"")},_toFixed_helper:function(i,r=0){return typeof i=="number"?i.toFixed(r):"?"},to_miles:function(i){return i/1.60934},to_ft:function(i){return i*3.28084},m_to_km:function(i){return i/1e3},m_to_mi:function(i){return i/1609.34},ms_to_kmh:function(i){return i*3.6},ms_to_mih:function(i){return i/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/(3600*1e3))},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/(3600*1e3))},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/(3600*1e3))},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/(3600*1e3))},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var i=this;return this._info.elevation._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" m"})})},get_elevation_data_imp:function(){var i=this;return this._info.elevation._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,i.to_ft,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" ft"})})},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var i=this;return this._info.speed._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,i.ms_to_kmh,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,2)+" km/h"})})},get_speed_data_imp:function(){var i=this;return this._info.speed._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,i.ms_to_mih,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,2)+" mi/h"})})},get_speed_max:function(){return this.m_to_km(this._info.speed.max)*3600},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var i=this;return this._info.hr._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" bpm"})})},get_heartrate_data_imp:function(){var i=this;return this._info.hr._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" bpm"})})},get_cadence_data:function(){var i=this;return this._info.cad._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data:function(){var i=this;return this._info.atemp._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" degrees"})})},get_cadence_data_imp:function(){var i=this;return this._info.cad._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data_imp:function(){var i=this;return this._info.atemp._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" degrees"})})},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(i,r){var s={};for(var l in i)s[l]=i[l];for(var l in r)s[l]=r[l];return s},_prepare_data_point:function(i,r,s,l){var u=[r&&r(i[0])||i[0],s&&s(i[1])||i[1]];return u.push(l&&l(u[0],u[1])||u[0]+": "+u[1]),u},_prepare_markers:function(i){function r(s){return new L.GPXTrackIcon({iconUrl:s})}return Object.entries(i).forEach(([s,l])=>{s==="wptIcons"||s==="wptTypeIcons"?i[s]=this._prepare_markers(l):s==="pointMatchers"?i[s]=l.map(u=>(typeof u.icon=="string"&&(u.icon=r(u.icon)),u)):typeof l=="string"?i[s]=r(l):typeof l=="object"&&l!==null&&(i[s]=l)}),i},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(i,r,s,l){l==null&&(l=this.options.async),s==null&&(s=this.options);var u=this,c=new window.XMLHttpRequest;c.open("GET",i,l);try{c.overrideMimeType("text/xml")}catch{}c.onloadend=function(){c.status==200?r(c.responseXML,s):u.fire("error",{err:"Error fetching resource: "+i})},c.send(null)},_parse:function(i,r,s){var l=this,u=function(d,g){var m=l._parse_gpx_data(d,g);if(!m){l.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(g.gpx_options.parseElements)});return}l.addLayer(m),l.fire("loaded",{layers:m,element:d})};if(i.substr(0,1)==="<"){var c=new DOMParser;s?setTimeout(function(){u(c.parseFromString(i,"text/xml"),r)}):u(c.parseFromString(i,"text/xml"),r)}else this._load_xml(i,u,r,s)},_parse_gpx_data:function(i,r){var s,l,u=[],c=i.getElementsByTagName("name");c.length>0&&(this._info.name=c[0].textContent);var d=i.getElementsByTagName("desc");d.length>0&&(this._info.desc=d[0].textContent);var g=i.getElementsByTagName("author");g.length>0&&(this._info.author=g[0].textContent);var m=i.getElementsByTagName("copyright");m.length>0&&(this._info.copyright=m[0].textContent);var y=r.gpx_options.parseElements;if(y.indexOf("route")>-1){var w=i.getElementsByTagName("rte");for(s=0;s-1){var D=i.getElementsByTagName("trk");for(s=0;s-1)for(l=i.getElementsByTagName("wpt"),s=0;s0?ct[0].textContent:"",W=l[s].getElementsByTagName("desc"),d=W.length>0?W[0].textContent:"",j=l[s].getElementsByTagName("sym"),it=j.length>0?j[0].textContent:null,Yt=l[s].getElementsByTagName("type"),Rt=Yt.length>0?Yt[0].textContent:null,At=r.markers.wptIcons,Dt=r.markers.wptTypeIcons,Ft=r.markers.pointMatchers||[],Q;if(At&&it&&At[it])Q=At[it];else if(Dt&&Rt&&Dt[Rt])Q=Dt[Rt];else if(Ft.length>0){for(var q=0;q"+c+""+(d.length>0?"
"+d:"")).openPopup(),this.fire("addpoint",{point:he,point_type:"waypoint",element:l[s]}),u.push(he)}if(u.length>1)return new L.FeatureGroup(u);if(u.length==1)return u[0]},_parse_segment:function(i,r,s,l,u){var c=i.getElementsByTagName(u);if(!c.length)return[];for(var d=[],g=[],m=[],y=null,w=0;w0?A.meta.time=new Date(Date.parse(b[0].textContent)):A.meta.time=new Date("1970-01-01T00:00:00");var N=y!=null?Math.abs(A.meta.time-y.meta.time):0;b=c[w].getElementsByTagName("ele"),b.length>0?A.meta.ele=parseFloat(b[0].textContent):A.meta.ele=y!=null?y.meta.ele:null;var D=y!=null?A.meta.ele-y.meta.ele:0,Z=y!=null?this._dist3d(y,A):0;if(b=c[w].getElementsByTagName("speed"),b.length>0?A.meta.speed=parseFloat(b[0].textContent):A.meta.speed=N>0?1e3*Z/N:0,b=c[w].getElementsByTagName("name"),b.length>0){for(var pt=b[0].textContent,bt=r.markers.pointMatchers||[],ct=0;ct0&&(A.meta.hr=parseInt(b[0].textContent),this._info.hr._points.push([this._info.length,A.meta.hr]),this._info.hr._total+=A.meta.hr),b=c[w].getElementsByTagNameNS("*","cad"),b.length>0&&(A.meta.cad=parseInt(b[0].textContent),this._info.cad._points.push([this._info.length,A.meta.cad]),this._info.cad._total+=A.meta.cad),b=c[w].getElementsByTagNameNS("*","atemp"),b.length>0&&(A.meta.atemp=parseInt(b[0].textContent),this._info.atemp._points.push([this._info.length,A.meta.atemp]),this._info.atemp._total+=A.meta.atemp),A.meta.ele>this._info.elevation.max&&(this._info.elevation.max=A.meta.ele),A.meta.elethis._info.speed.max&&(this._info.speed.max=A.meta.speed),this._info.speed._points.push([this._info.length,A.meta.speed]),y==null&&this._info.duration.start==null&&(this._info.duration.start=A.meta.time),this._info.duration.end=A.meta.time,this._info.duration.total+=N,N0?this._info.elevation.gain+=D:this._info.elevation.loss+=Math.abs(D),y=A,d.push(A)}var W=new L.Polyline(d,this._extract_styling(i,s,l));if(this.fire("addline",{line:W,element:i}),m.push(W),r.markers.startIcon){var j=new L.Marker(d[0],{clickable:r.marker_options.clickable,icon:r.markers.startIcon});this.fire("addpoint",{point:j,point_type:"start",element:c[0],line:i}),m.push(j)}if(r.markers.endIcon){var j=new L.Marker(d[d.length-1],{clickable:r.marker_options.clickable,icon:r.markers.endIcon});this.fire("addpoint",{point:j,point_type:"end",element:c[c.length-1],line:i}),m.push(j)}for(var w=0;w0){var c=u[0].getElementsByTagName("color");c.length>0&&(l.color="#"+c[0].textContent);var c=u[0].getElementsByTagName("opacity");c.length>0&&(l.opacity=c[0].textContent);var c=u[0].getElementsByTagName("weight");c.length>0&&(l.weight=c[0].textContent);var c=u[0].getElementsByTagName("linecap");c.length>0&&(l.lineCap=c[0].textContent);var c=u[0].getElementsByTagName("linejoin");c.length>0&&(l.lineJoin=c[0].textContent);var c=u[0].getElementsByTagName("dasharray");c.length>0&&(l.dashArray=c[0].textContent);var c=u[0].getElementsByTagName("dashoffset");c.length>0&&(l.dashOffset=c[0].textContent)}return this._merge_objs(l,s)},_dist2d:function(i,r){var s=6371e3,l=this._deg2rad(r.lat-i.lat),u=this._deg2rad(r.lng-i.lng),c=Math.sin(l/2)*Math.sin(l/2)+Math.cos(this._deg2rad(i.lat))*Math.cos(this._deg2rad(r.lat))*Math.sin(u/2)*Math.sin(u/2),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),g=s*d;return g},_dist3d:function(i,r){var s=this._dist2d(i,r),l=Math.abs(r.meta.ele-i.meta.ele);return Math.sqrt(Math.pow(s,2)+Math.pow(l,2))},_deg2rad:function(i){return i*Math.PI/180}});const ei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABAlBMVEUAAADGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkL///+3LCy4Li62KSnFQEDDPT3COzu7MjK9NDT9+Pi6MDC/NzfARUXBOTn+/PzUf3/Ob2/GV1e6NTX57e303t7iqKjYjIzLZGTJX1/78/P35+f14uLx19fx1NTtysrrxMTkrq7MaGjIXFzEUVG8PDznubnnuLjdnJy+Pz/5SaUvAAAALHRSTlMA/AL5Cgb08ObdurSoGg3sz75zbmM6joV/eVpNSEAzJyMSX+jh18SunJgtUvqwWL0AAAJBSURBVDjLfZN3e6JAEIcHsAXF3kssudRbAQFBjSWx5NLLle//VW5nWaUYff/hYZ+X3wyzu+AhKs1aSpblVK2piLBP9LSSjROGEM+WS9Gw0CkniJ/MdRv8iI0sCXP+U/QJxTPCGBimaRoDHlOI7oSe24AxsjRN1TRnaDIplt8qzQT7fqSpWzTLwKV4HRjKBRMsFdEpzDFx8eQUkOpO0LXxZr0Za/pOuUzjf56jMFQp8+W9bduPbx8sBQtJWKeA7gSXpr/6LncrTLSw3WQEIkmMcOjK9KG/xV5hCtY5K0HnxI3Q524CT1nrNAR3IA+NGH0OaY23vp8/Fu8kBUWBFdHHjwHj7pOGTKiRgwI1DE3V13bAuJ1RY0SNC8hzY3bbDzBFg2ccN5JQ5MbHQ0Cw37lRxn9h4/h6Dhj3Y50NROpBG+eBM18FyvzFIdOh/riBtEwNk77/e/EJzxhhuVOHKt9Zff7k1djofHcLAFCKY4hGlc/fttvl61ylDLFIGwC3jneiL96Xr08vy9kCD4iDM78SgVKXdgdEVxdfC9U7ZJkWIN0c4YoPBwWSigCjHhNQmTjeScYeeASSviRUQcdyNIo1whbo2nUUOKUEEQR+pQxjgN/jwsmNd+eqAkI88FXKg4eSI0IYInfBRytBwkKiBX7EvBQypJoIAdIpEoxIdiFEO+tX8Mbu0cj4lFgR9hFrvlbKfNyHWiE5Bb6lkyW8iRIcoOlOJdaDQ4jFOE6iEoWDRKu026s0HCFSkWQFjtKthEf1H+4TmsxXLEfyAAAAAElFTkSuQmCC",nr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAzCAMAAAAuJJHNAAAAkFBMVEUAAAAAru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru9ovJP8AAAAL3RSTlMA+AT68Fr0FA8H3MSXQDkL6+bg1o6CUkcxwbitbV8sJyQZz76neH1yTB6yolWHaUf8FCEAAAGESURBVDjLfdTnloIwEAXgmyxVKUoTxLWsvezO+7/dqkgGDPH7B2dOuJkwQVe8Dgv7Fq48DIqjfJtYQggrGWczvcifXSxiTmXH6DkHFvWJeomOcky6dNYp+KEhiSrZbGlY+vqQzMikbuKGEzIRNu7klcwqD8BySmbiEXbRi18Hu/SLWAbIHSlOtpaQm30n2NjFhnvxtZd4srnB0xIlx5h7aMiAgxSYOdT6RivklwvYQqWI+CATVZHjWyW3uGIzUhW/uAkV1EYr4qgHRLy1nY+XvNt3l3frtFHDKe92CQTEj38egLhISZnHQNFpsqjyxWHuENs/cqdkNilxl5FZ7fPWdNwAvyaTHxdPhSCDIxqe6V8frfHCZ9OXo+WOh5dYAZ8XycHcypCC2YI0B3R5c31oz+g5Oe/tXKDPV2PDg/ImmmgzzYbuiEsMzWpEbBJiwJFYIMG03nO/NYXDpz7Mv1KjcmFQJvRgnWC0b2L6YENhR0t8cLLUgRjIgG8ig9U2xGdy/R7zH4uopdSUohgfAAAAAElFTkSuQmCC",ir={class:"ext:flex ext:flex-col"},or={class:"ext:absolute ext:grid ext:grid-cols-[auto_minmax(0,1fr)] ext:z-990 bg-role-surface-container ext:rounded ext:p-2 ext:right-2 ext:top-2"},rr=["textContent"],sr=["textContent"],ar=["textContent"],lr=["textContent"],hr=x.defineComponent({__name:"GpxMap",props:{currentContent:{},applicationConfig:{}},setup(i){const{createMap:r}=ze(),s=x.ref(null),{$gettext:l}=en.useGettext();let u=null;const c=x.ref({}),d={async:!0,marker_options:{clickable:!1},markers:{startIcon:nn,endIcon:ei,wptIcons:{start:nn,end:ei,"":nr}}};let g=null;const m=()=>{u&&(g&&u.removeLayer(g),g=new Xn.GPX(i.currentContent,d).on("loaded",y=>{const w=y.target;u.fitBounds(y.target.getBounds()),c.value={name:w.get_name(),distance:w.get_distance_imp().toFixed(2),elevationGain:w.to_ft(w.get_elevation_gain()).toFixed(0),elevationLoss:w.to_ft(w.get_elevation_loss()).toFixed(0),elevationNet:w.to_ft(w.get_elevation_gain()-w.get_elevation_loss()).toFixed(0)}}).addTo(u))};return x.onMounted(()=>{u=r(i.applicationConfig,x.unref(s)),m()}),x.watch(()=>i.currentContent,m),x.onBeforeUnmount(()=>{u?.remove()}),(y,w)=>(x.openBlock(),x.createElementBlock("div",ir,[x.createElementVNode("div",{ref_key:"leafletElement",ref:s,class:"ext:size-full ext:z-1"},[x.createElementVNode("dl",or,[x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Name"))},null,8,rr),x.createElementVNode("dd",null,x.toDisplayString(c.value.name),1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Distance"))},null,8,sr),x.createElementVNode("dd",null,x.toDisplayString(c.value.distance)+"km",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Elevation Gain"))},null,8,ar),x.createElementVNode("dd",null,x.toDisplayString(c.value.elevationGain)+"m",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Elevation Loss"))},null,8,lr),x.createElementVNode("dd",null,x.toDisplayString(c.value.elevationLoss)+"m",1)])],512)]))}}),ur={class:"ext:h-full"},cr=["textContent"],fr=x.defineComponent({__name:"LocationFolderView",props:{resources:{},applicationConfig:{}},setup(i){const{$gettext:r}=en.useGettext(),{createMap:s}=ze(),l=x.ref(null),u=x.ref(!1),c=x.ref(),d=x.computed(()=>x.unref(i.resources?.filter(y=>!!y.location))||[]),{pinLocations:g,setView:m}=ti(d,c,u);return x.onMounted(()=>{u.value=!0,c.value=s(i.applicationConfig,x.unref(l)),m()}),x.onUnmounted(()=>{c.value?.remove()}),(y,w)=>(x.openBlock(),x.createElementBlock("div",ur,[x.unref(g).length?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(x.unref(Pe.NoContentMessage),{key:0,icon:"map-2"},{message:x.withCtx(()=>[x.createElementVNode("span",{textContent:x.toDisplayString(x.unref(r)("No files with location data"))},null,8,cr)]),_:1})),x.createElementVNode("div",{ref_key:"leafletElement",ref:l,class:x.normalizeClass(["ext:h-full",{hidden:!x.unref(g).length}])},null,2)]))}});function T(i,r,s){function l(g,m){var y;Object.defineProperty(g,"_zod",{value:g._zod??{},enumerable:!1}),(y=g._zod).traits??(y.traits=new Set),g._zod.traits.add(i),r(g,m);for(const w in d.prototype)w in g||Object.defineProperty(g,w,{value:d.prototype[w].bind(g)});g._zod.constr=d,g._zod.def=m}const u=s?.Parent??Object;class c extends u{}Object.defineProperty(c,"name",{value:i});function d(g){var m;const y=s?.Parent?new c:this;l(y,g),(m=y._zod).deferred??(m.deferred=[]);for(const w of y._zod.deferred)w();return y}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:g=>s?.Parent&&g instanceof s.Parent?!0:g?._zod?.traits?.has(i)}),Object.defineProperty(d,"name",{value:i}),d}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ni extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const ii={};function Zt(i){return ii}function dr(i){const r=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,u])=>r.indexOf(+l)===-1).map(([l,u])=>u)}function an(i,r){return typeof r=="bigint"?r.toString():r}function ln(i){return{get value(){{const r=i();return Object.defineProperty(this,"value",{value:r}),r}}}}function hn(i){return i==null}function un(i){const r=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;return i.slice(r,s)}const oi=Symbol("evaluating");function G(i,r,s){let l;Object.defineProperty(i,r,{get(){if(l!==oi)return l===void 0&&(l=oi,l=s()),l},set(u){Object.defineProperty(i,r,{value:u})},configurable:!0})}function It(i,r,s){Object.defineProperty(i,r,{value:s,writable:!0,enumerable:!0,configurable:!0})}function Bt(...i){const r={};for(const s of i){const l=Object.getOwnPropertyDescriptors(s);Object.assign(r,l)}return Object.defineProperties({},r)}function ri(i){return JSON.stringify(i)}const si="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function Ee(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const _r=ln(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function ae(i){if(Ee(i)===!1)return!1;const r=i.constructor;if(r===void 0)return!0;const s=r.prototype;return!(Ee(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function ai(i){return ae(i)?{...i}:Array.isArray(i)?[...i]:i}const pr=new Set(["string","number","symbol"]);function mr(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(i,r,s){const l=new i._zod.constr(r??i._zod.def);return(!r||s?.parent)&&(l._zod.parent=i),l}function rt(i){const r=i;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function gr(i){return Object.keys(i).filter(r=>i[r]._zod.optin==="optional"&&i[r]._zod.optout==="optional")}function vr(i,r){const s=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={};for(const c in r){if(!(c in s.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=s.shape[c])}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function yr(i,r){const s=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={...i._zod.def.shape};for(const c in r){if(!(c in s.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&delete u[c]}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function xr(i,r){if(!ae(r))throw new Error("Invalid input to extend: expected a plain object");const s=i._zod.def.checks;if(s&&s.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const u=Bt(i._zod.def,{get shape(){const c={...i._zod.def.shape,...r};return It(this,"shape",c),c},checks:[]});return Mt(i,u)}function wr(i,r){if(!ae(r))throw new Error("Invalid input to safeExtend: expected a plain object");const s={...i._zod.def,get shape(){const l={...i._zod.def.shape,...r};return It(this,"shape",l),l},checks:i._zod.def.checks};return Mt(i,s)}function br(i,r){const s=Bt(i._zod.def,{get shape(){const l={...i._zod.def.shape,...r._zod.def.shape};return It(this,"shape",l),l},get catchall(){return r._zod.def.catchall},checks:[]});return Mt(i,s)}function Ar(i,r,s){const l=Bt(r._zod.def,{get shape(){const u=r._zod.def.shape,c={...u};if(s)for(const d in s){if(!(d in u))throw new Error(`Unrecognized key: "${d}"`);s[d]&&(c[d]=i?new i({type:"optional",innerType:u[d]}):u[d])}else for(const d in u)c[d]=i?new i({type:"optional",innerType:u[d]}):u[d];return It(this,"shape",c),c},checks:[]});return Mt(r,l)}function Lr(i,r,s){const l=Bt(r._zod.def,{get shape(){const u=r._zod.def.shape,c={...u};if(s)for(const d in s){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);s[d]&&(c[d]=new i({type:"nonoptional",innerType:u[d]}))}else for(const d in u)c[d]=new i({type:"nonoptional",innerType:u[d]});return It(this,"shape",c),c},checks:[]});return Mt(r,l)}function qt(i,r=0){if(i.aborted===!0)return!0;for(let s=r;s{var l;return(l=s).path??(l.path=[]),s.path.unshift(i),s})}function Me(i){return typeof i=="string"?i:i?.message}function Nt(i,r,s){const l={...i,path:i.path??[]};if(!i.message){const u=Me(i.inst?._zod.def?.error?.(i))??Me(r?.error?.(i))??Me(s.customError?.(i))??Me(s.localeError?.(i))??"Invalid input";l.message=u}return delete l.inst,delete l.continue,r?.reportInput||delete l.input,l}function cn(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function le(...i){const[r,s,l]=i;return typeof r=="string"?{message:r,code:"custom",input:s,inst:l}:{...r}}const hi=(i,r)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:r,enumerable:!1}),i.message=JSON.stringify(r,an,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},ui=T("$ZodError",hi),ci=T("$ZodError",hi,{Parent:Error});function Pr(i,r=s=>s.message){const s={},l=[];for(const u of i.issues)u.path.length>0?(s[u.path[0]]=s[u.path[0]]||[],s[u.path[0]].push(r(u))):l.push(r(u));return{formErrors:l,fieldErrors:s}}function zr(i,r=s=>s.message){const s={_errors:[]},l=u=>{for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>l({issues:d}));else if(c.code==="invalid_key")l({issues:c.issues});else if(c.code==="invalid_element")l({issues:c.issues});else if(c.path.length===0)s._errors.push(r(c));else{let d=s,g=0;for(;g(r,s,l,u)=>{const c=l?Object.assign(l,{async:!1}):{async:!1},d=r._zod.run({value:s,issues:[]},c);if(d instanceof Promise)throw new Qt;if(d.issues.length){const g=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw si(g,u?.callee),g}return d.value},dn=i=>async(r,s,l,u)=>{const c=l?Object.assign(l,{async:!0}):{async:!0};let d=r._zod.run({value:s,issues:[]},c);if(d instanceof Promise&&(d=await d),d.issues.length){const g=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw si(g,u?.callee),g}return d.value},Ce=i=>(r,s,l)=>{const u=l?{...l,async:!1}:{async:!1},c=r._zod.run({value:s,issues:[]},u);if(c instanceof Promise)throw new Qt;return c.issues.length?{success:!1,error:new(i??ui)(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},kr=Ce(ci),Se=i=>async(r,s,l)=>{const u=l?Object.assign(l,{async:!0}):{async:!0};let c=r._zod.run({value:s,issues:[]},u);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new i(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Tr=Se(ci),Er=i=>(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return fn(i)(r,s,u)},Mr=i=>(r,s,l)=>fn(i)(r,s,l),Cr=i=>async(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return dn(i)(r,s,u)},Sr=i=>async(r,s,l)=>dn(i)(r,s,l),Or=i=>(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ce(i)(r,s,u)},Zr=i=>(r,s,l)=>Ce(i)(r,s,l),Ir=i=>async(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Se(i)(r,s,u)},Br=i=>async(r,s,l)=>Se(i)(r,s,l),Nr=/^(?:true|false)$/i,Kt=T("$ZodCheck",(i,r)=>{var s;i._zod??(i._zod={}),i._zod.def=r,(s=i._zod).onattach??(s.onattach=[])}),Rr=T("$ZodCheckMaxLength",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{const u=l.value;if(u.length<=r.maximum)return;const d=cn(u);l.issues.push({origin:d,code:"too_big",maximum:r.maximum,inclusive:!0,input:u,inst:i,continue:!r.abort})}}),Dr=T("$ZodCheckMinLength",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>u&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const u=l.value;if(u.length>=r.minimum)return;const d=cn(u);l.issues.push({origin:d,code:"too_small",minimum:r.minimum,inclusive:!0,input:u,inst:i,continue:!r.abort})}}),Fr=T("$ZodCheckLengthEquals",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag;u.minimum=r.length,u.maximum=r.length,u.length=r.length}),i._zod.check=l=>{const u=l.value,c=u.length;if(c===r.length)return;const d=cn(u),g=c>r.length;l.issues.push({origin:d,...g?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),Wr=T("$ZodCheckOverwrite",(i,r)=>{Kt.init(i,r),i._zod.check=s=>{s.value=r.tx(s.value)}});class Gr{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const l=r.split(` +`).filter(d=>d),u=Math.min(...l.map(d=>d.length-d.trimStart().length)),c=l.map(d=>d.slice(u)).map(d=>" ".repeat(this.indent*2)+d);for(const d of c)this.content.push(d)}compile(){const r=Function,s=this?.args,u=[...(this?.content??[""]).map(c=>` ${c}`)];return new r(...s,u.join(` +`))}}const jr={major:4,minor:1,patch:12},$=T("$ZodType",(i,r)=>{var s;i??(i={}),i._zod.def=r,i._zod.bag=i._zod.bag||{},i._zod.version=jr;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const c of u._zod.onattach)c(i);if(l.length===0)(s=i._zod).deferred??(s.deferred=[]),i._zod.deferred?.push(()=>{i._zod.run=i._zod.parse});else{const u=(d,g,m)=>{let y=qt(d),w;for(const b of g){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(y)continue;const A=d.issues.length,N=b._zod.check(d);if(N instanceof Promise&&m?.async===!1)throw new Qt;if(w||N instanceof Promise)w=(w??Promise.resolve()).then(async()=>{await N,d.issues.length!==A&&(y||(y=qt(d,A)))});else{if(d.issues.length===A)continue;y||(y=qt(d,A))}}return w?w.then(()=>d):d},c=(d,g,m)=>{if(qt(d))return d.aborted=!0,d;const y=u(g,l,m);if(y instanceof Promise){if(m.async===!1)throw new Qt;return y.then(w=>i._zod.parse(w,m))}return i._zod.parse(y,m)};i._zod.run=(d,g)=>{if(g.skipChecks)return i._zod.parse(d,g);if(g.direction==="backward"){const y=i._zod.parse({value:d.value,issues:[]},{...g,skipChecks:!0});return y instanceof Promise?y.then(w=>c(w,d,g)):c(y,d,g)}const m=i._zod.parse(d,g);if(m instanceof Promise){if(g.async===!1)throw new Qt;return m.then(y=>u(y,l,g))}return u(m,l,g)}}i["~standard"]={validate:u=>{try{const c=kr(i,u);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return Tr(i,u).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Hr=T("$ZodBoolean",(i,r)=>{$.init(i,r),i._zod.pattern=Nr,i._zod.parse=(s,l)=>{if(r.coerce)try{s.value=!!s.value}catch{}const u=s.value;return typeof u=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:i}),s}}),Ur=T("$ZodUnknown",(i,r)=>{$.init(i,r),i._zod.parse=s=>s}),Vr=T("$ZodNever",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:i}),s)});function fi(i,r,s){i.issues.length&&r.issues.push(...li(s,i.issues)),r.value[s]=i.value}const Qr=T("$ZodArray",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{const u=s.value;if(!Array.isArray(u))return s.issues.push({expected:"array",code:"invalid_type",input:u,inst:i}),s;s.value=Array(u.length);const c=[];for(let d=0;dfi(y,s,d))):fi(m,s,d)}return c.length?Promise.all(c).then(()=>s):s}});function Oe(i,r,s,l){i.issues.length&&r.issues.push(...li(s,i.issues)),i.value===void 0?s in l&&(r.value[s]=void 0):r.value[s]=i.value}function di(i){const r=Object.keys(i.shape);for(const l of r)if(!i.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const s=gr(i.shape);return{...i,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(s)}}function _i(i,r,s,l,u,c){const d=[],g=u.keySet,m=u.catchall._zod,y=m.def.type;for(const w of Object.keys(r)){if(g.has(w))continue;if(y==="never"){d.push(w);continue}const b=m.run({value:r[w],issues:[]},l);b instanceof Promise?i.push(b.then(A=>Oe(A,s,w,r))):Oe(b,s,w,r)}return d.length&&s.issues.push({code:"unrecognized_keys",keys:d,input:r,inst:c}),i.length?Promise.all(i).then(()=>s):s}const qr=T("$ZodObject",(i,r)=>{if($.init(i,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const g=r.shape;Object.defineProperty(r,"shape",{get:()=>{const m={...g};return Object.defineProperty(r,"shape",{value:m}),m}})}const l=ln(()=>di(r));G(i._zod,"propValues",()=>{const g=r.shape,m={};for(const y in g){const w=g[y]._zod;if(w.values){m[y]??(m[y]=new Set);for(const b of w.values)m[y].add(b)}}return m});const u=Ee,c=r.catchall;let d;i._zod.parse=(g,m)=>{d??(d=l.value);const y=g.value;if(!u(y))return g.issues.push({expected:"object",code:"invalid_type",input:y,inst:i}),g;g.value={};const w=[],b=d.shape;for(const A of d.keys){const D=b[A]._zod.run({value:y[A],issues:[]},m);D instanceof Promise?w.push(D.then(Z=>Oe(Z,g,A,y))):Oe(D,g,A,y)}return c?_i(w,y,g,m,l.value,i):w.length?Promise.all(w).then(()=>g):g}}),Kr=T("$ZodObjectJIT",(i,r)=>{qr.init(i,r);const s=i._zod.parse,l=ln(()=>di(r)),u=A=>{const N=new Gr(["shape","payload","ctx"]),D=l.value,Z=W=>{const j=ri(W);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};N.write("const input = payload.value;");const pt=Object.create(null);let bt=0;for(const W of D.keys)pt[W]=`key_${bt++}`;N.write("const newResult = {};");for(const W of D.keys){const j=pt[W],it=ri(W);N.write(`const ${j} = ${Z(W)};`),N.write(` + if (${j}.issues.length) { + payload.issues = payload.issues.concat(${j}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${it}, ...iss.path] : [${it}] + }))); + } + + + if (${j}.value === undefined) { + if (${it} in input) { + newResult[${it}] = undefined; + } + } else { + newResult[${it}] = ${j}.value; + } + + `)}N.write("payload.value = newResult;"),N.write("return payload;");const ct=N.compile();return(W,j)=>ct(A,W,j)};let c;const d=Ee,g=!ii.jitless,y=g&&_r.value,w=r.catchall;let b;i._zod.parse=(A,N)=>{b??(b=l.value);const D=A.value;return d(D)?g&&y&&N?.async===!1&&N.jitless!==!0?(c||(c=u(r.shape)),A=c(A,N),w?_i([],D,A,N,b,i):A):s(A,N):(A.issues.push({expected:"object",code:"invalid_type",input:D,inst:i}),A)}});function pi(i,r,s,l){for(const c of i)if(c.issues.length===0)return r.value=c.value,r;const u=i.filter(c=>!qt(c));return u.length===1?(r.value=u[0].value,u[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:s,errors:i.map(c=>c.issues.map(d=>Nt(d,l,Zt())))}),r)}const Yr=T("$ZodUnion",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.options.some(u=>u._zod.optin==="optional")?"optional":void 0),G(i._zod,"optout",()=>r.options.some(u=>u._zod.optout==="optional")?"optional":void 0),G(i._zod,"values",()=>{if(r.options.every(u=>u._zod.values))return new Set(r.options.flatMap(u=>Array.from(u._zod.values)))}),G(i._zod,"pattern",()=>{if(r.options.every(u=>u._zod.pattern)){const u=r.options.map(c=>c._zod.pattern);return new RegExp(`^(${u.map(c=>un(c.source)).join("|")})$`)}});const s=r.options.length===1,l=r.options[0]._zod.run;i._zod.parse=(u,c)=>{if(s)return l(u,c);let d=!1;const g=[];for(const m of r.options){const y=m._zod.run({value:u.value,issues:[]},c);if(y instanceof Promise)g.push(y),d=!0;else{if(y.issues.length===0)return y;g.push(y)}}return d?Promise.all(g).then(m=>pi(m,u,i,c)):pi(g,u,i,c)}}),Jr=T("$ZodIntersection",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{const u=s.value,c=r.left._zod.run({value:u,issues:[]},l),d=r.right._zod.run({value:u,issues:[]},l);return c instanceof Promise||d instanceof Promise?Promise.all([c,d]).then(([m,y])=>mi(s,m,y)):mi(s,c,d)}});function _n(i,r){if(i===r)return{valid:!0,data:i};if(i instanceof Date&&r instanceof Date&&+i==+r)return{valid:!0,data:i};if(ae(i)&&ae(r)){const s=Object.keys(r),l=Object.keys(i).filter(c=>s.indexOf(c)!==-1),u={...i,...r};for(const c of l){const d=_n(i[c],r[c]);if(!d.valid)return{valid:!1,mergeErrorPath:[c,...d.mergeErrorPath]};u[c]=d.data}return{valid:!0,data:u}}if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let l=0;l{$.init(i,r);const s=dr(r.entries),l=new Set(s);i._zod.values=l,i._zod.pattern=new RegExp(`^(${s.filter(u=>pr.has(typeof u)).map(u=>typeof u=="string"?mr(u):u.toString()).join("|")})$`),i._zod.parse=(u,c)=>{const d=u.value;return l.has(d)||u.issues.push({code:"invalid_value",values:s,input:d,inst:i}),u}}),$r=T("$ZodTransform",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{if(l.direction==="backward")throw new ni(i.constructor.name);const u=r.transform(s.value,s);if(l.async)return(u instanceof Promise?u:Promise.resolve(u)).then(d=>(s.value=d,s));if(u instanceof Promise)throw new Qt;return s.value=u,s}});function gi(i,r){return i.issues.length&&r===void 0?{issues:[],value:void 0}:i}const ts=T("$ZodOptional",(i,r)=>{$.init(i,r),i._zod.optin="optional",i._zod.optout="optional",G(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),G(i._zod,"pattern",()=>{const s=r.innerType._zod.pattern;return s?new RegExp(`^(${un(s.source)})?$`):void 0}),i._zod.parse=(s,l)=>{if(r.innerType._zod.optin==="optional"){const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>gi(c,s.value)):gi(u,s.value)}return s.value===void 0?s:r.innerType._zod.run(s,l)}}),es=T("$ZodNullable",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),G(i._zod,"pattern",()=>{const s=r.innerType._zod.pattern;return s?new RegExp(`^(${un(s.source)}|null)$`):void 0}),G(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),i._zod.parse=(s,l)=>s.value===null?s:r.innerType._zod.run(s,l)}),ns=T("$ZodDefault",(i,r)=>{$.init(i,r),i._zod.optin="optional",G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);if(s.value===void 0)return s.value=r.defaultValue,s;const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>vi(c,r)):vi(u,r)}});function vi(i,r){return i.value===void 0&&(i.value=r.defaultValue),i}const is=T("$ZodPrefault",(i,r)=>{$.init(i,r),i._zod.optin="optional",G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>(l.direction==="backward"||s.value===void 0&&(s.value=r.defaultValue),r.innerType._zod.run(s,l))}),os=T("$ZodNonOptional",(i,r)=>{$.init(i,r),G(i._zod,"values",()=>{const s=r.innerType._zod.values;return s?new Set([...s].filter(l=>l!==void 0)):void 0}),i._zod.parse=(s,l)=>{const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>yi(c,i)):yi(u,i)}});function yi(i,r){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:r}),i}const rs=T("$ZodCatch",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>(s.value=c.value,c.issues.length&&(s.value=r.catchValue({...s,error:{issues:c.issues.map(d=>Nt(d,l,Zt()))},input:s.value}),s.issues=[]),s)):(s.value=u.value,u.issues.length&&(s.value=r.catchValue({...s,error:{issues:u.issues.map(c=>Nt(c,l,Zt()))},input:s.value}),s.issues=[]),s)}}),ss=T("$ZodPipe",(i,r)=>{$.init(i,r),G(i._zod,"values",()=>r.in._zod.values),G(i._zod,"optin",()=>r.in._zod.optin),G(i._zod,"optout",()=>r.out._zod.optout),G(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(s,l)=>{if(l.direction==="backward"){const c=r.out._zod.run(s,l);return c instanceof Promise?c.then(d=>Ze(d,r.in,l)):Ze(c,r.in,l)}const u=r.in._zod.run(s,l);return u instanceof Promise?u.then(c=>Ze(c,r.out,l)):Ze(u,r.out,l)}});function Ze(i,r,s){return i.issues.length?(i.aborted=!0,i):r._zod.run({value:i.value,issues:i.issues},s)}const as=T("$ZodReadonly",(i,r)=>{$.init(i,r),G(i._zod,"propValues",()=>r.innerType._zod.propValues),G(i._zod,"values",()=>r.innerType._zod.values),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(xi):xi(u)}});function xi(i){return i.value=Object.freeze(i.value),i}const ls=T("$ZodCustom",(i,r)=>{Kt.init(i,r),$.init(i,r),i._zod.parse=(s,l)=>s,i._zod.check=s=>{const l=s.value,u=r.fn(l);if(u instanceof Promise)return u.then(c=>wi(c,s,l,i));wi(u,s,l,i)}});function wi(i,r,s,l){if(!i){const u={code:"custom",input:s,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(u.params=l._zod.def.params),r.issues.push(le(u))}}class hs{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...s){const l=s[0];if(this._map.set(r,l),l&&typeof l=="object"&&"id"in l){if(this._idmap.has(l.id))throw new Error(`ID ${l.id} already exists in the registry`);this._idmap.set(l.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const s=this._map.get(r);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(r),this}get(r){const s=r._zod.parent;if(s){const l={...this.get(s)??{}};delete l.id;const u={...l,...this._map.get(r)};return Object.keys(u).length?u:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function us(){return new hs}const Ie=us();function cs(i,r){return new i({type:"boolean",...rt(r)})}function fs(i){return new i({type:"unknown"})}function ds(i,r){return new i({type:"never",...rt(r)})}function _s(i,r){return new Rr({check:"max_length",...rt(r),maximum:i})}function bi(i,r){return new Dr({check:"min_length",...rt(r),minimum:i})}function ps(i,r){return new Fr({check:"length_equals",...rt(r),length:i})}function ms(i){return new Wr({check:"overwrite",tx:i})}function gs(i,r,s){return new i({type:"array",element:r,...rt(s)})}function vs(i,r,s){return new i({type:"custom",check:"custom",fn:r,...rt(s)})}function ys(i){const r=xs(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(le(l,s.value,r._zod.def));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=s.value),u.inst??(u.inst=r),u.continue??(u.continue=!r._zod.def.abort),s.issues.push(le(u))}},i(s.value,s)));return r}function xs(i,r){const s=new Kt({check:"custom",...rt(r)});return s._zod.check=i,s}const ut=T("ZodError",(i,r)=>{ui.init(i,r),i.name="ZodError",Object.defineProperties(i,{format:{value:s=>zr(i,s)},flatten:{value:s=>Pr(i,s)},addIssue:{value:s=>{i.issues.push(s),i.message=JSON.stringify(i.issues,an,2)}},addIssues:{value:s=>{i.issues.push(...s),i.message=JSON.stringify(i.issues,an,2)}},isEmpty:{get(){return i.issues.length===0}}})},{Parent:Error}),ws=fn(ut),bs=dn(ut),As=Ce(ut),Ls=Se(ut),Ps=Er(ut),zs=Mr(ut),ks=Cr(ut),Ts=Sr(ut),Es=Or(ut),Ms=Zr(ut),Cs=Ir(ut),Ss=Br(ut),tt=T("ZodType",(i,r)=>($.init(i,r),i.def=r,i.type=r.type,Object.defineProperty(i,"_def",{value:r}),i.check=(...s)=>i.clone(Bt(r,{checks:[...r.checks??[],...s.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]})),i.clone=(s,l)=>Mt(i,s,l),i.brand=()=>i,i.register=(s,l)=>(s.add(i,l),i),i.parse=(s,l)=>ws(i,s,l,{callee:i.parse}),i.safeParse=(s,l)=>As(i,s,l),i.parseAsync=async(s,l)=>bs(i,s,l,{callee:i.parseAsync}),i.safeParseAsync=async(s,l)=>Ls(i,s,l),i.spa=i.safeParseAsync,i.encode=(s,l)=>Ps(i,s,l),i.decode=(s,l)=>zs(i,s,l),i.encodeAsync=async(s,l)=>ks(i,s,l),i.decodeAsync=async(s,l)=>Ts(i,s,l),i.safeEncode=(s,l)=>Es(i,s,l),i.safeDecode=(s,l)=>Ms(i,s,l),i.safeEncodeAsync=async(s,l)=>Cs(i,s,l),i.safeDecodeAsync=async(s,l)=>Ss(i,s,l),i.refine=(s,l)=>i.check(aa(s,l)),i.superRefine=s=>i.check(la(s)),i.overwrite=s=>i.check(ms(s)),i.optional=()=>Pi(i),i.nullable=()=>zi(i),i.nullish=()=>Pi(zi(i)),i.nonoptional=s=>ta(i,s),i.array=()=>Ds(i),i.or=s=>js([i,s]),i.and=s=>Us(i,s),i.transform=s=>Ti(i,qs(s)),i.default=s=>Js(i,s),i.prefault=s=>$s(i,s),i.catch=s=>na(i,s),i.pipe=s=>Ti(i,s),i.readonly=()=>ra(i),i.describe=s=>{const l=i.clone();return Ie.add(l,{description:s}),l},Object.defineProperty(i,"description",{get(){return Ie.get(i)?.description},configurable:!0}),i.meta=(...s)=>{if(s.length===0)return Ie.get(i);const l=i.clone();return Ie.add(l,s[0]),l},i.isOptional=()=>i.safeParse(void 0).success,i.isNullable=()=>i.safeParse(null).success,i)),Os=T("ZodBoolean",(i,r)=>{Hr.init(i,r),tt.init(i,r)});function Zs(i){return cs(Os,i)}const Is=T("ZodUnknown",(i,r)=>{Ur.init(i,r),tt.init(i,r)});function Ai(){return fs(Is)}const Bs=T("ZodNever",(i,r)=>{Vr.init(i,r),tt.init(i,r)});function Ns(i){return ds(Bs,i)}const Rs=T("ZodArray",(i,r)=>{Qr.init(i,r),tt.init(i,r),i.element=r.element,i.min=(s,l)=>i.check(bi(s,l)),i.nonempty=s=>i.check(bi(1,s)),i.max=(s,l)=>i.check(_s(s,l)),i.length=(s,l)=>i.check(ps(s,l)),i.unwrap=()=>i.element});function Ds(i,r){return gs(Rs,i,r)}const Fs=T("ZodObject",(i,r)=>{Kr.init(i,r),tt.init(i,r),G(i,"shape",()=>r.shape),i.keyof=()=>Vs(Object.keys(i._zod.def.shape)),i.catchall=s=>i.clone({...i._zod.def,catchall:s}),i.passthrough=()=>i.clone({...i._zod.def,catchall:Ai()}),i.loose=()=>i.clone({...i._zod.def,catchall:Ai()}),i.strict=()=>i.clone({...i._zod.def,catchall:Ns()}),i.strip=()=>i.clone({...i._zod.def,catchall:void 0}),i.extend=s=>xr(i,s),i.safeExtend=s=>wr(i,s),i.merge=s=>br(i,s),i.pick=s=>vr(i,s),i.omit=s=>yr(i,s),i.partial=(...s)=>Ar(Li,i,s[0]),i.required=(...s)=>Lr(ki,i,s[0])});function Ws(i,r){const s={type:"object",shape:i??{},...rt(r)};return new Fs(s)}const Gs=T("ZodUnion",(i,r)=>{Yr.init(i,r),tt.init(i,r),i.options=r.options});function js(i,r){return new Gs({type:"union",options:i,...rt(r)})}const Hs=T("ZodIntersection",(i,r)=>{Jr.init(i,r),tt.init(i,r)});function Us(i,r){return new Hs({type:"intersection",left:i,right:r})}const pn=T("ZodEnum",(i,r)=>{Xr.init(i,r),tt.init(i,r),i.enum=r.entries,i.options=Object.values(r.entries);const s=new Set(Object.keys(r.entries));i.extract=(l,u)=>{const c={};for(const d of l)if(s.has(d))c[d]=r.entries[d];else throw new Error(`Key ${d} not found in enum`);return new pn({...r,checks:[],...rt(u),entries:c})},i.exclude=(l,u)=>{const c={...r.entries};for(const d of l)if(s.has(d))delete c[d];else throw new Error(`Key ${d} not found in enum`);return new pn({...r,checks:[],...rt(u),entries:c})}});function Vs(i,r){const s=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new pn({type:"enum",entries:s,...rt(r)})}const Qs=T("ZodTransform",(i,r)=>{$r.init(i,r),tt.init(i,r),i._zod.parse=(s,l)=>{if(l.direction==="backward")throw new ni(i.constructor.name);s.addIssue=c=>{if(typeof c=="string")s.issues.push(le(c,s.value,r));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=s.value),d.inst??(d.inst=i),s.issues.push(le(d))}};const u=r.transform(s.value,s);return u instanceof Promise?u.then(c=>(s.value=c,s)):(s.value=u,s)}});function qs(i){return new Qs({type:"transform",transform:i})}const Li=T("ZodOptional",(i,r)=>{ts.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function Pi(i){return new Li({type:"optional",innerType:i})}const Ks=T("ZodNullable",(i,r)=>{es.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function zi(i){return new Ks({type:"nullable",innerType:i})}const Ys=T("ZodDefault",(i,r)=>{ns.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function Js(i,r){return new Ys({type:"default",innerType:i,get defaultValue(){return typeof r=="function"?r():ai(r)}})}const Xs=T("ZodPrefault",(i,r)=>{is.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function $s(i,r){return new Xs({type:"prefault",innerType:i,get defaultValue(){return typeof r=="function"?r():ai(r)}})}const ki=T("ZodNonOptional",(i,r)=>{os.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function ta(i,r){return new ki({type:"nonoptional",innerType:i,...rt(r)})}const ea=T("ZodCatch",(i,r)=>{rs.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function na(i,r){return new ea({type:"catch",innerType:i,catchValue:typeof r=="function"?r:()=>r})}const ia=T("ZodPipe",(i,r)=>{ss.init(i,r),tt.init(i,r),i.in=r.in,i.out=r.out});function Ti(i,r){return new ia({type:"pipe",in:i,out:r})}const oa=T("ZodReadonly",(i,r)=>{as.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function ra(i){return new oa({type:"readonly",innerType:i})}const sa=T("ZodCustom",(i,r)=>{ls.init(i,r),tt.init(i,r)});function aa(i,r={}){return vs(sa,i,r)}function la(i){return ys(i)}const ha=Ws({folderViewEnabled:Zs().optional()}),Ei="maps";return Pe.defineWebApplication({setup(i){const{$gettext:r}=en.useGettext(),{folderViewEnabled:s}=ha.parse(i.applicationConfig),l=({applicationConfig:c})=>x.computed(()=>[{id:"com.github.opencloud-eu.maps.sidebar-panel",type:"sidebarPanel",extensionPointIds:["global.files.sidebar"],panel:{name:"location-details",icon:"map-2",iconFillType:"line",title:()=>r("Location"),component:Ko,componentAttrs:d=>({panelContext:d,applicationConfig:c}),isRoot:()=>!0,isVisible:({items:d})=>d?.length>0&&d?.some(g=>!!g.location)}},...s?[{id:"com.github.opencloud-eu.maps.folder-view.map-view",type:"folderView",extensionPointIds:["app.files.folder-views.folder"],folderView:{name:"resource-map",label:r("Switch to map view"),icon:{name:"map-2",fillType:"line"},component:fr,componentAttrs:()=>({applicationConfig:c})}}]:[]]),u=[{name:"maps",path:"/:driveAliasAndItem(.*)?",component:Pe.AppWrapperRoute(hr,{applicationId:Ei,urlForResourceOptions:{disposition:"inline"}}),meta:{authContext:"hybrid",title:r("Maps"),patchCleanPath:!0}}];return{appInfo:{name:r("Maps"),id:Ei,icon:"map-2",iconFillType:"line",iconColor:"#84c143",extensions:[{extension:"gpx",routeName:"maps",canBeDefault:!0}]},routes:u,translations:jo,extensions:l(i)}}})}); diff --git a/config/opencloud/apps/maps/manifest.json b/config/opencloud/apps/maps/manifest.json index d76f8f7..b841af9 100644 --- a/config/opencloud/apps/maps/manifest.json +++ b/config/opencloud/apps/maps/manifest.json @@ -1,3 +1,3 @@ { - "entrypoint": "js/maps-DKGjis05.js" + "entrypoint": "js/maps-uKkx1qsf.js" } \ No newline at end of file