gis-leaflet-helper 2.1.21 → 2.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".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}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}\n.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}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(_t,wt){typeof exports=="object"&&typeof module<"u"?wt(exports,require("gis-common")):typeof define=="function"&&define.amd?define(["exports","gis-common"],wt):(_t=typeof globalThis<"u"?globalThis:_t||self,wt(_t["gis-leaflet-helper"]={},_t.Gis))})(this,function(_t,wt){"use strict";function Eo(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const n in i)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>i[n]})}}return e.default=i,Object.freeze(e)}function So(i,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in i)){const l=Object.getOwnPropertyDescriptor(o,r);l&&Object.defineProperty(i,r,l.get?l:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const Oo=Eo(wt);var ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function zo(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(o){var r=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return i[o]}})}),n}var Pe={exports:{}};/* @preserve
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".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}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}\n.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}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(ft,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("gis-common")):typeof define=="function"&&define.amd?define(["exports","gis-common"],_t):(ft=typeof globalThis<"u"?globalThis:ft||self,_t(ft["gis-leaflet-helper"]={},ft.Gis))})(this,function(ft,_t){"use strict";function Ya(i){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const n in i)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>i[n]})}}return s.default=i,Object.freeze(s)}function Ja(i,s){for(var n=0;n<s.length;n++){const r=s[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in i)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(i,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const to=Ya(_t);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function so(i){if(i.__esModule)return i;var s=i.default;if(typeof s=="function"){var n=function r(){return this instanceof r?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};n.prototype=s.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var o=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return i[r]}})}),n}var _e={exports:{}};/* @preserve
2
2
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3
3
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */var dn;function mn(){return dn||(dn=1,function(i,e){(function(n,o){o(e)})(ko,function(n){var o="1.9.4";function r(t){var s,a,h,f;for(a=1,h=arguments.length;a<h;a++){f=arguments[a];for(s in f)t[s]=f[s]}return t}var l=Object.create||function(){function t(){}return function(s){return t.prototype=s,new t}}();function u(t,s){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var h=a.call(arguments,2);return function(){return t.apply(s,h.length?h.concat(a.call(arguments)):arguments)}}var c=0;function d(t){return"_leaflet_id"in t||(t._leaflet_id=++c),t._leaflet_id}function _(t,s,a){var h,f,m,g;return g=function(){h=!1,f&&(m.apply(a,f),f=!1)},m=function(){h?f=arguments:(t.apply(a,arguments),setTimeout(g,s),h=!0)},m}function v(t,s,a){var h=s[1],f=s[0],m=h-f;return t===h&&a?t:((t-f)%m+m)%m+f}function p(){return!1}function y(t,s){if(s===!1)return t;var a=Math.pow(10,s===void 0?6:s);return Math.round(t*a)/a}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function A(t){return b(t).split(/\s+/)}function P(t,s){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in s)t.options[a]=s[a];return t.options}function E(t,s,a){var h=[];for(var f in t)h.push(encodeURIComponent(a?f.toUpperCase():f)+"="+encodeURIComponent(t[f]));return(!s||s.indexOf("?")===-1?"?":"&")+h.join("&")}var z=/\{ *([\w_ -]+) *\}/g;function R(t,s){return t.replace(z,function(a,h){var f=s[h];if(f===void 0)throw new Error("No value provided for variable "+a);return typeof f=="function"&&(f=f(s)),f})}var B=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function H(t,s){for(var a=0;a<t.length;a++)if(t[a]===s)return a;return-1}var W="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function $(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var mt=0;function it(t){var s=+new Date,a=Math.max(0,16-(s-mt));return mt=s+a,window.setTimeout(t,a)}var Et=window.requestAnimationFrame||$("RequestAnimationFrame")||it,Vt=window.cancelAnimationFrame||$("CancelAnimationFrame")||$("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function ot(t,s,a){if(a&&Et===it)t.call(s);else return Et.call(window,u(t,s))}function yt(t){t&&Vt.call(window,t)}var Ss={__proto__:null,extend:r,create:l,bind:u,get lastId(){return c},stamp:d,throttle:_,wrapNum:v,falseFn:p,formatNum:y,trim:b,splitWords:A,setOptions:P,getParamString:E,template:R,isArray:B,indexOf:H,emptyImageUrl:W,requestFn:Et,cancelFn:Vt,requestAnimFrame:ot,cancelAnimFrame:yt};function ti(){}ti.extend=function(t){var s=function(){P(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=s.__super__=this.prototype,h=l(a);h.constructor=s,s.prototype=h;for(var f in this)Object.prototype.hasOwnProperty.call(this,f)&&f!=="prototype"&&f!=="__super__"&&(s[f]=this[f]);return t.statics&&r(s,t.statics),t.includes&&(Qc(t.includes),r.apply(null,[h].concat(t.includes))),r(h,t),delete h.statics,delete h.includes,h.options&&(h.options=a.options?l(a.options):{},r(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var m=0,g=h._initHooks.length;m<g;m++)h._initHooks[m].call(this)}},s},ti.include=function(t){var s=this.prototype.options;return r(this.prototype,t),t.options&&(this.prototype.options=s,this.mergeOptions(t.options)),this},ti.mergeOptions=function(t){return r(this.prototype.options,t),this},ti.addInitHook=function(t){var s=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function Qc(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=B(t)?t:[t];for(var s=0;s<t.length;s++)t[s]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Bt={on:function(t,s,a){if(typeof t=="object")for(var h in t)this._on(h,t[h],s);else{t=A(t);for(var f=0,m=t.length;f<m;f++)this._on(t[f],s,a)}return this},off:function(t,s,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var h in t)this._off(h,t[h],s);else{t=A(t);for(var f=arguments.length===1,m=0,g=t.length;m<g;m++)f?this._off(t[m]):this._off(t[m],s,a)}return this},_on:function(t,s,a,h){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(t,s,a)===!1){a===this&&(a=void 0);var f={fn:s,ctx:a};h&&(f.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(f)}},_off:function(t,s,a){var h,f,m;if(this._events&&(h=this._events[t],!!h)){if(arguments.length===1){if(this._firingCount)for(f=0,m=h.length;f<m;f++)h[f].fn=p;delete this._events[t];return}if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}var g=this._listens(t,s,a);if(g!==!1){var x=h[g];this._firingCount&&(x.fn=p,this._events[t]=h=h.slice()),h.splice(g,1)}}},fire:function(t,s,a){if(!this.listens(t,a))return this;var h=r({},s,{type:t,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var f=this._events[t];if(f){this._firingCount=this._firingCount+1||1;for(var m=0,g=f.length;m<g;m++){var x=f[m],w=x.fn;x.once&&this.off(t,w,x.ctx),w.call(x.ctx||this,h)}this._firingCount--}}return a&&this._propagateEvent(h),this},listens:function(t,s,a,h){typeof t!="string"&&console.warn('"string" type argument expected');var f=s;typeof s!="function"&&(h=!!s,f=void 0,a=void 0);var m=this._events&&this._events[t];if(m&&m.length&&this._listens(t,f,a)!==!1)return!0;if(h){for(var g in this._eventParents)if(this._eventParents[g].listens(t,s,a,h))return!0}return!1},_listens:function(t,s,a){if(!this._events)return!1;var h=this._events[t]||[];if(!s)return!!h.length;a===this&&(a=void 0);for(var f=0,m=h.length;f<m;f++)if(h[f].fn===s&&h[f].ctx===a)return f;return!1},once:function(t,s,a){if(typeof t=="object")for(var h in t)this._on(h,t[h],s,!0);else{t=A(t);for(var f=0,m=t.length;f<m;f++)this._on(t[f],s,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[d(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[d(t)],this},_propagateEvent:function(t){for(var s in this._eventParents)this._eventParents[s].fire(t.type,r({layer:t.target,propagatedFrom:t.target},t),!0)}};Bt.addEventListener=Bt.on,Bt.removeEventListener=Bt.clearAllEventListeners=Bt.off,Bt.addOneTimeEventListener=Bt.once,Bt.fireEvent=Bt.fire,Bt.hasEventListeners=Bt.listens;var ue=ti.extend(Bt);function q(t,s,a){this.x=a?Math.round(t):t,this.y=a?Math.round(s):s}var ga=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(t){return this.clone()._add(F(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(F(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 q(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new q(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=ga(this.x),this.y=ga(this.y),this},distanceTo:function(t){t=F(t);var s=t.x-this.x,a=t.y-this.y;return Math.sqrt(s*s+a*a)},equals:function(t){return t=F(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=F(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 F(t,s,a){return t instanceof q?t:B(t)?new q(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new q(t.x,t.y):new q(t,s,a)}function st(t,s){if(t)for(var a=s?[t,s]:t,h=0,f=a.length;h<f;h++)this.extend(a[h])}st.prototype={extend:function(t){var s,a;if(!t)return this;if(t instanceof q||typeof t[0]=="number"||"x"in t)s=a=F(t);else if(t=St(t),s=t.min,a=t.max,!s||!a)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=a.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var s,a;return typeof t[0]=="number"||t instanceof q?t=F(t):t=St(t),t instanceof st?(s=t.min,a=t.max):s=a=t,s.x>=this.min.x&&a.x<=this.max.x&&s.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=St(t);var s=this.min,a=this.max,h=t.min,f=t.max,m=f.x>=s.x&&h.x<=a.x,g=f.y>=s.y&&h.y<=a.y;return m&&g},overlaps:function(t){t=St(t);var s=this.min,a=this.max,h=t.min,f=t.max,m=f.x>s.x&&h.x<a.x,g=f.y>s.y&&h.y<a.y;return m&&g},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var s=this.min,a=this.max,h=Math.abs(s.x-a.x)*t,f=Math.abs(s.y-a.y)*t;return St(F(s.x-h,s.y-f),F(a.x+h,a.y+f))},equals:function(t){return t?(t=St(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function St(t,s){return!t||t instanceof st?t:new st(t,s)}function Ot(t,s){if(t)for(var a=s?[t,s]:t,h=0,f=a.length;h<f;h++)this.extend(a[h])}Ot.prototype={extend:function(t){var s=this._southWest,a=this._northEast,h,f;if(t instanceof Y)h=t,f=t;else if(t instanceof Ot){if(h=t._southWest,f=t._northEast,!h||!f)return this}else return t?this.extend(V(t)||lt(t)):this;return!s&&!a?(this._southWest=new Y(h.lat,h.lng),this._northEast=new Y(f.lat,f.lng)):(s.lat=Math.min(h.lat,s.lat),s.lng=Math.min(h.lng,s.lng),a.lat=Math.max(f.lat,a.lat),a.lng=Math.max(f.lng,a.lng)),this},pad:function(t){var s=this._southWest,a=this._northEast,h=Math.abs(s.lat-a.lat)*t,f=Math.abs(s.lng-a.lng)*t;return new Ot(new Y(s.lat-h,s.lng-f),new Y(a.lat+h,a.lng+f))},getCenter:function(){return new Y((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Y(this.getNorth(),this.getWest())},getSouthEast:function(){return new Y(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof Y||"lat"in t?t=V(t):t=lt(t);var s=this._southWest,a=this._northEast,h,f;return t instanceof Ot?(h=t.getSouthWest(),f=t.getNorthEast()):h=f=t,h.lat>=s.lat&&f.lat<=a.lat&&h.lng>=s.lng&&f.lng<=a.lng},intersects:function(t){t=lt(t);var s=this._southWest,a=this._northEast,h=t.getSouthWest(),f=t.getNorthEast(),m=f.lat>=s.lat&&h.lat<=a.lat,g=f.lng>=s.lng&&h.lng<=a.lng;return m&&g},overlaps:function(t){t=lt(t);var s=this._southWest,a=this._northEast,h=t.getSouthWest(),f=t.getNorthEast(),m=f.lat>s.lat&&h.lat<a.lat,g=f.lng>s.lng&&h.lng<a.lng;return m&&g},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,s){return t?(t=lt(t),this._southWest.equals(t.getSouthWest(),s)&&this._northEast.equals(t.getNorthEast(),s)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function lt(t,s){return t instanceof Ot?t:new Ot(t,s)}function Y(t,s,a){if(isNaN(t)||isNaN(s))throw new Error("Invalid LatLng object: ("+t+", "+s+")");this.lat=+t,this.lng=+s,a!==void 0&&(this.alt=+a)}Y.prototype={equals:function(t,s){if(!t)return!1;t=V(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(s===void 0?1e-9:s)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return ci.distance(this,V(t))},wrap:function(){return ci.wrapLatLng(this)},toBounds:function(t){var s=180*t/40075017,a=s/Math.cos(Math.PI/180*this.lat);return lt([this.lat-s,this.lng-a],[this.lat+s,this.lng+a])},clone:function(){return new Y(this.lat,this.lng,this.alt)}};function V(t,s,a){return t instanceof Y?t:B(t)&&typeof t[0]!="object"?t.length===3?new Y(t[0],t[1],t[2]):t.length===2?new Y(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new Y(t.lat,"lng"in t?t.lng:t.lon,t.alt):s===void 0?null:new Y(t,s,a)}var ii={latLngToPoint:function(t,s){var a=this.projection.project(t),h=this.scale(s);return this.transformation._transform(a,h)},pointToLatLng:function(t,s){var a=this.scale(s),h=this.transformation.untransform(t,a);return this.projection.unproject(h)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var s=this.projection.bounds,a=this.scale(t),h=this.transformation.transform(s.min,a),f=this.transformation.transform(s.max,a);return new st(h,f)},infinite:!1,wrapLatLng:function(t){var s=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,h=t.alt;return new Y(a,s,h)},wrapLatLngBounds:function(t){var s=t.getCenter(),a=this.wrapLatLng(s),h=s.lat-a.lat,f=s.lng-a.lng;if(h===0&&f===0)return t;var m=t.getSouthWest(),g=t.getNorthEast(),x=new Y(m.lat-h,m.lng-f),w=new Y(g.lat-h,g.lng-f);return new Ot(x,w)}},ci=r({},ii,{wrapLng:[-180,180],R:6371e3,distance:function(t,s){var a=Math.PI/180,h=t.lat*a,f=s.lat*a,m=Math.sin((s.lat-t.lat)*a/2),g=Math.sin((s.lng-t.lng)*a/2),x=m*m+Math.cos(h)*Math.cos(f)*g*g,w=2*Math.atan2(Math.sqrt(x),Math.sqrt(1-x));return this.R*w}}),va=6378137,Os={R:va,MAX_LATITUDE:85.0511287798,project:function(t){var s=Math.PI/180,a=this.MAX_LATITUDE,h=Math.max(Math.min(a,t.lat),-a),f=Math.sin(h*s);return new q(this.R*t.lng*s,this.R*Math.log((1+f)/(1-f))/2)},unproject:function(t){var s=180/Math.PI;return new Y((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*s,t.x*s/this.R)},bounds:function(){var t=va*Math.PI;return new st([-t,-t],[t,t])}()};function ks(t,s,a,h){if(B(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=s,this._c=a,this._d=h}ks.prototype={transform:function(t,s){return this._transform(t.clone(),s)},_transform:function(t,s){return s=s||1,t.x=s*(this._a*t.x+this._b),t.y=s*(this._c*t.y+this._d),t},untransform:function(t,s){return s=s||1,new q((t.x/s-this._b)/this._a,(t.y/s-this._d)/this._c)}};function ce(t,s,a,h){return new ks(t,s,a,h)}var zs=r({},ci,{code:"EPSG:3857",projection:Os,transformation:function(){var t=.5/(Math.PI*Os.R);return ce(t,.5,-t,.5)}()}),Xc=r({},zs,{code:"EPSG:900913"});function ya(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ma(t,s){var a="",h,f,m,g,x,w;for(h=0,m=t.length;h<m;h++){for(x=t[h],f=0,g=x.length;f<g;f++)w=x[f],a+=(f?"L":"M")+w.x+" "+w.y;a+=s?N.svg?"z":"x":""}return a||"M0 0"}var Is=document.documentElement.style,Ue="ActiveXObject"in window,Kc=Ue&&!document.addEventListener,xa="msLaunchUri"in navigator&&!("documentMode"in document),Ns=Qt("webkit"),wa=Qt("android"),ba=Qt("android 2")||Qt("android 3"),Jc=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Yc=wa&&Qt("Google")&&Jc<537&&!("AudioNode"in window),Bs=!!window.opera,La=!xa&&Qt("chrome"),Pa=Qt("gecko")&&!Ns&&!Bs&&!Ue,tf=!La&&Qt("safari"),Aa=Qt("phantom"),Ta="OTransition"in Is,ef=navigator.platform.indexOf("Win")===0,Ca=Ue&&"transition"in Is,Rs="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ba,Ea="MozPerspective"in Is,sf=!window.L_DISABLE_3D&&(Ca||Rs||Ea)&&!Ta&&!Aa,fe=typeof orientation<"u"||Qt("mobile"),nf=fe&&Ns,af=fe&&Rs,Sa=!window.PointerEvent&&window.MSPointerEvent,Oa=!!(window.PointerEvent||Sa),ka="ontouchstart"in window||!!window.TouchEvent,of=!window.L_NO_TOUCH&&(ka||Oa),rf=fe&&Bs,hf=fe&&Pa,lf=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,uf=function(){var t=!1;try{var s=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",p,s),window.removeEventListener("testPassiveEventSupport",p,s)}catch{}return t}(),cf=function(){return!!document.createElement("canvas").getContext}(),Ds=!!(document.createElementNS&&ya("svg").createSVGRect),ff=!!Ds&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),df=!Ds&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var s=t.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch{return!1}}(),mf=navigator.platform.indexOf("Mac")===0,_f=navigator.platform.indexOf("Linux")===0;function Qt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var N={ie:Ue,ielt9:Kc,edge:xa,webkit:Ns,android:wa,android23:ba,androidStock:Yc,opera:Bs,chrome:La,gecko:Pa,safari:tf,phantom:Aa,opera12:Ta,win:ef,ie3d:Ca,webkit3d:Rs,gecko3d:Ea,any3d:sf,mobile:fe,mobileWebkit:nf,mobileWebkit3d:af,msPointer:Sa,pointer:Oa,touch:of,touchNative:ka,mobileOpera:rf,mobileGecko:hf,retina:lf,passiveEvents:uf,canvas:cf,svg:Ds,vml:df,inlineSvg:ff,mac:mf,linux:_f},za=N.msPointer?"MSPointerDown":"pointerdown",Ia=N.msPointer?"MSPointerMove":"pointermove",Na=N.msPointer?"MSPointerUp":"pointerup",Ba=N.msPointer?"MSPointerCancel":"pointercancel",Zs={touchstart:za,touchmove:Ia,touchend:Na,touchcancel:Ba},Ra={touchstart:xf,touchmove:je,touchend:je,touchcancel:je},zi={},Da=!1;function pf(t,s,a){return s==="touchstart"&&Mf(),Ra[s]?(a=Ra[s].bind(this,a),t.addEventListener(Zs[s],a,!1),a):(console.warn("wrong event specified:",s),p)}function gf(t,s,a){if(!Zs[s]){console.warn("wrong event specified:",s);return}t.removeEventListener(Zs[s],a,!1)}function vf(t){zi[t.pointerId]=t}function yf(t){zi[t.pointerId]&&(zi[t.pointerId]=t)}function Za(t){delete zi[t.pointerId]}function Mf(){Da||(document.addEventListener(za,vf,!0),document.addEventListener(Ia,yf,!0),document.addEventListener(Na,Za,!0),document.addEventListener(Ba,Za,!0),Da=!0)}function je(t,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var a in zi)s.touches.push(zi[a]);s.changedTouches=[s],t(s)}}function xf(t,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&Mt(s),je(t,s)}function wf(t){var s={},a,h;for(h in t)a=t[h],s[h]=a&&a.bind?a.bind(t):a;return t=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var bf=200;function Lf(t,s){t.addEventListener("dblclick",s);var a=0,h;function f(m){if(m.detail!==1){h=m.detail;return}if(!(m.pointerType==="mouse"||m.sourceCapabilities&&!m.sourceCapabilities.firesTouchEvents)){var g=ja(m);if(!(g.some(function(w){return w instanceof HTMLLabelElement&&w.attributes.for})&&!g.some(function(w){return w instanceof HTMLInputElement||w instanceof HTMLSelectElement}))){var x=Date.now();x-a<=bf?(h++,h===2&&s(wf(m))):h=1,a=x}}}return t.addEventListener("click",f),{dblclick:s,simDblclick:f}}function Pf(t,s){t.removeEventListener("dblclick",s.dblclick),t.removeEventListener("click",s.simDblclick)}var Fs=$e(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=$e(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Fa=de==="webkitTransition"||de==="OTransition"?de+"End":"transitionend";function qa(t){return typeof t=="string"?document.getElementById(t):t}function me(t,s){var a=t.style[s]||t.currentStyle&&t.currentStyle[s];if((!a||a==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(t,null);a=h?h[s]:null}return a==="auto"?null:a}function X(t,s,a){var h=document.createElement(t);return h.className=s||"",a&&a.appendChild(h),h}function nt(t){var s=t.parentNode;s&&s.removeChild(t)}function He(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ii(t){var s=t.parentNode;s&&s.lastChild!==t&&s.appendChild(t)}function Ni(t){var s=t.parentNode;s&&s.firstChild!==t&&s.insertBefore(t,s.firstChild)}function qs(t,s){if(t.classList!==void 0)return t.classList.contains(s);var a=We(t);return a.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(a)}function U(t,s){if(t.classList!==void 0)for(var a=A(s),h=0,f=a.length;h<f;h++)t.classList.add(a[h]);else if(!qs(t,s)){var m=We(t);Gs(t,(m?m+" ":"")+s)}}function ht(t,s){t.classList!==void 0?t.classList.remove(s):Gs(t,b((" "+We(t)+" ").replace(" "+s+" "," ")))}function Gs(t,s){t.className.baseVal===void 0?t.className=s:t.className.baseVal=s}function We(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function Dt(t,s){"opacity"in t.style?t.style.opacity=s:"filter"in t.style&&Af(t,s)}function Af(t,s){var a=!1,h="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(h)}catch{if(s===1)return}s=Math.round(s*100),a?(a.Enabled=s!==100,a.Opacity=s):t.style.filter+=" progid:"+h+"(opacity="+s+")"}function $e(t){for(var s=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in s)return t[a];return!1}function pi(t,s,a){var h=s||new q(0,0);t.style[Fs]=(N.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(a?" scale("+a+")":"")}function ut(t,s){t._leaflet_pos=s,N.any3d?pi(t,s):(t.style.left=s.x+"px",t.style.top=s.y+"px")}function gi(t){return t._leaflet_pos||new q(0,0)}var _e,pe,Us;if("onselectstart"in document)_e=function(){G(window,"selectstart",Mt)},pe=function(){tt(window,"selectstart",Mt)};else{var ge=$e(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);_e=function(){if(ge){var t=document.documentElement.style;Us=t[ge],t[ge]="none"}},pe=function(){ge&&(document.documentElement.style[ge]=Us,Us=void 0)}}function js(){G(window,"dragstart",Mt)}function Hs(){tt(window,"dragstart",Mt)}var Ve,Ws;function $s(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Qe(),Ve=t,Ws=t.style.outlineStyle,t.style.outlineStyle="none",G(window,"keydown",Qe))}function Qe(){Ve&&(Ve.style.outlineStyle=Ws,Ve=void 0,Ws=void 0,tt(window,"keydown",Qe))}function Ga(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Vs(t){var s=t.getBoundingClientRect();return{x:s.width/t.offsetWidth||1,y:s.height/t.offsetHeight||1,boundingClientRect:s}}var Tf={__proto__:null,TRANSFORM:Fs,TRANSITION:de,TRANSITION_END:Fa,get:qa,getStyle:me,create:X,remove:nt,empty:He,toFront:Ii,toBack:Ni,hasClass:qs,addClass:U,removeClass:ht,setClass:Gs,getClass:We,setOpacity:Dt,testProp:$e,setTransform:pi,setPosition:ut,getPosition:gi,get disableTextSelection(){return _e},get enableTextSelection(){return pe},disableImageDrag:js,enableImageDrag:Hs,preventOutline:$s,restoreOutline:Qe,getSizedParentNode:Ga,getScale:Vs};function G(t,s,a,h){if(s&&typeof s=="object")for(var f in s)Xs(t,f,s[f],a);else{s=A(s);for(var m=0,g=s.length;m<g;m++)Xs(t,s[m],a,h)}return this}var Xt="_leaflet_events";function tt(t,s,a,h){if(arguments.length===1)Ua(t),delete t[Xt];else if(s&&typeof s=="object")for(var f in s)Ks(t,f,s[f],a);else if(s=A(s),arguments.length===2)Ua(t,function(x){return H(s,x)!==-1});else for(var m=0,g=s.length;m<g;m++)Ks(t,s[m],a,h);return this}function Ua(t,s){for(var a in t[Xt]){var h=a.split(/\d/)[0];(!s||s(h))&&Ks(t,h,null,null,a)}}var Qs={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Xs(t,s,a,h){var f=s+d(a)+(h?"_"+d(h):"");if(t[Xt]&&t[Xt][f])return this;var m=function(x){return a.call(h||t,x||window.event)},g=m;!N.touchNative&&N.pointer&&s.indexOf("touch")===0?m=pf(t,s,m):N.touch&&s==="dblclick"?m=Lf(t,m):"addEventListener"in t?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?t.addEventListener(Qs[s]||s,m,N.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(m=function(x){x=x||window.event,Ys(t,x)&&g(x)},t.addEventListener(Qs[s],m,!1)):t.addEventListener(s,g,!1):t.attachEvent("on"+s,m),t[Xt]=t[Xt]||{},t[Xt][f]=m}function Ks(t,s,a,h,f){f=f||s+d(a)+(h?"_"+d(h):"");var m=t[Xt]&&t[Xt][f];if(!m)return this;!N.touchNative&&N.pointer&&s.indexOf("touch")===0?gf(t,s,m):N.touch&&s==="dblclick"?Pf(t,m):"removeEventListener"in t?t.removeEventListener(Qs[s]||s,m,!1):t.detachEvent("on"+s,m),t[Xt][f]=null}function vi(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Js(t){return Xs(t,"wheel",vi),this}function ve(t){return G(t,"mousedown touchstart dblclick contextmenu",vi),t._leaflet_disable_click=!0,this}function Mt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function yi(t){return Mt(t),vi(t),this}function ja(t){if(t.composedPath)return t.composedPath();for(var s=[],a=t.target;a;)s.push(a),a=a.parentNode;return s}function Ha(t,s){if(!s)return new q(t.clientX,t.clientY);var a=Vs(s),h=a.boundingClientRect;return new q((t.clientX-h.left)/a.x-s.clientLeft,(t.clientY-h.top)/a.y-s.clientTop)}var Cf=N.linux&&N.chrome?window.devicePixelRatio:N.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Wa(t){return N.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Cf: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 Ys(t,s){var a=s.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var Ef={__proto__:null,on:G,off:tt,stopPropagation:vi,disableScrollPropagation:Js,disableClickPropagation:ve,preventDefault:Mt,stop:yi,getPropagationPath:ja,getMousePosition:Ha,getWheelDelta:Wa,isExternalTarget:Ys,addListener:G,removeListener:tt},$a=ue.extend({run:function(t,s,a,h){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=gi(t),this._offset=s.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=ot(this._animate,this),this._step()},_step:function(t){var s=+new Date-this._startTime,a=this._duration*1e3;s<a?this._runFrame(this._easeOut(s/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,s){var a=this._startPos.add(this._offset.multiplyBy(t));s&&a._round(),ut(this._el,a),this.fire("step")},_complete:function(){yt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Q=ue.extend({options:{crs:zs,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,s){s=P(this,s),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=u(this._onResize,this),this._initEvents(),s.maxBounds&&this.setMaxBounds(s.maxBounds),s.zoom!==void 0&&(this._zoom=this._limitZoom(s.zoom)),s.center&&s.zoom!==void 0&&this.setView(V(s.center),s.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=de&&N.any3d&&!N.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),G(this._proxy,Fa,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,s,a){if(s=s===void 0?this._zoom:this._limitZoom(s),t=this._limitCenter(V(t),s,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=r({animate:a.animate},a.zoom),a.pan=r({animate:a.animate,duration:a.duration},a.pan));var h=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,s,a.zoom):this._tryAnimatedPan(t,a.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(t,s,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,s){return this._loaded?this.setView(this.getCenter(),t,{zoom:s}):(this._zoom=t,this)},zoomIn:function(t,s){return t=t||(N.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,s)},zoomOut:function(t,s){return t=t||(N.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,s)},setZoomAround:function(t,s,a){var h=this.getZoomScale(s),f=this.getSize().divideBy(2),m=t instanceof q?t:this.latLngToContainerPoint(t),g=m.subtract(f).multiplyBy(1-1/h),x=this.containerPointToLatLng(f.add(g));return this.setView(x,s,{zoom:a})},_getBoundsCenterZoom:function(t,s){s=s||{},t=t.getBounds?t.getBounds():lt(t);var a=F(s.paddingTopLeft||s.padding||[0,0]),h=F(s.paddingBottomRight||s.padding||[0,0]),f=this.getBoundsZoom(t,!1,a.add(h));if(f=typeof s.maxZoom=="number"?Math.min(s.maxZoom,f):f,f===1/0)return{center:t.getCenter(),zoom:f};var m=h.subtract(a).divideBy(2),g=this.project(t.getSouthWest(),f),x=this.project(t.getNorthEast(),f),w=this.unproject(g.add(x).divideBy(2).add(m),f);return{center:w,zoom:f}},fitBounds:function(t,s){if(t=lt(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,s);return this.setView(a.center,a.zoom,s)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,s){return this.setView(t,this._zoom,{pan:s})},panBy:function(t,s){if(t=F(t).round(),s=s||{},!t.x&&!t.y)return this.fire("moveend");if(s.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new $a,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),s.noMoveStart||this.fire("movestart"),s.animate!==!1){U(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,s.duration||.25,s.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,s,a){if(a=a||{},a.animate===!1||!N.any3d)return this.setView(t,s,a);this._stop();var h=this.project(this.getCenter()),f=this.project(t),m=this.getSize(),g=this._zoom;t=V(t),s=s===void 0?g:s;var x=Math.max(m.x,m.y),w=x*this.getZoomScale(g,s),T=f.distanceTo(h)||1,k=1.42,D=k*k;function j(ct){var rs=ct?-1:1,gd=ct?w:x,vd=w*w-x*x+rs*D*D*T*T,yd=2*gd*D*T,cn=vd/yd,Co=Math.sqrt(cn*cn+1)-cn,Md=Co<1e-9?-18:Math.log(Co);return Md}function Pt(ct){return(Math.exp(ct)-Math.exp(-ct))/2}function gt(ct){return(Math.exp(ct)+Math.exp(-ct))/2}function Ft(ct){return Pt(ct)/gt(ct)}var kt=j(0);function qi(ct){return x*(gt(kt)/gt(kt+k*ct))}function dd(ct){return x*(gt(kt)*Ft(kt+k*ct)-Pt(kt))/D}function md(ct){return 1-Math.pow(1-ct,1.5)}var _d=Date.now(),Ao=(j(1)-kt)/k,pd=a.duration?1e3*a.duration:1e3*Ao*.8;function To(){var ct=(Date.now()-_d)/pd,rs=md(ct)*Ao;ct<=1?(this._flyToFrame=ot(To,this),this._move(this.unproject(h.add(f.subtract(h).multiplyBy(dd(rs)/T)),g),this.getScaleZoom(x/qi(rs),g),{flyTo:!0})):this._move(t,s)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),To.call(this),this},flyToBounds:function(t,s){var a=this._getBoundsCenterZoom(t,s);return this.flyTo(a.center,a.zoom,s)},setMaxBounds:function(t){return t=lt(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var s=this.options.minZoom;return this.options.minZoom=t,this._loaded&&s!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var s=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&s!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,s){this._enforcingBounds=!0;var a=this.getCenter(),h=this._limitCenter(a,this._zoom,lt(t));return a.equals(h)||this.panTo(h,s),this._enforcingBounds=!1,this},panInside:function(t,s){s=s||{};var a=F(s.paddingTopLeft||s.padding||[0,0]),h=F(s.paddingBottomRight||s.padding||[0,0]),f=this.project(this.getCenter()),m=this.project(t),g=this.getPixelBounds(),x=St([g.min.add(a),g.max.subtract(h)]),w=x.getSize();if(!x.contains(m)){this._enforcingBounds=!0;var T=m.subtract(x.getCenter()),k=x.extend(m).getSize().subtract(w);f.x+=T.x<0?-k.x:k.x,f.y+=T.y<0?-k.y:k.y,this.panTo(this.unproject(f),s),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=r({animate:!1,pan:!0},t===!0?{animate:!0}:t);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),h=s.divideBy(2).round(),f=a.divideBy(2).round(),m=h.subtract(f);return!m.x&&!m.y?this:(t.animate&&t.pan?this.panBy(m):(t.pan&&this._rawPanBy(m),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(u(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:a}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=r({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=u(this._handleGeolocationResponse,this),a=u(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,a,t):navigator.geolocation.getCurrentPosition(s,a,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 s=t.code,a=t.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var s=t.coords.latitude,a=t.coords.longitude,h=new Y(s,a),f=h.toBounds(t.coords.accuracy*2),m=this._locateOptions;if(m.setView){var g=this.getBoundsZoom(f);this.setView(h,m.maxZoom?Math.min(g,m.maxZoom):g)}var x={latlng:h,bounds:f,timestamp:t.timestamp};for(var w in t.coords)typeof t.coords[w]=="number"&&(x[w]=t.coords[w]);this.fire("locationfound",x)}},addHandler:function(t,s){if(!s)return this;var a=this[t]=new s(this);return this._handlers.push(a),this.options[t]&&a.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(),nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(yt(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)nt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,s){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),h=X("div",a,s||this._mapPane);return t&&(this._panes[t]=h),h},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(),s=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new Ot(s,a)},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,s,a){t=lt(t),a=F(a||[0,0]);var h=this.getZoom()||0,f=this.getMinZoom(),m=this.getMaxZoom(),g=t.getNorthWest(),x=t.getSouthEast(),w=this.getSize().subtract(a),T=St(this.project(x,h),this.project(g,h)).getSize(),k=N.any3d?this.options.zoomSnap:1,D=w.x/T.x,j=w.y/T.y,Pt=s?Math.max(D,j):Math.min(D,j);return h=this.getScaleZoom(Pt,h),k&&(h=Math.round(h/(k/100))*(k/100),h=s?Math.ceil(h/k)*k:Math.floor(h/k)*k),Math.max(f,Math.min(m,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,s){var a=this._getTopLeftPoint(t,s);return new st(a,a.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,s){var a=this.options.crs;return s=s===void 0?this._zoom:s,a.scale(t)/a.scale(s)},getScaleZoom:function(t,s){var a=this.options.crs;s=s===void 0?this._zoom:s;var h=a.zoom(t*a.scale(s));return isNaN(h)?1/0:h},project:function(t,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(V(t),s)},unproject:function(t,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng(F(t),s)},layerPointToLatLng:function(t){var s=F(t).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(t){var s=this.project(V(t))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(V(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(lt(t))},distance:function(t,s){return this.options.crs.distance(V(t),V(s))},containerPointToLayerPoint:function(t){return F(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return F(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var s=this.containerPointToLayerPoint(F(t));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(V(t)))},mouseEventToContainerPoint:function(t){return Ha(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 s=this._container=qa(t);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");G(s,"scroll",this._onScroll,this),this._containerId=d(s)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&N.any3d,U(t,"leaflet-container"+(N.touch?" leaflet-touch":"")+(N.retina?" leaflet-retina":"")+(N.ielt9?" leaflet-oldie":"")+(N.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=me(t,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="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),ut(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(U(t.markerPane,"leaflet-zoom-hide"),U(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,s,a){ut(this._mapPane,new q(0,0));var h=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var f=this._zoom!==s;this._moveStart(f,a)._move(t,s)._moveEnd(f),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(t,s){return t&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(t,s,a,h){s===void 0&&(s=this._zoom);var f=this._zoom!==s;return this._zoom=s,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),h?a&&a.pinch&&this.fire("zoom",a):((f||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return yt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ut(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[d(this._container)]=this;var s=t?tt:G;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),N.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){yt(this._resizeRequest),this._resizeRequest=ot(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,s){for(var a=[],h,f=s==="mouseout"||s==="mouseover",m=t.target||t.srcElement,g=!1;m;){if(h=this._targets[d(m)],h&&(s==="click"||s==="preclick")&&this._draggableMoved(h)){g=!0;break}if(h&&h.listens(s,!0)&&(f&&!Ys(m,t)||(a.push(h),f))||m===this._container)break;m=m.parentNode}return!a.length&&!g&&!f&&this.listens(s,!0)&&(a=[this]),a},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var s=t.target||t.srcElement;if(!(!this._loaded||s._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(s))){var a=t.type;a==="mousedown"&&$s(s),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,s,a){if(t.type==="click"){var h=r({},t);h.type="preclick",this._fireDOMEvent(h,h.type,a)}var f=this._findEventTargets(t,s);if(a){for(var m=[],g=0;g<a.length;g++)a[g].listens(s,!0)&&m.push(a[g]);f=m.concat(f)}if(f.length){s==="contextmenu"&&Mt(t);var x=f[0],w={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var T=x.getLatLng&&(!x._radius||x._radius<=10);w.containerPoint=T?this.latLngToContainerPoint(x.getLatLng()):this.mouseEventToContainerPoint(t),w.layerPoint=this.containerPointToLayerPoint(w.containerPoint),w.latlng=T?x.getLatLng():this.layerPointToLatLng(w.layerPoint)}for(g=0;g<f.length;g++)if(f[g].fire(s,w,!0),w.originalEvent._stopped||f[g].options.bubblingMouseEvents===!1&&H(this._mouseEvents,s)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,s=this._handlers.length;t<s;t++)this._handlers[t].disable()},whenReady:function(t,s){return this._loaded?t.call(s||this,{target:this}):this.on("load",t,s),this},_getMapPanePos:function(){return gi(this._mapPane)||new q(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,s){var a=t&&s!==void 0?this._getNewPixelOrigin(t,s):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,s){var a=this.getSize()._divideBy(2);return this.project(t,s)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,s,a){var h=this._getNewPixelOrigin(a,s);return this.project(t,s)._subtract(h)},_latLngBoundsToNewLayerBounds:function(t,s,a){var h=this._getNewPixelOrigin(a,s);return St([this.project(t.getSouthWest(),s)._subtract(h),this.project(t.getNorthWest(),s)._subtract(h),this.project(t.getSouthEast(),s)._subtract(h),this.project(t.getNorthEast(),s)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,s,a){if(!a)return t;var h=this.project(t,s),f=this.getSize().divideBy(2),m=new st(h.subtract(f),h.add(f)),g=this._getBoundsOffset(m,a,s);return Math.abs(g.x)<=1&&Math.abs(g.y)<=1?t:this.unproject(h.add(g),s)},_limitOffset:function(t,s){if(!s)return t;var a=this.getPixelBounds(),h=new st(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(h,s))},_getBoundsOffset:function(t,s,a){var h=St(this.project(s.getNorthEast(),a),this.project(s.getSouthWest(),a)),f=h.min.subtract(t.min),m=h.max.subtract(t.max),g=this._rebound(f.x,-m.x),x=this._rebound(f.y,-m.y);return new q(g,x)},_rebound:function(t,s){return t+s>0?Math.round(t-s)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(s))},_limitZoom:function(t){var s=this.getMinZoom(),a=this.getMaxZoom(),h=N.any3d?this.options.zoomSnap:1;return h&&(t=Math.round(t/h)*h),Math.max(s,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ht(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,s){var a=this._getCenterOffset(t)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,s),!0)},_createAnimProxy:function(){var t=this._proxy=X("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(s){var a=Fs,h=this._proxy.style[a];pi(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),h===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),s=this.getZoom();pi(this._proxy,this.project(t,s),this.getZoomScale(s,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,s,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(s),f=this._getCenterOffset(t)._divideBy(1-1/h);return a.animate!==!0&&!this.getSize().contains(f)?!1:(ot(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,s,!0)},this),!0)},_animateZoom:function(t,s,a,h){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=s,U(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:s,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(u(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ht(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 Sf(t,s){return new Q(t,s)}var Gt=ti.extend({options:{position:"topright"},initialize:function(t){P(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var s=this._map;return s&&s.removeControl(this),this.options.position=t,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var s=this._container=this.onAdd(t),a=this.getPosition(),h=t._controlCorners[a];return U(s,"leaflet-control"),a.indexOf("bottom")!==-1?h.insertBefore(s,h.firstChild):h.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(nt(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 Gt(t)};Q.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},s="leaflet-",a=this._controlContainer=X("div",s+"control-container",this._container);function h(f,m){var g=s+f+" "+s+m;t[f+m]=X("div",g,a)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)nt(this._controlCorners[t]);nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Va=Gt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,s,a,h){return a<h?-1:h<a?1:0}},initialize:function(t,s,a){P(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in t)this._addLayer(t[h],h);for(h in s)this._addLayer(s[h],h,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Gt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,s){return this._addLayer(t,s),this._map?this._update():this},addOverlay:function(t,s){return this._addLayer(t,s,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var s=this._getLayer(d(t));return s&&this._layers.splice(this._layers.indexOf(s),1),this._map?this._update():this},expand:function(){U(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(U(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ht(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ht(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",s=this._container=X("div",t),a=this.options.collapsed;s.setAttribute("aria-haspopup",!0),ve(s),Js(s);var h=this._section=X("section",t+"-list");a&&(this._map.on("click",this.collapse,this),G(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var f=this._layersLink=X("a",t+"-toggle",s);f.href="#",f.title="Layers",f.setAttribute("role","button"),G(f,{keydown:function(m){m.keyCode===13&&this._expandSafely()},click:function(m){Mt(m),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=X("div",t+"-base",h),this._separator=X("div",t+"-separator",h),this._overlaysList=X("div",t+"-overlays",h),s.appendChild(h)},_getLayer:function(t){for(var s=0;s<this._layers.length;s++)if(this._layers[s]&&d(this._layers[s].layer)===t)return this._layers[s]},_addLayer:function(t,s,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:s,overlay:a}),this.options.sortLayers&&this._layers.sort(u(function(h,f){return this.options.sortFunction(h.layer,f.layer,h.name,f.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;He(this._baseLayersList),He(this._overlaysList),this._layerControlInputs=[];var t,s,a,h,f=0;for(a=0;a<this._layers.length;a++)h=this._layers[a],this._addItem(h),s=s||h.overlay,t=t||!h.overlay,f+=h.overlay?0:1;return this.options.hideSingleBase&&(t=t&&f>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=s&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var s=this._getLayer(d(t.target)),a=s.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,s)},_createRadioElement:function(t,s){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(s?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=a,h.firstChild},_addItem:function(t){var s=document.createElement("label"),a=this._map.hasLayer(t.layer),h;t.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=a):h=this._createRadioElement("leaflet-base-layers_"+d(this),a),this._layerControlInputs.push(h),h.layerId=d(t.layer),G(h,"click",this._onInputClick,this);var f=document.createElement("span");f.innerHTML=" "+t.name;var m=document.createElement("span");s.appendChild(m),m.appendChild(h),m.appendChild(f);var g=t.overlay?this._overlaysList:this._baseLayersList;return g.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,s,a,h=[],f=[];this._handlingClick=!0;for(var m=t.length-1;m>=0;m--)s=t[m],a=this._getLayer(s.layerId).layer,s.checked?h.push(a):s.checked||f.push(a);for(m=0;m<f.length;m++)this._map.hasLayer(f[m])&&this._map.removeLayer(f[m]);for(m=0;m<h.length;m++)this._map.hasLayer(h[m])||this._map.addLayer(h[m]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,s,a,h=this._map.getZoom(),f=t.length-1;f>=0;f--)s=t[f],a=this._getLayer(s.layerId).layer,s.disabled=a.options.minZoom!==void 0&&h<a.options.minZoom||a.options.maxZoom!==void 0&&h>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,G(t,"click",Mt),this.expand();var s=this;setTimeout(function(){tt(t,"click",Mt),s._preventClick=!1})}}),Of=function(t,s,a){return new Va(t,s,a)},tn=Gt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var s="leaflet-control-zoom",a=X("div",s+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,s+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,s+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},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._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,s,a,h,f){var m=X("a",a,h);return m.innerHTML=t,m.href="#",m.title=s,m.setAttribute("role","button"),m.setAttribute("aria-label",s),ve(m),G(m,"click",yi),G(m,"click",f,this),G(m,"click",this._refocusOnMap,this),m},_updateDisabled:function(){var t=this._map,s="leaflet-disabled";ht(this._zoomInButton,s),ht(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(U(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(U(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});Q.mergeOptions({zoomControl:!0}),Q.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tn,this.addControl(this.zoomControl))});var kf=function(t){return new tn(t)},Qa=Gt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var s="leaflet-control-scale",a=X("div",s),h=this.options;return this._addScales(h,s+"-line",a),t.on(h.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,s,a){t.metric&&(this._mScale=X("div",s,a)),t.imperial&&(this._iScale=X("div",s,a))},_update:function(){var t=this._map,s=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,s]),t.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var s=this._getRoundNum(t),a=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,a,s/t)},_updateImperial:function(t){var s=t*3.2808399,a,h,f;s>5280?(a=s/5280,h=this._getRoundNum(a),this._updateScale(this._iScale,h+" mi",h/a)):(f=this._getRoundNum(s),this._updateScale(this._iScale,f+" ft",f/s))},_updateScale:function(t,s,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=s},_getRoundNum:function(t){var s=Math.pow(10,(Math.floor(t)+"").length-1),a=t/s;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,s*a}}),zf=function(t){return new Qa(t)},If='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',en=Gt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(N.inlineSvg?If+" ":"")+"Leaflet</a>"},initialize:function(t){P(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=X("div","leaflet-control-attribution"),ve(this._container);for(var s in t._layers)t._layers[s].getAttribution&&this.addAttribution(t._layers[s].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 s in this._attributions)this._attributions[s]&&t.push(s);var a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(' <span aria-hidden="true">|</span> ')}}});Q.mergeOptions({attributionControl:!0}),Q.addInitHook(function(){this.options.attributionControl&&new en().addTo(this)});var Nf=function(t){return new en(t)};Gt.Layers=Va,Gt.Zoom=tn,Gt.Scale=Qa,Gt.Attribution=en,ye.layers=Of,ye.zoom=kf,ye.scale=zf,ye.attribution=Nf;var Kt=ti.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}});Kt.addTo=function(t,s){return t.addHandler(s,this),this};var Bf={Events:Bt},Xa=N.touch?"touchstart mousedown":"mousedown",fi=ue.extend({options:{clickTolerance:3},initialize:function(t,s,a,h){P(this,h),this._element=t,this._dragStartTarget=s||t,this._preventOutline=a},enable:function(){this._enabled||(G(this._dragStartTarget,Xa,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(fi._dragging===this&&this.finishDrag(!0),tt(this._dragStartTarget,Xa,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!qs(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){fi._dragging===this&&this.finishDrag();return}if(!(fi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(fi._dragging=this,this._preventOutline&&$s(this._element),js(),_e(),!this._moving)){this.fire("down");var s=t.touches?t.touches[0]:t,a=Ga(this._element);this._startPoint=new q(s.clientX,s.clientY),this._startPos=gi(this._element),this._parentScale=Vs(a);var h=t.type==="mousedown";G(document,h?"mousemove":"touchmove",this._onMove,this),G(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var s=t.touches&&t.touches.length===1?t.touches[0]:t,a=new q(s.clientX,s.clientY)._subtract(this._startPoint);!a.x&&!a.y||Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,Mt(t),this._moved||(this.fire("dragstart"),this._moved=!0,U(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),U(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ut(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ht(document.body,"leaflet-dragging"),this._lastTarget&&(ht(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),tt(document,"mousemove touchmove",this._onMove,this),tt(document,"mouseup touchend touchcancel",this._onUp,this),Hs(),pe();var s=this._moved&&this._moving;this._moving=!1,fi._dragging=!1,s&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Ka(t,s,a){var h,f=[1,4,2,8],m,g,x,w,T,k,D,j;for(m=0,k=t.length;m<k;m++)t[m]._code=Mi(t[m],s);for(x=0;x<4;x++){for(D=f[x],h=[],m=0,k=t.length,g=k-1;m<k;g=m++)w=t[m],T=t[g],w._code&D?T._code&D||(j=Xe(T,w,D,s,a),j._code=Mi(j,s),h.push(j)):(T._code&D&&(j=Xe(T,w,D,s,a),j._code=Mi(j,s),h.push(j)),h.push(w));t=h}return t}function Ja(t,s){var a,h,f,m,g,x,w,T,k;if(!t||t.length===0)throw new Error("latlngs not passed");Zt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var D=V([0,0]),j=lt(t),Pt=j.getNorthWest().distanceTo(j.getSouthWest())*j.getNorthEast().distanceTo(j.getNorthWest());Pt<1700&&(D=sn(t));var gt=t.length,Ft=[];for(a=0;a<gt;a++){var kt=V(t[a]);Ft.push(s.project(V([kt.lat-D.lat,kt.lng-D.lng])))}for(x=w=T=0,a=0,h=gt-1;a<gt;h=a++)f=Ft[a],m=Ft[h],g=f.y*m.x-m.y*f.x,w+=(f.x+m.x)*g,T+=(f.y+m.y)*g,x+=g*3;x===0?k=Ft[0]:k=[w/x,T/x];var qi=s.unproject(F(k));return V([qi.lat+D.lat,qi.lng+D.lng])}function sn(t){for(var s=0,a=0,h=0,f=0;f<t.length;f++){var m=V(t[f]);s+=m.lat,a+=m.lng,h++}return V([s/h,a/h])}var Rf={__proto__:null,clipPolygon:Ka,polygonCenter:Ja,centroid:sn};function Ya(t,s){if(!s||!t.length)return t.slice();var a=s*s;return t=Ff(t,a),t=Zf(t,a),t}function to(t,s,a){return Math.sqrt(Me(t,s,a,!0))}function Df(t,s,a){return Me(t,s,a)}function Zf(t,s){var a=t.length,h=typeof Uint8Array<"u"?Uint8Array:Array,f=new h(a);f[0]=f[a-1]=1,nn(t,f,s,0,a-1);var m,g=[];for(m=0;m<a;m++)f[m]&&g.push(t[m]);return g}function nn(t,s,a,h,f){var m=0,g,x,w;for(x=h+1;x<=f-1;x++)w=Me(t[x],t[h],t[f],!0),w>m&&(g=x,m=w);m>a&&(s[g]=1,nn(t,s,a,h,g),nn(t,s,a,g,f))}function Ff(t,s){for(var a=[t[0]],h=1,f=0,m=t.length;h<m;h++)qf(t[h],t[f])>s&&(a.push(t[h]),f=h);return f<m-1&&a.push(t[m-1]),a}var io;function eo(t,s,a,h,f){var m=h?io:Mi(t,a),g=Mi(s,a),x,w,T;for(io=g;;){if(!(m|g))return[t,s];if(m&g)return!1;x=m||g,w=Xe(t,s,x,a,f),T=Mi(w,a),x===m?(t=w,m=T):(s=w,g=T)}}function Xe(t,s,a,h,f){var m=s.x-t.x,g=s.y-t.y,x=h.min,w=h.max,T,k;return a&8?(T=t.x+m*(w.y-t.y)/g,k=w.y):a&4?(T=t.x+m*(x.y-t.y)/g,k=x.y):a&2?(T=w.x,k=t.y+g*(w.x-t.x)/m):a&1&&(T=x.x,k=t.y+g*(x.x-t.x)/m),new q(T,k,f)}function Mi(t,s){var a=0;return t.x<s.min.x?a|=1:t.x>s.max.x&&(a|=2),t.y<s.min.y?a|=4:t.y>s.max.y&&(a|=8),a}function qf(t,s){var a=s.x-t.x,h=s.y-t.y;return a*a+h*h}function Me(t,s,a,h){var f=s.x,m=s.y,g=a.x-f,x=a.y-m,w=g*g+x*x,T;return w>0&&(T=((t.x-f)*g+(t.y-m)*x)/w,T>1?(f=a.x,m=a.y):T>0&&(f+=g*T,m+=x*T)),g=t.x-f,x=t.y-m,h?g*g+x*x:new q(f,m)}function Zt(t){return!B(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function so(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zt(t)}function no(t,s){var a,h,f,m,g,x,w,T;if(!t||t.length===0)throw new Error("latlngs not passed");Zt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var k=V([0,0]),D=lt(t),j=D.getNorthWest().distanceTo(D.getSouthWest())*D.getNorthEast().distanceTo(D.getNorthWest());j<1700&&(k=sn(t));var Pt=t.length,gt=[];for(a=0;a<Pt;a++){var Ft=V(t[a]);gt.push(s.project(V([Ft.lat-k.lat,Ft.lng-k.lng])))}for(a=0,h=0;a<Pt-1;a++)h+=gt[a].distanceTo(gt[a+1])/2;if(h===0)T=gt[0];else for(a=0,m=0;a<Pt-1;a++)if(g=gt[a],x=gt[a+1],f=g.distanceTo(x),m+=f,m>h){w=(m-h)/f,T=[x.x-w*(x.x-g.x),x.y-w*(x.y-g.y)];break}var kt=s.unproject(F(T));return V([kt.lat+k.lat,kt.lng+k.lng])}var Gf={__proto__:null,simplify:Ya,pointToSegmentDistance:to,closestPointOnSegment:Df,clipSegment:eo,_getEdgeIntersection:Xe,_getBitCode:Mi,_sqClosestPointOnSegment:Me,isFlat:Zt,_flat:so,polylineCenter:no},an={project:function(t){return new q(t.lng,t.lat)},unproject:function(t){return new Y(t.y,t.x)},bounds:new st([-180,-90],[180,90])},on={R:6378137,R_MINOR:6356752314245179e-9,bounds:new st([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var s=Math.PI/180,a=this.R,h=t.lat*s,f=this.R_MINOR/a,m=Math.sqrt(1-f*f),g=m*Math.sin(h),x=Math.tan(Math.PI/4-h/2)/Math.pow((1-g)/(1+g),m/2);return h=-a*Math.log(Math.max(x,1e-10)),new q(t.lng*s*a,h)},unproject:function(t){for(var s=180/Math.PI,a=this.R,h=this.R_MINOR/a,f=Math.sqrt(1-h*h),m=Math.exp(-t.y/a),g=Math.PI/2-2*Math.atan(m),x=0,w=.1,T;x<15&&Math.abs(w)>1e-7;x++)T=f*Math.sin(g),T=Math.pow((1-T)/(1+T),f/2),w=Math.PI/2-2*Math.atan(m*T)-g,g+=w;return new Y(g*s,t.x*s/a)}},Uf={__proto__:null,LonLat:an,Mercator:on,SphericalMercator:Os},jf=r({},ci,{code:"EPSG:3395",projection:on,transformation:function(){var t=.5/(Math.PI*on.R);return ce(t,.5,-t,.5)}()}),ao=r({},ci,{code:"EPSG:4326",projection:an,transformation:ce(1/180,1,-1/180,.5)}),Hf=r({},ii,{projection:an,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,s){var a=s.lng-t.lng,h=s.lat-t.lat;return Math.sqrt(a*a+h*h)},infinite:!0});ii.Earth=ci,ii.EPSG3395=jf,ii.EPSG3857=zs,ii.EPSG900913=Xc,ii.EPSG4326=ao,ii.Simple=Hf;var Ut=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[d(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[d(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var s=t.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var a=this.getEvents();s.on(a,this),this.once("remove",function(){s.off(a,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Q.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var s=d(t);return this._layers[s]?this:(this._layers[s]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var s=d(t);return this._layers[s]?(this._loaded&&t.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return d(t)in this._layers},eachLayer:function(t,s){for(var a in this._layers)t.call(s,this._layers[a]);return this},_addLayers:function(t){t=t?B(t)?t:[t]:[];for(var s=0,a=t.length;s<a;s++)this.addLayer(t[s])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[d(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var s=d(t);this._zoomBoundLayers[s]&&(delete this._zoomBoundLayers[s],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,s=-1/0,a=this._getZoomSpan();for(var h in this._zoomBoundLayers){var f=this._zoomBoundLayers[h].options;t=f.minZoom===void 0?t:Math.min(t,f.minZoom),s=f.maxZoom===void 0?s:Math.max(s,f.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Bi=Ut.extend({initialize:function(t,s){P(this,s),this._layers={};var a,h;if(t)for(a=0,h=t.length;a<h;a++)this.addLayer(t[a])},addLayer:function(t){var s=this.getLayerId(t);return this._layers[s]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var s=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[s]&&this._map.removeLayer(this._layers[s]),delete this._layers[s],this},hasLayer:function(t){var s=typeof t=="number"?t:this.getLayerId(t);return s in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var s=Array.prototype.slice.call(arguments,1),a,h;for(a in this._layers)h=this._layers[a],h[t]&&h[t].apply(h,s);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,s){for(var a in this._layers)t.call(s,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return d(t)}}),Wf=function(t,s){return new Bi(t,s)},ei=Bi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Bi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Bi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Ot;for(var s in this._layers){var a=this._layers[s];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),$f=function(t,s){return new ei(t,s)},Ri=ti.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){P(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,s){var a=this._getIconUrl(t);if(!a){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(a,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(h,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(t,s){var a=this.options,h=a[s+"Size"];typeof h=="number"&&(h=[h,h]);var f=F(h),m=F(s==="shadow"&&a.shadowAnchor||a.iconAnchor||f&&f.divideBy(2,!0));t.className="leaflet-marker-"+s+" "+(a.className||""),m&&(t.style.marginLeft=-m.x+"px",t.style.marginTop=-m.y+"px"),f&&(t.style.width=f.x+"px",t.style.height=f.y+"px")},_createImg:function(t,s){return s=s||document.createElement("img"),s.src=t,s},_getIconUrl:function(t){return N.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Vf(t){return new Ri(t)}var xe=Ri.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof xe.imagePath!="string"&&(xe.imagePath=this._detectIconPath()),(this.options.imagePath||xe.imagePath)+Ri.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var s=function(a,h,f){var m=h.exec(a);return m&&m[f]};return t=s(t,/^url\((['"])?(.+)\1\)$/,2),t&&s(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=X("div","leaflet-default-icon-path",document.body),s=me(t,"background-image")||me(t,"backgroundImage");if(document.body.removeChild(t),s=this._stripUrl(s),s)return s;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),oo=Kt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new fi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),U(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ht(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var s=this._marker,a=s._map,h=this._marker.options.autoPanSpeed,f=this._marker.options.autoPanPadding,m=gi(s._icon),g=a.getPixelBounds(),x=a.getPixelOrigin(),w=St(g.min._subtract(x).add(f),g.max._subtract(x).subtract(f));if(!w.contains(m)){var T=F((Math.max(w.max.x,m.x)-w.max.x)/(g.max.x-w.max.x)-(Math.min(w.min.x,m.x)-w.min.x)/(g.min.x-w.min.x),(Math.max(w.max.y,m.y)-w.max.y)/(g.max.y-w.max.y)-(Math.min(w.min.y,m.y)-w.min.y)/(g.min.y-w.min.y)).multiplyBy(h);a.panBy(T,{animate:!1}),this._draggable._newPos._add(T),this._draggable._startPos._add(T),ut(s._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=ot(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(yt(this._panRequest),this._panRequest=ot(this._adjustPan.bind(this,t)))},_onDrag:function(t){var s=this._marker,a=s._shadow,h=gi(s._icon),f=s._map.layerPointToLatLng(h);a&&ut(a,h),s._latlng=f,t.latlng=f,t.oldLatLng=this._oldLatLng,s.fire("move",t).fire("drag",t)},_onDragEnd:function(t){yt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ke=Ut.extend({options:{icon:new xe,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,s){P(this,s),this._latlng=V(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var s=this._latlng;return this._latlng=V(t),this.update(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,s="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),h=!1;a!==this._icon&&(this._icon&&this._removeIcon(),h=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),U(a,s),t.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&G(a,"focus",this._panOnFocus,this);var f=t.icon.createShadow(this._shadow),m=!1;f!==this._shadow&&(this._removeShadow(),m=!0),f&&(U(f,s),f.alt=""),this._shadow=f,t.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),f&&m&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tt(this._icon,"focus",this._panOnFocus,this),nt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&nt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ut(this._icon,t),this._shadow&&ut(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var s=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(s)},_initInteraction:function(){if(this.options.interactive&&(U(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),oo)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new oo(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Dt(this._icon,t),this._shadow&&Dt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var s=this.options.icon.options,a=s.iconSize?F(s.iconSize):F(0,0),h=s.iconAnchor?F(s.iconAnchor):F(0,0);t.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:a.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qf(t,s){return new Ke(t,s)}var di=Ut.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return P(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Je=di.extend({options:{fill:!0,radius:10},initialize:function(t,s){P(this,s),this._latlng=V(t),this._radius=this.options.radius},setLatLng:function(t){var s=this._latlng;return this._latlng=V(t),this.redraw(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var s=t&&t.radius||this._radius;return di.prototype.setStyle.call(this,t),this.setRadius(s),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,s=this._radiusY||t,a=this._clickTolerance(),h=[t+a,s+a];this._pxBounds=new st(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Xf(t,s){return new Je(t,s)}var rn=Je.extend({initialize:function(t,s,a){if(typeof s=="number"&&(s=r({},a,{radius:s})),P(this,s),this._latlng=V(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Ot(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:di.prototype.setStyle,_project:function(){var t=this._latlng.lng,s=this._latlng.lat,a=this._map,h=a.options.crs;if(h.distance===ci.distance){var f=Math.PI/180,m=this._mRadius/ci.R/f,g=a.project([s+m,t]),x=a.project([s-m,t]),w=g.add(x).divideBy(2),T=a.unproject(w).lat,k=Math.acos((Math.cos(m*f)-Math.sin(s*f)*Math.sin(T*f))/(Math.cos(s*f)*Math.cos(T*f)))/f;(isNaN(k)||k===0)&&(k=m/Math.cos(Math.PI/180*s)),this._point=w.subtract(a.getPixelOrigin()),this._radius=isNaN(k)?0:w.x-a.project([T,t-k]).x,this._radiusY=w.y-g.y}else{var D=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(D).x}this._updateBounds()}});function Kf(t,s,a){return new rn(t,s,a)}var si=di.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,s){P(this,s),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var s=1/0,a=null,h=Me,f,m,g=0,x=this._parts.length;g<x;g++)for(var w=this._parts[g],T=1,k=w.length;T<k;T++){f=w[T-1],m=w[T];var D=h(t,f,m,!0);D<s&&(s=D,a=h(t,f,m))}return a&&(a.distance=Math.sqrt(s)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return no(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,s){return s=s||this._defaultShape(),t=V(t),s.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Ot,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Zt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var s=[],a=Zt(t),h=0,f=t.length;h<f;h++)a?(s[h]=V(t[h]),this._bounds.extend(s[h])):s[h]=this._convertLatLngs(t[h]);return s},_project:function(){var t=new st;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),s=new q(t,t);this._rawPxBounds&&(this._pxBounds=new st([this._rawPxBounds.min.subtract(s),this._rawPxBounds.max.add(s)]))},_projectLatlngs:function(t,s,a){var h=t[0]instanceof Y,f=t.length,m,g;if(h){for(g=[],m=0;m<f;m++)g[m]=this._map.latLngToLayerPoint(t[m]),a.extend(g[m]);s.push(g)}else for(m=0;m<f;m++)this._projectLatlngs(t[m],s,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var s=this._parts,a,h,f,m,g,x,w;for(a=0,f=0,m=this._rings.length;a<m;a++)for(w=this._rings[a],h=0,g=w.length;h<g-1;h++)x=eo(w[h],w[h+1],t,h,!0),x&&(s[f]=s[f]||[],s[f].push(x[0]),(x[1]!==w[h+1]||h===g-2)&&(s[f].push(x[1]),f++))}},_simplifyPoints:function(){for(var t=this._parts,s=this.options.smoothFactor,a=0,h=t.length;a<h;a++)t[a]=Ya(t[a],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,s){var a,h,f,m,g,x,w=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,m=this._parts.length;a<m;a++)for(x=this._parts[a],h=0,g=x.length,f=g-1;h<g;f=h++)if(!(!s&&h===0)&&to(t,x[f],x[h])<=w)return!0;return!1}});function Jf(t,s){return new si(t,s)}si._flat=so;var Di=si.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ja(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var s=si.prototype._convertLatLngs.call(this,t),a=s.length;return a>=2&&s[0]instanceof Y&&s[0].equals(s[a-1])&&s.pop(),s},_setLatLngs:function(t){si.prototype._setLatLngs.call(this,t),Zt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,s=this.options.weight,a=new q(s,s);if(t=new st(t.min.subtract(a),t.max.add(a)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,f=this._rings.length,m;h<f;h++)m=Ka(this._rings[h],t,!0),m.length&&this._parts.push(m)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var s=!1,a,h,f,m,g,x,w,T;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(m=0,w=this._parts.length;m<w;m++)for(a=this._parts[m],g=0,T=a.length,x=T-1;g<T;x=g++)h=a[g],f=a[x],h.y>t.y!=f.y>t.y&&t.x<(f.x-h.x)*(t.y-h.y)/(f.y-h.y)+h.x&&(s=!s);return s||si.prototype._containsPoint.call(this,t,!0)}});function Yf(t,s){return new Di(t,s)}var ni=ei.extend({initialize:function(t,s){P(this,s),this._layers={},t&&this.addData(t)},addData:function(t){var s=B(t)?t:t.features,a,h,f;if(s){for(a=0,h=s.length;a<h;a++)f=s[a],(f.geometries||f.geometry||f.features||f.coordinates)&&this.addData(f);return this}var m=this.options;if(m.filter&&!m.filter(t))return this;var g=Ye(t,m);return g?(g.feature=es(t),g.defaultOptions=g.options,this.resetStyle(g),m.onEachFeature&&m.onEachFeature(t,g),this.addLayer(g)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=r({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(s){this._setLayerStyle(s,t)},this)},_setLayerStyle:function(t,s){t.setStyle&&(typeof s=="function"&&(s=s(t.feature)),t.setStyle(s))}});function Ye(t,s){var a=t.type==="Feature"?t.geometry:t,h=a?a.coordinates:null,f=[],m=s&&s.pointToLayer,g=s&&s.coordsToLatLng||hn,x,w,T,k;if(!h&&!a)return null;switch(a.type){case"Point":return x=g(h),ro(m,t,x,s);case"MultiPoint":for(T=0,k=h.length;T<k;T++)x=g(h[T]),f.push(ro(m,t,x,s));return new ei(f);case"LineString":case"MultiLineString":return w=ts(h,a.type==="LineString"?0:1,g),new si(w,s);case"Polygon":case"MultiPolygon":return w=ts(h,a.type==="Polygon"?1:2,g),new Di(w,s);case"GeometryCollection":for(T=0,k=a.geometries.length;T<k;T++){var D=Ye({geometry:a.geometries[T],type:"Feature",properties:t.properties},s);D&&f.push(D)}return new ei(f);case"FeatureCollection":for(T=0,k=a.features.length;T<k;T++){var j=Ye(a.features[T],s);j&&f.push(j)}return new ei(f);default:throw new Error("Invalid GeoJSON object.")}}function ro(t,s,a,h){return t?t(s,a):new Ke(a,h&&h.markersInheritOptions&&h)}function hn(t){return new Y(t[1],t[0],t[2])}function ts(t,s,a){for(var h=[],f=0,m=t.length,g;f<m;f++)g=s?ts(t[f],s-1,a):(a||hn)(t[f]),h.push(g);return h}function ln(t,s){return t=V(t),t.alt!==void 0?[y(t.lng,s),y(t.lat,s),y(t.alt,s)]:[y(t.lng,s),y(t.lat,s)]}function is(t,s,a,h){for(var f=[],m=0,g=t.length;m<g;m++)f.push(s?is(t[m],Zt(t[m])?0:s-1,a,h):ln(t[m],h));return!s&&a&&f.length>0&&f.push(f[0].slice()),f}function Zi(t,s){return t.feature?r({},t.feature,{geometry:s}):es(s)}function es(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var un={toGeoJSON:function(t){return Zi(this,{type:"Point",coordinates:ln(this.getLatLng(),t)})}};Ke.include(un),rn.include(un),Je.include(un),si.include({toGeoJSON:function(t){var s=!Zt(this._latlngs),a=is(this._latlngs,s?1:0,!1,t);return Zi(this,{type:(s?"Multi":"")+"LineString",coordinates:a})}}),Di.include({toGeoJSON:function(t){var s=!Zt(this._latlngs),a=s&&!Zt(this._latlngs[0]),h=is(this._latlngs,a?2:s?1:0,!0,t);return s||(h=[h]),Zi(this,{type:(a?"Multi":"")+"Polygon",coordinates:h})}}),Bi.include({toMultiPoint:function(t){var s=[];return this.eachLayer(function(a){s.push(a.toGeoJSON(t).geometry.coordinates)}),Zi(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(t){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(t);var a=s==="GeometryCollection",h=[];return this.eachLayer(function(f){if(f.toGeoJSON){var m=f.toGeoJSON(t);if(a)h.push(m.geometry);else{var g=es(m);g.type==="FeatureCollection"?h.push.apply(h,g.features):h.push(g)}}}),a?Zi(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function ho(t,s){return new ni(t,s)}var td=ho,ss=Ut.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,s,a){this._url=t,this._bounds=lt(s),P(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(U(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){nt(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&&Ii(this._image),this},bringToBack:function(){return this._map&&Ni(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=lt(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",s=this._image=t?this._url:X("img");if(U(s,"leaflet-image-layer"),this._zoomAnimated&&U(s,"leaflet-zoom-animated"),this.options.className&&U(s,this.options.className),s.onselectstart=p,s.onmousemove=p,s.onload=u(this.fire,this,"load"),s.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(t){var s=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;pi(this._image,a,s)},_reset:function(){var t=this._image,s=new st(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=s.getSize();ut(t,s.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){Dt(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()}}),id=function(t,s,a){return new ss(t,s,a)},lo=ss.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",s=this._image=t?this._url:X("video");if(U(s,"leaflet-image-layer"),this._zoomAnimated&&U(s,"leaflet-zoom-animated"),this.options.className&&U(s,this.options.className),s.onselectstart=p,s.onmousemove=p,s.onloadeddata=u(this.fire,this,"load"),t){for(var a=s.getElementsByTagName("source"),h=[],f=0;f<a.length;f++)h.push(a[f].src);this._url=a.length>0?h:[s.src];return}B(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var m=0;m<this._url.length;m++){var g=X("source");g.src=this._url[m],s.appendChild(g)}}});function ed(t,s,a){return new lo(t,s,a)}var uo=ss.extend({_initImage:function(){var t=this._image=this._url;U(t,"leaflet-image-layer"),this._zoomAnimated&&U(t,"leaflet-zoom-animated"),this.options.className&&U(t,this.options.className),t.onselectstart=p,t.onmousemove=p}});function sd(t,s,a){return new uo(t,s,a)}var Jt=Ut.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,s){t&&(t instanceof Y||B(t))?(this._latlng=V(t),P(this,s)):(P(this,t),this._source=s),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Dt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Dt(this._container,1),this.bringToFront(),this.options.interactive&&(U(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Dt(this._container,0),this._removeTimeout=setTimeout(u(nt,void 0,this._container),200)):nt(this._container),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=V(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ii(this._container),this},bringToBack:function(){return this._map&&Ni(this._container),this},_prepareOpen:function(t){var s=this._source;if(!s._map)return!1;if(s instanceof ei){s=null;var a=this._source._layers;for(var h in a)if(a[h]._map){s=a[h];break}if(!s)return!1;this._source=s}if(!t)if(s.getCenter)t=s.getCenter();else if(s.getLatLng)t=s.getLatLng();else if(s.getBounds)t=s.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,s=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof s=="string")t.innerHTML=s;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(s)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),s=F(this.options.offset),a=this._getAnchor();this._zoomAnimated?ut(this._container,t.add(a)):s=s.add(t).add(a);var h=this._containerBottom=-s.y,f=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=h+"px",this._container.style.left=f+"px"}},_getAnchor:function(){return[0,0]}});Q.include({_initOverlay:function(t,s,a,h){var f=s;return f instanceof t||(f=new t(h).setContent(s)),a&&f.setLatLng(a),f}}),Ut.include({_initOverlay:function(t,s,a,h){var f=a;return f instanceof t?(P(f,h),f._source=this):(f=s&&!h?s:new t(h,this),f.setContent(a)),f}});var ns=Jt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Jt.prototype.openOn.call(this,t)},onAdd:function(t){Jt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof di||this._source.on("preclick",vi))},onRemove:function(t){Jt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof di||this._source.off("preclick",vi))},getEvents:function(){var t=Jt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",s=this._container=X("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=X("div",t+"-content-wrapper",s);if(this._contentNode=X("div",t+"-content",a),ve(s),Js(this._contentNode),G(s,"contextmenu",vi),this._tipContainer=X("div",t+"-tip-container",s),this._tip=X("div",t+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=X("a",t+"-close-button",s);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',G(h,"click",function(f){Mt(f),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,s=t.style;s.width="",s.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),s.width=a+1+"px",s.whiteSpace="",s.height="";var h=t.offsetHeight,f=this.options.maxHeight,m="leaflet-popup-scrolled";f&&h>f?(s.height=f+"px",U(t,m)):ht(t,m),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var s=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();ut(this._container,s.add(a))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,s=parseInt(me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+s,h=this._containerWidth,f=new q(this._containerLeft,-a-this._containerBottom);f._add(gi(this._container));var m=t.layerPointToContainerPoint(f),g=F(this.options.autoPanPadding),x=F(this.options.autoPanPaddingTopLeft||g),w=F(this.options.autoPanPaddingBottomRight||g),T=t.getSize(),k=0,D=0;m.x+h+w.x>T.x&&(k=m.x+h-T.x+w.x),m.x-k-x.x<0&&(k=m.x-x.x),m.y+a+w.y>T.y&&(D=m.y+a-T.y+w.y),m.y-D-x.y<0&&(D=m.y-x.y),(k||D)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([k,D]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),nd=function(t,s){return new ns(t,s)};Q.mergeOptions({closePopupOnClick:!0}),Q.include({openPopup:function(t,s,a){return this._initOverlay(ns,t,s,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Ut.include({bindPopup:function(t,s){return this._popup=this._initOverlay(ns,this._popup,t,s),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 ei||(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)){yi(t);var s=t.layer||t.target;if(this._popup._source===s&&!(s instanceof di)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=s,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var as=Jt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Jt.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){Jt.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=Jt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",s=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=X("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var s,a,h=this._map,f=this._container,m=h.latLngToContainerPoint(h.getCenter()),g=h.layerPointToContainerPoint(t),x=this.options.direction,w=f.offsetWidth,T=f.offsetHeight,k=F(this.options.offset),D=this._getAnchor();x==="top"?(s=w/2,a=T):x==="bottom"?(s=w/2,a=0):x==="center"?(s=w/2,a=T/2):x==="right"?(s=0,a=T/2):x==="left"?(s=w,a=T/2):g.x<m.x?(x="right",s=0,a=T/2):(x="left",s=w+(k.x+D.x)*2,a=T/2),t=t.subtract(F(s,a,!0)).add(k).add(D),ht(f,"leaflet-tooltip-right"),ht(f,"leaflet-tooltip-left"),ht(f,"leaflet-tooltip-top"),ht(f,"leaflet-tooltip-bottom"),U(f,"leaflet-tooltip-"+x),ut(f,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Dt(this._container,t)},_animateZoom:function(t){var s=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(s)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),ad=function(t,s){return new as(t,s)};Q.include({openTooltip:function(t,s,a){return this._initOverlay(as,t,s,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Ut.include({bindTooltip:function(t,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(as,this._tooltip,t,s),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var s=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,a.click=this._openTooltip,this._map?this._addFocusListeners():a.add=this._addFocusListeners),this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),this[s](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ei||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var s=typeof t.getElement=="function"&&t.getElement();s&&(G(s,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),G(s,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var s=typeof t.getElement=="function"&&t.getElement();s&&s.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var s=this;this._map.once("moveend",function(){s._openOnceFlag=!1,s._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var s=t.latlng,a,h;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),h=this._map.containerPointToLayerPoint(a),s=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(s)}});var co=Ri.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var s=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(He(s),s.appendChild(a.html)):s.innerHTML=a.html!==!1?a.html:"",a.bgPos){var h=F(a.bgPos);s.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function od(t){return new co(t)}Ri.Default=xe;var we=Ut.extend({options:{tileSize:256,opacity:1,updateWhenIdle:N.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){P(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),nt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ii(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ni(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=_(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof q?t:new q(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var s=this.getPane().children,a=-t(-1/0,1/0),h=0,f=s.length,m;h<f;h++)m=s[h].style.zIndex,s[h]!==this._container&&m&&(a=t(a,+m));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!N.ielt9){Dt(this._container,this.options.opacity);var t=+new Date,s=!1,a=!1;for(var h in this._tiles){var f=this._tiles[h];if(!(!f.current||!f.loaded)){var m=Math.min(1,(t-f.loaded)/200);Dt(f.el,m),m<1?s=!0:(f.active?a=!0:this._onOpaqueTile(f),f.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),s&&(yt(this._fadeFrame),this._fadeFrame=ot(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=X("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,s=this.options.maxZoom;if(t!==void 0){for(var a in this._levels)a=Number(a),this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=s-Math.abs(t-a),this._onUpdateLevel(a)):(nt(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var h=this._levels[t],f=this._map;return h||(h=this._levels[t]={},h.el=X("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=s,h.origin=f.project(f.unproject(f.getPixelOrigin()),t).round(),h.zoom=t,this._setZoomTransform(h,f.getCenter(),f.getZoom()),p(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var t,s,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)s=this._tiles[t],s.retain=s.current;for(t in this._tiles)if(s=this._tiles[t],s.current&&!s.active){var h=s.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var s in this._tiles)this._tiles[s].coords.z===t&&this._removeTile(s)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)nt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,s,a,h){var f=Math.floor(t/2),m=Math.floor(s/2),g=a-1,x=new q(+f,+m);x.z=+g;var w=this._tileCoordsToKey(x),T=this._tiles[w];return T&&T.active?(T.retain=!0,!0):(T&&T.loaded&&(T.retain=!0),g>h?this._retainParent(f,m,g,h):!1)},_retainChildren:function(t,s,a,h){for(var f=2*t;f<2*t+2;f++)for(var m=2*s;m<2*s+2;m++){var g=new q(f,m);g.z=a+1;var x=this._tileCoordsToKey(g),w=this._tiles[x];if(w&&w.active){w.retain=!0;continue}else w&&w.loaded&&(w.retain=!0);a+1<h&&this._retainChildren(f,m,a+1,h)}},_resetView:function(t){var s=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),s,s)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var s=this.options;return s.minNativeZoom!==void 0&&t<s.minNativeZoom?s.minNativeZoom:s.maxNativeZoom!==void 0&&s.maxNativeZoom<t?s.maxNativeZoom:t},_setView:function(t,s,a,h){var f=Math.round(s);this.options.maxZoom!==void 0&&f>this.options.maxZoom||this.options.minZoom!==void 0&&f<this.options.minZoom?f=void 0:f=this._clampZoom(f);var m=this.options.updateWhenZooming&&f!==this._tileZoom;(!h||m)&&(this._tileZoom=f,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),f!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,s)},_setZoomTransforms:function(t,s){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,s)},_setZoomTransform:function(t,s,a){var h=this._map.getZoomScale(a,t.zoom),f=t.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(s,a)).round();N.any3d?pi(t.el,f,h):ut(t.el,f)},_resetGrid:function(){var t=this._map,s=t.options.crs,a=this._tileSize=this.getTileSize(),h=this._tileZoom,f=this._map.getPixelWorldBounds(this._tileZoom);f&&(this._globalTileRange=this._pxBoundsToTileRange(f)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,s.wrapLng[0]],h).x/a.x),Math.ceil(t.project([0,s.wrapLng[1]],h).x/a.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([s.wrapLat[0],0],h).y/a.x),Math.ceil(t.project([s.wrapLat[1],0],h).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var s=this._map,a=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),h=s.getZoomScale(a,this._tileZoom),f=s.project(t,this._tileZoom).floor(),m=s.getSize().divideBy(h*2);return new st(f.subtract(m),f.add(m))},_update:function(t){var s=this._map;if(s){var a=this._clampZoom(s.getZoom());if(t===void 0&&(t=s.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(t),f=this._pxBoundsToTileRange(h),m=f.getCenter(),g=[],x=this.options.keepBuffer,w=new st(f.getBottomLeft().subtract([x,-x]),f.getTopRight().add([x,-x]));if(!(isFinite(f.min.x)&&isFinite(f.min.y)&&isFinite(f.max.x)&&isFinite(f.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var T in this._tiles){var k=this._tiles[T].coords;(k.z!==this._tileZoom||!w.contains(new q(k.x,k.y)))&&(this._tiles[T].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var D=f.min.y;D<=f.max.y;D++)for(var j=f.min.x;j<=f.max.x;j++){var Pt=new q(j,D);if(Pt.z=this._tileZoom,!!this._isValidTile(Pt)){var gt=this._tiles[this._tileCoordsToKey(Pt)];gt?gt.current=!0:g.push(Pt)}}if(g.sort(function(kt,qi){return kt.distanceTo(m)-qi.distanceTo(m)}),g.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ft=document.createDocumentFragment();for(j=0;j<g.length;j++)this._addTile(g[j],Ft);this._level.el.appendChild(Ft)}}}},_isValidTile:function(t){var s=this._map.options.crs;if(!s.infinite){var a=this._globalTileRange;if(!s.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!s.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(t);return lt(this.options.bounds).overlaps(h)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var s=this._map,a=this.getTileSize(),h=t.scaleBy(a),f=h.add(a),m=s.unproject(h,t.z),g=s.unproject(f,t.z);return[m,g]},_tileCoordsToBounds:function(t){var s=this._tileCoordsToNwSe(t),a=new Ot(s[0],s[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var s=t.split(":"),a=new q(+s[0],+s[1]);return a.z=+s[2],a},_removeTile:function(t){var s=this._tiles[t];s&&(nt(s.el),delete this._tiles[t],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){U(t,"leaflet-tile");var s=this.getTileSize();t.style.width=s.x+"px",t.style.height=s.y+"px",t.onselectstart=p,t.onmousemove=p,N.ielt9&&this.options.opacity<1&&Dt(t,this.options.opacity)},_addTile:function(t,s){var a=this._getTilePos(t),h=this._tileCoordsToKey(t),f=this.createTile(this._wrapCoords(t),u(this._tileReady,this,t));this._initTile(f),this.createTile.length<2&&ot(u(this._tileReady,this,t,null,f)),ut(f,a),this._tiles[h]={el:f,coords:t,current:!0},s.appendChild(f),this.fire("tileloadstart",{tile:f,coords:t})},_tileReady:function(t,s,a){s&&this.fire("tileerror",{error:s,tile:a,coords:t});var h=this._tileCoordsToKey(t);a=this._tiles[h],a&&(a.loaded=+new Date,this._map._fadeAnimated?(Dt(a.el,0),yt(this._fadeFrame),this._fadeFrame=ot(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),s||(U(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),N.ielt9||!this._map._fadeAnimated?ot(this._pruneTiles,this):setTimeout(u(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var s=new q(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return s.z=t.z,s},_pxBoundsToTileRange:function(t){var s=this.getTileSize();return new st(t.min.unscaleBy(s).floor(),t.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function rd(t){return new we(t)}var Fi=we.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,s){this._url=t,s=P(this,s),s.detectRetina&&N.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,s){return this._url===t&&s===void 0&&(s=!0),this._url=t,s||this.redraw(),this},createTile:function(t,s){var a=document.createElement("img");return G(a,"load",u(this._tileOnLoad,this,s,a)),G(a,"error",u(this._tileOnError,this,s,a)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(a.referrerPolicy=this.options.referrerPolicy),a.alt="",a.src=this.getTileUrl(t),a},getTileUrl:function(t){var s={r:N.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(s.y=a),s["-y"]=a}return R(this._url,r(s,this.options))},_tileOnLoad:function(t,s){N.ielt9?setTimeout(u(t,this,null,s),0):t(null,s)},_tileOnError:function(t,s,a){var h=this.options.errorTileUrl;h&&s.getAttribute("src")!==h&&(s.src=h),t(a,s)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,s=this.options.maxZoom,a=this.options.zoomReverse,h=this.options.zoomOffset;return a&&(t=s-t),t+h},_getSubdomain:function(t){var s=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var t,s;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(s=this._tiles[t].el,s.onload=p,s.onerror=p,!s.complete)){s.src=W;var a=this._tiles[t].coords;nt(s),delete this._tiles[t],this.fire("tileabort",{tile:s,coords:a})}},_removeTile:function(t){var s=this._tiles[t];if(s)return s.el.setAttribute("src",W),we.prototype._removeTile.call(this,t)},_tileReady:function(t,s,a){if(!(!this._map||a&&a.getAttribute("src")===W))return we.prototype._tileReady.call(this,t,s,a)}});function fo(t,s){return new Fi(t,s)}var mo=Fi.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,s){this._url=t;var a=r({},this.defaultWmsParams);for(var h in s)h in this.options||(a[h]=s[h]);s=P(this,s);var f=s.detectRetina&&N.retina?2:1,m=this.getTileSize();a.width=m.x*f,a.height=m.y*f,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,Fi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var s=this._tileCoordsToNwSe(t),a=this._crs,h=St(a.project(s[0]),a.project(s[1])),f=h.min,m=h.max,g=(this._wmsVersion>=1.3&&this._crs===ao?[f.y,f.x,m.y,m.x]:[f.x,f.y,m.x,m.y]).join(","),x=Fi.prototype.getTileUrl.call(this,t);return x+E(this.wmsParams,x,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+g},setParams:function(t,s){return r(this.wmsParams,t),s||this.redraw(),this}});function hd(t,s){return new mo(t,s)}Fi.WMS=mo,fo.wms=hd;var ai=Ut.extend({options:{padding:.1},initialize:function(t){P(this,t),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),U(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,s){var a=this._map.getZoomScale(s,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),f=this._map.project(this._center,s),m=h.multiplyBy(-a).add(f).subtract(this._map._getNewPixelOrigin(t,s));N.any3d?pi(this._container,m,a):ut(this._container,m)},_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,s=this._map.getSize(),a=this._map.containerPointToLayerPoint(s.multiplyBy(-t)).round();this._bounds=new st(a,a.add(s.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),_o=ai.extend({options:{tolerance:0},getEvents:function(){var t=ai.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ai.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");G(t,"mousemove",this._onMouseMove,this),G(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),G(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){yt(this._redrawRequest),delete this._ctx,nt(this._container),tt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var s in this._layers)t=this._layers[s],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ai.prototype._update.call(this);var t=this._bounds,s=this._container,a=t.getSize(),h=N.retina?2:1;ut(s,t.min),s.width=h*a.x,s.height=h*a.y,s.style.width=a.x+"px",s.style.height=a.y+"px",N.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ai.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[d(t)]=t;var s=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var s=t._order,a=s.next,h=s.prev;a?a.prev=h:this._drawLast=h,h?h.next=a:this._drawFirst=a,delete t._order,delete this._layers[d(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 s=t.options.dashArray.split(/[, ]+/),a=[],h,f;for(f=0;f<s.length;f++){if(h=Number(s[f]),isNaN(h))return;a.push(h)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||ot(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var s=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new st,this._redrawBounds.extend(t._pxBounds.min.subtract([s,s])),this._redrawBounds.extend(t._pxBounds.max.add([s,s]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var s=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,s.x,s.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,s=this._redrawBounds;if(this._ctx.save(),s){var a=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)t=h.layer,(!s||t._pxBounds&&t._pxBounds.intersects(s))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,s){if(this._drawing){var a,h,f,m,g=t._parts,x=g.length,w=this._ctx;if(x){for(w.beginPath(),a=0;a<x;a++){for(h=0,f=g[a].length;h<f;h++)m=g[a][h],w[h?"lineTo":"moveTo"](m.x,m.y);s&&w.closePath()}this._fillStroke(w,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var s=t._point,a=this._ctx,h=Math.max(Math.round(t._radius),1),f=(Math.max(Math.round(t._radiusY),1)||h)/h;f!==1&&(a.save(),a.scale(1,f)),a.beginPath(),a.arc(s.x,s.y/f,h,0,Math.PI*2,!1),f!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,s){var a=s.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&a.weight!==0&&(t.setLineDash&&t.setLineDash(s.options&&s.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var s=this._map.mouseEventToLayerPoint(t),a,h,f=this._drawFirst;f;f=f.next)a=f.layer,a.options.interactive&&a._containsPoint(s)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(h=a);this._fireEvent(h?[h]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var s=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,s)}},_handleMouseOut:function(t){var s=this._hoveredLayer;s&&(ht(this._container,"leaflet-interactive"),this._fireEvent([s],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,s){if(!this._mouseHoverThrottled){for(var a,h,f=this._drawFirst;f;f=f.next)a=f.layer,a.options.interactive&&a._containsPoint(s)&&(h=a);h!==this._hoveredLayer&&(this._handleMouseOut(t),h&&(U(this._container,"leaflet-interactive"),this._fireEvent([h],t,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(u(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,s,a){this._map._fireDOMEvent(s,a||s.type,t)},_bringToFront:function(t){var s=t._order;if(s){var a=s.next,h=s.prev;if(a)a.prev=h;else return;h?h.next=a:a&&(this._drawFirst=a),s.prev=this._drawLast,this._drawLast.next=s,s.next=null,this._drawLast=s,this._requestRedraw(t)}},_bringToBack:function(t){var s=t._order;if(s){var a=s.next,h=s.prev;if(h)h.next=a;else return;a?a.prev=h:h&&(this._drawLast=h),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(t)}}});function po(t){return N.canvas?new _o(t):null}var be=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ld={_initContainer:function(){this._container=X("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ai.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var s=t._container=be("shape");U(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",t._path=be("path"),s.appendChild(t._path),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){var s=t._container;this._container.appendChild(s),t.options.interactive&&t.addInteractiveTarget(s)},_removePath:function(t){var s=t._container;nt(s),t.removeInteractiveTarget(s),delete this._layers[d(t)]},_updateStyle:function(t){var s=t._stroke,a=t._fill,h=t.options,f=t._container;f.stroked=!!h.stroke,f.filled=!!h.fill,h.stroke?(s||(s=t._stroke=be("stroke")),f.appendChild(s),s.weight=h.weight+"px",s.color=h.color,s.opacity=h.opacity,h.dashArray?s.dashStyle=B(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=h.lineCap.replace("butt","flat"),s.joinstyle=h.lineJoin):s&&(f.removeChild(s),t._stroke=null),h.fill?(a||(a=t._fill=be("fill")),f.appendChild(a),a.color=h.fillColor||h.color,a.opacity=h.fillOpacity):a&&(f.removeChild(a),t._fill=null)},_updateCircle:function(t){var s=t._point.round(),a=Math.round(t._radius),h=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+s.x+","+s.y+" "+a+","+h+" 0,"+65535*360)},_setPath:function(t,s){t._path.v=s},_bringToFront:function(t){Ii(t._container)},_bringToBack:function(t){Ni(t._container)}},os=N.vml?be:ya,Le=ai.extend({_initContainer:function(){this._container=os("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=os("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){nt(this._container),tt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ai.prototype._update.call(this);var t=this._bounds,s=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,a.setAttribute("width",s.x),a.setAttribute("height",s.y)),ut(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(t){var s=t._path=os("path");t.options.className&&U(s,t.options.className),t.options.interactive&&U(s,"leaflet-interactive"),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){nt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[d(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var s=t._path,a=t.options;s&&(a.stroke?(s.setAttribute("stroke",a.color),s.setAttribute("stroke-opacity",a.opacity),s.setAttribute("stroke-width",a.weight),s.setAttribute("stroke-linecap",a.lineCap),s.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?s.setAttribute("stroke-dasharray",a.dashArray):s.removeAttribute("stroke-dasharray"),a.dashOffset?s.setAttribute("stroke-dashoffset",a.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),a.fill?(s.setAttribute("fill",a.fillColor||a.color),s.setAttribute("fill-opacity",a.fillOpacity),s.setAttribute("fill-rule",a.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(t,s){this._setPath(t,Ma(t._parts,s))},_updateCircle:function(t){var s=t._point,a=Math.max(Math.round(t._radius),1),h=Math.max(Math.round(t._radiusY),1)||a,f="a"+a+","+h+" 0 1,0 ",m=t._empty()?"M0 0":"M"+(s.x-a)+","+s.y+f+a*2+",0 "+f+-a*2+",0 ";this._setPath(t,m)},_setPath:function(t,s){t._path.setAttribute("d",s)},_bringToFront:function(t){Ii(t._path)},_bringToBack:function(t){Ni(t._path)}});N.vml&&Le.include(ld);function go(t){return N.svg||N.vml?new Le(t):null}Q.include({getRenderer:function(t){var s=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var s=this._paneRenderers[t];return s===void 0&&(s=this._createRenderer({pane:t}),this._paneRenderers[t]=s),s},_createRenderer:function(t){return this.options.preferCanvas&&po(t)||go(t)}});var vo=Di.extend({initialize:function(t,s){Di.prototype.initialize.call(this,this._boundsToLatLngs(t),s)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=lt(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function ud(t,s){return new vo(t,s)}Le.create=os,Le.pointsToPath=Ma,ni.geometryToLayer=Ye,ni.coordsToLatLng=hn,ni.coordsToLatLngs=ts,ni.latLngToCoords=ln,ni.latLngsToCoords=is,ni.getFeature=Zi,ni.asFeature=es,Q.mergeOptions({boxZoom:!0});var yo=Kt.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(){G(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){tt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){nt(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(),_e(),js(),this._startPoint=this._map.mouseEventToContainerPoint(t),G(document,{contextmenu:yi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=X("div","leaflet-zoom-box",this._container),U(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var s=new st(this._point,this._startPoint),a=s.getSize();ut(this._box,s.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(nt(this._box),ht(this._container,"leaflet-crosshair")),pe(),Hs(),tt(document,{contextmenu:yi,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(u(this._resetState,this),0);var s=new Ot(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Q.addInitHook("addHandler","boxZoom",yo),Q.mergeOptions({doubleClickZoom:!0});var Mo=Kt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var s=this._map,a=s.getZoom(),h=s.options.zoomDelta,f=t.originalEvent.shiftKey?a-h:a+h;s.options.doubleClickZoom==="center"?s.setZoom(f):s.setZoomAround(t.containerPoint,f)}});Q.addInitHook("addHandler","doubleClickZoom",Mo),Q.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var xo=Kt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new fi(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))}U(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ht(this._map._container,"leaflet-grab"),ht(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 s=lt(this._map.options.maxBounds);this._offsetLimit=St(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.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 s=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(s),this._prunePositions(s)}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),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,s){return t-(t-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;t.x<s.min.x&&(t.x=this._viscousLimit(t.x,s.min.x)),t.y<s.min.y&&(t.y=this._viscousLimit(t.y,s.min.y)),t.x>s.max.x&&(t.x=this._viscousLimit(t.x,s.max.x)),t.y>s.max.y&&(t.y=this._viscousLimit(t.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,s=Math.round(t/2),a=this._initialWorldOffset,h=this._draggable._newPos.x,f=(h-s+a)%t+s-a,m=(h+s+a)%t-s-a,g=Math.abs(f+a)<Math.abs(m+a)?f:m;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=g},_onDragEnd:function(t){var s=this._map,a=s.options,h=!a.inertia||t.noInertia||this._times.length<2;if(s.fire("dragend",t),h)s.fire("moveend");else{this._prunePositions(+new Date);var f=this._lastPos.subtract(this._positions[0]),m=(this._lastTime-this._times[0])/1e3,g=a.easeLinearity,x=f.multiplyBy(g/m),w=x.distanceTo([0,0]),T=Math.min(a.inertiaMaxSpeed,w),k=x.multiplyBy(T/w),D=T/(a.inertiaDeceleration*g),j=k.multiplyBy(-D/2).round();!j.x&&!j.y?s.fire("moveend"):(j=s._limitOffset(j,s.options.maxBounds),ot(function(){s.panBy(j,{duration:D,easeLinearity:g,noMoveStart:!0,animate:!0})}))}}});Q.addInitHook("addHandler","dragging",xo),Q.mergeOptions({keyboard:!0,keyboardPanDelta:80});var wo=Kt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),G(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),tt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,s=document.documentElement,a=t.scrollTop||s.scrollTop,h=t.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(h,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var s=this._panKeys={},a=this.keyCodes,h,f;for(h=0,f=a.left.length;h<f;h++)s[a.left[h]]=[-1*t,0];for(h=0,f=a.right.length;h<f;h++)s[a.right[h]]=[t,0];for(h=0,f=a.down.length;h<f;h++)s[a.down[h]]=[0,t];for(h=0,f=a.up.length;h<f;h++)s[a.up[h]]=[0,-1*t]},_setZoomDelta:function(t){var s=this._zoomKeys={},a=this.keyCodes,h,f;for(h=0,f=a.zoomIn.length;h<f;h++)s[a.zoomIn[h]]=t;for(h=0,f=a.zoomOut.length;h<f;h++)s[a.zoomOut[h]]=-t},_addHooks:function(){G(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){tt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var s=t.keyCode,a=this._map,h;if(s in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(h=this._panKeys[s],t.shiftKey&&(h=F(h).multiplyBy(3)),a.options.maxBounds&&(h=a._limitOffset(F(h),a.options.maxBounds)),a.options.worldCopyJump){var f=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(h)));a.panTo(f)}else a.panBy(h)}else if(s in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;yi(t)}}});Q.addInitHook("addHandler","keyboard",wo),Q.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var bo=Kt.extend({addHooks:function(){G(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){tt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var s=Wa(t),a=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var h=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(u(this._performZoom,this),h),yi(t)},_performZoom:function(){var t=this._map,s=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),f=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,m=a?Math.ceil(f/a)*a:f,g=t._limitZoom(s+(this._delta>0?m:-m))-s;this._delta=0,this._startTime=null,g&&(t.options.scrollWheelZoom==="center"?t.setZoom(s+g):t.setZoomAround(this._lastMousePos,s+g))}});Q.addInitHook("addHandler","scrollWheelZoom",bo);var cd=600;Q.mergeOptions({tapHold:N.touchNative&&N.safari&&N.mobile,tapTolerance:15});var Lo=Kt.extend({addHooks:function(){G(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){tt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var s=t.touches[0];this._startPos=this._newPos=new q(s.clientX,s.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(G(document,"touchend",Mt),G(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),cd),G(document,"touchend touchcancel contextmenu",this._cancel,this),G(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){tt(document,"touchend",Mt),tt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),tt(document,"touchend touchcancel contextmenu",this._cancel,this),tt(document,"touchmove",this._onMove,this)},_onMove:function(t){var s=t.touches[0];this._newPos=new q(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,s){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});a._simulated=!0,s.target.dispatchEvent(a)}});Q.addInitHook("addHandler","tapHold",Lo),Q.mergeOptions({touchZoom:N.touch,bounceAtZoomLimits:!0});var Po=Kt.extend({addHooks:function(){U(this._map._container,"leaflet-touch-zoom"),G(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),tt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var s=this._map;if(!(!t.touches||t.touches.length!==2||s._animatingZoom||this._zooming)){var a=s.mouseEventToContainerPoint(t.touches[0]),h=s.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(a.add(h)._divideBy(2))),this._startDist=a.distanceTo(h),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),G(document,"touchmove",this._onTouchMove,this),G(document,"touchend touchcancel",this._onTouchEnd,this),Mt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var s=this._map,a=s.mouseEventToContainerPoint(t.touches[0]),h=s.mouseEventToContainerPoint(t.touches[1]),f=a.distanceTo(h)/this._startDist;if(this._zoom=s.getScaleZoom(f,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&f<1||this._zoom>s.getMaxZoom()&&f>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,f===1)return}else{var m=a._add(h)._divideBy(2)._subtract(this._centerPoint);if(f===1&&m.x===0&&m.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(m),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),yt(this._animRequest);var g=u(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ot(g,this,!0),Mt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,yt(this._animRequest),tt(document,"touchmove",this._onTouchMove,this),tt(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))}});Q.addInitHook("addHandler","touchZoom",Po),Q.BoxZoom=yo,Q.DoubleClickZoom=Mo,Q.Drag=xo,Q.Keyboard=wo,Q.ScrollWheelZoom=bo,Q.TapHold=Lo,Q.TouchZoom=Po,n.Bounds=st,n.Browser=N,n.CRS=ii,n.Canvas=_o,n.Circle=rn,n.CircleMarker=Je,n.Class=ti,n.Control=Gt,n.DivIcon=co,n.DivOverlay=Jt,n.DomEvent=Ef,n.DomUtil=Tf,n.Draggable=fi,n.Evented=ue,n.FeatureGroup=ei,n.GeoJSON=ni,n.GridLayer=we,n.Handler=Kt,n.Icon=Ri,n.ImageOverlay=ss,n.LatLng=Y,n.LatLngBounds=Ot,n.Layer=Ut,n.LayerGroup=Bi,n.LineUtil=Gf,n.Map=Q,n.Marker=Ke,n.Mixin=Bf,n.Path=di,n.Point=q,n.PolyUtil=Rf,n.Polygon=Di,n.Polyline=si,n.Popup=ns,n.PosAnimation=$a,n.Projection=Uf,n.Rectangle=vo,n.Renderer=ai,n.SVG=Le,n.SVGOverlay=uo,n.TileLayer=Fi,n.Tooltip=as,n.Transformation=ks,n.Util=Ss,n.VideoOverlay=lo,n.bind=u,n.bounds=St,n.canvas=po,n.circle=Kf,n.circleMarker=Xf,n.control=ye,n.divIcon=od,n.extend=r,n.featureGroup=$f,n.geoJSON=ho,n.geoJson=td,n.gridLayer=rd,n.icon=Vf,n.imageOverlay=id,n.latLng=V,n.latLngBounds=lt,n.layerGroup=Wf,n.map=Sf,n.marker=Qf,n.point=F,n.polygon=Yf,n.polyline=Jf,n.popup=nd,n.rectangle=ud,n.setOptions=P,n.stamp=d,n.svg=go,n.svgOverlay=sd,n.tileLayer=fo,n.tooltip=ad,n.transformation=ce,n.version=o,n.videoOverlay=ed;var fd=window.L;n.noConflict=function(){return window.L=fd,this},window.L=n})}(Pe,Pe.exports)),Pe.exports}var M=mn();const Io=So({__proto__:null,default:fn(M)},[M]),_n=M.Draggable.extend({initialize(i,e,n){M.Draggable.prototype.initialize.call(this,i,i),this._element=i,this._stepHeight=e??5.45,this._knobHeight=n??10,this.on("predrag",function(){this._newPos.x=0,this._newPos.y=this._adjust(this._newPos.y)},this)},_adjust(i){let e=Math.round(this._toValue(i));return e=Math.max(0,Math.min(this._maxValue,e)),this._toY(e)},_toY(i){return this._k*i+this._m},_toValue(i){return(i-this._m)/this._k},setSteps(i){this._maxValue=i-1,this._k=-this._stepHeight,this._m=0},setPosition(i){M.DomUtil.setPosition(this._element,L.point(0,this._adjust(i)))},setValue(i){this.setPosition(this._toY(i))},getValue(){return this._toValue(M.DomUtil.getPosition(this._element).y)}}),pn=M.Handler.extend({options:{color:"#f00",weight:1,fillColor:"#ff0",fillOpacity:.7},pointEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?this.geometry.setLatLng(i.latlng):(this.tooltip.setContent("点击开始绘制"),this.geometry=new M.CircleMarker(i.latlng,this.options).addTo(this._map)),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.geometry.setLatLng(i.latlng),this.onFinish&&this.onFinish(this.geometry),this.disable()}},polylineEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setLatLngs([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("点击继续绘制,双击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Polyline([i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setLatLngs(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry)},_mouseDblClick(i){this.onFinish&&this.onFinish(this.geometry),this.disable()}},rectangleEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setBounds([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("继续点击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Rectangle([i.latlng,i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setBounds(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry),this.latlngs.length===2&&(this.onFinish&&this.onFinish(this.geometry),this.disable())},_mouseDblClick(i){}},polygonEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setLatLngs([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("点击继续绘制,双击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Polygon([i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setLatLngs(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry)},_mouseDblClick(i){this.onFinish&&this.onFinish(this.geometry),this.disable()}},addHooks(){if(!this[this.drawType+"Events"])throw Error("未知的绘制类型");this[this.drawType+"Events"]._mouseMove&&this._map.on("mousemove",this[this.drawType+"Events"]._mouseMove,this),this[this.drawType+"Events"]._mouseClick&&this._map.on("click",this[this.drawType+"Events"]._mouseClick,this),this[this.drawType+"Events"]._mouseDblClick&&this._map.on("dblclick",this[this.drawType+"Events"]._mouseDblClick,this)},removeHooks(){this[this.drawType+"Events"]._mouseMove&&this._map.off("mousemove",this[this.drawType+"Events"]._mouseMove,this),this[this.drawType+"Events"]._mouseClick&&this._map.off("click",this[this.drawType+"Events"]._mouseClick,this),this[this.drawType+"Events"]._mouseDblClick&&this._map.off("dblclick",this[this.drawType+"Events"]._mouseDblClick,this)},setOptions(i){return M.Util.setOptions(this,i),this},enable(i,e={}){return M.Util.setOptions(this,e),this.onFinish=e.onFinish||new Function,this.onDrawing=e.onDrawing||new Function,this.onVertexAdd=e.onVertexAdd||new Function,this.drawType=i,this.latlngs=e.latlngs||[],this._map.setCursor("draw"),this.tempPoint=new M.CircleMarker([0,0],{weight:1,radius:5,color:"#3388ff",fillColor:"#fff",fillOpacity:1}).addTo(this._map),this.tooltip=new M.Tooltip({offset:[10,-10]}).setContent("点击开始绘制"),M.Handler.prototype.enable.call(this),this},disable(){return this._map.setCursor(),this.latlngs=[],this.removeHooks(),this.geometry=null,this._map.closeTooltip(this.tooltip),this._map.removeLayer(this.tempPoint),M.Handler.prototype.disable.call(this),this}}),hs={en_US:{home:"Go Home",capture:"Screen Capture",center:"View Full",north:"Move North",south:"Move South",east:"Move East",west:"Move West",zoomIn:"Zoom In",zoomOut:"Zoom Out",zoom:"Zoom to this level",dragZoom:"Drag to zoom",more:"More",draw:"Plot",layer:"Layer Manager",showEagle:"Show Eagle Map",hideEagle:"Hide Eagle Map",coordinate:"Coordinate",lng:"Longitude",lat:"Latitude",zoomLevel:"Zoom Level"},zh_CN:{home:"回到初始位置",capture:"截屏",center:"查看全图",north:"向上平移",south:"向下平移",east:"向右平移",west:"向左平移",zoomIn:"放大一级",zoomOut:"缩小一级",zoom:"缩放到此级别",dragZoom:"拖动缩放",more:"更多",draw:"标绘",layer:"图层管理",showEagle:"显示鹰眼图",hideEagle:"隐藏鹰眼图",coordinate:"坐标",lng:"经度",lat:"纬度",zoomLevel:"层级"}},Ae=M.Control.extend({options:{position:"bottomleft",coordinateUnit:"decimal"},initialize(i){M.setOptions(this,i),this.lastTime=+new Date,this.frames=0,M.Control.prototype.initialize.call(this,this.options)},onAdd(i){this.map=i,this.lang=i.lang,this.langDic=hs[this.lang],this._container=M.DomUtil.create("div",`${i.clsPrefix}-statusbar`),this.zoom=i.getZoom();const e=i.getCenter();return this.lng=e.lng,this.lat=e.lat,this._latlngContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._levelContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._fpsContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._latlngContainer.innerHTML=`<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`,this._levelContainer.innerHTML=`<b>${this.langDic.zoomLevel}:</b>${this.zoom+1}`,this.initEvt(),this._container},initEvt(){this.map.on("mousemove",i=>{this.lat=i.latlng.lat,this.lng=i.latlng.lng,this._latlngContainer.innerHTML=`<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`}),this.map.on("zoomend",()=>{this.zoom=this.map.getZoom(),this._levelContainer.innerHTML=`<b>${this.langDic.zoomLevel}:</b>${this.zoom+1}`}),this.calcFPS()},getCoordinate(i){switch(this.options.coordinateUnit){case"decimal":return i.toFixed(6);case"radian":return(i*Math.PI/180).toFixed(10);case"degrees":return this._formatDeg(i)}},_formatDeg(i){const e=parseFloat(i),n=parseInt(e);let o=parseInt((e-n)*60),r=(e-n)*3600-o*60;return n+"°"+o+"′"+r.toFixed(2)+"″"},calcFPS(){if(this.frames++,this.frames>=30){const i=Date.now()-this.lastTime,e=Math.round(1e3/(i/this.frames));this._fpsContainer&&(this.frames=0,this.lastTime=Date.now(),this._fpsContainer.innerHTML=`<b>FPS:</b><span>${e}</span>`)}requestAnimationFrame(this.calcFPS.bind(this))}}),Te=M.Control.extend({includes:M.Evented?M.Evented.prototype:M.Mixin.Events,options:{position:"bottomright",toggleDisplay:!0,zoomLevelOffset:5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:100,height:100,collapsedWidth:22,collapsedHeight:22,aimingRectOptions:{color:"#ff7800",weight:1,interactive:!1},shadowRectOptions:{color:"#000000",weight:1,interactive:!1,opacity:0,fillOpacity:0},mapOptions:{}},initialize(i,e){M.Util.setOptions(this,e),this.options.aimingRectOptions.interactive=!1,this.options.shadowRectOptions.interactive=!1,this._layer=i},onAdd(i){this._mainMap=i,this.lang=i.options.lang??this.options.lang??"zh_CN",this.langDic=hs[this.lang],this._container=M.DomUtil.create("div","leaflet-control-eaglemap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",M.DomEvent.disableClickPropagation(this._container),M.DomEvent.on(this._container,"mousewheel",M.DomEvent.stopPropagation);let e={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:i.options.crs};return e=M.Util.extend(this.options.mapOptions,e),this._eagleMap=new M.Map(this._container,e),this._layer instanceof M.Layer&&this._eagleMap.addLayer(this._layer),this._mainMapMoving=!1,this._eagleMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._eagleMap.whenReady(M.Util.bind(function(){this._aimingRect=new M.Rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._eagleMap),this._shadowRect=new M.Rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._eagleMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._eagleMap.on("movestart",this._onEagleMapMoveStarted,this),this._eagleMap.on("move",this._onEagleMapMoving,this),this._eagleMap.on("moveend",this._onEagleMapMoved,this)},this)),this._container},addTo(i){M.Control.prototype.addTo.call(this,i);const e=this.options.centerFixed||this._mainMap.getCenter();return this._eagleMap.setView(e,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove(i){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._eagleMap.off("moveend",this._onEagleMapMoved,this),this._eagleMap.removeLayer(this._layer)},changeLayer(i){this._eagleMap.removeLayer(this._layer),this._layer=i,this._eagleMap.addLayer(this._layer)},_addToggleButton(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-eaglemap-toggle-display leaflet-control-eaglemap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText(){return this.options.minimized?this.langDic.showEagle:this.langDic.hideEagle},_createButton(i,e,n,o,r,l){const u=M.DomUtil.create("a",n,o);u.innerHTML=i,u.href="#",u.title=e;const c=M.DomEvent.stopPropagation;return M.DomEvent.on(u,"click",c).on(u,"mousedown",c).on(u,"dblclick",c).on(u,"click",M.DomEvent.preventDefault).on(u,"click",r,l),u},_toggleDisplayButtonClicked(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay(i){i!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved(i){if(this._eagleMapMoving)this._eagleMapMoving=!1;else{const e=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._eagleMap.setView(e,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving(i){this._aimingRect.setBounds(this._mainMap.getBounds())},_onEagleMapMoveStarted(i){if(!this.options.centerFixed){const e=this._aimingRect.getBounds(),n=this._eagleMap.latLngToContainerPoint(e.getSouthWest()),o=this._eagleMap.latLngToContainerPoint(e.getNorthEast());this._lastAimingRectPosition={sw:n,ne:o}}},_onEagleMapMoving(i){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new M.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onEagleMapMoved(i){this._mainMapMoving?this._mainMapMoving=!1:(this._eagleMapMoving=!0,this._mainMap.setView(this._eagleMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed(){const i=this.options.zoomLevelFixed;return this._isDefined(i)&&this._isInteger(i)},_decideZoom(i){if(this._isZoomLevelFixed())return i?this.options.zoomLevelFixed:this._mainMap.getZoom();if(i)return this._mainMap.getZoom()-this.options.zoomLevelOffset;{const e=this._eagleMap.getZoom()-this._mainMap.getZoom(),n=this._eagleMap.getZoom()+this.options.zoomLevelOffset;let o;return e<this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._eagleMap.getMinZoom()+this.options.zoomLevelOffset?this._eagleMap.getZoom()>this._lastEagleMapZoom?(o=this._mainMap.getZoom()+1,this._eagleMap.setZoom(this._eagleMap.getZoom()-1)):o=this._mainMap.getZoom():o=n,this._lastEagleMapZoom=this._eagleMap.getZoom(),o}},_decideMinimized(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._eagleMap.getBounds()):this._minimized},_isInteger(i){return typeof i=="number"},_isDefined(i){return typeof i<"u"},_onToggle(){M.Util.requestAnimFrame(function(){M.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),M.Browser.any3d||M.Util.requestAnimFrame(this._fireToggleEvents,this)},this)},_fireToggleEvents(){M.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);const i={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",i),this.fire("toggle",i)}}),ls=L.FeatureGroup.extend({initialize(i,e){this.markers=[],L.Util.setOptions(this,e);const n=typeof this.options.cssClass=="string"?this.options.cssClass:"vertex-marker",o=this.options.iconSize!==void 0?this.options.iconSize:[24,24],r=this.options.iconAnchor!==void 0?this.options.iconAnchor:[12,12],l=this.options.textFn,u=typeof this.options.firstVertex=="boolean"?this.options.firstVertex:!0,c=typeof this.options.lastVertex=="boolean"?this.options.lastVertex:!0;this.dragable=this.options.dragable||!1;let d=i;typeof i.getLatLngs=="function"&&(d=i.getLatLngs());for(let y=u?0:1,b=d.length-(c?0:1);y<b;y++){const A=d[y];var _=typeof l=="function"?l.call(this,y,A):l||"",v=L.divIcon({className:n,html:_,iconSize:o,iconAnchor:r}),p=L.marker(A,{icon:v,pmIgnore:!0,index:y});this.markers.push(p)}L.FeatureGroup.prototype.initialize.call(this,this.markers)},onAdd(i){this.markers.forEach(e=>{L.FeatureGroup.prototype.addLayer.call(this,e)}),L.FeatureGroup.prototype.onAdd.call(this,i)},onRemove(i){this.markers.forEach(e=>{L.FeatureGroup.prototype.removeLayer.call(this,e)}),L.FeatureGroup.prototype.onRemove.call(this,i)}});class Gi extends L[L.Layer?"Layer":"Class"]{constructor(e,n,o,r,l){super(),L.setOptions(this,l),this._latlng=e,this._measurement=n,this._title=o,this._rotation=r,this.MEASUREDDATA=null,this.tempAcCurrDrawPoints=null}addTo(e){return e.addLayer(this),this}onAdd(e){this._map=e;const n=this.getPane?this.getPane():e.getPanes().markerPane,o=this._element=L.DomUtil.create("div","leaflet-zoom-animated leaflet-measure-path-measurement",n),r=L.DomUtil.create("div","",o);r.title=this._title,r.innerHTML=this._measurement,e.on("zoomanim",this._animateZoom,this),this._setPosition()}onRemove(e){e.off("zoomanim",this._animateZoom,this),(this.getPane?this.getPane():e.getPanes().markerPane).removeChild(this._element),this._map=null}_setPosition(){L.DomUtil.setPosition(this._element,this._map.latLngToLayerPoint(this._latlng)),this._element.style.transform+=" rotate("+this._rotation+"rad)"}_animateZoom(e){const n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();L.DomUtil.setPosition(this._element,n),this._element.style.transform+=" rotate("+this._rotation+"rad)"}}var gn={exports:{}},vn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},yn={exports:{}},No=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},Bo=No,Ro=Array.prototype.concat,Do=Array.prototype.slice,Mn=yn.exports=function(e){for(var n=[],o=0,r=e.length;o<r;o++){var l=e[o];Bo(l)?n=Ro.call(n,Do.call(l)):n.push(l)}return n};Mn.wrap=function(i){return function(){return i(Mn(arguments))}};var Zo=yn.exports,Ui=vn,ji=Zo,xn=Object.hasOwnProperty,wn=Object.create(null);for(var us in Ui)xn.call(Ui,us)&&(wn[Ui[us]]=us);var zt=gn.exports={to:{},get:{}};zt.get=function(i){var e=i.substring(0,3).toLowerCase(),n,o;switch(e){case"hsl":n=zt.get.hsl(i),o="hsl";break;case"hwb":n=zt.get.hwb(i),o="hwb";break;default:n=zt.get.rgb(i),o="rgb";break}return n?{model:o,value:n}:null},zt.get.rgb=function(i){if(!i)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,u=[0,0,0,1],c,d,_;if(c=i.match(n)){for(_=c[2],c=c[1],d=0;d<3;d++){var v=d*2;u[d]=parseInt(c.slice(v,v+2),16)}_&&(u[3]=parseInt(_,16)/255)}else if(c=i.match(e)){for(c=c[1],_=c[3],d=0;d<3;d++)u[d]=parseInt(c[d]+c[d],16);_&&(u[3]=parseInt(_+_,16)/255)}else if(c=i.match(o)){for(d=0;d<3;d++)u[d]=parseInt(c[d+1],0);c[4]&&(c[5]?u[3]=parseFloat(c[4])*.01:u[3]=parseFloat(c[4]))}else if(c=i.match(r)){for(d=0;d<3;d++)u[d]=Math.round(parseFloat(c[d+1])*2.55);c[4]&&(c[5]?u[3]=parseFloat(c[4])*.01:u[3]=parseFloat(c[4]))}else return(c=i.match(l))?c[1]==="transparent"?[0,0,0,0]:xn.call(Ui,c[1])?(u=Ui[c[1]],u[3]=1,u):null:null;for(d=0;d<3;d++)u[d]=oi(u[d],0,255);return u[3]=oi(u[3],0,1),u},zt.get.hsl=function(i){if(!i)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=i.match(e);if(n){var o=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,l=oi(parseFloat(n[2]),0,100),u=oi(parseFloat(n[3]),0,100),c=oi(isNaN(o)?1:o,0,1);return[r,l,u,c]}return null},zt.get.hwb=function(i){if(!i)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=i.match(e);if(n){var o=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,l=oi(parseFloat(n[2]),0,100),u=oi(parseFloat(n[3]),0,100),c=oi(isNaN(o)?1:o,0,1);return[r,l,u,c]}return null},zt.to.hex=function(){var i=ji(arguments);return"#"+Ce(i[0])+Ce(i[1])+Ce(i[2])+(i[3]<1?Ce(Math.round(i[3]*255)):"")},zt.to.rgb=function(){var i=ji(arguments);return i.length<4||i[3]===1?"rgb("+Math.round(i[0])+", "+Math.round(i[1])+", "+Math.round(i[2])+")":"rgba("+Math.round(i[0])+", "+Math.round(i[1])+", "+Math.round(i[2])+", "+i[3]+")"},zt.to.rgb.percent=function(){var i=ji(arguments),e=Math.round(i[0]/255*100),n=Math.round(i[1]/255*100),o=Math.round(i[2]/255*100);return i.length<4||i[3]===1?"rgb("+e+"%, "+n+"%, "+o+"%)":"rgba("+e+"%, "+n+"%, "+o+"%, "+i[3]+")"},zt.to.hsl=function(){var i=ji(arguments);return i.length<4||i[3]===1?"hsl("+i[0]+", "+i[1]+"%, "+i[2]+"%)":"hsla("+i[0]+", "+i[1]+"%, "+i[2]+"%, "+i[3]+")"},zt.to.hwb=function(){var i=ji(arguments),e="";return i.length>=4&&i[3]!==1&&(e=", "+i[3]),"hwb("+i[0]+", "+i[1]+"%, "+i[2]+"%"+e+")"},zt.to.keyword=function(i){return wn[i.slice(0,3)]};function oi(i,e,n){return Math.min(Math.max(e,i),n)}function Ce(i){var e=Math.round(i).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Fo=gn.exports;const Hi=vn,bn={};for(const i of Object.keys(Hi))bn[Hi[i]]=i;const I={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ln=I;for(const i of Object.keys(I)){if(!("channels"in I[i]))throw new Error("missing channels property: "+i);if(!("labels"in I[i]))throw new Error("missing channel labels property: "+i);if(I[i].labels.length!==I[i].channels)throw new Error("channel and label counts mismatch: "+i);const{channels:e,labels:n}=I[i];delete I[i].channels,delete I[i].labels,Object.defineProperty(I[i],"channels",{value:e}),Object.defineProperty(I[i],"labels",{value:n})}I.rgb.hsl=function(i){const e=i[0]/255,n=i[1]/255,o=i[2]/255,r=Math.min(e,n,o),l=Math.max(e,n,o),u=l-r;let c,d;l===r?c=0:e===l?c=(n-o)/u:n===l?c=2+(o-e)/u:o===l&&(c=4+(e-n)/u),c=Math.min(c*60,360),c<0&&(c+=360);const _=(r+l)/2;return l===r?d=0:_<=.5?d=u/(l+r):d=u/(2-l-r),[c,d*100,_*100]},I.rgb.hsv=function(i){let e,n,o,r,l;const u=i[0]/255,c=i[1]/255,d=i[2]/255,_=Math.max(u,c,d),v=_-Math.min(u,c,d),p=function(y){return(_-y)/6/v+1/2};return v===0?(r=0,l=0):(l=v/_,e=p(u),n=p(c),o=p(d),u===_?r=o-n:c===_?r=1/3+e-o:d===_&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[r*360,l*100,_*100]},I.rgb.hwb=function(i){const e=i[0],n=i[1];let o=i[2];const r=I.rgb.hsl(i)[0],l=1/255*Math.min(e,Math.min(n,o));return o=1-1/255*Math.max(e,Math.max(n,o)),[r,l*100,o*100]},I.rgb.cmyk=function(i){const e=i[0]/255,n=i[1]/255,o=i[2]/255,r=Math.min(1-e,1-n,1-o),l=(1-e-r)/(1-r)||0,u=(1-n-r)/(1-r)||0,c=(1-o-r)/(1-r)||0;return[l*100,u*100,c*100,r*100]};function qo(i,e){return(i[0]-e[0])**2+(i[1]-e[1])**2+(i[2]-e[2])**2}I.rgb.keyword=function(i){const e=bn[i];if(e)return e;let n=1/0,o;for(const r of Object.keys(Hi)){const l=Hi[r],u=qo(i,l);u<n&&(n=u,o=r)}return o},I.keyword.rgb=function(i){return Hi[i]},I.rgb.xyz=function(i){let e=i[0]/255,n=i[1]/255,o=i[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const r=e*.4124+n*.3576+o*.1805,l=e*.2126+n*.7152+o*.0722,u=e*.0193+n*.1192+o*.9505;return[r*100,l*100,u*100]},I.rgb.lab=function(i){const e=I.rgb.xyz(i);let n=e[0],o=e[1],r=e[2];n/=95.047,o/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const l=116*o-16,u=500*(n-o),c=200*(o-r);return[l,u,c]},I.hsl.rgb=function(i){const e=i[0]/360,n=i[1]/100,o=i[2]/100;let r,l,u;if(n===0)return u=o*255,[u,u,u];o<.5?r=o*(1+n):r=o+n-o*n;const c=2*o-r,d=[0,0,0];for(let _=0;_<3;_++)l=e+1/3*-(_-1),l<0&&l++,l>1&&l--,6*l<1?u=c+(r-c)*6*l:2*l<1?u=r:3*l<2?u=c+(r-c)*(2/3-l)*6:u=c,d[_]=u*255;return d},I.hsl.hsv=function(i){const e=i[0];let n=i[1]/100,o=i[2]/100,r=n;const l=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,r*=l<=1?l:2-l;const u=(o+n)/2,c=o===0?2*r/(l+r):2*n/(o+n);return[e,c*100,u*100]},I.hsv.rgb=function(i){const e=i[0]/60,n=i[1]/100;let o=i[2]/100;const r=Math.floor(e)%6,l=e-Math.floor(e),u=255*o*(1-n),c=255*o*(1-n*l),d=255*o*(1-n*(1-l));switch(o*=255,r){case 0:return[o,d,u];case 1:return[c,o,u];case 2:return[u,o,d];case 3:return[u,c,o];case 4:return[d,u,o];case 5:return[o,u,c]}},I.hsv.hsl=function(i){const e=i[0],n=i[1]/100,o=i[2]/100,r=Math.max(o,.01);let l,u;u=(2-n)*o;const c=(2-n)*r;return l=n*r,l/=c<=1?c:2-c,l=l||0,u/=2,[e,l*100,u*100]},I.hwb.rgb=function(i){const e=i[0]/360;let n=i[1]/100,o=i[2]/100;const r=n+o;let l;r>1&&(n/=r,o/=r);const u=Math.floor(6*e),c=1-o;l=6*e-u,u&1&&(l=1-l);const d=n+l*(c-n);let _,v,p;switch(u){default:case 6:case 0:_=c,v=d,p=n;break;case 1:_=d,v=c,p=n;break;case 2:_=n,v=c,p=d;break;case 3:_=n,v=d,p=c;break;case 4:_=d,v=n,p=c;break;case 5:_=c,v=n,p=d;break}return[_*255,v*255,p*255]},I.cmyk.rgb=function(i){const e=i[0]/100,n=i[1]/100,o=i[2]/100,r=i[3]/100,l=1-Math.min(1,e*(1-r)+r),u=1-Math.min(1,n*(1-r)+r),c=1-Math.min(1,o*(1-r)+r);return[l*255,u*255,c*255]},I.xyz.rgb=function(i){const e=i[0]/100,n=i[1]/100,o=i[2]/100;let r,l,u;return r=e*3.2406+n*-1.5372+o*-.4986,l=e*-.9689+n*1.8758+o*.0415,u=e*.0557+n*-.204+o*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,r=Math.min(Math.max(0,r),1),l=Math.min(Math.max(0,l),1),u=Math.min(Math.max(0,u),1),[r*255,l*255,u*255]},I.xyz.lab=function(i){let e=i[0],n=i[1],o=i[2];e/=95.047,n/=100,o/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const r=116*n-16,l=500*(e-n),u=200*(n-o);return[r,l,u]},I.lab.xyz=function(i){const e=i[0],n=i[1],o=i[2];let r,l,u;l=(e+16)/116,r=n/500+l,u=l-o/200;const c=l**3,d=r**3,_=u**3;return l=c>.008856?c:(l-16/116)/7.787,r=d>.008856?d:(r-16/116)/7.787,u=_>.008856?_:(u-16/116)/7.787,r*=95.047,l*=100,u*=108.883,[r,l,u]},I.lab.lch=function(i){const e=i[0],n=i[1],o=i[2];let r;r=Math.atan2(o,n)*360/2/Math.PI,r<0&&(r+=360);const u=Math.sqrt(n*n+o*o);return[e,u,r]},I.lch.lab=function(i){const e=i[0],n=i[1],r=i[2]/360*2*Math.PI,l=n*Math.cos(r),u=n*Math.sin(r);return[e,l,u]},I.rgb.ansi16=function(i,e=null){const[n,o,r]=i;let l=e===null?I.rgb.hsv(i)[2]:e;if(l=Math.round(l/50),l===0)return 30;let u=30+(Math.round(r/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return l===2&&(u+=60),u},I.hsv.ansi16=function(i){return I.rgb.ansi16(I.hsv.rgb(i),i[2])},I.rgb.ansi256=function(i){const e=i[0],n=i[1],o=i[2];return e===n&&n===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},I.ansi16.rgb=function(i){let e=i%10;if(e===0||e===7)return i>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=(~~(i>50)+1)*.5,o=(e&1)*n*255,r=(e>>1&1)*n*255,l=(e>>2&1)*n*255;return[o,r,l]},I.ansi256.rgb=function(i){if(i>=232){const l=(i-232)*10+8;return[l,l,l]}i-=16;let e;const n=Math.floor(i/36)/5*255,o=Math.floor((e=i%36)/6)/5*255,r=e%6/5*255;return[n,o,r]},I.rgb.hex=function(i){const n=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n},I.hex.rgb=function(i){const e=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(c=>c+c).join(""));const o=parseInt(n,16),r=o>>16&255,l=o>>8&255,u=o&255;return[r,l,u]},I.rgb.hcg=function(i){const e=i[0]/255,n=i[1]/255,o=i[2]/255,r=Math.max(Math.max(e,n),o),l=Math.min(Math.min(e,n),o),u=r-l;let c,d;return u<1?c=l/(1-u):c=0,u<=0?d=0:r===e?d=(n-o)/u%6:r===n?d=2+(o-e)/u:d=4+(e-n)/u,d/=6,d%=1,[d*360,u*100,c*100]},I.hsl.hcg=function(i){const e=i[1]/100,n=i[2]/100,o=n<.5?2*e*n:2*e*(1-n);let r=0;return o<1&&(r=(n-.5*o)/(1-o)),[i[0],o*100,r*100]},I.hsv.hcg=function(i){const e=i[1]/100,n=i[2]/100,o=e*n;let r=0;return o<1&&(r=(n-o)/(1-o)),[i[0],o*100,r*100]},I.hcg.rgb=function(i){const e=i[0]/360,n=i[1]/100,o=i[2]/100;if(n===0)return[o*255,o*255,o*255];const r=[0,0,0],l=e%1*6,u=l%1,c=1-u;let d=0;switch(Math.floor(l)){case 0:r[0]=1,r[1]=u,r[2]=0;break;case 1:r[0]=c,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=u;break;case 3:r[0]=0,r[1]=c,r[2]=1;break;case 4:r[0]=u,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=c}return d=(1-n)*o,[(n*r[0]+d)*255,(n*r[1]+d)*255,(n*r[2]+d)*255]},I.hcg.hsv=function(i){const e=i[1]/100,n=i[2]/100,o=e+n*(1-e);let r=0;return o>0&&(r=e/o),[i[0],r*100,o*100]},I.hcg.hsl=function(i){const e=i[1]/100,o=i[2]/100*(1-e)+.5*e;let r=0;return o>0&&o<.5?r=e/(2*o):o>=.5&&o<1&&(r=e/(2*(1-o))),[i[0],r*100,o*100]},I.hcg.hwb=function(i){const e=i[1]/100,n=i[2]/100,o=e+n*(1-e);return[i[0],(o-e)*100,(1-o)*100]},I.hwb.hcg=function(i){const e=i[1]/100,o=1-i[2]/100,r=o-e;let l=0;return r<1&&(l=(o-r)/(1-r)),[i[0],r*100,l*100]},I.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},I.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},I.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},I.gray.hsl=function(i){return[0,0,i[0]]},I.gray.hsv=I.gray.hsl,I.gray.hwb=function(i){return[0,100,i[0]]},I.gray.cmyk=function(i){return[0,0,0,i[0]]},I.gray.lab=function(i){return[i[0],0,0]},I.gray.hex=function(i){const e=Math.round(i[0]/100*255)&255,o=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(o.length)+o},I.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]};const Ee=Ln;function Go(){const i={},e=Object.keys(Ee);for(let n=e.length,o=0;o<n;o++)i[e[o]]={distance:-1,parent:null};return i}function Uo(i){const e=Go(),n=[i];for(e[i].distance=0;n.length;){const o=n.pop(),r=Object.keys(Ee[o]);for(let l=r.length,u=0;u<l;u++){const c=r[u],d=e[c];d.distance===-1&&(d.distance=e[o].distance+1,d.parent=o,n.unshift(c))}}return e}function jo(i,e){return function(n){return e(i(n))}}function Ho(i,e){const n=[e[i].parent,i];let o=Ee[e[i].parent][i],r=e[i].parent;for(;e[r].parent;)n.unshift(e[r].parent),o=jo(Ee[e[r].parent][r],o),r=e[r].parent;return o.conversion=n,o}var Wo=function(i){const e=Uo(i),n={},o=Object.keys(e);for(let r=o.length,l=0;l<r;l++){const u=o[l];e[u].parent!==null&&(n[u]=Ho(u,e))}return n};const cs=Ln,$o=Wo,xi={},Vo=Object.keys(cs);function Qo(i){const e=function(...n){const o=n[0];return o==null?o:(o.length>1&&(n=o),i(n))};return"conversion"in i&&(e.conversion=i.conversion),e}function Xo(i){const e=function(...n){const o=n[0];if(o==null)return o;o.length>1&&(n=o);const r=i(n);if(typeof r=="object")for(let l=r.length,u=0;u<l;u++)r[u]=Math.round(r[u]);return r};return"conversion"in i&&(e.conversion=i.conversion),e}Vo.forEach(i=>{xi[i]={},Object.defineProperty(xi[i],"channels",{value:cs[i].channels}),Object.defineProperty(xi[i],"labels",{value:cs[i].labels});const e=$o(i);Object.keys(e).forEach(o=>{const r=e[o];xi[i][o]=Xo(r),xi[i][o].raw=Qo(r)})});var Ko=xi;const wi=Fo,It=Ko,Pn=["keyword","gray","hex"],fs={};for(const i of Object.keys(It))fs[[...It[i].labels].sort().join("")]=i;const Se={};function pt(i,e){if(!(this instanceof pt))return new pt(i,e);if(e&&e in Pn&&(e=null),e&&!(e in It))throw new Error("Unknown model: "+e);let n,o;if(i==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(i instanceof pt)this.model=i.model,this.color=[...i.color],this.valpha=i.valpha;else if(typeof i=="string"){const r=wi.get(i);if(r===null)throw new Error("Unable to parse color from string: "+i);this.model=r.model,o=It[this.model].channels,this.color=r.value.slice(0,o),this.valpha=typeof r.value[o]=="number"?r.value[o]:1}else if(i.length>0){this.model=e||"rgb",o=It[this.model].channels;const r=Array.prototype.slice.call(i,0,o);this.color=ds(r,o),this.valpha=typeof i[o]=="number"?i[o]:1}else if(typeof i=="number")this.model="rgb",this.color=[i>>16&255,i>>8&255,i&255],this.valpha=1;else{this.valpha=1;const r=Object.keys(i);"alpha"in i&&(r.splice(r.indexOf("alpha"),1),this.valpha=typeof i.alpha=="number"?i.alpha:0);const l=r.sort().join("");if(!(l in fs))throw new Error("Unable to parse color from object: "+JSON.stringify(i));this.model=fs[l];const{labels:u}=It[this.model],c=[];for(n=0;n<u.length;n++)c.push(i[u[n]]);this.color=ds(c)}if(Se[this.model])for(o=It[this.model].channels,n=0;n<o;n++){const r=Se[this.model][n];r&&(this.color[n]=r(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}pt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(i){let e=this.model in wi.to?this:this.rgb();e=e.round(typeof i=="number"?i:1);const n=e.valpha===1?e.color:[...e.color,this.valpha];return wi.to[e.model](n)},percentString(i){const e=this.rgb().round(typeof i=="number"?i:1),n=e.valpha===1?e.color:[...e.color,this.valpha];return wi.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const i={},{channels:e}=It[this.model],{labels:n}=It[this.model];for(let o=0;o<e;o++)i[n[o]]=this.color[o];return this.valpha!==1&&(i.alpha=this.valpha),i},unitArray(){const i=this.rgb().color;return i[0]/=255,i[1]/=255,i[2]/=255,this.valpha!==1&&i.push(this.valpha),i},unitObject(){const i=this.rgb().object();return i.r/=255,i.g/=255,i.b/=255,this.valpha!==1&&(i.alpha=this.valpha),i},round(i){return i=Math.max(i||0,0),new pt([...this.color.map(Yo(i)),this.valpha],this.model)},alpha(i){return i!==void 0?new pt([...this.color,Math.max(0,Math.min(1,i))],this.model):this.valpha},red:at("rgb",0,ft(255)),green:at("rgb",1,ft(255)),blue:at("rgb",2,ft(255)),hue:at(["hsl","hsv","hsl","hwb","hcg"],0,i=>(i%360+360)%360),saturationl:at("hsl",1,ft(100)),lightness:at("hsl",2,ft(100)),saturationv:at("hsv",1,ft(100)),value:at("hsv",2,ft(100)),chroma:at("hcg",1,ft(100)),gray:at("hcg",2,ft(100)),white:at("hwb",1,ft(100)),wblack:at("hwb",2,ft(100)),cyan:at("cmyk",0,ft(100)),magenta:at("cmyk",1,ft(100)),yellow:at("cmyk",2,ft(100)),black:at("cmyk",3,ft(100)),x:at("xyz",0,ft(95.047)),y:at("xyz",1,ft(100)),z:at("xyz",2,ft(108.833)),l:at("lab",0,ft(100)),a:at("lab",1),b:at("lab",2),keyword(i){return i!==void 0?new pt(i):It[this.model].keyword(this.color)},hex(i){return i!==void 0?new pt(i):wi.to.hex(this.rgb().round().color)},hexa(i){if(i!==void 0)return new pt(i);const e=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),wi.to.hex(e)+n},rgbNumber(){const i=this.rgb().color;return(i[0]&255)<<16|(i[1]&255)<<8|i[2]&255},luminosity(){const i=this.rgb().color,e=[];for(const[n,o]of i.entries()){const r=o/255;e[n]=r<=.04045?r/12.92:((r+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(i){const e=this.luminosity(),n=i.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(i){const e=this.contrast(i);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const i=this.rgb().color;return(i[0]*2126+i[1]*7152+i[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const i=this.rgb();for(let e=0;e<3;e++)i.color[e]=255-i.color[e];return i},lighten(i){const e=this.hsl();return e.color[2]+=e.color[2]*i,e},darken(i){const e=this.hsl();return e.color[2]-=e.color[2]*i,e},saturate(i){const e=this.hsl();return e.color[1]+=e.color[1]*i,e},desaturate(i){const e=this.hsl();return e.color[1]-=e.color[1]*i,e},whiten(i){const e=this.hwb();return e.color[1]+=e.color[1]*i,e},blacken(i){const e=this.hwb();return e.color[2]+=e.color[2]*i,e},grayscale(){const i=this.rgb().color,e=i[0]*.3+i[1]*.59+i[2]*.11;return pt.rgb(e,e,e)},fade(i){return this.alpha(this.valpha-this.valpha*i)},opaquer(i){return this.alpha(this.valpha+this.valpha*i)},rotate(i){const e=this.hsl();let n=e.color[0];return n=(n+i)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(i,e){if(!i||!i.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof i);const n=i.rgb(),o=this.rgb(),r=e===void 0?.5:e,l=2*r-1,u=n.alpha()-o.alpha(),c=((l*u===-1?l:(l+u)/(1+l*u))+1)/2,d=1-c;return pt.rgb(c*n.red()+d*o.red(),c*n.green()+d*o.green(),c*n.blue()+d*o.blue(),n.alpha()*r+o.alpha()*(1-r))}};for(const i of Object.keys(It)){if(Pn.includes(i))continue;const{channels:e}=It[i];pt.prototype[i]=function(...n){return this.model===i?new pt(this):n.length>0?new pt(n,i):new pt([...tr(It[this.model][i].raw(this.color)),this.valpha],i)},pt[i]=function(...n){let o=n[0];return typeof o=="number"&&(o=ds(n,e)),new pt(o,i)}}function Jo(i,e){return Number(i.toFixed(e))}function Yo(i){return function(e){return Jo(e,i)}}function at(i,e,n){i=Array.isArray(i)?i:[i];for(const o of i)(Se[o]||(Se[o]=[]))[e]=n;return i=i[0],function(o){let r;return o!==void 0?(n&&(o=n(o)),r=this[i](),r.color[e]=o,r):(r=this[i]().color[e],n&&(r=n(r)),r)}}function ft(i){return function(e){return Math.max(0,Math.min(i,e))}}function tr(i){return Array.isArray(i)?i:[i]}function ds(i,e){for(let n=0;n<e;n++)typeof i[n]!="number"&&(i[n]=0);return i}var ir=pt;const An=fn(ir);function Tn(i,e,n){i._leaflet_pos=e,M.DomUtil.setTransform(i,e,n)}M.Map.addInitHook("addHandler","drawHandler",pn),M.Map.addInitHook(function(){this.options.eagleMapControl&&(this.eagleMapControl=this.options.eagleMapControl instanceof Te?this.options.eagleMapControl:new Te(this.options.eagleMapControl),this.addControl(this.eagleMapControl)),this.options.statusBarControl&&(this.statusBarControl=this.options.statusBar instanceof Ae?this.options.statusBarControl:new Ae(this.options.statusBarControl),this.addControl(this.statusBarControl)),this.options.scaleControl&&(this.scaleControl=this.options.scale instanceof M.Control.Scale?this.options.scaleControl:new M.Control.Scale(Object.assign({position:"bottomleft",maxWidth:100,metric:!0,imperial:!1},this.options.scaleControl)),this.addControl(this.scaleControl))}),M.TileLayer.mergeOptions({errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAoNSURBVHhe7drLgquqFoXh8/5PtdvVTz/t9Ku9DsgEQSdEczGxxv+1Vikiwhxeqtb//gHCCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKR9aQB+J/ZD7fd2vUQ3b+fQ783vcaV77s/5/b1FG8f/8BQp+sYA/F5//osuN9swG+waywf+XMdlsbXdoW6XaUzbLnrPFKVcvZJ1fB5fGABbbq8EH63/zWUtVf+56QtdrOvz+L4AvKH+rcv7x+2u/9zzK/RG9/b6/3le6mj3wnyBrwvA6+t/c/mfq/5v16n02lf9/fXfu9bb9brxmyPYldHv8m0BeLj+e9+t+0tie/3fe4e+pP7+u1xtw0jnnN369ybqVfWfR77xQ/rE9f/JAHi/rXis/n+nBRsd9BNvZx5rF+2v/zsGF7PZi+o/JDXe0e2noF//uZOt1X/u+v9gALzV2l//qfbNcgnKWnZVR+TGr6r/l/T3VP3Hqr+U9/OmrTVdjq2ZzTvKsaeu/88FYLla0b76j0+QslyLd+EoHzJQ92atvZM/wru+3R6q/5/LXPWzpq01bbeFj4qp5fCjOLUIyrHnrv+PBcCrj+31f6/2g1IOV3vZqcyvuNa4ad79nNjDrmV/Xdh7YWJjCiWd2FvMaqLCJVUTUoTj8uZmHKv6Hz5Hi7lVtUQnr/9PBWBQ/yuxhOfmzVr5tR/U9bziBG1unyrGPW674emHepOQpOnK47+EwVaTYUJcwjd3Pq9Xnza6NLg5OjFm6V9ONZdpD73X1+T1fyqfCUBV0EVv6cM65eaVuMrd4spdufXnnds5wTMZyOffXxahzgp73yi3/3A7j0+n+gaQ+S/6wZ36n2/pdifxZq668a/uN17/5/KRAAzqf7p9NcKit+XZve2bvIjtMmb5PPWufIKwMaz29M9JOJO1yDb934H5Xmkbtli9di1rqx6Yia846cCqqCvePLdNww/+LX26+Fj6qYd4McsBBssxntAnAuCti02lV7K5+bQK49qvGwfrhfFOXTbmk9el1g7IKcIXWQ11WVvNhS3b206//t1L8CY6W1xl/4azHOMZfSAAXhEOlsVr3rNYuuUhfld5a3Xy9jmQt+eGb7C6uFVthXf1+DB0a84Gtpg9d+tgonuf0lG49dizpuKO5WyOD4BXhYNl8Zr7Sn2GxXKWvtdT3txpPdm6xp2+9uvV1ovqfz4+Fn2o+upawyHxnh+O6uThJ/5WKsThT9T/8QHINVLP2yvq3/qYOvHWPne0PMngBKnLe58cs94p9uvVlrvdu9rOnJbjf53STnd5a1lxHgyx194YT+boAHj15q5VMijPhdQytVsf1e1nfILwzbu5lu0q8mVMH5DxZrm9h6JXW+52u4Jm9sorXNu0Or6MNn9HxydB/PXp6I8g9rSYOu2N8WwODoC3WjaVz9V/EFbHelge5pdDtOsEI6WgbAy5Y++q7unVlru9zGj6Q27MXPx5suihPn5Z6Hn8RcxufCTESFibWm+Mp3NsAMpqVXNqU/l0/dfqPnMnXi8Pn6C1PsUzHafBr+fDrTk7UWhtu4tVB+7xSXzJiQ+sqcGKszSDvk7m0ADMq2UbAptKZ5Lzrs40h0Xrvl2UI6/5X17/r6n/Uv3p1WByWP3bxtB6qmGz/oVN4B7vCbf8+H9H81/iBivz1Lx9iSMD8Fj9e7uC4d5SlElVmrUX1P98orqTLR0v30GydF3ry3JrbjQJ076f+P/A5x8Xw0x/gBu89He4YzmpAwPwyvrPJebvnfdHvXXaUqZD80naYWzpuHN1dui0OX1yWnrdmhtNke3LR6yPzw2y+PUweusvnp63r3JcAOq1zZwVjM/fuACjxS1r4O+NtTOvbm+dnlvH+Eue6fDYQTuILR13ri4fWovd+F0Opmg5QdZ0Pj7+HnR9rlaVCDsqsq57U382hwXAm7e8gmGWy//9CmKbweKW4zoltqoit5lfU5tUxe/8lnNDx7nJfHXpd+2LcYf6Sy8wnS7tPyY5M7ScoFX918INP7/zLwaQ1atgY/EX5oSOCkCet1AwzSeW4179r8tnlvfFM9nfg6N1nXZq6q6q+Mej21D/ocmmP0jtHeuq/bD+V1Ig5gVqLtP6di/9lN4eAJvO1TK30tO2vH7mJXTmOe9aL2fZU46rtgRT+KaWUThTZD9tUdd+twIGI8/qcNdj9n95E4zuBmvrEeyr/yHrfONQzuC9AWgrsOa+Xha2ZFFoN5ufGu1q9u/LTdWa9LkXhPMP1Glpan/92jMrI/drZO4oXUB4AnTrPpsnMWZkZPpotqbz6echPc86+jv1f1wAxhW/0A/OpF6A6eXZtocdXm02TbayhMWKnY/NL+V9VXQHQoas/Rbb+qw03e8++q6/VP/vDkC4LW2q+JXp7zp225ktbpf1G3SozXsnmr/17sYhVVBdO/drP/EeObVwEZv6aXifCq6p96Z7u4bmQfqoNIY/Vf+HfQS/R34lfaCmjH0KLNhO6/+B7q2fJdt7IKv/XU+cjjzZf6r+Tx6AsCrhEWP/fIePFC0OdPYAAE8hAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAYf/+/R9s8HzCwqXCjgAAAABJRU5ErkJggg=="}),M.Marker.addInitHook(function(){let e=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;e&&(e=e[0]+"px "+e[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||e||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",n=>{n.target._applyRotation()})}),M.Marker.mergeOptions({minZoom:0,maxZoom:16,hideOnMinZoom:!0,minificationScale:.6}),M.Marker.include({_setPos(i){this._icon.style.display="initial";let e;const{minZoom:n,maxZoom:o,hideOnMinZoom:r,minificationScale:l}=this.options;if(n&&o&&o-n>0){const u=parseFloat(((1-l)/(o-n)).toFixed(2)),{iconAnchor:c,iconSize:d}=this.getIcon().options;c?this._map._zoom>=o?(this._icon.style.marginLeft=-c[0],this._icon.style.marginTop=-c[1]):this._map._zoom>n&this._map._zoom<o?(e=1-(o-this._map._zoom)*u,this._icon.style.marginLeft=-c[0]*e,this._icon.style.marginTop=-c[1]*e):this._map._zoom<=n&&r?this._icon.style.display="none":this._map._zoom<=n&&!r&&(e=l,this._icon.style.marginLeft=-c[0],this._icon.style.marginTop=-c[1]):d&&(this._map._zoom>=o?(this._icon.style.marginLeft=-d[0]/2,this._icon.style.marginTop=-d[1]/2):this._map._zoom>n&this._map._zoom<o?(e=1-(o-this._map._zoom)*u,this._icon.style.marginLeft=-d[0]/2*e,this._icon.style.marginTop=-d[1]/2*e):this._map._zoom<=n&&r?this._icon.style.display="none":this._map._zoom<=n&&!r&&(e=l,this._icon.style.marginLeft=-d[0]/2*e,this._icon.style.marginTop=-d[1]/2*e))}this._icon&&Tn(this._icon,i,e||1),this._shadow&&Tn(this._shadow,i,e||1),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex(),this._applyRotation()},_applyRotation(){this.options.rotationAngle&&(this._icon.style[M.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,M.DomUtil.TRANSFORM==="msTransform"?this._icon.style[M.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[M.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle(i){return this.options.rotationAngle=i,this.update(),this},setRotationOrigin(i){return this.options.rotationOrigin=i,this.update(),this},twinkle(i,e){let n=!1,o=0;const r=()=>{o++,o>Math.floor(e/i)?this.setOpacity(1):(n?(this.setOpacity(0),n=!1):(this.setOpacity(1),n=!0),setTimeout(r,i))};r()}}),M.Map.include({hasLayer:function(i){return i&&M.Util.stamp(i)in this._layers}}),M.Path.addInitHook(function(){this.color=An(this.options.color),this.fillColor=An(this.options.fillColor)}),M.Polyline.addInitHook(function(){this.options.showMeasurements&&this.showMeasurements()}),M.Circle.include({toGeoJSON(){return{type:"Feature",properties:{},geometry:{type:"Circle",radius:this.getRadius(),coordinates:[this._latlng.lng,this._latlng.lat]}}}}),M.Layer.addInitHook(function(){this._leaflet_id=this.options.id||M.stamp({})}),M.LayerGroup.include({getLayerId(i){return i._leaflet_id},hasLayer(i){return i?(["number","string"].includes(typeof i)?i:this.getLayerId(i))in this._layers:!1}}),M.GridLayer.include({_setZoomTransform:function(i,o,n){var r=o,o=(r!=null&&this.options&&(this.options.corrdType=="gcj02"?r=wt.CoordsUtil.gcjEncrypt(o.lat,o.lng):this.options.corrdType=="bd09"&&(o=wt.CoordsUtil.gcjEncrypt(o.lat,o.lng),r=wt.CoordsUtil.bdEncrypt(o.lat,o.lng))),this._map.getZoomScale(n,i.zoom)),r=i.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(r,n)).round();M.Browser.any3d?M.DomUtil.setTransform(i.el,r,o):M.DomUtil.setPosition(i.el,r)},_getTiledPixelBounds:function(o){var n=o,o=(n!=null&&this.options&&(this.options.corrdType=="gcj02"?n=wt.CoordsUtil.gcjEncrypt(o.lat,o.lng):this.options.corrdType=="bd09"&&(o=wt.CoordsUtil.gcjEncrypt(o.lat,o.lng),n=wt.CoordsUtil.bdEncrypt(o.lat,o.lng))),this._map),e=o._animatingZoom?Math.max(o._animateToZoom,o.getZoom()):o.getZoom(),e=o.getZoomScale(e,this._tileZoom),n=o.project(n,this._tileZoom).floor(),o=o.getSize().divideBy(2*e);return new M.Bounds(n.subtract(o),n.add(o))}}),M.TileLayer.addInitHook(function(){this.on("add",function(i){this._container.style.filter=Object.keys(this.options.style||{}).map(e=>`${e}(${this.options.style[e]})`).join(" ")})}),M.Polyline.include({_originalOnAdd:M.Polyline.prototype.onAdd,_originalOnRemove:M.Polyline.prototype.onRemove,_originalSetLatLngs:M.Polyline.prototype.setLatLngs,setLatLngs:function(i){var e=this._map&&this._vertexMarkers&&this._latlngs.length!==i.length;e&&(this.removeVertexMarkers(),this.destroyVertexMarkers(),this.createVertexMarkers()),this.options.showMeasurements&&this.updateMeasurements(),this._originalSetLatLngs(i)},removeVertexMarkers:function(){this._map&&this._vertexMarkers&&(this._map.removeLayer(this._vertexMarkers),this._vertexMarkers=void 0)},onAdd:function(i){this._originalOnAdd(i),this.createVertexMarkers(),this.options.showMeasurements&&this.showMeasurements(this.options.measurementOptions)},createVertexMarkers:function(){if(this._map){var i=this.options.vertexMarkers||{};this._vertexMarkers===void 0&&this.options.vertexMarkers&&(this._vertexMarkers=new ls(this,i).addTo(this._map))}},destroyVertexMarkers:function(){this._vertexMarkers&&(this._vertexMarkers=void 0)},onRemove:function(i){this.removeVertexMarkers(),this._originalOnRemove(i),this.options.showMeasurements&&this.hideMeasurements()},showMeasurements(i){return!this._map||this._measurementLayer?this:(this._measurementOptions=M.extend({showOnHover:!1,minPixelDistance:30,showDistances:!0,showArea:!0,showAggregate:!0,lang:{totalLength:"Total length",totalArea:"Total area",segmentLength:"Segment length"},map:this._map},i||{}),this._measurementLayer=new M.LayerGroup().addTo(this._map),this.updateMeasurements(),this._map.on("zoomend",this.updateMeasurements,this),this)},hideMeasurements(){return this._map.off("zoomend",this.updateMeasurements,this),this._measurementLayer?(this._map.removeLayer(this._measurementLayer),this._measurementLayer=null,this):this},tempFormatDistance(i){const e=this._map.options.crs,n=new Array;for(let b=0;b<i.length;b++){const A=e.project(i[b]);n.push(A)}const o=n.length;let r=0,l,u,c,d,_,v;for(let b=0;b<o-1;b++)l=n[b],c=l.x,d=l.y,u=n[b+1],_=u.x,v=u.y,r+=Math.sqrt((c-_)*(c-_)+(d-v)*(d-v));const p=r;let y="";return p>1e3?y="总长:"+Number(p/1e3).toFixed(1)+"公里":y="总长:"+Math.round(p)+"米",y},tempMoveFormatDistance(i,e){const n=this._map.options.crs;i=n.project(i),i=new Array(i),e=n.project(e),i.push(e);const o=i.length;let r=0,l,u,c,d,_,v;for(let b=0;b<o-1;b++)l=i[b],c=l.x,d=l.y,u=i[b+1],_=u.x,v=u.y,r+=Math.sqrt((c-_)*(c-_)+(d-v)*(d-v));const p=r;let y="";return p>1e3?y=Number(p/1e3).toFixed(1)+"公里":y=Math.round(p)+"米",y},tempFormatArea(i){const e=this._map.options.crs,n=new Array;for(let P=0;P<i.length;P++){const E=e.project(i[P]);n.push(E)}let o=!0;for(var r=0;r<n.length-1;r++){n[r].x>180?o=!0:o=!1;break}const l=n.length;let u=0,c,d,_=0,v=0,p=0,y=0;if(n!=null){let P;if(o)for(var r=0;r<l;r++)P=(r+1)%l,c=n[r],d=n[P],u+=c.x*d.y,u-=c.y*d.x;else{let z,R=0,B=0;for(var r=0;r<l;r++)c=n[r],z=c.x,r==0?(R=z,B=z):(z<R&&(R=z),z>B&&(B=z));const H=parseInt(((R+B)/2+3)/6);for(var r=0;r<l;r++)P=(r+1)%l,r==0?(c=n[r],_=widget.LonLatToXA80N(H,c.x,c.y)[0],v=widget.LonLatToXA80N(H,c.x,c.y)[1]):(_=p,v=y),d=n[P],p=widget.LonLatToXA80N(H,d.x,d.y)[0],y=widget.LonLatToXA80N(H,d.x,d.y)[1],u+=_*y,u-=p*v}}const b=Math.abs(u/2);let A="";return b>1e6?A="总面积:"+Number(b/1e6).toFixed(4)+`平方公里
4
+ */var Ws;function $s(){return Ws||(Ws=1,function(i,s){(function(n,r){r(s)})(io,function(n){var r="1.9.4";function o(t){var e,a,h,u;for(a=1,h=arguments.length;a<h;a++){u=arguments[a];for(e in u)t[e]=u[e]}return t}var l=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function f(t,e){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var h=a.call(arguments,2);return function(){return t.apply(e,h.length?h.concat(a.call(arguments)):arguments)}}var c=0;function d(t){return"_leaflet_id"in t||(t._leaflet_id=++c),t._leaflet_id}function m(t,e,a){var h,u,_,g;return g=function(){h=!1,u&&(_.apply(a,u),u=!1)},_=function(){h?u=arguments:(t.apply(a,arguments),setTimeout(g,e),h=!0)},_}function v(t,e,a){var h=e[1],u=e[0],_=h-u;return t===h&&a?t:((t-u)%_+_)%_+u}function p(){return!1}function y(t,e){if(e===!1)return t;var a=Math.pow(10,e===void 0?6:e);return Math.round(t*a)/a}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function A(t){return b(t).split(/\s+/)}function P(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in e)t.options[a]=e[a];return t.options}function E(t,e,a){var h=[];for(var u in t)h.push(encodeURIComponent(a?u.toUpperCase():u)+"="+encodeURIComponent(t[u]));return(!e||e.indexOf("?")===-1?"?":"&")+h.join("&")}var z=/\{ *([\w_ -]+) *\}/g;function B(t,e){return t.replace(z,function(a,h){var u=e[h];if(u===void 0)throw new Error("No value provided for variable "+a);return typeof u=="function"&&(u=u(e)),u})}var k=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function j(t,e){for(var a=0;a<t.length;a++)if(t[a]===e)return a;return-1}var H="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function W(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var ct=0;function tt(t){var e=+new Date,a=Math.max(0,16-(e-ct));return ct=e+a,window.setTimeout(t,a)}var Pt=window.requestAnimationFrame||W("RequestAnimationFrame")||tt,Gt=window.cancelAnimationFrame||W("CancelAnimationFrame")||W("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function nt(t,e,a){if(a&&Pt===tt)t.call(e);else return Pt.call(window,f(t,e))}function pt(t){t&&Gt.call(window,t)}var cs={__proto__:null,extend:o,create:l,bind:f,get lastId(){return c},stamp:d,throttle:m,wrapNum:v,falseFn:p,formatNum:y,trim:b,splitWords:A,setOptions:P,getParamString:E,template:B,isArray:k,indexOf:j,emptyImageUrl:H,requestFn:Pt,cancelFn:Gt,requestAnimFrame:nt,cancelAnimFrame:pt};function Vt(){}Vt.extend=function(t){var e=function(){P(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=e.__super__=this.prototype,h=l(a);h.constructor=e,e.prototype=h;for(var u in this)Object.prototype.hasOwnProperty.call(this,u)&&u!=="prototype"&&u!=="__super__"&&(e[u]=this[u]);return t.statics&&o(e,t.statics),t.includes&&(Ju(t.includes),o.apply(null,[h].concat(t.includes))),o(h,t),delete h.statics,delete h.includes,h.options&&(h.options=a.options?l(a.options):{},o(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var _=0,g=h._initHooks.length;_<g;_++)h._initHooks[_].call(this)}},e},Vt.include=function(t){var e=this.prototype.options;return o(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Vt.mergeOptions=function(t){return o(this.prototype.options,t),this},Vt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function Ju(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=k(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var St={on:function(t,e,a){if(typeof t=="object")for(var h in t)this._on(h,t[h],e);else{t=A(t);for(var u=0,_=t.length;u<_;u++)this._on(t[u],e,a)}return this},off:function(t,e,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var h in t)this._off(h,t[h],e);else{t=A(t);for(var u=arguments.length===1,_=0,g=t.length;_<g;_++)u?this._off(t[_]):this._off(t[_],e,a)}return this},_on:function(t,e,a,h){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,a)===!1){a===this&&(a=void 0);var u={fn:e,ctx:a};h&&(u.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(u)}},_off:function(t,e,a){var h,u,_;if(this._events&&(h=this._events[t],!!h)){if(arguments.length===1){if(this._firingCount)for(u=0,_=h.length;u<_;u++)h[u].fn=p;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var g=this._listens(t,e,a);if(g!==!1){var x=h[g];this._firingCount&&(x.fn=p,this._events[t]=h=h.slice()),h.splice(g,1)}}},fire:function(t,e,a){if(!this.listens(t,a))return this;var h=o({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var u=this._events[t];if(u){this._firingCount=this._firingCount+1||1;for(var _=0,g=u.length;_<g;_++){var x=u[_],w=x.fn;x.once&&this.off(t,w,x.ctx),w.call(x.ctx||this,h)}this._firingCount--}}return a&&this._propagateEvent(h),this},listens:function(t,e,a,h){typeof t!="string"&&console.warn('"string" type argument expected');var u=e;typeof e!="function"&&(h=!!e,u=void 0,a=void 0);var _=this._events&&this._events[t];if(_&&_.length&&this._listens(t,u,a)!==!1)return!0;if(h){for(var g in this._eventParents)if(this._eventParents[g].listens(t,e,a,h))return!0}return!1},_listens:function(t,e,a){if(!this._events)return!1;var h=this._events[t]||[];if(!e)return!!h.length;a===this&&(a=void 0);for(var u=0,_=h.length;u<_;u++)if(h[u].fn===e&&h[u].ctx===a)return u;return!1},once:function(t,e,a){if(typeof t=="object")for(var h in t)this._on(h,t[h],e,!0);else{t=A(t);for(var u=0,_=t.length;u<_;u++)this._on(t[u],e,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[d(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[d(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,o({layer:t.target,propagatedFrom:t.target},t),!0)}};St.addEventListener=St.on,St.removeEventListener=St.clearAllEventListeners=St.off,St.addOneTimeEventListener=St.once,St.fireEvent=St.fire,St.hasEventListeners=St.listens;var Ji=Vt.extend(St);function F(t,e,a){this.x=a?Math.round(t):t,this.y=a?Math.round(e):e}var qn=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};F.prototype={clone:function(){return new F(this.x,this.y)},add:function(t){return this.clone()._add(Z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(Z(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 F(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new F(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=qn(this.x),this.y=qn(this.y),this},distanceTo:function(t){t=Z(t);var e=t.x-this.x,a=t.y-this.y;return Math.sqrt(e*e+a*a)},equals:function(t){return t=Z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=Z(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 Z(t,e,a){return t instanceof F?t:k(t)?new F(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new F(t.x,t.y):new F(t,e,a)}function et(t,e){if(t)for(var a=e?[t,e]:t,h=0,u=a.length;h<u;h++)this.extend(a[h])}et.prototype={extend:function(t){var e,a;if(!t)return this;if(t instanceof F||typeof t[0]=="number"||"x"in t)e=a=Z(t);else if(t=At(t),e=t.min,a=t.max,!e||!a)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=a.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return Z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return Z(this.min.x,this.max.y)},getTopRight:function(){return Z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,a;return typeof t[0]=="number"||t instanceof F?t=Z(t):t=At(t),t instanceof et?(e=t.min,a=t.max):e=a=t,e.x>=this.min.x&&a.x<=this.max.x&&e.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=At(t);var e=this.min,a=this.max,h=t.min,u=t.max,_=u.x>=e.x&&h.x<=a.x,g=u.y>=e.y&&h.y<=a.y;return _&&g},overlaps:function(t){t=At(t);var e=this.min,a=this.max,h=t.min,u=t.max,_=u.x>e.x&&h.x<a.x,g=u.y>e.y&&h.y<a.y;return _&&g},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,a=this.max,h=Math.abs(e.x-a.x)*t,u=Math.abs(e.y-a.y)*t;return At(Z(e.x-h,e.y-u),Z(a.x+h,a.y+u))},equals:function(t){return t?(t=At(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function At(t,e){return!t||t instanceof et?t:new et(t,e)}function Tt(t,e){if(t)for(var a=e?[t,e]:t,h=0,u=a.length;h<u;h++)this.extend(a[h])}Tt.prototype={extend:function(t){var e=this._southWest,a=this._northEast,h,u;if(t instanceof Y)h=t,u=t;else if(t instanceof Tt){if(h=t._southWest,u=t._northEast,!h||!u)return this}else return t?this.extend($(t)||rt(t)):this;return!e&&!a?(this._southWest=new Y(h.lat,h.lng),this._northEast=new Y(u.lat,u.lng)):(e.lat=Math.min(h.lat,e.lat),e.lng=Math.min(h.lng,e.lng),a.lat=Math.max(u.lat,a.lat),a.lng=Math.max(u.lng,a.lng)),this},pad:function(t){var e=this._southWest,a=this._northEast,h=Math.abs(e.lat-a.lat)*t,u=Math.abs(e.lng-a.lng)*t;return new Tt(new Y(e.lat-h,e.lng-u),new Y(a.lat+h,a.lng+u))},getCenter:function(){return new Y((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Y(this.getNorth(),this.getWest())},getSouthEast:function(){return new Y(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof Y||"lat"in t?t=$(t):t=rt(t);var e=this._southWest,a=this._northEast,h,u;return t instanceof Tt?(h=t.getSouthWest(),u=t.getNorthEast()):h=u=t,h.lat>=e.lat&&u.lat<=a.lat&&h.lng>=e.lng&&u.lng<=a.lng},intersects:function(t){t=rt(t);var e=this._southWest,a=this._northEast,h=t.getSouthWest(),u=t.getNorthEast(),_=u.lat>=e.lat&&h.lat<=a.lat,g=u.lng>=e.lng&&h.lng<=a.lng;return _&&g},overlaps:function(t){t=rt(t);var e=this._southWest,a=this._northEast,h=t.getSouthWest(),u=t.getNorthEast(),_=u.lat>e.lat&&h.lat<a.lat,g=u.lng>e.lng&&h.lng<a.lng;return _&&g},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=rt(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function rt(t,e){return t instanceof Tt?t:new Tt(t,e)}function Y(t,e,a){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,a!==void 0&&(this.alt=+a)}Y.prototype={equals:function(t,e){if(!t)return!1;t=$(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return ni.distance(this,$(t))},wrap:function(){return ni.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,a=e/Math.cos(Math.PI/180*this.lat);return rt([this.lat-e,this.lng-a],[this.lat+e,this.lng+a])},clone:function(){return new Y(this.lat,this.lng,this.alt)}};function $(t,e,a){return t instanceof Y?t:k(t)&&typeof t[0]!="object"?t.length===3?new Y(t[0],t[1],t[2]):t.length===2?new Y(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new Y(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new Y(t,e,a)}var Qt={latLngToPoint:function(t,e){var a=this.projection.project(t),h=this.scale(e);return this.transformation._transform(a,h)},pointToLatLng:function(t,e){var a=this.scale(e),h=this.transformation.untransform(t,a);return this.projection.unproject(h)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,a=this.scale(t),h=this.transformation.transform(e.min,a),u=this.transformation.transform(e.max,a);return new et(h,u)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,h=t.alt;return new Y(a,e,h)},wrapLatLngBounds:function(t){var e=t.getCenter(),a=this.wrapLatLng(e),h=e.lat-a.lat,u=e.lng-a.lng;if(h===0&&u===0)return t;var _=t.getSouthWest(),g=t.getNorthEast(),x=new Y(_.lat-h,_.lng-u),w=new Y(g.lat-h,g.lng-u);return new Tt(x,w)}},ni=o({},Qt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var a=Math.PI/180,h=t.lat*a,u=e.lat*a,_=Math.sin((e.lat-t.lat)*a/2),g=Math.sin((e.lng-t.lng)*a/2),x=_*_+Math.cos(h)*Math.cos(u)*g*g,w=2*Math.atan2(Math.sqrt(x),Math.sqrt(1-x));return this.R*w}}),Gn=6378137,fs={R:Gn,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,a=this.MAX_LATITUDE,h=Math.max(Math.min(a,t.lat),-a),u=Math.sin(h*e);return new F(this.R*t.lng*e,this.R*Math.log((1+u)/(1-u))/2)},unproject:function(t){var e=180/Math.PI;return new Y((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Gn*Math.PI;return new et([-t,-t],[t,t])}()};function ds(t,e,a,h){if(k(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=a,this._d=h}ds.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new F((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function te(t,e,a,h){return new ds(t,e,a,h)}var _s=o({},ni,{code:"EPSG:3857",projection:fs,transformation:function(){var t=.5/(Math.PI*fs.R);return te(t,.5,-t,.5)}()}),tc=o({},_s,{code:"EPSG:900913"});function Un(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function jn(t,e){var a="",h,u,_,g,x,w;for(h=0,_=t.length;h<_;h++){for(x=t[h],u=0,g=x.length;u<g;u++)w=x[u],a+=(u?"L":"M")+w.x+" "+w.y;a+=e?N.svg?"z":"x":""}return a||"M0 0"}var ms=document.documentElement.style,Ee="ActiveXObject"in window,ic=Ee&&!document.addEventListener,Hn="msLaunchUri"in navigator&&!("documentMode"in document),ps=Ut("webkit"),Wn=Ut("android"),$n=Ut("android 2")||Ut("android 3"),ec=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),sc=Wn&&Ut("Google")&&ec<537&&!("AudioNode"in window),gs=!!window.opera,Vn=!Hn&&Ut("chrome"),Qn=Ut("gecko")&&!ps&&!gs&&!Ee,nc=!Vn&&Ut("safari"),Xn=Ut("phantom"),Kn="OTransition"in ms,ac=navigator.platform.indexOf("Win")===0,Yn=Ee&&"transition"in ms,vs="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!$n,Jn="MozPerspective"in ms,oc=!window.L_DISABLE_3D&&(Yn||vs||Jn)&&!Kn&&!Xn,ie=typeof orientation<"u"||Ut("mobile"),rc=ie&&ps,hc=ie&&vs,ta=!window.PointerEvent&&window.MSPointerEvent,ia=!!(window.PointerEvent||ta),ea="ontouchstart"in window||!!window.TouchEvent,lc=!window.L_NO_TOUCH&&(ea||ia),uc=ie&&gs,cc=ie&&Qn,fc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,dc=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",p,e),window.removeEventListener("testPassiveEventSupport",p,e)}catch{}return t}(),_c=function(){return!!document.createElement("canvas").getContext}(),ys=!!(document.createElementNS&&Un("svg").createSVGRect),mc=!!ys&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pc=!ys&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),gc=navigator.platform.indexOf("Mac")===0,vc=navigator.platform.indexOf("Linux")===0;function Ut(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var N={ie:Ee,ielt9:ic,edge:Hn,webkit:ps,android:Wn,android23:$n,androidStock:sc,opera:gs,chrome:Vn,gecko:Qn,safari:nc,phantom:Xn,opera12:Kn,win:ac,ie3d:Yn,webkit3d:vs,gecko3d:Jn,any3d:oc,mobile:ie,mobileWebkit:rc,mobileWebkit3d:hc,msPointer:ta,pointer:ia,touch:lc,touchNative:ea,mobileOpera:uc,mobileGecko:cc,retina:fc,passiveEvents:dc,canvas:_c,svg:ys,vml:pc,inlineSvg:mc,mac:gc,linux:vc},sa=N.msPointer?"MSPointerDown":"pointerdown",na=N.msPointer?"MSPointerMove":"pointermove",aa=N.msPointer?"MSPointerUp":"pointerup",oa=N.msPointer?"MSPointerCancel":"pointercancel",Ms={touchstart:sa,touchmove:na,touchend:aa,touchcancel:oa},ra={touchstart:Lc,touchmove:Se,touchend:Se,touchcancel:Se},Li={},ha=!1;function yc(t,e,a){return e==="touchstart"&&bc(),ra[e]?(a=ra[e].bind(this,a),t.addEventListener(Ms[e],a,!1),a):(console.warn("wrong event specified:",e),p)}function Mc(t,e,a){if(!Ms[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ms[e],a,!1)}function xc(t){Li[t.pointerId]=t}function wc(t){Li[t.pointerId]&&(Li[t.pointerId]=t)}function la(t){delete Li[t.pointerId]}function bc(){ha||(document.addEventListener(sa,xc,!0),document.addEventListener(na,wc,!0),document.addEventListener(aa,la,!0),document.addEventListener(oa,la,!0),ha=!0)}function Se(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var a in Li)e.touches.push(Li[a]);e.changedTouches=[e],t(e)}}function Lc(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&gt(e),Se(t,e)}function Pc(t){var e={},a,h;for(h in t)a=t[h],e[h]=a&&a.bind?a.bind(t):a;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Ac=200;function Tc(t,e){t.addEventListener("dblclick",e);var a=0,h;function u(_){if(_.detail!==1){h=_.detail;return}if(!(_.pointerType==="mouse"||_.sourceCapabilities&&!_.sourceCapabilities.firesTouchEvents)){var g=_a(_);if(!(g.some(function(w){return w instanceof HTMLLabelElement&&w.attributes.for})&&!g.some(function(w){return w instanceof HTMLInputElement||w instanceof HTMLSelectElement}))){var x=Date.now();x-a<=Ac?(h++,h===2&&e(Pc(_))):h=1,a=x}}}return t.addEventListener("click",u),{dblclick:e,simDblclick:u}}function Cc(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var xs=ze(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ze(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ua=ee==="webkitTransition"||ee==="OTransition"?ee+"End":"transitionend";function ca(t){return typeof t=="string"?document.getElementById(t):t}function se(t,e){var a=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!a||a==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(t,null);a=h?h[e]:null}return a==="auto"?null:a}function Q(t,e,a){var h=document.createElement(t);return h.className=e||"",a&&a.appendChild(h),h}function st(t){var e=t.parentNode;e&&e.removeChild(t)}function Oe(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Pi(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Ai(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ws(t,e){if(t.classList!==void 0)return t.classList.contains(e);var a=Ie(t);return a.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(a)}function G(t,e){if(t.classList!==void 0)for(var a=A(e),h=0,u=a.length;h<u;h++)t.classList.add(a[h]);else if(!ws(t,e)){var _=Ie(t);bs(t,(_?_+" ":"")+e)}}function ot(t,e){t.classList!==void 0?t.classList.remove(e):bs(t,b((" "+Ie(t)+" ").replace(" "+e+" "," ")))}function bs(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Ie(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function It(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ec(t,e)}function Ec(t,e){var a=!1,h="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(h)}catch{if(e===1)return}e=Math.round(e*100),a?(a.Enabled=e!==100,a.Opacity=e):t.style.filter+=" progid:"+h+"(opacity="+e+")"}function ze(t){for(var e=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in e)return t[a];return!1}function li(t,e,a){var h=e||new F(0,0);t.style[xs]=(N.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(a?" scale("+a+")":"")}function ht(t,e){t._leaflet_pos=e,N.any3d?li(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ui(t){return t._leaflet_pos||new F(0,0)}var ne,ae,Ls;if("onselectstart"in document)ne=function(){q(window,"selectstart",gt)},ae=function(){J(window,"selectstart",gt)};else{var oe=ze(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ne=function(){if(oe){var t=document.documentElement.style;Ls=t[oe],t[oe]="none"}},ae=function(){oe&&(document.documentElement.style[oe]=Ls,Ls=void 0)}}function Ps(){q(window,"dragstart",gt)}function As(){J(window,"dragstart",gt)}var Ne,Ts;function Cs(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(ke(),Ne=t,Ts=t.style.outlineStyle,t.style.outlineStyle="none",q(window,"keydown",ke))}function ke(){Ne&&(Ne.style.outlineStyle=Ts,Ne=void 0,Ts=void 0,J(window,"keydown",ke))}function fa(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Es(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Sc={__proto__:null,TRANSFORM:xs,TRANSITION:ee,TRANSITION_END:ua,get:ca,getStyle:se,create:Q,remove:st,empty:Oe,toFront:Pi,toBack:Ai,hasClass:ws,addClass:G,removeClass:ot,setClass:bs,getClass:Ie,setOpacity:It,testProp:ze,setTransform:li,setPosition:ht,getPosition:ui,get disableTextSelection(){return ne},get enableTextSelection(){return ae},disableImageDrag:Ps,enableImageDrag:As,preventOutline:Cs,restoreOutline:ke,getSizedParentNode:fa,getScale:Es};function q(t,e,a,h){if(e&&typeof e=="object")for(var u in e)Os(t,u,e[u],a);else{e=A(e);for(var _=0,g=e.length;_<g;_++)Os(t,e[_],a,h)}return this}var jt="_leaflet_events";function J(t,e,a,h){if(arguments.length===1)da(t),delete t[jt];else if(e&&typeof e=="object")for(var u in e)Is(t,u,e[u],a);else if(e=A(e),arguments.length===2)da(t,function(x){return j(e,x)!==-1});else for(var _=0,g=e.length;_<g;_++)Is(t,e[_],a,h);return this}function da(t,e){for(var a in t[jt]){var h=a.split(/\d/)[0];(!e||e(h))&&Is(t,h,null,null,a)}}var Ss={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Os(t,e,a,h){var u=e+d(a)+(h?"_"+d(h):"");if(t[jt]&&t[jt][u])return this;var _=function(x){return a.call(h||t,x||window.event)},g=_;!N.touchNative&&N.pointer&&e.indexOf("touch")===0?_=yc(t,e,_):N.touch&&e==="dblclick"?_=Tc(t,_):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Ss[e]||e,_,N.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(_=function(x){x=x||window.event,Ns(t,x)&&g(x)},t.addEventListener(Ss[e],_,!1)):t.addEventListener(e,g,!1):t.attachEvent("on"+e,_),t[jt]=t[jt]||{},t[jt][u]=_}function Is(t,e,a,h,u){u=u||e+d(a)+(h?"_"+d(h):"");var _=t[jt]&&t[jt][u];if(!_)return this;!N.touchNative&&N.pointer&&e.indexOf("touch")===0?Mc(t,e,_):N.touch&&e==="dblclick"?Cc(t,_):"removeEventListener"in t?t.removeEventListener(Ss[e]||e,_,!1):t.detachEvent("on"+e,_),t[jt][u]=null}function ci(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function zs(t){return Os(t,"wheel",ci),this}function re(t){return q(t,"mousedown touchstart dblclick contextmenu",ci),t._leaflet_disable_click=!0,this}function gt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function fi(t){return gt(t),ci(t),this}function _a(t){if(t.composedPath)return t.composedPath();for(var e=[],a=t.target;a;)e.push(a),a=a.parentNode;return e}function ma(t,e){if(!e)return new F(t.clientX,t.clientY);var a=Es(e),h=a.boundingClientRect;return new F((t.clientX-h.left)/a.x-e.clientLeft,(t.clientY-h.top)/a.y-e.clientTop)}var Oc=N.linux&&N.chrome?window.devicePixelRatio:N.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function pa(t){return N.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Oc: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 Ns(t,e){var a=e.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var Ic={__proto__:null,on:q,off:J,stopPropagation:ci,disableScrollPropagation:zs,disableClickPropagation:re,preventDefault:gt,stop:fi,getPropagationPath:_a,getMousePosition:ma,getWheelDelta:pa,isExternalTarget:Ns,addListener:q,removeListener:J},ga=Ji.extend({run:function(t,e,a,h){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=ui(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=nt(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,a=this._duration*1e3;e<a?this._runFrame(this._easeOut(e/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var a=this._startPos.add(this._offset.multiplyBy(t));e&&a._round(),ht(this._el,a),this.fire("step")},_complete:function(){pt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),V=Ji.extend({options:{crs:_s,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=P(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=f(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView($(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&N.any3d&&!N.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),q(this._proxy,ua,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,a){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter($(t),e,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=o({animate:a.animate},a.zoom),a.pan=o({animate:a.animate,duration:a.duration},a.pan));var h=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,a.zoom):this._tryAnimatedPan(t,a.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(N.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(N.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,a){var h=this.getZoomScale(e),u=this.getSize().divideBy(2),_=t instanceof F?t:this.latLngToContainerPoint(t),g=_.subtract(u).multiplyBy(1-1/h),x=this.containerPointToLatLng(u.add(g));return this.setView(x,e,{zoom:a})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():rt(t);var a=Z(e.paddingTopLeft||e.padding||[0,0]),h=Z(e.paddingBottomRight||e.padding||[0,0]),u=this.getBoundsZoom(t,!1,a.add(h));if(u=typeof e.maxZoom=="number"?Math.min(e.maxZoom,u):u,u===1/0)return{center:t.getCenter(),zoom:u};var _=h.subtract(a).divideBy(2),g=this.project(t.getSouthWest(),u),x=this.project(t.getNorthEast(),u),w=this.unproject(g.add(x).divideBy(2).add(_),u);return{center:w,zoom:u}},fitBounds:function(t,e){if(t=rt(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,e);return this.setView(a.center,a.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=Z(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ga,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){G(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,a){if(a=a||{},a.animate===!1||!N.any3d)return this.setView(t,e,a);this._stop();var h=this.project(this.getCenter()),u=this.project(t),_=this.getSize(),g=this._zoom;t=$(t),e=e===void 0?g:e;var x=Math.max(_.x,_.y),w=x*this.getZoomScale(g,e),T=u.distanceTo(h)||1,I=1.42,R=I*I;function U(lt){var $e=lt?-1:1,xf=lt?w:x,wf=w*w-x*x+$e*R*R*T*T,bf=2*xf*R*T,Hs=wf/bf,Ka=Math.sqrt(Hs*Hs+1)-Hs,Lf=Ka<1e-9?-18:Math.log(Ka);return Lf}function xt(lt){return(Math.exp(lt)-Math.exp(-lt))/2}function dt(lt){return(Math.exp(lt)+Math.exp(-lt))/2}function Nt(lt){return xt(lt)/dt(lt)}var Ct=U(0);function Ii(lt){return x*(dt(Ct)/dt(Ct+I*lt))}function gf(lt){return x*(dt(Ct)*Nt(Ct+I*lt)-xt(Ct))/R}function vf(lt){return 1-Math.pow(1-lt,1.5)}var yf=Date.now(),Qa=(U(1)-Ct)/I,Mf=a.duration?1e3*a.duration:1e3*Qa*.8;function Xa(){var lt=(Date.now()-yf)/Mf,$e=vf(lt)*Qa;lt<=1?(this._flyToFrame=nt(Xa,this),this._move(this.unproject(h.add(u.subtract(h).multiplyBy(gf($e)/T)),g),this.getScaleZoom(x/Ii($e),g),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),Xa.call(this),this},flyToBounds:function(t,e){var a=this._getBoundsCenterZoom(t,e);return this.flyTo(a.center,a.zoom,e)},setMaxBounds:function(t){return t=rt(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var a=this.getCenter(),h=this._limitCenter(a,this._zoom,rt(t));return a.equals(h)||this.panTo(h,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var a=Z(e.paddingTopLeft||e.padding||[0,0]),h=Z(e.paddingBottomRight||e.padding||[0,0]),u=this.project(this.getCenter()),_=this.project(t),g=this.getPixelBounds(),x=At([g.min.add(a),g.max.subtract(h)]),w=x.getSize();if(!x.contains(_)){this._enforcingBounds=!0;var T=_.subtract(x.getCenter()),I=x.extend(_).getSize().subtract(w);u.x+=T.x<0?-I.x:I.x,u.y+=T.y<0?-I.y:I.y,this.panTo(this.unproject(u),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=o({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),h=e.divideBy(2).round(),u=a.divideBy(2).round(),_=h.subtract(u);return!_.x&&!_.y?this:(t.animate&&t.pan?this.panBy(_):(t.pan&&this._rawPanBy(_),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(f(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:a}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=o({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=f(this._handleGeolocationResponse,this),a=f(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,a,t):navigator.geolocation.getCurrentPosition(e,a,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,a=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: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,a=t.coords.longitude,h=new Y(e,a),u=h.toBounds(t.coords.accuracy*2),_=this._locateOptions;if(_.setView){var g=this.getBoundsZoom(u);this.setView(h,_.maxZoom?Math.min(g,_.maxZoom):g)}var x={latlng:h,bounds:u,timestamp:t.timestamp};for(var w in t.coords)typeof t.coords[w]=="number"&&(x[w]=t.coords[w]);this.fire("locationfound",x)}},addHandler:function(t,e){if(!e)return this;var a=this[t]=new e(this);return this._handlers.push(a),this.options[t]&&a.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(),st(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(pt(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)st(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),h=Q("div",a,e||this._mapPane);return t&&(this._panes[t]=h),h},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()),a=this.unproject(t.getTopRight());return new Tt(e,a)},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,a){t=rt(t),a=Z(a||[0,0]);var h=this.getZoom()||0,u=this.getMinZoom(),_=this.getMaxZoom(),g=t.getNorthWest(),x=t.getSouthEast(),w=this.getSize().subtract(a),T=At(this.project(x,h),this.project(g,h)).getSize(),I=N.any3d?this.options.zoomSnap:1,R=w.x/T.x,U=w.y/T.y,xt=e?Math.max(R,U):Math.min(R,U);return h=this.getScaleZoom(xt,h),I&&(h=Math.round(h/(I/100))*(I/100),h=e?Math.ceil(h/I)*I:Math.floor(h/I)*I),Math.max(u,Math.min(_,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new F(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var a=this._getTopLeftPoint(t,e);return new et(a,a.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 a=this.options.crs;return e=e===void 0?this._zoom:e,a.scale(t)/a.scale(e)},getScaleZoom:function(t,e){var a=this.options.crs;e=e===void 0?this._zoom:e;var h=a.zoom(t*a.scale(e));return isNaN(h)?1/0:h},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint($(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(Z(t),e)},layerPointToLatLng:function(t){var e=Z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project($(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng($(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(rt(t))},distance:function(t,e){return this.options.crs.distance($(t),$(e))},containerPointToLayerPoint:function(t){return Z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return Z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(Z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint($(t)))},mouseEventToContainerPoint:function(t){return ma(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=ca(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");q(e,"scroll",this._onScroll,this),this._containerId=d(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&N.any3d,G(t,"leaflet-container"+(N.touch?" leaflet-touch":"")+(N.retina?" leaflet-retina":"")+(N.ielt9?" leaflet-oldie":"")+(N.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=se(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),ht(this._mapPane,new F(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(G(t.markerPane,"leaflet-zoom-hide"),G(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,a){ht(this._mapPane,new F(0,0));var h=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var u=this._zoom!==e;this._moveStart(u,a)._move(t,e)._moveEnd(u),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,a,h){e===void 0&&(e=this._zoom);var u=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),h?a&&a.pinch&&this.fire("zoom",a):((u||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return pt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ht(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[d(this._container)]=this;var e=t?J:q;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),N.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){pt(this._resizeRequest),this._resizeRequest=nt(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 a=[],h,u=e==="mouseout"||e==="mouseover",_=t.target||t.srcElement,g=!1;_;){if(h=this._targets[d(_)],h&&(e==="click"||e==="preclick")&&this._draggableMoved(h)){g=!0;break}if(h&&h.listens(e,!0)&&(u&&!Ns(_,t)||(a.push(h),u))||_===this._container)break;_=_.parentNode}return!a.length&&!g&&!u&&this.listens(e,!0)&&(a=[this]),a},_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 a=t.type;a==="mousedown"&&Cs(e),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,a){if(t.type==="click"){var h=o({},t);h.type="preclick",this._fireDOMEvent(h,h.type,a)}var u=this._findEventTargets(t,e);if(a){for(var _=[],g=0;g<a.length;g++)a[g].listens(e,!0)&&_.push(a[g]);u=_.concat(u)}if(u.length){e==="contextmenu"&&gt(t);var x=u[0],w={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var T=x.getLatLng&&(!x._radius||x._radius<=10);w.containerPoint=T?this.latLngToContainerPoint(x.getLatLng()):this.mouseEventToContainerPoint(t),w.layerPoint=this.containerPointToLayerPoint(w.containerPoint),w.latlng=T?x.getLatLng():this.layerPointToLatLng(w.layerPoint)}for(g=0;g<u.length;g++)if(u[g].fire(e,w,!0),w.originalEvent._stopped||u[g].options.bubblingMouseEvents===!1&&j(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ui(this._mapPane)||new F(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var a=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var a=this.getSize()._divideBy(2);return this.project(t,e)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,a){var h=this._getNewPixelOrigin(a,e);return this.project(t,e)._subtract(h)},_latLngBoundsToNewLayerBounds:function(t,e,a){var h=this._getNewPixelOrigin(a,e);return At([this.project(t.getSouthWest(),e)._subtract(h),this.project(t.getNorthWest(),e)._subtract(h),this.project(t.getSouthEast(),e)._subtract(h),this.project(t.getNorthEast(),e)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,a){if(!a)return t;var h=this.project(t,e),u=this.getSize().divideBy(2),_=new et(h.subtract(u),h.add(u)),g=this._getBoundsOffset(_,a,e);return Math.abs(g.x)<=1&&Math.abs(g.y)<=1?t:this.unproject(h.add(g),e)},_limitOffset:function(t,e){if(!e)return t;var a=this.getPixelBounds(),h=new et(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(h,e))},_getBoundsOffset:function(t,e,a){var h=At(this.project(e.getNorthEast(),a),this.project(e.getSouthWest(),a)),u=h.min.subtract(t.min),_=h.max.subtract(t.max),g=this._rebound(u.x,-_.x),x=this._rebound(u.y,-_.y);return new F(g,x)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),a=this.getMaxZoom(),h=N.any3d?this.options.zoomSnap:1;return h&&(t=Math.round(t/h)*h),Math.max(e,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var a=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,e),!0)},_createAnimProxy:function(){var t=this._proxy=Q("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var a=xs,h=this._proxy.style[a];li(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),h===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){st(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();li(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,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(e),u=this._getCenterOffset(t)._divideBy(1-1/h);return a.animate!==!0&&!this.getSize().contains(u)?!1:(nt(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,a,h){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,G(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(f(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ot(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 zc(t,e){return new V(t,e)}var Bt=Vt.extend({options:{position:"topright"},initialize:function(t){P(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),a=this.getPosition(),h=t._controlCorners[a];return G(e,"leaflet-control"),a.indexOf("bottom")!==-1?h.insertBefore(e,h.firstChild):h.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(st(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()}}),he=function(t){return new Bt(t)};V.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",a=this._controlContainer=Q("div",e+"control-container",this._container);function h(u,_){var g=e+u+" "+e+_;t[u+_]=Q("div",g,a)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)st(this._controlCorners[t]);st(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var va=Bt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,a,h){return a<h?-1:h<a?1:0}},initialize:function(t,e,a){P(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in t)this._addLayer(t[h],h);for(h in e)this._addLayer(e[h],h,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Bt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(d(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){G(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(G(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ot(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Q("div",t),a=this.options.collapsed;e.setAttribute("aria-haspopup",!0),re(e),zs(e);var h=this._section=Q("section",t+"-list");a&&(this._map.on("click",this.collapse,this),q(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var u=this._layersLink=Q("a",t+"-toggle",e);u.href="#",u.title="Layers",u.setAttribute("role","button"),q(u,{keydown:function(_){_.keyCode===13&&this._expandSafely()},click:function(_){gt(_),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=Q("div",t+"-base",h),this._separator=Q("div",t+"-separator",h),this._overlaysList=Q("div",t+"-overlays",h),e.appendChild(h)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&d(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:a}),this.options.sortLayers&&this._layers.sort(f(function(h,u){return this.options.sortFunction(h.layer,u.layer,h.name,u.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Oe(this._baseLayersList),Oe(this._overlaysList),this._layerControlInputs=[];var t,e,a,h,u=0;for(a=0;a<this._layers.length;a++)h=this._layers[a],this._addItem(h),e=e||h.overlay,t=t||!h.overlay,u+=h.overlay?0:1;return this.options.hideSingleBase&&(t=t&&u>1,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(d(t.target)),a=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,e)},_createRadioElement:function(t,e){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=a,h.firstChild},_addItem:function(t){var e=document.createElement("label"),a=this._map.hasLayer(t.layer),h;t.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=a):h=this._createRadioElement("leaflet-base-layers_"+d(this),a),this._layerControlInputs.push(h),h.layerId=d(t.layer),q(h,"click",this._onInputClick,this);var u=document.createElement("span");u.innerHTML=" "+t.name;var _=document.createElement("span");e.appendChild(_),_.appendChild(h),_.appendChild(u);var g=t.overlay?this._overlaysList:this._baseLayersList;return g.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,a,h=[],u=[];this._handlingClick=!0;for(var _=t.length-1;_>=0;_--)e=t[_],a=this._getLayer(e.layerId).layer,e.checked?h.push(a):e.checked||u.push(a);for(_=0;_<u.length;_++)this._map.hasLayer(u[_])&&this._map.removeLayer(u[_]);for(_=0;_<h.length;_++)this._map.hasLayer(h[_])||this._map.addLayer(h[_]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,a,h=this._map.getZoom(),u=t.length-1;u>=0;u--)e=t[u],a=this._getLayer(e.layerId).layer,e.disabled=a.options.minZoom!==void 0&&h<a.options.minZoom||a.options.maxZoom!==void 0&&h>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,q(t,"click",gt),this.expand();var e=this;setTimeout(function(){J(t,"click",gt),e._preventClick=!1})}}),Nc=function(t,e,a){return new va(t,e,a)},ks=Bt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",a=Q("div",e+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,e+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,e+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},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._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,a,h,u){var _=Q("a",a,h);return _.innerHTML=t,_.href="#",_.title=e,_.setAttribute("role","button"),_.setAttribute("aria-label",e),re(_),q(_,"click",fi),q(_,"click",u,this),q(_,"click",this._refocusOnMap,this),_},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ot(this._zoomInButton,e),ot(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(G(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(G(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});V.mergeOptions({zoomControl:!0}),V.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ks,this.addControl(this.zoomControl))});var kc=function(t){return new ks(t)},ya=Bt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",a=Q("div",e),h=this.options;return this._addScales(h,e+"-line",a),t.on(h.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,a){t.metric&&(this._mScale=Q("div",e,a)),t.imperial&&(this._iScale=Q("div",e,a))},_update:function(){var t=this._map,e=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(a)},_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),a=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,a,e/t)},_updateImperial:function(t){var e=t*3.2808399,a,h,u;e>5280?(a=e/5280,h=this._getRoundNum(a),this._updateScale(this._iScale,h+" mi",h/a)):(u=this._getRoundNum(e),this._updateScale(this._iScale,u+" ft",u/e))},_updateScale:function(t,e,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),a=t/e;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,e*a}}),Bc=function(t){return new ya(t)},Rc='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Bs=Bt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(N.inlineSvg?Rc+" ":"")+"Leaflet</a>"},initialize:function(t){P(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Q("div","leaflet-control-attribution"),re(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 a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(' <span aria-hidden="true">|</span> ')}}});V.mergeOptions({attributionControl:!0}),V.addInitHook(function(){this.options.attributionControl&&new Bs().addTo(this)});var Dc=function(t){return new Bs(t)};Bt.Layers=va,Bt.Zoom=ks,Bt.Scale=ya,Bt.Attribution=Bs,he.layers=Nc,he.zoom=kc,he.scale=Bc,he.attribution=Dc;var Ht=Vt.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}});Ht.addTo=function(t,e){return t.addHandler(e,this),this};var Zc={Events:St},Ma=N.touch?"touchstart mousedown":"mousedown",ai=Ji.extend({options:{clickTolerance:3},initialize:function(t,e,a,h){P(this,h),this._element=t,this._dragStartTarget=e||t,this._preventOutline=a},enable:function(){this._enabled||(q(this._dragStartTarget,Ma,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ai._dragging===this&&this.finishDrag(!0),J(this._dragStartTarget,Ma,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ws(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){ai._dragging===this&&this.finishDrag();return}if(!(ai._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(ai._dragging=this,this._preventOutline&&Cs(this._element),Ps(),ne(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,a=fa(this._element);this._startPoint=new F(e.clientX,e.clientY),this._startPos=ui(this._element),this._parentScale=Es(a);var h=t.type==="mousedown";q(document,h?"mousemove":"touchmove",this._onMove,this),q(document,h?"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,a=new F(e.clientX,e.clientY)._subtract(this._startPoint);!a.x&&!a.y||Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,gt(t),this._moved||(this.fire("dragstart"),this._moved=!0,G(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),G(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ht(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ot(document.body,"leaflet-dragging"),this._lastTarget&&(ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),J(document,"mousemove touchmove",this._onMove,this),J(document,"mouseup touchend touchcancel",this._onUp,this),As(),ae();var e=this._moved&&this._moving;this._moving=!1,ai._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function xa(t,e,a){var h,u=[1,4,2,8],_,g,x,w,T,I,R,U;for(_=0,I=t.length;_<I;_++)t[_]._code=di(t[_],e);for(x=0;x<4;x++){for(R=u[x],h=[],_=0,I=t.length,g=I-1;_<I;g=_++)w=t[_],T=t[g],w._code&R?T._code&R||(U=Be(T,w,R,e,a),U._code=di(U,e),h.push(U)):(T._code&R&&(U=Be(T,w,R,e,a),U._code=di(U,e),h.push(U)),h.push(w));t=h}return t}function wa(t,e){var a,h,u,_,g,x,w,T,I;if(!t||t.length===0)throw new Error("latlngs not passed");zt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var R=$([0,0]),U=rt(t),xt=U.getNorthWest().distanceTo(U.getSouthWest())*U.getNorthEast().distanceTo(U.getNorthWest());xt<1700&&(R=Rs(t));var dt=t.length,Nt=[];for(a=0;a<dt;a++){var Ct=$(t[a]);Nt.push(e.project($([Ct.lat-R.lat,Ct.lng-R.lng])))}for(x=w=T=0,a=0,h=dt-1;a<dt;h=a++)u=Nt[a],_=Nt[h],g=u.y*_.x-_.y*u.x,w+=(u.x+_.x)*g,T+=(u.y+_.y)*g,x+=g*3;x===0?I=Nt[0]:I=[w/x,T/x];var Ii=e.unproject(Z(I));return $([Ii.lat+R.lat,Ii.lng+R.lng])}function Rs(t){for(var e=0,a=0,h=0,u=0;u<t.length;u++){var _=$(t[u]);e+=_.lat,a+=_.lng,h++}return $([e/h,a/h])}var Fc={__proto__:null,clipPolygon:xa,polygonCenter:wa,centroid:Rs};function ba(t,e){if(!e||!t.length)return t.slice();var a=e*e;return t=Uc(t,a),t=Gc(t,a),t}function La(t,e,a){return Math.sqrt(le(t,e,a,!0))}function qc(t,e,a){return le(t,e,a)}function Gc(t,e){var a=t.length,h=typeof Uint8Array<"u"?Uint8Array:Array,u=new h(a);u[0]=u[a-1]=1,Ds(t,u,e,0,a-1);var _,g=[];for(_=0;_<a;_++)u[_]&&g.push(t[_]);return g}function Ds(t,e,a,h,u){var _=0,g,x,w;for(x=h+1;x<=u-1;x++)w=le(t[x],t[h],t[u],!0),w>_&&(g=x,_=w);_>a&&(e[g]=1,Ds(t,e,a,h,g),Ds(t,e,a,g,u))}function Uc(t,e){for(var a=[t[0]],h=1,u=0,_=t.length;h<_;h++)jc(t[h],t[u])>e&&(a.push(t[h]),u=h);return u<_-1&&a.push(t[_-1]),a}var Pa;function Aa(t,e,a,h,u){var _=h?Pa:di(t,a),g=di(e,a),x,w,T;for(Pa=g;;){if(!(_|g))return[t,e];if(_&g)return!1;x=_||g,w=Be(t,e,x,a,u),T=di(w,a),x===_?(t=w,_=T):(e=w,g=T)}}function Be(t,e,a,h,u){var _=e.x-t.x,g=e.y-t.y,x=h.min,w=h.max,T,I;return a&8?(T=t.x+_*(w.y-t.y)/g,I=w.y):a&4?(T=t.x+_*(x.y-t.y)/g,I=x.y):a&2?(T=w.x,I=t.y+g*(w.x-t.x)/_):a&1&&(T=x.x,I=t.y+g*(x.x-t.x)/_),new F(T,I,u)}function di(t,e){var a=0;return t.x<e.min.x?a|=1:t.x>e.max.x&&(a|=2),t.y<e.min.y?a|=4:t.y>e.max.y&&(a|=8),a}function jc(t,e){var a=e.x-t.x,h=e.y-t.y;return a*a+h*h}function le(t,e,a,h){var u=e.x,_=e.y,g=a.x-u,x=a.y-_,w=g*g+x*x,T;return w>0&&(T=((t.x-u)*g+(t.y-_)*x)/w,T>1?(u=a.x,_=a.y):T>0&&(u+=g*T,_+=x*T)),g=t.x-u,x=t.y-_,h?g*g+x*x:new F(u,_)}function zt(t){return!k(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Ta(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zt(t)}function Ca(t,e){var a,h,u,_,g,x,w,T;if(!t||t.length===0)throw new Error("latlngs not passed");zt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var I=$([0,0]),R=rt(t),U=R.getNorthWest().distanceTo(R.getSouthWest())*R.getNorthEast().distanceTo(R.getNorthWest());U<1700&&(I=Rs(t));var xt=t.length,dt=[];for(a=0;a<xt;a++){var Nt=$(t[a]);dt.push(e.project($([Nt.lat-I.lat,Nt.lng-I.lng])))}for(a=0,h=0;a<xt-1;a++)h+=dt[a].distanceTo(dt[a+1])/2;if(h===0)T=dt[0];else for(a=0,_=0;a<xt-1;a++)if(g=dt[a],x=dt[a+1],u=g.distanceTo(x),_+=u,_>h){w=(_-h)/u,T=[x.x-w*(x.x-g.x),x.y-w*(x.y-g.y)];break}var Ct=e.unproject(Z(T));return $([Ct.lat+I.lat,Ct.lng+I.lng])}var Hc={__proto__:null,simplify:ba,pointToSegmentDistance:La,closestPointOnSegment:qc,clipSegment:Aa,_getEdgeIntersection:Be,_getBitCode:di,_sqClosestPointOnSegment:le,isFlat:zt,_flat:Ta,polylineCenter:Ca},Zs={project:function(t){return new F(t.lng,t.lat)},unproject:function(t){return new Y(t.y,t.x)},bounds:new et([-180,-90],[180,90])},Fs={R:6378137,R_MINOR:6356752314245179e-9,bounds:new et([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,a=this.R,h=t.lat*e,u=this.R_MINOR/a,_=Math.sqrt(1-u*u),g=_*Math.sin(h),x=Math.tan(Math.PI/4-h/2)/Math.pow((1-g)/(1+g),_/2);return h=-a*Math.log(Math.max(x,1e-10)),new F(t.lng*e*a,h)},unproject:function(t){for(var e=180/Math.PI,a=this.R,h=this.R_MINOR/a,u=Math.sqrt(1-h*h),_=Math.exp(-t.y/a),g=Math.PI/2-2*Math.atan(_),x=0,w=.1,T;x<15&&Math.abs(w)>1e-7;x++)T=u*Math.sin(g),T=Math.pow((1-T)/(1+T),u/2),w=Math.PI/2-2*Math.atan(_*T)-g,g+=w;return new Y(g*e,t.x*e/a)}},Wc={__proto__:null,LonLat:Zs,Mercator:Fs,SphericalMercator:fs},$c=o({},ni,{code:"EPSG:3395",projection:Fs,transformation:function(){var t=.5/(Math.PI*Fs.R);return te(t,.5,-t,.5)}()}),Ea=o({},ni,{code:"EPSG:4326",projection:Zs,transformation:te(1/180,1,-1/180,.5)}),Vc=o({},Qt,{projection:Zs,transformation:te(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 a=e.lng-t.lng,h=e.lat-t.lat;return Math.sqrt(a*a+h*h)},infinite:!0});Qt.Earth=ni,Qt.EPSG3395=$c,Qt.EPSG3857=_s,Qt.EPSG900913=tc,Qt.EPSG4326=Ea,Qt.Simple=Vc;var Rt=Ji.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[d(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[d(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 a=this.getEvents();e.on(a,this),this.once("remove",function(){e.off(a,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});V.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=d(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=d(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 d(t)in this._layers},eachLayer:function(t,e){for(var a in this._layers)t.call(e,this._layers[a]);return this},_addLayers:function(t){t=t?k(t)?t:[t]:[];for(var e=0,a=t.length;e<a;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[d(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=d(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,a=this._getZoomSpan();for(var h in this._zoomBoundLayers){var u=this._zoomBoundLayers[h].options;t=u.minZoom===void 0?t:Math.min(t,u.minZoom),e=u.maxZoom===void 0?e:Math.max(e,u.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ti=Rt.extend({initialize:function(t,e){P(this,e),this._layers={};var a,h;if(t)for(a=0,h=t.length;a<h;a++)this.addLayer(t[a])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),a,h;for(a in this._layers)h=this._layers[a],h[t]&&h[t].apply(h,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var a in this._layers)t.call(e,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return d(t)}}),Qc=function(t,e){return new Ti(t,e)},Xt=Ti.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ti.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ti.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Tt;for(var e in this._layers){var a=this._layers[e];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Xc=function(t,e){return new Xt(t,e)},Ci=Vt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){P(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var a=this._getIconUrl(t);if(!a){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(a,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(h,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(t,e){var a=this.options,h=a[e+"Size"];typeof h=="number"&&(h=[h,h]);var u=Z(h),_=Z(e==="shadow"&&a.shadowAnchor||a.iconAnchor||u&&u.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(a.className||""),_&&(t.style.marginLeft=-_.x+"px",t.style.marginTop=-_.y+"px"),u&&(t.style.width=u.x+"px",t.style.height=u.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return N.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Kc(t){return new Ci(t)}var ue=Ci.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof ue.imagePath!="string"&&(ue.imagePath=this._detectIconPath()),(this.options.imagePath||ue.imagePath)+Ci.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(a,h,u){var _=h.exec(a);return _&&_[u]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Q("div","leaflet-default-icon-path",document.body),e=se(t,"background-image")||se(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Sa=Ht.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ai(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),G(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ot(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,a=e._map,h=this._marker.options.autoPanSpeed,u=this._marker.options.autoPanPadding,_=ui(e._icon),g=a.getPixelBounds(),x=a.getPixelOrigin(),w=At(g.min._subtract(x).add(u),g.max._subtract(x).subtract(u));if(!w.contains(_)){var T=Z((Math.max(w.max.x,_.x)-w.max.x)/(g.max.x-w.max.x)-(Math.min(w.min.x,_.x)-w.min.x)/(g.min.x-w.min.x),(Math.max(w.max.y,_.y)-w.max.y)/(g.max.y-w.max.y)-(Math.min(w.min.y,_.y)-w.min.y)/(g.min.y-w.min.y)).multiplyBy(h);a.panBy(T,{animate:!1}),this._draggable._newPos._add(T),this._draggable._startPos._add(T),ht(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=nt(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(pt(this._panRequest),this._panRequest=nt(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,a=e._shadow,h=ui(e._icon),u=e._map.layerPointToLatLng(h);a&&ht(a,h),e._latlng=u,t.latlng=u,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){pt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Re=Rt.extend({options:{icon:new ue,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){P(this,e),this._latlng=$(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=$(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),h=!1;a!==this._icon&&(this._icon&&this._removeIcon(),h=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),G(a,e),t.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&q(a,"focus",this._panOnFocus,this);var u=t.icon.createShadow(this._shadow),_=!1;u!==this._shadow&&(this._removeShadow(),_=!0),u&&(G(u,e),u.alt=""),this._shadow=u,t.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),u&&_&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&J(this._icon,"focus",this._panOnFocus,this),st(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&st(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ht(this._icon,t),this._shadow&&ht(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(G(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Sa)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Sa(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&It(this._icon,t),this._shadow&&It(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,a=e.iconSize?Z(e.iconSize):Z(0,0),h=e.iconAnchor?Z(e.iconAnchor):Z(0,0);t.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:a.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Yc(t,e){return new Re(t,e)}var oi=Rt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return P(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),De=oi.extend({options:{fill:!0,radius:10},initialize:function(t,e){P(this,e),this._latlng=$(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=$(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return oi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,a=this._clickTolerance(),h=[t+a,e+a];this._pxBounds=new et(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Jc(t,e){return new De(t,e)}var qs=De.extend({initialize:function(t,e,a){if(typeof e=="number"&&(e=o({},a,{radius:e})),P(this,e),this._latlng=$(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Tt(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:oi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,a=this._map,h=a.options.crs;if(h.distance===ni.distance){var u=Math.PI/180,_=this._mRadius/ni.R/u,g=a.project([e+_,t]),x=a.project([e-_,t]),w=g.add(x).divideBy(2),T=a.unproject(w).lat,I=Math.acos((Math.cos(_*u)-Math.sin(e*u)*Math.sin(T*u))/(Math.cos(e*u)*Math.cos(T*u)))/u;(isNaN(I)||I===0)&&(I=_/Math.cos(Math.PI/180*e)),this._point=w.subtract(a.getPixelOrigin()),this._radius=isNaN(I)?0:w.x-a.project([T,t-I]).x,this._radiusY=w.y-g.y}else{var R=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(R).x}this._updateBounds()}});function tf(t,e,a){return new qs(t,e,a)}var Kt=oi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){P(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,a=null,h=le,u,_,g=0,x=this._parts.length;g<x;g++)for(var w=this._parts[g],T=1,I=w.length;T<I;T++){u=w[T-1],_=w[T];var R=h(t,u,_,!0);R<e&&(e=R,a=h(t,u,_))}return a&&(a.distance=Math.sqrt(e)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ca(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=$(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Tt,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return zt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],a=zt(t),h=0,u=t.length;h<u;h++)a?(e[h]=$(t[h]),this._bounds.extend(e[h])):e[h]=this._convertLatLngs(t[h]);return e},_project:function(){var t=new et;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new F(t,t);this._rawPxBounds&&(this._pxBounds=new et([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,a){var h=t[0]instanceof Y,u=t.length,_,g;if(h){for(g=[],_=0;_<u;_++)g[_]=this._map.latLngToLayerPoint(t[_]),a.extend(g[_]);e.push(g)}else for(_=0;_<u;_++)this._projectLatlngs(t[_],e,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,a,h,u,_,g,x,w;for(a=0,u=0,_=this._rings.length;a<_;a++)for(w=this._rings[a],h=0,g=w.length;h<g-1;h++)x=Aa(w[h],w[h+1],t,h,!0),x&&(e[u]=e[u]||[],e[u].push(x[0]),(x[1]!==w[h+1]||h===g-2)&&(e[u].push(x[1]),u++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,a=0,h=t.length;a<h;a++)t[a]=ba(t[a],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var a,h,u,_,g,x,w=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,_=this._parts.length;a<_;a++)for(x=this._parts[a],h=0,g=x.length,u=g-1;h<g;u=h++)if(!(!e&&h===0)&&La(t,x[u],x[h])<=w)return!0;return!1}});function ef(t,e){return new Kt(t,e)}Kt._flat=Ta;var Ei=Kt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wa(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Kt.prototype._convertLatLngs.call(this,t),a=e.length;return a>=2&&e[0]instanceof Y&&e[0].equals(e[a-1])&&e.pop(),e},_setLatLngs:function(t){Kt.prototype._setLatLngs.call(this,t),zt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,a=new F(e,e);if(t=new et(t.min.subtract(a),t.max.add(a)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,u=this._rings.length,_;h<u;h++)_=xa(this._rings[h],t,!0),_.length&&this._parts.push(_)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,a,h,u,_,g,x,w,T;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(_=0,w=this._parts.length;_<w;_++)for(a=this._parts[_],g=0,T=a.length,x=T-1;g<T;x=g++)h=a[g],u=a[x],h.y>t.y!=u.y>t.y&&t.x<(u.x-h.x)*(t.y-h.y)/(u.y-h.y)+h.x&&(e=!e);return e||Kt.prototype._containsPoint.call(this,t,!0)}});function sf(t,e){return new Ei(t,e)}var Yt=Xt.extend({initialize:function(t,e){P(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=k(t)?t:t.features,a,h,u;if(e){for(a=0,h=e.length;a<h;a++)u=e[a],(u.geometries||u.geometry||u.features||u.coordinates)&&this.addData(u);return this}var _=this.options;if(_.filter&&!_.filter(t))return this;var g=Ze(t,_);return g?(g.feature=Ge(t),g.defaultOptions=g.options,this.resetStyle(g),_.onEachFeature&&_.onEachFeature(t,g),this.addLayer(g)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=o({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function Ze(t,e){var a=t.type==="Feature"?t.geometry:t,h=a?a.coordinates:null,u=[],_=e&&e.pointToLayer,g=e&&e.coordsToLatLng||Gs,x,w,T,I;if(!h&&!a)return null;switch(a.type){case"Point":return x=g(h),Oa(_,t,x,e);case"MultiPoint":for(T=0,I=h.length;T<I;T++)x=g(h[T]),u.push(Oa(_,t,x,e));return new Xt(u);case"LineString":case"MultiLineString":return w=Fe(h,a.type==="LineString"?0:1,g),new Kt(w,e);case"Polygon":case"MultiPolygon":return w=Fe(h,a.type==="Polygon"?1:2,g),new Ei(w,e);case"GeometryCollection":for(T=0,I=a.geometries.length;T<I;T++){var R=Ze({geometry:a.geometries[T],type:"Feature",properties:t.properties},e);R&&u.push(R)}return new Xt(u);case"FeatureCollection":for(T=0,I=a.features.length;T<I;T++){var U=Ze(a.features[T],e);U&&u.push(U)}return new Xt(u);default:throw new Error("Invalid GeoJSON object.")}}function Oa(t,e,a,h){return t?t(e,a):new Re(a,h&&h.markersInheritOptions&&h)}function Gs(t){return new Y(t[1],t[0],t[2])}function Fe(t,e,a){for(var h=[],u=0,_=t.length,g;u<_;u++)g=e?Fe(t[u],e-1,a):(a||Gs)(t[u]),h.push(g);return h}function Us(t,e){return t=$(t),t.alt!==void 0?[y(t.lng,e),y(t.lat,e),y(t.alt,e)]:[y(t.lng,e),y(t.lat,e)]}function qe(t,e,a,h){for(var u=[],_=0,g=t.length;_<g;_++)u.push(e?qe(t[_],zt(t[_])?0:e-1,a,h):Us(t[_],h));return!e&&a&&u.length>0&&u.push(u[0].slice()),u}function Si(t,e){return t.feature?o({},t.feature,{geometry:e}):Ge(e)}function Ge(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var js={toGeoJSON:function(t){return Si(this,{type:"Point",coordinates:Us(this.getLatLng(),t)})}};Re.include(js),qs.include(js),De.include(js),Kt.include({toGeoJSON:function(t){var e=!zt(this._latlngs),a=qe(this._latlngs,e?1:0,!1,t);return Si(this,{type:(e?"Multi":"")+"LineString",coordinates:a})}}),Ei.include({toGeoJSON:function(t){var e=!zt(this._latlngs),a=e&&!zt(this._latlngs[0]),h=qe(this._latlngs,a?2:e?1:0,!0,t);return e||(h=[h]),Si(this,{type:(a?"Multi":"")+"Polygon",coordinates:h})}}),Ti.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(a){e.push(a.toGeoJSON(t).geometry.coordinates)}),Si(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 a=e==="GeometryCollection",h=[];return this.eachLayer(function(u){if(u.toGeoJSON){var _=u.toGeoJSON(t);if(a)h.push(_.geometry);else{var g=Ge(_);g.type==="FeatureCollection"?h.push.apply(h,g.features):h.push(g)}}}),a?Si(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Ia(t,e){return new Yt(t,e)}var nf=Ia,Ue=Rt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,a){this._url=t,this._bounds=rt(e),P(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(G(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){st(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&&Pi(this._image),this},bringToBack:function(){return this._map&&Ai(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=rt(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:Q("img");if(G(e,"leaflet-image-layer"),this._zoomAnimated&&G(e,"leaflet-zoom-animated"),this.options.className&&G(e,this.options.className),e.onselectstart=p,e.onmousemove=p,e.onload=f(this.fire,this,"load"),e.onerror=f(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),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;li(this._image,a,e)},_reset:function(){var t=this._image,e=new et(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=e.getSize();ht(t,e.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){It(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()}}),af=function(t,e,a){return new Ue(t,e,a)},za=Ue.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:Q("video");if(G(e,"leaflet-image-layer"),this._zoomAnimated&&G(e,"leaflet-zoom-animated"),this.options.className&&G(e,this.options.className),e.onselectstart=p,e.onmousemove=p,e.onloadeddata=f(this.fire,this,"load"),t){for(var a=e.getElementsByTagName("source"),h=[],u=0;u<a.length;u++)h.push(a[u].src);this._url=a.length>0?h:[e.src];return}k(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 _=0;_<this._url.length;_++){var g=Q("source");g.src=this._url[_],e.appendChild(g)}}});function of(t,e,a){return new za(t,e,a)}var Na=Ue.extend({_initImage:function(){var t=this._image=this._url;G(t,"leaflet-image-layer"),this._zoomAnimated&&G(t,"leaflet-zoom-animated"),this.options.className&&G(t,this.options.className),t.onselectstart=p,t.onmousemove=p}});function rf(t,e,a){return new Na(t,e,a)}var Wt=Rt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof Y||k(t))?(this._latlng=$(t),P(this,e)):(P(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&It(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&It(this._container,1),this.bringToFront(),this.options.interactive&&(G(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(It(this._container,0),this._removeTimeout=setTimeout(f(st,void 0,this._container),200)):st(this._container),this.options.interactive&&(ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=$(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Pi(this._container),this},bringToBack:function(){return this._map&&Ai(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Xt){e=null;var a=this._source._layers;for(var h in a)if(a[h]._map){e=a[h];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=Z(this.options.offset),a=this._getAnchor();this._zoomAnimated?ht(this._container,t.add(a)):e=e.add(t).add(a);var h=this._containerBottom=-e.y,u=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=h+"px",this._container.style.left=u+"px"}},_getAnchor:function(){return[0,0]}});V.include({_initOverlay:function(t,e,a,h){var u=e;return u instanceof t||(u=new t(h).setContent(e)),a&&u.setLatLng(a),u}}),Rt.include({_initOverlay:function(t,e,a,h){var u=a;return u instanceof t?(P(u,h),u._source=this):(u=e&&!h?e:new t(h,this),u.setContent(a)),u}});var je=Wt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Wt.prototype.openOn.call(this,t)},onAdd:function(t){Wt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oi||this._source.on("preclick",ci))},onRemove:function(t){Wt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oi||this._source.off("preclick",ci))},getEvents:function(){var t=Wt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=Q("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=Q("div",t+"-content-wrapper",e);if(this._contentNode=Q("div",t+"-content",a),re(e),zs(this._contentNode),q(e,"contextmenu",ci),this._tipContainer=Q("div",t+"-tip-container",e),this._tip=Q("div",t+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=Q("a",t+"-close-button",e);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',q(h,"click",function(u){gt(u),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),e.width=a+1+"px",e.whiteSpace="",e.height="";var h=t.offsetHeight,u=this.options.maxHeight,_="leaflet-popup-scrolled";u&&h>u?(e.height=u+"px",G(t,_)):ot(t,_),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();ht(this._container,e.add(a))},_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(se(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+e,h=this._containerWidth,u=new F(this._containerLeft,-a-this._containerBottom);u._add(ui(this._container));var _=t.layerPointToContainerPoint(u),g=Z(this.options.autoPanPadding),x=Z(this.options.autoPanPaddingTopLeft||g),w=Z(this.options.autoPanPaddingBottomRight||g),T=t.getSize(),I=0,R=0;_.x+h+w.x>T.x&&(I=_.x+h-T.x+w.x),_.x-I-x.x<0&&(I=_.x-x.x),_.y+a+w.y>T.y&&(R=_.y+a-T.y+w.y),_.y-R-x.y<0&&(R=_.y-x.y),(I||R)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([I,R]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),hf=function(t,e){return new je(t,e)};V.mergeOptions({closePopupOnClick:!0}),V.include({openPopup:function(t,e,a){return this._initOverlay(je,t,e,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Rt.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 Xt||(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)){fi(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof oi)){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 He=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=Q("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,a,h=this._map,u=this._container,_=h.latLngToContainerPoint(h.getCenter()),g=h.layerPointToContainerPoint(t),x=this.options.direction,w=u.offsetWidth,T=u.offsetHeight,I=Z(this.options.offset),R=this._getAnchor();x==="top"?(e=w/2,a=T):x==="bottom"?(e=w/2,a=0):x==="center"?(e=w/2,a=T/2):x==="right"?(e=0,a=T/2):x==="left"?(e=w,a=T/2):g.x<_.x?(x="right",e=0,a=T/2):(x="left",e=w+(I.x+R.x)*2,a=T/2),t=t.subtract(Z(e,a,!0)).add(I).add(R),ot(u,"leaflet-tooltip-right"),ot(u,"leaflet-tooltip-left"),ot(u,"leaflet-tooltip-top"),ot(u,"leaflet-tooltip-bottom"),G(u,"leaflet-tooltip-"+x),ht(u,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&It(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return Z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),lf=function(t,e){return new He(t,e)};V.include({openTooltip:function(t,e,a){return this._initOverlay(He,t,e,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Rt.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(He,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var e=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,a.click=this._openTooltip,this._map?this._addFocusListeners():a.add=this._addFocusListeners),this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),this[e](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Xt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&(q(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),q(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,a,h;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),h=this._map.containerPointToLayerPoint(a),e=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(e)}});var ka=Ci.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Oe(e),e.appendChild(a.html)):e.innerHTML=a.html!==!1?a.html:"",a.bgPos){var h=Z(a.bgPos);e.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function uf(t){return new ka(t)}Ci.Default=ue;var ce=Rt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:N.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){P(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),st(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Pi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ai(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=m(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof F?t:new F(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,a=-t(-1/0,1/0),h=0,u=e.length,_;h<u;h++)_=e[h].style.zIndex,e[h]!==this._container&&_&&(a=t(a,+_));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!N.ielt9){It(this._container,this.options.opacity);var t=+new Date,e=!1,a=!1;for(var h in this._tiles){var u=this._tiles[h];if(!(!u.current||!u.loaded)){var _=Math.min(1,(t-u.loaded)/200);It(u.el,_),_<1?e=!0:(u.active?a=!0:this._onOpaqueTile(u),u.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),e&&(pt(this._fadeFrame),this._fadeFrame=nt(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=Q("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t!==void 0){for(var a in this._levels)a=Number(a),this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=e-Math.abs(t-a),this._onUpdateLevel(a)):(st(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var h=this._levels[t],u=this._map;return h||(h=this._levels[t]={},h.el=Q("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=e,h.origin=u.project(u.unproject(u.getPixelOrigin()),t).round(),h.zoom=t,this._setZoomTransform(h,u.getCenter(),u.getZoom()),p(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var t,e,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var h=e.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)st(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,a,h){var u=Math.floor(t/2),_=Math.floor(e/2),g=a-1,x=new F(+u,+_);x.z=+g;var w=this._tileCoordsToKey(x),T=this._tiles[w];return T&&T.active?(T.retain=!0,!0):(T&&T.loaded&&(T.retain=!0),g>h?this._retainParent(u,_,g,h):!1)},_retainChildren:function(t,e,a,h){for(var u=2*t;u<2*t+2;u++)for(var _=2*e;_<2*e+2;_++){var g=new F(u,_);g.z=a+1;var x=this._tileCoordsToKey(g),w=this._tiles[x];if(w&&w.active){w.retain=!0;continue}else w&&w.loaded&&(w.retain=!0);a+1<h&&this._retainChildren(u,_,a+1,h)}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,a,h){var u=Math.round(e);this.options.maxZoom!==void 0&&u>this.options.maxZoom||this.options.minZoom!==void 0&&u<this.options.minZoom?u=void 0:u=this._clampZoom(u);var _=this.options.updateWhenZooming&&u!==this._tileZoom;(!h||_)&&(this._tileZoom=u,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),u!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,e)},_setZoomTransform:function(t,e,a){var h=this._map.getZoomScale(a,t.zoom),u=t.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(e,a)).round();N.any3d?li(t.el,u,h):ht(t.el,u)},_resetGrid:function(){var t=this._map,e=t.options.crs,a=this._tileSize=this.getTileSize(),h=this._tileZoom,u=this._map.getPixelWorldBounds(this._tileZoom);u&&(this._globalTileRange=this._pxBoundsToTileRange(u)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],h).x/a.x),Math.ceil(t.project([0,e.wrapLng[1]],h).x/a.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],h).y/a.x),Math.ceil(t.project([e.wrapLat[1],0],h).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,a=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),h=e.getZoomScale(a,this._tileZoom),u=e.project(t,this._tileZoom).floor(),_=e.getSize().divideBy(h*2);return new et(u.subtract(_),u.add(_))},_update:function(t){var e=this._map;if(e){var a=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(t),u=this._pxBoundsToTileRange(h),_=u.getCenter(),g=[],x=this.options.keepBuffer,w=new et(u.getBottomLeft().subtract([x,-x]),u.getTopRight().add([x,-x]));if(!(isFinite(u.min.x)&&isFinite(u.min.y)&&isFinite(u.max.x)&&isFinite(u.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var T in this._tiles){var I=this._tiles[T].coords;(I.z!==this._tileZoom||!w.contains(new F(I.x,I.y)))&&(this._tiles[T].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var R=u.min.y;R<=u.max.y;R++)for(var U=u.min.x;U<=u.max.x;U++){var xt=new F(U,R);if(xt.z=this._tileZoom,!!this._isValidTile(xt)){var dt=this._tiles[this._tileCoordsToKey(xt)];dt?dt.current=!0:g.push(xt)}}if(g.sort(function(Ct,Ii){return Ct.distanceTo(_)-Ii.distanceTo(_)}),g.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Nt=document.createDocumentFragment();for(U=0;U<g.length;U++)this._addTile(g[U],Nt);this._level.el.appendChild(Nt)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var a=this._globalTileRange;if(!e.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!e.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(t);return rt(this.options.bounds).overlaps(h)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,a=this.getTileSize(),h=t.scaleBy(a),u=h.add(a),_=e.unproject(h,t.z),g=e.unproject(u,t.z);return[_,g]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),a=new Tt(e[0],e[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),a=new F(+e[0],+e[1]);return a.z=+e[2],a},_removeTile:function(t){var e=this._tiles[t];e&&(st(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){G(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=p,t.onmousemove=p,N.ielt9&&this.options.opacity<1&&It(t,this.options.opacity)},_addTile:function(t,e){var a=this._getTilePos(t),h=this._tileCoordsToKey(t),u=this.createTile(this._wrapCoords(t),f(this._tileReady,this,t));this._initTile(u),this.createTile.length<2&&nt(f(this._tileReady,this,t,null,u)),ht(u,a),this._tiles[h]={el:u,coords:t,current:!0},e.appendChild(u),this.fire("tileloadstart",{tile:u,coords:t})},_tileReady:function(t,e,a){e&&this.fire("tileerror",{error:e,tile:a,coords:t});var h=this._tileCoordsToKey(t);a=this._tiles[h],a&&(a.loaded=+new Date,this._map._fadeAnimated?(It(a.el,0),pt(this._fadeFrame),this._fadeFrame=nt(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),e||(G(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),N.ielt9||!this._map._fadeAnimated?nt(this._pruneTiles,this):setTimeout(f(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new F(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new et(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 cf(t){return new ce(t)}var Oi=ce.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=P(this,e),e.detectRetina&&N.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 a=document.createElement("img");return q(a,"load",f(this._tileOnLoad,this,e,a)),q(a,"error",f(this._tileOnError,this,e,a)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(a.referrerPolicy=this.options.referrerPolicy),a.alt="",a.src=this.getTileUrl(t),a},getTileUrl:function(t){var e={r:N.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=a),e["-y"]=a}return B(this._url,o(e,this.options))},_tileOnLoad:function(t,e){N.ielt9?setTimeout(f(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,a){var h=this.options.errorTileUrl;h&&e.getAttribute("src")!==h&&(e.src=h),t(a,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,a=this.options.zoomReverse,h=this.options.zoomOffset;return a&&(t=e-t),t+h},_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=p,e.onerror=p,!e.complete)){e.src=H;var a=this._tiles[t].coords;st(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:a})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",H),ce.prototype._removeTile.call(this,t)},_tileReady:function(t,e,a){if(!(!this._map||a&&a.getAttribute("src")===H))return ce.prototype._tileReady.call(this,t,e,a)}});function Ba(t,e){return new Oi(t,e)}var Ra=Oi.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 a=o({},this.defaultWmsParams);for(var h in e)h in this.options||(a[h]=e[h]);e=P(this,e);var u=e.detectRetina&&N.retina?2:1,_=this.getTileSize();a.width=_.x*u,a.height=_.y*u,this.wmsParams=a},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,Oi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),a=this._crs,h=At(a.project(e[0]),a.project(e[1])),u=h.min,_=h.max,g=(this._wmsVersion>=1.3&&this._crs===Ea?[u.y,u.x,_.y,_.x]:[u.x,u.y,_.x,_.y]).join(","),x=Oi.prototype.getTileUrl.call(this,t);return x+E(this.wmsParams,x,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+g},setParams:function(t,e){return o(this.wmsParams,t),e||this.redraw(),this}});function ff(t,e){return new Ra(t,e)}Oi.WMS=Ra,Ba.wms=ff;var Jt=Rt.extend({options:{padding:.1},initialize:function(t){P(this,t),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),G(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 a=this._map.getZoomScale(e,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),u=this._map.project(this._center,e),_=h.multiplyBy(-a).add(u).subtract(this._map._getNewPixelOrigin(t,e));N.any3d?li(this._container,_,a):ht(this._container,_)},_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(),a=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new et(a,a.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Da=Jt.extend({options:{tolerance:0},getEvents:function(){var t=Jt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Jt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");q(t,"mousemove",this._onMouseMove,this),q(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),q(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){pt(this._redrawRequest),delete this._ctx,st(this._container),J(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)){Jt.prototype._update.call(this);var t=this._bounds,e=this._container,a=t.getSize(),h=N.retina?2:1;ht(e,t.min),e.width=h*a.x,e.height=h*a.y,e.style.width=a.x+"px",e.style.height=a.y+"px",N.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Jt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[d(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,a=e.next,h=e.prev;a?a.prev=h:this._drawLast=h,h?h.next=a:this._drawFirst=a,delete t._order,delete this._layers[d(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(/[, ]+/),a=[],h,u;for(u=0;u<e.length;u++){if(h=Number(e[u]),isNaN(h))return;a.push(h)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||nt(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new et,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var a=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)t=h.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var a,h,u,_,g=t._parts,x=g.length,w=this._ctx;if(x){for(w.beginPath(),a=0;a<x;a++){for(h=0,u=g[a].length;h<u;h++)_=g[a][h],w[h?"lineTo":"moveTo"](_.x,_.y);e&&w.closePath()}this._fillStroke(w,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,a=this._ctx,h=Math.max(Math.round(t._radius),1),u=(Math.max(Math.round(t._radiusY),1)||h)/h;u!==1&&(a.save(),a.scale(1,u)),a.beginPath(),a.arc(e.x,e.y/u,h,0,Math.PI*2,!1),u!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,e){var a=e.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&a.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),a,h,u=this._drawFirst;u;u=u.next)a=u.layer,a.options.interactive&&a._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(h=a);this._fireEvent(h?[h]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ot(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var a,h,u=this._drawFirst;u;u=u.next)a=u.layer,a.options.interactive&&a._containsPoint(e)&&(h=a);h!==this._hoveredLayer&&(this._handleMouseOut(t),h&&(G(this._container,"leaflet-interactive"),this._fireEvent([h],t,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(f(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,a){this._map._fireDOMEvent(e,a||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var a=e.next,h=e.prev;if(a)a.prev=h;else return;h?h.next=a:a&&(this._drawFirst=a),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var a=e.next,h=e.prev;if(h)h.next=a;else return;a?a.prev=h:h&&(this._drawLast=h),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Za(t){return N.canvas?new Da(t):null}var fe=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),df={_initContainer:function(){this._container=Q("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Jt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=fe("shape");G(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=fe("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[d(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;st(e),t.removeInteractiveTarget(e),delete this._layers[d(t)]},_updateStyle:function(t){var e=t._stroke,a=t._fill,h=t.options,u=t._container;u.stroked=!!h.stroke,u.filled=!!h.fill,h.stroke?(e||(e=t._stroke=fe("stroke")),u.appendChild(e),e.weight=h.weight+"px",e.color=h.color,e.opacity=h.opacity,h.dashArray?e.dashStyle=k(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=h.lineCap.replace("butt","flat"),e.joinstyle=h.lineJoin):e&&(u.removeChild(e),t._stroke=null),h.fill?(a||(a=t._fill=fe("fill")),u.appendChild(a),a.color=h.fillColor||h.color,a.opacity=h.fillOpacity):a&&(u.removeChild(a),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),a=Math.round(t._radius),h=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+a+","+h+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Pi(t._container)},_bringToBack:function(t){Ai(t._container)}},We=N.vml?fe:Un,de=Jt.extend({_initContainer:function(){this._container=We("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=We("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){st(this._container),J(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Jt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,a.setAttribute("width",e.x),a.setAttribute("height",e.y)),ht(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=We("path");t.options.className&&G(e,t.options.className),t.options.interactive&&G(e,"leaflet-interactive"),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){st(t._path),t.removeInteractiveTarget(t._path),delete this._layers[d(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,a=t.options;e&&(a.stroke?(e.setAttribute("stroke",a.color),e.setAttribute("stroke-opacity",a.opacity),e.setAttribute("stroke-width",a.weight),e.setAttribute("stroke-linecap",a.lineCap),e.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?e.setAttribute("stroke-dasharray",a.dashArray):e.removeAttribute("stroke-dasharray"),a.dashOffset?e.setAttribute("stroke-dashoffset",a.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),a.fill?(e.setAttribute("fill",a.fillColor||a.color),e.setAttribute("fill-opacity",a.fillOpacity),e.setAttribute("fill-rule",a.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,jn(t._parts,e))},_updateCircle:function(t){var e=t._point,a=Math.max(Math.round(t._radius),1),h=Math.max(Math.round(t._radiusY),1)||a,u="a"+a+","+h+" 0 1,0 ",_=t._empty()?"M0 0":"M"+(e.x-a)+","+e.y+u+a*2+",0 "+u+-a*2+",0 ";this._setPath(t,_)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Pi(t._path)},_bringToBack:function(t){Ai(t._path)}});N.vml&&de.include(df);function Fa(t){return N.svg||N.vml?new de(t):null}V.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&&Za(t)||Fa(t)}});var qa=Ei.extend({initialize:function(t,e){Ei.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=rt(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function _f(t,e){return new qa(t,e)}de.create=We,de.pointsToPath=jn,Yt.geometryToLayer=Ze,Yt.coordsToLatLng=Gs,Yt.coordsToLatLngs=Fe,Yt.latLngToCoords=Us,Yt.latLngsToCoords=qe,Yt.getFeature=Si,Yt.asFeature=Ge,V.mergeOptions({boxZoom:!0});var Ga=Ht.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(){q(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){J(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){st(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(),ne(),Ps(),this._startPoint=this._map.mouseEventToContainerPoint(t),q(document,{contextmenu:fi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Q("div","leaflet-zoom-box",this._container),G(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new et(this._point,this._startPoint),a=e.getSize();ht(this._box,e.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(st(this._box),ot(this._container,"leaflet-crosshair")),ae(),As(),J(document,{contextmenu:fi,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(f(this._resetState,this),0);var e=new Tt(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())}});V.addInitHook("addHandler","boxZoom",Ga),V.mergeOptions({doubleClickZoom:!0});var Ua=Ht.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,a=e.getZoom(),h=e.options.zoomDelta,u=t.originalEvent.shiftKey?a-h:a+h;e.options.doubleClickZoom==="center"?e.setZoom(u):e.setZoomAround(t.containerPoint,u)}});V.addInitHook("addHandler","doubleClickZoom",Ua),V.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ja=Ht.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ai(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))}G(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ot(this._map._container,"leaflet-grab"),ot(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=rt(this._map.options.maxBounds);this._offsetLimit=At(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,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),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.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.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),a=this._initialWorldOffset,h=this._draggable._newPos.x,u=(h-e+a)%t+e-a,_=(h+e+a)%t-e-a,g=Math.abs(u+a)<Math.abs(_+a)?u:_;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=g},_onDragEnd:function(t){var e=this._map,a=e.options,h=!a.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),h)e.fire("moveend");else{this._prunePositions(+new Date);var u=this._lastPos.subtract(this._positions[0]),_=(this._lastTime-this._times[0])/1e3,g=a.easeLinearity,x=u.multiplyBy(g/_),w=x.distanceTo([0,0]),T=Math.min(a.inertiaMaxSpeed,w),I=x.multiplyBy(T/w),R=T/(a.inertiaDeceleration*g),U=I.multiplyBy(-R/2).round();!U.x&&!U.y?e.fire("moveend"):(U=e._limitOffset(U,e.options.maxBounds),nt(function(){e.panBy(U,{duration:R,easeLinearity:g,noMoveStart:!0,animate:!0})}))}}});V.addInitHook("addHandler","dragging",ja),V.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ha=Ht.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),q(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),J(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,a=t.scrollTop||e.scrollTop,h=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(h,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},a=this.keyCodes,h,u;for(h=0,u=a.left.length;h<u;h++)e[a.left[h]]=[-1*t,0];for(h=0,u=a.right.length;h<u;h++)e[a.right[h]]=[t,0];for(h=0,u=a.down.length;h<u;h++)e[a.down[h]]=[0,t];for(h=0,u=a.up.length;h<u;h++)e[a.up[h]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},a=this.keyCodes,h,u;for(h=0,u=a.zoomIn.length;h<u;h++)e[a.zoomIn[h]]=t;for(h=0,u=a.zoomOut.length;h<u;h++)e[a.zoomOut[h]]=-t},_addHooks:function(){q(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){J(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,a=this._map,h;if(e in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(h=this._panKeys[e],t.shiftKey&&(h=Z(h).multiplyBy(3)),a.options.maxBounds&&(h=a._limitOffset(Z(h),a.options.maxBounds)),a.options.worldCopyJump){var u=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(h)));a.panTo(u)}else a.panBy(h)}else if(e in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;fi(t)}}});V.addInitHook("addHandler","keyboard",Ha),V.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Wa=Ht.extend({addHooks:function(){q(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){J(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=pa(t),a=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var h=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(f(this._performZoom,this),h),fi(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),u=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,_=a?Math.ceil(u/a)*a:u,g=t._limitZoom(e+(this._delta>0?_:-_))-e;this._delta=0,this._startTime=null,g&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+g):t.setZoomAround(this._lastMousePos,e+g))}});V.addInitHook("addHandler","scrollWheelZoom",Wa);var mf=600;V.mergeOptions({tapHold:N.touchNative&&N.safari&&N.mobile,tapTolerance:15});var $a=Ht.extend({addHooks:function(){q(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){J(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 F(e.clientX,e.clientY),this._holdTimeout=setTimeout(f(function(){this._cancel(),this._isTapValid()&&(q(document,"touchend",gt),q(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),mf),q(document,"touchend touchcancel contextmenu",this._cancel,this),q(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){J(document,"touchend",gt),J(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),J(document,"touchend touchcancel contextmenu",this._cancel,this),J(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new F(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});a._simulated=!0,e.target.dispatchEvent(a)}});V.addInitHook("addHandler","tapHold",$a),V.mergeOptions({touchZoom:N.touch,bounceAtZoomLimits:!0});var Va=Ht.extend({addHooks:function(){G(this._map._container,"leaflet-touch-zoom"),q(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ot(this._map._container,"leaflet-touch-zoom"),J(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 a=e.mouseEventToContainerPoint(t.touches[0]),h=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(a.add(h)._divideBy(2))),this._startDist=a.distanceTo(h),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),q(document,"touchmove",this._onTouchMove,this),q(document,"touchend touchcancel",this._onTouchEnd,this),gt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,a=e.mouseEventToContainerPoint(t.touches[0]),h=e.mouseEventToContainerPoint(t.touches[1]),u=a.distanceTo(h)/this._startDist;if(this._zoom=e.getScaleZoom(u,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&u<1||this._zoom>e.getMaxZoom()&&u>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,u===1)return}else{var _=a._add(h)._divideBy(2)._subtract(this._centerPoint);if(u===1&&_.x===0&&_.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(_),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),pt(this._animRequest);var g=f(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=nt(g,this,!0),gt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,pt(this._animRequest),J(document,"touchmove",this._onTouchMove,this),J(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))}});V.addInitHook("addHandler","touchZoom",Va),V.BoxZoom=Ga,V.DoubleClickZoom=Ua,V.Drag=ja,V.Keyboard=Ha,V.ScrollWheelZoom=Wa,V.TapHold=$a,V.TouchZoom=Va,n.Bounds=et,n.Browser=N,n.CRS=Qt,n.Canvas=Da,n.Circle=qs,n.CircleMarker=De,n.Class=Vt,n.Control=Bt,n.DivIcon=ka,n.DivOverlay=Wt,n.DomEvent=Ic,n.DomUtil=Sc,n.Draggable=ai,n.Evented=Ji,n.FeatureGroup=Xt,n.GeoJSON=Yt,n.GridLayer=ce,n.Handler=Ht,n.Icon=Ci,n.ImageOverlay=Ue,n.LatLng=Y,n.LatLngBounds=Tt,n.Layer=Rt,n.LayerGroup=Ti,n.LineUtil=Hc,n.Map=V,n.Marker=Re,n.Mixin=Zc,n.Path=oi,n.Point=F,n.PolyUtil=Fc,n.Polygon=Ei,n.Polyline=Kt,n.Popup=je,n.PosAnimation=ga,n.Projection=Wc,n.Rectangle=qa,n.Renderer=Jt,n.SVG=de,n.SVGOverlay=Na,n.TileLayer=Oi,n.Tooltip=He,n.Transformation=ds,n.Util=cs,n.VideoOverlay=za,n.bind=f,n.bounds=At,n.canvas=Za,n.circle=tf,n.circleMarker=Jc,n.control=he,n.divIcon=uf,n.extend=o,n.featureGroup=Xc,n.geoJSON=Ia,n.geoJson=nf,n.gridLayer=cf,n.icon=Kc,n.imageOverlay=af,n.latLng=$,n.latLngBounds=rt,n.layerGroup=Qc,n.map=zc,n.marker=Yc,n.point=Z,n.polygon=sf,n.polyline=ef,n.popup=hf,n.rectangle=_f,n.setOptions=P,n.stamp=d,n.svg=Fa,n.svgOverlay=rf,n.tileLayer=Ba,n.tooltip=lf,n.transformation=te,n.version=r,n.videoOverlay=of;var pf=window.L;n.noConflict=function(){return window.L=pf,this},window.L=n})}(_e,_e.exports)),_e.exports}var M=$s();const no=Ja({__proto__:null,default:eo(M)},[M]),Vs=M.Draggable.extend({initialize(i,s,n){M.Draggable.prototype.initialize.call(this,i,i),this._element=i,this._stepHeight=s??5.45,this._knobHeight=n??10,this.on("predrag",function(){this._newPos.x=0,this._newPos.y=this._adjust(this._newPos.y)},this)},_adjust(i){let s=Math.round(this._toValue(i));return s=Math.max(0,Math.min(this._maxValue,s)),this._toY(s)},_toY(i){return this._k*i+this._m},_toValue(i){return(i-this._m)/this._k},setSteps(i){this._maxValue=i-1,this._k=-this._stepHeight,this._m=0},setPosition(i){M.DomUtil.setPosition(this._element,L.point(0,this._adjust(i)))},setValue(i){this.setPosition(this._toY(i))},getValue(){return this._toValue(M.DomUtil.getPosition(this._element).y)}}),Qs=M.Handler.extend({options:{color:"#f00",weight:1,fillColor:"#ff0",fillOpacity:.7},pointEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?this.geometry.setLatLng(i.latlng):(this.tooltip.setContent("点击开始绘制"),this.geometry=new M.CircleMarker(i.latlng,this.options).addTo(this._map)),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.geometry.setLatLng(i.latlng),this.onFinish&&this.onFinish(this.geometry),this.disable()}},polylineEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setLatLngs([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("点击继续绘制,双击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Polyline([i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setLatLngs(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry)},_mouseDblClick(i){this.onFinish&&this.onFinish(this.geometry),this.disable()}},rectangleEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setBounds([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("继续点击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Rectangle([i.latlng,i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setBounds(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry),this.latlngs.length===2&&(this.onFinish&&this.onFinish(this.geometry),this.disable())},_mouseDblClick(i){}},polygonEvents:{_mouseMove(i){this.tooltip.setLatLng(i.latlng),this.tempPoint.setLatLng(i.latlng),this._map.openTooltip(this.tooltip),this.geometry&&this._map.hasLayer(this.geometry)?(this.geometry.setLatLngs([...this.latlngs,i.latlng]),this.latlngs.length?this.tooltip.setContent("点击继续绘制,双击完成绘制"):this.tooltip.setContent("点击开始绘制")):this.geometry=new M.Polygon([i.latlng],this.options).addTo(this._map),this.onDrawing&&this.onDrawing(this.geometry)},_mouseClick(i){this.latlngs.push(i.latlng),String(this.latlngs.at(-1))===String(this.latlngs.at(-2))&&(this.latlngs=this.latlngs.slice(0,this.latlngs.length-1)),this.geometry.setLatLngs(this.latlngs),this.onVertexAdd&&this.onVertexAdd(this.geometry)},_mouseDblClick(i){this.onFinish&&this.onFinish(this.geometry),this.disable()}},addHooks(){if(!this[this.drawType+"Events"])throw Error("未知的绘制类型");this[this.drawType+"Events"]._mouseMove&&this._map.on("mousemove",this[this.drawType+"Events"]._mouseMove,this),this[this.drawType+"Events"]._mouseClick&&this._map.on("click",this[this.drawType+"Events"]._mouseClick,this),this[this.drawType+"Events"]._mouseDblClick&&this._map.on("dblclick",this[this.drawType+"Events"]._mouseDblClick,this)},removeHooks(){this[this.drawType+"Events"]._mouseMove&&this._map.off("mousemove",this[this.drawType+"Events"]._mouseMove,this),this[this.drawType+"Events"]._mouseClick&&this._map.off("click",this[this.drawType+"Events"]._mouseClick,this),this[this.drawType+"Events"]._mouseDblClick&&this._map.off("dblclick",this[this.drawType+"Events"]._mouseDblClick,this)},setOptions(i){return M.Util.setOptions(this,i),this},enable(i,s={}){return M.Util.setOptions(this,s),this.onFinish=s.onFinish||new Function,this.onDrawing=s.onDrawing||new Function,this.onVertexAdd=s.onVertexAdd||new Function,this.drawType=i,this.latlngs=s.latlngs||[],this._map.setCursor("draw"),this.tempPoint=new M.CircleMarker([0,0],{weight:1,radius:5,color:"#3388ff",fillColor:"#fff",fillOpacity:1}).addTo(this._map),this.tooltip=new M.Tooltip({offset:[10,-10]}).setContent("点击开始绘制"),M.Handler.prototype.enable.call(this),this},disable(){return this._map.setCursor(),this.latlngs=[],this.removeHooks(),this.geometry=null,this._map.closeTooltip(this.tooltip),this._map.removeLayer(this.tempPoint),M.Handler.prototype.disable.call(this),this}}),zi={en_US:{home:"Go Home",capture:"Screen Capture",center:"View Full",north:"Move North",south:"Move South",east:"Move East",west:"Move West",zoomIn:"Zoom In",zoomOut:"Zoom Out",zoom:"Zoom to this level",dragZoom:"Drag to zoom",more:"More",draw:"Plot",layer:"Layer Manager",showEagle:"Show Eagle Map",hideEagle:"Hide Eagle Map",coordinate:"Coordinate",lng:"Longitude",lat:"Latitude",zoomLevel:"Zoom Level"},zh_CN:{home:"回到初始位置",capture:"截屏",center:"查看全图",north:"向上平移",south:"向下平移",east:"向右平移",west:"向左平移",zoomIn:"放大一级",zoomOut:"缩小一级",zoom:"缩放到此级别",dragZoom:"拖动缩放",more:"更多",draw:"标绘",layer:"图层管理",showEagle:"显示鹰眼图",hideEagle:"隐藏鹰眼图",coordinate:"坐标",lng:"经度",lat:"纬度",zoomLevel:"层级"}},me=M.Control.extend({options:{position:"bottomleft",coordinateUnit:"decimal"},initialize(i){M.setOptions(this,i),this.lastTime=+new Date,this.frames=0,M.Control.prototype.initialize.call(this,this.options)},onAdd(i){this.map=i,this.lang=i.lang,this.langDic=zi[this.lang],this._container=M.DomUtil.create("div",`${i.clsPrefix}-statusbar`),this.zoom=i.getZoom();const s=i.getCenter();return this.lng=s.lng,this.lat=s.lat,this._latlngContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._levelContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._fpsContainer=M.DomUtil.create("div",`${i.clsPrefix}-statusbar-item`,this._container),this._latlngContainer.innerHTML=`<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`,this._levelContainer.innerHTML=`<b>${this.langDic.zoomLevel}:</b>${this.zoom+1}`,this.initEvt(),this._container},initEvt(){this.map.on("mousemove",i=>{this.lat=i.latlng.lat,this.lng=i.latlng.lng,this._latlngContainer.innerHTML=`<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`}),this.map.on("zoomend",()=>{this.zoom=this.map.getZoom(),this._levelContainer.innerHTML=`<b>${this.langDic.zoomLevel}:</b>${this.zoom+1}`}),this.calcFPS()},getCoordinate(i){switch(this.options.coordinateUnit){case"decimal":return i.toFixed(6);case"radian":return(i*Math.PI/180).toFixed(10);case"degrees":return this._formatDeg(i)}},_formatDeg(i){const s=parseFloat(i),n=parseInt(s);let r=parseInt((s-n)*60),o=(s-n)*3600-r*60;return n+"°"+r+"′"+o.toFixed(2)+"″"},calcFPS(){if(this.frames++,this.frames>=30){const i=Date.now()-this.lastTime,s=Math.round(1e3/(i/this.frames));this._fpsContainer&&(this.frames=0,this.lastTime=Date.now(),this._fpsContainer.innerHTML=`<b>FPS:</b><span>${s}</span>`)}requestAnimationFrame(this.calcFPS.bind(this))}}),pe=M.Control.extend({includes:M.Evented?M.Evented.prototype:M.Mixin.Events,options:{position:"bottomright",toggleDisplay:!0,zoomLevelOffset:5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:100,height:100,collapsedWidth:22,collapsedHeight:22,aimingRectOptions:{color:"#ff7800",weight:1,interactive:!1},shadowRectOptions:{color:"#000000",weight:1,interactive:!1,opacity:0,fillOpacity:0},mapOptions:{}},initialize(i,s){M.Util.setOptions(this,s),this.options.aimingRectOptions.interactive=!1,this.options.shadowRectOptions.interactive=!1,this._layer=i},onAdd(i){this._mainMap=i,this.lang=i.options.lang??this.options.lang??"zh_CN",this.langDic=zi[this.lang],this._container=M.DomUtil.create("div","leaflet-control-eaglemap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",M.DomEvent.disableClickPropagation(this._container),M.DomEvent.on(this._container,"mousewheel",M.DomEvent.stopPropagation);let s={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:i.options.crs};return s=M.Util.extend(this.options.mapOptions,s),this._eagleMap=new M.Map(this._container,s),this._layer instanceof M.Layer&&this._eagleMap.addLayer(this._layer),this._mainMapMoving=!1,this._eagleMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._eagleMap.whenReady(M.Util.bind(function(){this._aimingRect=new M.Rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._eagleMap),this._shadowRect=new M.Rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._eagleMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._eagleMap.on("movestart",this._onEagleMapMoveStarted,this),this._eagleMap.on("move",this._onEagleMapMoving,this),this._eagleMap.on("moveend",this._onEagleMapMoved,this)},this)),this._container},addTo(i){M.Control.prototype.addTo.call(this,i);const s=this.options.centerFixed||this._mainMap.getCenter();return this._eagleMap.setView(s,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove(i){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._eagleMap.off("moveend",this._onEagleMapMoved,this),this._eagleMap.removeLayer(this._layer)},changeLayer(i){this._eagleMap.removeLayer(this._layer),this._layer=i,this._eagleMap.addLayer(this._layer)},_addToggleButton(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-eaglemap-toggle-display leaflet-control-eaglemap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText(){return this.options.minimized?this.langDic.showEagle:this.langDic.hideEagle},_createButton(i,s,n,r,o,l){const f=M.DomUtil.create("a",n,r);f.innerHTML=i,f.href="#",f.title=s;const c=M.DomEvent.stopPropagation;return M.DomEvent.on(f,"click",c).on(f,"mousedown",c).on(f,"dblclick",c).on(f,"click",M.DomEvent.preventDefault).on(f,"click",o,l),f},_toggleDisplayButtonClicked(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay(i){i!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved(i){if(this._eagleMapMoving)this._eagleMapMoving=!1;else{const s=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._eagleMap.setView(s,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving(i){this._aimingRect.setBounds(this._mainMap.getBounds())},_onEagleMapMoveStarted(i){if(!this.options.centerFixed){const s=this._aimingRect.getBounds(),n=this._eagleMap.latLngToContainerPoint(s.getSouthWest()),r=this._eagleMap.latLngToContainerPoint(s.getNorthEast());this._lastAimingRectPosition={sw:n,ne:r}}},_onEagleMapMoving(i){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new M.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onEagleMapMoved(i){this._mainMapMoving?this._mainMapMoving=!1:(this._eagleMapMoving=!0,this._mainMap.setView(this._eagleMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed(){const i=this.options.zoomLevelFixed;return this._isDefined(i)&&this._isInteger(i)},_decideZoom(i){if(this._isZoomLevelFixed())return i?this.options.zoomLevelFixed:this._mainMap.getZoom();if(i)return this._mainMap.getZoom()-this.options.zoomLevelOffset;{const s=this._eagleMap.getZoom()-this._mainMap.getZoom(),n=this._eagleMap.getZoom()+this.options.zoomLevelOffset;let r;return s<this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._eagleMap.getMinZoom()+this.options.zoomLevelOffset?this._eagleMap.getZoom()>this._lastEagleMapZoom?(r=this._mainMap.getZoom()+1,this._eagleMap.setZoom(this._eagleMap.getZoom()-1)):r=this._mainMap.getZoom():r=n,this._lastEagleMapZoom=this._eagleMap.getZoom(),r}},_decideMinimized(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._eagleMap.getBounds()):this._minimized},_isInteger(i){return typeof i=="number"},_isDefined(i){return typeof i<"u"},_onToggle(){M.Util.requestAnimFrame(function(){M.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),M.Browser.any3d||M.Util.requestAnimFrame(this._fireToggleEvents,this)},this)},_fireToggleEvents(){M.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);const i={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",i),this.fire("toggle",i)}}),Ve=L.FeatureGroup.extend({initialize(i,s){this.markers=[],L.Util.setOptions(this,s);const n=typeof this.options.cssClass=="string"?this.options.cssClass:"vertex-marker",r=this.options.iconSize!==void 0?this.options.iconSize:[24,24],o=this.options.iconAnchor!==void 0?this.options.iconAnchor:[12,12],l=this.options.textFn,f=typeof this.options.firstVertex=="boolean"?this.options.firstVertex:!0,c=typeof this.options.lastVertex=="boolean"?this.options.lastVertex:!0;this.dragable=this.options.dragable||!1;let d=i;typeof i.getLatLngs=="function"&&(d=i.getLatLngs());for(let y=f?0:1,b=d.length-(c?0:1);y<b;y++){const A=d[y];var m=typeof l=="function"?l.call(this,y,A):l||"",v=L.divIcon({className:n,html:m,iconSize:r,iconAnchor:o}),p=L.marker(A,{icon:v,pmIgnore:!0,index:y});this.markers.push(p)}L.FeatureGroup.prototype.initialize.call(this,this.markers)},onAdd(i){this.markers.forEach(s=>{L.FeatureGroup.prototype.addLayer.call(this,s)}),L.FeatureGroup.prototype.onAdd.call(this,i)},onRemove(i){this.markers.forEach(s=>{L.FeatureGroup.prototype.removeLayer.call(this,s)}),L.FeatureGroup.prototype.onRemove.call(this,i)}});class Ni extends L[L.Layer?"Layer":"Class"]{constructor(s,n,r,o,l){super(),L.setOptions(this,l),this._latlng=s,this._measurement=n,this._title=r,this._rotation=o,this.MEASUREDDATA=null,this.tempAcCurrDrawPoints=null}addTo(s){return s.addLayer(this),this}onAdd(s){this._map=s;const n=this.getPane?this.getPane():s.getPanes().markerPane,r=this._element=L.DomUtil.create("div","leaflet-zoom-animated leaflet-measure-path-measurement",n),o=L.DomUtil.create("div","",r);o.title=this._title,o.innerHTML=this._measurement,s.on("zoomanim",this._animateZoom,this),this._setPosition()}onRemove(s){s.off("zoomanim",this._animateZoom,this),(this.getPane?this.getPane():s.getPanes().markerPane).removeChild(this._element),this._map=null}_setPosition(){L.DomUtil.setPosition(this._element,this._map.latLngToLayerPoint(this._latlng)),this._element.style.transform+=" rotate("+this._rotation+"rad)"}_animateZoom(s){const n=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();L.DomUtil.setPosition(this._element,n),this._element.style.transform+=" rotate("+this._rotation+"rad)"}}function Xs(i,s,n){i._leaflet_pos=s,M.DomUtil.setTransform(i,s,n)}M.Map.addInitHook("addHandler","drawHandler",Qs),M.Map.addInitHook(function(){this.options.eagleMapControl&&(this.eagleMapControl=this.options.eagleMapControl instanceof pe?this.options.eagleMapControl:new pe(this.options.eagleMapControl),this.addControl(this.eagleMapControl)),this.options.statusBarControl&&(this.statusBarControl=this.options.statusBar instanceof me?this.options.statusBarControl:new me(this.options.statusBarControl),this.addControl(this.statusBarControl)),this.options.scaleControl&&(this.scaleControl=this.options.scale instanceof M.Control.Scale?this.options.scaleControl:new M.Control.Scale(Object.assign({position:"bottomleft",maxWidth:100,metric:!0,imperial:!1},this.options.scaleControl)),this.addControl(this.scaleControl))}),M.TileLayer.mergeOptions({errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAoNSURBVHhe7drLgquqFoXh8/5PtdvVTz/t9Ku9DsgEQSdEczGxxv+1Vikiwhxeqtb//gHCCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKR9aQB+J/ZD7fd2vUQ3b+fQ783vcaV77s/5/b1FG8f/8BQp+sYA/F5//osuN9swG+waywf+XMdlsbXdoW6XaUzbLnrPFKVcvZJ1fB5fGABbbq8EH63/zWUtVf+56QtdrOvz+L4AvKH+rcv7x+2u/9zzK/RG9/b6/3le6mj3wnyBrwvA6+t/c/mfq/5v16n02lf9/fXfu9bb9brxmyPYldHv8m0BeLj+e9+t+0tie/3fe4e+pP7+u1xtw0jnnN369ybqVfWfR77xQ/rE9f/JAHi/rXis/n+nBRsd9BNvZx5rF+2v/zsGF7PZi+o/JDXe0e2noF//uZOt1X/u+v9gALzV2l//qfbNcgnKWnZVR+TGr6r/l/T3VP3Hqr+U9/OmrTVdjq2ZzTvKsaeu/88FYLla0b76j0+QslyLd+EoHzJQ92atvZM/wru+3R6q/5/LXPWzpq01bbeFj4qp5fCjOLUIyrHnrv+PBcCrj+31f6/2g1IOV3vZqcyvuNa4ad79nNjDrmV/Xdh7YWJjCiWd2FvMaqLCJVUTUoTj8uZmHKv6Hz5Hi7lVtUQnr/9PBWBQ/yuxhOfmzVr5tR/U9bziBG1unyrGPW674emHepOQpOnK47+EwVaTYUJcwjd3Pq9Xnza6NLg5OjFm6V9ONZdpD73X1+T1fyqfCUBV0EVv6cM65eaVuMrd4spdufXnnds5wTMZyOffXxahzgp73yi3/3A7j0+n+gaQ+S/6wZ36n2/pdifxZq668a/uN17/5/KRAAzqf7p9NcKit+XZve2bvIjtMmb5PPWufIKwMaz29M9JOJO1yDb934H5Xmkbtli9di1rqx6Yia846cCqqCvePLdNww/+LX26+Fj6qYd4McsBBssxntAnAuCti02lV7K5+bQK49qvGwfrhfFOXTbmk9el1g7IKcIXWQ11WVvNhS3b206//t1L8CY6W1xl/4azHOMZfSAAXhEOlsVr3rNYuuUhfld5a3Xy9jmQt+eGb7C6uFVthXf1+DB0a84Gtpg9d+tgonuf0lG49dizpuKO5WyOD4BXhYNl8Zr7Sn2GxXKWvtdT3txpPdm6xp2+9uvV1ovqfz4+Fn2o+upawyHxnh+O6uThJ/5WKsThT9T/8QHINVLP2yvq3/qYOvHWPne0PMngBKnLe58cs94p9uvVlrvdu9rOnJbjf53STnd5a1lxHgyx194YT+boAHj15q5VMijPhdQytVsf1e1nfILwzbu5lu0q8mVMH5DxZrm9h6JXW+52u4Jm9sorXNu0Or6MNn9HxydB/PXp6I8g9rSYOu2N8WwODoC3WjaVz9V/EFbHelge5pdDtOsEI6WgbAy5Y++q7unVlru9zGj6Q27MXPx5suihPn5Z6Hn8RcxufCTESFibWm+Mp3NsAMpqVXNqU/l0/dfqPnMnXi8Pn6C1PsUzHafBr+fDrTk7UWhtu4tVB+7xSXzJiQ+sqcGKszSDvk7m0ADMq2UbAptKZ5Lzrs40h0Xrvl2UI6/5X17/r6n/Uv3p1WByWP3bxtB6qmGz/oVN4B7vCbf8+H9H81/iBivz1Lx9iSMD8Fj9e7uC4d5SlElVmrUX1P98orqTLR0v30GydF3ry3JrbjQJ076f+P/A5x8Xw0x/gBu89He4YzmpAwPwyvrPJebvnfdHvXXaUqZD80naYWzpuHN1dui0OX1yWnrdmhtNke3LR6yPzw2y+PUweusvnp63r3JcAOq1zZwVjM/fuACjxS1r4O+NtTOvbm+dnlvH+Eue6fDYQTuILR13ri4fWovd+F0Opmg5QdZ0Pj7+HnR9rlaVCDsqsq57U382hwXAm7e8gmGWy//9CmKbweKW4zoltqoit5lfU5tUxe/8lnNDx7nJfHXpd+2LcYf6Sy8wnS7tPyY5M7ScoFX918INP7/zLwaQ1atgY/EX5oSOCkCet1AwzSeW4179r8tnlvfFM9nfg6N1nXZq6q6q+Mej21D/ocmmP0jtHeuq/bD+V1Ig5gVqLtP6di/9lN4eAJvO1TK30tO2vH7mJXTmOe9aL2fZU46rtgRT+KaWUThTZD9tUdd+twIGI8/qcNdj9n95E4zuBmvrEeyr/yHrfONQzuC9AWgrsOa+Xha2ZFFoN5ufGu1q9u/LTdWa9LkXhPMP1Glpan/92jMrI/drZO4oXUB4AnTrPpsnMWZkZPpotqbz6echPc86+jv1f1wAxhW/0A/OpF6A6eXZtocdXm02TbayhMWKnY/NL+V9VXQHQoas/Rbb+qw03e8++q6/VP/vDkC4LW2q+JXp7zp225ktbpf1G3SozXsnmr/17sYhVVBdO/drP/EeObVwEZv6aXifCq6p96Z7u4bmQfqoNIY/Vf+HfQS/R34lfaCmjH0KLNhO6/+B7q2fJdt7IKv/XU+cjjzZf6r+Tx6AsCrhEWP/fIePFC0OdPYAAE8hAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAYf/+/R9s8HzCwqXCjgAAAABJRU5ErkJggg=="}),M.Marker.addInitHook(function(){let s=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;s&&(s=s[0]+"px "+s[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||s||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",n=>{n.target._applyRotation()})}),M.Marker.mergeOptions({minZoom:0,maxZoom:16,hideOnMinZoom:!0,minificationScale:.6}),M.Marker.include({_setPos(i){this._icon.style.display="initial";let s;const{minZoom:n,maxZoom:r,hideOnMinZoom:o,minificationScale:l}=this.options;if(n&&r&&r-n>0){const f=parseFloat(((1-l)/(r-n)).toFixed(2)),{iconAnchor:c,iconSize:d}=this.getIcon().options;c?this._map._zoom>=r?(this._icon.style.marginLeft=-c[0],this._icon.style.marginTop=-c[1]):this._map._zoom>n&this._map._zoom<r?(s=1-(r-this._map._zoom)*f,this._icon.style.marginLeft=-c[0]*s,this._icon.style.marginTop=-c[1]*s):this._map._zoom<=n&&o?this._icon.style.display="none":this._map._zoom<=n&&!o&&(s=l,this._icon.style.marginLeft=-c[0],this._icon.style.marginTop=-c[1]):d&&(this._map._zoom>=r?(this._icon.style.marginLeft=-d[0]/2,this._icon.style.marginTop=-d[1]/2):this._map._zoom>n&this._map._zoom<r?(s=1-(r-this._map._zoom)*f,this._icon.style.marginLeft=-d[0]/2*s,this._icon.style.marginTop=-d[1]/2*s):this._map._zoom<=n&&o?this._icon.style.display="none":this._map._zoom<=n&&!o&&(s=l,this._icon.style.marginLeft=-d[0]/2*s,this._icon.style.marginTop=-d[1]/2*s))}this._icon&&Xs(this._icon,i,s||1),this._shadow&&Xs(this._shadow,i,s||1),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex(),this._applyRotation()},_applyRotation(){this.options.rotationAngle&&(this._icon.style[M.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,M.DomUtil.TRANSFORM==="msTransform"?this._icon.style[M.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[M.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle(i){return this.options.rotationAngle=i,this.update(),this},setRotationOrigin(i){return this.options.rotationOrigin=i,this.update(),this},twinkle(i,s){let n=!1,r=0;const o=()=>{r++,r>Math.floor(s/i)?this.setOpacity(1):(n?(this.setOpacity(0),n=!1):(this.setOpacity(1),n=!0),setTimeout(o,i))};o()}}),M.Map.include({hasLayer:function(i){return i&&M.Util.stamp(i)in this._layers}}),M.Path.addInitHook(function(){this.color=_t.Color.from(this.options.color),this.fillColor=_t.Color.from(this.options.fillColor)}),M.Polyline.addInitHook(function(){this.options.showMeasurements&&this.showMeasurements()}),M.Circle.include({toGeoJSON(){return{type:"Feature",properties:{},geometry:{type:"Circle",radius:this.getRadius(),coordinates:[this._latlng.lng,this._latlng.lat]}}}}),M.Layer.addInitHook(function(){this._leaflet_id=this.options.id||M.stamp({})}),M.LayerGroup.include({getLayerId(i){return i._leaflet_id},hasLayer(i){return i?(["number","string"].includes(typeof i)?i:this.getLayerId(i))in this._layers:!1}}),M.GridLayer.include({_setZoomTransform:function(i,r,n){var o=r,r=(o!=null&&this.options&&(this.options.corrdType=="gcj02"?o=_t.CoordsUtil.gcjEncrypt(r.lat,r.lng):this.options.corrdType=="bd09"&&(r=_t.CoordsUtil.gcjEncrypt(r.lat,r.lng),o=_t.CoordsUtil.bdEncrypt(r.lat,r.lng))),this._map.getZoomScale(n,i.zoom)),o=i.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(o,n)).round();M.Browser.any3d?M.DomUtil.setTransform(i.el,o,r):M.DomUtil.setPosition(i.el,o)},_getTiledPixelBounds:function(r){var n=r,r=(n!=null&&this.options&&(this.options.corrdType=="gcj02"?n=_t.CoordsUtil.gcjEncrypt(r.lat,r.lng):this.options.corrdType=="bd09"&&(r=_t.CoordsUtil.gcjEncrypt(r.lat,r.lng),n=_t.CoordsUtil.bdEncrypt(r.lat,r.lng))),this._map),s=r._animatingZoom?Math.max(r._animateToZoom,r.getZoom()):r.getZoom(),s=r.getZoomScale(s,this._tileZoom),n=r.project(n,this._tileZoom).floor(),r=r.getSize().divideBy(2*s);return new M.Bounds(n.subtract(r),n.add(r))}}),M.TileLayer.addInitHook(function(){this.on("add",function(i){this._container.style.filter=Object.keys(this.options.style||{}).map(s=>`${s}(${this.options.style[s]})`).join(" ")})}),M.Polyline.include({_originalOnAdd:M.Polyline.prototype.onAdd,_originalOnRemove:M.Polyline.prototype.onRemove,_originalSetLatLngs:M.Polyline.prototype.setLatLngs,setLatLngs:function(i){var s=this._map&&this._vertexMarkers&&this._latlngs.length!==i.length;s&&(this.removeVertexMarkers(),this.destroyVertexMarkers(),this.createVertexMarkers()),this.options.showMeasurements&&this.updateMeasurements(),this._originalSetLatLngs(i)},removeVertexMarkers:function(){this._map&&this._vertexMarkers&&(this._map.removeLayer(this._vertexMarkers),this._vertexMarkers=void 0)},onAdd:function(i){this._originalOnAdd(i),this.createVertexMarkers(),this.options.showMeasurements&&this.showMeasurements(this.options.measurementOptions)},createVertexMarkers:function(){if(this._map){var i=this.options.vertexMarkers||{};this._vertexMarkers===void 0&&this.options.vertexMarkers&&(this._vertexMarkers=new Ve(this,i).addTo(this._map))}},destroyVertexMarkers:function(){this._vertexMarkers&&(this._vertexMarkers=void 0)},onRemove:function(i){this.removeVertexMarkers(),this._originalOnRemove(i),this.options.showMeasurements&&this.hideMeasurements()},showMeasurements(i){return!this._map||this._measurementLayer?this:(this._measurementOptions=M.extend({showOnHover:!1,minPixelDistance:30,showDistances:!0,showArea:!0,showAggregate:!0,lang:{totalLength:"Total length",totalArea:"Total area",segmentLength:"Segment length"},map:this._map},i||{}),this._measurementLayer=new M.LayerGroup().addTo(this._map),this.updateMeasurements(),this._map.on("zoomend",this.updateMeasurements,this),this)},hideMeasurements(){return this._map.off("zoomend",this.updateMeasurements,this),this._measurementLayer?(this._map.removeLayer(this._measurementLayer),this._measurementLayer=null,this):this},tempFormatDistance(i){const s=this._map.options.crs,n=new Array;for(let b=0;b<i.length;b++){const A=s.project(i[b]);n.push(A)}const r=n.length;let o=0,l,f,c,d,m,v;for(let b=0;b<r-1;b++)l=n[b],c=l.x,d=l.y,f=n[b+1],m=f.x,v=f.y,o+=Math.sqrt((c-m)*(c-m)+(d-v)*(d-v));const p=o;let y="";return p>1e3?y="总长:"+Number(p/1e3).toFixed(1)+"公里":y="总长:"+Math.round(p)+"米",y},tempMoveFormatDistance(i,s){const n=this._map.options.crs;i=n.project(i),i=new Array(i),s=n.project(s),i.push(s);const r=i.length;let o=0,l,f,c,d,m,v;for(let b=0;b<r-1;b++)l=i[b],c=l.x,d=l.y,f=i[b+1],m=f.x,v=f.y,o+=Math.sqrt((c-m)*(c-m)+(d-v)*(d-v));const p=o;let y="";return p>1e3?y=Number(p/1e3).toFixed(1)+"公里":y=Math.round(p)+"米",y},tempFormatArea(i){const s=this._map.options.crs,n=new Array;for(let P=0;P<i.length;P++){const E=s.project(i[P]);n.push(E)}let r=!0;for(var o=0;o<n.length-1;o++){n[o].x>180?r=!0:r=!1;break}const l=n.length;let f=0,c,d,m=0,v=0,p=0,y=0;if(n!=null){let P;if(r)for(var o=0;o<l;o++)P=(o+1)%l,c=n[o],d=n[P],f+=c.x*d.y,f-=c.y*d.x;else{let z,B=0,k=0;for(var o=0;o<l;o++)c=n[o],z=c.x,o==0?(B=z,k=z):(z<B&&(B=z),z>k&&(k=z));const j=parseInt(((B+k)/2+3)/6);for(var o=0;o<l;o++)P=(o+1)%l,o==0?(c=n[o],m=widget.LonLatToXA80N(j,c.x,c.y)[0],v=widget.LonLatToXA80N(j,c.x,c.y)[1]):(m=p,v=y),d=n[P],p=widget.LonLatToXA80N(j,d.x,d.y)[0],y=widget.LonLatToXA80N(j,d.x,d.y)[1],f+=m*y,f-=p*v}}const b=Math.abs(f/2);let A="";return b>1e6?A="总面积:"+Number(b/1e6).toFixed(4)+`平方公里
5
5
  (约:`+Number(b*.0015).toFixed(3)+"亩)":A="总面积:"+b.toFixed(0)+`平方米
6
- (约:`+Number(b*.0015).toFixed(3)+"亩)",A},updateMeasurements(){if(!this._measurementLayer)return this;const i=this.getLatLngs();new Array().push(i);let n=this.getLatLngs();const o=this instanceof M.Polygon,r=this._measurementOptions;let l,u,c,d,_;if(n&&n.length&&M.Util.isArray(n[0])&&(n=n[0]),this._measurementLayer.clearLayers(),this._measurementOptions.showDistances&&n.length>1){i.length-1;for(let v=1,p=n.length;o&&v<=p||v<p;v++)if(l=n[v-1],u=n[v%p],l.distanceTo(u),c=this._map.latLngToLayerPoint(l),d=this._map.latLngToLayerPoint(u),_=c.distanceTo(d),_>=r.minPixelDistance){const y=this.tempMoveFormatDistance(l,u);new Gi(this._map.layerPointToLatLng([(c.x+d.x)/2,(c.y+d.y)/2]),y,r.lang.segmentLength,this._getRotation(l,u),r).addTo(this._measurementLayer)}!o&&this._measurementOptions.showAggregate&&(new Gi(u,this.tempFormatDistance(i),r.lang.totalLength,0,r).addTo(this._measurementLayer),this.MEASUREDDATA=this.tempFormatDistance(i))}return o&&r.showArea&&n.length>2&&(new Gi(this.getBounds().getCenter(),this.tempFormatArea(i[0]),r.lang.totalArea,0,r).addTo(this._measurementLayer),this.MEASUREDDATA=this.tempFormatArea(i[0])),this},_getRotation(i,e){const n=this._map.project(i),o=this._map.project(e);return Math.atan((o.y-n.y)/(o.x-n.x))}}),M.LatLng.prototype.toArray=function(){return[this.lat,this.lng]},M.Path.include({getArea(i){var e,n=this._latlngs[0],o=(i||this._map).options.crs,r=n.length;let l=0,u,c;if(n!=null)for(let d=0;d<r;d++)e=(d+1)%r,u=180<n[d].lng&&90<n[d].lat?{x:n[d].lat,y:n[d].lng}:o.project(n[d]),c=180<n[e].lng&&90<n[e].lat?{x:n[e].lat,y:n[e].lng}:o.project(n[e]),l=(l+=u.x*c.y)-u.y*c.x;return Math.abs(l/2)},getLength(i){for(var e=[],n=(i||this._map).options.crs,o=this._latlngs,r=0;r<o.length;r++)this instanceof M.Polygon?e.push(...o[r]):this instanceof M.Polyline&&e.push(o[r]);let l=0,u,c;for(let y=0,b=e.length-1;y<b;y++){u=180<e[y][0]&&90<e[y][1]?{x:e[y].lat,y:e[y].lng}:n.project(e[y]),c=180<e[y+1][0]&&90<e[y+1][1]?{x:e[y+1].lat,y:e[y+1].lng}:n.project(e[y+1]);var d=u.x,_=u.y,v=c.x,p=c.y;l+=Math.sqrt((d-v)*(d-v)+(_-p)*(_-p))}return l}});var er={exports:{}};function sr(i){i("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),i("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),i("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),i.WGS84=i["EPSG:4326"],i["EPSG:3785"]=i["EPSG:3857"],i.GOOGLE=i["EPSG:3857"],i["EPSG:900913"]=i["EPSG:3857"],i["EPSG:102113"]=i["EPSG:3857"]}var mi=1,_i=2,bi=3,nr=4,ms=5,Cn=6378137,ar=6356752314e-3,En=.0066943799901413165,Wi=484813681109536e-20,C=Math.PI/2,or=.16666666666666666,rr=.04722222222222222,hr=.022156084656084655,S=1e-10,vt=.017453292519943295,jt=57.29577951308232,K=Math.PI/4,$i=Math.PI*2,rt=3.14159265359,At={};At.greenwich=0,At.lisbon=-9.131906111111,At.paris=2.337229166667,At.bogota=-74.080916666667,At.madrid=-3.687938888889,At.rome=12.452333333333,At.bern=7.439583333333,At.jakarta=106.807719444444,At.ferro=-17.666666666667,At.brussels=4.367975,At.stockholm=18.058277777778,At.athens=23.7163375,At.oslo=10.722916666667;const lr={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Sn=/[\s_\-\/\(\)]/g;function ri(i,e){if(i[e])return i[e];for(var n=Object.keys(i),o=e.toLowerCase().replace(Sn,""),r=-1,l,u;++r<n.length;)if(l=n[r],u=l.toLowerCase().replace(Sn,""),u===o)return i[l]}function _s(i){var e={},n=i.split("+").map(function(c){return c.trim()}).filter(function(c){return c}).reduce(function(c,d){var _=d.split("=");return _.push(!0),c[_[0].toLowerCase()]=_[1],c},{}),o,r,l,u={proj:"projName",datum:"datumCode",rf:function(c){e.rf=parseFloat(c)},lat_0:function(c){e.lat0=c*vt},lat_1:function(c){e.lat1=c*vt},lat_2:function(c){e.lat2=c*vt},lat_ts:function(c){e.lat_ts=c*vt},lon_0:function(c){e.long0=c*vt},lon_1:function(c){e.long1=c*vt},lon_2:function(c){e.long2=c*vt},alpha:function(c){e.alpha=parseFloat(c)*vt},gamma:function(c){e.rectified_grid_angle=parseFloat(c)},lonc:function(c){e.longc=c*vt},x_0:function(c){e.x0=parseFloat(c)},y_0:function(c){e.y0=parseFloat(c)},k_0:function(c){e.k0=parseFloat(c)},k:function(c){e.k0=parseFloat(c)},a:function(c){e.a=parseFloat(c)},b:function(c){e.b=parseFloat(c)},r:function(c){e.a=e.b=parseFloat(c)},r_a:function(){e.R_A=!0},zone:function(c){e.zone=parseInt(c,10)},south:function(){e.utmSouth=!0},towgs84:function(c){e.datum_params=c.split(",").map(function(d){return parseFloat(d)})},to_meter:function(c){e.to_meter=parseFloat(c)},units:function(c){e.units=c;var d=ri(lr,c);d&&(e.to_meter=d.to_meter)},from_greenwich:function(c){e.from_greenwich=c*vt},pm:function(c){var d=ri(At,c);e.from_greenwich=(d||parseFloat(c))*vt},nadgrids:function(c){c==="@null"?e.datumCode="none":e.nadgrids=c},axis:function(c){var d="ewnsud";c.length===3&&d.indexOf(c.substr(0,1))!==-1&&d.indexOf(c.substr(1,1))!==-1&&d.indexOf(c.substr(2,1))!==-1&&(e.axis=c)},approx:function(){e.approx=!0}};for(o in n)r=n[o],o in u?(l=u[o],typeof l=="function"?l(r):e[l]=r):e[o]=r;return typeof e.datumCode=="string"&&e.datumCode!=="WGS84"&&(e.datumCode=e.datumCode.toLowerCase()),e}var Vi=1,On=2,kn=3,Oe=4,zn=5,ps=-1,ur=/\s/,cr=/[A-Za-z]/,fr=/[A-Za-z84_]/,ke=/[,\]]/,In=/[\d\.E\-\+]/;function Yt(i){if(typeof i!="string")throw new Error("not a string");this.text=i.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Vi}Yt.prototype.readCharicter=function(){var i=this.text[this.place++];if(this.state!==Oe)for(;ur.test(i);){if(this.place>=this.text.length)return;i=this.text[this.place++]}switch(this.state){case Vi:return this.neutral(i);case On:return this.keyword(i);case Oe:return this.quoted(i);case zn:return this.afterquote(i);case kn:return this.number(i);case ps:return}},Yt.prototype.afterquote=function(i){if(i==='"'){this.word+='"',this.state=Oe;return}if(ke.test(i)){this.word=this.word.trim(),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in afterquote yet, index '+this.place)},Yt.prototype.afterItem=function(i){if(i===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Vi;return}if(i==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Vi,this.currentObject=this.stack.pop(),this.currentObject||(this.state=ps);return}},Yt.prototype.number=function(i){if(In.test(i)){this.word+=i;return}if(ke.test(i)){this.word=parseFloat(this.word),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in number yet, index '+this.place)},Yt.prototype.quoted=function(i){if(i==='"'){this.state=zn;return}this.word+=i},Yt.prototype.keyword=function(i){if(fr.test(i)){this.word+=i;return}if(i==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=Vi;return}if(ke.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in keyword yet, index '+this.place)},Yt.prototype.neutral=function(i){if(cr.test(i)){this.word=i,this.state=On;return}if(i==='"'){this.word="",this.state=Oe;return}if(In.test(i)){this.word=i,this.state=kn;return}if(ke.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in neutral yet, index '+this.place)},Yt.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===ps)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function dr(i){var e=new Yt(i);return e.output()}function Nn(i,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var o=e?{}:i,r=n.reduce(function(l,u){return Li(u,l),l},o);e&&(i[e]=r)}function Li(i,e){if(!Array.isArray(i)){e[i]=!0;return}var n=i.shift();if(n==="PARAMETER"&&(n=i.shift()),i.length===1){if(Array.isArray(i[0])){e[n]={},Li(i[0],e[n]);return}e[n]=i[0];return}if(!i.length){e[n]=!0;return}if(n==="TOWGS84"){e[n]=i;return}if(n==="AXIS"){n in e||(e[n]=[]),e[n].push(i);return}Array.isArray(n)||(e[n]={});var o;switch(n){case"UNIT":case"PRIMEM":case"VERT_DATUM":e[n]={name:i[0].toLowerCase(),convert:i[1]},i.length===3&&Li(i[2],e[n]);return;case"SPHEROID":case"ELLIPSOID":e[n]={name:i[0],a:i[1],rf:i[2]},i.length===4&&Li(i[3],e[n]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":i[0]=["name",i[0]],Nn(e,n,i);return;default:for(o=-1;++o<i.length;)if(!Array.isArray(i[o]))return Li(i,e[n]);return Nn(e,n,i)}}var mr=.017453292519943295;function _r(i,e){var n=e[0],o=e[1];!(n in i)&&o in i&&(i[n]=i[o],e.length===3&&(i[n]=e[2](i[n])))}function Ht(i){return i*mr}function pr(i){if(i.type==="GEOGCS"?i.projName="longlat":i.type==="LOCAL_CS"?(i.projName="identity",i.local=!0):typeof i.PROJECTION=="object"?i.projName=Object.keys(i.PROJECTION)[0]:i.projName=i.PROJECTION,i.AXIS){for(var e="",n=0,o=i.AXIS.length;n<o;++n){var r=[i.AXIS[n][0].toLowerCase(),i.AXIS[n][1].toLowerCase()];r[0].indexOf("north")!==-1||(r[0]==="y"||r[0]==="lat")&&r[1]==="north"?e+="n":r[0].indexOf("south")!==-1||(r[0]==="y"||r[0]==="lat")&&r[1]==="south"?e+="s":r[0].indexOf("east")!==-1||(r[0]==="x"||r[0]==="lon")&&r[1]==="east"?e+="e":(r[0].indexOf("west")!==-1||(r[0]==="x"||r[0]==="lon")&&r[1]==="west")&&(e+="w")}e.length===2&&(e+="u"),e.length===3&&(i.axis=e)}i.UNIT&&(i.units=i.UNIT.name.toLowerCase(),i.units==="metre"&&(i.units="meter"),i.UNIT.convert&&(i.type==="GEOGCS"?i.DATUM&&i.DATUM.SPHEROID&&(i.to_meter=i.UNIT.convert*i.DATUM.SPHEROID.a):i.to_meter=i.UNIT.convert));var l=i.GEOGCS;i.type==="GEOGCS"&&(l=i),l&&(l.DATUM?i.datumCode=l.DATUM.name.toLowerCase():i.datumCode=l.name.toLowerCase(),i.datumCode.slice(0,2)==="d_"&&(i.datumCode=i.datumCode.slice(2)),(i.datumCode==="new_zealand_geodetic_datum_1949"||i.datumCode==="new_zealand_1949")&&(i.datumCode="nzgd49"),(i.datumCode==="wgs_1984"||i.datumCode==="world_geodetic_system_1984")&&(i.PROJECTION==="Mercator_Auxiliary_Sphere"&&(i.sphere=!0),i.datumCode="wgs84"),i.datumCode.slice(-6)==="_ferro"&&(i.datumCode=i.datumCode.slice(0,-6)),i.datumCode.slice(-8)==="_jakarta"&&(i.datumCode=i.datumCode.slice(0,-8)),~i.datumCode.indexOf("belge")&&(i.datumCode="rnb72"),l.DATUM&&l.DATUM.SPHEROID&&(i.ellps=l.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),i.ellps.toLowerCase().slice(0,13)==="international"&&(i.ellps="intl"),i.a=l.DATUM.SPHEROID.a,i.rf=parseFloat(l.DATUM.SPHEROID.rf,10)),l.DATUM&&l.DATUM.TOWGS84&&(i.datum_params=l.DATUM.TOWGS84),~i.datumCode.indexOf("osgb_1936")&&(i.datumCode="osgb36"),~i.datumCode.indexOf("osni_1952")&&(i.datumCode="osni52"),(~i.datumCode.indexOf("tm65")||~i.datumCode.indexOf("geodetic_datum_of_1965"))&&(i.datumCode="ire65"),i.datumCode==="ch1903+"&&(i.datumCode="ch1903"),~i.datumCode.indexOf("israel")&&(i.datumCode="isr93")),i.b&&!isFinite(i.b)&&(i.b=i.a);function u(_){var v=i.to_meter||1;return _*v}var c=function(_){return _r(i,_)},d=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Ht],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Ht],["x0","false_easting",u],["y0","false_northing",u],["long0","central_meridian",Ht],["lat0","latitude_of_origin",Ht],["lat0","standard_parallel_1",Ht],["lat1","standard_parallel_1",Ht],["lat2","standard_parallel_2",Ht],["azimuth","Azimuth"],["alpha","azimuth",Ht],["srsCode","name"]];d.forEach(c),!i.long0&&i.longc&&(i.projName==="Albers_Conic_Equal_Area"||i.projName==="Lambert_Azimuthal_Equal_Area")&&(i.long0=i.longc),!i.lat_ts&&i.lat1&&(i.projName==="Stereographic_South_Pole"||i.projName==="Polar Stereographic (variant B)")?(i.lat0=Ht(i.lat1>0?90:-90),i.lat_ts=i.lat1):!i.lat_ts&&i.lat0&&i.projName==="Polar_Stereographic"&&(i.lat_ts=i.lat0,i.lat0=Ht(i.lat0>0?90:-90))}function Bn(i){var e=dr(i),n=e.shift(),o=e.shift();e.unshift(["name",o]),e.unshift(["type",n]);var r={};return Li(e,r),pr(r),r}function bt(i){var e=this;if(arguments.length===2){var n=arguments[1];typeof n=="string"?n.charAt(0)==="+"?bt[i]=_s(arguments[1]):bt[i]=Bn(arguments[1]):bt[i]=n}else if(arguments.length===1){if(Array.isArray(i))return i.map(function(o){Array.isArray(o)?bt.apply(e,o):bt(o)});if(typeof i=="string"){if(i in bt)return bt[i]}else"EPSG"in i?bt["EPSG:"+i.EPSG]=i:"ESRI"in i?bt["ESRI:"+i.ESRI]=i:"IAU2000"in i?bt["IAU2000:"+i.IAU2000]=i:console.log(i);return}}sr(bt);function gr(i){return typeof i=="string"}function vr(i){return i in bt}var yr=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Mr(i){return yr.some(function(e){return i.indexOf(e)>-1})}var xr=["3857","900913","3785","102113"];function wr(i){var e=ri(i,"authority");if(e){var n=ri(e,"epsg");return n&&xr.indexOf(n)>-1}}function br(i){var e=ri(i,"extension");if(e)return ri(e,"proj4")}function Lr(i){return i[0]==="+"}function Pr(i){if(gr(i)){if(vr(i))return bt[i];if(Mr(i)){var e=Bn(i);if(wr(e))return bt["EPSG:3857"];var n=br(e);return n?_s(n):e}if(Lr(i))return _s(i)}else return i}function Rn(i,e){i=i||{};var n,o;if(!e)return i;for(o in e)n=e[o],n!==void 0&&(i[o]=n);return i}function Wt(i,e,n){var o=i*e;return n/Math.sqrt(1-o*o)}function Qi(i){return i<0?-1:1}function O(i){return Math.abs(i)<=rt?i:i-Qi(i)*$i}function qt(i,e,n){var o=i*n,r=.5*i;return o=Math.pow((1-o)/(1+o),r),Math.tan(.5*(C-e))/o}function Xi(i,e){for(var n=.5*i,o,r,l=C-2*Math.atan(e),u=0;u<=15;u++)if(o=i*Math.sin(l),r=C-2*Math.atan(e*Math.pow((1-o)/(1+o),n))-l,l+=r,Math.abs(r)<=1e-10)return l;return-9999}function Ar(){var i=this.b/this.a;this.es=1-i*i,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Wt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function Tr(i){var e=i.x,n=i.y;if(n*jt>90&&n*jt<-90&&e*jt>180&&e*jt<-180)return null;var o,r;if(Math.abs(Math.abs(n)-C)<=S)return null;if(this.sphere)o=this.x0+this.a*this.k0*O(e-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(K+.5*n));else{var l=Math.sin(n),u=qt(this.e,n,l);o=this.x0+this.a*this.k0*O(e-this.long0),r=this.y0-this.a*this.k0*Math.log(u)}return i.x=o,i.y=r,i}function Cr(i){var e=i.x-this.x0,n=i.y-this.y0,o,r;if(this.sphere)r=C-2*Math.atan(Math.exp(-n/(this.a*this.k0)));else{var l=Math.exp(-n/(this.a*this.k0));if(r=Xi(this.e,l),r===-9999)return null}return o=O(this.long0+e/(this.a*this.k0)),i.x=o,i.y=r,i}var Er=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const Sr={init:Ar,forward:Tr,inverse:Cr,names:Er};function Or(){}function Dn(i){return i}var kr=["longlat","identity"],zr=[Sr,{init:Or,forward:Dn,inverse:Dn,names:kr}],ze={},Ie=[];function Zn(i,e){var n=Ie.length;return i.names?(Ie[n]=i,i.names.forEach(function(o){ze[o.toLowerCase()]=n}),this):(console.log(e),!0)}function Ir(i){if(!i)return!1;var e=i.toLowerCase();if(typeof ze[e]<"u"&&Ie[ze[e]])return Ie[ze[e]]}function Nr(){zr.forEach(Zn)}const Br={start:Nr,add:Zn,get:Ir};var Z={};Z.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},Z.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},Z.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},Z.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},Z.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"},Z.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},Z.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},Z.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"},Z.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},Z.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},Z.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},Z.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"},Z.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},Z.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"},Z.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."},Z.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},Z.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"},Z.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},Z.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},Z.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"},Z.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"},Z.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"},Z.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"},Z.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"},Z.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},Z.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},Z.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},Z.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},Z.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},Z.hough={a:6378270,rf:297,ellipseName:"Hough"},Z.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},Z.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},Z.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},Z.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},Z.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"},Z.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},Z.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},Z.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"},Z.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"},Z.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},Z.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},Z.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Rr=Z.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Z.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Dr(i,e,n,o){var r=i*i,l=e*e,u=(r-l)/r,c=0;o?(i*=1-u*(or+u*(rr+u*hr)),r=i*i,u=0):c=Math.sqrt(u);var d=(r-l)/l;return{es:u,e:c,ep2:d}}function Zr(i,e,n,o,r){if(!i){var l=ri(Z,o);l||(l=Rr),i=l.a,e=l.b,n=l.rf}return n&&!e&&(e=(1-1/n)*i),(n===0||Math.abs(i-e)<S)&&(r=!0,e=i),{a:i,b:e,rf:n,sphere:r}}var dt={};dt.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},dt.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},dt.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},dt.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},dt.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},dt.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},dt.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},dt.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},dt.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},dt.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},dt.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},dt.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},dt.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},dt.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},dt.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},dt.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},dt.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},dt.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function Fr(i,e,n,o,r,l,u){var c={};return i===void 0||i==="none"?c.datum_type=ms:c.datum_type=nr,e&&(c.datum_params=e.map(parseFloat),(c.datum_params[0]!==0||c.datum_params[1]!==0||c.datum_params[2]!==0)&&(c.datum_type=mi),c.datum_params.length>3&&(c.datum_params[3]!==0||c.datum_params[4]!==0||c.datum_params[5]!==0||c.datum_params[6]!==0)&&(c.datum_type=_i,c.datum_params[3]*=Wi,c.datum_params[4]*=Wi,c.datum_params[5]*=Wi,c.datum_params[6]=c.datum_params[6]/1e6+1)),u&&(c.datum_type=bi,c.grids=u),c.a=n,c.b=o,c.es=r,c.ep2=l,c}var Fn={};function qr(i,e){var n=new DataView(e),o=jr(n),r=Hr(n,o),l=Wr(n,r,o),u={header:r,subgrids:l};return Fn[i]=u,u}function Gr(i){if(i===void 0)return null;var e=i.split(",");return e.map(Ur)}function Ur(i){if(i.length===0)return null;var e=i[0]==="@";return e&&(i=i.slice(1)),i==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:i,mandatory:!e,grid:Fn[i]||null,isNull:!1}}function Pi(i){return i/3600*Math.PI/180}function jr(i){var e=i.getInt32(8,!1);return e===11?!1:(e=i.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Hr(i,e){return{nFields:i.getInt32(8,e),nSubgridFields:i.getInt32(24,e),nSubgrids:i.getInt32(40,e),shiftType:gs(i,56,64).trim(),fromSemiMajorAxis:i.getFloat64(120,e),fromSemiMinorAxis:i.getFloat64(136,e),toSemiMajorAxis:i.getFloat64(152,e),toSemiMinorAxis:i.getFloat64(168,e)}}function gs(i,e,n){return String.fromCharCode.apply(null,new Uint8Array(i.buffer.slice(e,n)))}function Wr(i,e,n){for(var o=176,r=[],l=0;l<e.nSubgrids;l++){var u=Vr(i,o,n),c=Qr(i,o,u,n),d=Math.round(1+(u.upperLongitude-u.lowerLongitude)/u.longitudeInterval),_=Math.round(1+(u.upperLatitude-u.lowerLatitude)/u.latitudeInterval);r.push({ll:[Pi(u.lowerLongitude),Pi(u.lowerLatitude)],del:[Pi(u.longitudeInterval),Pi(u.latitudeInterval)],lim:[d,_],count:u.gridNodeCount,cvs:$r(c)}),o+=176+u.gridNodeCount*16}return r}function $r(i){return i.map(function(e){return[Pi(e.longitudeShift),Pi(e.latitudeShift)]})}function Vr(i,e,n){return{name:gs(i,e+8,e+16).trim(),parent:gs(i,e+24,e+24+8).trim(),lowerLatitude:i.getFloat64(e+72,n),upperLatitude:i.getFloat64(e+88,n),lowerLongitude:i.getFloat64(e+104,n),upperLongitude:i.getFloat64(e+120,n),latitudeInterval:i.getFloat64(e+136,n),longitudeInterval:i.getFloat64(e+152,n),gridNodeCount:i.getInt32(e+168,n)}}function Qr(i,e,n,o){for(var r=e+176,l=16,u=[],c=0;c<n.gridNodeCount;c++){var d={latitudeShift:i.getFloat32(r+c*l,o),longitudeShift:i.getFloat32(r+c*l+4,o),latitudeAccuracy:i.getFloat32(r+c*l+8,o),longitudeAccuracy:i.getFloat32(r+c*l+12,o)};u.push(d)}return u}function $t(i,e){if(!(this instanceof $t))return new $t(i);e=e||function(_){if(_)throw _};var n=Pr(i);if(typeof n!="object"){e("Could not parse to valid json: "+i);return}var o=$t.projections.get(n.projName);if(!o){e("Could not get projection name from: "+i);return}if(n.datumCode&&n.datumCode!=="none"){var r=ri(dt,n.datumCode);r&&(n.datum_params=n.datum_params||(r.towgs84?r.towgs84.split(","):null),n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var l=Zr(n.a,n.b,n.rf,n.ellps,n.sphere),u=Dr(l.a,l.b,l.rf,n.R_A),c=Gr(n.nadgrids),d=n.datum||Fr(n.datumCode,n.datum_params,l.a,l.b,u.es,u.ep2,c);Rn(this,n),Rn(this,o),this.a=l.a,this.b=l.b,this.rf=l.rf,this.sphere=l.sphere,this.es=u.es,this.e=u.e,this.ep2=u.ep2,this.datum=d,this.init(),e(null,this)}$t.projections=Br,$t.projections.start();function Xr(i,e){return i.datum_type!==e.datum_type||i.a!==e.a||Math.abs(i.es-e.es)>5e-11?!1:i.datum_type===mi?i.datum_params[0]===e.datum_params[0]&&i.datum_params[1]===e.datum_params[1]&&i.datum_params[2]===e.datum_params[2]:i.datum_type===_i?i.datum_params[0]===e.datum_params[0]&&i.datum_params[1]===e.datum_params[1]&&i.datum_params[2]===e.datum_params[2]&&i.datum_params[3]===e.datum_params[3]&&i.datum_params[4]===e.datum_params[4]&&i.datum_params[5]===e.datum_params[5]&&i.datum_params[6]===e.datum_params[6]:!0}function qn(i,e,n){var o=i.x,r=i.y,l=i.z?i.z:0,u,c,d,_;if(r<-C&&r>-1.001*C)r=-C;else if(r>C&&r<1.001*C)r=C;else{if(r<-C)return{x:-1/0,y:-1/0,z:i.z};if(r>C)return{x:1/0,y:1/0,z:i.z}}return o>Math.PI&&(o-=2*Math.PI),c=Math.sin(r),_=Math.cos(r),d=c*c,u=n/Math.sqrt(1-e*d),{x:(u+l)*_*Math.cos(o),y:(u+l)*_*Math.sin(o),z:(u*(1-e)+l)*c}}function Gn(i,e,n,o){var r=1e-12,l=r*r,u=30,c,d,_,v,p,y,b,A,P,E,z,R,B,H=i.x,W=i.y,$=i.z?i.z:0,mt,it,Et;if(c=Math.sqrt(H*H+W*W),d=Math.sqrt(H*H+W*W+$*$),c/n<r){if(mt=0,d/n<r)return it=C,Et=-o,{x:i.x,y:i.y,z:i.z}}else mt=Math.atan2(W,H);_=$/d,v=c/d,p=1/Math.sqrt(1-e*(2-e)*v*v),A=v*(1-e)*p,P=_*p,B=0;do B++,b=n/Math.sqrt(1-e*P*P),Et=c*A+$*P-b*(1-e*P*P),y=e*b/(b+Et),p=1/Math.sqrt(1-y*(2-y)*v*v),E=v*(1-y)*p,z=_*p,R=z*A-E*P,A=E,P=z;while(R*R>l&&B<u);return it=Math.atan(z/Math.abs(E)),{x:mt,y:it,z:Et}}function Kr(i,e,n){if(e===mi)return{x:i.x+n[0],y:i.y+n[1],z:i.z+n[2]};if(e===_i){var o=n[0],r=n[1],l=n[2],u=n[3],c=n[4],d=n[5],_=n[6];return{x:_*(i.x-d*i.y+c*i.z)+o,y:_*(d*i.x+i.y-u*i.z)+r,z:_*(-c*i.x+u*i.y+i.z)+l}}}function Jr(i,e,n){if(e===mi)return{x:i.x-n[0],y:i.y-n[1],z:i.z-n[2]};if(e===_i){var o=n[0],r=n[1],l=n[2],u=n[3],c=n[4],d=n[5],_=n[6],v=(i.x-o)/_,p=(i.y-r)/_,y=(i.z-l)/_;return{x:v+d*p-c*y,y:-d*v+p+u*y,z:c*v-u*p+y}}}function Ne(i){return i===mi||i===_i}function Yr(i,e,n){if(Xr(i,e)||i.datum_type===ms||e.datum_type===ms)return n;var o=i.a,r=i.es;if(i.datum_type===bi){var l=Un(i,!1,n);if(l!==0)return;o=Cn,r=En}var u=e.a,c=e.b,d=e.es;if(e.datum_type===bi&&(u=Cn,c=ar,d=En),r===d&&o===u&&!Ne(i.datum_type)&&!Ne(e.datum_type))return n;if(n=qn(n,r,o),Ne(i.datum_type)&&(n=Kr(n,i.datum_type,i.datum_params)),Ne(e.datum_type)&&(n=Jr(n,e.datum_type,e.datum_params)),n=Gn(n,d,u,c),e.datum_type===bi){var _=Un(e,!0,n);if(_!==0)return}return n}function Un(i,e,n){if(i.grids===null||i.grids.length===0)return console.log("Grid shift grids not found"),-1;var o={x:-n.x,y:n.y},r={x:Number.NaN,y:Number.NaN},l=[];t:for(var u=0;u<i.grids.length;u++){var c=i.grids[u];if(l.push(c.name),c.isNull){r=o;break}if(c.mandatory,c.grid===null){if(c.mandatory)return console.log("Unable to find mandatory grid '"+c.name+"'"),-1;continue}for(var d=c.grid.subgrids,_=0,v=d.length;_<v;_++){var p=d[_],y=(Math.abs(p.del[1])+Math.abs(p.del[0]))/1e4,b=p.ll[0]-y,A=p.ll[1]-y,P=p.ll[0]+(p.lim[0]-1)*p.del[0]+y,E=p.ll[1]+(p.lim[1]-1)*p.del[1]+y;if(!(A>o.y||b>o.x||E<o.y||P<o.x)&&(r=th(o,e,p),!isNaN(r.x)))break t}}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-o.x*jt+" "+o.y*jt+" tried: '"+l+"'"),-1):(n.x=-r.x,n.y=r.y,0)}function th(i,e,n){var o={x:Number.NaN,y:Number.NaN};if(isNaN(i.x))return o;var r={x:i.x,y:i.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=O(r.x-Math.PI)+Math.PI;var l=jn(r,n);if(e){if(isNaN(l.x))return o;l.x=r.x-l.x,l.y=r.y-l.y;var u=9,c=1e-12,d,_;do{if(_=jn(l,n),isNaN(_.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}d={x:r.x-(_.x+l.x),y:r.y-(_.y+l.y)},l.x+=d.x,l.y+=d.y}while(u--&&Math.abs(d.x)>c&&Math.abs(d.y)>c);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),o;o.x=O(l.x+n.ll[0]),o.y=l.y+n.ll[1]}else isNaN(l.x)||(o.x=i.x+l.x,o.y=i.y+l.y);return o}function jn(i,e){var n={x:i.x/e.del[0],y:i.y/e.del[1]},o={x:Math.floor(n.x),y:Math.floor(n.y)},r={x:n.x-1*o.x,y:n.y-1*o.y},l={x:Number.NaN,y:Number.NaN},u;if(o.x<0||o.x>=e.lim[0]||o.y<0||o.y>=e.lim[1])return l;u=o.y*e.lim[0]+o.x;var c={x:e.cvs[u][0],y:e.cvs[u][1]};u++;var d={x:e.cvs[u][0],y:e.cvs[u][1]};u+=e.lim[0];var _={x:e.cvs[u][0],y:e.cvs[u][1]};u--;var v={x:e.cvs[u][0],y:e.cvs[u][1]},p=r.x*r.y,y=r.x*(1-r.y),b=(1-r.x)*(1-r.y),A=(1-r.x)*r.y;return l.x=b*c.x+y*d.x+A*v.x+p*_.x,l.y=b*c.y+y*d.y+A*v.y+p*_.y,l}function Hn(i,e,n){var o=n.x,r=n.y,l=n.z||0,u,c,d,_={};for(d=0;d<3;d++)if(!(e&&d===2&&n.z===void 0))switch(d===0?(u=o,"ew".indexOf(i.axis[d])!==-1?c="x":c="y"):d===1?(u=r,"ns".indexOf(i.axis[d])!==-1?c="y":c="x"):(u=l,c="z"),i.axis[d]){case"e":_[c]=u;break;case"w":_[c]=-u;break;case"n":_[c]=u;break;case"s":_[c]=-u;break;case"u":n[c]!==void 0&&(_.z=u);break;case"d":n[c]!==void 0&&(_.z=-u);break;default:return null}return _}function Wn(i){var e={x:i[0],y:i[1]};return i.length>2&&(e.z=i[2]),i.length>3&&(e.m=i[3]),e}function ih(i){$n(i.x),$n(i.y)}function $n(i){if(typeof Number.isFinite=="function"){if(Number.isFinite(i))return;throw new TypeError("coordinates must be finite numbers")}if(typeof i!="number"||i!==i||!isFinite(i))throw new TypeError("coordinates must be finite numbers")}function eh(i,e){return(i.datum.datum_type===mi||i.datum.datum_type===_i||i.datum.datum_type===bi)&&e.datumCode!=="WGS84"||(e.datum.datum_type===mi||e.datum.datum_type===_i||e.datum.datum_type===bi)&&i.datumCode!=="WGS84"}function Be(i,e,n,o){var r;Array.isArray(n)?n=Wn(n):n={x:n.x,y:n.y,z:n.z,m:n.m};var l=n.z!==void 0;if(ih(n),i.datum&&e.datum&&eh(i,e)&&(r=new $t("WGS84"),n=Be(i,r,n,o),i=r),o&&i.axis!=="enu"&&(n=Hn(i,!1,n)),i.projName==="longlat")n={x:n.x*vt,y:n.y*vt,z:n.z||0};else if(i.to_meter&&(n={x:n.x*i.to_meter,y:n.y*i.to_meter,z:n.z||0}),n=i.inverse(n),!n)return;if(i.from_greenwich&&(n.x+=i.from_greenwich),n=Yr(i.datum,e.datum,n),!!n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),e.projName==="longlat"?n={x:n.x*jt,y:n.y*jt,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),o&&e.axis!=="enu"?Hn(e,!0,n):(n&&!l&&delete n.z,n)}var Vn=$t("WGS84");function vs(i,e,n,o){var r,l,u;return Array.isArray(n)?(r=Be(i,e,n,o)||{x:NaN,y:NaN},n.length>2?typeof i.name<"u"&&i.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof r.z=="number"?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(l=Be(i,e,n,o),u=Object.keys(n),u.length===2||u.forEach(function(c){if(typeof i.name<"u"&&i.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(c==="x"||c==="y"||c==="z")return}else if(c==="x"||c==="y")return;l[c]=n[c]}),l)}function Qn(i){return i instanceof $t?i:i.oProj?i.oProj:$t(i)}function Nt(i,e,n){i=Qn(i);var o=!1,r;return typeof e>"u"?(e=i,i=Vn,o=!0):(typeof e.x<"u"||Array.isArray(e))&&(n=e,e=i,i=Vn,o=!0),e=Qn(e),n?vs(i,e,n):(r={forward:function(l,u){return vs(i,e,l,u)},inverse:function(l,u){return vs(e,i,l,u)}},o&&(r.oProj=e),r)}var Xn=6,Kn="AJSAJS",Jn="AFAFAF",Ai=65,Tt=73,Rt=79,Ki=86,Ji=90;const sh={forward:Yn,inverse:nh,toPoint:ta};function Yn(i,e){return e=e||5,rh(ah({lat:i[1],lon:i[0]}),e)}function nh(i){var e=Ms(sa(i.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function ta(i){var e=Ms(sa(i.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function ys(i){return i*(Math.PI/180)}function ia(i){return 180*(i/Math.PI)}function ah(i){var e=i.lat,n=i.lon,o=6378137,r=.00669438,l=.9996,u,c,d,_,v,p,y,b=ys(e),A=ys(n),P,E;E=Math.floor((n+180)/6)+1,n===180&&(E=60),e>=56&&e<64&&n>=3&&n<12&&(E=32),e>=72&&e<84&&(n>=0&&n<9?E=31:n>=9&&n<21?E=33:n>=21&&n<33?E=35:n>=33&&n<42&&(E=37)),u=(E-1)*6-180+3,P=ys(u),c=r/(1-r),d=o/Math.sqrt(1-r*Math.sin(b)*Math.sin(b)),_=Math.tan(b)*Math.tan(b),v=c*Math.cos(b)*Math.cos(b),p=Math.cos(b)*(A-P),y=o*((1-r/4-3*r*r/64-5*r*r*r/256)*b-(3*r/8+3*r*r/32+45*r*r*r/1024)*Math.sin(2*b)+(15*r*r/256+45*r*r*r/1024)*Math.sin(4*b)-35*r*r*r/3072*Math.sin(6*b));var z=l*d*(p+(1-_+v)*p*p*p/6+(5-18*_+_*_+72*v-58*c)*p*p*p*p*p/120)+5e5,R=l*(y+d*Math.tan(b)*(p*p/2+(5-_+9*v+4*v*v)*p*p*p*p/24+(61-58*_+_*_+600*v-330*c)*p*p*p*p*p*p/720));return e<0&&(R+=1e7),{northing:Math.round(R),easting:Math.round(z),zoneNumber:E,zoneLetter:oh(e)}}function Ms(i){var e=i.northing,n=i.easting,o=i.zoneLetter,r=i.zoneNumber;if(r<0||r>60)return null;var l=.9996,u=6378137,c=.00669438,d,_=(1-Math.sqrt(1-c))/(1+Math.sqrt(1-c)),v,p,y,b,A,P,E,z,R,B=n-5e5,H=e;o<"N"&&(H-=1e7),E=(r-1)*6-180+3,d=c/(1-c),P=H/l,z=P/(u*(1-c/4-3*c*c/64-5*c*c*c/256)),R=z+(3*_/2-27*_*_*_/32)*Math.sin(2*z)+(21*_*_/16-55*_*_*_*_/32)*Math.sin(4*z)+151*_*_*_/96*Math.sin(6*z),v=u/Math.sqrt(1-c*Math.sin(R)*Math.sin(R)),p=Math.tan(R)*Math.tan(R),y=d*Math.cos(R)*Math.cos(R),b=u*(1-c)/Math.pow(1-c*Math.sin(R)*Math.sin(R),1.5),A=B/(v*l);var W=R-v*Math.tan(R)/b*(A*A/2-(5+3*p+10*y-4*y*y-9*d)*A*A*A*A/24+(61+90*p+298*y+45*p*p-252*d-3*y*y)*A*A*A*A*A*A/720);W=ia(W);var $=(A-(1+2*p+y)*A*A*A/6+(5-2*y+28*p-3*y*y+8*d+24*p*p)*A*A*A*A*A/120)/Math.cos(R);$=E+ia($);var mt;if(i.accuracy){var it=Ms({northing:i.northing+i.accuracy,easting:i.easting+i.accuracy,zoneLetter:i.zoneLetter,zoneNumber:i.zoneNumber});mt={top:it.lat,right:it.lon,bottom:W,left:$}}else mt={lat:W,lon:$};return mt}function oh(i){var e="Z";return 84>=i&&i>=72?e="X":72>i&&i>=64?e="W":64>i&&i>=56?e="V":56>i&&i>=48?e="U":48>i&&i>=40?e="T":40>i&&i>=32?e="S":32>i&&i>=24?e="R":24>i&&i>=16?e="Q":16>i&&i>=8?e="P":8>i&&i>=0?e="N":0>i&&i>=-8?e="M":-8>i&&i>=-16?e="L":-16>i&&i>=-24?e="K":-24>i&&i>=-32?e="J":-32>i&&i>=-40?e="H":-40>i&&i>=-48?e="G":-48>i&&i>=-56?e="F":-56>i&&i>=-64?e="E":-64>i&&i>=-72?e="D":-72>i&&i>=-80&&(e="C"),e}function rh(i,e){var n="00000"+i.easting,o="00000"+i.northing;return i.zoneNumber+i.zoneLetter+hh(i.easting,i.northing,i.zoneNumber)+n.substr(n.length-5,e)+o.substr(o.length-5,e)}function hh(i,e,n){var o=ea(n),r=Math.floor(i/1e5),l=Math.floor(e/1e5)%20;return lh(r,l,o)}function ea(i){var e=i%Xn;return e===0&&(e=Xn),e}function lh(i,e,n){var o=n-1,r=Kn.charCodeAt(o),l=Jn.charCodeAt(o),u=r+i-1,c=l+e,d=!1;u>Ji&&(u=u-Ji+Ai-1,d=!0),(u===Tt||r<Tt&&u>Tt||(u>Tt||r<Tt)&&d)&&u++,(u===Rt||r<Rt&&u>Rt||(u>Rt||r<Rt)&&d)&&(u++,u===Tt&&u++),u>Ji&&(u=u-Ji+Ai-1),c>Ki?(c=c-Ki+Ai-1,d=!0):d=!1,(c===Tt||l<Tt&&c>Tt||(c>Tt||l<Tt)&&d)&&c++,(c===Rt||l<Rt&&c>Rt||(c>Rt||l<Rt)&&d)&&(c++,c===Tt&&c++),c>Ki&&(c=c-Ki+Ai-1);var _=String.fromCharCode(u)+String.fromCharCode(c);return _}function sa(i){if(i&&i.length===0)throw"MGRSPoint coverting from nothing";for(var e=i.length,n=null,o="",r,l=0;!/[A-Z]/.test(r=i.charAt(l));){if(l>=2)throw"MGRSPoint bad conversion from: "+i;o+=r,l++}var u=parseInt(o,10);if(l===0||l+3>e)throw"MGRSPoint bad conversion from: "+i;var c=i.charAt(l++);if(c<="A"||c==="B"||c==="Y"||c>="Z"||c==="I"||c==="O")throw"MGRSPoint zone letter "+c+" not handled: "+i;n=i.substring(l,l+=2);for(var d=ea(u),_=uh(n.charAt(0),d),v=ch(n.charAt(1),d);v<fh(c);)v+=2e6;var p=e-l;if(p%2!==0)throw`MGRSPoint has to have an even number
6
+ (约:`+Number(b*.0015).toFixed(3)+"亩)",A},updateMeasurements(){if(!this._measurementLayer)return this;const i=this.getLatLngs();new Array().push(i);let n=this.getLatLngs();const r=this instanceof M.Polygon,o=this._measurementOptions;let l,f,c,d,m;if(n&&n.length&&M.Util.isArray(n[0])&&(n=n[0]),this._measurementLayer.clearLayers(),this._measurementOptions.showDistances&&n.length>1){i.length-1;for(let v=1,p=n.length;r&&v<=p||v<p;v++)if(l=n[v-1],f=n[v%p],l.distanceTo(f),c=this._map.latLngToLayerPoint(l),d=this._map.latLngToLayerPoint(f),m=c.distanceTo(d),m>=o.minPixelDistance){const y=this.tempMoveFormatDistance(l,f);new Ni(this._map.layerPointToLatLng([(c.x+d.x)/2,(c.y+d.y)/2]),y,o.lang.segmentLength,this._getRotation(l,f),o).addTo(this._measurementLayer)}!r&&this._measurementOptions.showAggregate&&(new Ni(f,this.tempFormatDistance(i),o.lang.totalLength,0,o).addTo(this._measurementLayer),this.MEASUREDDATA=this.tempFormatDistance(i))}return r&&o.showArea&&n.length>2&&(new Ni(this.getBounds().getCenter(),this.tempFormatArea(i[0]),o.lang.totalArea,0,o).addTo(this._measurementLayer),this.MEASUREDDATA=this.tempFormatArea(i[0])),this},_getRotation(i,s){const n=this._map.project(i),r=this._map.project(s);return Math.atan((r.y-n.y)/(r.x-n.x))}}),M.LatLng.prototype.toArray=function(){return[this.lat,this.lng]},M.Path.include({getArea(i){var s,n=this._latlngs[0],r=(i||this._map).options.crs,o=n.length;let l=0,f,c;if(n!=null)for(let d=0;d<o;d++)s=(d+1)%o,f=180<n[d].lng&&90<n[d].lat?{x:n[d].lat,y:n[d].lng}:r.project(n[d]),c=180<n[s].lng&&90<n[s].lat?{x:n[s].lat,y:n[s].lng}:r.project(n[s]),l=(l+=f.x*c.y)-f.y*c.x;return Math.abs(l/2)},getLength(i){for(var s=[],n=(i||this._map).options.crs,r=this._latlngs,o=0;o<r.length;o++)this instanceof M.Polygon?s.push(...r[o]):this instanceof M.Polyline&&s.push(r[o]);let l=0,f,c;for(let y=0,b=s.length-1;y<b;y++){f=180<s[y][0]&&90<s[y][1]?{x:s[y].lat,y:s[y].lng}:n.project(s[y]),c=180<s[y+1][0]&&90<s[y+1][1]?{x:s[y+1].lat,y:s[y+1].lng}:n.project(s[y+1]);var d=f.x,m=f.y,v=c.x,p=c.y;l+=Math.sqrt((d-v)*(d-v)+(m-p)*(m-p))}return l}});var ao={exports:{}};function oo(i){i("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),i("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),i("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),i.WGS84=i["EPSG:4326"],i["EPSG:3785"]=i["EPSG:3857"],i.GOOGLE=i["EPSG:3857"],i["EPSG:900913"]=i["EPSG:3857"],i["EPSG:102113"]=i["EPSG:3857"]}var ri=1,hi=2,_i=3,ro=4,Qe=5,Ks=6378137,ho=6356752314e-3,Ys=.0066943799901413165,ki=484813681109536e-20,C=Math.PI/2,lo=.16666666666666666,uo=.04722222222222222,co=.022156084656084655,S=1e-10,mt=.017453292519943295,Dt=57.29577951308232,X=Math.PI/4,Bi=Math.PI*2,at=3.14159265359,wt={};wt.greenwich=0,wt.lisbon=-9.131906111111,wt.paris=2.337229166667,wt.bogota=-74.080916666667,wt.madrid=-3.687938888889,wt.rome=12.452333333333,wt.bern=7.439583333333,wt.jakarta=106.807719444444,wt.ferro=-17.666666666667,wt.brussels=4.367975,wt.stockholm=18.058277777778,wt.athens=23.7163375,wt.oslo=10.722916666667;const fo={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Js=/[\s_\-\/\(\)]/g;function ti(i,s){if(i[s])return i[s];for(var n=Object.keys(i),r=s.toLowerCase().replace(Js,""),o=-1,l,f;++o<n.length;)if(l=n[o],f=l.toLowerCase().replace(Js,""),f===r)return i[l]}function Xe(i){var s={},n=i.split("+").map(function(c){return c.trim()}).filter(function(c){return c}).reduce(function(c,d){var m=d.split("=");return m.push(!0),c[m[0].toLowerCase()]=m[1],c},{}),r,o,l,f={proj:"projName",datum:"datumCode",rf:function(c){s.rf=parseFloat(c)},lat_0:function(c){s.lat0=c*mt},lat_1:function(c){s.lat1=c*mt},lat_2:function(c){s.lat2=c*mt},lat_ts:function(c){s.lat_ts=c*mt},lon_0:function(c){s.long0=c*mt},lon_1:function(c){s.long1=c*mt},lon_2:function(c){s.long2=c*mt},alpha:function(c){s.alpha=parseFloat(c)*mt},gamma:function(c){s.rectified_grid_angle=parseFloat(c)},lonc:function(c){s.longc=c*mt},x_0:function(c){s.x0=parseFloat(c)},y_0:function(c){s.y0=parseFloat(c)},k_0:function(c){s.k0=parseFloat(c)},k:function(c){s.k0=parseFloat(c)},a:function(c){s.a=parseFloat(c)},b:function(c){s.b=parseFloat(c)},r:function(c){s.a=s.b=parseFloat(c)},r_a:function(){s.R_A=!0},zone:function(c){s.zone=parseInt(c,10)},south:function(){s.utmSouth=!0},towgs84:function(c){s.datum_params=c.split(",").map(function(d){return parseFloat(d)})},to_meter:function(c){s.to_meter=parseFloat(c)},units:function(c){s.units=c;var d=ti(fo,c);d&&(s.to_meter=d.to_meter)},from_greenwich:function(c){s.from_greenwich=c*mt},pm:function(c){var d=ti(wt,c);s.from_greenwich=(d||parseFloat(c))*mt},nadgrids:function(c){c==="@null"?s.datumCode="none":s.nadgrids=c},axis:function(c){var d="ewnsud";c.length===3&&d.indexOf(c.substr(0,1))!==-1&&d.indexOf(c.substr(1,1))!==-1&&d.indexOf(c.substr(2,1))!==-1&&(s.axis=c)},approx:function(){s.approx=!0}};for(r in n)o=n[r],r in f?(l=f[r],typeof l=="function"?l(o):s[l]=o):s[r]=o;return typeof s.datumCode=="string"&&s.datumCode!=="WGS84"&&(s.datumCode=s.datumCode.toLowerCase()),s}var Ri=1,tn=2,en=3,ge=4,sn=5,Ke=-1,_o=/\s/,mo=/[A-Za-z]/,po=/[A-Za-z84_]/,ve=/[,\]]/,nn=/[\d\.E\-\+]/;function $t(i){if(typeof i!="string")throw new Error("not a string");this.text=i.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Ri}$t.prototype.readCharicter=function(){var i=this.text[this.place++];if(this.state!==ge)for(;_o.test(i);){if(this.place>=this.text.length)return;i=this.text[this.place++]}switch(this.state){case Ri:return this.neutral(i);case tn:return this.keyword(i);case ge:return this.quoted(i);case sn:return this.afterquote(i);case en:return this.number(i);case Ke:return}},$t.prototype.afterquote=function(i){if(i==='"'){this.word+='"',this.state=ge;return}if(ve.test(i)){this.word=this.word.trim(),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in afterquote yet, index '+this.place)},$t.prototype.afterItem=function(i){if(i===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ri;return}if(i==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ri,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Ke);return}},$t.prototype.number=function(i){if(nn.test(i)){this.word+=i;return}if(ve.test(i)){this.word=parseFloat(this.word),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in number yet, index '+this.place)},$t.prototype.quoted=function(i){if(i==='"'){this.state=sn;return}this.word+=i},$t.prototype.keyword=function(i){if(po.test(i)){this.word+=i;return}if(i==="["){var s=[];s.push(this.word),this.level++,this.root===null?this.root=s:this.currentObject.push(s),this.stack.push(this.currentObject),this.currentObject=s,this.state=Ri;return}if(ve.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in keyword yet, index '+this.place)},$t.prototype.neutral=function(i){if(mo.test(i)){this.word=i,this.state=tn;return}if(i==='"'){this.word="",this.state=ge;return}if(nn.test(i)){this.word=i,this.state=en;return}if(ve.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in neutral yet, index '+this.place)},$t.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===Ke)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function go(i){var s=new $t(i);return s.output()}function an(i,s,n){Array.isArray(s)&&(n.unshift(s),s=null);var r=s?{}:i,o=n.reduce(function(l,f){return mi(f,l),l},r);s&&(i[s]=o)}function mi(i,s){if(!Array.isArray(i)){s[i]=!0;return}var n=i.shift();if(n==="PARAMETER"&&(n=i.shift()),i.length===1){if(Array.isArray(i[0])){s[n]={},mi(i[0],s[n]);return}s[n]=i[0];return}if(!i.length){s[n]=!0;return}if(n==="TOWGS84"){s[n]=i;return}if(n==="AXIS"){n in s||(s[n]=[]),s[n].push(i);return}Array.isArray(n)||(s[n]={});var r;switch(n){case"UNIT":case"PRIMEM":case"VERT_DATUM":s[n]={name:i[0].toLowerCase(),convert:i[1]},i.length===3&&mi(i[2],s[n]);return;case"SPHEROID":case"ELLIPSOID":s[n]={name:i[0],a:i[1],rf:i[2]},i.length===4&&mi(i[3],s[n]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":i[0]=["name",i[0]],an(s,n,i);return;default:for(r=-1;++r<i.length;)if(!Array.isArray(i[r]))return mi(i,s[n]);return an(s,n,i)}}var vo=.017453292519943295;function yo(i,s){var n=s[0],r=s[1];!(n in i)&&r in i&&(i[n]=i[r],s.length===3&&(i[n]=s[2](i[n])))}function Zt(i){return i*vo}function Mo(i){if(i.type==="GEOGCS"?i.projName="longlat":i.type==="LOCAL_CS"?(i.projName="identity",i.local=!0):typeof i.PROJECTION=="object"?i.projName=Object.keys(i.PROJECTION)[0]:i.projName=i.PROJECTION,i.AXIS){for(var s="",n=0,r=i.AXIS.length;n<r;++n){var o=[i.AXIS[n][0].toLowerCase(),i.AXIS[n][1].toLowerCase()];o[0].indexOf("north")!==-1||(o[0]==="y"||o[0]==="lat")&&o[1]==="north"?s+="n":o[0].indexOf("south")!==-1||(o[0]==="y"||o[0]==="lat")&&o[1]==="south"?s+="s":o[0].indexOf("east")!==-1||(o[0]==="x"||o[0]==="lon")&&o[1]==="east"?s+="e":(o[0].indexOf("west")!==-1||(o[0]==="x"||o[0]==="lon")&&o[1]==="west")&&(s+="w")}s.length===2&&(s+="u"),s.length===3&&(i.axis=s)}i.UNIT&&(i.units=i.UNIT.name.toLowerCase(),i.units==="metre"&&(i.units="meter"),i.UNIT.convert&&(i.type==="GEOGCS"?i.DATUM&&i.DATUM.SPHEROID&&(i.to_meter=i.UNIT.convert*i.DATUM.SPHEROID.a):i.to_meter=i.UNIT.convert));var l=i.GEOGCS;i.type==="GEOGCS"&&(l=i),l&&(l.DATUM?i.datumCode=l.DATUM.name.toLowerCase():i.datumCode=l.name.toLowerCase(),i.datumCode.slice(0,2)==="d_"&&(i.datumCode=i.datumCode.slice(2)),(i.datumCode==="new_zealand_geodetic_datum_1949"||i.datumCode==="new_zealand_1949")&&(i.datumCode="nzgd49"),(i.datumCode==="wgs_1984"||i.datumCode==="world_geodetic_system_1984")&&(i.PROJECTION==="Mercator_Auxiliary_Sphere"&&(i.sphere=!0),i.datumCode="wgs84"),i.datumCode.slice(-6)==="_ferro"&&(i.datumCode=i.datumCode.slice(0,-6)),i.datumCode.slice(-8)==="_jakarta"&&(i.datumCode=i.datumCode.slice(0,-8)),~i.datumCode.indexOf("belge")&&(i.datumCode="rnb72"),l.DATUM&&l.DATUM.SPHEROID&&(i.ellps=l.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),i.ellps.toLowerCase().slice(0,13)==="international"&&(i.ellps="intl"),i.a=l.DATUM.SPHEROID.a,i.rf=parseFloat(l.DATUM.SPHEROID.rf,10)),l.DATUM&&l.DATUM.TOWGS84&&(i.datum_params=l.DATUM.TOWGS84),~i.datumCode.indexOf("osgb_1936")&&(i.datumCode="osgb36"),~i.datumCode.indexOf("osni_1952")&&(i.datumCode="osni52"),(~i.datumCode.indexOf("tm65")||~i.datumCode.indexOf("geodetic_datum_of_1965"))&&(i.datumCode="ire65"),i.datumCode==="ch1903+"&&(i.datumCode="ch1903"),~i.datumCode.indexOf("israel")&&(i.datumCode="isr93")),i.b&&!isFinite(i.b)&&(i.b=i.a);function f(m){var v=i.to_meter||1;return m*v}var c=function(m){return yo(i,m)},d=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Zt],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Zt],["x0","false_easting",f],["y0","false_northing",f],["long0","central_meridian",Zt],["lat0","latitude_of_origin",Zt],["lat0","standard_parallel_1",Zt],["lat1","standard_parallel_1",Zt],["lat2","standard_parallel_2",Zt],["azimuth","Azimuth"],["alpha","azimuth",Zt],["srsCode","name"]];d.forEach(c),!i.long0&&i.longc&&(i.projName==="Albers_Conic_Equal_Area"||i.projName==="Lambert_Azimuthal_Equal_Area")&&(i.long0=i.longc),!i.lat_ts&&i.lat1&&(i.projName==="Stereographic_South_Pole"||i.projName==="Polar Stereographic (variant B)")?(i.lat0=Zt(i.lat1>0?90:-90),i.lat_ts=i.lat1):!i.lat_ts&&i.lat0&&i.projName==="Polar_Stereographic"&&(i.lat_ts=i.lat0,i.lat0=Zt(i.lat0>0?90:-90))}function on(i){var s=go(i),n=s.shift(),r=s.shift();s.unshift(["name",r]),s.unshift(["type",n]);var o={};return mi(s,o),Mo(o),o}function yt(i){var s=this;if(arguments.length===2){var n=arguments[1];typeof n=="string"?n.charAt(0)==="+"?yt[i]=Xe(arguments[1]):yt[i]=on(arguments[1]):yt[i]=n}else if(arguments.length===1){if(Array.isArray(i))return i.map(function(r){Array.isArray(r)?yt.apply(s,r):yt(r)});if(typeof i=="string"){if(i in yt)return yt[i]}else"EPSG"in i?yt["EPSG:"+i.EPSG]=i:"ESRI"in i?yt["ESRI:"+i.ESRI]=i:"IAU2000"in i?yt["IAU2000:"+i.IAU2000]=i:console.log(i);return}}oo(yt);function xo(i){return typeof i=="string"}function wo(i){return i in yt}var bo=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Lo(i){return bo.some(function(s){return i.indexOf(s)>-1})}var Po=["3857","900913","3785","102113"];function Ao(i){var s=ti(i,"authority");if(s){var n=ti(s,"epsg");return n&&Po.indexOf(n)>-1}}function To(i){var s=ti(i,"extension");if(s)return ti(s,"proj4")}function Co(i){return i[0]==="+"}function Eo(i){if(xo(i)){if(wo(i))return yt[i];if(Lo(i)){var s=on(i);if(Ao(s))return yt["EPSG:3857"];var n=To(s);return n?Xe(n):s}if(Co(i))return Xe(i)}else return i}function rn(i,s){i=i||{};var n,r;if(!s)return i;for(r in s)n=s[r],n!==void 0&&(i[r]=n);return i}function Ft(i,s,n){var r=i*s;return n/Math.sqrt(1-r*r)}function Di(i){return i<0?-1:1}function O(i){return Math.abs(i)<=at?i:i-Di(i)*Bi}function kt(i,s,n){var r=i*n,o=.5*i;return r=Math.pow((1-r)/(1+r),o),Math.tan(.5*(C-s))/r}function Zi(i,s){for(var n=.5*i,r,o,l=C-2*Math.atan(s),f=0;f<=15;f++)if(r=i*Math.sin(l),o=C-2*Math.atan(s*Math.pow((1-r)/(1+r),n))-l,l+=o,Math.abs(o)<=1e-10)return l;return-9999}function So(){var i=this.b/this.a;this.es=1-i*i,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Ft(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function Oo(i){var s=i.x,n=i.y;if(n*Dt>90&&n*Dt<-90&&s*Dt>180&&s*Dt<-180)return null;var r,o;if(Math.abs(Math.abs(n)-C)<=S)return null;if(this.sphere)r=this.x0+this.a*this.k0*O(s-this.long0),o=this.y0+this.a*this.k0*Math.log(Math.tan(X+.5*n));else{var l=Math.sin(n),f=kt(this.e,n,l);r=this.x0+this.a*this.k0*O(s-this.long0),o=this.y0-this.a*this.k0*Math.log(f)}return i.x=r,i.y=o,i}function Io(i){var s=i.x-this.x0,n=i.y-this.y0,r,o;if(this.sphere)o=C-2*Math.atan(Math.exp(-n/(this.a*this.k0)));else{var l=Math.exp(-n/(this.a*this.k0));if(o=Zi(this.e,l),o===-9999)return null}return r=O(this.long0+s/(this.a*this.k0)),i.x=r,i.y=o,i}var zo=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const No={init:So,forward:Oo,inverse:Io,names:zo};function ko(){}function hn(i){return i}var Bo=["longlat","identity"],Ro=[No,{init:ko,forward:hn,inverse:hn,names:Bo}],ye={},Me=[];function ln(i,s){var n=Me.length;return i.names?(Me[n]=i,i.names.forEach(function(r){ye[r.toLowerCase()]=n}),this):(console.log(s),!0)}function Do(i){if(!i)return!1;var s=i.toLowerCase();if(typeof ye[s]<"u"&&Me[ye[s]])return Me[ye[s]]}function Zo(){Ro.forEach(ln)}const Fo={start:Zo,add:ln,get:Do};var D={};D.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},D.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},D.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},D.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},D.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"},D.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},D.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},D.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"},D.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},D.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},D.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},D.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"},D.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},D.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"},D.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."},D.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},D.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"},D.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},D.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},D.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"},D.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"},D.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"},D.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"},D.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"},D.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},D.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},D.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},D.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},D.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},D.hough={a:6378270,rf:297,ellipseName:"Hough"},D.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},D.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},D.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},D.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},D.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"},D.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},D.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},D.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"},D.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"},D.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},D.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},D.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var qo=D.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};D.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Go(i,s,n,r){var o=i*i,l=s*s,f=(o-l)/o,c=0;r?(i*=1-f*(lo+f*(uo+f*co)),o=i*i,f=0):c=Math.sqrt(f);var d=(o-l)/l;return{es:f,e:c,ep2:d}}function Uo(i,s,n,r,o){if(!i){var l=ti(D,r);l||(l=qo),i=l.a,s=l.b,n=l.rf}return n&&!s&&(s=(1-1/n)*i),(n===0||Math.abs(i-s)<S)&&(o=!0,s=i),{a:i,b:s,rf:n,sphere:o}}var ut={};ut.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ut.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ut.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},ut.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},ut.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},ut.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},ut.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},ut.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},ut.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},ut.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ut.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},ut.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},ut.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},ut.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},ut.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},ut.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},ut.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},ut.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function jo(i,s,n,r,o,l,f){var c={};return i===void 0||i==="none"?c.datum_type=Qe:c.datum_type=ro,s&&(c.datum_params=s.map(parseFloat),(c.datum_params[0]!==0||c.datum_params[1]!==0||c.datum_params[2]!==0)&&(c.datum_type=ri),c.datum_params.length>3&&(c.datum_params[3]!==0||c.datum_params[4]!==0||c.datum_params[5]!==0||c.datum_params[6]!==0)&&(c.datum_type=hi,c.datum_params[3]*=ki,c.datum_params[4]*=ki,c.datum_params[5]*=ki,c.datum_params[6]=c.datum_params[6]/1e6+1)),f&&(c.datum_type=_i,c.grids=f),c.a=n,c.b=r,c.es=o,c.ep2=l,c}var un={};function Ho(i,s){var n=new DataView(s),r=Vo(n),o=Qo(n,r),l=Xo(n,o,r),f={header:o,subgrids:l};return un[i]=f,f}function Wo(i){if(i===void 0)return null;var s=i.split(",");return s.map($o)}function $o(i){if(i.length===0)return null;var s=i[0]==="@";return s&&(i=i.slice(1)),i==="null"?{name:"null",mandatory:!s,grid:null,isNull:!0}:{name:i,mandatory:!s,grid:un[i]||null,isNull:!1}}function pi(i){return i/3600*Math.PI/180}function Vo(i){var s=i.getInt32(8,!1);return s===11?!1:(s=i.getInt32(8,!0),s!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Qo(i,s){return{nFields:i.getInt32(8,s),nSubgridFields:i.getInt32(24,s),nSubgrids:i.getInt32(40,s),shiftType:Ye(i,56,64).trim(),fromSemiMajorAxis:i.getFloat64(120,s),fromSemiMinorAxis:i.getFloat64(136,s),toSemiMajorAxis:i.getFloat64(152,s),toSemiMinorAxis:i.getFloat64(168,s)}}function Ye(i,s,n){return String.fromCharCode.apply(null,new Uint8Array(i.buffer.slice(s,n)))}function Xo(i,s,n){for(var r=176,o=[],l=0;l<s.nSubgrids;l++){var f=Yo(i,r,n),c=Jo(i,r,f,n),d=Math.round(1+(f.upperLongitude-f.lowerLongitude)/f.longitudeInterval),m=Math.round(1+(f.upperLatitude-f.lowerLatitude)/f.latitudeInterval);o.push({ll:[pi(f.lowerLongitude),pi(f.lowerLatitude)],del:[pi(f.longitudeInterval),pi(f.latitudeInterval)],lim:[d,m],count:f.gridNodeCount,cvs:Ko(c)}),r+=176+f.gridNodeCount*16}return o}function Ko(i){return i.map(function(s){return[pi(s.longitudeShift),pi(s.latitudeShift)]})}function Yo(i,s,n){return{name:Ye(i,s+8,s+16).trim(),parent:Ye(i,s+24,s+24+8).trim(),lowerLatitude:i.getFloat64(s+72,n),upperLatitude:i.getFloat64(s+88,n),lowerLongitude:i.getFloat64(s+104,n),upperLongitude:i.getFloat64(s+120,n),latitudeInterval:i.getFloat64(s+136,n),longitudeInterval:i.getFloat64(s+152,n),gridNodeCount:i.getInt32(s+168,n)}}function Jo(i,s,n,r){for(var o=s+176,l=16,f=[],c=0;c<n.gridNodeCount;c++){var d={latitudeShift:i.getFloat32(o+c*l,r),longitudeShift:i.getFloat32(o+c*l+4,r),latitudeAccuracy:i.getFloat32(o+c*l+8,r),longitudeAccuracy:i.getFloat32(o+c*l+12,r)};f.push(d)}return f}function qt(i,s){if(!(this instanceof qt))return new qt(i);s=s||function(m){if(m)throw m};var n=Eo(i);if(typeof n!="object"){s("Could not parse to valid json: "+i);return}var r=qt.projections.get(n.projName);if(!r){s("Could not get projection name from: "+i);return}if(n.datumCode&&n.datumCode!=="none"){var o=ti(ut,n.datumCode);o&&(n.datum_params=n.datum_params||(o.towgs84?o.towgs84.split(","):null),n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var l=Uo(n.a,n.b,n.rf,n.ellps,n.sphere),f=Go(l.a,l.b,l.rf,n.R_A),c=Wo(n.nadgrids),d=n.datum||jo(n.datumCode,n.datum_params,l.a,l.b,f.es,f.ep2,c);rn(this,n),rn(this,r),this.a=l.a,this.b=l.b,this.rf=l.rf,this.sphere=l.sphere,this.es=f.es,this.e=f.e,this.ep2=f.ep2,this.datum=d,this.init(),s(null,this)}qt.projections=Fo,qt.projections.start();function tr(i,s){return i.datum_type!==s.datum_type||i.a!==s.a||Math.abs(i.es-s.es)>5e-11?!1:i.datum_type===ri?i.datum_params[0]===s.datum_params[0]&&i.datum_params[1]===s.datum_params[1]&&i.datum_params[2]===s.datum_params[2]:i.datum_type===hi?i.datum_params[0]===s.datum_params[0]&&i.datum_params[1]===s.datum_params[1]&&i.datum_params[2]===s.datum_params[2]&&i.datum_params[3]===s.datum_params[3]&&i.datum_params[4]===s.datum_params[4]&&i.datum_params[5]===s.datum_params[5]&&i.datum_params[6]===s.datum_params[6]:!0}function cn(i,s,n){var r=i.x,o=i.y,l=i.z?i.z:0,f,c,d,m;if(o<-C&&o>-1.001*C)o=-C;else if(o>C&&o<1.001*C)o=C;else{if(o<-C)return{x:-1/0,y:-1/0,z:i.z};if(o>C)return{x:1/0,y:1/0,z:i.z}}return r>Math.PI&&(r-=2*Math.PI),c=Math.sin(o),m=Math.cos(o),d=c*c,f=n/Math.sqrt(1-s*d),{x:(f+l)*m*Math.cos(r),y:(f+l)*m*Math.sin(r),z:(f*(1-s)+l)*c}}function fn(i,s,n,r){var o=1e-12,l=o*o,f=30,c,d,m,v,p,y,b,A,P,E,z,B,k,j=i.x,H=i.y,W=i.z?i.z:0,ct,tt,Pt;if(c=Math.sqrt(j*j+H*H),d=Math.sqrt(j*j+H*H+W*W),c/n<o){if(ct=0,d/n<o)return tt=C,Pt=-r,{x:i.x,y:i.y,z:i.z}}else ct=Math.atan2(H,j);m=W/d,v=c/d,p=1/Math.sqrt(1-s*(2-s)*v*v),A=v*(1-s)*p,P=m*p,k=0;do k++,b=n/Math.sqrt(1-s*P*P),Pt=c*A+W*P-b*(1-s*P*P),y=s*b/(b+Pt),p=1/Math.sqrt(1-y*(2-y)*v*v),E=v*(1-y)*p,z=m*p,B=z*A-E*P,A=E,P=z;while(B*B>l&&k<f);return tt=Math.atan(z/Math.abs(E)),{x:ct,y:tt,z:Pt}}function ir(i,s,n){if(s===ri)return{x:i.x+n[0],y:i.y+n[1],z:i.z+n[2]};if(s===hi){var r=n[0],o=n[1],l=n[2],f=n[3],c=n[4],d=n[5],m=n[6];return{x:m*(i.x-d*i.y+c*i.z)+r,y:m*(d*i.x+i.y-f*i.z)+o,z:m*(-c*i.x+f*i.y+i.z)+l}}}function er(i,s,n){if(s===ri)return{x:i.x-n[0],y:i.y-n[1],z:i.z-n[2]};if(s===hi){var r=n[0],o=n[1],l=n[2],f=n[3],c=n[4],d=n[5],m=n[6],v=(i.x-r)/m,p=(i.y-o)/m,y=(i.z-l)/m;return{x:v+d*p-c*y,y:-d*v+p+f*y,z:c*v-f*p+y}}}function xe(i){return i===ri||i===hi}function sr(i,s,n){if(tr(i,s)||i.datum_type===Qe||s.datum_type===Qe)return n;var r=i.a,o=i.es;if(i.datum_type===_i){var l=dn(i,!1,n);if(l!==0)return;r=Ks,o=Ys}var f=s.a,c=s.b,d=s.es;if(s.datum_type===_i&&(f=Ks,c=ho,d=Ys),o===d&&r===f&&!xe(i.datum_type)&&!xe(s.datum_type))return n;if(n=cn(n,o,r),xe(i.datum_type)&&(n=ir(n,i.datum_type,i.datum_params)),xe(s.datum_type)&&(n=er(n,s.datum_type,s.datum_params)),n=fn(n,d,f,c),s.datum_type===_i){var m=dn(s,!0,n);if(m!==0)return}return n}function dn(i,s,n){if(i.grids===null||i.grids.length===0)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},o={x:Number.NaN,y:Number.NaN},l=[];t:for(var f=0;f<i.grids.length;f++){var c=i.grids[f];if(l.push(c.name),c.isNull){o=r;break}if(c.mandatory,c.grid===null){if(c.mandatory)return console.log("Unable to find mandatory grid '"+c.name+"'"),-1;continue}for(var d=c.grid.subgrids,m=0,v=d.length;m<v;m++){var p=d[m],y=(Math.abs(p.del[1])+Math.abs(p.del[0]))/1e4,b=p.ll[0]-y,A=p.ll[1]-y,P=p.ll[0]+(p.lim[0]-1)*p.del[0]+y,E=p.ll[1]+(p.lim[1]-1)*p.del[1]+y;if(!(A>r.y||b>r.x||E<r.y||P<r.x)&&(o=nr(r,s,p),!isNaN(o.x)))break t}}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*Dt+" "+r.y*Dt+" tried: '"+l+"'"),-1):(n.x=-o.x,n.y=o.y,0)}function nr(i,s,n){var r={x:Number.NaN,y:Number.NaN};if(isNaN(i.x))return r;var o={x:i.x,y:i.y};o.x-=n.ll[0],o.y-=n.ll[1],o.x=O(o.x-Math.PI)+Math.PI;var l=_n(o,n);if(s){if(isNaN(l.x))return r;l.x=o.x-l.x,l.y=o.y-l.y;var f=9,c=1e-12,d,m;do{if(m=_n(l,n),isNaN(m.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}d={x:o.x-(m.x+l.x),y:o.y-(m.y+l.y)},l.x+=d.x,l.y+=d.y}while(f--&&Math.abs(d.x)>c&&Math.abs(d.y)>c);if(f<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=O(l.x+n.ll[0]),r.y=l.y+n.ll[1]}else isNaN(l.x)||(r.x=i.x+l.x,r.y=i.y+l.y);return r}function _n(i,s){var n={x:i.x/s.del[0],y:i.y/s.del[1]},r={x:Math.floor(n.x),y:Math.floor(n.y)},o={x:n.x-1*r.x,y:n.y-1*r.y},l={x:Number.NaN,y:Number.NaN},f;if(r.x<0||r.x>=s.lim[0]||r.y<0||r.y>=s.lim[1])return l;f=r.y*s.lim[0]+r.x;var c={x:s.cvs[f][0],y:s.cvs[f][1]};f++;var d={x:s.cvs[f][0],y:s.cvs[f][1]};f+=s.lim[0];var m={x:s.cvs[f][0],y:s.cvs[f][1]};f--;var v={x:s.cvs[f][0],y:s.cvs[f][1]},p=o.x*o.y,y=o.x*(1-o.y),b=(1-o.x)*(1-o.y),A=(1-o.x)*o.y;return l.x=b*c.x+y*d.x+A*v.x+p*m.x,l.y=b*c.y+y*d.y+A*v.y+p*m.y,l}function mn(i,s,n){var r=n.x,o=n.y,l=n.z||0,f,c,d,m={};for(d=0;d<3;d++)if(!(s&&d===2&&n.z===void 0))switch(d===0?(f=r,"ew".indexOf(i.axis[d])!==-1?c="x":c="y"):d===1?(f=o,"ns".indexOf(i.axis[d])!==-1?c="y":c="x"):(f=l,c="z"),i.axis[d]){case"e":m[c]=f;break;case"w":m[c]=-f;break;case"n":m[c]=f;break;case"s":m[c]=-f;break;case"u":n[c]!==void 0&&(m.z=f);break;case"d":n[c]!==void 0&&(m.z=-f);break;default:return null}return m}function pn(i){var s={x:i[0],y:i[1]};return i.length>2&&(s.z=i[2]),i.length>3&&(s.m=i[3]),s}function ar(i){gn(i.x),gn(i.y)}function gn(i){if(typeof Number.isFinite=="function"){if(Number.isFinite(i))return;throw new TypeError("coordinates must be finite numbers")}if(typeof i!="number"||i!==i||!isFinite(i))throw new TypeError("coordinates must be finite numbers")}function or(i,s){return(i.datum.datum_type===ri||i.datum.datum_type===hi||i.datum.datum_type===_i)&&s.datumCode!=="WGS84"||(s.datum.datum_type===ri||s.datum.datum_type===hi||s.datum.datum_type===_i)&&i.datumCode!=="WGS84"}function we(i,s,n,r){var o;Array.isArray(n)?n=pn(n):n={x:n.x,y:n.y,z:n.z,m:n.m};var l=n.z!==void 0;if(ar(n),i.datum&&s.datum&&or(i,s)&&(o=new qt("WGS84"),n=we(i,o,n,r),i=o),r&&i.axis!=="enu"&&(n=mn(i,!1,n)),i.projName==="longlat")n={x:n.x*mt,y:n.y*mt,z:n.z||0};else if(i.to_meter&&(n={x:n.x*i.to_meter,y:n.y*i.to_meter,z:n.z||0}),n=i.inverse(n),!n)return;if(i.from_greenwich&&(n.x+=i.from_greenwich),n=sr(i.datum,s.datum,n),!!n)return s.from_greenwich&&(n={x:n.x-s.from_greenwich,y:n.y,z:n.z||0}),s.projName==="longlat"?n={x:n.x*Dt,y:n.y*Dt,z:n.z||0}:(n=s.forward(n),s.to_meter&&(n={x:n.x/s.to_meter,y:n.y/s.to_meter,z:n.z||0})),r&&s.axis!=="enu"?mn(s,!0,n):(n&&!l&&delete n.z,n)}var vn=qt("WGS84");function Je(i,s,n,r){var o,l,f;return Array.isArray(n)?(o=we(i,s,n,r)||{x:NaN,y:NaN},n.length>2?typeof i.name<"u"&&i.name==="geocent"||typeof s.name<"u"&&s.name==="geocent"?typeof o.z=="number"?[o.x,o.y,o.z].concat(n.slice(3)):[o.x,o.y,n[2]].concat(n.slice(3)):[o.x,o.y].concat(n.slice(2)):[o.x,o.y]):(l=we(i,s,n,r),f=Object.keys(n),f.length===2||f.forEach(function(c){if(typeof i.name<"u"&&i.name==="geocent"||typeof s.name<"u"&&s.name==="geocent"){if(c==="x"||c==="y"||c==="z")return}else if(c==="x"||c==="y")return;l[c]=n[c]}),l)}function yn(i){return i instanceof qt?i:i.oProj?i.oProj:qt(i)}function Et(i,s,n){i=yn(i);var r=!1,o;return typeof s>"u"?(s=i,i=vn,r=!0):(typeof s.x<"u"||Array.isArray(s))&&(n=s,s=i,i=vn,r=!0),s=yn(s),n?Je(i,s,n):(o={forward:function(l,f){return Je(i,s,l,f)},inverse:function(l,f){return Je(s,i,l,f)}},r&&(o.oProj=s),o)}var Mn=6,xn="AJSAJS",wn="AFAFAF",gi=65,bt=73,Ot=79,Fi=86,qi=90;const rr={forward:bn,inverse:hr,toPoint:Ln};function bn(i,s){return s=s||5,cr(lr({lat:i[1],lon:i[0]}),s)}function hr(i){var s=is(Tn(i.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat,s.lon,s.lat]:[s.left,s.bottom,s.right,s.top]}function Ln(i){var s=is(Tn(i.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function ts(i){return i*(Math.PI/180)}function Pn(i){return 180*(i/Math.PI)}function lr(i){var s=i.lat,n=i.lon,r=6378137,o=.00669438,l=.9996,f,c,d,m,v,p,y,b=ts(s),A=ts(n),P,E;E=Math.floor((n+180)/6)+1,n===180&&(E=60),s>=56&&s<64&&n>=3&&n<12&&(E=32),s>=72&&s<84&&(n>=0&&n<9?E=31:n>=9&&n<21?E=33:n>=21&&n<33?E=35:n>=33&&n<42&&(E=37)),f=(E-1)*6-180+3,P=ts(f),c=o/(1-o),d=r/Math.sqrt(1-o*Math.sin(b)*Math.sin(b)),m=Math.tan(b)*Math.tan(b),v=c*Math.cos(b)*Math.cos(b),p=Math.cos(b)*(A-P),y=r*((1-o/4-3*o*o/64-5*o*o*o/256)*b-(3*o/8+3*o*o/32+45*o*o*o/1024)*Math.sin(2*b)+(15*o*o/256+45*o*o*o/1024)*Math.sin(4*b)-35*o*o*o/3072*Math.sin(6*b));var z=l*d*(p+(1-m+v)*p*p*p/6+(5-18*m+m*m+72*v-58*c)*p*p*p*p*p/120)+5e5,B=l*(y+d*Math.tan(b)*(p*p/2+(5-m+9*v+4*v*v)*p*p*p*p/24+(61-58*m+m*m+600*v-330*c)*p*p*p*p*p*p/720));return s<0&&(B+=1e7),{northing:Math.round(B),easting:Math.round(z),zoneNumber:E,zoneLetter:ur(s)}}function is(i){var s=i.northing,n=i.easting,r=i.zoneLetter,o=i.zoneNumber;if(o<0||o>60)return null;var l=.9996,f=6378137,c=.00669438,d,m=(1-Math.sqrt(1-c))/(1+Math.sqrt(1-c)),v,p,y,b,A,P,E,z,B,k=n-5e5,j=s;r<"N"&&(j-=1e7),E=(o-1)*6-180+3,d=c/(1-c),P=j/l,z=P/(f*(1-c/4-3*c*c/64-5*c*c*c/256)),B=z+(3*m/2-27*m*m*m/32)*Math.sin(2*z)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*z)+151*m*m*m/96*Math.sin(6*z),v=f/Math.sqrt(1-c*Math.sin(B)*Math.sin(B)),p=Math.tan(B)*Math.tan(B),y=d*Math.cos(B)*Math.cos(B),b=f*(1-c)/Math.pow(1-c*Math.sin(B)*Math.sin(B),1.5),A=k/(v*l);var H=B-v*Math.tan(B)/b*(A*A/2-(5+3*p+10*y-4*y*y-9*d)*A*A*A*A/24+(61+90*p+298*y+45*p*p-252*d-3*y*y)*A*A*A*A*A*A/720);H=Pn(H);var W=(A-(1+2*p+y)*A*A*A/6+(5-2*y+28*p-3*y*y+8*d+24*p*p)*A*A*A*A*A/120)/Math.cos(B);W=E+Pn(W);var ct;if(i.accuracy){var tt=is({northing:i.northing+i.accuracy,easting:i.easting+i.accuracy,zoneLetter:i.zoneLetter,zoneNumber:i.zoneNumber});ct={top:tt.lat,right:tt.lon,bottom:H,left:W}}else ct={lat:H,lon:W};return ct}function ur(i){var s="Z";return 84>=i&&i>=72?s="X":72>i&&i>=64?s="W":64>i&&i>=56?s="V":56>i&&i>=48?s="U":48>i&&i>=40?s="T":40>i&&i>=32?s="S":32>i&&i>=24?s="R":24>i&&i>=16?s="Q":16>i&&i>=8?s="P":8>i&&i>=0?s="N":0>i&&i>=-8?s="M":-8>i&&i>=-16?s="L":-16>i&&i>=-24?s="K":-24>i&&i>=-32?s="J":-32>i&&i>=-40?s="H":-40>i&&i>=-48?s="G":-48>i&&i>=-56?s="F":-56>i&&i>=-64?s="E":-64>i&&i>=-72?s="D":-72>i&&i>=-80&&(s="C"),s}function cr(i,s){var n="00000"+i.easting,r="00000"+i.northing;return i.zoneNumber+i.zoneLetter+fr(i.easting,i.northing,i.zoneNumber)+n.substr(n.length-5,s)+r.substr(r.length-5,s)}function fr(i,s,n){var r=An(n),o=Math.floor(i/1e5),l=Math.floor(s/1e5)%20;return dr(o,l,r)}function An(i){var s=i%Mn;return s===0&&(s=Mn),s}function dr(i,s,n){var r=n-1,o=xn.charCodeAt(r),l=wn.charCodeAt(r),f=o+i-1,c=l+s,d=!1;f>qi&&(f=f-qi+gi-1,d=!0),(f===bt||o<bt&&f>bt||(f>bt||o<bt)&&d)&&f++,(f===Ot||o<Ot&&f>Ot||(f>Ot||o<Ot)&&d)&&(f++,f===bt&&f++),f>qi&&(f=f-qi+gi-1),c>Fi?(c=c-Fi+gi-1,d=!0):d=!1,(c===bt||l<bt&&c>bt||(c>bt||l<bt)&&d)&&c++,(c===Ot||l<Ot&&c>Ot||(c>Ot||l<Ot)&&d)&&(c++,c===bt&&c++),c>Fi&&(c=c-Fi+gi-1);var m=String.fromCharCode(f)+String.fromCharCode(c);return m}function Tn(i){if(i&&i.length===0)throw"MGRSPoint coverting from nothing";for(var s=i.length,n=null,r="",o,l=0;!/[A-Z]/.test(o=i.charAt(l));){if(l>=2)throw"MGRSPoint bad conversion from: "+i;r+=o,l++}var f=parseInt(r,10);if(l===0||l+3>s)throw"MGRSPoint bad conversion from: "+i;var c=i.charAt(l++);if(c<="A"||c==="B"||c==="Y"||c>="Z"||c==="I"||c==="O")throw"MGRSPoint zone letter "+c+" not handled: "+i;n=i.substring(l,l+=2);for(var d=An(f),m=_r(n.charAt(0),d),v=mr(n.charAt(1),d);v<pr(c);)v+=2e6;var p=s-l;if(p%2!==0)throw`MGRSPoint has to have an even number
7
7
  of digits after the zone letter and two 100km letters - front
8
8
  half for easting meters, second half for
9
- northing meters`+i;var y=p/2,b=0,A=0,P,E,z,R,B;return y>0&&(P=1e5/Math.pow(10,y),E=i.substring(l,l+y),b=parseFloat(E)*P,z=i.substring(l+y),A=parseFloat(z)*P),R=b+_,B=A+v,{easting:R,northing:B,zoneLetter:c,zoneNumber:u,accuracy:P}}function uh(i,e){for(var n=Kn.charCodeAt(e-1),o=1e5,r=!1;n!==i.charCodeAt(0);){if(n++,n===Tt&&n++,n===Rt&&n++,n>Ji){if(r)throw"Bad character: "+i;n=Ai,r=!0}o+=1e5}return o}function ch(i,e){if(i>"V")throw"MGRSPoint given invalid Northing "+i;for(var n=Jn.charCodeAt(e-1),o=0,r=!1;n!==i.charCodeAt(0);){if(n++,n===Tt&&n++,n===Rt&&n++,n>Ki){if(r)throw"Bad character: "+i;n=Ai,r=!0}o+=1e5}return o}function fh(i){var e;switch(i){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+i}function Ti(i,e,n){if(!(this instanceof Ti))return new Ti(i,e,n);if(Array.isArray(i))this.x=i[0],this.y=i[1],this.z=i[2]||0;else if(typeof i=="object")this.x=i.x,this.y=i.y,this.z=i.z||0;else if(typeof i=="string"&&typeof e>"u"){var o=i.split(",");this.x=parseFloat(o[0],10),this.y=parseFloat(o[1],10),this.z=parseFloat(o[2],10)||0}else this.x=i,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ti.fromMGRS=function(i){return new Ti(ta(i))},Ti.prototype.toMGRS=function(i){return Yn([this.x,this.y],i)};var dh=1,mh=.25,na=.046875,aa=.01953125,oa=.01068115234375,_h=.75,ph=.46875,gh=.013020833333333334,vh=.007120768229166667,yh=.3645833333333333,Mh=.005696614583333333,xh=.3076171875;function xs(i){var e=[];e[0]=dh-i*(mh+i*(na+i*(aa+i*oa))),e[1]=i*(_h-i*(na+i*(aa+i*oa)));var n=i*i;return e[2]=n*(ph-i*(gh+i*vh)),n*=i,e[3]=n*(yh-i*Mh),e[4]=n*i*xh,e}function Ci(i,e,n,o){return n*=e,e*=e,o[0]*i-n*(o[1]+e*(o[2]+e*(o[3]+e*o[4])))}var wh=20;function ws(i,e,n){for(var o=1/(1-e),r=i,l=wh;l;--l){var u=Math.sin(r),c=1-e*u*u;if(c=(Ci(r,u,Math.cos(r),n)-i)*(c*Math.sqrt(c))*o,r-=c,Math.abs(c)<S)return r}return r}function bh(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=xs(this.es),this.ml0=Ci(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function Lh(i){var e=i.x,n=i.y,o=O(e-this.long0),r,l,u,c=Math.sin(n),d=Math.cos(n);if(this.es){var v=d*o,p=Math.pow(v,2),y=this.ep2*Math.pow(d,2),b=Math.pow(y,2),A=Math.abs(d)>S?Math.tan(n):0,P=Math.pow(A,2),E=Math.pow(P,2);r=1-this.es*Math.pow(c,2),v=v/Math.sqrt(r);var z=Ci(n,c,d,this.en);l=this.a*(this.k0*v*(1+p/6*(1-P+y+p/20*(5-18*P+E+14*y-58*P*y+p/42*(61+179*E-E*P-479*P)))))+this.x0,u=this.a*(this.k0*(z-this.ml0+c*o*v/2*(1+p/12*(5-P+9*y+4*b+p/30*(61+E-58*P+270*y-330*P*y+p/56*(1385+543*E-E*P-3111*P))))))+this.y0}else{var _=d*Math.sin(o);if(Math.abs(Math.abs(_)-1)<S)return 93;if(l=.5*this.a*this.k0*Math.log((1+_)/(1-_))+this.x0,u=d*Math.cos(o)/Math.sqrt(1-Math.pow(_,2)),_=Math.abs(u),_>=1){if(_-1>S)return 93;u=0}else u=Math.acos(u);n<0&&(u=-u),u=this.a*this.k0*(u-this.lat0)+this.y0}return i.x=l,i.y=u,i}function Ph(i){var e,n,o,r,l=(i.x-this.x0)*(1/this.a),u=(i.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+u/this.k0,n=ws(e,this.es,this.en),Math.abs(n)<C){var p=Math.sin(n),y=Math.cos(n),b=Math.abs(y)>S?Math.tan(n):0,A=this.ep2*Math.pow(y,2),P=Math.pow(A,2),E=Math.pow(b,2),z=Math.pow(E,2);e=1-this.es*Math.pow(p,2);var R=l*Math.sqrt(e)/this.k0,B=Math.pow(R,2);e=e*b,o=n-e*B/(1-this.es)*.5*(1-B/12*(5+3*E-9*A*E+A-4*P-B/30*(61+90*E-252*A*E+45*z+46*A-B/56*(1385+3633*E+4095*z+1574*z*E)))),r=O(this.long0+R*(1-B/6*(1+2*E+A-B/20*(5+28*E+24*z+8*A*E+6*A-B/42*(61+662*E+1320*z+720*z*E))))/y)}else o=C*Qi(u),r=0;else{var c=Math.exp(l/this.k0),d=.5*(c-1/c),_=this.lat0+u/this.k0,v=Math.cos(_);e=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(d,2))),o=Math.asin(e),u<0&&(o=-o),d===0&&v===0?r=0:r=O(Math.atan2(d,v)+this.long0)}return i.x=r,i.y=o,i}var Ah=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Re={init:bh,forward:Lh,inverse:Ph,names:Ah};function ra(i){var e=Math.exp(i);return e=(e-1/e)/2,e}function Ct(i,e){i=Math.abs(i),e=Math.abs(e);var n=Math.max(i,e),o=Math.min(i,e)/(n||1);return n*Math.sqrt(1+Math.pow(o,2))}function Th(i){var e=1+i,n=e-1;return n===0?i:i*Math.log(e)/n}function Ch(i){var e=Math.abs(i);return e=Th(e*(1+e/(Ct(1,e)+1))),i<0?-e:e}function bs(i,e){for(var n=2*Math.cos(2*e),o=i.length-1,r=i[o],l=0,u;--o>=0;)u=-l+n*r+i[o],l=r,r=u;return e+u*Math.sin(2*e)}function Eh(i,e){for(var n=2*Math.cos(e),o=i.length-1,r=i[o],l=0,u;--o>=0;)u=-l+n*r+i[o],l=r,r=u;return Math.sin(e)*u}function Sh(i){var e=Math.exp(i);return e=(e+1/e)/2,e}function ha(i,e,n){for(var o=Math.sin(e),r=Math.cos(e),l=ra(n),u=Sh(n),c=2*r*u,d=-2*o*l,_=i.length-1,v=i[_],p=0,y=0,b=0,A,P;--_>=0;)A=y,P=p,y=v,p=b,v=-A+c*y-d*p+i[_],b=-P+d*y+c*p;return c=o*u,d=r*l,[c*v-d*b,c*b+d*v]}function Oh(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Re.init.apply(this),this.forward=Re.forward,this.inverse=Re.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var i=this.es/(1+Math.sqrt(1-this.es)),e=i/(2-i),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),n=n*e,this.cgb[1]=n*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n=n*e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),n=n*e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(-12/5+e*(-24832/14175))),n=n*e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n=n*e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),n=n*e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n=n*e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n=n*e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n=n*e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=n*(212378941/319334400);var o=bs(this.cbg,this.lat0);this.Zb=-this.Qn*(o+Eh(this.gtu,2*o))}function kh(i){var e=O(i.x-this.long0),n=i.y;n=bs(this.cbg,n);var o=Math.sin(n),r=Math.cos(n),l=Math.sin(e),u=Math.cos(e);n=Math.atan2(o,u*r),e=Math.atan2(l*r,Ct(o,r*u)),e=Ch(Math.tan(e));var c=ha(this.gtu,2*n,2*e);n=n+c[0],e=e+c[1];var d,_;return Math.abs(e)<=2.623395162778?(d=this.a*(this.Qn*e)+this.x0,_=this.a*(this.Qn*n+this.Zb)+this.y0):(d=1/0,_=1/0),i.x=d,i.y=_,i}function zh(i){var e=(i.x-this.x0)*(1/this.a),n=(i.y-this.y0)*(1/this.a);n=(n-this.Zb)/this.Qn,e=e/this.Qn;var o,r;if(Math.abs(e)<=2.623395162778){var l=ha(this.utg,2*n,2*e);n=n+l[0],e=e+l[1],e=Math.atan(ra(e));var u=Math.sin(n),c=Math.cos(n),d=Math.sin(e),_=Math.cos(e);n=Math.atan2(u*_,Ct(d,_*c)),e=Math.atan2(d,_*c),o=O(e+this.long0),r=bs(this.cgb,n)}else o=1/0,r=1/0;return i.x=o,i.y=r,i}var Ih=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const De={init:Oh,forward:kh,inverse:zh,names:Ih};function Nh(i,e){if(i===void 0){if(i=Math.floor((O(e)+Math.PI)*30/Math.PI)+1,i<0)return 0;if(i>60)return 60}return i}var Bh="etmerc";function Rh(){var i=Nh(this.zone,this.long0);if(i===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(i)-183)*vt,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,De.init.apply(this),this.forward=De.forward,this.inverse=De.inverse}var Dh=["Universal Transverse Mercator System","utm"];const Zh={init:Rh,names:Dh,dependsOn:Bh};function Ls(i,e){return Math.pow((1-i)/(1+i),e)}var Fh=20;function qh(){var i=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*i*i),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(i/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+K)/(Math.pow(Math.tan(.5*this.lat0+K),this.C)*Ls(this.e*i,this.ratexp))}function Gh(i){var e=i.x,n=i.y;return i.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+K),this.C)*Ls(this.e*Math.sin(n),this.ratexp))-C,i.x=this.C*e,i}function Uh(i){for(var e=1e-14,n=i.x/this.C,o=i.y,r=Math.pow(Math.tan(.5*o+K)/this.K,1/this.C),l=Fh;l>0&&(o=2*Math.atan(r*Ls(this.e*Math.sin(i.y),-.5*this.e))-C,!(Math.abs(o-i.y)<e));--l)i.y=o;return l?(i.x=n,i.y=o,i):null}var jh=["gauss"];const Ps={init:qh,forward:Gh,inverse:Uh,names:jh};function Hh(){Ps.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Wh(i){var e,n,o,r;return i.x=O(i.x-this.long0),Ps.forward.apply(this,[i]),e=Math.sin(i.y),n=Math.cos(i.y),o=Math.cos(i.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*o),i.x=r*n*Math.sin(i.x),i.y=r*(this.cosc0*e-this.sinc0*n*o),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function $h(i){var e,n,o,r,l;if(i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,i.x/=this.k0,i.y/=this.k0,l=Ct(i.x,i.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),n=Math.cos(u),r=Math.asin(n*this.sinc0+i.y*e*this.cosc0/l),o=Math.atan2(i.x*e,l*this.cosc0*n-i.y*this.sinc0*e)}else r=this.phic0,o=0;return i.x=o,i.y=r,Ps.inverse.apply(this,[i]),i.x=O(i.x+this.long0),i}var Vh=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const Qh={init:Hh,forward:Wh,inverse:$h,names:Vh};function Xh(i,e,n){return e*=n,Math.tan(.5*(C+i))*Math.pow((1-e)/(1+e),.5*n)}function Kh(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=S&&(this.k0=.5*(1+Qi(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=S&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=S&&Math.abs(Math.cos(this.lat_ts))>S&&(this.k0=.5*this.cons*Wt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/qt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Wt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-C,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Jh(i){var e=i.x,n=i.y,o=Math.sin(n),r=Math.cos(n),l,u,c,d,_,v,p=O(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=S&&Math.abs(n+this.lat0)<=S?(i.x=NaN,i.y=NaN,i):this.sphere?(l=2*this.k0/(1+this.sinlat0*o+this.coslat0*r*Math.cos(p)),i.x=this.a*l*r*Math.sin(p)+this.x0,i.y=this.a*l*(this.coslat0*o-this.sinlat0*r*Math.cos(p))+this.y0,i):(u=2*Math.atan(this.ssfn_(n,o,this.e))-C,d=Math.cos(u),c=Math.sin(u),Math.abs(this.coslat0)<=S?(_=qt(this.e,n*this.con,this.con*o),v=2*this.a*this.k0*_/this.cons,i.x=this.x0+v*Math.sin(e-this.long0),i.y=this.y0-this.con*v*Math.cos(e-this.long0),i):(Math.abs(this.sinlat0)<S?(l=2*this.a*this.k0/(1+d*Math.cos(p)),i.y=l*c):(l=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*c+this.cosX0*d*Math.cos(p))),i.y=l*(this.cosX0*c-this.sinX0*d*Math.cos(p))+this.y0),i.x=l*d*Math.sin(p)+this.x0,i))}function Yh(i){i.x-=this.x0,i.y-=this.y0;var e,n,o,r,l,u=Math.sqrt(i.x*i.x+i.y*i.y);if(this.sphere){var c=2*Math.atan(u/(2*this.a*this.k0));return e=this.long0,n=this.lat0,u<=S?(i.x=e,i.y=n,i):(n=Math.asin(Math.cos(c)*this.sinlat0+i.y*Math.sin(c)*this.coslat0/u),Math.abs(this.coslat0)<S?this.lat0>0?e=O(this.long0+Math.atan2(i.x,-1*i.y)):e=O(this.long0+Math.atan2(i.x,i.y)):e=O(this.long0+Math.atan2(i.x*Math.sin(c),u*this.coslat0*Math.cos(c)-i.y*this.sinlat0*Math.sin(c))),i.x=e,i.y=n,i)}else if(Math.abs(this.coslat0)<=S){if(u<=S)return n=this.lat0,e=this.long0,i.x=e,i.y=n,i;i.x*=this.con,i.y*=this.con,o=u*this.cons/(2*this.a*this.k0),n=this.con*Xi(this.e,o),e=this.con*O(this.con*this.long0+Math.atan2(i.x,-1*i.y))}else r=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,u<=S?l=this.X0:(l=Math.asin(Math.cos(r)*this.sinX0+i.y*Math.sin(r)*this.cosX0/u),e=O(this.long0+Math.atan2(i.x*Math.sin(r),u*this.cosX0*Math.cos(r)-i.y*this.sinX0*Math.sin(r)))),n=-1*Xi(this.e,Math.tan(.5*(C+l)));return i.x=e,i.y=n,i}var tl=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const il={init:Kh,forward:Jh,inverse:Yh,names:tl,ssfn_:Xh};function el(){var i=this.lat0;this.lambda0=this.long0;var e=Math.sin(i),n=this.a,o=this.rf,r=1/o,l=2*r-Math.pow(r,2),u=this.e=Math.sqrt(l);this.R=this.k0*n*Math.sqrt(1-l)/(1-l*Math.pow(e,2)),this.alpha=Math.sqrt(1+l/(1-l)*Math.pow(Math.cos(i),4)),this.b0=Math.asin(e/this.alpha);var c=Math.log(Math.tan(Math.PI/4+this.b0/2)),d=Math.log(Math.tan(Math.PI/4+i/2)),_=Math.log((1+u*e)/(1-u*e));this.K=c-this.alpha*d+this.alpha*u/2*_}function sl(i){var e=Math.log(Math.tan(Math.PI/4-i.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(i.y))/(1-this.e*Math.sin(i.y))),o=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(o))-Math.PI/4),l=this.alpha*(i.x-this.lambda0),u=Math.atan(Math.sin(l)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(l))),c=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(l));return i.y=this.R/2*Math.log((1+Math.sin(c))/(1-Math.sin(c)))+this.y0,i.x=this.R*u+this.x0,i}function nl(i){for(var e=i.x-this.x0,n=i.y-this.y0,o=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),l=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(o)),u=Math.atan(Math.sin(o)/(Math.cos(this.b0)*Math.cos(o)-Math.sin(this.b0)*Math.tan(r))),c=this.lambda0+u/this.alpha,d=0,_=l,v=-1e3,p=0;Math.abs(_-v)>1e-7;){if(++p>20)return;d=1/this.alpha*(Math.log(Math.tan(Math.PI/4+l/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(_))/2)),v=_,_=2*Math.atan(Math.exp(d))-Math.PI/2}return i.x=c,i.y=_,i}var al=["somerc"];const ol={init:el,forward:sl,inverse:nl,names:al};var Ei=1e-7;function rl(i){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n=typeof i.PROJECTION=="object"?Object.keys(i.PROJECTION)[0]:i.PROJECTION;return"no_uoff"in i||"no_off"in i||e.indexOf(n)!==-1}function hl(){var i,e,n,o,r,l,u,c,d,_,v=0,p,y=0,b=0,A=0,P=0,E=0,z=0;this.no_off=rl(this),this.no_rot="no_rot"in this;var R=!1;"alpha"in this&&(R=!0);var B=!1;if("rectified_grid_angle"in this&&(B=!0),R&&(z=this.alpha),B&&(v=this.rectified_grid_angle*vt),R||B)y=this.longc;else if(b=this.long1,P=this.lat1,A=this.long2,E=this.lat2,Math.abs(P-E)<=Ei||(i=Math.abs(P))<=Ei||Math.abs(i-C)<=Ei||Math.abs(Math.abs(this.lat0)-C)<=Ei||Math.abs(Math.abs(E)-C)<=Ei)throw new Error;var H=1-this.es;e=Math.sqrt(H),Math.abs(this.lat0)>S?(c=Math.sin(this.lat0),n=Math.cos(this.lat0),i=1-this.es*c*c,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/H),this.A=this.B*this.k0*e/i,o=this.B*e/(n*Math.sqrt(i)),r=o*o-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=o,this.E*=Math.pow(qt(this.e,this.lat0,c),this.B)):(this.B=1/e,this.A=this.k0,this.E=o=r=1),R||B?(R?(p=Math.asin(Math.sin(z)/o),B||(v=z)):(p=v,z=Math.asin(o*Math.sin(p))),this.lam0=y-Math.asin(.5*(r-1/r)*Math.tan(p))/this.B):(l=Math.pow(qt(this.e,P,Math.sin(P)),this.B),u=Math.pow(qt(this.e,E,Math.sin(E)),this.B),r=this.E/l,d=(u-l)/(u+l),_=this.E*this.E,_=(_-u*l)/(_+u*l),i=b-A,i<-Math.pi?A-=$i:i>Math.pi&&(A+=$i),this.lam0=O(.5*(b+A)-Math.atan(_*Math.tan(.5*this.B*(b-A))/d)/this.B),p=Math.atan(2*Math.sin(this.B*O(b-this.lam0))/(r-1/r)),v=z=Math.asin(o*Math.sin(p))),this.singam=Math.sin(p),this.cosgam=Math.cos(p),this.sinrot=Math.sin(v),this.cosrot=Math.cos(v),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(o*o-1)/Math.cos(z))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*p,this.v_pole_n=this.ArB*Math.log(Math.tan(K-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(K+r))}function ll(i){var e={},n,o,r,l,u,c,d,_;if(i.x=i.x-this.lam0,Math.abs(Math.abs(i.y)-C)>S){if(u=this.E/Math.pow(qt(this.e,i.y,Math.sin(i.y)),this.B),c=1/u,n=.5*(u-c),o=.5*(u+c),l=Math.sin(this.B*i.x),r=(n*this.singam-l*this.cosgam)/o,Math.abs(Math.abs(r)-1)<S)throw new Error;_=.5*this.ArB*Math.log((1-r)/(1+r)),c=Math.cos(this.B*i.x),Math.abs(c)<Ei?d=this.A*i.x:d=this.ArB*Math.atan2(n*this.cosgam+l*this.singam,c)}else _=i.y>0?this.v_pole_n:this.v_pole_s,d=this.ArB*i.y;return this.no_rot?(e.x=d,e.y=_):(d-=this.u_0,e.x=_*this.cosrot+d*this.sinrot,e.y=d*this.cosrot-_*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function ul(i){var e,n,o,r,l,u,c,d={};if(i.x=(i.x-this.x0)*(1/this.a),i.y=(i.y-this.y0)*(1/this.a),this.no_rot?(n=i.y,e=i.x):(n=i.x*this.cosrot-i.y*this.sinrot,e=i.y*this.cosrot+i.x*this.sinrot+this.u_0),o=Math.exp(-this.BrA*n),r=.5*(o-1/o),l=.5*(o+1/o),u=Math.sin(this.BrA*e),c=(u*this.cosgam+r*this.singam)/l,Math.abs(Math.abs(c)-1)<S)d.x=0,d.y=c<0?-C:C;else{if(d.y=this.E/Math.sqrt((1+c)/(1-c)),d.y=Xi(this.e,Math.pow(d.y,1/this.B)),d.y===1/0)throw new Error;d.x=-this.rB*Math.atan2(r*this.cosgam-u*this.singam,Math.cos(this.BrA*e))}return d.x+=this.lam0,d}var cl=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"];const fl={init:hl,forward:ll,inverse:ul,names:cl};function dl(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<S)){var i=this.b/this.a;this.e=Math.sqrt(1-i*i);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),o=Wt(this.e,e,n),r=qt(this.e,this.lat1,e),l=Math.sin(this.lat2),u=Math.cos(this.lat2),c=Wt(this.e,l,u),d=qt(this.e,this.lat2,l),_=qt(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>S?this.ns=Math.log(o/c)/Math.log(r/d):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=o/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(_,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function ml(i){var e=i.x,n=i.y;Math.abs(2*Math.abs(n)-Math.PI)<=S&&(n=Qi(n)*(C-2*S));var o=Math.abs(Math.abs(n)-C),r,l;if(o>S)r=qt(this.e,n,Math.sin(n)),l=this.a*this.f0*Math.pow(r,this.ns);else{if(o=n*this.ns,o<=0)return null;l=0}var u=this.ns*O(e-this.long0);return i.x=this.k0*(l*Math.sin(u))+this.x0,i.y=this.k0*(this.rh-l*Math.cos(u))+this.y0,i}function _l(i){var e,n,o,r,l,u=(i.x-this.x0)/this.k0,c=this.rh-(i.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(u*u+c*c),n=1):(e=-Math.sqrt(u*u+c*c),n=-1);var d=0;if(e!==0&&(d=Math.atan2(n*u,n*c)),e!==0||this.ns>0){if(n=1/this.ns,o=Math.pow(e/(this.a*this.f0),n),r=Xi(this.e,o),r===-9999)return null}else r=-C;return l=O(d/this.ns+this.long0),i.x=l,i.y=r,i}var pl=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const gl={init:dl,forward:ml,inverse:_l,names:pl};function vl(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function yl(i){var e,n,o,r,l,u,c,d=i.x,_=i.y,v=O(d-this.long0);return e=Math.pow((1+this.e*Math.sin(_))/(1-this.e*Math.sin(_)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(_/2+this.s45),this.alfa)/e)-this.s45),o=-v*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(o)),l=Math.asin(Math.cos(n)*Math.sin(o)/Math.cos(r)),u=this.n*l,c=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),i.y=c*Math.cos(u)/1,i.x=c*Math.sin(u)/1,this.czech||(i.y*=-1,i.x*=-1),i}function Ml(i){var e,n,o,r,l,u,c,d,_=i.x;i.x=i.y,i.y=_,this.czech||(i.y*=-1,i.x*=-1),u=Math.sqrt(i.x*i.x+i.y*i.y),l=Math.atan2(i.y,i.x),r=l/Math.sin(this.s0),o=2*(Math.atan(Math.pow(this.ro0/u,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(o)-Math.sin(this.ad)*Math.cos(o)*Math.cos(r)),n=Math.asin(Math.cos(o)*Math.sin(r)/Math.cos(e)),i.x=this.long0-n/this.alfa,c=e,d=0;var v=0;do i.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.e/2))-this.s45),Math.abs(c-i.y)<1e-10&&(d=1),c=i.y,v+=1;while(d===0&&v<15);return v>=15?null:i}var xl=["Krovak","krovak"];const wl={init:vl,forward:yl,inverse:Ml,names:xl};function Lt(i,e,n,o,r){return i*r-e*Math.sin(2*r)+n*Math.sin(4*r)-o*Math.sin(6*r)}function Yi(i){return 1-.25*i*(1+i/16*(3+1.25*i))}function te(i){return .375*i*(1+.25*i*(1+.46875*i))}function ie(i){return .05859375*i*i*(1+.75*i)}function ee(i){return i*i*i*(35/3072)}function Si(i,e,n){var o=e*n;return i/Math.sqrt(1-o*o)}function hi(i){return Math.abs(i)<C?i:i-Qi(i)*Math.PI}function Ze(i,e,n,o,r){var l,u;l=i/e;for(var c=0;c<15;c++)if(u=(i-(e*l-n*Math.sin(2*l)+o*Math.sin(4*l)-r*Math.sin(6*l)))/(e-2*n*Math.cos(2*l)+4*o*Math.cos(4*l)-6*r*Math.cos(6*l)),l+=u,Math.abs(u)<=1e-10)return l;return NaN}function bl(){this.sphere||(this.e0=Yi(this.es),this.e1=te(this.es),this.e2=ie(this.es),this.e3=ee(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Ll(i){var e,n,o=i.x,r=i.y;if(o=O(o-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(o)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(o))-this.lat0);else{var l=Math.sin(r),u=Math.cos(r),c=Si(this.a,this.e,l),d=Math.tan(r)*Math.tan(r),_=o*Math.cos(r),v=_*_,p=this.es*u*u/(1-this.es),y=this.a*Lt(this.e0,this.e1,this.e2,this.e3,r);e=c*_*(1-v*d*(1/6-(8-d+8*p)*v/120)),n=y-this.ml0+c*l/u*v*(.5+(5-d+6*p)*v/24)}return i.x=e+this.x0,i.y=n+this.y0,i}function Pl(i){i.x-=this.x0,i.y-=this.y0;var e=i.x/this.a,n=i.y/this.a,o,r;if(this.sphere){var l=n+this.lat0;o=Math.asin(Math.sin(l)*Math.cos(e)),r=Math.atan2(Math.tan(e),Math.cos(l))}else{var u=this.ml0/this.a+n,c=Ze(u,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(c)-C)<=S)return i.x=this.long0,i.y=C,n<0&&(i.y*=-1),i;var d=Si(this.a,this.e,Math.sin(c)),_=d*d*d/this.a/this.a*(1-this.es),v=Math.pow(Math.tan(c),2),p=e*this.a/d,y=p*p;o=c-d*Math.tan(c)/_*p*p*(.5-(1+3*v)*p*p/24),r=p*(1-y*(v/3+(1+3*v)*v*y/15))/Math.cos(c)}return i.x=O(r+this.long0),i.y=hi(o),i}var Al=["Cassini","Cassini_Soldner","cass"];const Tl={init:bl,forward:Ll,inverse:Pl,names:Al};function li(i,e){var n;return i>1e-7?(n=i*e,(1-i*i)*(e/(1-n*n)-.5/i*Math.log((1-n)/(1+n)))):2*e}var Cl=1,El=2,Sl=3,Ol=4;function kl(){var i=Math.abs(this.lat0);if(Math.abs(i-C)<S?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(i)<S?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var e;switch(this.qp=li(this.e,1),this.mmf=.5/(1-this.es),this.apa=ql(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=li(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function zl(i){var e,n,o,r,l,u,c,d,_,v,p=i.x,y=i.y;if(p=O(p-this.long0),this.sphere){if(l=Math.sin(y),v=Math.cos(y),o=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+v*o:1+this.sinph0*l+this.cosph0*v*o,n<=S)return null;n=Math.sqrt(2/n),e=n*v*Math.sin(p),n*=this.mode===this.EQUIT?l:this.cosph0*l-this.sinph0*v*o}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(o=-o),Math.abs(y+this.lat0)<S)return null;n=K-y*.5,n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)),e=n*Math.sin(p),n*=o}}else{switch(c=0,d=0,_=0,o=Math.cos(p),r=Math.sin(p),l=Math.sin(y),u=li(this.e,l),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(c=u/this.qp,d=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:_=1+this.sinb1*c+this.cosb1*d*o;break;case this.EQUIT:_=1+d*o;break;case this.N_POLE:_=C+y,u=this.qp-u;break;case this.S_POLE:_=y-C,u=this.qp+u;break}if(Math.abs(_)<S)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:_=Math.sqrt(2/_),this.mode===this.OBLIQ?n=this.ymf*_*(this.cosb1*c-this.sinb1*d*o):n=(_=Math.sqrt(2/(1+d*o)))*c*this.ymf,e=this.xmf*_*d*r;break;case this.N_POLE:case this.S_POLE:u>=0?(e=(_=Math.sqrt(u))*r,n=o*(this.mode===this.S_POLE?_:-_)):e=n=0;break}}return i.x=this.a*e+this.x0,i.y=this.a*n+this.y0,i}function Il(i){i.x-=this.x0,i.y-=this.y0;var e=i.x/this.a,n=i.y/this.a,o,r,l,u,c,d,_;if(this.sphere){var v=0,p,y=0;if(p=Math.sqrt(e*e+n*n),r=p*.5,r>1)return null;switch(r=2*Math.asin(r),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(y=Math.sin(r),v=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(p)<=S?0:Math.asin(n*y/p),e*=y,n=v*p;break;case this.OBLIQ:r=Math.abs(p)<=S?this.lat0:Math.asin(v*this.sinph0+n*y*this.cosph0/p),e*=y*this.cosph0,n=(v-Math.sin(r)*this.sinph0)*p;break;case this.N_POLE:n=-n,r=C-r;break;case this.S_POLE:r-=C;break}o=n===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,n)}else{if(_=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,n*=this.dd,d=Math.sqrt(e*e+n*n),d<S)return i.x=this.long0,i.y=this.lat0,i;u=2*Math.asin(.5*d/this.rq),l=Math.cos(u),e*=u=Math.sin(u),this.mode===this.OBLIQ?(_=l*this.sinb1+n*u*this.cosb1/d,c=this.qp*_,n=d*this.cosb1*l-n*this.sinb1*u):(_=n*u/d,c=this.qp*_,n=d*l)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),c=e*e+n*n,!c)return i.x=this.long0,i.y=this.lat0,i;_=1-c/this.qp,this.mode===this.S_POLE&&(_=-_)}o=Math.atan2(e,n),r=Gl(Math.asin(_),this.apa)}return i.x=O(this.long0+o),i.y=r,i}var Nl=.3333333333333333,Bl=.17222222222222222,Rl=.10257936507936508,Dl=.06388888888888888,Zl=.0664021164021164,Fl=.016415012942191543;function ql(i){var e,n=[];return n[0]=i*Nl,e=i*i,n[0]+=e*Bl,n[1]=e*Dl,e*=i,n[0]+=e*Rl,n[1]+=e*Zl,n[2]=e*Fl,n}function Gl(i,e){var n=i+i;return i+e[0]*Math.sin(n)+e[1]*Math.sin(n+n)+e[2]*Math.sin(n+n+n)}var Ul=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const jl={init:kl,forward:zl,inverse:Il,names:Ul,S_POLE:Cl,N_POLE:El,EQUIT:Sl,OBLIQ:Ol};function ui(i){return Math.abs(i)>1&&(i=i>1?1:-1),Math.asin(i)}function Hl(){Math.abs(this.lat1+this.lat2)<S||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Wt(this.e3,this.sin_po,this.cos_po),this.qs1=li(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Wt(this.e3,this.sin_po,this.cos_po),this.qs2=li(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=li(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>S?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Wl(i){var e=i.x,n=i.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var o=li(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*o)/this.ns0,l=this.ns0*O(e-this.long0),u=r*Math.sin(l)+this.x0,c=this.rh-r*Math.cos(l)+this.y0;return i.x=u,i.y=c,i}function $l(i){var e,n,o,r,l,u;return i.x-=this.x0,i.y=this.rh-i.y+this.y0,this.ns0>=0?(e=Math.sqrt(i.x*i.x+i.y*i.y),o=1):(e=-Math.sqrt(i.x*i.x+i.y*i.y),o=-1),r=0,e!==0&&(r=Math.atan2(o*i.x,o*i.y)),o=e*this.ns0/this.a,this.sphere?u=Math.asin((this.c-o*o)/(2*this.ns0)):(n=(this.c-o*o)/this.ns0,u=this.phi1z(this.e3,n)),l=O(r/this.ns0+this.long0),i.x=l,i.y=u,i}function Vl(i,e){var n,o,r,l,u,c=ui(.5*e);if(i<S)return c;for(var d=i*i,_=1;_<=25;_++)if(n=Math.sin(c),o=Math.cos(c),r=i*n,l=1-r*r,u=.5*l*l/o*(e/(1-d)-n/l+.5/i*Math.log((1-r)/(1+r))),c=c+u,Math.abs(u)<=1e-7)return c;return null}var Ql=["Albers_Conic_Equal_Area","Albers","aea"];const Xl={init:Hl,forward:Wl,inverse:$l,names:Ql,phi1z:Vl};function Kl(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Jl(i){var e,n,o,r,l,u,c,d,_=i.x,v=i.y;return o=O(_-this.long0),e=Math.sin(v),n=Math.cos(v),r=Math.cos(o),u=this.sin_p14*e+this.cos_p14*n*r,l=1,u>0||Math.abs(u)<=S?(c=this.x0+this.a*l*n*Math.sin(o)/u,d=this.y0+this.a*l*(this.cos_p14*e-this.sin_p14*n*r)/u):(c=this.x0+this.infinity_dist*n*Math.sin(o),d=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),i.x=c,i.y=d,i}function Yl(i){var e,n,o,r,l,u;return i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,i.x/=this.k0,i.y/=this.k0,(e=Math.sqrt(i.x*i.x+i.y*i.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),o=Math.cos(r),u=ui(o*this.sin_p14+i.y*n*this.cos_p14/e),l=Math.atan2(i.x*n,e*this.cos_p14*o-i.y*this.sin_p14*n),l=O(this.long0+l)):(u=this.phic0,l=0),i.x=l,i.y=u,i}var tu=["gnom"];const iu={init:Kl,forward:Jl,inverse:Yl,names:tu};function eu(i,e){var n=1-(1-i*i)/(2*i)*Math.log((1-i)/(1+i));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*C:C;for(var o=Math.asin(.5*e),r,l,u,c,d=0;d<30;d++)if(l=Math.sin(o),u=Math.cos(o),c=i*l,r=Math.pow(1-c*c,2)/(2*u)*(e/(1-i*i)-l/(1-c*c)+.5/i*Math.log((1-c)/(1+c))),o+=r,Math.abs(r)<=1e-10)return o;return NaN}function su(){this.sphere||(this.k0=Wt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function nu(i){var e=i.x,n=i.y,o,r,l=O(e-this.long0);if(this.sphere)o=this.x0+this.a*l*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(n)/Math.cos(this.lat_ts);else{var u=li(this.e,Math.sin(n));o=this.x0+this.a*this.k0*l,r=this.y0+this.a*u*.5/this.k0}return i.x=o,i.y=r,i}function au(i){i.x-=this.x0,i.y-=this.y0;var e,n;return this.sphere?(e=O(this.long0+i.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(i.y/this.a*Math.cos(this.lat_ts))):(n=eu(this.e,2*i.y*this.k0/this.a),e=O(this.long0+i.x/(this.a*this.k0))),i.x=e,i.y=n,i}var ou=["cea"];const ru={init:su,forward:nu,inverse:au,names:ou};function hu(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function lu(i){var e=i.x,n=i.y,o=O(e-this.long0),r=hi(n-this.lat0);return i.x=this.x0+this.a*o*this.rc,i.y=this.y0+this.a*r,i}function uu(i){var e=i.x,n=i.y;return i.x=O(this.long0+(e-this.x0)/(this.a*this.rc)),i.y=hi(this.lat0+(n-this.y0)/this.a),i}var cu=["Equirectangular","Equidistant_Cylindrical","eqc"];const fu={init:hu,forward:lu,inverse:uu,names:cu};var la=20;function du(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Yi(this.es),this.e1=te(this.es),this.e2=ie(this.es),this.e3=ee(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0)}function mu(i){var e=i.x,n=i.y,o,r,l,u=O(e-this.long0);if(l=u*Math.sin(n),this.sphere)Math.abs(n)<=S?(o=this.a*u,r=-1*this.a*this.lat0):(o=this.a*Math.sin(l)/Math.tan(n),r=this.a*(hi(n-this.lat0)+(1-Math.cos(l))/Math.tan(n)));else if(Math.abs(n)<=S)o=this.a*u,r=-1*this.ml0;else{var c=Si(this.a,this.e,Math.sin(n))/Math.tan(n);o=c*Math.sin(l),r=this.a*Lt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+c*(1-Math.cos(l))}return i.x=o+this.x0,i.y=r+this.y0,i}function _u(i){var e,n,o,r,l,u,c,d,_;if(o=i.x-this.x0,r=i.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=S)e=O(o/this.a+this.long0),n=0;else{u=this.lat0+r/this.a,c=o*o/this.a/this.a+u*u,d=u;var v;for(l=la;l;--l)if(v=Math.tan(d),_=-1*(u*(d*v+1)-d-.5*(d*d+c)*v)/((d-u)/v-1),d+=_,Math.abs(_)<=S){n=d;break}e=O(this.long0+Math.asin(o*Math.tan(d)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=S)n=0,e=O(this.long0+o/this.a);else{u=(this.ml0+r)/this.a,c=o*o/this.a/this.a+u*u,d=u;var p,y,b,A,P;for(l=la;l;--l)if(P=this.e*Math.sin(d),p=Math.sqrt(1-P*P)*Math.tan(d),y=this.a*Lt(this.e0,this.e1,this.e2,this.e3,d),b=this.e0-2*this.e1*Math.cos(2*d)+4*this.e2*Math.cos(4*d)-6*this.e3*Math.cos(6*d),A=y/this.a,_=(u*(p*A+1)-A-.5*p*(A*A+c))/(this.es*Math.sin(2*d)*(A*A+c-2*u*A)/(4*p)+(u-A)*(p*b-2/Math.sin(2*d))-b),d-=_,Math.abs(_)<=S){n=d;break}p=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=O(this.long0+Math.asin(o*p/this.a)/Math.sin(n))}return i.x=e,i.y=n,i}var pu=["Polyconic","poly"];const gu={init:du,forward:mu,inverse:_u,names:pu};function vu(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function yu(i){var e,n=i.x,o=i.y,r=o-this.lat0,l=n-this.long0,u=r/Wi*1e-5,c=l,d=1,_=0;for(e=1;e<=10;e++)d=d*u,_=_+this.A[e]*d;var v=_,p=c,y=1,b=0,A,P,E=0,z=0;for(e=1;e<=6;e++)A=y*v-b*p,P=b*v+y*p,y=A,b=P,E=E+this.B_re[e]*y-this.B_im[e]*b,z=z+this.B_im[e]*y+this.B_re[e]*b;return i.x=z*this.a+this.x0,i.y=E*this.a+this.y0,i}function Mu(i){var e,n=i.x,o=i.y,r=n-this.x0,l=o-this.y0,u=l/this.a,c=r/this.a,d=1,_=0,v,p,y=0,b=0;for(e=1;e<=6;e++)v=d*u-_*c,p=_*u+d*c,d=v,_=p,y=y+this.C_re[e]*d-this.C_im[e]*_,b=b+this.C_im[e]*d+this.C_re[e]*_;for(var A=0;A<this.iterations;A++){var P=y,E=b,z,R,B=u,H=c;for(e=2;e<=6;e++)z=P*y-E*b,R=E*y+P*b,P=z,E=R,B=B+(e-1)*(this.B_re[e]*P-this.B_im[e]*E),H=H+(e-1)*(this.B_im[e]*P+this.B_re[e]*E);P=1,E=0;var W=this.B_re[1],$=this.B_im[1];for(e=2;e<=6;e++)z=P*y-E*b,R=E*y+P*b,P=z,E=R,W=W+e*(this.B_re[e]*P-this.B_im[e]*E),$=$+e*(this.B_im[e]*P+this.B_re[e]*E);var mt=W*W+$*$;y=(B*W+H*$)/mt,b=(H*W-B*$)/mt}var it=y,Et=b,Vt=1,ot=0;for(e=1;e<=9;e++)Vt=Vt*it,ot=ot+this.D[e]*Vt;var yt=this.lat0+ot*Wi*1e5,Ss=this.long0+Et;return i.x=Ss,i.y=yt,i}var xu=["New_Zealand_Map_Grid","nzmg"];const wu={init:vu,forward:yu,inverse:Mu,names:xu};function bu(){}function Lu(i){var e=i.x,n=i.y,o=O(e-this.long0),r=this.x0+this.a*o,l=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return i.x=r,i.y=l,i}function Pu(i){i.x-=this.x0,i.y-=this.y0;var e=O(this.long0+i.x/this.a),n=2.5*(Math.atan(Math.exp(.8*i.y/this.a))-Math.PI/4);return i.x=e,i.y=n,i}var Au=["Miller_Cylindrical","mill"];const Tu={init:bu,forward:Lu,inverse:Pu,names:Au};var Cu=20;function Eu(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=xs(this.es)}function Su(i){var e,n,o=i.x,r=i.y;if(o=O(o-this.long0),this.sphere){if(!this.m)r=this.n!==1?Math.asin(this.n*Math.sin(r)):r;else for(var l=this.n*Math.sin(r),u=Cu;u;--u){var c=(this.m*r+Math.sin(r)-l)/(this.m+Math.cos(r));if(r-=c,Math.abs(c)<S)break}e=this.a*this.C_x*o*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var d=Math.sin(r),_=Math.cos(r);n=this.a*Ci(r,d,_,this.en),e=this.a*o*_/Math.sqrt(1-this.es*d*d)}return i.x=e,i.y=n,i}function Ou(i){var e,n,o,r;return i.x-=this.x0,o=i.x/this.a,i.y-=this.y0,e=i.y/this.a,this.sphere?(e/=this.C_y,o=o/(this.C_x*(this.m+Math.cos(e))),this.m?e=ui((this.m*e+Math.sin(e))/this.n):this.n!==1&&(e=ui(Math.sin(e)/this.n)),o=O(o+this.long0),e=hi(e)):(e=ws(i.y/this.a,this.es,this.en),r=Math.abs(e),r<C?(r=Math.sin(e),n=this.long0+i.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(e)),o=O(n)):r-S<C&&(o=this.long0)),i.x=o,i.y=e,i}var ku=["Sinusoidal","sinu"];const zu={init:Eu,forward:Su,inverse:Ou,names:ku};function Iu(){}function Nu(i){for(var e=i.x,n=i.y,o=O(e-this.long0),r=n,l=Math.PI*Math.sin(n);;){var u=-(r+Math.sin(r)-l)/(1+Math.cos(r));if(r+=u,Math.abs(u)<S)break}r/=2,Math.PI/2-Math.abs(n)<S&&(o=0);var c=.900316316158*this.a*o*Math.cos(r)+this.x0,d=1.4142135623731*this.a*Math.sin(r)+this.y0;return i.x=c,i.y=d,i}function Bu(i){var e,n;i.x-=this.x0,i.y-=this.y0,n=i.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var o=O(this.long0+i.x/(.900316316158*this.a*Math.cos(e)));o<-Math.PI&&(o=-Math.PI),o>Math.PI&&(o=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return i.x=o,i.y=r,i}var Ru=["Mollweide","moll"];const Du={init:Iu,forward:Nu,inverse:Bu,names:Ru};function Zu(){Math.abs(this.lat1+this.lat2)<S||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Yi(this.es),this.e1=te(this.es),this.e2=ie(this.es),this.e3=ee(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Wt(this.e,this.sinphi,this.cosphi),this.ml1=Lt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<S?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Wt(this.e,this.sinphi,this.cosphi),this.ml2=Lt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Lt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Fu(i){var e=i.x,n=i.y,o;if(this.sphere)o=this.a*(this.g-n);else{var r=Lt(this.e0,this.e1,this.e2,this.e3,n);o=this.a*(this.g-r)}var l=this.ns*O(e-this.long0),u=this.x0+o*Math.sin(l),c=this.y0+this.rh-o*Math.cos(l);return i.x=u,i.y=c,i}function qu(i){i.x-=this.x0,i.y=this.rh-i.y+this.y0;var e,n,o,r;this.ns>=0?(n=Math.sqrt(i.x*i.x+i.y*i.y),e=1):(n=-Math.sqrt(i.x*i.x+i.y*i.y),e=-1);var l=0;if(n!==0&&(l=Math.atan2(e*i.x,e*i.y)),this.sphere)return r=O(this.long0+l/this.ns),o=hi(this.g-n/this.a),i.x=r,i.y=o,i;var u=this.g-n/this.a;return o=Ze(u,this.e0,this.e1,this.e2,this.e3),r=O(this.long0+l/this.ns),i.x=r,i.y=o,i}var Gu=["Equidistant_Conic","eqdc"];const Uu={init:Zu,forward:Fu,inverse:qu,names:Gu};function ju(){this.R=this.a}function Hu(i){var e=i.x,n=i.y,o=O(e-this.long0),r,l;Math.abs(n)<=S&&(r=this.x0+this.R*o,l=this.y0);var u=ui(2*Math.abs(n/Math.PI));(Math.abs(o)<=S||Math.abs(Math.abs(n)-C)<=S)&&(r=this.x0,n>=0?l=this.y0+Math.PI*this.R*Math.tan(.5*u):l=this.y0+Math.PI*this.R*-Math.tan(.5*u));var c=.5*Math.abs(Math.PI/o-o/Math.PI),d=c*c,_=Math.sin(u),v=Math.cos(u),p=v/(_+v-1),y=p*p,b=p*(2/_-1),A=b*b,P=Math.PI*this.R*(c*(p-A)+Math.sqrt(d*(p-A)*(p-A)-(A+d)*(y-A)))/(A+d);o<0&&(P=-P),r=this.x0+P;var E=d+p;return P=Math.PI*this.R*(b*E-c*Math.sqrt((A+d)*(d+1)-E*E))/(A+d),n>=0?l=this.y0+P:l=this.y0-P,i.x=r,i.y=l,i}function Wu(i){var e,n,o,r,l,u,c,d,_,v,p,y,b;return i.x-=this.x0,i.y-=this.y0,p=Math.PI*this.R,o=i.x/p,r=i.y/p,l=o*o+r*r,u=-Math.abs(r)*(1+l),c=u-2*r*r+o*o,d=-2*u+1+2*r*r+l*l,b=r*r/d+(2*c*c*c/d/d/d-9*u*c/d/d)/27,_=(u-c*c/3/d)/d,v=2*Math.sqrt(-_/3),p=3*b/_/v,Math.abs(p)>1&&(p>=0?p=1:p=-1),y=Math.acos(p)/3,i.y>=0?n=(-v*Math.cos(y+Math.PI/3)-c/3/d)*Math.PI:n=-(-v*Math.cos(y+Math.PI/3)-c/3/d)*Math.PI,Math.abs(o)<S?e=this.long0:e=O(this.long0+Math.PI*(l-1+Math.sqrt(1+2*(o*o-r*r)+l*l))/2/o),i.x=e,i.y=n,i}var $u=["Van_der_Grinten_I","VanDerGrinten","vandg"];const Vu={init:ju,forward:Hu,inverse:Wu,names:$u};function Qu(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Xu(i){var e=i.x,n=i.y,o=Math.sin(i.y),r=Math.cos(i.y),l=O(e-this.long0),u,c,d,_,v,p,y,b,A,P,E,z,R,B,H,W,$,mt,it,Et,Vt,ot,yt;return this.sphere?Math.abs(this.sin_p12-1)<=S?(i.x=this.x0+this.a*(C-n)*Math.sin(l),i.y=this.y0-this.a*(C-n)*Math.cos(l),i):Math.abs(this.sin_p12+1)<=S?(i.x=this.x0+this.a*(C+n)*Math.sin(l),i.y=this.y0+this.a*(C+n)*Math.cos(l),i):(mt=this.sin_p12*o+this.cos_p12*r*Math.cos(l),W=Math.acos(mt),$=W?W/Math.sin(W):1,i.x=this.x0+this.a*$*r*Math.sin(l),i.y=this.y0+this.a*$*(this.cos_p12*o-this.sin_p12*r*Math.cos(l)),i):(u=Yi(this.es),c=te(this.es),d=ie(this.es),_=ee(this.es),Math.abs(this.sin_p12-1)<=S?(v=this.a*Lt(u,c,d,_,C),p=this.a*Lt(u,c,d,_,n),i.x=this.x0+(v-p)*Math.sin(l),i.y=this.y0-(v-p)*Math.cos(l),i):Math.abs(this.sin_p12+1)<=S?(v=this.a*Lt(u,c,d,_,C),p=this.a*Lt(u,c,d,_,n),i.x=this.x0+(v+p)*Math.sin(l),i.y=this.y0+(v+p)*Math.cos(l),i):(y=o/r,b=Si(this.a,this.e,this.sin_p12),A=Si(this.a,this.e,o),P=Math.atan((1-this.es)*y+this.es*b*this.sin_p12/(A*r)),E=Math.atan2(Math.sin(l),this.cos_p12*Math.tan(P)-this.sin_p12*Math.cos(l)),E===0?it=Math.asin(this.cos_p12*Math.sin(P)-this.sin_p12*Math.cos(P)):Math.abs(Math.abs(E)-Math.PI)<=S?it=-Math.asin(this.cos_p12*Math.sin(P)-this.sin_p12*Math.cos(P)):it=Math.asin(Math.sin(l)*Math.cos(P)/Math.sin(E)),z=this.e*this.sin_p12/Math.sqrt(1-this.es),R=this.e*this.cos_p12*Math.cos(E)/Math.sqrt(1-this.es),B=z*R,H=R*R,Et=it*it,Vt=Et*it,ot=Vt*it,yt=ot*it,W=b*it*(1-Et*H*(1-H)/6+Vt/8*B*(1-2*H)+ot/120*(H*(4-7*H)-3*z*z*(1-7*H))-yt/48*B),i.x=this.x0+W*Math.sin(E),i.y=this.y0+W*Math.cos(E),i))}function Ku(i){i.x-=this.x0,i.y-=this.y0;var e,n,o,r,l,u,c,d,_,v,p,y,b,A,P,E,z,R,B,H,W,$,mt,it;return this.sphere?(e=Math.sqrt(i.x*i.x+i.y*i.y),e>2*C*this.a?void 0:(n=e/this.a,o=Math.sin(n),r=Math.cos(n),l=this.long0,Math.abs(e)<=S?u=this.lat0:(u=ui(r*this.sin_p12+i.y*o*this.cos_p12/e),c=Math.abs(this.lat0)-C,Math.abs(c)<=S?this.lat0>=0?l=O(this.long0+Math.atan2(i.x,-i.y)):l=O(this.long0-Math.atan2(-i.x,i.y)):l=O(this.long0+Math.atan2(i.x*o,e*this.cos_p12*r-i.y*this.sin_p12*o))),i.x=l,i.y=u,i)):(d=Yi(this.es),_=te(this.es),v=ie(this.es),p=ee(this.es),Math.abs(this.sin_p12-1)<=S?(y=this.a*Lt(d,_,v,p,C),e=Math.sqrt(i.x*i.x+i.y*i.y),b=y-e,u=Ze(b/this.a,d,_,v,p),l=O(this.long0+Math.atan2(i.x,-1*i.y)),i.x=l,i.y=u,i):Math.abs(this.sin_p12+1)<=S?(y=this.a*Lt(d,_,v,p,C),e=Math.sqrt(i.x*i.x+i.y*i.y),b=e-y,u=Ze(b/this.a,d,_,v,p),l=O(this.long0+Math.atan2(i.x,i.y)),i.x=l,i.y=u,i):(e=Math.sqrt(i.x*i.x+i.y*i.y),E=Math.atan2(i.x,i.y),A=Si(this.a,this.e,this.sin_p12),z=Math.cos(E),R=this.e*this.cos_p12*z,B=-R*R/(1-this.es),H=3*this.es*(1-B)*this.sin_p12*this.cos_p12*z/(1-this.es),W=e/A,$=W-B*(1+B)*Math.pow(W,3)/6-H*(1+3*B)*Math.pow(W,4)/24,mt=1-B*$*$/2-W*$*$*$/6,P=Math.asin(this.sin_p12*Math.cos($)+this.cos_p12*Math.sin($)*z),l=O(this.long0+Math.asin(Math.sin(E)*Math.sin($)/Math.cos(P))),it=Math.sin(P),u=Math.atan2((it-this.es*mt*this.sin_p12)*Math.tan(P),it*(1-this.es)),i.x=l,i.y=u,i))}var Ju=["Azimuthal_Equidistant","aeqd"];const Yu={init:Qu,forward:Xu,inverse:Ku,names:Ju};function tc(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function ic(i){var e,n,o,r,l,u,c,d,_=i.x,v=i.y;return o=O(_-this.long0),e=Math.sin(v),n=Math.cos(v),r=Math.cos(o),u=this.sin_p14*e+this.cos_p14*n*r,l=1,(u>0||Math.abs(u)<=S)&&(c=this.a*l*n*Math.sin(o),d=this.y0+this.a*l*(this.cos_p14*e-this.sin_p14*n*r)),i.x=c,i.y=d,i}function ec(i){var e,n,o,r,l,u,c;return i.x-=this.x0,i.y-=this.y0,e=Math.sqrt(i.x*i.x+i.y*i.y),n=ui(e/this.a),o=Math.sin(n),r=Math.cos(n),u=this.long0,Math.abs(e)<=S?(c=this.lat0,i.x=u,i.y=c,i):(c=ui(r*this.sin_p14+i.y*o*this.cos_p14/e),l=Math.abs(this.lat0)-C,Math.abs(l)<=S?(this.lat0>=0?u=O(this.long0+Math.atan2(i.x,-i.y)):u=O(this.long0-Math.atan2(-i.x,i.y)),i.x=u,i.y=c,i):(u=O(this.long0+Math.atan2(i.x*o,e*this.cos_p14*r-i.y*this.sin_p14*o)),i.x=u,i.y=c,i))}var sc=["ortho"];const nc={init:tc,forward:ic,inverse:ec,names:sc};var et={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},J={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function ac(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=C-K/2?this.face=et.TOP:this.lat0<=-(C-K/2)?this.face=et.BOTTOM:Math.abs(this.long0)<=K?this.face=et.FRONT:Math.abs(this.long0)<=C+K?this.face=this.long0>0?et.RIGHT:et.LEFT:this.face=et.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function oc(i){var e={x:0,y:0},n,o,r,l,u,c,d={value:0};if(i.x-=this.long0,this.es!==0?n=Math.atan(this.one_minus_f_squared*Math.tan(i.y)):n=i.y,o=i.x,this.face===et.TOP)l=C-n,o>=K&&o<=C+K?(d.value=J.AREA_0,r=o-C):o>C+K||o<=-(C+K)?(d.value=J.AREA_1,r=o>0?o-rt:o+rt):o>-(C+K)&&o<=-K?(d.value=J.AREA_2,r=o+C):(d.value=J.AREA_3,r=o);else if(this.face===et.BOTTOM)l=C+n,o>=K&&o<=C+K?(d.value=J.AREA_0,r=-o+C):o<K&&o>=-K?(d.value=J.AREA_1,r=-o):o<-K&&o>=-(C+K)?(d.value=J.AREA_2,r=-o-C):(d.value=J.AREA_3,r=o>0?-o+rt:-o-rt);else{var _,v,p,y,b,A,P;this.face===et.RIGHT?o=Oi(o,+C):this.face===et.BACK?o=Oi(o,+rt):this.face===et.LEFT&&(o=Oi(o,-C)),y=Math.sin(n),b=Math.cos(n),A=Math.sin(o),P=Math.cos(o),_=b*P,v=b*A,p=y,this.face===et.FRONT?(l=Math.acos(_),r=Fe(l,p,v,d)):this.face===et.RIGHT?(l=Math.acos(v),r=Fe(l,p,-_,d)):this.face===et.BACK?(l=Math.acos(-_),r=Fe(l,p,-v,d)):this.face===et.LEFT?(l=Math.acos(-v),r=Fe(l,p,_,d)):(l=r=0,d.value=J.AREA_0)}return c=Math.atan(12/rt*(r+Math.acos(Math.sin(r)*Math.cos(K))-C)),u=Math.sqrt((1-Math.cos(l))/(Math.cos(c)*Math.cos(c))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===J.AREA_1?c+=C:d.value===J.AREA_2?c+=rt:d.value===J.AREA_3&&(c+=1.5*rt),e.x=u*Math.cos(c),e.y=u*Math.sin(c),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,i.x=e.x,i.y=e.y,i}function rc(i){var e={lam:0,phi:0},n,o,r,l,u,c,d,_,v,p={value:0};if(i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,o=Math.atan(Math.sqrt(i.x*i.x+i.y*i.y)),n=Math.atan2(i.y,i.x),i.x>=0&&i.x>=Math.abs(i.y)?p.value=J.AREA_0:i.y>=0&&i.y>=Math.abs(i.x)?(p.value=J.AREA_1,n-=C):i.x<0&&-i.x>=Math.abs(i.y)?(p.value=J.AREA_2,n=n<0?n+rt:n-rt):(p.value=J.AREA_3,n+=C),v=rt/12*Math.tan(n),u=Math.sin(v)/(Math.cos(v)-1/Math.sqrt(2)),c=Math.atan(u),r=Math.cos(n),l=Math.tan(o),d=1-r*r*l*l*(1-Math.cos(Math.atan(1/Math.cos(c)))),d<-1?d=-1:d>1&&(d=1),this.face===et.TOP)_=Math.acos(d),e.phi=C-_,p.value===J.AREA_0?e.lam=c+C:p.value===J.AREA_1?e.lam=c<0?c+rt:c-rt:p.value===J.AREA_2?e.lam=c-C:e.lam=c;else if(this.face===et.BOTTOM)_=Math.acos(d),e.phi=_-C,p.value===J.AREA_0?e.lam=-c+C:p.value===J.AREA_1?e.lam=-c:p.value===J.AREA_2?e.lam=-c-C:e.lam=c<0?-c-rt:-c+rt;else{var y,b,A;y=d,v=y*y,v>=1?A=0:A=Math.sqrt(1-v)*Math.sin(c),v+=A*A,v>=1?b=0:b=Math.sqrt(1-v),p.value===J.AREA_1?(v=b,b=-A,A=v):p.value===J.AREA_2?(b=-b,A=-A):p.value===J.AREA_3&&(v=b,b=A,A=-v),this.face===et.RIGHT?(v=y,y=-b,b=v):this.face===et.BACK?(y=-y,b=-b):this.face===et.LEFT&&(v=y,y=b,b=-v),e.phi=Math.acos(-A)-C,e.lam=Math.atan2(b,y),this.face===et.RIGHT?e.lam=Oi(e.lam,-C):this.face===et.BACK?e.lam=Oi(e.lam,-rt):this.face===et.LEFT&&(e.lam=Oi(e.lam,+C))}if(this.es!==0){var P,E,z;P=e.phi<0?1:0,E=Math.tan(e.phi),z=this.b/Math.sqrt(E*E+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-z*z)/(this.one_minus_f*z)),P&&(e.phi=-e.phi)}return e.lam+=this.long0,i.x=e.lam,i.y=e.phi,i}function Fe(i,e,n,o){var r;return i<S?(o.value=J.AREA_0,r=0):(r=Math.atan2(e,n),Math.abs(r)<=K?o.value=J.AREA_0:r>K&&r<=C+K?(o.value=J.AREA_1,r-=C):r>C+K||r<=-(C+K)?(o.value=J.AREA_2,r=r>=0?r-rt:r+rt):(o.value=J.AREA_3,r+=C)),r}function Oi(i,e){var n=i+e;return n<-rt?n+=$i:n>+rt&&(n-=$i),n}var hc=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const lc={init:ac,forward:oc,inverse:rc,names:hc};var As=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],se=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],ua=.8487,ca=1.3523,fa=jt/5,uc=1/fa,ki=18,qe=function(i,e){return i[0]+e*(i[1]+e*(i[2]+e*i[3]))},cc=function(i,e){return i[1]+e*(2*i[2]+e*3*i[3])};function fc(i,e,n,o){for(var r=e;o;--o){var l=i(r);if(r-=l,Math.abs(l)<n)break}return r}function dc(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function mc(i){var e=O(i.x-this.long0),n=Math.abs(i.y),o=Math.floor(n*fa);o<0?o=0:o>=ki&&(o=ki-1),n=jt*(n-uc*o);var r={x:qe(As[o],n)*e,y:qe(se[o],n)};return i.y<0&&(r.y=-r.y),r.x=r.x*this.a*ua+this.x0,r.y=r.y*this.a*ca+this.y0,r}function _c(i){var e={x:(i.x-this.x0)/(this.a*ua),y:Math.abs(i.y-this.y0)/(this.a*ca)};if(e.y>=1)e.x/=As[ki][0],e.y=i.y<0?-C:C;else{var n=Math.floor(e.y*ki);for(n<0?n=0:n>=ki&&(n=ki-1);;)if(se[n][0]>e.y)--n;else if(se[n+1][0]<=e.y)++n;else break;var o=se[n],r=5*(e.y-o[0])/(se[n+1][0]-o[0]);r=fc(function(l){return(qe(o,l)-e.y)/cc(o,l)},r,S,100),e.x/=qe(As[n],r),e.y=(5*n+r)*vt,i.y<0&&(e.y=-e.y)}return e.x=O(e.x+this.long0),e}var pc=["Robinson","robin"];const gc={init:dc,forward:mc,inverse:_c,names:pc};function vc(){this.name="geocent"}function yc(i){var e=qn(i,this.es,this.a);return e}function Mc(i){var e=Gn(i,this.es,this.a,this.b);return e}var xc=["Geocentric","geocentric","geocent","Geocent"];const wc={init:vc,forward:yc,inverse:Mc,names:xc};var xt={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},ne={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function bc(){if(Object.keys(ne).forEach((function(n){if(typeof this[n]>"u")this[n]=ne[n].def;else{if(ne[n].num&&isNaN(this[n]))throw new Error("Invalid parameter value, must be numeric "+n+" = "+this[n]);ne[n].num&&(this[n]=parseFloat(this[n]))}ne[n].degrees&&(this[n]=this[n]*vt)}).bind(this)),Math.abs(Math.abs(this.lat0)-C)<S?this.mode=this.lat0<0?xt.S_POLE:xt.N_POLE:Math.abs(this.lat0)<S?this.mode=xt.EQUIT:(this.mode=xt.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var i=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(i),this.sw=Math.sin(i)}function Lc(i){i.x-=this.long0;var e=Math.sin(i.y),n=Math.cos(i.y),o=Math.cos(i.x),r,l;switch(this.mode){case xt.OBLIQ:l=this.sinph0*e+this.cosph0*n*o;break;case xt.EQUIT:l=n*o;break;case xt.S_POLE:l=-e;break;case xt.N_POLE:l=e;break}switch(l=this.pn1/(this.p-l),r=l*n*Math.sin(i.x),this.mode){case xt.OBLIQ:l*=this.cosph0*e-this.sinph0*n*o;break;case xt.EQUIT:l*=e;break;case xt.N_POLE:l*=-(n*o);break;case xt.S_POLE:l*=n*o;break}var u,c;return u=l*this.cg+r*this.sg,c=1/(u*this.sw*this.h1+this.cw),r=(r*this.cg-l*this.sg)*this.cw*c,l=u*c,i.x=r*this.a,i.y=l*this.a,i}function Pc(i){i.x/=this.a,i.y/=this.a;var e={x:i.x,y:i.y},n,o,r;r=1/(this.pn1-i.y*this.sw),n=this.pn1*i.x*r,o=this.pn1*i.y*this.cw*r,i.x=n*this.cg+o*this.sg,i.y=o*this.cg-n*this.sg;var l=Ct(i.x,i.y);if(Math.abs(l)<S)e.x=0,e.y=i.y;else{var u,c;switch(c=1-l*l*this.pfact,c=(this.p-Math.sqrt(c))/(this.pn1/l+l/this.pn1),u=Math.sqrt(1-c*c),this.mode){case xt.OBLIQ:e.y=Math.asin(u*this.sinph0+i.y*c*this.cosph0/l),i.y=(u-this.sinph0*Math.sin(e.y))*l,i.x*=c*this.cosph0;break;case xt.EQUIT:e.y=Math.asin(i.y*c/l),i.y=u*l,i.x*=c;break;case xt.N_POLE:e.y=Math.asin(u),i.y=-i.y;break;case xt.S_POLE:e.y=-Math.asin(u);break}e.x=Math.atan2(i.x,i.y)}return i.x=e.x+this.long0,i.y=e.y,i}var Ac=["Tilted_Perspective","tpers"];const Tc={init:bc,forward:Lc,inverse:Pc,names:Ac};function Cc(){if(this.flip_axis=this.sweep==="x"?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var i=1-this.es,e=1/i;this.radius_p=Math.sqrt(i),this.radius_p2=i,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Ec(i){var e=i.x,n=i.y,o,r,l,u;if(e=e-this.long0,this.shape==="ellipse"){n=Math.atan(this.radius_p2*Math.tan(n));var c=this.radius_p/Ct(this.radius_p*Math.cos(n),Math.sin(n));if(r=c*Math.cos(e)*Math.cos(n),l=c*Math.sin(e)*Math.cos(n),u=c*Math.sin(n),(this.radius_g-r)*r-l*l-u*u*this.radius_p_inv2<0)return i.x=Number.NaN,i.y=Number.NaN,i;o=this.radius_g-r,this.flip_axis?(i.x=this.radius_g_1*Math.atan(l/Ct(u,o)),i.y=this.radius_g_1*Math.atan(u/o)):(i.x=this.radius_g_1*Math.atan(l/o),i.y=this.radius_g_1*Math.atan(u/Ct(l,o)))}else this.shape==="sphere"&&(o=Math.cos(n),r=Math.cos(e)*o,l=Math.sin(e)*o,u=Math.sin(n),o=this.radius_g-r,this.flip_axis?(i.x=this.radius_g_1*Math.atan(l/Ct(u,o)),i.y=this.radius_g_1*Math.atan(u/o)):(i.x=this.radius_g_1*Math.atan(l/o),i.y=this.radius_g_1*Math.atan(u/Ct(l,o))));return i.x=i.x*this.a,i.y=i.y*this.a,i}function Sc(i){var e=-1,n=0,o=0,r,l,u,c;if(i.x=i.x/this.a,i.y=i.y/this.a,this.shape==="ellipse"){this.flip_axis?(o=Math.tan(i.y/this.radius_g_1),n=Math.tan(i.x/this.radius_g_1)*Ct(1,o)):(n=Math.tan(i.x/this.radius_g_1),o=Math.tan(i.y/this.radius_g_1)*Ct(1,n));var d=o/this.radius_p;if(r=n*n+d*d+e*e,l=2*this.radius_g*e,u=l*l-4*r*this.C,u<0)return i.x=Number.NaN,i.y=Number.NaN,i;c=(-l-Math.sqrt(u))/(2*r),e=this.radius_g+c*e,n*=c,o*=c,i.x=Math.atan2(n,e),i.y=Math.atan(o*Math.cos(i.x)/e),i.y=Math.atan(this.radius_p_inv2*Math.tan(i.y))}else if(this.shape==="sphere"){if(this.flip_axis?(o=Math.tan(i.y/this.radius_g_1),n=Math.tan(i.x/this.radius_g_1)*Math.sqrt(1+o*o)):(n=Math.tan(i.x/this.radius_g_1),o=Math.tan(i.y/this.radius_g_1)*Math.sqrt(1+n*n)),r=n*n+o*o+e*e,l=2*this.radius_g*e,u=l*l-4*r*this.C,u<0)return i.x=Number.NaN,i.y=Number.NaN,i;c=(-l-Math.sqrt(u))/(2*r),e=this.radius_g+c*e,n*=c,o*=c,i.x=Math.atan2(n,e),i.y=Math.atan(o*Math.cos(i.x)/e)}return i.x=i.x+this.long0,i}var Oc=["Geostationary Satellite View","Geostationary_Satellite","geos"];const kc={init:Cc,forward:Ec,inverse:Sc,names:Oc};var ae=1.340264,oe=-.081106,re=893e-6,he=.003796,Ge=Math.sqrt(3)/2;function zc(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function Ic(i){var e=O(i.x-this.long0),n=i.y,o=Math.asin(Ge*Math.sin(n)),r=o*o,l=r*r*r;return i.x=e*Math.cos(o)/(Ge*(ae+3*oe*r+l*(7*re+9*he*r))),i.y=o*(ae+oe*r+l*(re+he*r)),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function Nc(i){i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a;var e=1e-9,n=12,o=i.y,r,l,u,c,d,_;for(_=0;_<n&&(r=o*o,l=r*r*r,u=o*(ae+oe*r+l*(re+he*r))-i.y,c=ae+3*oe*r+l*(7*re+9*he*r),o-=d=u/c,!(Math.abs(d)<e));++_);return r=o*o,l=r*r*r,i.x=Ge*i.x*(ae+3*oe*r+l*(7*re+9*he*r))/Math.cos(o),i.y=Math.asin(Math.sin(o)/Ge),i.x=O(i.x+this.long0),i}var Bc=["eqearth","Equal Earth","Equal_Earth"];const Rc={init:zc,forward:Ic,inverse:Nc,names:Bc};var le=1e-10;function Dc(){var i;if(this.phi1=this.lat1,Math.abs(this.phi1)<le)throw new Error;this.es?(this.en=xs(this.es),this.m1=Ci(this.phi1,this.am1=Math.sin(this.phi1),i=Math.cos(this.phi1),this.en),this.am1=i/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Fc,this.forward=Zc):(Math.abs(this.phi1)+le>=C?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Gc,this.forward=qc)}function Zc(i){var e=O(i.x-(this.long0||0)),n=i.y,o,r,l;return o=this.am1+this.m1-Ci(n,r=Math.sin(n),l=Math.cos(n),this.en),r=l*e/(o*Math.sqrt(1-this.es*r*r)),i.x=o*Math.sin(r),i.y=this.am1-o*Math.cos(r),i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function Fc(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var e,n,o,r;if(n=Ct(i.x,i.y=this.am1-i.y),r=ws(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))<C)e=Math.sin(r),o=n*Math.atan2(i.x,i.y)*Math.sqrt(1-this.es*e*e)/Math.cos(r);else if(Math.abs(e-C)<=le)o=0;else throw new Error;return i.x=O(o+(this.long0||0)),i.y=hi(r),i}function qc(i){var e=O(i.x-(this.long0||0)),n=i.y,o,r;return r=this.cphi1+this.phi1-n,Math.abs(r)>le?(i.x=r*Math.sin(o=e*Math.cos(n)/r),i.y=this.cphi1-r*Math.cos(o)):i.x=i.y=0,i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function Gc(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var e,n,o=Ct(i.x,i.y=this.cphi1-i.y);if(n=this.cphi1+this.phi1-o,Math.abs(n)>C)throw new Error;return Math.abs(Math.abs(n)-C)<=le?e=0:e=o*Math.atan2(i.x,i.y)/Math.cos(n),i.x=O(e+(this.long0||0)),i.y=hi(n),i}var Uc=["bonne","Bonne (Werner lat_1=90)"];const jc={init:Dc,names:Uc};function Hc(i){i.Proj.projections.add(Re),i.Proj.projections.add(De),i.Proj.projections.add(Zh),i.Proj.projections.add(Qh),i.Proj.projections.add(il),i.Proj.projections.add(ol),i.Proj.projections.add(fl),i.Proj.projections.add(gl),i.Proj.projections.add(wl),i.Proj.projections.add(Tl),i.Proj.projections.add(jl),i.Proj.projections.add(Xl),i.Proj.projections.add(iu),i.Proj.projections.add(ru),i.Proj.projections.add(fu),i.Proj.projections.add(gu),i.Proj.projections.add(wu),i.Proj.projections.add(Tu),i.Proj.projections.add(zu),i.Proj.projections.add(Du),i.Proj.projections.add(Uu),i.Proj.projections.add(Vu),i.Proj.projections.add(Yu),i.Proj.projections.add(nc),i.Proj.projections.add(lc),i.Proj.projections.add(gc),i.Proj.projections.add(wc),i.Proj.projections.add(Tc),i.Proj.projections.add(kc),i.Proj.projections.add(Rc),i.Proj.projections.add(jc)}Nt.defaultDatum="WGS84",Nt.Proj=$t,Nt.WGS84=new Nt.Proj("WGS84"),Nt.Point=Ti,Nt.toPoint=Wn,Nt.defs=bt,Nt.nadgrid=qr,Nt.transform=Be,Nt.mgrs=sh,Nt.version="__VERSION__",Hc(Nt);const Wc=zo(Object.freeze(Object.defineProperty({__proto__:null,default:Nt},Symbol.toStringTag,{value:"Module"})));(function(i){(function(e){var n,o;n=mn(),o=Wc,i.exports=e(n,o)})(function(e,n){return n.__esModule&&n.default&&(n=n.default),e.Proj={},e.Proj._isProj4Obj=function(o){return typeof o.inverse<"u"&&typeof o.forward<"u"},e.Proj.Projection=e.Class.extend({initialize:function(o,r,l){var u=e.Proj._isProj4Obj(o);this._proj=u?o:this._projFromCodeDef(o,r),this.bounds=u?r:l},project:function(o){var r=this._proj.forward([o.lng,o.lat]);return new e.Point(r[0],r[1])},unproject:function(o,r){var l=this._proj.inverse([o.x,o.y]);return new e.LatLng(l[1],l[0],r)},_projFromCodeDef:function(o,r){if(r)n.defs(o,r);else if(n.defs[o]===void 0){var l=o.split(":");if(l.length>3&&(o=l[l.length-3]+":"+l[l.length-1]),n.defs[o]===void 0)throw"No projection definition for code "+o}return n(o)}}),e.Proj.CRS=e.Class.extend({includes:e.CRS,options:{transformation:new e.Transformation(1,0,-1,0)},initialize:function(o,r,l){var u,c,d,_;if(e.Proj._isProj4Obj(o)?(c=o,u=c.srsCode,_=r||{},this.projection=new e.Proj.Projection(c,_.bounds)):(u=o,d=r,_=l||{},this.projection=new e.Proj.Projection(u,d,_.bounds)),e.Util.setOptions(this,_),this.code=u,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new e.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var v=this.options.resolutions.length-1;v>=0;v--)this.options.resolutions[v]&&(this._scales[v]=1/this.options.resolutions[v])}this.infinite=!this.options.bounds},scale:function(o){var r=Math.floor(o),l,u,c,d;return o===r?this._scales[o]:(l=this._scales[r],u=this._scales[r+1],c=u-l,d=o-r,l+c*d)},zoom:function(o){var r=this._closestElement(this._scales,o),l=this._scales.indexOf(r),u,c,d;return o===r?l:r===void 0?-1/0:(c=l+1,u=this._scales[c],u===void 0?1/0:(d=u-r,(o-r)/d+l))},distance:e.CRS.Earth.distance,R:e.CRS.Earth.R,_closestElement:function(o,r){for(var l,u=o.length;u--;)o[u]<=r&&(l===void 0||l<o[u])&&(l=o[u]);return l}}),e.Proj.GeoJSON=e.GeoJSON.extend({initialize:function(o,r){this._callLevel=0,e.GeoJSON.prototype.initialize.call(this,o,r)},addData:function(o){var r;o&&(o.crs&&o.crs.type==="name"?r=new e.Proj.CRS(o.crs.properties.name):o.crs&&o.crs.type&&(r=new e.Proj.CRS(o.crs.type+":"+o.crs.properties.code)),r!==void 0&&(this.options.coordsToLatLng=function(l){var u=e.point(l[0],l[1]);return r.projection.unproject(u)})),this._callLevel++;try{e.GeoJSON.prototype.addData.call(this,o)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),e.Proj.geoJson=function(o,r){return new e.Proj.GeoJSON(o,r)},e.Proj.ImageOverlay=e.ImageOverlay.extend({initialize:function(o,r,l){e.ImageOverlay.prototype.initialize.call(this,o,null,l),this._projectedBounds=r},_animateZoom:function(o){var r=this._map.getZoomScale(o.zoom),l=e.point(this._projectedBounds.min.x,this._projectedBounds.max.y),u=this._projectedToNewLayerPoint(l,o.zoom,o.center);e.DomUtil.setTransform(this._image,u,r)},_reset:function(){var o=this._map.getZoom(),r=this._map.getPixelOrigin(),l=e.bounds(this._transform(this._projectedBounds.min,o)._subtract(r),this._transform(this._projectedBounds.max,o)._subtract(r)),u=l.getSize();e.DomUtil.setPosition(this._image,l.min),this._image.style.width=u.x+"px",this._image.style.height=u.y+"px"},_projectedToNewLayerPoint:function(o,r,l){var u=this._map.getSize()._divideBy(2),c=this._map.project(l,r)._subtract(u)._round(),d=c.add(this._map._getMapPanePos());return this._transform(o,r)._subtract(d)},_transform:function(o,r){var l=this._map.options.crs,u=l.transformation,c=l.scale(r);return u.transform(o,c)}}),e.Proj.imageOverlay=function(o,r,l){return new e.Proj.ImageOverlay(o,r,l)},e.Proj})})(er);const Ts=new M.Proj.CRS("EPSG:900913","+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",{resolutions:function(){var i=[];i[0]=Math.pow(2,18);for(var e=1;e<21;e++)i[e]=Math.pow(2,18-e);return i}(),origin:[0,0],bounds:M.bounds([20037508342789244e-9,0],[0,20037508342789244e-9])}),da=M.Layer.extend({provide:{TDT:"tdt",BAIDU:"bd",GAODE:"gd",YANDEX:"yandex"},source:{VECTOR:"vec",SATELITE:"img",ANNO:"cia",VEC_NO_ANNO:"vec_no_anno",SATELITE_NO_ANNO:"img_no_anno"},style:{NORMAL:"1",GRAY:"2",DARK:"3",BROWN:"4",BLUR:"5"},options:{provide:"tdt",source:"img",style:"normal",accessToken:"016b31f15f25e1365e85aec7e7b0464e"},initialize(i){i=wt.Util.deleteEmptyProperty(i),M.Util.setOptions(this,i)},onAdd(i){this.map=i,this.replaceProjection(),this.tileLayers=this.getLayerGroup(),i.addLayer(this.tileLayers)},onRemove(i){const e=this.getLayerGroup();i.removeLayer(e)},replaceProjection(){const i=this.map.getCenter(),e=this.map.getZoom();this.options.provide===this.provide.BAIDU?this.map.options.crs=Ts:this.options.provide===this.provide.YANDEX?this.map.options.crs=M.CRS.EPSG3395:this.map.options.crs=M.CRS.EPSG3857,this._resetMapStatus(i,e)},_resetMapStatus(i,e){this.map.setView(i),this.map._resetView(i,e,!0)},getLayerGroup(){let i={},e={};switch(this.options.style&&this.options.style.split(",").forEach(n=>{switch(n){case this.style.DARK:i.invert=1;break;case this.style.GRAY:i.grayscale=1;break;case this.style.BROWN:i.sepia=1;break;case this.style.BLUR:i.blur="1px";break}}),this.options.provide){case this.provide.TDT:e={subdomains:wt.ArrayUtil.create(8),maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.BAIDU:e={subdomains:wt.ArrayUtil.create(10),tms:!0,corrdType:"bd09",maxNativeZoom:19,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.GAODE:e={subdomains:wt.ArrayUtil.create(4).map(n=>n+1),corrdType:"gcj02",maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.YANDEX:e={maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break}if(this.options.opacity>=0&&(i.opacity=this.options.opacity),this.options.url)return new M.TileLayer(this.options.url,{...e,style:i});switch(this.options.provide){case this.provide.TDT:let n;switch(e.maxNativeZoom=18,this.options.source){case this.source.VECTOR:n=["vec_w","cva_w"];break;case this.source.SATELITE:n=["img_w","cia_w"];break;case this.source.ANNO:n=["cva_w"];break;case this.source.VEC_NO_ANNO:n=["vec_w"];break;case this.source.SATELITE_NO_ANNO:n=["img_w"];break}return new M.LayerGroup(n.map(o=>new M.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${o}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`,{...e,style:i})));case this.provide.BAIDU:switch(this.options.source){case this.source.VECTOR:return e.maxNativeZoom=19,new M.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1",{...e,style:i});case this.source.ANNO:return e.maxNativeZoom=19,new M.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl",{...e,style:i});case this.source.SATELITE:return e.maxNativeZoom=17,new M.LayerGroup([new M.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",{...e,style:i}),new M.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl",{...e,style:i})]);case this.source.SATELITE_NO_ANNO:return e.maxNativeZoom=19,new M.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",{...e,style:i})}break;case this.provide.GAODE:switch(this.options.source){case this.source.VECTOR:return e.maxNativeZoom=18,new M.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...e,style:i});case this.source.ANNO:return e.maxNativeZoom=18,new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...e,style:i});case this.source.SATELITE:return e.maxNativeZoom=16,new M.LayerGroup([new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6",{...e,style:i}),new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...e,style:i})]);case this.source.SATELITE_NO_ANNO:return e.maxNativeZoom=18,new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6",{...e,style:i})}break;case this.provide.YANDEX:switch(this.options.source){case this.source.ANNO:return new M.TileLayer("https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",{...e,style:i});case this.source.SATELITE:return new M.LayerGroup([new M.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps",{...e,subdomains:["01","02","03","04"],style:i}),new M.TileLayer("https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",{...e,style:i})]);case this.source.SATELITE_NO_ANNO:return new M.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps",{...e,subdomains:["01","02","03","04"],style:i})}break}},setOptions(i){M.Util.setOptions(this,i);const e=this.getLayerGroup();this.map.removeLayer(this.tileLayers),setTimeout(()=>{this.replaceProjection(),this.tileLayers=e.addTo(this.map)},500)}}),ma=M.ImageOverlay.extend({initialize(i,e,n,o){typeof i=="string"?this._url=i:this._rawImage=i,this.topRightMarker=e,this.bottomLeftMarker=n,this.angle=0,M.setOptions(this,o),this._topLeft=new M.LatLng(o.corners[0]),this._topRight=new M.LatLng(o.corners[1]),this._bottomLeft=new M.LatLng(o.corners[3]),e.on("drag dragend",this.reposition,this),n.on("drag dragend",this.reposition,this)},onAdd(i){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(M.DomUtil.addClass(this._rawImage,"leaflet-interactive"),this.addInteractiveTarget(this._rawImage)),i.on("zoomend resetview",this._reset,this),this.getPane().appendChild(this._image),this._reset()},onRemove(i){i.off("zoomend resetview",this._reset,this),M.ImageOverlay.prototype.onRemove.call(this,i)},_initImage(){let i=this._rawImage;this._url&&(i=M.DomUtil.create("img"),i.style.display="none",this.options.crossOrigin&&(i.crossOrigin=""),i.src=this._url,this._rawImage=i),M.DomUtil.addClass(i,"leaflet-image-layer");const e=this._image=M.DomUtil.create("div","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));this._updateZIndex&&this._updateZIndex(),e.appendChild(i),e.onselectstart=M.Util.falseFn,e.onmousemove=M.Util.falseFn,i.onload=(function(){this._reset(),i.style.display="block",this.options.w=this._rawImage.width,this.options.h=this._rawImage.height,this.boundsRectBottomLeft=new M.Point(0,0),this.boundsRectTopRight=new M.Point(this.options.w,this.options.h),this.diagonalVector=this.boundsRectTopRight.subtract(this.boundsRectBottomLeft),this.fire("load")}).bind(this),i.alt=this.options.alt},_reset(){const i=this._image,e=this._map.latLngToLayerPoint(this._topLeft),n=this._map.latLngToLayerPoint(this._topRight),o=this._map.latLngToLayerPoint(this._bottomLeft),r=n.subtract(e).add(o),l=new M.Bounds([e,n,o,r]),u=l.getSize(),c=e.subtract(l.min),d=n.subtract(e),_=o.subtract(e),v=Math.atan2(d.y,d.x),p=Math.atan2(_.x,_.y);this.angle=((Math.abs(v)+Math.abs(p))/2*180).toFixed(2),this._bounds=new M.LatLngBounds(this._map.layerPointToLatLng(l.min),this._map.layerPointToLatLng(l.max)),M.DomUtil.setPosition(i,l.min),i.pxBounds=l,i.style.width=u.x+"px",i.style.height=u.y+"px";const y=this._rawImage.width,b=this._rawImage.height;if(!y||!b)return;const A=e.distanceTo(n)/y*Math.cos(v),P=e.distanceTo(o)/b*Math.cos(p);this._rawImage.style.transformOrigin="0 0",this._rawImage.style.transform="translate("+c.x+"px, "+c.y+"px)skew("+p+"rad, "+v+"rad) scale("+A+", "+P+") "},_animateZoom(i){const e=this._map.getZoomScale(i.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;M.DomUtil.setTransform(this._image,o,e)},reposition(){const i=this.topRightMarker.getLatLng(),e=this.bottomLeftMarker.getLatLng(),n=this.options.w,o=this.options.h,r=this.getCornerLatLng(new M.Point(0,o),e,i),l=this.getCornerLatLng(new M.Point(n,o),e,i),u=this.getCornerLatLng(new M.Point(0,0),e,i),c=this.getCornerLatLng(new M.Point(n,0),e,i);this.options.corners=[r,l,c,u],this._topLeft=new M.LatLng(r),this._topRight=new M.LatLng(l),this._bottomLeft=new M.LatLng(u),this._reset()},getCornerLatLng(i,e,n){const o=this.boundsRectBottomLeft,r=this.diagonalVector,l=i.subtract(o),u=this.getClockWiseRotate90DegreePoint(r),c=this.getDotProduction(r,l)/this.getDotProduction(r,r),d=-this.getDotProduction(u,l)/this.getDotProduction(u,u),_=new M.Projection.SphericalMercator.project(e),v=new M.Projection.SphericalMercator.project(n),p=_.add(v.subtract(_).multiplyBy(c)),y=this.getClockWiseRotate90DegreePoint(_.subtract(v)).multiplyBy(d),b=p.add(y);return new M.Projection.SphericalMercator.unproject(b)},setUrl(i){return this._url=i,this._rawImage&&(this._rawImage.src=i),this},getDotProduction(i,e){return i.x*e.x+i.y*e.y},getClockWiseRotate90DegreePoint(i){return new M.Point([i.y,-i.x])}}),_a=M.Marker.extend({options:{fontSize:"12px",color:"#f00",fontShadowColor:"none",fontWeight:"normal",background:"rgba(0, 0, 0, 0)",minZoom:void 0,maxZoom:void 0},initialize(i,e,n={}){this._latlng=i,this._enabled=!1,this.options.id=n.id||"text_"+Utils.guid(),this.options.text=e||"",n=Object.assign(this.options,n),M.setOptions(this,n);const{id:o,fontSize:r,color:l,fontWeight:u,background:c,fontShadowColor:d}=this.options;this.options.icon=new M.DivIcon({html:`<span id=${o} style="padding:2px 4px;white-space:nowrap;font-weight:${u};font-size:${r};color:${l};background:${c};text-shadow:${d} 1px 0px 2px">${e||""}</span>`,className:"leaflet-text"})},setStyle(i){const e=document.getElementById(this.options.id),{text:n,color:o,fontSize:r,fontShadowColor:l,fontWeight:u}=i,c=i.background||"none";return e&&(o&&(this.options.color=o,e.style.color=o),u&&(this.options.fontWeight=u,e.style.fontWeight=u),r&&(this.options.fontSize=r,e.style.fontSize=r),c&&(this.options.background=c,e.style.background=c),n&&(this.options.text=n,e.textContent=n),l?(this.options.fontShadowColor=l,e.style["text-shadow"]=l+" 1px 0px 2px"):(this.options.fontShadowColor="none",e.style["text-shadow"]="none")),this},enableEdit(i){const{fontSize:e,color:n,text:o}=this.options;if(!this._enabled){this._enabled=!0;const r=new M.DivIcon({html:`<input type="text" id="text-input-icon" style="font-size:${e};color:${n};" value=${o}></input>`,className:"leaflet-text"});return this.setIcon(r),document.getElementById("text-input-icon").onblur=l=>{this.options.text=l.target.value,setTimeout(()=>{this.disableEdit(),i&&i(this)},100)},document.getElementById("text-input-icon").onkeydown=function(l){l.keyCode===13&&(this.options.text=l.target.value,this.blur(l))},this}},disableEdit(i){if(this._enabled){this._enabled=!1;const{id:e,color:n,fontSize:o,fontWeight:r,fontShadowColor:l}=this.options,u=new M.DivIcon({html:`<span id=${e} style="padding:2px 4px;white-space:nowrap;font-weight:${r};font-size:${o};color:${n};text-shadow:${l} 1px 2px 3px">${this.options.text}</span>`,className:"leaflet-text"});return this.setIcon(u),i&&i(this),this}}}),pa=M.LayerGroup.extend({initialize(i){M.Util.setOptions(this,i),M.LayerGroup.prototype.initialize.call(this,i)},getRasterLayers(){const i={},e=n=>{if(n._layers&&n.getLayer)for(const o in n._layers){const r=n._layers[o];r._layers&&r.getLayer?e(r):i[r._leaflet_id]=r}else i[layer._leaflet_id]=layer};return e(this),i},removeRasterLayer(i){const e=function(n){if(n._layers&&n.getLayer&&n.getLayer(i)){const o=n.getLayer(i);n.removeLayer(o)}else if(n._layers)for(const o in n._layers){const r=n._layers[o];if(r._layers&&r.getLayer&&r.getLayer(i)){const l=r.getLayer(i);r.removeLayer(l)}else r._layers&&e(r)}};e(this)},getRasterTop(){const i=Object.values(this.getRasterLayers());return i.length?Math.max(...i.map(e=>e.options.zIndex))+1:null}});function $c(i){const e=document.createElement("style"),n=document.head||document.documentElement;e.innerHTML=`
9
+ northing meters`+i;var y=p/2,b=0,A=0,P,E,z,B,k;return y>0&&(P=1e5/Math.pow(10,y),E=i.substring(l,l+y),b=parseFloat(E)*P,z=i.substring(l+y),A=parseFloat(z)*P),B=b+m,k=A+v,{easting:B,northing:k,zoneLetter:c,zoneNumber:f,accuracy:P}}function _r(i,s){for(var n=xn.charCodeAt(s-1),r=1e5,o=!1;n!==i.charCodeAt(0);){if(n++,n===bt&&n++,n===Ot&&n++,n>qi){if(o)throw"Bad character: "+i;n=gi,o=!0}r+=1e5}return r}function mr(i,s){if(i>"V")throw"MGRSPoint given invalid Northing "+i;for(var n=wn.charCodeAt(s-1),r=0,o=!1;n!==i.charCodeAt(0);){if(n++,n===bt&&n++,n===Ot&&n++,n>Fi){if(o)throw"Bad character: "+i;n=gi,o=!0}r+=1e5}return r}function pr(i){var s;switch(i){case"C":s=11e5;break;case"D":s=2e6;break;case"E":s=28e5;break;case"F":s=37e5;break;case"G":s=46e5;break;case"H":s=55e5;break;case"J":s=64e5;break;case"K":s=73e5;break;case"L":s=82e5;break;case"M":s=91e5;break;case"N":s=0;break;case"P":s=8e5;break;case"Q":s=17e5;break;case"R":s=26e5;break;case"S":s=35e5;break;case"T":s=44e5;break;case"U":s=53e5;break;case"V":s=62e5;break;case"W":s=7e6;break;case"X":s=79e5;break;default:s=-1}if(s>=0)return s;throw"Invalid zone letter: "+i}function vi(i,s,n){if(!(this instanceof vi))return new vi(i,s,n);if(Array.isArray(i))this.x=i[0],this.y=i[1],this.z=i[2]||0;else if(typeof i=="object")this.x=i.x,this.y=i.y,this.z=i.z||0;else if(typeof i=="string"&&typeof s>"u"){var r=i.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=i,this.y=s,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}vi.fromMGRS=function(i){return new vi(Ln(i))},vi.prototype.toMGRS=function(i){return bn([this.x,this.y],i)};var gr=1,vr=.25,Cn=.046875,En=.01953125,Sn=.01068115234375,yr=.75,Mr=.46875,xr=.013020833333333334,wr=.007120768229166667,br=.3645833333333333,Lr=.005696614583333333,Pr=.3076171875;function es(i){var s=[];s[0]=gr-i*(vr+i*(Cn+i*(En+i*Sn))),s[1]=i*(yr-i*(Cn+i*(En+i*Sn)));var n=i*i;return s[2]=n*(Mr-i*(xr+i*wr)),n*=i,s[3]=n*(br-i*Lr),s[4]=n*i*Pr,s}function yi(i,s,n,r){return n*=s,s*=s,r[0]*i-n*(r[1]+s*(r[2]+s*(r[3]+s*r[4])))}var Ar=20;function ss(i,s,n){for(var r=1/(1-s),o=i,l=Ar;l;--l){var f=Math.sin(o),c=1-s*f*f;if(c=(yi(o,f,Math.cos(o),n)-i)*(c*Math.sqrt(c))*r,o-=c,Math.abs(c)<S)return o}return o}function Tr(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=es(this.es),this.ml0=yi(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function Cr(i){var s=i.x,n=i.y,r=O(s-this.long0),o,l,f,c=Math.sin(n),d=Math.cos(n);if(this.es){var v=d*r,p=Math.pow(v,2),y=this.ep2*Math.pow(d,2),b=Math.pow(y,2),A=Math.abs(d)>S?Math.tan(n):0,P=Math.pow(A,2),E=Math.pow(P,2);o=1-this.es*Math.pow(c,2),v=v/Math.sqrt(o);var z=yi(n,c,d,this.en);l=this.a*(this.k0*v*(1+p/6*(1-P+y+p/20*(5-18*P+E+14*y-58*P*y+p/42*(61+179*E-E*P-479*P)))))+this.x0,f=this.a*(this.k0*(z-this.ml0+c*r*v/2*(1+p/12*(5-P+9*y+4*b+p/30*(61+E-58*P+270*y-330*P*y+p/56*(1385+543*E-E*P-3111*P))))))+this.y0}else{var m=d*Math.sin(r);if(Math.abs(Math.abs(m)-1)<S)return 93;if(l=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,f=d*Math.cos(r)/Math.sqrt(1-Math.pow(m,2)),m=Math.abs(f),m>=1){if(m-1>S)return 93;f=0}else f=Math.acos(f);n<0&&(f=-f),f=this.a*this.k0*(f-this.lat0)+this.y0}return i.x=l,i.y=f,i}function Er(i){var s,n,r,o,l=(i.x-this.x0)*(1/this.a),f=(i.y-this.y0)*(1/this.a);if(this.es)if(s=this.ml0+f/this.k0,n=ss(s,this.es,this.en),Math.abs(n)<C){var p=Math.sin(n),y=Math.cos(n),b=Math.abs(y)>S?Math.tan(n):0,A=this.ep2*Math.pow(y,2),P=Math.pow(A,2),E=Math.pow(b,2),z=Math.pow(E,2);s=1-this.es*Math.pow(p,2);var B=l*Math.sqrt(s)/this.k0,k=Math.pow(B,2);s=s*b,r=n-s*k/(1-this.es)*.5*(1-k/12*(5+3*E-9*A*E+A-4*P-k/30*(61+90*E-252*A*E+45*z+46*A-k/56*(1385+3633*E+4095*z+1574*z*E)))),o=O(this.long0+B*(1-k/6*(1+2*E+A-k/20*(5+28*E+24*z+8*A*E+6*A-k/42*(61+662*E+1320*z+720*z*E))))/y)}else r=C*Di(f),o=0;else{var c=Math.exp(l/this.k0),d=.5*(c-1/c),m=this.lat0+f/this.k0,v=Math.cos(m);s=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(d,2))),r=Math.asin(s),f<0&&(r=-r),d===0&&v===0?o=0:o=O(Math.atan2(d,v)+this.long0)}return i.x=o,i.y=r,i}var Sr=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const be={init:Tr,forward:Cr,inverse:Er,names:Sr};function On(i){var s=Math.exp(i);return s=(s-1/s)/2,s}function Lt(i,s){i=Math.abs(i),s=Math.abs(s);var n=Math.max(i,s),r=Math.min(i,s)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function Or(i){var s=1+i,n=s-1;return n===0?i:i*Math.log(s)/n}function Ir(i){var s=Math.abs(i);return s=Or(s*(1+s/(Lt(1,s)+1))),i<0?-s:s}function ns(i,s){for(var n=2*Math.cos(2*s),r=i.length-1,o=i[r],l=0,f;--r>=0;)f=-l+n*o+i[r],l=o,o=f;return s+f*Math.sin(2*s)}function zr(i,s){for(var n=2*Math.cos(s),r=i.length-1,o=i[r],l=0,f;--r>=0;)f=-l+n*o+i[r],l=o,o=f;return Math.sin(s)*f}function Nr(i){var s=Math.exp(i);return s=(s+1/s)/2,s}function In(i,s,n){for(var r=Math.sin(s),o=Math.cos(s),l=On(n),f=Nr(n),c=2*o*f,d=-2*r*l,m=i.length-1,v=i[m],p=0,y=0,b=0,A,P;--m>=0;)A=y,P=p,y=v,p=b,v=-A+c*y-d*p+i[m],b=-P+d*y+c*p;return c=r*f,d=o*l,[c*v-d*b,c*b+d*v]}function kr(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(be.init.apply(this),this.forward=be.forward,this.inverse=be.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var i=this.es/(1+Math.sqrt(1-this.es)),s=i/(2-i),n=s;this.cgb[0]=s*(2+s*(-2/3+s*(-2+s*(116/45+s*(26/45+s*(-2854/675)))))),this.cbg[0]=s*(-2+s*(2/3+s*(4/3+s*(-82/45+s*(32/45+s*(4642/4725)))))),n=n*s,this.cgb[1]=n*(7/3+s*(-8/5+s*(-227/45+s*(2704/315+s*(2323/945))))),this.cbg[1]=n*(5/3+s*(-16/15+s*(-13/9+s*(904/315+s*(-1522/945))))),n=n*s,this.cgb[2]=n*(56/15+s*(-136/35+s*(-1262/105+s*(73814/2835)))),this.cbg[2]=n*(-26/15+s*(34/21+s*(8/5+s*(-12686/2835)))),n=n*s,this.cgb[3]=n*(4279/630+s*(-332/35+s*(-399572/14175))),this.cbg[3]=n*(1237/630+s*(-12/5+s*(-24832/14175))),n=n*s,this.cgb[4]=n*(4174/315+s*(-144838/6237)),this.cbg[4]=n*(-734/315+s*(109598/31185)),n=n*s,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(s,2),this.Qn=this.k0/(1+s)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=s*(-.5+s*(2/3+s*(-37/96+s*(1/360+s*(81/512+s*(-96199/604800)))))),this.gtu[0]=s*(.5+s*(-2/3+s*(5/16+s*(41/180+s*(-127/288+s*(7891/37800)))))),this.utg[1]=n*(-1/48+s*(-1/15+s*(437/1440+s*(-46/105+s*(1118711/3870720))))),this.gtu[1]=n*(13/48+s*(-3/5+s*(557/1440+s*(281/630+s*(-1983433/1935360))))),n=n*s,this.utg[2]=n*(-17/480+s*(37/840+s*(209/4480+s*(-5569/90720)))),this.gtu[2]=n*(61/240+s*(-103/140+s*(15061/26880+s*(167603/181440)))),n=n*s,this.utg[3]=n*(-4397/161280+s*(11/504+s*(830251/7257600))),this.gtu[3]=n*(49561/161280+s*(-179/168+s*(6601661/7257600))),n=n*s,this.utg[4]=n*(-4583/161280+s*(108847/3991680)),this.gtu[4]=n*(34729/80640+s*(-3418889/1995840)),n=n*s,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=n*(212378941/319334400);var r=ns(this.cbg,this.lat0);this.Zb=-this.Qn*(r+zr(this.gtu,2*r))}function Br(i){var s=O(i.x-this.long0),n=i.y;n=ns(this.cbg,n);var r=Math.sin(n),o=Math.cos(n),l=Math.sin(s),f=Math.cos(s);n=Math.atan2(r,f*o),s=Math.atan2(l*o,Lt(r,o*f)),s=Ir(Math.tan(s));var c=In(this.gtu,2*n,2*s);n=n+c[0],s=s+c[1];var d,m;return Math.abs(s)<=2.623395162778?(d=this.a*(this.Qn*s)+this.x0,m=this.a*(this.Qn*n+this.Zb)+this.y0):(d=1/0,m=1/0),i.x=d,i.y=m,i}function Rr(i){var s=(i.x-this.x0)*(1/this.a),n=(i.y-this.y0)*(1/this.a);n=(n-this.Zb)/this.Qn,s=s/this.Qn;var r,o;if(Math.abs(s)<=2.623395162778){var l=In(this.utg,2*n,2*s);n=n+l[0],s=s+l[1],s=Math.atan(On(s));var f=Math.sin(n),c=Math.cos(n),d=Math.sin(s),m=Math.cos(s);n=Math.atan2(f*m,Lt(d,m*c)),s=Math.atan2(d,m*c),r=O(s+this.long0),o=ns(this.cgb,n)}else r=1/0,o=1/0;return i.x=r,i.y=o,i}var Dr=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const Le={init:kr,forward:Br,inverse:Rr,names:Dr};function Zr(i,s){if(i===void 0){if(i=Math.floor((O(s)+Math.PI)*30/Math.PI)+1,i<0)return 0;if(i>60)return 60}return i}var Fr="etmerc";function qr(){var i=Zr(this.zone,this.long0);if(i===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(i)-183)*mt,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Le.init.apply(this),this.forward=Le.forward,this.inverse=Le.inverse}var Gr=["Universal Transverse Mercator System","utm"];const Ur={init:qr,names:Gr,dependsOn:Fr};function as(i,s){return Math.pow((1-i)/(1+i),s)}var jr=20;function Hr(){var i=Math.sin(this.lat0),s=Math.cos(this.lat0);s*=s,this.rc=Math.sqrt(1-this.es)/(1-this.es*i*i),this.C=Math.sqrt(1+this.es*s*s/(1-this.es)),this.phic0=Math.asin(i/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+X)/(Math.pow(Math.tan(.5*this.lat0+X),this.C)*as(this.e*i,this.ratexp))}function Wr(i){var s=i.x,n=i.y;return i.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+X),this.C)*as(this.e*Math.sin(n),this.ratexp))-C,i.x=this.C*s,i}function $r(i){for(var s=1e-14,n=i.x/this.C,r=i.y,o=Math.pow(Math.tan(.5*r+X)/this.K,1/this.C),l=jr;l>0&&(r=2*Math.atan(o*as(this.e*Math.sin(i.y),-.5*this.e))-C,!(Math.abs(r-i.y)<s));--l)i.y=r;return l?(i.x=n,i.y=r,i):null}var Vr=["gauss"];const os={init:Hr,forward:Wr,inverse:$r,names:Vr};function Qr(){os.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Xr(i){var s,n,r,o;return i.x=O(i.x-this.long0),os.forward.apply(this,[i]),s=Math.sin(i.y),n=Math.cos(i.y),r=Math.cos(i.x),o=this.k0*this.R2/(1+this.sinc0*s+this.cosc0*n*r),i.x=o*n*Math.sin(i.x),i.y=o*(this.cosc0*s-this.sinc0*n*r),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function Kr(i){var s,n,r,o,l;if(i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,i.x/=this.k0,i.y/=this.k0,l=Lt(i.x,i.y)){var f=2*Math.atan2(l,this.R2);s=Math.sin(f),n=Math.cos(f),o=Math.asin(n*this.sinc0+i.y*s*this.cosc0/l),r=Math.atan2(i.x*s,l*this.cosc0*n-i.y*this.sinc0*s)}else o=this.phic0,r=0;return i.x=r,i.y=o,os.inverse.apply(this,[i]),i.x=O(i.x+this.long0),i}var Yr=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const Jr={init:Qr,forward:Xr,inverse:Kr,names:Yr};function th(i,s,n){return s*=n,Math.tan(.5*(C+i))*Math.pow((1-s)/(1+s),.5*n)}function ih(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=S&&(this.k0=.5*(1+Di(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=S&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=S&&Math.abs(Math.cos(this.lat_ts))>S&&(this.k0=.5*this.cons*Ft(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/kt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Ft(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-C,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function eh(i){var s=i.x,n=i.y,r=Math.sin(n),o=Math.cos(n),l,f,c,d,m,v,p=O(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=S&&Math.abs(n+this.lat0)<=S?(i.x=NaN,i.y=NaN,i):this.sphere?(l=2*this.k0/(1+this.sinlat0*r+this.coslat0*o*Math.cos(p)),i.x=this.a*l*o*Math.sin(p)+this.x0,i.y=this.a*l*(this.coslat0*r-this.sinlat0*o*Math.cos(p))+this.y0,i):(f=2*Math.atan(this.ssfn_(n,r,this.e))-C,d=Math.cos(f),c=Math.sin(f),Math.abs(this.coslat0)<=S?(m=kt(this.e,n*this.con,this.con*r),v=2*this.a*this.k0*m/this.cons,i.x=this.x0+v*Math.sin(s-this.long0),i.y=this.y0-this.con*v*Math.cos(s-this.long0),i):(Math.abs(this.sinlat0)<S?(l=2*this.a*this.k0/(1+d*Math.cos(p)),i.y=l*c):(l=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*c+this.cosX0*d*Math.cos(p))),i.y=l*(this.cosX0*c-this.sinX0*d*Math.cos(p))+this.y0),i.x=l*d*Math.sin(p)+this.x0,i))}function sh(i){i.x-=this.x0,i.y-=this.y0;var s,n,r,o,l,f=Math.sqrt(i.x*i.x+i.y*i.y);if(this.sphere){var c=2*Math.atan(f/(2*this.a*this.k0));return s=this.long0,n=this.lat0,f<=S?(i.x=s,i.y=n,i):(n=Math.asin(Math.cos(c)*this.sinlat0+i.y*Math.sin(c)*this.coslat0/f),Math.abs(this.coslat0)<S?this.lat0>0?s=O(this.long0+Math.atan2(i.x,-1*i.y)):s=O(this.long0+Math.atan2(i.x,i.y)):s=O(this.long0+Math.atan2(i.x*Math.sin(c),f*this.coslat0*Math.cos(c)-i.y*this.sinlat0*Math.sin(c))),i.x=s,i.y=n,i)}else if(Math.abs(this.coslat0)<=S){if(f<=S)return n=this.lat0,s=this.long0,i.x=s,i.y=n,i;i.x*=this.con,i.y*=this.con,r=f*this.cons/(2*this.a*this.k0),n=this.con*Zi(this.e,r),s=this.con*O(this.con*this.long0+Math.atan2(i.x,-1*i.y))}else o=2*Math.atan(f*this.cosX0/(2*this.a*this.k0*this.ms1)),s=this.long0,f<=S?l=this.X0:(l=Math.asin(Math.cos(o)*this.sinX0+i.y*Math.sin(o)*this.cosX0/f),s=O(this.long0+Math.atan2(i.x*Math.sin(o),f*this.cosX0*Math.cos(o)-i.y*this.sinX0*Math.sin(o)))),n=-1*Zi(this.e,Math.tan(.5*(C+l)));return i.x=s,i.y=n,i}var nh=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const ah={init:ih,forward:eh,inverse:sh,names:nh,ssfn_:th};function oh(){var i=this.lat0;this.lambda0=this.long0;var s=Math.sin(i),n=this.a,r=this.rf,o=1/r,l=2*o-Math.pow(o,2),f=this.e=Math.sqrt(l);this.R=this.k0*n*Math.sqrt(1-l)/(1-l*Math.pow(s,2)),this.alpha=Math.sqrt(1+l/(1-l)*Math.pow(Math.cos(i),4)),this.b0=Math.asin(s/this.alpha);var c=Math.log(Math.tan(Math.PI/4+this.b0/2)),d=Math.log(Math.tan(Math.PI/4+i/2)),m=Math.log((1+f*s)/(1-f*s));this.K=c-this.alpha*d+this.alpha*f/2*m}function rh(i){var s=Math.log(Math.tan(Math.PI/4-i.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(i.y))/(1-this.e*Math.sin(i.y))),r=-this.alpha*(s+n)+this.K,o=2*(Math.atan(Math.exp(r))-Math.PI/4),l=this.alpha*(i.x-this.lambda0),f=Math.atan(Math.sin(l)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(l))),c=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(l));return i.y=this.R/2*Math.log((1+Math.sin(c))/(1-Math.sin(c)))+this.y0,i.x=this.R*f+this.x0,i}function hh(i){for(var s=i.x-this.x0,n=i.y-this.y0,r=s/this.R,o=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),l=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(r)),f=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(o))),c=this.lambda0+f/this.alpha,d=0,m=l,v=-1e3,p=0;Math.abs(m-v)>1e-7;){if(++p>20)return;d=1/this.alpha*(Math.log(Math.tan(Math.PI/4+l/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(m))/2)),v=m,m=2*Math.atan(Math.exp(d))-Math.PI/2}return i.x=c,i.y=m,i}var lh=["somerc"];const uh={init:oh,forward:rh,inverse:hh,names:lh};var Mi=1e-7;function ch(i){var s=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n=typeof i.PROJECTION=="object"?Object.keys(i.PROJECTION)[0]:i.PROJECTION;return"no_uoff"in i||"no_off"in i||s.indexOf(n)!==-1}function fh(){var i,s,n,r,o,l,f,c,d,m,v=0,p,y=0,b=0,A=0,P=0,E=0,z=0;this.no_off=ch(this),this.no_rot="no_rot"in this;var B=!1;"alpha"in this&&(B=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),B&&(z=this.alpha),k&&(v=this.rectified_grid_angle*mt),B||k)y=this.longc;else if(b=this.long1,P=this.lat1,A=this.long2,E=this.lat2,Math.abs(P-E)<=Mi||(i=Math.abs(P))<=Mi||Math.abs(i-C)<=Mi||Math.abs(Math.abs(this.lat0)-C)<=Mi||Math.abs(Math.abs(E)-C)<=Mi)throw new Error;var j=1-this.es;s=Math.sqrt(j),Math.abs(this.lat0)>S?(c=Math.sin(this.lat0),n=Math.cos(this.lat0),i=1-this.es*c*c,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/j),this.A=this.B*this.k0*s/i,r=this.B*s/(n*Math.sqrt(i)),o=r*r-1,o<=0?o=0:(o=Math.sqrt(o),this.lat0<0&&(o=-o)),this.E=o+=r,this.E*=Math.pow(kt(this.e,this.lat0,c),this.B)):(this.B=1/s,this.A=this.k0,this.E=r=o=1),B||k?(B?(p=Math.asin(Math.sin(z)/r),k||(v=z)):(p=v,z=Math.asin(r*Math.sin(p))),this.lam0=y-Math.asin(.5*(o-1/o)*Math.tan(p))/this.B):(l=Math.pow(kt(this.e,P,Math.sin(P)),this.B),f=Math.pow(kt(this.e,E,Math.sin(E)),this.B),o=this.E/l,d=(f-l)/(f+l),m=this.E*this.E,m=(m-f*l)/(m+f*l),i=b-A,i<-Math.pi?A-=Bi:i>Math.pi&&(A+=Bi),this.lam0=O(.5*(b+A)-Math.atan(m*Math.tan(.5*this.B*(b-A))/d)/this.B),p=Math.atan(2*Math.sin(this.B*O(b-this.lam0))/(o-1/o)),v=z=Math.asin(r*Math.sin(p))),this.singam=Math.sin(p),this.cosgam=Math.cos(p),this.sinrot=Math.sin(v),this.cosrot=Math.cos(v),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(z))),this.lat0<0&&(this.u_0=-this.u_0)),o=.5*p,this.v_pole_n=this.ArB*Math.log(Math.tan(X-o)),this.v_pole_s=this.ArB*Math.log(Math.tan(X+o))}function dh(i){var s={},n,r,o,l,f,c,d,m;if(i.x=i.x-this.lam0,Math.abs(Math.abs(i.y)-C)>S){if(f=this.E/Math.pow(kt(this.e,i.y,Math.sin(i.y)),this.B),c=1/f,n=.5*(f-c),r=.5*(f+c),l=Math.sin(this.B*i.x),o=(n*this.singam-l*this.cosgam)/r,Math.abs(Math.abs(o)-1)<S)throw new Error;m=.5*this.ArB*Math.log((1-o)/(1+o)),c=Math.cos(this.B*i.x),Math.abs(c)<Mi?d=this.A*i.x:d=this.ArB*Math.atan2(n*this.cosgam+l*this.singam,c)}else m=i.y>0?this.v_pole_n:this.v_pole_s,d=this.ArB*i.y;return this.no_rot?(s.x=d,s.y=m):(d-=this.u_0,s.x=m*this.cosrot+d*this.sinrot,s.y=d*this.cosrot-m*this.sinrot),s.x=this.a*s.x+this.x0,s.y=this.a*s.y+this.y0,s}function _h(i){var s,n,r,o,l,f,c,d={};if(i.x=(i.x-this.x0)*(1/this.a),i.y=(i.y-this.y0)*(1/this.a),this.no_rot?(n=i.y,s=i.x):(n=i.x*this.cosrot-i.y*this.sinrot,s=i.y*this.cosrot+i.x*this.sinrot+this.u_0),r=Math.exp(-this.BrA*n),o=.5*(r-1/r),l=.5*(r+1/r),f=Math.sin(this.BrA*s),c=(f*this.cosgam+o*this.singam)/l,Math.abs(Math.abs(c)-1)<S)d.x=0,d.y=c<0?-C:C;else{if(d.y=this.E/Math.sqrt((1+c)/(1-c)),d.y=Zi(this.e,Math.pow(d.y,1/this.B)),d.y===1/0)throw new Error;d.x=-this.rB*Math.atan2(o*this.cosgam-f*this.singam,Math.cos(this.BrA*s))}return d.x+=this.lam0,d}var mh=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"];const ph={init:fh,forward:dh,inverse:_h,names:mh};function gh(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<S)){var i=this.b/this.a;this.e=Math.sqrt(1-i*i);var s=Math.sin(this.lat1),n=Math.cos(this.lat1),r=Ft(this.e,s,n),o=kt(this.e,this.lat1,s),l=Math.sin(this.lat2),f=Math.cos(this.lat2),c=Ft(this.e,l,f),d=kt(this.e,this.lat2,l),m=kt(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>S?this.ns=Math.log(r/c)/Math.log(o/d):this.ns=s,isNaN(this.ns)&&(this.ns=s),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(m,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function vh(i){var s=i.x,n=i.y;Math.abs(2*Math.abs(n)-Math.PI)<=S&&(n=Di(n)*(C-2*S));var r=Math.abs(Math.abs(n)-C),o,l;if(r>S)o=kt(this.e,n,Math.sin(n)),l=this.a*this.f0*Math.pow(o,this.ns);else{if(r=n*this.ns,r<=0)return null;l=0}var f=this.ns*O(s-this.long0);return i.x=this.k0*(l*Math.sin(f))+this.x0,i.y=this.k0*(this.rh-l*Math.cos(f))+this.y0,i}function yh(i){var s,n,r,o,l,f=(i.x-this.x0)/this.k0,c=this.rh-(i.y-this.y0)/this.k0;this.ns>0?(s=Math.sqrt(f*f+c*c),n=1):(s=-Math.sqrt(f*f+c*c),n=-1);var d=0;if(s!==0&&(d=Math.atan2(n*f,n*c)),s!==0||this.ns>0){if(n=1/this.ns,r=Math.pow(s/(this.a*this.f0),n),o=Zi(this.e,r),o===-9999)return null}else o=-C;return l=O(d/this.ns+this.long0),i.x=l,i.y=o,i}var Mh=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const xh={init:gh,forward:vh,inverse:yh,names:Mh};function wh(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function bh(i){var s,n,r,o,l,f,c,d=i.x,m=i.y,v=O(d-this.long0);return s=Math.pow((1+this.e*Math.sin(m))/(1-this.e*Math.sin(m)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(m/2+this.s45),this.alfa)/s)-this.s45),r=-v*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),l=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),f=this.n*l,c=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),i.y=c*Math.cos(f)/1,i.x=c*Math.sin(f)/1,this.czech||(i.y*=-1,i.x*=-1),i}function Lh(i){var s,n,r,o,l,f,c,d,m=i.x;i.x=i.y,i.y=m,this.czech||(i.y*=-1,i.x*=-1),f=Math.sqrt(i.x*i.x+i.y*i.y),l=Math.atan2(i.y,i.x),o=l/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/f,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),s=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(o)),n=Math.asin(Math.cos(r)*Math.sin(o)/Math.cos(s)),i.x=this.long0-n/this.alfa,c=s,d=0;var v=0;do i.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(s/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.e/2))-this.s45),Math.abs(c-i.y)<1e-10&&(d=1),c=i.y,v+=1;while(d===0&&v<15);return v>=15?null:i}var Ph=["Krovak","krovak"];const Ah={init:wh,forward:bh,inverse:Lh,names:Ph};function Mt(i,s,n,r,o){return i*o-s*Math.sin(2*o)+n*Math.sin(4*o)-r*Math.sin(6*o)}function Gi(i){return 1-.25*i*(1+i/16*(3+1.25*i))}function Ui(i){return .375*i*(1+.25*i*(1+.46875*i))}function ji(i){return .05859375*i*i*(1+.75*i)}function Hi(i){return i*i*i*(35/3072)}function xi(i,s,n){var r=s*n;return i/Math.sqrt(1-r*r)}function ii(i){return Math.abs(i)<C?i:i-Di(i)*Math.PI}function Pe(i,s,n,r,o){var l,f;l=i/s;for(var c=0;c<15;c++)if(f=(i-(s*l-n*Math.sin(2*l)+r*Math.sin(4*l)-o*Math.sin(6*l)))/(s-2*n*Math.cos(2*l)+4*r*Math.cos(4*l)-6*o*Math.cos(6*l)),l+=f,Math.abs(f)<=1e-10)return l;return NaN}function Th(){this.sphere||(this.e0=Gi(this.es),this.e1=Ui(this.es),this.e2=ji(this.es),this.e3=Hi(this.es),this.ml0=this.a*Mt(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Ch(i){var s,n,r=i.x,o=i.y;if(r=O(r-this.long0),this.sphere)s=this.a*Math.asin(Math.cos(o)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(o),Math.cos(r))-this.lat0);else{var l=Math.sin(o),f=Math.cos(o),c=xi(this.a,this.e,l),d=Math.tan(o)*Math.tan(o),m=r*Math.cos(o),v=m*m,p=this.es*f*f/(1-this.es),y=this.a*Mt(this.e0,this.e1,this.e2,this.e3,o);s=c*m*(1-v*d*(1/6-(8-d+8*p)*v/120)),n=y-this.ml0+c*l/f*v*(.5+(5-d+6*p)*v/24)}return i.x=s+this.x0,i.y=n+this.y0,i}function Eh(i){i.x-=this.x0,i.y-=this.y0;var s=i.x/this.a,n=i.y/this.a,r,o;if(this.sphere){var l=n+this.lat0;r=Math.asin(Math.sin(l)*Math.cos(s)),o=Math.atan2(Math.tan(s),Math.cos(l))}else{var f=this.ml0/this.a+n,c=Pe(f,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(c)-C)<=S)return i.x=this.long0,i.y=C,n<0&&(i.y*=-1),i;var d=xi(this.a,this.e,Math.sin(c)),m=d*d*d/this.a/this.a*(1-this.es),v=Math.pow(Math.tan(c),2),p=s*this.a/d,y=p*p;r=c-d*Math.tan(c)/m*p*p*(.5-(1+3*v)*p*p/24),o=p*(1-y*(v/3+(1+3*v)*v*y/15))/Math.cos(c)}return i.x=O(o+this.long0),i.y=ii(r),i}var Sh=["Cassini","Cassini_Soldner","cass"];const Oh={init:Th,forward:Ch,inverse:Eh,names:Sh};function ei(i,s){var n;return i>1e-7?(n=i*s,(1-i*i)*(s/(1-n*n)-.5/i*Math.log((1-n)/(1+n)))):2*s}var Ih=1,zh=2,Nh=3,kh=4;function Bh(){var i=Math.abs(this.lat0);if(Math.abs(i-C)<S?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(i)<S?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var s;switch(this.qp=ei(this.e,1),this.mmf=.5/(1-this.es),this.apa=Hh(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),s=Math.sin(this.lat0),this.sinb1=ei(this.e,s)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*s*s)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Rh(i){var s,n,r,o,l,f,c,d,m,v,p=i.x,y=i.y;if(p=O(p-this.long0),this.sphere){if(l=Math.sin(y),v=Math.cos(y),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+v*r:1+this.sinph0*l+this.cosph0*v*r,n<=S)return null;n=Math.sqrt(2/n),s=n*v*Math.sin(p),n*=this.mode===this.EQUIT?l:this.cosph0*l-this.sinph0*v*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(y+this.lat0)<S)return null;n=X-y*.5,n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)),s=n*Math.sin(p),n*=r}}else{switch(c=0,d=0,m=0,r=Math.cos(p),o=Math.sin(p),l=Math.sin(y),f=ei(this.e,l),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(c=f/this.qp,d=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:m=1+this.sinb1*c+this.cosb1*d*r;break;case this.EQUIT:m=1+d*r;break;case this.N_POLE:m=C+y,f=this.qp-f;break;case this.S_POLE:m=y-C,f=this.qp+f;break}if(Math.abs(m)<S)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:m=Math.sqrt(2/m),this.mode===this.OBLIQ?n=this.ymf*m*(this.cosb1*c-this.sinb1*d*r):n=(m=Math.sqrt(2/(1+d*r)))*c*this.ymf,s=this.xmf*m*d*o;break;case this.N_POLE:case this.S_POLE:f>=0?(s=(m=Math.sqrt(f))*o,n=r*(this.mode===this.S_POLE?m:-m)):s=n=0;break}}return i.x=this.a*s+this.x0,i.y=this.a*n+this.y0,i}function Dh(i){i.x-=this.x0,i.y-=this.y0;var s=i.x/this.a,n=i.y/this.a,r,o,l,f,c,d,m;if(this.sphere){var v=0,p,y=0;if(p=Math.sqrt(s*s+n*n),o=p*.5,o>1)return null;switch(o=2*Math.asin(o),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(y=Math.sin(o),v=Math.cos(o)),this.mode){case this.EQUIT:o=Math.abs(p)<=S?0:Math.asin(n*y/p),s*=y,n=v*p;break;case this.OBLIQ:o=Math.abs(p)<=S?this.lat0:Math.asin(v*this.sinph0+n*y*this.cosph0/p),s*=y*this.cosph0,n=(v-Math.sin(o)*this.sinph0)*p;break;case this.N_POLE:n=-n,o=C-o;break;case this.S_POLE:o-=C;break}r=n===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(s,n)}else{if(m=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(s/=this.dd,n*=this.dd,d=Math.sqrt(s*s+n*n),d<S)return i.x=this.long0,i.y=this.lat0,i;f=2*Math.asin(.5*d/this.rq),l=Math.cos(f),s*=f=Math.sin(f),this.mode===this.OBLIQ?(m=l*this.sinb1+n*f*this.cosb1/d,c=this.qp*m,n=d*this.cosb1*l-n*this.sinb1*f):(m=n*f/d,c=this.qp*m,n=d*l)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),c=s*s+n*n,!c)return i.x=this.long0,i.y=this.lat0,i;m=1-c/this.qp,this.mode===this.S_POLE&&(m=-m)}r=Math.atan2(s,n),o=Wh(Math.asin(m),this.apa)}return i.x=O(this.long0+r),i.y=o,i}var Zh=.3333333333333333,Fh=.17222222222222222,qh=.10257936507936508,Gh=.06388888888888888,Uh=.0664021164021164,jh=.016415012942191543;function Hh(i){var s,n=[];return n[0]=i*Zh,s=i*i,n[0]+=s*Fh,n[1]=s*Gh,s*=i,n[0]+=s*qh,n[1]+=s*Uh,n[2]=s*jh,n}function Wh(i,s){var n=i+i;return i+s[0]*Math.sin(n)+s[1]*Math.sin(n+n)+s[2]*Math.sin(n+n+n)}var $h=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const Vh={init:Bh,forward:Rh,inverse:Dh,names:$h,S_POLE:Ih,N_POLE:zh,EQUIT:Nh,OBLIQ:kh};function si(i){return Math.abs(i)>1&&(i=i>1?1:-1),Math.asin(i)}function Qh(){Math.abs(this.lat1+this.lat2)<S||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Ft(this.e3,this.sin_po,this.cos_po),this.qs1=ei(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Ft(this.e3,this.sin_po,this.cos_po),this.qs2=ei(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=ei(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>S?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Xh(i){var s=i.x,n=i.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=ei(this.e3,this.sin_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,l=this.ns0*O(s-this.long0),f=o*Math.sin(l)+this.x0,c=this.rh-o*Math.cos(l)+this.y0;return i.x=f,i.y=c,i}function Kh(i){var s,n,r,o,l,f;return i.x-=this.x0,i.y=this.rh-i.y+this.y0,this.ns0>=0?(s=Math.sqrt(i.x*i.x+i.y*i.y),r=1):(s=-Math.sqrt(i.x*i.x+i.y*i.y),r=-1),o=0,s!==0&&(o=Math.atan2(r*i.x,r*i.y)),r=s*this.ns0/this.a,this.sphere?f=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,f=this.phi1z(this.e3,n)),l=O(o/this.ns0+this.long0),i.x=l,i.y=f,i}function Yh(i,s){var n,r,o,l,f,c=si(.5*s);if(i<S)return c;for(var d=i*i,m=1;m<=25;m++)if(n=Math.sin(c),r=Math.cos(c),o=i*n,l=1-o*o,f=.5*l*l/r*(s/(1-d)-n/l+.5/i*Math.log((1-o)/(1+o))),c=c+f,Math.abs(f)<=1e-7)return c;return null}var Jh=["Albers_Conic_Equal_Area","Albers","aea"];const tl={init:Qh,forward:Xh,inverse:Kh,names:Jh,phi1z:Yh};function il(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function el(i){var s,n,r,o,l,f,c,d,m=i.x,v=i.y;return r=O(m-this.long0),s=Math.sin(v),n=Math.cos(v),o=Math.cos(r),f=this.sin_p14*s+this.cos_p14*n*o,l=1,f>0||Math.abs(f)<=S?(c=this.x0+this.a*l*n*Math.sin(r)/f,d=this.y0+this.a*l*(this.cos_p14*s-this.sin_p14*n*o)/f):(c=this.x0+this.infinity_dist*n*Math.sin(r),d=this.y0+this.infinity_dist*(this.cos_p14*s-this.sin_p14*n*o)),i.x=c,i.y=d,i}function sl(i){var s,n,r,o,l,f;return i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,i.x/=this.k0,i.y/=this.k0,(s=Math.sqrt(i.x*i.x+i.y*i.y))?(o=Math.atan2(s,this.rc),n=Math.sin(o),r=Math.cos(o),f=si(r*this.sin_p14+i.y*n*this.cos_p14/s),l=Math.atan2(i.x*n,s*this.cos_p14*r-i.y*this.sin_p14*n),l=O(this.long0+l)):(f=this.phic0,l=0),i.x=l,i.y=f,i}var nl=["gnom"];const al={init:il,forward:el,inverse:sl,names:nl};function ol(i,s){var n=1-(1-i*i)/(2*i)*Math.log((1-i)/(1+i));if(Math.abs(Math.abs(s)-n)<1e-6)return s<0?-1*C:C;for(var r=Math.asin(.5*s),o,l,f,c,d=0;d<30;d++)if(l=Math.sin(r),f=Math.cos(r),c=i*l,o=Math.pow(1-c*c,2)/(2*f)*(s/(1-i*i)-l/(1-c*c)+.5/i*Math.log((1-c)/(1+c))),r+=o,Math.abs(o)<=1e-10)return r;return NaN}function rl(){this.sphere||(this.k0=Ft(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function hl(i){var s=i.x,n=i.y,r,o,l=O(s-this.long0);if(this.sphere)r=this.x0+this.a*l*Math.cos(this.lat_ts),o=this.y0+this.a*Math.sin(n)/Math.cos(this.lat_ts);else{var f=ei(this.e,Math.sin(n));r=this.x0+this.a*this.k0*l,o=this.y0+this.a*f*.5/this.k0}return i.x=r,i.y=o,i}function ll(i){i.x-=this.x0,i.y-=this.y0;var s,n;return this.sphere?(s=O(this.long0+i.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(i.y/this.a*Math.cos(this.lat_ts))):(n=ol(this.e,2*i.y*this.k0/this.a),s=O(this.long0+i.x/(this.a*this.k0))),i.x=s,i.y=n,i}var ul=["cea"];const cl={init:rl,forward:hl,inverse:ll,names:ul};function fl(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function dl(i){var s=i.x,n=i.y,r=O(s-this.long0),o=ii(n-this.lat0);return i.x=this.x0+this.a*r*this.rc,i.y=this.y0+this.a*o,i}function _l(i){var s=i.x,n=i.y;return i.x=O(this.long0+(s-this.x0)/(this.a*this.rc)),i.y=ii(this.lat0+(n-this.y0)/this.a),i}var ml=["Equirectangular","Equidistant_Cylindrical","eqc"];const pl={init:fl,forward:dl,inverse:_l,names:ml};var zn=20;function gl(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Gi(this.es),this.e1=Ui(this.es),this.e2=ji(this.es),this.e3=Hi(this.es),this.ml0=this.a*Mt(this.e0,this.e1,this.e2,this.e3,this.lat0)}function vl(i){var s=i.x,n=i.y,r,o,l,f=O(s-this.long0);if(l=f*Math.sin(n),this.sphere)Math.abs(n)<=S?(r=this.a*f,o=-1*this.a*this.lat0):(r=this.a*Math.sin(l)/Math.tan(n),o=this.a*(ii(n-this.lat0)+(1-Math.cos(l))/Math.tan(n)));else if(Math.abs(n)<=S)r=this.a*f,o=-1*this.ml0;else{var c=xi(this.a,this.e,Math.sin(n))/Math.tan(n);r=c*Math.sin(l),o=this.a*Mt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+c*(1-Math.cos(l))}return i.x=r+this.x0,i.y=o+this.y0,i}function yl(i){var s,n,r,o,l,f,c,d,m;if(r=i.x-this.x0,o=i.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=S)s=O(r/this.a+this.long0),n=0;else{f=this.lat0+o/this.a,c=r*r/this.a/this.a+f*f,d=f;var v;for(l=zn;l;--l)if(v=Math.tan(d),m=-1*(f*(d*v+1)-d-.5*(d*d+c)*v)/((d-f)/v-1),d+=m,Math.abs(m)<=S){n=d;break}s=O(this.long0+Math.asin(r*Math.tan(d)/this.a)/Math.sin(n))}else if(Math.abs(o+this.ml0)<=S)n=0,s=O(this.long0+r/this.a);else{f=(this.ml0+o)/this.a,c=r*r/this.a/this.a+f*f,d=f;var p,y,b,A,P;for(l=zn;l;--l)if(P=this.e*Math.sin(d),p=Math.sqrt(1-P*P)*Math.tan(d),y=this.a*Mt(this.e0,this.e1,this.e2,this.e3,d),b=this.e0-2*this.e1*Math.cos(2*d)+4*this.e2*Math.cos(4*d)-6*this.e3*Math.cos(6*d),A=y/this.a,m=(f*(p*A+1)-A-.5*p*(A*A+c))/(this.es*Math.sin(2*d)*(A*A+c-2*f*A)/(4*p)+(f-A)*(p*b-2/Math.sin(2*d))-b),d-=m,Math.abs(m)<=S){n=d;break}p=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),s=O(this.long0+Math.asin(r*p/this.a)/Math.sin(n))}return i.x=s,i.y=n,i}var Ml=["Polyconic","poly"];const xl={init:gl,forward:vl,inverse:yl,names:Ml};function wl(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function bl(i){var s,n=i.x,r=i.y,o=r-this.lat0,l=n-this.long0,f=o/ki*1e-5,c=l,d=1,m=0;for(s=1;s<=10;s++)d=d*f,m=m+this.A[s]*d;var v=m,p=c,y=1,b=0,A,P,E=0,z=0;for(s=1;s<=6;s++)A=y*v-b*p,P=b*v+y*p,y=A,b=P,E=E+this.B_re[s]*y-this.B_im[s]*b,z=z+this.B_im[s]*y+this.B_re[s]*b;return i.x=z*this.a+this.x0,i.y=E*this.a+this.y0,i}function Ll(i){var s,n=i.x,r=i.y,o=n-this.x0,l=r-this.y0,f=l/this.a,c=o/this.a,d=1,m=0,v,p,y=0,b=0;for(s=1;s<=6;s++)v=d*f-m*c,p=m*f+d*c,d=v,m=p,y=y+this.C_re[s]*d-this.C_im[s]*m,b=b+this.C_im[s]*d+this.C_re[s]*m;for(var A=0;A<this.iterations;A++){var P=y,E=b,z,B,k=f,j=c;for(s=2;s<=6;s++)z=P*y-E*b,B=E*y+P*b,P=z,E=B,k=k+(s-1)*(this.B_re[s]*P-this.B_im[s]*E),j=j+(s-1)*(this.B_im[s]*P+this.B_re[s]*E);P=1,E=0;var H=this.B_re[1],W=this.B_im[1];for(s=2;s<=6;s++)z=P*y-E*b,B=E*y+P*b,P=z,E=B,H=H+s*(this.B_re[s]*P-this.B_im[s]*E),W=W+s*(this.B_im[s]*P+this.B_re[s]*E);var ct=H*H+W*W;y=(k*H+j*W)/ct,b=(j*H-k*W)/ct}var tt=y,Pt=b,Gt=1,nt=0;for(s=1;s<=9;s++)Gt=Gt*tt,nt=nt+this.D[s]*Gt;var pt=this.lat0+nt*ki*1e5,cs=this.long0+Pt;return i.x=cs,i.y=pt,i}var Pl=["New_Zealand_Map_Grid","nzmg"];const Al={init:wl,forward:bl,inverse:Ll,names:Pl};function Tl(){}function Cl(i){var s=i.x,n=i.y,r=O(s-this.long0),o=this.x0+this.a*r,l=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return i.x=o,i.y=l,i}function El(i){i.x-=this.x0,i.y-=this.y0;var s=O(this.long0+i.x/this.a),n=2.5*(Math.atan(Math.exp(.8*i.y/this.a))-Math.PI/4);return i.x=s,i.y=n,i}var Sl=["Miller_Cylindrical","mill"];const Ol={init:Tl,forward:Cl,inverse:El,names:Sl};var Il=20;function zl(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=es(this.es)}function Nl(i){var s,n,r=i.x,o=i.y;if(r=O(r-this.long0),this.sphere){if(!this.m)o=this.n!==1?Math.asin(this.n*Math.sin(o)):o;else for(var l=this.n*Math.sin(o),f=Il;f;--f){var c=(this.m*o+Math.sin(o)-l)/(this.m+Math.cos(o));if(o-=c,Math.abs(c)<S)break}s=this.a*this.C_x*r*(this.m+Math.cos(o)),n=this.a*this.C_y*o}else{var d=Math.sin(o),m=Math.cos(o);n=this.a*yi(o,d,m,this.en),s=this.a*r*m/Math.sqrt(1-this.es*d*d)}return i.x=s,i.y=n,i}function kl(i){var s,n,r,o;return i.x-=this.x0,r=i.x/this.a,i.y-=this.y0,s=i.y/this.a,this.sphere?(s/=this.C_y,r=r/(this.C_x*(this.m+Math.cos(s))),this.m?s=si((this.m*s+Math.sin(s))/this.n):this.n!==1&&(s=si(Math.sin(s)/this.n)),r=O(r+this.long0),s=ii(s)):(s=ss(i.y/this.a,this.es,this.en),o=Math.abs(s),o<C?(o=Math.sin(s),n=this.long0+i.x*Math.sqrt(1-this.es*o*o)/(this.a*Math.cos(s)),r=O(n)):o-S<C&&(r=this.long0)),i.x=r,i.y=s,i}var Bl=["Sinusoidal","sinu"];const Rl={init:zl,forward:Nl,inverse:kl,names:Bl};function Dl(){}function Zl(i){for(var s=i.x,n=i.y,r=O(s-this.long0),o=n,l=Math.PI*Math.sin(n);;){var f=-(o+Math.sin(o)-l)/(1+Math.cos(o));if(o+=f,Math.abs(f)<S)break}o/=2,Math.PI/2-Math.abs(n)<S&&(r=0);var c=.900316316158*this.a*r*Math.cos(o)+this.x0,d=1.4142135623731*this.a*Math.sin(o)+this.y0;return i.x=c,i.y=d,i}function Fl(i){var s,n;i.x-=this.x0,i.y-=this.y0,n=i.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),s=Math.asin(n);var r=O(this.long0+i.x/(.900316316158*this.a*Math.cos(s)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*s+Math.sin(2*s))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return i.x=r,i.y=o,i}var ql=["Mollweide","moll"];const Gl={init:Dl,forward:Zl,inverse:Fl,names:ql};function Ul(){Math.abs(this.lat1+this.lat2)<S||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Gi(this.es),this.e1=Ui(this.es),this.e2=ji(this.es),this.e3=Hi(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Ft(this.e,this.sinphi,this.cosphi),this.ml1=Mt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<S?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Ft(this.e,this.sinphi,this.cosphi),this.ml2=Mt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Mt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function jl(i){var s=i.x,n=i.y,r;if(this.sphere)r=this.a*(this.g-n);else{var o=Mt(this.e0,this.e1,this.e2,this.e3,n);r=this.a*(this.g-o)}var l=this.ns*O(s-this.long0),f=this.x0+r*Math.sin(l),c=this.y0+this.rh-r*Math.cos(l);return i.x=f,i.y=c,i}function Hl(i){i.x-=this.x0,i.y=this.rh-i.y+this.y0;var s,n,r,o;this.ns>=0?(n=Math.sqrt(i.x*i.x+i.y*i.y),s=1):(n=-Math.sqrt(i.x*i.x+i.y*i.y),s=-1);var l=0;if(n!==0&&(l=Math.atan2(s*i.x,s*i.y)),this.sphere)return o=O(this.long0+l/this.ns),r=ii(this.g-n/this.a),i.x=o,i.y=r,i;var f=this.g-n/this.a;return r=Pe(f,this.e0,this.e1,this.e2,this.e3),o=O(this.long0+l/this.ns),i.x=o,i.y=r,i}var Wl=["Equidistant_Conic","eqdc"];const $l={init:Ul,forward:jl,inverse:Hl,names:Wl};function Vl(){this.R=this.a}function Ql(i){var s=i.x,n=i.y,r=O(s-this.long0),o,l;Math.abs(n)<=S&&(o=this.x0+this.R*r,l=this.y0);var f=si(2*Math.abs(n/Math.PI));(Math.abs(r)<=S||Math.abs(Math.abs(n)-C)<=S)&&(o=this.x0,n>=0?l=this.y0+Math.PI*this.R*Math.tan(.5*f):l=this.y0+Math.PI*this.R*-Math.tan(.5*f));var c=.5*Math.abs(Math.PI/r-r/Math.PI),d=c*c,m=Math.sin(f),v=Math.cos(f),p=v/(m+v-1),y=p*p,b=p*(2/m-1),A=b*b,P=Math.PI*this.R*(c*(p-A)+Math.sqrt(d*(p-A)*(p-A)-(A+d)*(y-A)))/(A+d);r<0&&(P=-P),o=this.x0+P;var E=d+p;return P=Math.PI*this.R*(b*E-c*Math.sqrt((A+d)*(d+1)-E*E))/(A+d),n>=0?l=this.y0+P:l=this.y0-P,i.x=o,i.y=l,i}function Xl(i){var s,n,r,o,l,f,c,d,m,v,p,y,b;return i.x-=this.x0,i.y-=this.y0,p=Math.PI*this.R,r=i.x/p,o=i.y/p,l=r*r+o*o,f=-Math.abs(o)*(1+l),c=f-2*o*o+r*r,d=-2*f+1+2*o*o+l*l,b=o*o/d+(2*c*c*c/d/d/d-9*f*c/d/d)/27,m=(f-c*c/3/d)/d,v=2*Math.sqrt(-m/3),p=3*b/m/v,Math.abs(p)>1&&(p>=0?p=1:p=-1),y=Math.acos(p)/3,i.y>=0?n=(-v*Math.cos(y+Math.PI/3)-c/3/d)*Math.PI:n=-(-v*Math.cos(y+Math.PI/3)-c/3/d)*Math.PI,Math.abs(r)<S?s=this.long0:s=O(this.long0+Math.PI*(l-1+Math.sqrt(1+2*(r*r-o*o)+l*l))/2/r),i.x=s,i.y=n,i}var Kl=["Van_der_Grinten_I","VanDerGrinten","vandg"];const Yl={init:Vl,forward:Ql,inverse:Xl,names:Kl};function Jl(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function tu(i){var s=i.x,n=i.y,r=Math.sin(i.y),o=Math.cos(i.y),l=O(s-this.long0),f,c,d,m,v,p,y,b,A,P,E,z,B,k,j,H,W,ct,tt,Pt,Gt,nt,pt;return this.sphere?Math.abs(this.sin_p12-1)<=S?(i.x=this.x0+this.a*(C-n)*Math.sin(l),i.y=this.y0-this.a*(C-n)*Math.cos(l),i):Math.abs(this.sin_p12+1)<=S?(i.x=this.x0+this.a*(C+n)*Math.sin(l),i.y=this.y0+this.a*(C+n)*Math.cos(l),i):(ct=this.sin_p12*r+this.cos_p12*o*Math.cos(l),H=Math.acos(ct),W=H?H/Math.sin(H):1,i.x=this.x0+this.a*W*o*Math.sin(l),i.y=this.y0+this.a*W*(this.cos_p12*r-this.sin_p12*o*Math.cos(l)),i):(f=Gi(this.es),c=Ui(this.es),d=ji(this.es),m=Hi(this.es),Math.abs(this.sin_p12-1)<=S?(v=this.a*Mt(f,c,d,m,C),p=this.a*Mt(f,c,d,m,n),i.x=this.x0+(v-p)*Math.sin(l),i.y=this.y0-(v-p)*Math.cos(l),i):Math.abs(this.sin_p12+1)<=S?(v=this.a*Mt(f,c,d,m,C),p=this.a*Mt(f,c,d,m,n),i.x=this.x0+(v+p)*Math.sin(l),i.y=this.y0+(v+p)*Math.cos(l),i):(y=r/o,b=xi(this.a,this.e,this.sin_p12),A=xi(this.a,this.e,r),P=Math.atan((1-this.es)*y+this.es*b*this.sin_p12/(A*o)),E=Math.atan2(Math.sin(l),this.cos_p12*Math.tan(P)-this.sin_p12*Math.cos(l)),E===0?tt=Math.asin(this.cos_p12*Math.sin(P)-this.sin_p12*Math.cos(P)):Math.abs(Math.abs(E)-Math.PI)<=S?tt=-Math.asin(this.cos_p12*Math.sin(P)-this.sin_p12*Math.cos(P)):tt=Math.asin(Math.sin(l)*Math.cos(P)/Math.sin(E)),z=this.e*this.sin_p12/Math.sqrt(1-this.es),B=this.e*this.cos_p12*Math.cos(E)/Math.sqrt(1-this.es),k=z*B,j=B*B,Pt=tt*tt,Gt=Pt*tt,nt=Gt*tt,pt=nt*tt,H=b*tt*(1-Pt*j*(1-j)/6+Gt/8*k*(1-2*j)+nt/120*(j*(4-7*j)-3*z*z*(1-7*j))-pt/48*k),i.x=this.x0+H*Math.sin(E),i.y=this.y0+H*Math.cos(E),i))}function iu(i){i.x-=this.x0,i.y-=this.y0;var s,n,r,o,l,f,c,d,m,v,p,y,b,A,P,E,z,B,k,j,H,W,ct,tt;return this.sphere?(s=Math.sqrt(i.x*i.x+i.y*i.y),s>2*C*this.a?void 0:(n=s/this.a,r=Math.sin(n),o=Math.cos(n),l=this.long0,Math.abs(s)<=S?f=this.lat0:(f=si(o*this.sin_p12+i.y*r*this.cos_p12/s),c=Math.abs(this.lat0)-C,Math.abs(c)<=S?this.lat0>=0?l=O(this.long0+Math.atan2(i.x,-i.y)):l=O(this.long0-Math.atan2(-i.x,i.y)):l=O(this.long0+Math.atan2(i.x*r,s*this.cos_p12*o-i.y*this.sin_p12*r))),i.x=l,i.y=f,i)):(d=Gi(this.es),m=Ui(this.es),v=ji(this.es),p=Hi(this.es),Math.abs(this.sin_p12-1)<=S?(y=this.a*Mt(d,m,v,p,C),s=Math.sqrt(i.x*i.x+i.y*i.y),b=y-s,f=Pe(b/this.a,d,m,v,p),l=O(this.long0+Math.atan2(i.x,-1*i.y)),i.x=l,i.y=f,i):Math.abs(this.sin_p12+1)<=S?(y=this.a*Mt(d,m,v,p,C),s=Math.sqrt(i.x*i.x+i.y*i.y),b=s-y,f=Pe(b/this.a,d,m,v,p),l=O(this.long0+Math.atan2(i.x,i.y)),i.x=l,i.y=f,i):(s=Math.sqrt(i.x*i.x+i.y*i.y),E=Math.atan2(i.x,i.y),A=xi(this.a,this.e,this.sin_p12),z=Math.cos(E),B=this.e*this.cos_p12*z,k=-B*B/(1-this.es),j=3*this.es*(1-k)*this.sin_p12*this.cos_p12*z/(1-this.es),H=s/A,W=H-k*(1+k)*Math.pow(H,3)/6-j*(1+3*k)*Math.pow(H,4)/24,ct=1-k*W*W/2-H*W*W*W/6,P=Math.asin(this.sin_p12*Math.cos(W)+this.cos_p12*Math.sin(W)*z),l=O(this.long0+Math.asin(Math.sin(E)*Math.sin(W)/Math.cos(P))),tt=Math.sin(P),f=Math.atan2((tt-this.es*ct*this.sin_p12)*Math.tan(P),tt*(1-this.es)),i.x=l,i.y=f,i))}var eu=["Azimuthal_Equidistant","aeqd"];const su={init:Jl,forward:tu,inverse:iu,names:eu};function nu(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function au(i){var s,n,r,o,l,f,c,d,m=i.x,v=i.y;return r=O(m-this.long0),s=Math.sin(v),n=Math.cos(v),o=Math.cos(r),f=this.sin_p14*s+this.cos_p14*n*o,l=1,(f>0||Math.abs(f)<=S)&&(c=this.a*l*n*Math.sin(r),d=this.y0+this.a*l*(this.cos_p14*s-this.sin_p14*n*o)),i.x=c,i.y=d,i}function ou(i){var s,n,r,o,l,f,c;return i.x-=this.x0,i.y-=this.y0,s=Math.sqrt(i.x*i.x+i.y*i.y),n=si(s/this.a),r=Math.sin(n),o=Math.cos(n),f=this.long0,Math.abs(s)<=S?(c=this.lat0,i.x=f,i.y=c,i):(c=si(o*this.sin_p14+i.y*r*this.cos_p14/s),l=Math.abs(this.lat0)-C,Math.abs(l)<=S?(this.lat0>=0?f=O(this.long0+Math.atan2(i.x,-i.y)):f=O(this.long0-Math.atan2(-i.x,i.y)),i.x=f,i.y=c,i):(f=O(this.long0+Math.atan2(i.x*r,s*this.cos_p14*o-i.y*this.sin_p14*r)),i.x=f,i.y=c,i))}var ru=["ortho"];const hu={init:nu,forward:au,inverse:ou,names:ru};var it={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},K={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function lu(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=C-X/2?this.face=it.TOP:this.lat0<=-(C-X/2)?this.face=it.BOTTOM:Math.abs(this.long0)<=X?this.face=it.FRONT:Math.abs(this.long0)<=C+X?this.face=this.long0>0?it.RIGHT:it.LEFT:this.face=it.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function uu(i){var s={x:0,y:0},n,r,o,l,f,c,d={value:0};if(i.x-=this.long0,this.es!==0?n=Math.atan(this.one_minus_f_squared*Math.tan(i.y)):n=i.y,r=i.x,this.face===it.TOP)l=C-n,r>=X&&r<=C+X?(d.value=K.AREA_0,o=r-C):r>C+X||r<=-(C+X)?(d.value=K.AREA_1,o=r>0?r-at:r+at):r>-(C+X)&&r<=-X?(d.value=K.AREA_2,o=r+C):(d.value=K.AREA_3,o=r);else if(this.face===it.BOTTOM)l=C+n,r>=X&&r<=C+X?(d.value=K.AREA_0,o=-r+C):r<X&&r>=-X?(d.value=K.AREA_1,o=-r):r<-X&&r>=-(C+X)?(d.value=K.AREA_2,o=-r-C):(d.value=K.AREA_3,o=r>0?-r+at:-r-at);else{var m,v,p,y,b,A,P;this.face===it.RIGHT?r=wi(r,+C):this.face===it.BACK?r=wi(r,+at):this.face===it.LEFT&&(r=wi(r,-C)),y=Math.sin(n),b=Math.cos(n),A=Math.sin(r),P=Math.cos(r),m=b*P,v=b*A,p=y,this.face===it.FRONT?(l=Math.acos(m),o=Ae(l,p,v,d)):this.face===it.RIGHT?(l=Math.acos(v),o=Ae(l,p,-m,d)):this.face===it.BACK?(l=Math.acos(-m),o=Ae(l,p,-v,d)):this.face===it.LEFT?(l=Math.acos(-v),o=Ae(l,p,m,d)):(l=o=0,d.value=K.AREA_0)}return c=Math.atan(12/at*(o+Math.acos(Math.sin(o)*Math.cos(X))-C)),f=Math.sqrt((1-Math.cos(l))/(Math.cos(c)*Math.cos(c))/(1-Math.cos(Math.atan(1/Math.cos(o))))),d.value===K.AREA_1?c+=C:d.value===K.AREA_2?c+=at:d.value===K.AREA_3&&(c+=1.5*at),s.x=f*Math.cos(c),s.y=f*Math.sin(c),s.x=s.x*this.a+this.x0,s.y=s.y*this.a+this.y0,i.x=s.x,i.y=s.y,i}function cu(i){var s={lam:0,phi:0},n,r,o,l,f,c,d,m,v,p={value:0};if(i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,r=Math.atan(Math.sqrt(i.x*i.x+i.y*i.y)),n=Math.atan2(i.y,i.x),i.x>=0&&i.x>=Math.abs(i.y)?p.value=K.AREA_0:i.y>=0&&i.y>=Math.abs(i.x)?(p.value=K.AREA_1,n-=C):i.x<0&&-i.x>=Math.abs(i.y)?(p.value=K.AREA_2,n=n<0?n+at:n-at):(p.value=K.AREA_3,n+=C),v=at/12*Math.tan(n),f=Math.sin(v)/(Math.cos(v)-1/Math.sqrt(2)),c=Math.atan(f),o=Math.cos(n),l=Math.tan(r),d=1-o*o*l*l*(1-Math.cos(Math.atan(1/Math.cos(c)))),d<-1?d=-1:d>1&&(d=1),this.face===it.TOP)m=Math.acos(d),s.phi=C-m,p.value===K.AREA_0?s.lam=c+C:p.value===K.AREA_1?s.lam=c<0?c+at:c-at:p.value===K.AREA_2?s.lam=c-C:s.lam=c;else if(this.face===it.BOTTOM)m=Math.acos(d),s.phi=m-C,p.value===K.AREA_0?s.lam=-c+C:p.value===K.AREA_1?s.lam=-c:p.value===K.AREA_2?s.lam=-c-C:s.lam=c<0?-c-at:-c+at;else{var y,b,A;y=d,v=y*y,v>=1?A=0:A=Math.sqrt(1-v)*Math.sin(c),v+=A*A,v>=1?b=0:b=Math.sqrt(1-v),p.value===K.AREA_1?(v=b,b=-A,A=v):p.value===K.AREA_2?(b=-b,A=-A):p.value===K.AREA_3&&(v=b,b=A,A=-v),this.face===it.RIGHT?(v=y,y=-b,b=v):this.face===it.BACK?(y=-y,b=-b):this.face===it.LEFT&&(v=y,y=b,b=-v),s.phi=Math.acos(-A)-C,s.lam=Math.atan2(b,y),this.face===it.RIGHT?s.lam=wi(s.lam,-C):this.face===it.BACK?s.lam=wi(s.lam,-at):this.face===it.LEFT&&(s.lam=wi(s.lam,+C))}if(this.es!==0){var P,E,z;P=s.phi<0?1:0,E=Math.tan(s.phi),z=this.b/Math.sqrt(E*E+this.one_minus_f_squared),s.phi=Math.atan(Math.sqrt(this.a*this.a-z*z)/(this.one_minus_f*z)),P&&(s.phi=-s.phi)}return s.lam+=this.long0,i.x=s.lam,i.y=s.phi,i}function Ae(i,s,n,r){var o;return i<S?(r.value=K.AREA_0,o=0):(o=Math.atan2(s,n),Math.abs(o)<=X?r.value=K.AREA_0:o>X&&o<=C+X?(r.value=K.AREA_1,o-=C):o>C+X||o<=-(C+X)?(r.value=K.AREA_2,o=o>=0?o-at:o+at):(r.value=K.AREA_3,o+=C)),o}function wi(i,s){var n=i+s;return n<-at?n+=Bi:n>+at&&(n-=Bi),n}var fu=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const du={init:lu,forward:uu,inverse:cu,names:fu};var rs=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Wi=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Nn=.8487,kn=1.3523,Bn=Dt/5,_u=1/Bn,bi=18,Te=function(i,s){return i[0]+s*(i[1]+s*(i[2]+s*i[3]))},mu=function(i,s){return i[1]+s*(2*i[2]+s*3*i[3])};function pu(i,s,n,r){for(var o=s;r;--r){var l=i(o);if(o-=l,Math.abs(l)<n)break}return o}function gu(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function vu(i){var s=O(i.x-this.long0),n=Math.abs(i.y),r=Math.floor(n*Bn);r<0?r=0:r>=bi&&(r=bi-1),n=Dt*(n-_u*r);var o={x:Te(rs[r],n)*s,y:Te(Wi[r],n)};return i.y<0&&(o.y=-o.y),o.x=o.x*this.a*Nn+this.x0,o.y=o.y*this.a*kn+this.y0,o}function yu(i){var s={x:(i.x-this.x0)/(this.a*Nn),y:Math.abs(i.y-this.y0)/(this.a*kn)};if(s.y>=1)s.x/=rs[bi][0],s.y=i.y<0?-C:C;else{var n=Math.floor(s.y*bi);for(n<0?n=0:n>=bi&&(n=bi-1);;)if(Wi[n][0]>s.y)--n;else if(Wi[n+1][0]<=s.y)++n;else break;var r=Wi[n],o=5*(s.y-r[0])/(Wi[n+1][0]-r[0]);o=pu(function(l){return(Te(r,l)-s.y)/mu(r,l)},o,S,100),s.x/=Te(rs[n],o),s.y=(5*n+o)*mt,i.y<0&&(s.y=-s.y)}return s.x=O(s.x+this.long0),s}var Mu=["Robinson","robin"];const xu={init:gu,forward:vu,inverse:yu,names:Mu};function wu(){this.name="geocent"}function bu(i){var s=cn(i,this.es,this.a);return s}function Lu(i){var s=fn(i,this.es,this.a,this.b);return s}var Pu=["Geocentric","geocentric","geocent","Geocent"];const Au={init:wu,forward:bu,inverse:Lu,names:Pu};var vt={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},$i={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Tu(){if(Object.keys($i).forEach((function(n){if(typeof this[n]>"u")this[n]=$i[n].def;else{if($i[n].num&&isNaN(this[n]))throw new Error("Invalid parameter value, must be numeric "+n+" = "+this[n]);$i[n].num&&(this[n]=parseFloat(this[n]))}$i[n].degrees&&(this[n]=this[n]*mt)}).bind(this)),Math.abs(Math.abs(this.lat0)-C)<S?this.mode=this.lat0<0?vt.S_POLE:vt.N_POLE:Math.abs(this.lat0)<S?this.mode=vt.EQUIT:(this.mode=vt.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var i=this.tilt,s=this.azi;this.cg=Math.cos(s),this.sg=Math.sin(s),this.cw=Math.cos(i),this.sw=Math.sin(i)}function Cu(i){i.x-=this.long0;var s=Math.sin(i.y),n=Math.cos(i.y),r=Math.cos(i.x),o,l;switch(this.mode){case vt.OBLIQ:l=this.sinph0*s+this.cosph0*n*r;break;case vt.EQUIT:l=n*r;break;case vt.S_POLE:l=-s;break;case vt.N_POLE:l=s;break}switch(l=this.pn1/(this.p-l),o=l*n*Math.sin(i.x),this.mode){case vt.OBLIQ:l*=this.cosph0*s-this.sinph0*n*r;break;case vt.EQUIT:l*=s;break;case vt.N_POLE:l*=-(n*r);break;case vt.S_POLE:l*=n*r;break}var f,c;return f=l*this.cg+o*this.sg,c=1/(f*this.sw*this.h1+this.cw),o=(o*this.cg-l*this.sg)*this.cw*c,l=f*c,i.x=o*this.a,i.y=l*this.a,i}function Eu(i){i.x/=this.a,i.y/=this.a;var s={x:i.x,y:i.y},n,r,o;o=1/(this.pn1-i.y*this.sw),n=this.pn1*i.x*o,r=this.pn1*i.y*this.cw*o,i.x=n*this.cg+r*this.sg,i.y=r*this.cg-n*this.sg;var l=Lt(i.x,i.y);if(Math.abs(l)<S)s.x=0,s.y=i.y;else{var f,c;switch(c=1-l*l*this.pfact,c=(this.p-Math.sqrt(c))/(this.pn1/l+l/this.pn1),f=Math.sqrt(1-c*c),this.mode){case vt.OBLIQ:s.y=Math.asin(f*this.sinph0+i.y*c*this.cosph0/l),i.y=(f-this.sinph0*Math.sin(s.y))*l,i.x*=c*this.cosph0;break;case vt.EQUIT:s.y=Math.asin(i.y*c/l),i.y=f*l,i.x*=c;break;case vt.N_POLE:s.y=Math.asin(f),i.y=-i.y;break;case vt.S_POLE:s.y=-Math.asin(f);break}s.x=Math.atan2(i.x,i.y)}return i.x=s.x+this.long0,i.y=s.y,i}var Su=["Tilted_Perspective","tpers"];const Ou={init:Tu,forward:Cu,inverse:Eu,names:Su};function Iu(){if(this.flip_axis=this.sweep==="x"?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var i=1-this.es,s=1/i;this.radius_p=Math.sqrt(i),this.radius_p2=i,this.radius_p_inv2=s,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function zu(i){var s=i.x,n=i.y,r,o,l,f;if(s=s-this.long0,this.shape==="ellipse"){n=Math.atan(this.radius_p2*Math.tan(n));var c=this.radius_p/Lt(this.radius_p*Math.cos(n),Math.sin(n));if(o=c*Math.cos(s)*Math.cos(n),l=c*Math.sin(s)*Math.cos(n),f=c*Math.sin(n),(this.radius_g-o)*o-l*l-f*f*this.radius_p_inv2<0)return i.x=Number.NaN,i.y=Number.NaN,i;r=this.radius_g-o,this.flip_axis?(i.x=this.radius_g_1*Math.atan(l/Lt(f,r)),i.y=this.radius_g_1*Math.atan(f/r)):(i.x=this.radius_g_1*Math.atan(l/r),i.y=this.radius_g_1*Math.atan(f/Lt(l,r)))}else this.shape==="sphere"&&(r=Math.cos(n),o=Math.cos(s)*r,l=Math.sin(s)*r,f=Math.sin(n),r=this.radius_g-o,this.flip_axis?(i.x=this.radius_g_1*Math.atan(l/Lt(f,r)),i.y=this.radius_g_1*Math.atan(f/r)):(i.x=this.radius_g_1*Math.atan(l/r),i.y=this.radius_g_1*Math.atan(f/Lt(l,r))));return i.x=i.x*this.a,i.y=i.y*this.a,i}function Nu(i){var s=-1,n=0,r=0,o,l,f,c;if(i.x=i.x/this.a,i.y=i.y/this.a,this.shape==="ellipse"){this.flip_axis?(r=Math.tan(i.y/this.radius_g_1),n=Math.tan(i.x/this.radius_g_1)*Lt(1,r)):(n=Math.tan(i.x/this.radius_g_1),r=Math.tan(i.y/this.radius_g_1)*Lt(1,n));var d=r/this.radius_p;if(o=n*n+d*d+s*s,l=2*this.radius_g*s,f=l*l-4*o*this.C,f<0)return i.x=Number.NaN,i.y=Number.NaN,i;c=(-l-Math.sqrt(f))/(2*o),s=this.radius_g+c*s,n*=c,r*=c,i.x=Math.atan2(n,s),i.y=Math.atan(r*Math.cos(i.x)/s),i.y=Math.atan(this.radius_p_inv2*Math.tan(i.y))}else if(this.shape==="sphere"){if(this.flip_axis?(r=Math.tan(i.y/this.radius_g_1),n=Math.tan(i.x/this.radius_g_1)*Math.sqrt(1+r*r)):(n=Math.tan(i.x/this.radius_g_1),r=Math.tan(i.y/this.radius_g_1)*Math.sqrt(1+n*n)),o=n*n+r*r+s*s,l=2*this.radius_g*s,f=l*l-4*o*this.C,f<0)return i.x=Number.NaN,i.y=Number.NaN,i;c=(-l-Math.sqrt(f))/(2*o),s=this.radius_g+c*s,n*=c,r*=c,i.x=Math.atan2(n,s),i.y=Math.atan(r*Math.cos(i.x)/s)}return i.x=i.x+this.long0,i}var ku=["Geostationary Satellite View","Geostationary_Satellite","geos"];const Bu={init:Iu,forward:zu,inverse:Nu,names:ku};var Vi=1.340264,Qi=-.081106,Xi=893e-6,Ki=.003796,Ce=Math.sqrt(3)/2;function Ru(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function Du(i){var s=O(i.x-this.long0),n=i.y,r=Math.asin(Ce*Math.sin(n)),o=r*r,l=o*o*o;return i.x=s*Math.cos(r)/(Ce*(Vi+3*Qi*o+l*(7*Xi+9*Ki*o))),i.y=r*(Vi+Qi*o+l*(Xi+Ki*o)),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function Zu(i){i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a;var s=1e-9,n=12,r=i.y,o,l,f,c,d,m;for(m=0;m<n&&(o=r*r,l=o*o*o,f=r*(Vi+Qi*o+l*(Xi+Ki*o))-i.y,c=Vi+3*Qi*o+l*(7*Xi+9*Ki*o),r-=d=f/c,!(Math.abs(d)<s));++m);return o=r*r,l=o*o*o,i.x=Ce*i.x*(Vi+3*Qi*o+l*(7*Xi+9*Ki*o))/Math.cos(r),i.y=Math.asin(Math.sin(r)/Ce),i.x=O(i.x+this.long0),i}var Fu=["eqearth","Equal Earth","Equal_Earth"];const qu={init:Ru,forward:Du,inverse:Zu,names:Fu};var Yi=1e-10;function Gu(){var i;if(this.phi1=this.lat1,Math.abs(this.phi1)<Yi)throw new Error;this.es?(this.en=es(this.es),this.m1=yi(this.phi1,this.am1=Math.sin(this.phi1),i=Math.cos(this.phi1),this.en),this.am1=i/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=ju,this.forward=Uu):(Math.abs(this.phi1)+Yi>=C?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Wu,this.forward=Hu)}function Uu(i){var s=O(i.x-(this.long0||0)),n=i.y,r,o,l;return r=this.am1+this.m1-yi(n,o=Math.sin(n),l=Math.cos(n),this.en),o=l*s/(r*Math.sqrt(1-this.es*o*o)),i.x=r*Math.sin(o),i.y=this.am1-r*Math.cos(o),i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function ju(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var s,n,r,o;if(n=Lt(i.x,i.y=this.am1-i.y),o=ss(this.am1+this.m1-n,this.es,this.en),(s=Math.abs(o))<C)s=Math.sin(o),r=n*Math.atan2(i.x,i.y)*Math.sqrt(1-this.es*s*s)/Math.cos(o);else if(Math.abs(s-C)<=Yi)r=0;else throw new Error;return i.x=O(r+(this.long0||0)),i.y=ii(o),i}function Hu(i){var s=O(i.x-(this.long0||0)),n=i.y,r,o;return o=this.cphi1+this.phi1-n,Math.abs(o)>Yi?(i.x=o*Math.sin(r=s*Math.cos(n)/o),i.y=this.cphi1-o*Math.cos(r)):i.x=i.y=0,i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function Wu(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var s,n,r=Lt(i.x,i.y=this.cphi1-i.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>C)throw new Error;return Math.abs(Math.abs(n)-C)<=Yi?s=0:s=r*Math.atan2(i.x,i.y)/Math.cos(n),i.x=O(s+(this.long0||0)),i.y=ii(n),i}var $u=["bonne","Bonne (Werner lat_1=90)"];const Vu={init:Gu,names:$u};function Qu(i){i.Proj.projections.add(be),i.Proj.projections.add(Le),i.Proj.projections.add(Ur),i.Proj.projections.add(Jr),i.Proj.projections.add(ah),i.Proj.projections.add(uh),i.Proj.projections.add(ph),i.Proj.projections.add(xh),i.Proj.projections.add(Ah),i.Proj.projections.add(Oh),i.Proj.projections.add(Vh),i.Proj.projections.add(tl),i.Proj.projections.add(al),i.Proj.projections.add(cl),i.Proj.projections.add(pl),i.Proj.projections.add(xl),i.Proj.projections.add(Al),i.Proj.projections.add(Ol),i.Proj.projections.add(Rl),i.Proj.projections.add(Gl),i.Proj.projections.add($l),i.Proj.projections.add(Yl),i.Proj.projections.add(su),i.Proj.projections.add(hu),i.Proj.projections.add(du),i.Proj.projections.add(xu),i.Proj.projections.add(Au),i.Proj.projections.add(Ou),i.Proj.projections.add(Bu),i.Proj.projections.add(qu),i.Proj.projections.add(Vu)}Et.defaultDatum="WGS84",Et.Proj=qt,Et.WGS84=new Et.Proj("WGS84"),Et.Point=vi,Et.toPoint=pn,Et.defs=yt,Et.nadgrid=Ho,Et.transform=we,Et.mgrs=rr,Et.version="__VERSION__",Qu(Et);const Xu=so(Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"})));(function(i){(function(s){var n,r;n=$s(),r=Xu,i.exports=s(n,r)})(function(s,n){return n.__esModule&&n.default&&(n=n.default),s.Proj={},s.Proj._isProj4Obj=function(r){return typeof r.inverse<"u"&&typeof r.forward<"u"},s.Proj.Projection=s.Class.extend({initialize:function(r,o,l){var f=s.Proj._isProj4Obj(r);this._proj=f?r:this._projFromCodeDef(r,o),this.bounds=f?o:l},project:function(r){var o=this._proj.forward([r.lng,r.lat]);return new s.Point(o[0],o[1])},unproject:function(r,o){var l=this._proj.inverse([r.x,r.y]);return new s.LatLng(l[1],l[0],o)},_projFromCodeDef:function(r,o){if(o)n.defs(r,o);else if(n.defs[r]===void 0){var l=r.split(":");if(l.length>3&&(r=l[l.length-3]+":"+l[l.length-1]),n.defs[r]===void 0)throw"No projection definition for code "+r}return n(r)}}),s.Proj.CRS=s.Class.extend({includes:s.CRS,options:{transformation:new s.Transformation(1,0,-1,0)},initialize:function(r,o,l){var f,c,d,m;if(s.Proj._isProj4Obj(r)?(c=r,f=c.srsCode,m=o||{},this.projection=new s.Proj.Projection(c,m.bounds)):(f=r,d=o,m=l||{},this.projection=new s.Proj.Projection(f,d,m.bounds)),s.Util.setOptions(this,m),this.code=f,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new s.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var v=this.options.resolutions.length-1;v>=0;v--)this.options.resolutions[v]&&(this._scales[v]=1/this.options.resolutions[v])}this.infinite=!this.options.bounds},scale:function(r){var o=Math.floor(r),l,f,c,d;return r===o?this._scales[r]:(l=this._scales[o],f=this._scales[o+1],c=f-l,d=r-o,l+c*d)},zoom:function(r){var o=this._closestElement(this._scales,r),l=this._scales.indexOf(o),f,c,d;return r===o?l:o===void 0?-1/0:(c=l+1,f=this._scales[c],f===void 0?1/0:(d=f-o,(r-o)/d+l))},distance:s.CRS.Earth.distance,R:s.CRS.Earth.R,_closestElement:function(r,o){for(var l,f=r.length;f--;)r[f]<=o&&(l===void 0||l<r[f])&&(l=r[f]);return l}}),s.Proj.GeoJSON=s.GeoJSON.extend({initialize:function(r,o){this._callLevel=0,s.GeoJSON.prototype.initialize.call(this,r,o)},addData:function(r){var o;r&&(r.crs&&r.crs.type==="name"?o=new s.Proj.CRS(r.crs.properties.name):r.crs&&r.crs.type&&(o=new s.Proj.CRS(r.crs.type+":"+r.crs.properties.code)),o!==void 0&&(this.options.coordsToLatLng=function(l){var f=s.point(l[0],l[1]);return o.projection.unproject(f)})),this._callLevel++;try{s.GeoJSON.prototype.addData.call(this,r)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),s.Proj.geoJson=function(r,o){return new s.Proj.GeoJSON(r,o)},s.Proj.ImageOverlay=s.ImageOverlay.extend({initialize:function(r,o,l){s.ImageOverlay.prototype.initialize.call(this,r,null,l),this._projectedBounds=o},_animateZoom:function(r){var o=this._map.getZoomScale(r.zoom),l=s.point(this._projectedBounds.min.x,this._projectedBounds.max.y),f=this._projectedToNewLayerPoint(l,r.zoom,r.center);s.DomUtil.setTransform(this._image,f,o)},_reset:function(){var r=this._map.getZoom(),o=this._map.getPixelOrigin(),l=s.bounds(this._transform(this._projectedBounds.min,r)._subtract(o),this._transform(this._projectedBounds.max,r)._subtract(o)),f=l.getSize();s.DomUtil.setPosition(this._image,l.min),this._image.style.width=f.x+"px",this._image.style.height=f.y+"px"},_projectedToNewLayerPoint:function(r,o,l){var f=this._map.getSize()._divideBy(2),c=this._map.project(l,o)._subtract(f)._round(),d=c.add(this._map._getMapPanePos());return this._transform(r,o)._subtract(d)},_transform:function(r,o){var l=this._map.options.crs,f=l.transformation,c=l.scale(o);return f.transform(r,c)}}),s.Proj.imageOverlay=function(r,o,l){return new s.Proj.ImageOverlay(r,o,l)},s.Proj})})(ao);const hs=new M.Proj.CRS("EPSG:900913","+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",{resolutions:function(){var i=[];i[0]=Math.pow(2,18);for(var s=1;s<21;s++)i[s]=Math.pow(2,18-s);return i}(),origin:[0,0],bounds:M.bounds([20037508342789244e-9,0],[0,20037508342789244e-9])}),Rn=M.Layer.extend({provide:{TDT:"tdt",BAIDU:"bd",GAODE:"gd",YANDEX:"yandex"},source:{VECTOR:"vec",SATELITE:"img",ANNO:"cia",VEC_NO_ANNO:"vec_no_anno",SATELITE_NO_ANNO:"img_no_anno"},style:{NORMAL:"normal",GRAY:"gray",DARK:"dark",BROWN:"brown",BLUR:"blur"},options:{provide:"tdt",source:"img",style:"normal",accessToken:"016b31f15f25e1365e85aec7e7b0464e"},initialize(i){i=_t.Util.deleteEmptyProperty(i),M.Util.setOptions(this,i)},onAdd(i){this.map=i,this.replaceProjection(),this.tileLayers=this.getLayerGroup(),i.addLayer(this.tileLayers)},onRemove(i){const s=this.getLayerGroup();i.removeLayer(s)},replaceProjection(){const i=this.map.getCenter(),s=this.map.getZoom();this.options.provide===this.provide.BAIDU?this.map.options.crs=hs:this.options.provide===this.provide.YANDEX?this.map.options.crs=M.CRS.EPSG3395:this.map.options.crs=M.CRS.EPSG3857,this._resetMapStatus(i,s)},_resetMapStatus(i,s){this.map.setView(i),this.map._resetView(i,s,!0)},getLayerGroup(){let i={},s={};switch(this.options.style&&this.options.style.split(",").forEach(n=>{switch(n){case this.style.DARK:i.invert=1;break;case this.style.GRAY:i.grayscale=1;break;case this.style.BROWN:i.sepia=1;break;case this.style.BLUR:i.blur="1px";break}}),this.options.provide){case this.provide.TDT:s={subdomains:_t.ArrayUtil.create(8),maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.BAIDU:s={subdomains:_t.ArrayUtil.create(10),tms:!0,corrdType:"bd09",maxNativeZoom:19,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.GAODE:s={subdomains:_t.ArrayUtil.create(4).map(n=>n+1),corrdType:"gcj02",maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break;case this.provide.YANDEX:s={maxNativeZoom:18,minZoom:0,maxZoom:this.map.getMaxZoom()};break}if(this.options.opacity>=0&&(i.opacity=this.options.opacity),this.options.url)return new M.TileLayer(this.options.url,{...s,style:i});switch(this.options.provide){case this.provide.TDT:let n;switch(s.maxNativeZoom=18,this.options.source){case this.source.VECTOR:n=["vec_w","cva_w"];break;case this.source.SATELITE:n=["img_w","cia_w"];break;case this.source.ANNO:n=["cva_w"];break;case this.source.VEC_NO_ANNO:n=["vec_w"];break;case this.source.SATELITE_NO_ANNO:n=["img_w"];break}return new M.LayerGroup(n.map(r=>new M.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${r}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`,{...s,style:i})));case this.provide.BAIDU:switch(this.options.source){case this.source.VECTOR:return s.maxNativeZoom=19,new M.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1",{...s,style:i});case this.source.ANNO:return s.maxNativeZoom=19,new M.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl",{...s,style:i});case this.source.SATELITE:return s.maxNativeZoom=17,new M.LayerGroup([new M.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",{...s,style:i}),new M.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl",{...s,style:i})]);case this.source.SATELITE_NO_ANNO:return s.maxNativeZoom=19,new M.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",{...s,style:i})}break;case this.provide.GAODE:switch(this.options.source){case this.source.VECTOR:return s.maxNativeZoom=18,new M.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...s,style:i});case this.source.ANNO:return s.maxNativeZoom=18,new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...s,style:i});case this.source.SATELITE:return s.maxNativeZoom=16,new M.LayerGroup([new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6",{...s,style:i}),new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{...s,style:i})]);case this.source.SATELITE_NO_ANNO:return s.maxNativeZoom=18,new M.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6",{...s,style:i})}break;case this.provide.YANDEX:switch(this.options.source){case this.source.ANNO:return new M.TileLayer("https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",{...s,style:i});case this.source.SATELITE:return new M.LayerGroup([new M.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps",{...s,subdomains:["01","02","03","04"],style:i}),new M.TileLayer("https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",{...s,style:i})]);case this.source.SATELITE_NO_ANNO:return new M.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps",{...s,subdomains:["01","02","03","04"],style:i})}break}},setOptions(i){M.Util.setOptions(this,i);const s=this.getLayerGroup();this.map.removeLayer(this.tileLayers),setTimeout(()=>{this.replaceProjection(),this.tileLayers=s.addTo(this.map)},500)}}),Dn=M.ImageOverlay.extend({initialize(i,s,n,r){typeof i=="string"?this._url=i:this._rawImage=i,this.topRightMarker=s,this.bottomLeftMarker=n,this.angle=0,M.setOptions(this,r),this._topLeft=new M.LatLng(r.corners[0]),this._topRight=new M.LatLng(r.corners[1]),this._bottomLeft=new M.LatLng(r.corners[3]),s.on("drag dragend",this.reposition,this),n.on("drag dragend",this.reposition,this)},onAdd(i){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(M.DomUtil.addClass(this._rawImage,"leaflet-interactive"),this.addInteractiveTarget(this._rawImage)),i.on("zoomend resetview",this._reset,this),this.getPane().appendChild(this._image),this._reset()},onRemove(i){i.off("zoomend resetview",this._reset,this),M.ImageOverlay.prototype.onRemove.call(this,i)},_initImage(){let i=this._rawImage;this._url&&(i=M.DomUtil.create("img"),i.style.display="none",this.options.crossOrigin&&(i.crossOrigin=""),i.src=this._url,this._rawImage=i),M.DomUtil.addClass(i,"leaflet-image-layer");const s=this._image=M.DomUtil.create("div","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));this._updateZIndex&&this._updateZIndex(),s.appendChild(i),s.onselectstart=M.Util.falseFn,s.onmousemove=M.Util.falseFn,i.onload=(function(){this._reset(),i.style.display="block",this.options.w=this._rawImage.width,this.options.h=this._rawImage.height,this.boundsRectBottomLeft=new M.Point(0,0),this.boundsRectTopRight=new M.Point(this.options.w,this.options.h),this.diagonalVector=this.boundsRectTopRight.subtract(this.boundsRectBottomLeft),this.fire("load")}).bind(this),i.alt=this.options.alt},_reset(){const i=this._image,s=this._map.latLngToLayerPoint(this._topLeft),n=this._map.latLngToLayerPoint(this._topRight),r=this._map.latLngToLayerPoint(this._bottomLeft),o=n.subtract(s).add(r),l=new M.Bounds([s,n,r,o]),f=l.getSize(),c=s.subtract(l.min),d=n.subtract(s),m=r.subtract(s),v=Math.atan2(d.y,d.x),p=Math.atan2(m.x,m.y);this.angle=((Math.abs(v)+Math.abs(p))/2*180).toFixed(2),this._bounds=new M.LatLngBounds(this._map.layerPointToLatLng(l.min),this._map.layerPointToLatLng(l.max)),M.DomUtil.setPosition(i,l.min),i.pxBounds=l,i.style.width=f.x+"px",i.style.height=f.y+"px";const y=this._rawImage.width,b=this._rawImage.height;if(!y||!b)return;const A=s.distanceTo(n)/y*Math.cos(v),P=s.distanceTo(r)/b*Math.cos(p);this._rawImage.style.transformOrigin="0 0",this._rawImage.style.transform="translate("+c.x+"px, "+c.y+"px)skew("+p+"rad, "+v+"rad) scale("+A+", "+P+") "},_animateZoom(i){const s=this._map.getZoomScale(i.zoom),r=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;M.DomUtil.setTransform(this._image,r,s)},reposition(){const i=this.topRightMarker.getLatLng(),s=this.bottomLeftMarker.getLatLng(),n=this.options.w,r=this.options.h,o=this.getCornerLatLng(new M.Point(0,r),s,i),l=this.getCornerLatLng(new M.Point(n,r),s,i),f=this.getCornerLatLng(new M.Point(0,0),s,i),c=this.getCornerLatLng(new M.Point(n,0),s,i);this.options.corners=[o,l,c,f],this._topLeft=new M.LatLng(o),this._topRight=new M.LatLng(l),this._bottomLeft=new M.LatLng(f),this._reset()},getCornerLatLng(i,s,n){const r=this.boundsRectBottomLeft,o=this.diagonalVector,l=i.subtract(r),f=this.getClockWiseRotate90DegreePoint(o),c=this.getDotProduction(o,l)/this.getDotProduction(o,o),d=-this.getDotProduction(f,l)/this.getDotProduction(f,f),m=new M.Projection.SphericalMercator.project(s),v=new M.Projection.SphericalMercator.project(n),p=m.add(v.subtract(m).multiplyBy(c)),y=this.getClockWiseRotate90DegreePoint(m.subtract(v)).multiplyBy(d),b=p.add(y);return new M.Projection.SphericalMercator.unproject(b)},setUrl(i){return this._url=i,this._rawImage&&(this._rawImage.src=i),this},getDotProduction(i,s){return i.x*s.x+i.y*s.y},getClockWiseRotate90DegreePoint(i){return new M.Point([i.y,-i.x])}}),Zn=M.Marker.extend({options:{fontSize:"12px",color:"#f00",fontShadowColor:"none",fontWeight:"normal",background:"rgba(0, 0, 0, 0)",minZoom:void 0,maxZoom:void 0},initialize(i,s,n={}){this._latlng=i,this._enabled=!1,this.options.id=n.id||"text_"+Utils.guid(),this.options.text=s||"",n=Object.assign(this.options,n),M.setOptions(this,n);const{id:r,fontSize:o,color:l,fontWeight:f,background:c,fontShadowColor:d}=this.options;this.options.icon=new M.DivIcon({html:`<span id=${r} style="padding:2px 4px;white-space:nowrap;font-weight:${f};font-size:${o};color:${l};background:${c};text-shadow:${d} 1px 0px 2px">${s||""}</span>`,className:"leaflet-text"})},setStyle(i){const s=document.getElementById(this.options.id),{text:n,color:r,fontSize:o,fontShadowColor:l,fontWeight:f}=i,c=i.background||"none";return s&&(r&&(this.options.color=r,s.style.color=r),f&&(this.options.fontWeight=f,s.style.fontWeight=f),o&&(this.options.fontSize=o,s.style.fontSize=o),c&&(this.options.background=c,s.style.background=c),n&&(this.options.text=n,s.textContent=n),l?(this.options.fontShadowColor=l,s.style["text-shadow"]=l+" 1px 0px 2px"):(this.options.fontShadowColor="none",s.style["text-shadow"]="none")),this},enableEdit(i){const{fontSize:s,color:n,text:r}=this.options;if(!this._enabled){this._enabled=!0;const o=new M.DivIcon({html:`<input type="text" id="text-input-icon" style="font-size:${s};color:${n};" value=${r}></input>`,className:"leaflet-text"});return this.setIcon(o),document.getElementById("text-input-icon").onblur=l=>{this.options.text=l.target.value,setTimeout(()=>{this.disableEdit(),i&&i(this)},100)},document.getElementById("text-input-icon").onkeydown=function(l){l.keyCode===13&&(this.options.text=l.target.value,this.blur(l))},this}},disableEdit(i){if(this._enabled){this._enabled=!1;const{id:s,color:n,fontSize:r,fontWeight:o,fontShadowColor:l}=this.options,f=new M.DivIcon({html:`<span id=${s} style="padding:2px 4px;white-space:nowrap;font-weight:${o};font-size:${r};color:${n};text-shadow:${l} 1px 2px 3px">${this.options.text}</span>`,className:"leaflet-text"});return this.setIcon(f),i&&i(this),this}}}),Fn=M.LayerGroup.extend({initialize(i){M.Util.setOptions(this,i),M.LayerGroup.prototype.initialize.call(this,i)},getRasterLayers(){const i={},s=n=>{if(n._layers&&n.getLayer)for(const r in n._layers){const o=n._layers[r];o._layers&&o.getLayer?s(o):i[o._leaflet_id]=o}else i[layer._leaflet_id]=layer};return s(this),i},removeRasterLayer(i){const s=function(n){if(n._layers&&n.getLayer&&n.getLayer(i)){const r=n.getLayer(i);n.removeLayer(r)}else if(n._layers)for(const r in n._layers){const o=n._layers[r];if(o._layers&&o.getLayer&&o.getLayer(i)){const l=o.getLayer(i);o.removeLayer(l)}else o._layers&&s(o)}};s(this)},getRasterTop(){const i=Object.values(this.getRasterLayers());return i.length?Math.max(...i.map(s=>s.options.zIndex))+1:null}});function Ku(i){const s=document.createElement("style"),n=document.head||document.documentElement;s.innerHTML=`
10
10
  .${i}-statusbar {
11
11
  display: flex;
12
12
  color: #fff;
@@ -23,4 +23,4 @@ northing meters`+i;var y=p/2,b=0,A=0,P,E,z,R,B;return y>0&&(P=1e5/Math.pow(10,y)
23
23
  }
24
24
  .${i}-statusbar-item + .${i}-statusbar-item {
25
25
  margin-left: 10px
26
- }`,n.appendChild(e)}(i=>{const e=Object.create(Io)||{};return e.LANG=hs,e.BaseMap=M.Map.extend({options:{doubleClickZoom:!1,closePopupOnClick:!1,zoomControl:!1,attributionControl:!1,scaleControl:!0,statusBarControl:!0,minZoom:5,maxZoom:19,contextmenu:!0,center:[0,0],zoom:17},initialize(n,o={},r){if(typeof n=="string"&&(n=document.querySelector("#"+n)),!n instanceof HTMLElement||!n.clientWidth||!n.clientHeight)throw new Error("地图容器不存在或元素尺寸为0");this.lang=typeof o.lang=="string"?o.lang:"zh_CN",this.clsPrefix=typeof o.clsPrefix=="string"?o.clsPrefix:"gis2d",$c(this.clsPrefix),M.Util.setOptions(this,o),M.Map.prototype.initialize.call(this,n,this.options),M.DomEvent.on(this._container,"click",l=>{var c;const u=this._container.querySelector(".add");u&&(u.style.display="none"),(c=this.contextmenu)==null||c.hide()},this),o.debug?(document.onselectstart=()=>o.debug.allowSelect,n.oncontextmenu=()=>o.debug.allowContextmenu,document.onkeydown=function(l){if(l&&l.keyCode===123)return o.debug.allowDevtool}):(document.onkeydown=function(l){if(l&&l.keyCode===123)return!1},n.oncontextmenu=()=>!1),i[r||"$m"]=this},getCursor(){return this.getContainer().style.cursor},setCursor(n){const o=this.getContainer();o.style.cursor=n?typeof n=="string"?`url(${"./images/cursor/"+n+".cur"}), auto`:`url(${n}), auto`:"default"},flyTo(n,o=0,r={animate:!1}){n instanceof M.Marker?(n=n._latlng,M.Map.prototype.flyTo.call(this,n,o||this.getZoom(),r)):n instanceof M.Path||n instanceof M.FeatureGroup?(n=n.getBounds(),M.Map.prototype.flyToBounds.call(this,n,r)):M.Map.prototype.flyTo.call(this,n,o||this.getZoom(),r)}}),e.StatusBar=Ae,e.CRS.BaiDu=Ts,e.WebMercatorTiledLayer=da,e.Knob=_n,e.EagleMap=Te,e.LayerManager=pa,e.ImageOverlay.Rotated=ma,e.Text=_a,e.VertexMarkers=ls,e.Measurement=Gi,i.L=e})(window);function Cs(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("未找到全局对象")}const Es=function(i,e={}){Es.installed||(Cs().Gis=Oo)};Cs().Vue&&Es(Cs().Vue);const Vc={install:Es};_t.BaiDuCRS=Ts,_t.Draw=pn,_t.EagleMap=Te,_t.Knob=_n,_t.LayerManager=pa,_t.MeasureMent=Gi,_t.RotatedImageOverLayer=ma,_t.StatusBar=Ae,_t.TextLayer=_a,_t.VertexMarker=ls,_t.WebMercatorTiledLayer=da,_t.default=Vc,Object.defineProperties(_t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ }`,n.appendChild(s)}(i=>{const s=Object.create(no)||{};return s.LANG=zi,s.BaseMap=M.Map.extend({options:{doubleClickZoom:!1,closePopupOnClick:!1,zoomControl:!1,attributionControl:!1,scaleControl:!0,statusBarControl:!0,minZoom:5,maxZoom:19,contextmenu:!0,center:[0,0],zoom:17},initialize(n,r={},o){var l;if(typeof n=="string"&&(n=document.getElementById(n)),!n instanceof HTMLElement||!n.clientWidth||!n.clientHeight)throw new Error("地图容器不存在或元素尺寸为0");this.lang=typeof r.lang=="string"?r.lang:"zh_CN",this.clsPrefix=typeof r.clsPrefix=="string"?r.clsPrefix:"gis2d",Ku(this.clsPrefix),M.Util.setOptions(this,r),M.Control.Zoom.mergeOptions({position:((l=this.options.zoomControl)==null?void 0:l.position)||"topleft",zoomInTitle:zi[this.lang].zoomIn,zoomOutTitle:zi[this.lang].zoomOut}),M.Control.Attribution.mergeOptions({prefix:`<a href="http://www.${this.clsPrefix}.com" target="_blank">Guo.Yan</a>`}),M.Map.prototype.initialize.call(this,n,this.options),M.DomEvent.on(this._container,"click",f=>{var d;const c=this._container.querySelector(".add");c&&(c.style.display="none"),(d=this.contextmenu)==null||d.hide()},this),r.debug?(document.onselectstart=()=>r.debug.allowSelect,n.oncontextmenu=()=>r.debug.allowContextmenu,document.onkeydown=function(f){if(f&&f.keyCode===123)return r.debug.allowDevtool}):process.env.NODE_ENV!=="development"&&(document.onkeydown=function(f){if(f&&f.keyCode===123)return!1},n.oncontextmenu=()=>!1),i[o||"$m"]=this},getCursor(){return this.getContainer().style.cursor||"default"},setCursor(n="default"){const r=this.getContainer();["auto","pointer","crosshair","move","text","wait","help","grab","default"].includes(n)?r.style.cursor=`${n}`:r.style.cursor=typeof n=="string"?`url(${"./images/cursor/"+n+".cur"}), auto`:`url(${n}), auto`},flyTo(n,r=0,o={animate:!1}){n instanceof M.Marker?(n=n._latlng,M.Map.prototype.flyTo.call(this,n,r||this.getZoom(),o)):n instanceof M.Path||n instanceof M.FeatureGroup?(n=n.getBounds(),M.Map.prototype.flyToBounds.call(this,n,o)):M.Map.prototype.flyTo.call(this,n,r||this.getZoom(),o)}}),s.StatusBar=me,s.CRS.BaiDu=hs,s.WebMercatorTiledLayer=Rn,s.Knob=Vs,s.EagleMap=pe,s.LayerManager=Fn,s.ImageOverlay.Rotated=Dn,s.Text=Zn,s.VertexMarkers=Ve,s.Measurement=Ni,i.L=s})(window);function ls(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("未找到全局对象")}const us=function(i,s={}){us.installed||(ls().Gis=to)};ls().Vue&&us(ls().Vue);const Yu={install:us};ft.BaiDuCRS=hs,ft.Draw=Qs,ft.EagleMap=pe,ft.Knob=Vs,ft.LayerManager=Fn,ft.MeasureMent=Ni,ft.RotatedImageOverLayer=Dn,ft.StatusBar=me,ft.TextLayer=Zn,ft.VertexMarker=Ve,ft.WebMercatorTiledLayer=Rn,ft.default=Yu,Object.defineProperties(ft,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});